MockableServiceFabricSubscriptionResource.GetClusterVersionsAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetClusterVersionsAsync(AzureLocation, CancellationToken) |
Gets all available code versions for Service Fabric cluster resources by location.
|
GetClusterVersionsAsync(AzureLocation, String, CancellationToken) |
Gets information about an available Service Fabric cluster code version.
|
GetClusterVersionsAsync(AzureLocation, CancellationToken)
Gets all available code versions for Service Fabric cluster resources by location.
- Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabric/locations/{location}/clusterVersions
- Operation Id: ClusterVersions_List
- Default Api Version: 2023-11-01-preview
public virtual Azure.AsyncPageable<Azure.ResourceManager.ServiceFabric.Models.ClusterCodeVersionsResult> GetClusterVersionsAsync (Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default);
abstract member GetClusterVersionsAsync : Azure.Core.AzureLocation * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.ServiceFabric.Models.ClusterCodeVersionsResult>
override this.GetClusterVersionsAsync : Azure.Core.AzureLocation * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.ServiceFabric.Models.ClusterCodeVersionsResult>
Public Overridable Function GetClusterVersionsAsync (location As AzureLocation, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of ClusterCodeVersionsResult)
Parameters
- location
- AzureLocation
The location parameter.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
An async collection of ClusterCodeVersionsResult that may take multiple service requests to iterate over.
Applies to
GetClusterVersionsAsync(AzureLocation, String, CancellationToken)
Gets information about an available Service Fabric cluster code version.
- Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabric/locations/{location}/clusterVersions/{clusterVersion}
- Operation Id: ClusterVersions_Get
- Default Api Version: 2023-11-01-preview
public virtual Azure.AsyncPageable<Azure.ResourceManager.ServiceFabric.Models.ClusterCodeVersionsResult> GetClusterVersionsAsync (Azure.Core.AzureLocation location, string clusterVersion, System.Threading.CancellationToken cancellationToken = default);
abstract member GetClusterVersionsAsync : Azure.Core.AzureLocation * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.ServiceFabric.Models.ClusterCodeVersionsResult>
override this.GetClusterVersionsAsync : Azure.Core.AzureLocation * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.ServiceFabric.Models.ClusterCodeVersionsResult>
Public Overridable Function GetClusterVersionsAsync (location As AzureLocation, clusterVersion As String, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of ClusterCodeVersionsResult)
Parameters
- location
- AzureLocation
The location parameter.
- clusterVersion
- String
The cluster code version.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
An async collection of ClusterCodeVersionsResult that may take multiple service requests to iterate over.
Exceptions
clusterVersion
is an empty string, and was expected to be non-empty.
clusterVersion
is null.
Applies to
Azure SDK for .NET