ServiceFabricExtensions.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(SubscriptionResource, AzureLocation, CancellationToken) |
Gets all available code versions for Service Fabric cluster resources by location.
|
GetClusterVersionsAsync(SubscriptionResource, AzureLocation, String, CancellationToken) |
Gets information about an available Service Fabric cluster code version.
|
GetClusterVersionsAsync(SubscriptionResource, AzureLocation, CancellationToken)
- Source:
- ServiceFabricExtensions.cs
- Source:
- ServiceFabricExtensions.cs
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 static Azure.AsyncPageable<Azure.ResourceManager.ServiceFabric.Models.ClusterCodeVersionsResult> GetClusterVersionsAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default);
static member GetClusterVersionsAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.ServiceFabric.Models.ClusterCodeVersionsResult>
<Extension()>
Public Function GetClusterVersionsAsync (subscriptionResource As SubscriptionResource, location As AzureLocation, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of ClusterCodeVersionsResult)
Parameters
- subscriptionResource
- SubscriptionResource
The SubscriptionResource instance the method will execute against.
- 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.
Exceptions
subscriptionResource
is null.
Applies to
GetClusterVersionsAsync(SubscriptionResource, AzureLocation, String, CancellationToken)
- Source:
- ServiceFabricExtensions.cs
- Source:
- ServiceFabricExtensions.cs
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 static Azure.AsyncPageable<Azure.ResourceManager.ServiceFabric.Models.ClusterCodeVersionsResult> GetClusterVersionsAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, string clusterVersion, System.Threading.CancellationToken cancellationToken = default);
static member GetClusterVersionsAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.ServiceFabric.Models.ClusterCodeVersionsResult>
<Extension()>
Public Function GetClusterVersionsAsync (subscriptionResource As SubscriptionResource, location As AzureLocation, clusterVersion As String, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of ClusterCodeVersionsResult)
Parameters
- subscriptionResource
- SubscriptionResource
The SubscriptionResource instance the method will execute against.
- 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.
subscriptionResource
or clusterVersion
is null.
Applies to
Azure SDK for .NET