Compartir a través de


CosmosDBSqlDatabaseResource.GetCosmosDBSqlClientEncryptionKeyAsync Método

Definición

Obtiene ClientEncryptionKey en una base de datos SQL de Azure Cosmos DB existente.

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/clientEncryptionKeys/{clientEncryptionKeyName}
  • IdSqlResources_GetClientEncryptionKey de operación
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

Nombre clientEncryptionKey de Cosmos DB.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

clientEncryptionKeyName es una cadena vacía y se esperaba que no estuviera vacía.

clientEncryptionKeyName es null.

Se aplica a