Skip to main content

database_accounts_connection_strings

Creates, updates, deletes, gets or lists a database_accounts_connection_strings resource.

Overview

Namedatabase_accounts_connection_strings
TypeResource
Idazure.cosmos_db.database_accounts_connection_strings

Fields

The following fields are returned by SELECT queries:

The operation completed successfully.

NameDatatypeDescription
connectionStringsarrayAn array that contains the connection strings for the Cosmos DB account.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectsubscriptionId, resourceGroupName, accountNameLists 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.

NameDatatypeDescription
accountNamestringCosmos DB database account name.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstringThe ID of the target subscription.

SELECT examples

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
;