Skip to main content

throughput_pool_accounts

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

Overview

Namethroughput_pool_accounts
TypeResource
Idazure.cosmos_db.throughput_pool_accounts

Fields

NameDatatypeDescription
account_instance_idtextfield from the properties object
account_locationtextfield from the properties object
account_resource_identifiertextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
throughputPoolAccountNametextfield from the properties object
throughputPoolNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, subscriptionId, throughputPoolAccountName, throughputPoolNameRetrieves the properties of an existing Azure Cosmos DB Throughput Pool
listSELECTresourceGroupName, subscriptionId, throughputPoolNameLists all the Azure Cosmos DB accounts available under the subscription.
createINSERTresourceGroupName, subscriptionId, throughputPoolAccountName, throughputPoolNameCreates or updates an Azure Cosmos DB ThroughputPool account. The "Update" method is preferred when performing updates on an account.
deleteDELETEresourceGroupName, subscriptionId, throughputPoolAccountName, throughputPoolNameRemoves an existing Azure Cosmos DB database account from a throughput pool.

SELECT examples

Lists all the Azure Cosmos DB accounts available under the subscription.

SELECT
account_instance_id,
account_location,
account_resource_identifier,
provisioning_state,
resourceGroupName,
subscriptionId,
throughputPoolAccountName,
throughputPoolName
FROM azure.cosmos_db.vw_throughput_pool_accounts
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND throughputPoolName = '{{ throughputPoolName }}';

INSERT example

Use the following StackQL query and manifest file to create a new throughput_pool_accounts resource.

/*+ create */
INSERT INTO azure.cosmos_db.throughput_pool_accounts (
resourceGroupName,
subscriptionId,
throughputPoolAccountName,
throughputPoolName,
properties
)
SELECT
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ throughputPoolAccountName }}',
'{{ throughputPoolName }}',
'{{ properties }}'
;

DELETE example

Deletes the specified throughput_pool_accounts resource.

/*+ delete */
DELETE FROM azure.cosmos_db.throughput_pool_accounts
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND throughputPoolAccountName = '{{ throughputPoolAccountName }}'
AND throughputPoolName = '{{ throughputPoolName }}';