Compartilhar via


CosmosDBSqlClientEncryptionKeyCollection.GetAsync Método

Definição

Obtém o ClientEncryptionKey em um banco de dados SQL existente do Azure Cosmos DB.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/clientEncryptionKeys/{clientEncryptionKeyName}
  • IdSqlResources_GetClientEncryptionKey de operação
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CosmosDB.CosmosDBSqlClientEncryptionKeyResource>> GetAsync (string clientEncryptionKeyName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CosmosDB.CosmosDBSqlClientEncryptionKeyResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CosmosDB.CosmosDBSqlClientEncryptionKeyResource>>
Public Overridable Function GetAsync (clientEncryptionKeyName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of CosmosDBSqlClientEncryptionKeyResource))

Parâmetros

clientEncryptionKeyName
String

Nome clientEncryptionKey do Cosmos DB.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

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

clientEncryptionKeyName é nulo.

Aplica-se a