Share via


MockableServiceFabricSubscriptionResource.GetClusterVersions Method

Definition

Overloads

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

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

Parameters

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.

Applies to

GetClusterVersions(AzureLocation, String, CancellationToken)

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

Parameters

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.

clusterVersion is null.

Applies to