Skip to main content

throughput_pools

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

Overview

Namethroughput_pools
TypeResource
Idazure.cosmos_db.throughput_pools

Fields

NameDatatypeDescription
locationtextThe geo-location where the resource lives
max_throughputtextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
throughputPoolNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, subscriptionId, throughputPoolNameRetrieves the properties of an existing Azure Cosmos DB Throughput Pool
listSELECTsubscriptionIdLists all the Azure Cosmos DB Throughput Pools available under the subscription.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdList all the ThroughputPools in a given resource group.
create_or_updateINSERTresourceGroupName, subscriptionId, throughputPoolNameCreates or updates an Azure Cosmos DB ThroughputPool account. The "Update" method is preferred when performing updates on an account.
deleteDELETEresourceGroupName, subscriptionId, throughputPoolNameDeletes an existing Azure Cosmos DB Throughput Pool.
updateUPDATEresourceGroupName, subscriptionId, throughputPoolNameUpdates the properties of an existing Azure Cosmos DB Throughput Pool.

SELECT examples

Lists all the Azure Cosmos DB Throughput Pools available under the subscription.

SELECT
location,
max_throughput,
provisioning_state,
resourceGroupName,
subscriptionId,
tags,
throughputPoolName
FROM azure.cosmos_db.vw_throughput_pools
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

UPDATE example

Updates a throughput_pools resource.

/*+ update */
UPDATE azure.cosmos_db.throughput_pools
SET
properties = '{{ properties }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND throughputPoolName = '{{ throughputPoolName }}';

DELETE example

Deletes the specified throughput_pools resource.

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