Compartilhar via


ComputeExtensions.GetCloudService Método

Definição

Exibir informações sobre um serviço de nuvem.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}
  • Operação IdCloudServices_Get
public static Azure.Response<Azure.ResourceManager.Compute.CloudServiceResource> GetCloudService (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string cloudServiceName, System.Threading.CancellationToken cancellationToken = default);
static member GetCloudService : Azure.ResourceManager.Resources.ResourceGroupResource * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Compute.CloudServiceResource>
<Extension()>
Public Function GetCloudService (resourceGroupResource As ResourceGroupResource, cloudServiceName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of CloudServiceResource)

Parâmetros

resourceGroupResource
ResourceGroupResource

A ResourceGroupResource instância em que o método será executado.

cloudServiceName
String

Nome do serviço de nuvem.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

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

cloudServiceName é nulo.

Aplica-se a