DatabaseAccountsOperations.GetReadOnlyKeysAsync(String, String, CancellationToken) Method

Definition

Lists the read-only access keys for the specified Azure Cosmos DB database account.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CosmosDB.Models.DatabaseAccountListReadOnlyKeysResult>> GetReadOnlyKeysAsync (string resourceGroupName, string accountName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetReadOnlyKeysAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CosmosDB.Models.DatabaseAccountListReadOnlyKeysResult>>
override this.GetReadOnlyKeysAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CosmosDB.Models.DatabaseAccountListReadOnlyKeysResult>>
Public Overridable Function GetReadOnlyKeysAsync (resourceGroupName As String, accountName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of DatabaseAccountListReadOnlyKeysResult))

Parameters

resourceGroupName
String

The name of the resource group. The name is case insensitive.

accountName
String

Cosmos DB database account name.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Task<Response<DatabaseAccountListReadOnlyKeysResult>>

Applies to