Partilhar via


CosmosDBAccountResource.GetCosmosDBServiceAsync Método

Definição

Obtém o status de serviço.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/services/{serviceName}
  • Operação IdService_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CosmosDB.CosmosDBServiceResource>> GetCosmosDBServiceAsync (string serviceName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetCosmosDBServiceAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CosmosDB.CosmosDBServiceResource>>
override this.GetCosmosDBServiceAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CosmosDB.CosmosDBServiceResource>>
Public Overridable Function GetCosmosDBServiceAsync (serviceName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of CosmosDBServiceResource))

Parâmetros

serviceName
String

Nome do serviço do Cosmos DB.

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