MockableServiceFabricSubscriptionResource.GetClusterVersionsByEnvironmentAsync Method

Definition

Overloads

GetClusterVersionsByEnvironmentAsync(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(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(AzureLocation, ClusterVersionsEnvironment, CancellationToken)

Source:
MockableServiceFabricSubscriptionResource.cs
Source:
MockableServiceFabricSubscriptionResource.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 virtual Azure.AsyncPageable<Azure.ResourceManager.ServiceFabric.Models.ClusterCodeVersionsResult> GetClusterVersionsByEnvironmentAsync (Azure.Core.AzureLocation location, Azure.ResourceManager.ServiceFabric.Models.ClusterVersionsEnvironment environment, System.Threading.CancellationToken cancellationToken = default);
abstract member GetClusterVersionsByEnvironmentAsync : Azure.Core.AzureLocation * Azure.ResourceManager.ServiceFabric.Models.ClusterVersionsEnvironment * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.ServiceFabric.Models.ClusterCodeVersionsResult>
override this.GetClusterVersionsByEnvironmentAsync : Azure.Core.AzureLocation * Azure.ResourceManager.ServiceFabric.Models.ClusterVersionsEnvironment * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.ServiceFabric.Models.ClusterCodeVersionsResult>
Public Overridable Function GetClusterVersionsByEnvironmentAsync (location As AzureLocation, environment As ClusterVersionsEnvironment, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of ClusterCodeVersionsResult)

Parameters

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.

Applies to

GetClusterVersionsByEnvironmentAsync(AzureLocation, ClusterVersionsEnvironment, String, CancellationToken)

Source:
MockableServiceFabricSubscriptionResource.cs
Source:
MockableServiceFabricSubscriptionResource.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 virtual Azure.AsyncPageable<Azure.ResourceManager.ServiceFabric.Models.ClusterCodeVersionsResult> GetClusterVersionsByEnvironmentAsync (Azure.Core.AzureLocation location, Azure.ResourceManager.ServiceFabric.Models.ClusterVersionsEnvironment environment, string clusterVersion, System.Threading.CancellationToken cancellationToken = default);
abstract member GetClusterVersionsByEnvironmentAsync : Azure.Core.AzureLocation * Azure.ResourceManager.ServiceFabric.Models.ClusterVersionsEnvironment * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.ServiceFabric.Models.ClusterCodeVersionsResult>
override this.GetClusterVersionsByEnvironmentAsync : Azure.Core.AzureLocation * Azure.ResourceManager.ServiceFabric.Models.ClusterVersionsEnvironment * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.ServiceFabric.Models.ClusterCodeVersionsResult>
Public Overridable Function GetClusterVersionsByEnvironmentAsync (location As AzureLocation, environment As ClusterVersionsEnvironment, clusterVersion As String, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of ClusterCodeVersionsResult)

Parameters

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.

clusterVersion is null.

Applies to