Partilhar via


CosmosDBSqlDatabaseResource.GetCosmosDBSqlClientEncryptionKeyAsync Método

Definição

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

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/clientEncryptionKeys/{clientEncryptionKeyName}
  • Operação IdSqlResources_GetClientEncryptionKey
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CosmosDB.CosmosDBSqlClientEncryptionKeyResource>> GetCosmosDBSqlClientEncryptionKeyAsync (string clientEncryptionKeyName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetCosmosDBSqlClientEncryptionKeyAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CosmosDB.CosmosDBSqlClientEncryptionKeyResource>>
override this.GetCosmosDBSqlClientEncryptionKeyAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CosmosDB.CosmosDBSqlClientEncryptionKeyResource>>
Public Overridable Function GetCosmosDBSqlClientEncryptionKeyAsync (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 esperava-se que não estivesse vazia.

clientEncryptionKeyName é nulo.

Aplica-se a