Compartilhar via


ServiceTopologyResource.GetServiceResource(String, CancellationToken) Método

Definição

Obtém o serviço.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeploymentManager/serviceTopologies/{serviceTopologyName}/services/{serviceName}
  • Operação IdServices_Get
public virtual Azure.Response<Azure.ResourceManager.DeploymentManager.ServiceResource> GetServiceResource (string serviceName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetServiceResource : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.DeploymentManager.ServiceResource>
override this.GetServiceResource : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.DeploymentManager.ServiceResource>
Public Overridable Function GetServiceResource (serviceName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of ServiceResource)

Parâmetros

serviceName
String

O nome do recurso de serviço.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

serviceName é uma cadeia de caracteres vazia e esperava-se que não estivesse vazia.

serviceName é nulo.

Aplica-se a