Skip to main content

mongodb_collection_partition_merges

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

Overview

Namemongodb_collection_partition_merges
TypeResource
Idazure.cosmos_db.mongodb_collection_partition_merges

Fields

The following fields are returned by SELECT queries:

The MongoDB collection merge operation was completed successfully.

NameDatatypeDescription
physicalPartitionStorageInfoCollectionarrayList of physical partitions and their properties.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectsubscriptionId, resourceGroupName, accountName, databaseName, collectionNameMerges the partitions of a 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

Merges the partitions of a MongoDB Collection

SELECT
physicalPartitionStorageInfoCollection
FROM azure.cosmos_db.mongodb_collection_partition_merges
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND accountName = '{{ accountName }}' -- required
AND databaseName = '{{ databaseName }}' -- required
AND collectionName = '{{ collectionName }}' -- required
;