Freigeben über


CosmosDBAccountResource.GetReadOnlyKeysAsync(CancellationToken) Methode

Definition

Listet die schreibgeschützten Zugriffsschlüssel für das angegebene Azure Cosmos DB-Datenbankkonto auf.

  • Anforderungspfad/abonnements/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/readonlykeys
  • Vorgangs-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))

Parameter

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Gilt für: