Azure Cosmos DB (2025-10-15)
Azure Cosmos DB Database Service Resource Provider REST API
Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.
Overview
Azure Cosmos DB Database Service Resource Provider REST API
Endpoints 124
Operations
- GETOperations_List
/providers/Microsoft.DocumentDB/operationsLists all of the available Cosmos DB Resource Provider operations.
- GETDatabaseAccounts_Get
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountNameRetrieves the properties of an existing Azure Cosmos DB database account. - PUTDatabaseAccounts_CreateOrUpdate
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountNameCreates or updates an Azure Cosmos DB database account. The "Update" method is preferred when performing updates on an account. - DELETEDatabaseAccounts_Delete
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountNameDeletes an existing Azure Cosmos DB database account. - PATCHDatabaseAccounts_Update
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountNameUpdates the properties of an existing Azure Cosmos DB database account. - POSTDatabaseAccounts_FailoverPriorityChange
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/failoverPriorityChangeChanges the failover priority for the Azure Cosmos DB database account. A failover priority of 0 indicates a write region. The maximum value for a failover… - GETDatabaseAccounts_List
/subscriptions/:subscriptionId/providers/Microsoft.DocumentDB/databaseAccountsLists all the Azure Cosmos DB database accounts available under the subscription. - GETDatabaseAccounts_ListByResourceGroup
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccountsLists all the Azure Cosmos DB database accounts available under the given resource group. - POSTDatabaseAccounts_ListKeys
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/listKeysLists the access keys for the specified Azure Cosmos DB database account. - POSTDatabaseAccounts_ListConnectionStrings
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/listConnectionStringsLists the connection strings for the specified Azure Cosmos DB database account. - POSTDatabaseAccounts_OfflineRegion
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/offlineRegionOffline the specified region for the specified Azure Cosmos DB database account. - POSTDatabaseAccounts_OnlineRegion
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/onlineRegionOnline the specified region for the specified Azure Cosmos DB database account. - GETDatabaseAccounts_GetReadOnlyKeys
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/readonlykeysLists the read-only access keys for the specified Azure Cosmos DB database account. - POSTDatabaseAccounts_ListReadOnlyKeys
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/readonlykeysLists the read-only access keys for the specified Azure Cosmos DB database account. - POSTDatabaseAccounts_RegenerateKey
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/regenerateKeyRegenerates an access key for the specified Azure Cosmos DB database account. - HEADDatabaseAccounts_CheckNameExists
/providers/Microsoft.DocumentDB/databaseAccountNames/:accountNameChecks that the Azure Cosmos DB account name already exists. A valid account name may contain only lowercase letters, numbers, and the '-' character, and must… - GETDatabaseAccounts_ListMetrics
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/metrics?$filter=stringRetrieves the metrics determined by the given filter for the given database account. - GETDatabase_ListMetrics
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/databases/:databaseRid/metrics?$filter=stringRetrieves the metrics determined by the given filter for the given database account and database. - GETCollection_ListMetrics
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/databases/:databaseRid/collections/:collectionRid/metrics?$filter=stringRetrieves the metrics determined by the given filter for the given database account and collection. - GETCollectionRegion_ListMetrics
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/region/:region/databases/:databaseRid/collections/:collectionRid/metrics?$filter=stringRetrieves the metrics determined by the given filter for the given database account, collection and region. - GETDatabaseAccountRegion_ListMetrics
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/region/:region/metrics?$filter=stringRetrieves the metrics determined by the given filter for the given database account and region. - GETPercentileSourceTarget_ListMetrics
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/sourceRegion/:sourceRegion/targetRegion/:targetRegion/percentile/metrics?$filter=stringRetrieves the metrics determined by the given filter for the given account, source and target region. This url is only for PBS and Replication Latency data - GETPercentileTarget_ListMetrics
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/targetRegion/:targetRegion/percentile/metrics?$filter=stringRetrieves the metrics determined by the given filter for the given account target region. This url is only for PBS and Replication Latency data - GETPercentile_ListMetrics
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/percentile/metrics?$filter=stringRetrieves the metrics determined by the given filter for the given database account. This url is only for PBS and Replication Latency data - GETCollectionPartitionRegion_ListMetrics
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/region/:region/databases/:databaseRid/collections/:collectionRid/partitions/metrics?$filter=stringRetrieves the metrics determined by the given filter for the given collection and region, split by partition. - GETCollectionPartition_ListMetrics
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/databases/:databaseRid/collections/:collectionRid/partitions/metrics?$filter=stringRetrieves the metrics determined by the given filter for the given collection, split by partition. - GETPartitionKeyRangeId_ListMetrics
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/databases/:databaseRid/collections/:collectionRid/partitionKeyRangeId/:partitionKeyRangeId/metrics?$filter=stringRetrieves the metrics determined by the given filter for the given partition key range id. - GETPartitionKeyRangeIdRegion_ListMetrics
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/region/:region/databases/:databaseRid/collections/:collectionRid/partitionKeyRangeId/:partitionKeyRangeId/metrics?$filter=stringRetrieves the metrics determined by the given filter for the given partition key range id and region. - GETDatabaseAccounts_ListUsages
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/usages?$filter=stringRetrieves the usages (most recent data) for the given database account. - GETDatabase_ListUsages
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/databases/:databaseRid/usages?$filter=stringRetrieves the usages (most recent data) for the given database. - GETCollection_ListUsages
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/databases/:databaseRid/collections/:collectionRid/usages?$filter=stringRetrieves the usages (most recent storage data) for the given collection. - GETCollectionPartition_ListUsages
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/databases/:databaseRid/collections/:collectionRid/partitions/usages?$filter=stringRetrieves the usages (most recent storage data) for the given collection, split by partition. - GETDatabase_ListMetricDefinitions
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/databases/:databaseRid/metricDefinitionsRetrieves metric definitions for the given database. - GETCollection_ListMetricDefinitions
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/databases/:databaseRid/collections/:collectionRid/metricDefinitionsRetrieves metric definitions for the given collection. - GETDatabaseAccounts_ListMetricDefinitions
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/metricDefinitionsRetrieves metric definitions for the given database account. - GETSqlResources_ListSqlDatabases
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/sqlDatabasesLists the SQL databases under an existing Azure Cosmos DB database account. - GETSqlResources_GetSqlDatabase
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/sqlDatabases/:databaseNameGets the SQL database under an existing Azure Cosmos DB database account with the provided name. - PUTSqlResources_CreateUpdateSqlDatabase
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/sqlDatabases/:databaseNameCreate or update an Azure Cosmos DB SQL database - DELETESqlResources_DeleteSqlDatabase
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/sqlDatabases/:databaseNameDeletes an existing Azure Cosmos DB SQL database. - GETSqlResources_GetSqlDatabaseThroughput
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/sqlDatabases/:databaseName/throughputSettings/defaultGets the RUs per second of the SQL database under an existing Azure Cosmos DB database account with the provided name. - PUTSqlResources_UpdateSqlDatabaseThroughput
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/sqlDatabases/:databaseName/throughputSettings/defaultUpdate RUs per second of an Azure Cosmos DB SQL database - POSTSqlResources_MigrateSqlDatabaseToAutoscale
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/sqlDatabases/:databaseName/throughputSettings/default/migrateToAutoscaleMigrate an Azure Cosmos DB SQL database from manual throughput to autoscale - POSTSqlResources_MigrateSqlDatabaseToManualThroughput
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/sqlDatabases/:databaseName/throughputSettings/default/migrateToManualThroughputMigrate an Azure Cosmos DB SQL database from autoscale to manual throughput - GETSqlResources_ListSqlContainers
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/sqlDatabases/:databaseName/containersLists the SQL container under an existing Azure Cosmos DB database account. - GETSqlResources_GetSqlContainer
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/sqlDatabases/:databaseName/containers/:containerNameGets the SQL container under an existing Azure Cosmos DB database account. - PUTSqlResources_CreateUpdateSqlContainer
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/sqlDatabases/:databaseName/containers/:containerNameCreate or update an Azure Cosmos DB SQL container - DELETESqlResources_DeleteSqlContainer
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/sqlDatabases/:databaseName/containers/:containerNameDeletes an existing Azure Cosmos DB SQL container. - GETSqlResources_GetSqlContainerThroughput
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/sqlDatabases/:databaseName/containers/:containerName/throughputSettings/defaultGets the RUs per second of the SQL container under an existing Azure Cosmos DB database account. - PUTSqlResources_UpdateSqlContainerThroughput
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/sqlDatabases/:databaseName/containers/:containerName/throughputSettings/defaultUpdate RUs per second of an Azure Cosmos DB SQL container - POSTSqlResources_MigrateSqlContainerToAutoscale
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/sqlDatabases/:databaseName/containers/:containerName/throughputSettings/default/migrateToAutoscaleMigrate an Azure Cosmos DB SQL container from manual throughput to autoscale - POSTSqlResources_MigrateSqlContainerToManualThroughput
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/sqlDatabases/:databaseName/containers/:containerName/throughputSettings/default/migrateToManualThroughputMigrate an Azure Cosmos DB SQL container from autoscale to manual throughput - GETSqlResources_ListClientEncryptionKeys
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/sqlDatabases/:databaseName/clientEncryptionKeysLists the ClientEncryptionKeys under an existing Azure Cosmos DB SQL database. - GETSqlResources_GetClientEncryptionKey
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/sqlDatabases/:databaseName/clientEncryptionKeys/:clientEncryptionKeyNameGets the ClientEncryptionKey under an existing Azure Cosmos DB SQL database. - PUTSqlResources_CreateUpdateClientEncryptionKey
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/sqlDatabases/:databaseName/clientEncryptionKeys/:clientEncryptionKeyNameCreate or update a ClientEncryptionKey. This API is meant to be invoked via tools such as the Azure Powershell (instead of directly). - GETSqlResources_ListSqlStoredProcedures
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/sqlDatabases/:databaseName/containers/:containerName/storedProceduresLists the SQL storedProcedure under an existing Azure Cosmos DB database account. - GETSqlResources_GetSqlStoredProcedure
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/sqlDatabases/:databaseName/containers/:containerName/storedProcedures/:storedProcedureNameGets the SQL storedProcedure under an existing Azure Cosmos DB database account. - PUTSqlResources_CreateUpdateSqlStoredProcedure
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/sqlDatabases/:databaseName/containers/:containerName/storedProcedures/:storedProcedureNameCreate or update an Azure Cosmos DB SQL storedProcedure - DELETESqlResources_DeleteSqlStoredProcedure
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/sqlDatabases/:databaseName/containers/:containerName/storedProcedures/:storedProcedureNameDeletes an existing Azure Cosmos DB SQL storedProcedure. - GETSqlResources_ListSqlUserDefinedFunctions
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/sqlDatabases/:databaseName/containers/:containerName/userDefinedFunctionsLists the SQL userDefinedFunction under an existing Azure Cosmos DB database account. - GETSqlResources_GetSqlUserDefinedFunction
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/sqlDatabases/:databaseName/containers/:containerName/userDefinedFunctions/:userDefinedFunctionNameGets the SQL userDefinedFunction under an existing Azure Cosmos DB database account. - PUTSqlResources_CreateUpdateSqlUserDefinedFunction
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/sqlDatabases/:databaseName/containers/:containerName/userDefinedFunctions/:userDefinedFunctionNameCreate or update an Azure Cosmos DB SQL userDefinedFunction - DELETESqlResources_DeleteSqlUserDefinedFunction
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/sqlDatabases/:databaseName/containers/:containerName/userDefinedFunctions/:userDefinedFunctionNameDeletes an existing Azure Cosmos DB SQL userDefinedFunction. - GETSqlResources_ListSqlTriggers
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/sqlDatabases/:databaseName/containers/:containerName/triggersLists the SQL trigger under an existing Azure Cosmos DB database account. - GETSqlResources_GetSqlTrigger
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/sqlDatabases/:databaseName/containers/:containerName/triggers/:triggerNameGets the SQL trigger under an existing Azure Cosmos DB database account. - PUTSqlResources_CreateUpdateSqlTrigger
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/sqlDatabases/:databaseName/containers/:containerName/triggers/:triggerNameCreate or update an Azure Cosmos DB SQL trigger - DELETESqlResources_DeleteSqlTrigger
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/sqlDatabases/:databaseName/containers/:containerName/triggers/:triggerNameDeletes an existing Azure Cosmos DB SQL trigger. - GETMongoDBResources_ListMongoDBDatabases
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/mongodbDatabasesLists the MongoDB databases under an existing Azure Cosmos DB database account. - GETMongoDBResources_GetMongoDBDatabase
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/mongodbDatabases/:databaseNameGets the MongoDB databases under an existing Azure Cosmos DB database account with the provided name. - PUTMongoDBResources_CreateUpdateMongoDBDatabase
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/mongodbDatabases/:databaseNameCreate or updates Azure Cosmos DB MongoDB database - DELETEMongoDBResources_DeleteMongoDBDatabase
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/mongodbDatabases/:databaseNameDeletes an existing Azure Cosmos DB MongoDB database. - GETMongoDBResources_GetMongoDBDatabaseThroughput
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/mongodbDatabases/:databaseName/throughputSettings/defaultGets the RUs per second of the MongoDB database under an existing Azure Cosmos DB database account with the provided name. - PUTMongoDBResources_UpdateMongoDBDatabaseThroughput
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/mongodbDatabases/:databaseName/throughputSettings/defaultUpdate RUs per second of the an Azure Cosmos DB MongoDB database - POSTMongoDBResources_MigrateMongoDBDatabaseToAutoscale
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/mongodbDatabases/:databaseName/throughputSettings/default/migrateToAutoscaleMigrate an Azure Cosmos DB MongoDB database from manual throughput to autoscale - POSTMongoDBResources_MigrateMongoDBDatabaseToManualThroughput
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/mongodbDatabases/:databaseName/throughputSettings/default/migrateToManualThroughputMigrate an Azure Cosmos DB MongoDB database from autoscale to manual throughput - GETMongoDBResources_ListMongoDBCollections
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/mongodbDatabases/:databaseName/collectionsLists the MongoDB collection under an existing Azure Cosmos DB database account. - GETMongoDBResources_GetMongoDBCollection
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/mongodbDatabases/:databaseName/collections/:collectionNameGets the MongoDB collection under an existing Azure Cosmos DB database account. - PUTMongoDBResources_CreateUpdateMongoDBCollection
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/mongodbDatabases/:databaseName/collections/:collectionNameCreate or update an Azure Cosmos DB MongoDB Collection - DELETEMongoDBResources_DeleteMongoDBCollection
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/mongodbDatabases/:databaseName/collections/:collectionNameDeletes an existing Azure Cosmos DB MongoDB Collection. - GETMongoDBResources_GetMongoDBCollectionThroughput
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/mongodbDatabases/:databaseName/collections/:collectionName/throughputSettings/defaultGets the RUs per second of the MongoDB collection under an existing Azure Cosmos DB database account with the provided name. - PUTMongoDBResources_UpdateMongoDBCollectionThroughput
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/mongodbDatabases/:databaseName/collections/:collectionName/throughputSettings/defaultUpdate the RUs per second of an Azure Cosmos DB MongoDB collection - POSTMongoDBResources_MigrateMongoDBCollectionToAutoscale
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/mongodbDatabases/:databaseName/collections/:collectionName/throughputSettings/default/migrateToAutoscaleMigrate an Azure Cosmos DB MongoDB collection from manual throughput to autoscale - POSTMongoDBResources_MigrateMongoDBCollectionToManualThroughput
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/mongodbDatabases/:databaseName/collections/:collectionName/throughputSettings/default/migrateToManualThroughputMigrate an Azure Cosmos DB MongoDB collection from autoscale to manual throughput - GETTableResources_ListTables
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/tablesLists the Tables under an existing Azure Cosmos DB database account. - GETTableResources_GetTable
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/tables/:tableNameGets the Tables under an existing Azure Cosmos DB database account with the provided name. - PUTTableResources_CreateUpdateTable
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/tables/:tableNameCreate or update an Azure Cosmos DB Table - DELETETableResources_DeleteTable
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/tables/:tableNameDeletes an existing Azure Cosmos DB Table. - GETTableResources_GetTableThroughput
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/tables/:tableName/throughputSettings/defaultGets the RUs per second of the Table under an existing Azure Cosmos DB database account with the provided name. - PUTTableResources_UpdateTableThroughput
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/tables/:tableName/throughputSettings/defaultUpdate RUs per second of an Azure Cosmos DB Table - POSTTableResources_MigrateTableToAutoscale
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/tables/:tableName/throughputSettings/default/migrateToAutoscaleMigrate an Azure Cosmos DB Table from manual throughput to autoscale - POSTTableResources_MigrateTableToManualThroughput
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/tables/:tableName/throughputSettings/default/migrateToManualThroughputMigrate an Azure Cosmos DB Table from autoscale to manual throughput - GETCassandraResources_ListCassandraKeyspaces
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/cassandraKeyspacesLists the Cassandra keyspaces under an existing Azure Cosmos DB database account. - GETCassandraResources_GetCassandraKeyspace
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/cassandraKeyspaces/:keyspaceNameGets the Cassandra keyspaces under an existing Azure Cosmos DB database account with the provided name. - PUTCassandraResources_CreateUpdateCassandraKeyspace
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/cassandraKeyspaces/:keyspaceNameCreate or update an Azure Cosmos DB Cassandra keyspace - DELETECassandraResources_DeleteCassandraKeyspace
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/cassandraKeyspaces/:keyspaceNameDeletes an existing Azure Cosmos DB Cassandra keyspace. - GETCassandraResources_GetCassandraKeyspaceThroughput
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/cassandraKeyspaces/:keyspaceName/throughputSettings/defaultGets the RUs per second of the Cassandra Keyspace under an existing Azure Cosmos DB database account with the provided name. - PUTCassandraResources_UpdateCassandraKeyspaceThroughput
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/cassandraKeyspaces/:keyspaceName/throughputSettings/defaultUpdate RUs per second of an Azure Cosmos DB Cassandra Keyspace - POSTCassandraResources_MigrateCassandraKeyspaceToAutoscale
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/cassandraKeyspaces/:keyspaceName/throughputSettings/default/migrateToAutoscaleMigrate an Azure Cosmos DB Cassandra Keyspace from manual throughput to autoscale - POSTCassandraResources_MigrateCassandraKeyspaceToManualThroughput
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/cassandraKeyspaces/:keyspaceName/throughputSettings/default/migrateToManualThroughputMigrate an Azure Cosmos DB Cassandra Keyspace from autoscale to manual throughput - GETCassandraResources_ListCassandraTables
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/cassandraKeyspaces/:keyspaceName/tablesLists the Cassandra table under an existing Azure Cosmos DB database account. - GETCassandraResources_GetCassandraTable
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/cassandraKeyspaces/:keyspaceName/tables/:tableNameGets the Cassandra table under an existing Azure Cosmos DB database account. - PUTCassandraResources_CreateUpdateCassandraTable
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/cassandraKeyspaces/:keyspaceName/tables/:tableNameCreate or update an Azure Cosmos DB Cassandra Table - DELETECassandraResources_DeleteCassandraTable
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/cassandraKeyspaces/:keyspaceName/tables/:tableNameDeletes an existing Azure Cosmos DB Cassandra table. - GETCassandraResources_GetCassandraTableThroughput
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/cassandraKeyspaces/:keyspaceName/tables/:tableName/throughputSettings/defaultGets the RUs per second of the Cassandra table under an existing Azure Cosmos DB database account with the provided name. - PUTCassandraResources_UpdateCassandraTableThroughput
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/cassandraKeyspaces/:keyspaceName/tables/:tableName/throughputSettings/defaultUpdate RUs per second of an Azure Cosmos DB Cassandra table - POSTCassandraResources_MigrateCassandraTableToAutoscale
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/cassandraKeyspaces/:keyspaceName/tables/:tableName/throughputSettings/default/migrateToAutoscaleMigrate an Azure Cosmos DB Cassandra table from manual throughput to autoscale - POSTCassandraResources_MigrateCassandraTableToManualThroughput
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/cassandraKeyspaces/:keyspaceName/tables/:tableName/throughputSettings/default/migrateToManualThroughputMigrate an Azure Cosmos DB Cassandra table from autoscale to manual throughput - GETGremlinResources_ListGremlinDatabases
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/gremlinDatabasesLists the Gremlin databases under an existing Azure Cosmos DB database account. - GETGremlinResources_GetGremlinDatabase
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/gremlinDatabases/:databaseNameGets the Gremlin databases under an existing Azure Cosmos DB database account with the provided name. - PUTGremlinResources_CreateUpdateGremlinDatabase
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/gremlinDatabases/:databaseNameCreate or update an Azure Cosmos DB Gremlin database - DELETEGremlinResources_DeleteGremlinDatabase
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/gremlinDatabases/:databaseNameDeletes an existing Azure Cosmos DB Gremlin database. - GETGremlinResources_GetGremlinDatabaseThroughput
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/gremlinDatabases/:databaseName/throughputSettings/defaultGets the RUs per second of the Gremlin database under an existing Azure Cosmos DB database account with the provided name. - PUTGremlinResources_UpdateGremlinDatabaseThroughput
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/gremlinDatabases/:databaseName/throughputSettings/defaultUpdate RUs per second of an Azure Cosmos DB Gremlin database - POSTGremlinResources_MigrateGremlinDatabaseToAutoscale
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/gremlinDatabases/:databaseName/throughputSettings/default/migrateToAutoscaleMigrate an Azure Cosmos DB Gremlin database from manual throughput to autoscale - POSTGremlinResources_MigrateGremlinDatabaseToManualThroughput
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/gremlinDatabases/:databaseName/throughputSettings/default/migrateToManualThroughputMigrate an Azure Cosmos DB Gremlin database from autoscale to manual throughput - GETGremlinResources_ListGremlinGraphs
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/gremlinDatabases/:databaseName/graphsLists the Gremlin graph under an existing Azure Cosmos DB database account. - GETGremlinResources_GetGremlinGraph
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/gremlinDatabases/:databaseName/graphs/:graphNameGets the Gremlin graph under an existing Azure Cosmos DB database account. - PUTGremlinResources_CreateUpdateGremlinGraph
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/gremlinDatabases/:databaseName/graphs/:graphNameCreate or update an Azure Cosmos DB Gremlin graph - DELETEGremlinResources_DeleteGremlinGraph
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/gremlinDatabases/:databaseName/graphs/:graphNameDeletes an existing Azure Cosmos DB Gremlin graph. - GETGremlinResources_GetGremlinGraphThroughput
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/gremlinDatabases/:databaseName/graphs/:graphName/throughputSettings/defaultGets the Gremlin graph throughput under an existing Azure Cosmos DB database account with the provided name. - PUTGremlinResources_UpdateGremlinGraphThroughput
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/gremlinDatabases/:databaseName/graphs/:graphName/throughputSettings/defaultUpdate RUs per second of an Azure Cosmos DB Gremlin graph - POSTGremlinResources_MigrateGremlinGraphToAutoscale
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/gremlinDatabases/:databaseName/graphs/:graphName/throughputSettings/default/migrateToAutoscaleMigrate an Azure Cosmos DB Gremlin graph from manual throughput to autoscale - POSTGremlinResources_MigrateGremlinGraphToManualThroughput
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/:accountName/gremlinDatabases/:databaseName/graphs/:graphName/throughputSettings/default/migrateToManualThroughputMigrate an Azure Cosmos DB Gremlin graph from autoscale to manual throughput - GETLocations_List
/subscriptions/:subscriptionId/providers/Microsoft.DocumentDB/locationsList Cosmos DB locations and their properties - GETLocations_Get
/subscriptions/:subscriptionId/providers/Microsoft.DocumentDB/locations/:locationGet the properties of an existing Cosmos DB location
API details
- Base URL
https://management.azure.com- Authentication
- OAuth 2.0 (implicit flow) with 1 scope
- Operations
- 124 operations on 86 pathsGET 61POST 25PUT 23DELETE 13HEAD 1PATCH 1
- Main resources
- Operations 1
- Response formats
application/json- Description format
- Swagger 2.0, API version
2025-10-15 - Links
- OpenAPI document
How to test the Azure Cosmos DB (2025-10-15) in Swastik Codes
- Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
- Fork it into your workspaceChoose a workspace. You get your own copy of the Azure Cosmos DB (2025-10-15) collection, without the publisher's secrets.
- Add your credentialsThis API uses OAuth 2.0 (implicit flow) with 1 scope. Add yours in the collection's variables or an environment; the requests already reference it.
- Send a requestPick an endpoint, for example “Operations_List” (GET /providers/Microsoft.DocumentDB/operations), and press Send. Check the response, add tests and run the whole collection with the runner.
Frequently asked questions
What is the Azure Cosmos DB (2025-10-15)?
Azure Cosmos DB Database Service Resource Provider REST API It is listed under Data & analytics and has 124 endpoints.
Who publishes the Azure Cosmos DB (2025-10-15)?
It is listed from Microsoft Azure's public API description (an OpenAPI document), not published by Microsoft Azure on Swastik Codes. Anyone who controls azure.com can claim the profile by adding a DNS TXT record.
What is the base URL of the Azure Cosmos DB (2025-10-15)?
Requests go to https://management.azure.com. Endpoint paths are added to this base URL.
How do I authenticate with the Azure Cosmos DB (2025-10-15)?
With OAuth 2.0 (implicit flow) with 1 scope.
How many endpoints does the Azure Cosmos DB (2025-10-15) have?
124 operations on 86 paths (61 GET, 25 POST, 23 PUT, 13 DELETE, 1 HEAD, 1 PATCH). The largest groups are Operations.
Is forking the Azure Cosmos DB (2025-10-15) free?
Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.