database_accounts_read_only_keys
Creates, updates, deletes, gets or lists a database_accounts_read_only_keys
resource.
Overview
Name | database_accounts_read_only_keys |
Type | Resource |
Id | azure.cosmos_db.database_accounts_read_only_keys |
Fields
Name | Datatype | Description |
---|---|---|
primaryReadonlyMasterKey | string | Base 64 encoded value of the primary read-only key. |
secondaryReadonlyMasterKey | string | Base 64 encoded value of the secondary read-only key. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | accountName, resourceGroupName, subscriptionId | Lists the read-only access keys for the specified Azure Cosmos DB database account. |
list | SELECT | accountName, resourceGroupName, subscriptionId | Lists the read-only access keys for the specified Azure Cosmos DB database account. |
SELECT
examples
Lists the read-only access keys for the specified Azure Cosmos DB database account.
SELECT
primaryReadonlyMasterKey,
secondaryReadonlyMasterKey
FROM azure.cosmos_db.database_accounts_read_only_keys
WHERE accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';