database_accounts_connection_strings
Creates, updates, deletes, gets or lists a database_accounts_connection_strings resource.
Overview
| Name | database_accounts_connection_strings |
| Type | Resource |
| Id | azure.cosmos_db.database_accounts_connection_strings |
Fields
The following fields are returned by SELECT queries:
- list
The operation completed successfully.
| Name | Datatype | Description |
|---|---|---|
connectionStrings | array | An array that contains the connection strings for the Cosmos DB account. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | subscriptionId, resourceGroupName, accountName | Lists the connection strings for the specified Azure Cosmos DB database account. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
accountName | string | Cosmos DB database account name. |
resourceGroupName | string | The name of the resource group. The name is case insensitive. |
subscriptionId | string | The ID of the target subscription. |
SELECT examples
- list
Lists the connection strings for the specified Azure Cosmos DB database account.
SELECT
connectionStrings
FROM azure.cosmos_db.database_accounts_connection_strings
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND accountName = '{{ accountName }}' -- required
;