Partilhar via


CosmosDBAccountResource.GetReadOnlyKeysAsync(CancellationToken) Método

Definição

Lista as chaves de acesso somente leitura para a conta de banco de dados do Azure Cosmos DB especificada.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/readonlykeys
  • Operação IdDatabaseAccounts_ListReadOnlyKeys
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CosmosDB.Models.CosmosDBAccountReadOnlyKeyList>> GetReadOnlyKeysAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetReadOnlyKeysAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CosmosDB.Models.CosmosDBAccountReadOnlyKeyList>>
override this.GetReadOnlyKeysAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CosmosDB.Models.CosmosDBAccountReadOnlyKeyList>>
Public Overridable Function GetReadOnlyKeysAsync (Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of CosmosDBAccountReadOnlyKeyList))

Parâmetros

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Aplica-se a