共用方式為


ServiceFabricExtensions.GetClusterVersions Method

Definition

Overloads

GetClusterVersions(SubscriptionResource, 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
GetClusterVersions(SubscriptionResource, 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

GetClusterVersions(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.Pageable<Azure.ResourceManager.ServiceFabric.Models.ClusterCodeVersionsResult> GetClusterVersions (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default);
static member GetClusterVersions : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.ServiceFabric.Models.ClusterCodeVersionsResult>
<Extension()>
Public Function GetClusterVersions (subscriptionResource As SubscriptionResource, location As AzureLocation, Optional cancellationToken As CancellationToken = Nothing) As Pageable(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

A collection of ClusterCodeVersionsResult that may take multiple service requests to iterate over.

Exceptions

subscriptionResource is null.

Applies to

GetClusterVersions(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.Pageable<Azure.ResourceManager.ServiceFabric.Models.ClusterCodeVersionsResult> GetClusterVersions (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, string clusterVersion, System.Threading.CancellationToken cancellationToken = default);
static member GetClusterVersions : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.ServiceFabric.Models.ClusterCodeVersionsResult>
<Extension()>
Public Function GetClusterVersions (subscriptionResource As SubscriptionResource, location As AzureLocation, clusterVersion As String, Optional cancellationToken As CancellationToken = Nothing) As Pageable(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

A 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