Compartilhar via


ServiceFabricManagedApplicationResource.GetServiceFabricManagedServiceAsync Método

Definição

Obtenha um recurso de serviço do Service Fabric criado ou no processo de criação no recurso de aplicativo gerenciado do Service Fabric.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedclusters/{clusterName}/applications/{applicationName}/services/{serviceName}
  • Operação IdServices_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ServiceFabricManagedClusters.ServiceFabricManagedServiceResource>> GetServiceFabricManagedServiceAsync (string serviceName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetServiceFabricManagedServiceAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ServiceFabricManagedClusters.ServiceFabricManagedServiceResource>>
override this.GetServiceFabricManagedServiceAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ServiceFabricManagedClusters.ServiceFabricManagedServiceResource>>
Public Overridable Function GetServiceFabricManagedServiceAsync (serviceName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ServiceFabricManagedServiceResource))

Parâmetros

serviceName
String

O nome do recurso de serviço no formato {applicationName}~{serviceName}.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

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

serviceName é nulo.

Aplica-se a