Delen via


MockableServiceFabricSubscriptionResource.GetClusterVersionsAsync Method

Definition

Overloads

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
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

GetClusterVersionsAsync(AzureLocation, CancellationToken)

Source:
MockableServiceFabricSubscriptionResource.cs
Source:
MockableServiceFabricSubscriptionResource.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 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)

Source:
MockableServiceFabricSubscriptionResource.cs
Source:
MockableServiceFabricSubscriptionResource.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 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