MockableServiceFabricSubscriptionResource.GetClusterVersionsByEnvironment Method

Definition

Overloads

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

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

Applies to

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

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.

clusterVersion is null.

Applies to