Dela via


ServiceFabricExtensions.GetClusterVersionsByEnvironmentAsync Method

Definition

Overloads

GetClusterVersionsByEnvironmentAsync(SubscriptionResource, AzureLocation, ClusterVersionsEnvironment, CancellationToken)

Gets all available code versions for Service Fabric cluster resources by environment.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabric/locations/{location}/environments/{environment}/clusterVersions
  • Operation Id: ClusterVersions_ListByEnvironment
  • Default Api Version: 2023-11-01-preview
GetClusterVersionsByEnvironmentAsync(SubscriptionResource, AzureLocation, ClusterVersionsEnvironment, String, CancellationToken)

Gets information about an available Service Fabric cluster code version by environment.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabric/locations/{location}/environments/{environment}/clusterVersions/{clusterVersion}
  • Operation Id: ClusterVersions_GetByEnvironment
  • Default Api Version: 2023-11-01-preview

GetClusterVersionsByEnvironmentAsync(SubscriptionResource, AzureLocation, ClusterVersionsEnvironment, CancellationToken)

Source:
ServiceFabricExtensions.cs
Source:
ServiceFabricExtensions.cs

Gets all available code versions for Service Fabric cluster resources by environment.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabric/locations/{location}/environments/{environment}/clusterVersions
  • Operation Id: ClusterVersions_ListByEnvironment
  • Default Api Version: 2023-11-01-preview
public static Azure.AsyncPageable<Azure.ResourceManager.ServiceFabric.Models.ClusterCodeVersionsResult> GetClusterVersionsByEnvironmentAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, Azure.ResourceManager.ServiceFabric.Models.ClusterVersionsEnvironment environment, System.Threading.CancellationToken cancellationToken = default);
static member GetClusterVersionsByEnvironmentAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * Azure.ResourceManager.ServiceFabric.Models.ClusterVersionsEnvironment * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.ServiceFabric.Models.ClusterCodeVersionsResult>
<Extension()>
Public Function GetClusterVersionsByEnvironmentAsync (subscriptionResource As SubscriptionResource, location As AzureLocation, environment As ClusterVersionsEnvironment, 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.

environment
ClusterVersionsEnvironment

The operating system of the cluster. The default means all.

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

GetClusterVersionsByEnvironmentAsync(SubscriptionResource, AzureLocation, ClusterVersionsEnvironment, String, CancellationToken)

Source:
ServiceFabricExtensions.cs
Source:
ServiceFabricExtensions.cs

Gets information about an available Service Fabric cluster code version by environment.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabric/locations/{location}/environments/{environment}/clusterVersions/{clusterVersion}
  • Operation Id: ClusterVersions_GetByEnvironment
  • Default Api Version: 2023-11-01-preview
public static Azure.AsyncPageable<Azure.ResourceManager.ServiceFabric.Models.ClusterCodeVersionsResult> GetClusterVersionsByEnvironmentAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, Azure.ResourceManager.ServiceFabric.Models.ClusterVersionsEnvironment environment, string clusterVersion, System.Threading.CancellationToken cancellationToken = default);
static member GetClusterVersionsByEnvironmentAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * Azure.ResourceManager.ServiceFabric.Models.ClusterVersionsEnvironment * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.ServiceFabric.Models.ClusterCodeVersionsResult>
<Extension()>
Public Function GetClusterVersionsByEnvironmentAsync (subscriptionResource As SubscriptionResource, location As AzureLocation, environment As ClusterVersionsEnvironment, 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.

environment
ClusterVersionsEnvironment

The operating system of the cluster. The default means all.

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