Partilhar via


ServiceFabricManagedClustersExtensions.GetManagedClusterVersionByEnvironmentAsync Método

Definição

Obtém informações sobre uma versão de código de cluster do Service Fabric disponível por ambiente.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/providers/Microsoft.ServiceFabric/locations/{location}/environments/{environment}/managedClusterVersions/{clusterVersion}
  • IdManagedClusterVersion_GetByEnvironment de operação
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterVersion>> GetManagedClusterVersionByEnvironmentAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedClusterVersionEnvironment environment, string clusterVersion, System.Threading.CancellationToken cancellationToken = default);
static member GetManagedClusterVersionByEnvironmentAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedClusterVersionEnvironment * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterVersion>>
<Extension()>
Public Function GetManagedClusterVersionByEnvironmentAsync (subscriptionResource As SubscriptionResource, location As AzureLocation, environment As ManagedClusterVersionEnvironment, clusterVersion As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ServiceFabricManagedClusterVersion))

Parâmetros

subscriptionResource
SubscriptionResource

A SubscriptionResource instância na qual o método será executado.

location
AzureLocation

O local para as versões de código do cluster. Isso é diferente do local do cluster.

environment
ManagedClusterVersionEnvironment

O sistema operacional do cluster. O padrão significa todos.

clusterVersion
String

A versão do código do cluster.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

clusterVersion é uma cadeia de caracteres vazia e era esperado que não estivesse vazio.

clusterVersion é nulo.

Aplica-se a