共用方式為


ServiceFabricExtensions.GetClusterVersionsByEnvironment Method

Definition

Overloads

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

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

environment
ClusterVersionsEnvironment

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

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

GetClusterVersionsByEnvironment(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.Pageable<Azure.ResourceManager.ServiceFabric.Models.ClusterCodeVersionsResult> GetClusterVersionsByEnvironment (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 GetClusterVersionsByEnvironment : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * Azure.ResourceManager.ServiceFabric.Models.ClusterVersionsEnvironment * string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.ServiceFabric.Models.ClusterCodeVersionsResult>
<Extension()>
Public Function GetClusterVersionsByEnvironment (subscriptionResource As SubscriptionResource, location As AzureLocation, environment As ClusterVersionsEnvironment, 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.

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

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