Skip to main content

mongodb_collection_throughputs

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

Overview

Namemongodb_collection_throughputs
TypeResource
Idazure.cosmos_db.mongodb_collection_throughputs

Fields

The following fields are returned by SELECT queries:

The RUs per second of the MongoDB collection was retrieved successfully.

NameDatatypeDescription
idstringThe unique resource identifier of the ARM resource.
namestringThe name of the ARM resource.
identityobjectIdentity for the resource.
locationstringThe location of the resource group to which the resource belongs.
propertiesobjectThe properties of an Azure Cosmos DB resource throughput
tagsobjectTags are a list of key-value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. For example, the default experience for a template type is set with "defaultExperience": "Cassandra". Current "defaultExperience" values also include "Table", "Graph", "DocumentDB", and "MongoDB".
typestringThe type of Azure resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, accountName, databaseName, collectionNameGets the RUs per second of the MongoDB collection under an existing Azure Cosmos DB database account with the provided name.
updatereplacesubscriptionId, resourceGroupName, accountName, databaseName, collectionName, data__propertiesUpdate the RUs per second of an Azure Cosmos DB MongoDB collection

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.
collectionNamestringCosmos DB collection name.
databaseNamestringCosmos DB database name.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstringThe ID of the target subscription.

SELECT examples

Gets the RUs per second of the MongoDB collection under an existing Azure Cosmos DB database account with the provided name.

SELECT
id,
name,
identity,
location,
properties,
tags,
type
FROM azure.cosmos_db.mongodb_collection_throughputs
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND accountName = '{{ accountName }}' -- required
AND databaseName = '{{ databaseName }}' -- required
AND collectionName = '{{ collectionName }}' -- required
;

REPLACE examples

Update the RUs per second of an Azure Cosmos DB MongoDB collection

REPLACE azure.cosmos_db.mongodb_collection_throughputs
SET
data__properties = '{{ properties }}',
data__location = '{{ location }}',
data__tags = '{{ tags }}',
data__identity = '{{ identity }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND accountName = '{{ accountName }}' --required
AND databaseName = '{{ databaseName }}' --required
AND collectionName = '{{ collectionName }}' --required
AND data__properties = '{{ properties }}' --required
RETURNING
id,
name,
identity,
location,
properties,
tags,
type;