Microsoft.DocumentDB (stable:2016-03-31)

2025/10/23 • 89 new, 89 deleted methods

DatabaseAccounts_Get (new)
Description Retrieves the properties of an existing Azure Cosmos DB database account.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
api-version: string ,
}

⚐ Response (200)

{
kind: enum ,
properties:
{
provisioningState: string ,
documentEndpoint: string ,
databaseAccountOfferType: enum ,
ipRangeFilter: string ,
isVirtualNetworkFilterEnabled: boolean ,
enableAutomaticFailover: boolean ,
consistencyPolicy:
{
defaultConsistencyLevel: enum ,
maxStalenessPrefix: integer ,
maxIntervalInSeconds: integer ,
}
,
capabilities:
[
{
name: string ,
}
,
]
,
writeLocations:
[
{
id: string ,
locationName: string ,
documentEndpoint: string ,
provisioningState: string ,
failoverPriority: integer ,
isZoneRedundant: boolean ,
}
,
]
,
readLocations:
[
{
id: string ,
locationName: string ,
documentEndpoint: string ,
provisioningState: string ,
failoverPriority: integer ,
isZoneRedundant: boolean ,
}
,
]
,
failoverPolicies:
[
{
id: string ,
locationName: string ,
failoverPriority: integer ,
}
,
]
,
virtualNetworkRules:
[
{
id: string ,
ignoreMissingVNetServiceEndpoint: boolean ,
}
,
]
,
enableMultipleWriteLocations: boolean ,
enableCassandraConnector: boolean ,
connectorOffer: enum ,
}
,
}
DatabaseAccounts_Patch (new)
Description Patches the properties of an existing Azure Cosmos DB database account.
Reference Link ¶

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
api-version: string ,
updateParameters:
{
tags: object ,
properties:
{
capabilities:
[
{
name: string ,
}
,
]
,
}
,
}
,
}

⚐ Response (200)

{
kind: enum ,
properties:
{
provisioningState: string ,
documentEndpoint: string ,
databaseAccountOfferType: enum ,
ipRangeFilter: string ,
isVirtualNetworkFilterEnabled: boolean ,
enableAutomaticFailover: boolean ,
consistencyPolicy:
{
defaultConsistencyLevel: enum ,
maxStalenessPrefix: integer ,
maxIntervalInSeconds: integer ,
}
,
capabilities:
[
{
name: string ,
}
,
]
,
writeLocations:
[
{
id: string ,
locationName: string ,
documentEndpoint: string ,
provisioningState: string ,
failoverPriority: integer ,
isZoneRedundant: boolean ,
}
,
]
,
readLocations:
[
{
id: string ,
locationName: string ,
documentEndpoint: string ,
provisioningState: string ,
failoverPriority: integer ,
isZoneRedundant: boolean ,
}
,
]
,
failoverPolicies:
[
{
id: string ,
locationName: string ,
failoverPriority: integer ,
}
,
]
,
virtualNetworkRules:
[
{
id: string ,
ignoreMissingVNetServiceEndpoint: boolean ,
}
,
]
,
enableMultipleWriteLocations: boolean ,
enableCassandraConnector: boolean ,
connectorOffer: enum ,
}
,
}
DatabaseAccounts_CreateOrUpdate (new)
Description Creates or updates an Azure Cosmos DB database account.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
api-version: string ,
createUpdateParameters:
{
kind: enum ,
properties:
{
consistencyPolicy:
{
defaultConsistencyLevel: enum ,
maxStalenessPrefix: integer ,
maxIntervalInSeconds: integer ,
}
,
locations:
[
{
id: string ,
locationName: string ,
documentEndpoint: string ,
provisioningState: string ,
failoverPriority: integer ,
isZoneRedundant: boolean ,
}
,
]
,
databaseAccountOfferType: enum ,
ipRangeFilter: string ,
isVirtualNetworkFilterEnabled: boolean ,
enableAutomaticFailover: boolean ,
capabilities:
[
{
name: string ,
}
,
]
,
virtualNetworkRules:
[
{
id: string ,
ignoreMissingVNetServiceEndpoint: boolean ,
}
,
]
,
enableMultipleWriteLocations: boolean ,
enableCassandraConnector: boolean ,
connectorOffer: enum ,
}
,
}
,
}

⚐ Response (200)

{
kind: enum ,
properties:
{
provisioningState: string ,
documentEndpoint: string ,
databaseAccountOfferType: enum ,
ipRangeFilter: string ,
isVirtualNetworkFilterEnabled: boolean ,
enableAutomaticFailover: boolean ,
consistencyPolicy:
{
defaultConsistencyLevel: enum ,
maxStalenessPrefix: integer ,
maxIntervalInSeconds: integer ,
}
,
capabilities:
[
{
name: string ,
}
,
]
,
writeLocations:
[
{
id: string ,
locationName: string ,
documentEndpoint: string ,
provisioningState: string ,
failoverPriority: integer ,
isZoneRedundant: boolean ,
}
,
]
,
readLocations:
[
{
id: string ,
locationName: string ,
documentEndpoint: string ,
provisioningState: string ,
failoverPriority: integer ,
isZoneRedundant: boolean ,
}
,
]
,
failoverPolicies:
[
{
id: string ,
locationName: string ,
failoverPriority: integer ,
}
,
]
,
virtualNetworkRules:
[
{
id: string ,
ignoreMissingVNetServiceEndpoint: boolean ,
}
,
]
,
enableMultipleWriteLocations: boolean ,
enableCassandraConnector: boolean ,
connectorOffer: enum ,
}
,
}
DatabaseAccounts_Delete (new)
Description Deletes an existing Azure Cosmos DB database account.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
api-version: string ,
}

⚐ Response (202)

{}

⚐ Response (204)

{}
DatabaseAccounts_FailoverPriorityChange (new)
Description Changes 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 priority = (total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/failoverPriorityChange
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
api-version: string ,
failoverParameters:
{
failoverPolicies:
[
{
id: string ,
locationName: string ,
failoverPriority: integer ,
}
,
]
,
}
,
}

⚐ Response (202)

{}

⚐ Response (204)

{}
DatabaseAccounts_List (new)
Description Lists all the Azure Cosmos DB database accounts available under the subscription.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/databaseAccounts
{
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
kind: enum ,
properties:
{
provisioningState: string ,
documentEndpoint: string ,
databaseAccountOfferType: enum ,
ipRangeFilter: string ,
isVirtualNetworkFilterEnabled: boolean ,
enableAutomaticFailover: boolean ,
consistencyPolicy:
{
defaultConsistencyLevel: enum ,
maxStalenessPrefix: integer ,
maxIntervalInSeconds: integer ,
}
,
capabilities:
[
{
name: string ,
}
,
]
,
writeLocations:
[
{
id: string ,
locationName: string ,
documentEndpoint: string ,
provisioningState: string ,
failoverPriority: integer ,
isZoneRedundant: boolean ,
}
,
]
,
readLocations:
[
{
id: string ,
locationName: string ,
documentEndpoint: string ,
provisioningState: string ,
failoverPriority: integer ,
isZoneRedundant: boolean ,
}
,
]
,
failoverPolicies:
[
{
id: string ,
locationName: string ,
failoverPriority: integer ,
}
,
]
,
virtualNetworkRules:
[
{
id: string ,
ignoreMissingVNetServiceEndpoint: boolean ,
}
,
]
,
enableMultipleWriteLocations: boolean ,
enableCassandraConnector: boolean ,
connectorOffer: enum ,
}
,
}
,
]
,
}
DatabaseAccounts_ListByResourceGroup (new)
Description Lists all the Azure Cosmos DB database accounts available under the given resource group.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts
{
resourceGroupName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
kind: enum ,
properties:
{
provisioningState: string ,
documentEndpoint: string ,
databaseAccountOfferType: enum ,
ipRangeFilter: string ,
isVirtualNetworkFilterEnabled: boolean ,
enableAutomaticFailover: boolean ,
consistencyPolicy:
{
defaultConsistencyLevel: enum ,
maxStalenessPrefix: integer ,
maxIntervalInSeconds: integer ,
}
,
capabilities:
[
{
name: string ,
}
,
]
,
writeLocations:
[
{
id: string ,
locationName: string ,
documentEndpoint: string ,
provisioningState: string ,
failoverPriority: integer ,
isZoneRedundant: boolean ,
}
,
]
,
readLocations:
[
{
id: string ,
locationName: string ,
documentEndpoint: string ,
provisioningState: string ,
failoverPriority: integer ,
isZoneRedundant: boolean ,
}
,
]
,
failoverPolicies:
[
{
id: string ,
locationName: string ,
failoverPriority: integer ,
}
,
]
,
virtualNetworkRules:
[
{
id: string ,
ignoreMissingVNetServiceEndpoint: boolean ,
}
,
]
,
enableMultipleWriteLocations: boolean ,
enableCassandraConnector: boolean ,
connectorOffer: enum ,
}
,
}
,
]
,
}
DatabaseAccounts_ListKeys (new)
Description Lists the access keys for the specified Azure Cosmos DB database account.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/listKeys
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
api-version: string ,
}

⚐ Response (200)

{
primaryMasterKey: string ,
secondaryMasterKey: string ,
}
DatabaseAccounts_ListConnectionStrings (new)
Description Lists the connection strings for the specified Azure Cosmos DB database account.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/listConnectionStrings
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
api-version: string ,
}

⚐ Response (200)

{
connectionStrings:
[
{
connectionString: string ,
description: string ,
}
,
]
,
}
DatabaseAccounts_OfflineRegion (new)
Description Offline the specified region for the specified Azure Cosmos DB database account.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/offlineRegion
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
api-version: string ,
regionParameterForOffline:
{
region: string ,
}
,
}

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (default)

{
code: string ,
message: string ,
}
DatabaseAccounts_OnlineRegion (new)
Description Online the specified region for the specified Azure Cosmos DB database account.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/onlineRegion
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
api-version: string ,
regionParameterForOnline:
{
region: string ,
}
,
}

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (default)

{
code: string ,
message: string ,
}
DatabaseAccounts_GetReadOnlyKeys (new)
Description Lists the read-only access keys for the specified Azure Cosmos DB database account.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/readonlykeys
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
api-version: string ,
}

⚐ Response (200)

{
primaryReadonlyMasterKey: string ,
secondaryReadonlyMasterKey: string ,
}
DatabaseAccounts_ListReadOnlyKeys (new)
Description Lists the read-only access keys for the specified Azure Cosmos DB database account.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/readonlykeys
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
api-version: string ,
}

⚐ Response (200)

{
primaryReadonlyMasterKey: string ,
secondaryReadonlyMasterKey: string ,
}
DatabaseAccounts_RegenerateKey (new)
Description Regenerates an access key for the specified Azure Cosmos DB database account.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/regenerateKey
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
api-version: string ,
keyToRegenerate:
{
keyKind: enum ,
}
,
}

⚐ Response (200)

{}

⚐ Response (202)

{}
DatabaseAccounts_CheckNameExists (new)
Description Checks that the Azure Cosmos DB account name already exists. A valid account name may contain only lowercase letters, numbers, and the '-' character, and must be between 3 and 50 characters.
Reference Link ¶

⚼ Request

HEAD:  /providers/Microsoft.DocumentDB/databaseAccountNames/{accountName}
{
accountName: string ,
api-version: string ,
}

⚐ Response (200)

{}

⚐ Response (404)

{}
Operations_List (new)
Description Lists all of the available Cosmos DB Resource Provider operations.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.DocumentDB/operations
{
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
name: string ,
display:
{
Provider: string ,
Resource: string ,
Operation: string ,
Description: string ,
}
,
}
,
]
,
nextLink: string ,
}
DatabaseAccounts_ListMetrics (new)
Description Retrieves the metrics determined by the given filter for the given database account.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/metrics
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
api-version: string ,
$filter: string ,
}

⚐ Response (200)

{
value:
[
{
startTime: string ,
endTime: string ,
timeGrain: string ,
unit: enum ,
name:
{
value: string ,
localizedValue: string ,
}
,
metricValues:
[
{
_count: number ,
average: number ,
maximum: number ,
minimum: number ,
timestamp: string ,
total: number ,
}
,
]
,
}
,
]
,
}
Database_ListMetrics (new)
Description Retrieves the metrics determined by the given filter for the given database account and database.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/databases/{databaseRid}/metrics
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseRid: string ,
api-version: string ,
$filter: string ,
}

⚐ Response (200)

{
value:
[
{
startTime: string ,
endTime: string ,
timeGrain: string ,
unit: enum ,
name:
{
value: string ,
localizedValue: string ,
}
,
metricValues:
[
{
_count: number ,
average: number ,
maximum: number ,
minimum: number ,
timestamp: string ,
total: number ,
}
,
]
,
}
,
]
,
}
Collection_ListMetrics (new)
Description Retrieves the metrics determined by the given filter for the given database account and collection.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/databases/{databaseRid}/collections/{collectionRid}/metrics
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseRid: string ,
collectionRid: string ,
api-version: string ,
$filter: string ,
}

⚐ Response (200)

{
value:
[
{
startTime: string ,
endTime: string ,
timeGrain: string ,
unit: enum ,
name:
{
value: string ,
localizedValue: string ,
}
,
metricValues:
[
{
_count: number ,
average: number ,
maximum: number ,
minimum: number ,
timestamp: string ,
total: number ,
}
,
]
,
}
,
]
,
}
CollectionRegion_ListMetrics (new)
Description Retrieves the metrics determined by the given filter for the given database account, collection and region.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/region/{region}/databases/{databaseRid}/collections/{collectionRid}/metrics
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
region: string ,
databaseRid: string ,
collectionRid: string ,
api-version: string ,
$filter: string ,
}

⚐ Response (200)

{
value:
[
{
startTime: string ,
endTime: string ,
timeGrain: string ,
unit: enum ,
name:
{
value: string ,
localizedValue: string ,
}
,
metricValues:
[
{
_count: number ,
average: number ,
maximum: number ,
minimum: number ,
timestamp: string ,
total: number ,
}
,
]
,
}
,
]
,
}
DatabaseAccountRegion_ListMetrics (new)
Description Retrieves the metrics determined by the given filter for the given database account and region.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/region/{region}/metrics
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
region: string ,
api-version: string ,
$filter: string ,
}

⚐ Response (200)

{
value:
[
{
startTime: string ,
endTime: string ,
timeGrain: string ,
unit: enum ,
name:
{
value: string ,
localizedValue: string ,
}
,
metricValues:
[
{
_count: number ,
average: number ,
maximum: number ,
minimum: number ,
timestamp: string ,
total: number ,
}
,
]
,
}
,
]
,
}
PercentileSourceTarget_ListMetrics (new)
Description Retrieves 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
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sourceRegion/{sourceRegion}/targetRegion/{targetRegion}/percentile/metrics
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
sourceRegion: string ,
targetRegion: string ,
api-version: string ,
$filter: string ,
}

⚐ Response (200)

{
value:
[
{
startTime: string ,
endTime: string ,
timeGrain: string ,
unit: enum ,
name:
{
value: string ,
localizedValue: string ,
}
,
metricValues:
[
{
P10: number ,
P25: number ,
P50: number ,
P75: number ,
P90: number ,
P95: number ,
P99: number ,
}
,
]
,
}
,
]
,
}
PercentileTarget_ListMetrics (new)
Description Retrieves the metrics determined by the given filter for the given account target region. This url is only for PBS and Replication Latency data
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/targetRegion/{targetRegion}/percentile/metrics
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
targetRegion: string ,
api-version: string ,
$filter: string ,
}

⚐ Response (200)

{
value:
[
{
startTime: string ,
endTime: string ,
timeGrain: string ,
unit: enum ,
name:
{
value: string ,
localizedValue: string ,
}
,
metricValues:
[
{
P10: number ,
P25: number ,
P50: number ,
P75: number ,
P90: number ,
P95: number ,
P99: number ,
}
,
]
,
}
,
]
,
}
Percentile_ListMetrics (new)
Description Retrieves the metrics determined by the given filter for the given database account. This url is only for PBS and Replication Latency data
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/percentile/metrics
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
api-version: string ,
$filter: string ,
}

⚐ Response (200)

{
value:
[
{
startTime: string ,
endTime: string ,
timeGrain: string ,
unit: enum ,
name:
{
value: string ,
localizedValue: string ,
}
,
metricValues:
[
{
P10: number ,
P25: number ,
P50: number ,
P75: number ,
P90: number ,
P95: number ,
P99: number ,
}
,
]
,
}
,
]
,
}
CollectionPartitionRegion_ListMetrics (new)
Description Retrieves the metrics determined by the given filter for the given collection and region, split by partition.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/region/{region}/databases/{databaseRid}/collections/{collectionRid}/partitions/metrics
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
region: string ,
databaseRid: string ,
collectionRid: string ,
api-version: string ,
$filter: string ,
}

⚐ Response (200)

{
value:
[
{
partitionId: string ,
partitionKeyRangeId: string ,
}
,
]
,
}
CollectionPartition_ListMetrics (new)
Description Retrieves the metrics determined by the given filter for the given collection, split by partition.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/databases/{databaseRid}/collections/{collectionRid}/partitions/metrics
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseRid: string ,
collectionRid: string ,
api-version: string ,
$filter: string ,
}

⚐ Response (200)

{
value:
[
{
partitionId: string ,
partitionKeyRangeId: string ,
}
,
]
,
}
PartitionKeyRangeId_ListMetrics (new)
Description Retrieves the metrics determined by the given filter for the given partition key range id.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/databases/{databaseRid}/collections/{collectionRid}/partitionKeyRangeId/{partitionKeyRangeId}/metrics
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseRid: string ,
collectionRid: string ,
partitionKeyRangeId: string ,
api-version: string ,
$filter: string ,
}

⚐ Response (200)

{
value:
[
{
partitionId: string ,
partitionKeyRangeId: string ,
}
,
]
,
}
PartitionKeyRangeIdRegion_ListMetrics (new)
Description Retrieves the metrics determined by the given filter for the given partition key range id and region.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/region/{region}/databases/{databaseRid}/collections/{collectionRid}/partitionKeyRangeId/{partitionKeyRangeId}/metrics
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
region: string ,
databaseRid: string ,
collectionRid: string ,
partitionKeyRangeId: string ,
api-version: string ,
$filter: string ,
}

⚐ Response (200)

{
value:
[
{
partitionId: string ,
partitionKeyRangeId: string ,
}
,
]
,
}
DatabaseAccounts_ListUsages (new)
Description Retrieves the usages (most recent data) for the given database account.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/usages
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
api-version: string ,
$filter: string ,
}

⚐ Response (200)

{
value:
[
{
unit: enum ,
name:
{
value: string ,
localizedValue: string ,
}
,
quotaPeriod: string ,
limit: integer ,
currentValue: integer ,
}
,
]
,
}
Database_ListUsages (new)
Description Retrieves the usages (most recent data) for the given database.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/databases/{databaseRid}/usages
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseRid: string ,
api-version: string ,
$filter: string ,
}

⚐ Response (200)

{
value:
[
{
unit: enum ,
name:
{
value: string ,
localizedValue: string ,
}
,
quotaPeriod: string ,
limit: integer ,
currentValue: integer ,
}
,
]
,
}
Collection_ListUsages (new)
Description Retrieves the usages (most recent storage data) for the given collection.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/databases/{databaseRid}/collections/{collectionRid}/usages
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseRid: string ,
collectionRid: string ,
api-version: string ,
$filter: string ,
}

⚐ Response (200)

{
value:
[
{
unit: enum ,
name:
{
value: string ,
localizedValue: string ,
}
,
quotaPeriod: string ,
limit: integer ,
currentValue: integer ,
}
,
]
,
}
CollectionPartition_ListUsages (new)
Description Retrieves the usages (most recent storage data) for the given collection, split by partition.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/databases/{databaseRid}/collections/{collectionRid}/partitions/usages
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseRid: string ,
collectionRid: string ,
api-version: string ,
$filter: string ,
}

⚐ Response (200)

{
value:
[
{
partitionId: string ,
partitionKeyRangeId: string ,
}
,
]
,
}
Database_ListMetricDefinitions (new)
Description Retrieves metric definitions for the given database.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/databases/{databaseRid}/metricDefinitions
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseRid: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
metricAvailabilities:
[
{
timeGrain: string ,
retention: string ,
}
,
]
,
primaryAggregationType: enum ,
unit: enum ,
resourceUri: string ,
name:
{
value: string ,
localizedValue: string ,
}
,
}
,
]
,
}
Collection_ListMetricDefinitions (new)
Description Retrieves metric definitions for the given collection.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/databases/{databaseRid}/collections/{collectionRid}/metricDefinitions
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseRid: string ,
collectionRid: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
metricAvailabilities:
[
{
timeGrain: string ,
retention: string ,
}
,
]
,
primaryAggregationType: enum ,
unit: enum ,
resourceUri: string ,
name:
{
value: string ,
localizedValue: string ,
}
,
}
,
]
,
}
DatabaseAccounts_ListMetricDefinitions (new)
Description Retrieves metric definitions for the given database account.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/metricDefinitions
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
metricAvailabilities:
[
{
timeGrain: string ,
retention: string ,
}
,
]
,
primaryAggregationType: enum ,
unit: enum ,
resourceUri: string ,
name:
{
value: string ,
localizedValue: string ,
}
,
}
,
]
,
}
DatabaseAccounts_ListSqlDatabases (new)
Description Lists the SQL databases under an existing Azure Cosmos DB database account.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/sql/databases
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
_colls: string ,
_users: string ,
}
,
}
,
]
,
}
DatabaseAccounts_GetSqlDatabase (new)
Description Gets the SQL database under an existing Azure Cosmos DB database account with the provided name.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/sql/databases/{databaseName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
_colls: string ,
_users: string ,
}
,
}
DatabaseAccounts_CreateUpdateSqlDatabase (new)
Description Create or update an Azure Cosmos DB SQL database
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/sql/databases/{databaseName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
api-version: string ,
createUpdateSqlDatabaseParameters:
{
properties:
{
resource:
{
id: string ,
}
,
options: object ,
}
,
}
,
}

⚐ Response (202)

{}

⚐ Response (200)

{
properties:
{
_colls: string ,
_users: string ,
}
,
}
DatabaseAccounts_DeleteSqlDatabase (new)
Description Deletes an existing Azure Cosmos DB SQL database.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/sql/databases/{databaseName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
api-version: string ,
}

⚐ Response (202)

{}

⚐ Response (204)

{}
DatabaseAccounts_GetSqlDatabaseThroughput (new)
Description Gets the RUs per second of the SQL database under an existing Azure Cosmos DB database account with the provided name.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/sql/databases/{databaseName}/settings/throughput
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties: object ,
}
DatabaseAccounts_UpdateSqlDatabaseThroughput (new)
Description Update RUs per second of an Azure Cosmos DB SQL database
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/sql/databases/{databaseName}/settings/throughput
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
api-version: string ,
updateThroughputParameters:
{
properties:
{
resource:
{
throughput: integer ,
}
,
}
,
}
,
}

⚐ Response (202)

{}

⚐ Response (200)

{
properties: object ,
}
DatabaseAccounts_ListSqlContainers (new)
Description Lists the SQL container under an existing Azure Cosmos DB database account.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/sql/databases/{databaseName}/containers
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties: object ,
}
,
]
,
}
DatabaseAccounts_GetSqlContainer (new)
Description Gets the SQL container under an existing Azure Cosmos DB database account.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/sql/databases/{databaseName}/containers/{containerName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
containerName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties: object ,
}
DatabaseAccounts_CreateUpdateSqlContainer (new)
Description Create or update an Azure Cosmos DB SQL container
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/sql/databases/{databaseName}/containers/{containerName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
containerName: string ,
api-version: string ,
createUpdateSqlContainerParameters:
{
properties:
{
resource:
{
id: string ,
indexingPolicy:
{
automatic: boolean ,
indexingMode: enum ,
includedPaths:
[
{
path: string ,
indexes:
[
{
dataType: enum ,
precision: integer ,
kind: enum ,
}
,
]
,
}
,
]
,
excludedPaths:
[
{
path: string ,
}
,
]
,
}
,
partitionKey:
{
paths:
[
string ,
]
,
kind: enum ,
}
,
defaultTtl: integer ,
uniqueKeyPolicy:
{
uniqueKeys:
[
{
paths:
[
string ,
]
,
}
,
]
,
}
,
conflictResolutionPolicy:
{
mode: enum ,
conflictResolutionPath: string ,
conflictResolutionProcedure: string ,
}
,
}
,
options: object ,
}
,
}
,
}

⚐ Response (202)

{}

⚐ Response (200)

{
properties: object ,
}
DatabaseAccounts_DeleteSqlContainer (new)
Description Deletes an existing Azure Cosmos DB SQL container.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/sql/databases/{databaseName}/containers/{containerName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
containerName: string ,
api-version: string ,
}

⚐ Response (202)

{}

⚐ Response (204)

{}
DatabaseAccounts_GetSqlContainerThroughput (new)
Description Gets the RUs per second of the SQL container under an existing Azure Cosmos DB database account.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/sql/databases/{databaseName}/containers/{containerName}/settings/throughput
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
containerName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties: object ,
}
DatabaseAccounts_UpdateSqlContainerThroughput (new)
Description Update RUs per second of an Azure Cosmos DB SQL container
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/sql/databases/{databaseName}/containers/{containerName}/settings/throughput
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
containerName: string ,
api-version: string ,
updateThroughputParameters:
{
properties:
{
resource:
{
throughput: integer ,
}
,
}
,
}
,
}

⚐ Response (202)

{}

⚐ Response (200)

{
properties: object ,
}
DatabaseAccounts_ListMongoDBDatabases (new)
Description Lists the MongoDB databases under an existing Azure Cosmos DB database account.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/mongodb/databases
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties: object ,
}
,
]
,
}
DatabaseAccounts_GetMongoDBDatabase (new)
Description Gets the MongoDB databases under an existing Azure Cosmos DB database account with the provided name.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/mongodb/databases/{databaseName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties: object ,
}
DatabaseAccounts_CreateUpdateMongoDBDatabase (new)
Description Create or updates Azure Cosmos DB MongoDB database
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/mongodb/databases/{databaseName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
api-version: string ,
createUpdateMongoDBDatabaseParameters:
{
properties:
{
resource:
{
id: string ,
}
,
options: object ,
}
,
}
,
}

⚐ Response (202)

{}

⚐ Response (200)

{
properties: object ,
}
DatabaseAccounts_DeleteMongoDBDatabase (new)
Description Deletes an existing Azure Cosmos DB MongoDB database.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/mongodb/databases/{databaseName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
api-version: string ,
}

⚐ Response (202)

{}

⚐ Response (204)

{}
DatabaseAccounts_GetMongoDBDatabaseThroughput (new)
Description Gets the RUs per second of the MongoDB database under an existing Azure Cosmos DB database account with the provided name.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/mongodb/databases/{databaseName}/settings/throughput
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties: object ,
}
DatabaseAccounts_UpdateMongoDBDatabaseThroughput (new)
Description Update RUs per second of the an Azure Cosmos DB MongoDB database
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/mongodb/databases/{databaseName}/settings/throughput
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
api-version: string ,
updateThroughputParameters:
{
properties:
{
resource:
{
throughput: integer ,
}
,
}
,
}
,
}

⚐ Response (202)

{}

⚐ Response (200)

{
properties: object ,
}
DatabaseAccounts_ListMongoDBCollections (new)
Description Lists the MongoDB collection under an existing Azure Cosmos DB database account.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/mongodb/databases/{databaseName}/collections
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties: object ,
}
,
]
,
}
DatabaseAccounts_GetMongoDBCollection (new)
Description Gets the MongoDB collection under an existing Azure Cosmos DB database account.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/mongodb/databases/{databaseName}/collections/{collectionName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
collectionName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties: object ,
}
DatabaseAccounts_CreateUpdateMongoDBCollection (new)
Description Create or update an Azure Cosmos DB MongoDB Collection
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/mongodb/databases/{databaseName}/collections/{collectionName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
collectionName: string ,
api-version: string ,
createUpdateMongoDBCollectionParameters:
{
properties:
{
resource:
{
id: string ,
shardKey: object ,
indexes:
[
{
key:
{
keys:
[
string ,
]
,
}
,
options:
{
expireAfterSeconds: integer ,
unique: boolean ,
}
,
}
,
]
,
}
,
options: object ,
}
,
}
,
}

⚐ Response (202)

{}

⚐ Response (200)

{
properties: object ,
}
DatabaseAccounts_DeleteMongoDBCollection (new)
Description Deletes an existing Azure Cosmos DB MongoDB Collection.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/mongodb/databases/{databaseName}/collections/{collectionName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
collectionName: string ,
api-version: string ,
}

⚐ Response (202)

{}

⚐ Response (204)

{}
DatabaseAccounts_GetMongoDBCollectionThroughput (new)
Description Gets the RUs per second of the MongoDB collection under an existing Azure Cosmos DB database account with the provided name.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/mongodb/databases/{databaseName}/collections/{collectionName}/settings/throughput
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
collectionName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties: object ,
}
DatabaseAccounts_UpdateMongoDBCollectionThroughput (new)
Description Update the RUs per second of an Azure Cosmos DB MongoDB collection
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/mongodb/databases/{databaseName}/collections/{collectionName}/settings/throughput
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
collectionName: string ,
api-version: string ,
updateThroughputParameters:
{
properties:
{
resource:
{
throughput: integer ,
}
,
}
,
}
,
}

⚐ Response (202)

{}

⚐ Response (200)

{
properties: object ,
}
DatabaseAccounts_ListTables (new)
Description Lists the Tables under an existing Azure Cosmos DB database account.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/table/tables
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties: object ,
}
,
]
,
}
DatabaseAccounts_GetTable (new)
Description Gets the Tables under an existing Azure Cosmos DB database account with the provided name.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/table/tables/{tableName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
tableName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties: object ,
}
DatabaseAccounts_CreateUpdateTable (new)
Description Create or update an Azure Cosmos DB Table
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/table/tables/{tableName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
tableName: string ,
api-version: string ,
createUpdateTableParameters:
{
properties:
{
resource:
{
id: string ,
}
,
options: object ,
}
,
}
,
}

⚐ Response (202)

{}

⚐ Response (200)

{
properties: object ,
}
DatabaseAccounts_DeleteTable (new)
Description Deletes an existing Azure Cosmos DB Table.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/table/tables/{tableName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
tableName: string ,
api-version: string ,
}

⚐ Response (202)

{}

⚐ Response (204)

{}
DatabaseAccounts_GetTableThroughput (new)
Description Gets the RUs per second of the Table under an existing Azure Cosmos DB database account with the provided name.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/table/tables/{tableName}/settings/throughput
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
tableName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties: object ,
}
DatabaseAccounts_UpdateTableThroughput (new)
Description Update RUs per second of an Azure Cosmos DB Table
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/table/tables/{tableName}/settings/throughput
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
tableName: string ,
api-version: string ,
updateThroughputParameters:
{
properties:
{
resource:
{
throughput: integer ,
}
,
}
,
}
,
}

⚐ Response (202)

{}

⚐ Response (200)

{
properties: object ,
}
DatabaseAccounts_ListCassandraKeyspaces (new)
Description Lists the Cassandra keyspaces under an existing Azure Cosmos DB database account.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/cassandra/keyspaces
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties: object ,
}
,
]
,
}
DatabaseAccounts_GetCassandraKeyspace (new)
Description Gets the Cassandra keyspaces under an existing Azure Cosmos DB database account with the provided name.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/cassandra/keyspaces/{keyspaceName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
keyspaceName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties: object ,
}
DatabaseAccounts_CreateUpdateCassandraKeyspace (new)
Description Create or update an Azure Cosmos DB Cassandra keyspace
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/cassandra/keyspaces/{keyspaceName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
keyspaceName: string ,
api-version: string ,
createUpdateCassandraKeyspaceParameters:
{
properties:
{
resource:
{
id: string ,
}
,
options: object ,
}
,
}
,
}

⚐ Response (202)

{}

⚐ Response (200)

{
properties: object ,
}
DatabaseAccounts_DeleteCassandraKeyspace (new)
Description Deletes an existing Azure Cosmos DB Cassandra keyspace.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/cassandra/keyspaces/{keyspaceName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
keyspaceName: string ,
api-version: string ,
}

⚐ Response (202)

{}

⚐ Response (204)

{}
DatabaseAccounts_GetCassandraKeyspaceThroughput (new)
Description Gets the RUs per second of the Cassandra Keyspace under an existing Azure Cosmos DB database account with the provided name.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/cassandra/keyspaces/{keyspaceName}/settings/throughput
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
keyspaceName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties: object ,
}
DatabaseAccounts_UpdateCassandraKeyspaceThroughput (new)
Description Update RUs per second of an Azure Cosmos DB Cassandra Keyspace
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/cassandra/keyspaces/{keyspaceName}/settings/throughput
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
keyspaceName: string ,
api-version: string ,
updateThroughputParameters:
{
properties:
{
resource:
{
throughput: integer ,
}
,
}
,
}
,
}

⚐ Response (202)

{}

⚐ Response (200)

{
properties: object ,
}
DatabaseAccounts_ListCassandraTables (new)
Description Lists the Cassandra table under an existing Azure Cosmos DB database account.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/cassandra/keyspaces/{keyspaceName}/tables
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
keyspaceName: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties: object ,
}
,
]
,
}
DatabaseAccounts_GetCassandraTable (new)
Description Gets the Cassandra table under an existing Azure Cosmos DB database account.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/cassandra/keyspaces/{keyspaceName}/tables/{tableName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
keyspaceName: string ,
tableName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties: object ,
}
DatabaseAccounts_CreateUpdateCassandraTable (new)
Description Create or update an Azure Cosmos DB Cassandra Table
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/cassandra/keyspaces/{keyspaceName}/tables/{tableName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
keyspaceName: string ,
tableName: string ,
api-version: string ,
createUpdateCassandraTableParameters:
{
properties:
{
resource:
{
id: string ,
defaultTtl: integer ,
schema:
{
columns:
[
{
name: string ,
type: string ,
}
,
]
,
partitionKeys:
[
{
name: string ,
}
,
]
,
clusterKeys:
[
{
name: string ,
orderBy: string ,
}
,
]
,
}
,
}
,
options: object ,
}
,
}
,
}

⚐ Response (202)

{}

⚐ Response (200)

{
properties: object ,
}
DatabaseAccounts_DeleteCassandraTable (new)
Description Deletes an existing Azure Cosmos DB Cassandra table.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/cassandra/keyspaces/{keyspaceName}/tables/{tableName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
keyspaceName: string ,
tableName: string ,
api-version: string ,
}

⚐ Response (202)

{}

⚐ Response (204)

{}
DatabaseAccounts_GetCassandraTableThroughput (new)
Description Gets the RUs per second of the Cassandra table under an existing Azure Cosmos DB database account with the provided name.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/cassandra/keyspaces/{keyspaceName}/tables/{tableName}/settings/throughput
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
keyspaceName: string ,
tableName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties: object ,
}
DatabaseAccounts_UpdateCassandraTableThroughput (new)
Description Update RUs per second of an Azure Cosmos DB Cassandra table
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/cassandra/keyspaces/{keyspaceName}/tables/{tableName}/settings/throughput
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
keyspaceName: string ,
tableName: string ,
api-version: string ,
updateThroughputParameters:
{
properties:
{
resource:
{
throughput: integer ,
}
,
}
,
}
,
}

⚐ Response (202)

{}

⚐ Response (200)

{
properties: object ,
}
DatabaseAccounts_ListGremlinDatabases (new)
Description Lists the Gremlin databases under an existing Azure Cosmos DB database account.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/gremlin/databases
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
_rid: string ,
_ts: string ,
_etag: string ,
}
,
}
,
]
,
}
DatabaseAccounts_GetGremlinDatabase (new)
Description Gets the Gremlin databases under an existing Azure Cosmos DB database account with the provided name.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/gremlin/databases/{databaseName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
_rid: string ,
_ts: string ,
_etag: string ,
}
,
}
DatabaseAccounts_CreateUpdateGremlinDatabase (new)
Description Create or update an Azure Cosmos DB Gremlin database
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/gremlin/databases/{databaseName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
api-version: string ,
createUpdateGremlinDatabaseParameters:
{
properties:
{
resource:
{
id: string ,
}
,
options: object ,
}
,
}
,
}

⚐ Response (202)

{}

⚐ Response (200)

{
properties:
{
_rid: string ,
_ts: string ,
_etag: string ,
}
,
}
DatabaseAccounts_DeleteGremlinDatabase (new)
Description Deletes an existing Azure Cosmos DB Gremlin database.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/gremlin/databases/{databaseName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
api-version: string ,
}

⚐ Response (202)

{}

⚐ Response (204)

{}
DatabaseAccounts_GetGremlinDatabaseThroughput (new)
Description Gets the RUs per second of the Gremlin database under an existing Azure Cosmos DB database account with the provided name.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/gremlin/databases/{databaseName}/settings/throughput
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties: object ,
}
DatabaseAccounts_UpdateGremlinDatabaseThroughput (new)
Description Update RUs per second of an Azure Cosmos DB Gremlin database
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/gremlin/databases/{databaseName}/settings/throughput
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
api-version: string ,
updateThroughputParameters:
{
properties:
{
resource:
{
throughput: integer ,
}
,
}
,
}
,
}

⚐ Response (202)

{}

⚐ Response (200)

{
properties: object ,
}
DatabaseAccounts_ListGremlinGraphs (new)
Description Lists the Gremlin graph under an existing Azure Cosmos DB database account.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/gremlin/databases/{databaseName}/graphs
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties: object ,
}
,
]
,
}
DatabaseAccounts_GetGremlinGraph (new)
Description Gets the Gremlin graph under an existing Azure Cosmos DB database account.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/gremlin/databases/{databaseName}/graphs/{graphName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
graphName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties: object ,
}
DatabaseAccounts_CreateUpdateGremlinGraph (new)
Description Create or update an Azure Cosmos DB Gremlin graph
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/gremlin/databases/{databaseName}/graphs/{graphName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
graphName: string ,
api-version: string ,
createUpdateGremlinGraphParameters:
{
properties:
{
resource:
{
id: string ,
indexingPolicy:
{
automatic: boolean ,
indexingMode: enum ,
includedPaths:
[
{
path: string ,
indexes:
[
{
dataType: enum ,
precision: integer ,
kind: enum ,
}
,
]
,
}
,
]
,
excludedPaths:
[
{
path: string ,
}
,
]
,
}
,
partitionKey:
{
paths:
[
string ,
]
,
kind: enum ,
}
,
defaultTtl: integer ,
uniqueKeyPolicy:
{
uniqueKeys:
[
{
paths:
[
string ,
]
,
}
,
]
,
}
,
conflictResolutionPolicy:
{
mode: enum ,
conflictResolutionPath: string ,
conflictResolutionProcedure: string ,
}
,
}
,
options: object ,
}
,
}
,
}

⚐ Response (202)

{}

⚐ Response (200)

{
properties: object ,
}
DatabaseAccounts_DeleteGremlinGraph (new)
Description Deletes an existing Azure Cosmos DB Gremlin graph.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/gremlin/databases/{databaseName}/graphs/{graphName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
graphName: string ,
api-version: string ,
}

⚐ Response (202)

{}

⚐ Response (204)

{}
DatabaseAccounts_GetGremlinGraphThroughput (new)
Description Gets the Gremlin graph throughput under an existing Azure Cosmos DB database account with the provided name.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/gremlin/databases/{databaseName}/graphs/{graphName}/settings/throughput
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
graphName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties: object ,
}
DatabaseAccounts_UpdateGremlinGraphThroughput (new)
Description Update RUs per second of an Azure Cosmos DB Gremlin graph
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/gremlin/databases/{databaseName}/graphs/{graphName}/settings/throughput
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
graphName: string ,
api-version: string ,
updateThroughputParameters:
{
properties:
{
resource:
{
throughput: integer ,
}
,
}
,
}
,
}

⚐ Response (202)

{}

⚐ Response (200)

{
properties: object ,
}
DatabaseAccounts_Get (removed)
Description Retrieves the properties of an existing Azure Cosmos DB database account.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
api-version: string ,
}

⚐ Response (200)

{
kind: enum ,
properties:
{
provisioningState: string ,
documentEndpoint: string ,
databaseAccountOfferType: enum ,
ipRangeFilter: string ,
isVirtualNetworkFilterEnabled: boolean ,
enableAutomaticFailover: boolean ,
consistencyPolicy:
{
defaultConsistencyLevel: enum ,
maxStalenessPrefix: integer ,
maxIntervalInSeconds: integer ,
}
,
capabilities:
[
{
name: string ,
}
,
]
,
writeLocations:
[
{
id: string ,
locationName: string ,
documentEndpoint: string ,
provisioningState: string ,
failoverPriority: integer ,
isZoneRedundant: boolean ,
}
,
]
,
readLocations:
[
{
id: string ,
locationName: string ,
documentEndpoint: string ,
provisioningState: string ,
failoverPriority: integer ,
isZoneRedundant: boolean ,
}
,
]
,
failoverPolicies:
[
{
id: string ,
locationName: string ,
failoverPriority: integer ,
}
,
]
,
virtualNetworkRules:
[
{
id: string ,
ignoreMissingVNetServiceEndpoint: boolean ,
}
,
]
,
enableMultipleWriteLocations: boolean ,
enableCassandraConnector: boolean ,
connectorOffer: enum ,
}
,
}
DatabaseAccounts_Patch (removed)
Description Patches the properties of an existing Azure Cosmos DB database account.
Reference Link ¶

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
api-version: string ,
updateParameters:
{
tags: object ,
properties:
{
capabilities:
[
{
name: string ,
}
,
]
,
}
,
}
,
}

⚐ Response (200)

{
kind: enum ,
properties:
{
provisioningState: string ,
documentEndpoint: string ,
databaseAccountOfferType: enum ,
ipRangeFilter: string ,
isVirtualNetworkFilterEnabled: boolean ,
enableAutomaticFailover: boolean ,
consistencyPolicy:
{
defaultConsistencyLevel: enum ,
maxStalenessPrefix: integer ,
maxIntervalInSeconds: integer ,
}
,
capabilities:
[
{
name: string ,
}
,
]
,
writeLocations:
[
{
id: string ,
locationName: string ,
documentEndpoint: string ,
provisioningState: string ,
failoverPriority: integer ,
isZoneRedundant: boolean ,
}
,
]
,
readLocations:
[
{
id: string ,
locationName: string ,
documentEndpoint: string ,
provisioningState: string ,
failoverPriority: integer ,
isZoneRedundant: boolean ,
}
,
]
,
failoverPolicies:
[
{
id: string ,
locationName: string ,
failoverPriority: integer ,
}
,
]
,
virtualNetworkRules:
[
{
id: string ,
ignoreMissingVNetServiceEndpoint: boolean ,
}
,
]
,
enableMultipleWriteLocations: boolean ,
enableCassandraConnector: boolean ,
connectorOffer: enum ,
}
,
}
DatabaseAccounts_CreateOrUpdate (removed)
Description Creates or updates an Azure Cosmos DB database account.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
api-version: string ,
createUpdateParameters:
{
kind: enum ,
properties:
{
consistencyPolicy:
{
defaultConsistencyLevel: enum ,
maxStalenessPrefix: integer ,
maxIntervalInSeconds: integer ,
}
,
locations:
[
{
id: string ,
locationName: string ,
documentEndpoint: string ,
provisioningState: string ,
failoverPriority: integer ,
isZoneRedundant: boolean ,
}
,
]
,
databaseAccountOfferType: enum ,
ipRangeFilter: string ,
isVirtualNetworkFilterEnabled: boolean ,
enableAutomaticFailover: boolean ,
capabilities:
[
{
name: string ,
}
,
]
,
virtualNetworkRules:
[
{
id: string ,
ignoreMissingVNetServiceEndpoint: boolean ,
}
,
]
,
enableMultipleWriteLocations: boolean ,
enableCassandraConnector: boolean ,
connectorOffer: enum ,
}
,
}
,
}

⚐ Response (200)

{
kind: enum ,
properties:
{
provisioningState: string ,
documentEndpoint: string ,
databaseAccountOfferType: enum ,
ipRangeFilter: string ,
isVirtualNetworkFilterEnabled: boolean ,
enableAutomaticFailover: boolean ,
consistencyPolicy:
{
defaultConsistencyLevel: enum ,
maxStalenessPrefix: integer ,
maxIntervalInSeconds: integer ,
}
,
capabilities:
[
{
name: string ,
}
,
]
,
writeLocations:
[
{
id: string ,
locationName: string ,
documentEndpoint: string ,
provisioningState: string ,
failoverPriority: integer ,
isZoneRedundant: boolean ,
}
,
]
,
readLocations:
[
{
id: string ,
locationName: string ,
documentEndpoint: string ,
provisioningState: string ,
failoverPriority: integer ,
isZoneRedundant: boolean ,
}
,
]
,
failoverPolicies:
[
{
id: string ,
locationName: string ,
failoverPriority: integer ,
}
,
]
,
virtualNetworkRules:
[
{
id: string ,
ignoreMissingVNetServiceEndpoint: boolean ,
}
,
]
,
enableMultipleWriteLocations: boolean ,
enableCassandraConnector: boolean ,
connectorOffer: enum ,
}
,
}
DatabaseAccounts_Delete (removed)
Description Deletes an existing Azure Cosmos DB database account.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
api-version: string ,
}

⚐ Response (202)

{}

⚐ Response (204)

{}
DatabaseAccounts_FailoverPriorityChange (removed)
Description Changes 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 priority = (total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/failoverPriorityChange
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
api-version: string ,
failoverParameters:
{
failoverPolicies:
[
{
id: string ,
locationName: string ,
failoverPriority: integer ,
}
,
]
,
}
,
}

⚐ Response (202)

{}

⚐ Response (204)

{}
DatabaseAccounts_List (removed)
Description Lists all the Azure Cosmos DB database accounts available under the subscription.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/databaseAccounts
{
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
kind: enum ,
properties:
{
provisioningState: string ,
documentEndpoint: string ,
databaseAccountOfferType: enum ,
ipRangeFilter: string ,
isVirtualNetworkFilterEnabled: boolean ,
enableAutomaticFailover: boolean ,
consistencyPolicy:
{
defaultConsistencyLevel: enum ,
maxStalenessPrefix: integer ,
maxIntervalInSeconds: integer ,
}
,
capabilities:
[
{
name: string ,
}
,
]
,
writeLocations:
[
{
id: string ,
locationName: string ,
documentEndpoint: string ,
provisioningState: string ,
failoverPriority: integer ,
isZoneRedundant: boolean ,
}
,
]
,
readLocations:
[
{
id: string ,
locationName: string ,
documentEndpoint: string ,
provisioningState: string ,
failoverPriority: integer ,
isZoneRedundant: boolean ,
}
,
]
,
failoverPolicies:
[
{
id: string ,
locationName: string ,
failoverPriority: integer ,
}
,
]
,
virtualNetworkRules:
[
{
id: string ,
ignoreMissingVNetServiceEndpoint: boolean ,
}
,
]
,
enableMultipleWriteLocations: boolean ,
enableCassandraConnector: boolean ,
connectorOffer: enum ,
}
,
}
,
]
,
}
DatabaseAccounts_ListByResourceGroup (removed)
Description Lists all the Azure Cosmos DB database accounts available under the given resource group.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts
{
resourceGroupName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
kind: enum ,
properties:
{
provisioningState: string ,
documentEndpoint: string ,
databaseAccountOfferType: enum ,
ipRangeFilter: string ,
isVirtualNetworkFilterEnabled: boolean ,
enableAutomaticFailover: boolean ,
consistencyPolicy:
{
defaultConsistencyLevel: enum ,
maxStalenessPrefix: integer ,
maxIntervalInSeconds: integer ,
}
,
capabilities:
[
{
name: string ,
}
,
]
,
writeLocations:
[
{
id: string ,
locationName: string ,
documentEndpoint: string ,
provisioningState: string ,
failoverPriority: integer ,
isZoneRedundant: boolean ,
}
,
]
,
readLocations:
[
{
id: string ,
locationName: string ,
documentEndpoint: string ,
provisioningState: string ,
failoverPriority: integer ,
isZoneRedundant: boolean ,
}
,
]
,
failoverPolicies:
[
{
id: string ,
locationName: string ,
failoverPriority: integer ,
}
,
]
,
virtualNetworkRules:
[
{
id: string ,
ignoreMissingVNetServiceEndpoint: boolean ,
}
,
]
,
enableMultipleWriteLocations: boolean ,
enableCassandraConnector: boolean ,
connectorOffer: enum ,
}
,
}
,
]
,
}
DatabaseAccounts_ListKeys (removed)
Description Lists the access keys for the specified Azure Cosmos DB database account.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/listKeys
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
api-version: string ,
}

⚐ Response (200)

{
primaryMasterKey: string ,
secondaryMasterKey: string ,
}
DatabaseAccounts_ListConnectionStrings (removed)
Description Lists the connection strings for the specified Azure Cosmos DB database account.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/listConnectionStrings
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
api-version: string ,
}

⚐ Response (200)

{
connectionStrings:
[
{
connectionString: string ,
description: string ,
}
,
]
,
}
DatabaseAccounts_OfflineRegion (removed)
Description Offline the specified region for the specified Azure Cosmos DB database account.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/offlineRegion
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
api-version: string ,
regionParameterForOffline:
{
region: string ,
}
,
}

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (default)

{
code: string ,
message: string ,
}
DatabaseAccounts_OnlineRegion (removed)
Description Online the specified region for the specified Azure Cosmos DB database account.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/onlineRegion
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
api-version: string ,
regionParameterForOnline:
{
region: string ,
}
,
}

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (default)

{
code: string ,
message: string ,
}
DatabaseAccounts_GetReadOnlyKeys (removed)
Description Lists the read-only access keys for the specified Azure Cosmos DB database account.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/readonlykeys
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
api-version: string ,
}

⚐ Response (200)

{
primaryReadonlyMasterKey: string ,
secondaryReadonlyMasterKey: string ,
}
DatabaseAccounts_ListReadOnlyKeys (removed)
Description Lists the read-only access keys for the specified Azure Cosmos DB database account.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/readonlykeys
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
api-version: string ,
}

⚐ Response (200)

{
primaryReadonlyMasterKey: string ,
secondaryReadonlyMasterKey: string ,
}
DatabaseAccounts_RegenerateKey (removed)
Description Regenerates an access key for the specified Azure Cosmos DB database account.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/regenerateKey
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
api-version: string ,
keyToRegenerate:
{
keyKind: enum ,
}
,
}

⚐ Response (200)

{}

⚐ Response (202)

{}
DatabaseAccounts_CheckNameExists (removed)
Description Checks that the Azure Cosmos DB account name already exists. A valid account name may contain only lowercase letters, numbers, and the '-' character, and must be between 3 and 50 characters.
Reference Link ¶

⚼ Request

HEAD:  /providers/Microsoft.DocumentDB/databaseAccountNames/{accountName}
{
accountName: string ,
api-version: string ,
}

⚐ Response (200)

{}

⚐ Response (404)

{}
Operations_List (removed)
Description Lists all of the available Cosmos DB Resource Provider operations.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.DocumentDB/operations
{
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
name: string ,
display:
{
Provider: string ,
Resource: string ,
Operation: string ,
Description: string ,
}
,
}
,
]
,
nextLink: string ,
}
DatabaseAccounts_ListMetrics (removed)
Description Retrieves the metrics determined by the given filter for the given database account.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/metrics
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
api-version: string ,
$filter: string ,
}

⚐ Response (200)

{
value:
[
{
startTime: string ,
endTime: string ,
timeGrain: string ,
unit: enum ,
name:
{
value: string ,
localizedValue: string ,
}
,
metricValues:
[
{
_count: number ,
average: number ,
maximum: number ,
minimum: number ,
timestamp: string ,
total: number ,
}
,
]
,
}
,
]
,
}
Database_ListMetrics (removed)
Description Retrieves the metrics determined by the given filter for the given database account and database.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/databases/{databaseRid}/metrics
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseRid: string ,
api-version: string ,
$filter: string ,
}

⚐ Response (200)

{
value:
[
{
startTime: string ,
endTime: string ,
timeGrain: string ,
unit: enum ,
name:
{
value: string ,
localizedValue: string ,
}
,
metricValues:
[
{
_count: number ,
average: number ,
maximum: number ,
minimum: number ,
timestamp: string ,
total: number ,
}
,
]
,
}
,
]
,
}
Collection_ListMetrics (removed)
Description Retrieves the metrics determined by the given filter for the given database account and collection.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/databases/{databaseRid}/collections/{collectionRid}/metrics
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseRid: string ,
collectionRid: string ,
api-version: string ,
$filter: string ,
}

⚐ Response (200)

{
value:
[
{
startTime: string ,
endTime: string ,
timeGrain: string ,
unit: enum ,
name:
{
value: string ,
localizedValue: string ,
}
,
metricValues:
[
{
_count: number ,
average: number ,
maximum: number ,
minimum: number ,
timestamp: string ,
total: number ,
}
,
]
,
}
,
]
,
}
CollectionRegion_ListMetrics (removed)
Description Retrieves the metrics determined by the given filter for the given database account, collection and region.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/region/{region}/databases/{databaseRid}/collections/{collectionRid}/metrics
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
region: string ,
databaseRid: string ,
collectionRid: string ,
api-version: string ,
$filter: string ,
}

⚐ Response (200)

{
value:
[
{
startTime: string ,
endTime: string ,
timeGrain: string ,
unit: enum ,
name:
{
value: string ,
localizedValue: string ,
}
,
metricValues:
[
{
_count: number ,
average: number ,
maximum: number ,
minimum: number ,
timestamp: string ,
total: number ,
}
,
]
,
}
,
]
,
}
DatabaseAccountRegion_ListMetrics (removed)
Description Retrieves the metrics determined by the given filter for the given database account and region.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/region/{region}/metrics
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
region: string ,
api-version: string ,
$filter: string ,
}

⚐ Response (200)

{
value:
[
{
startTime: string ,
endTime: string ,
timeGrain: string ,
unit: enum ,
name:
{
value: string ,
localizedValue: string ,
}
,
metricValues:
[
{
_count: number ,
average: number ,
maximum: number ,
minimum: number ,
timestamp: string ,
total: number ,
}
,
]
,
}
,
]
,
}
PercentileSourceTarget_ListMetrics (removed)
Description Retrieves 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
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sourceRegion/{sourceRegion}/targetRegion/{targetRegion}/percentile/metrics
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
sourceRegion: string ,
targetRegion: string ,
api-version: string ,
$filter: string ,
}

⚐ Response (200)

{
value:
[
{
startTime: string ,
endTime: string ,
timeGrain: string ,
unit: enum ,
name:
{
value: string ,
localizedValue: string ,
}
,
metricValues:
[
{
P10: number ,
P25: number ,
P50: number ,
P75: number ,
P90: number ,
P95: number ,
P99: number ,
}
,
]
,
}
,
]
,
}
PercentileTarget_ListMetrics (removed)
Description Retrieves the metrics determined by the given filter for the given account target region. This url is only for PBS and Replication Latency data
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/targetRegion/{targetRegion}/percentile/metrics
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
targetRegion: string ,
api-version: string ,
$filter: string ,
}

⚐ Response (200)

{
value:
[
{
startTime: string ,
endTime: string ,
timeGrain: string ,
unit: enum ,
name:
{
value: string ,
localizedValue: string ,
}
,
metricValues:
[
{
P10: number ,
P25: number ,
P50: number ,
P75: number ,
P90: number ,
P95: number ,
P99: number ,
}
,
]
,
}
,
]
,
}
Percentile_ListMetrics (removed)
Description Retrieves the metrics determined by the given filter for the given database account. This url is only for PBS and Replication Latency data
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/percentile/metrics
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
api-version: string ,
$filter: string ,
}

⚐ Response (200)

{
value:
[
{
startTime: string ,
endTime: string ,
timeGrain: string ,
unit: enum ,
name:
{
value: string ,
localizedValue: string ,
}
,
metricValues:
[
{
P10: number ,
P25: number ,
P50: number ,
P75: number ,
P90: number ,
P95: number ,
P99: number ,
}
,
]
,
}
,
]
,
}
CollectionPartitionRegion_ListMetrics (removed)
Description Retrieves the metrics determined by the given filter for the given collection and region, split by partition.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/region/{region}/databases/{databaseRid}/collections/{collectionRid}/partitions/metrics
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
region: string ,
databaseRid: string ,
collectionRid: string ,
api-version: string ,
$filter: string ,
}

⚐ Response (200)

{
value:
[
{
partitionId: string ,
partitionKeyRangeId: string ,
}
,
]
,
}
CollectionPartition_ListMetrics (removed)
Description Retrieves the metrics determined by the given filter for the given collection, split by partition.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/databases/{databaseRid}/collections/{collectionRid}/partitions/metrics
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseRid: string ,
collectionRid: string ,
api-version: string ,
$filter: string ,
}

⚐ Response (200)

{
value:
[
{
partitionId: string ,
partitionKeyRangeId: string ,
}
,
]
,
}
PartitionKeyRangeId_ListMetrics (removed)
Description Retrieves the metrics determined by the given filter for the given partition key range id.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/databases/{databaseRid}/collections/{collectionRid}/partitionKeyRangeId/{partitionKeyRangeId}/metrics
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseRid: string ,
collectionRid: string ,
partitionKeyRangeId: string ,
api-version: string ,
$filter: string ,
}

⚐ Response (200)

{
value:
[
{
partitionId: string ,
partitionKeyRangeId: string ,
}
,
]
,
}
PartitionKeyRangeIdRegion_ListMetrics (removed)
Description Retrieves the metrics determined by the given filter for the given partition key range id and region.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/region/{region}/databases/{databaseRid}/collections/{collectionRid}/partitionKeyRangeId/{partitionKeyRangeId}/metrics
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
region: string ,
databaseRid: string ,
collectionRid: string ,
partitionKeyRangeId: string ,
api-version: string ,
$filter: string ,
}

⚐ Response (200)

{
value:
[
{
partitionId: string ,
partitionKeyRangeId: string ,
}
,
]
,
}
DatabaseAccounts_ListUsages (removed)
Description Retrieves the usages (most recent data) for the given database account.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/usages
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
api-version: string ,
$filter: string ,
}

⚐ Response (200)

{
value:
[
{
unit: enum ,
name:
{
value: string ,
localizedValue: string ,
}
,
quotaPeriod: string ,
limit: integer ,
currentValue: integer ,
}
,
]
,
}
Database_ListUsages (removed)
Description Retrieves the usages (most recent data) for the given database.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/databases/{databaseRid}/usages
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseRid: string ,
api-version: string ,
$filter: string ,
}

⚐ Response (200)

{
value:
[
{
unit: enum ,
name:
{
value: string ,
localizedValue: string ,
}
,
quotaPeriod: string ,
limit: integer ,
currentValue: integer ,
}
,
]
,
}
Collection_ListUsages (removed)
Description Retrieves the usages (most recent storage data) for the given collection.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/databases/{databaseRid}/collections/{collectionRid}/usages
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseRid: string ,
collectionRid: string ,
api-version: string ,
$filter: string ,
}

⚐ Response (200)

{
value:
[
{
unit: enum ,
name:
{
value: string ,
localizedValue: string ,
}
,
quotaPeriod: string ,
limit: integer ,
currentValue: integer ,
}
,
]
,
}
CollectionPartition_ListUsages (removed)
Description Retrieves the usages (most recent storage data) for the given collection, split by partition.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/databases/{databaseRid}/collections/{collectionRid}/partitions/usages
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseRid: string ,
collectionRid: string ,
api-version: string ,
$filter: string ,
}

⚐ Response (200)

{
value:
[
{
partitionId: string ,
partitionKeyRangeId: string ,
}
,
]
,
}
Database_ListMetricDefinitions (removed)
Description Retrieves metric definitions for the given database.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/databases/{databaseRid}/metricDefinitions
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseRid: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
metricAvailabilities:
[
{
timeGrain: string ,
retention: string ,
}
,
]
,
primaryAggregationType: enum ,
unit: enum ,
resourceUri: string ,
name:
{
value: string ,
localizedValue: string ,
}
,
}
,
]
,
}
Collection_ListMetricDefinitions (removed)
Description Retrieves metric definitions for the given collection.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/databases/{databaseRid}/collections/{collectionRid}/metricDefinitions
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseRid: string ,
collectionRid: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
metricAvailabilities:
[
{
timeGrain: string ,
retention: string ,
}
,
]
,
primaryAggregationType: enum ,
unit: enum ,
resourceUri: string ,
name:
{
value: string ,
localizedValue: string ,
}
,
}
,
]
,
}
DatabaseAccounts_ListMetricDefinitions (removed)
Description Retrieves metric definitions for the given database account.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/metricDefinitions
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
metricAvailabilities:
[
{
timeGrain: string ,
retention: string ,
}
,
]
,
primaryAggregationType: enum ,
unit: enum ,
resourceUri: string ,
name:
{
value: string ,
localizedValue: string ,
}
,
}
,
]
,
}
DatabaseAccounts_ListSqlDatabases (removed)
Description Lists the SQL databases under an existing Azure Cosmos DB database account.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/sql/databases
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
_colls: string ,
_users: string ,
}
,
}
,
]
,
}
DatabaseAccounts_GetSqlDatabase (removed)
Description Gets the SQL database under an existing Azure Cosmos DB database account with the provided name.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/sql/databases/{databaseName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
_colls: string ,
_users: string ,
}
,
}
DatabaseAccounts_CreateUpdateSqlDatabase (removed)
Description Create or update an Azure Cosmos DB SQL database
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/sql/databases/{databaseName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
api-version: string ,
createUpdateSqlDatabaseParameters:
{
properties:
{
resource:
{
id: string ,
}
,
options: object ,
}
,
}
,
}

⚐ Response (202)

{}

⚐ Response (200)

{
properties:
{
_colls: string ,
_users: string ,
}
,
}
DatabaseAccounts_DeleteSqlDatabase (removed)
Description Deletes an existing Azure Cosmos DB SQL database.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/sql/databases/{databaseName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
api-version: string ,
}

⚐ Response (202)

{}

⚐ Response (204)

{}
DatabaseAccounts_GetSqlDatabaseThroughput (removed)
Description Gets the RUs per second of the SQL database under an existing Azure Cosmos DB database account with the provided name.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/sql/databases/{databaseName}/settings/throughput
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties: object ,
}
DatabaseAccounts_UpdateSqlDatabaseThroughput (removed)
Description Update RUs per second of an Azure Cosmos DB SQL database
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/sql/databases/{databaseName}/settings/throughput
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
api-version: string ,
updateThroughputParameters:
{
properties:
{
resource:
{
throughput: integer ,
}
,
}
,
}
,
}

⚐ Response (202)

{}

⚐ Response (200)

{
properties: object ,
}
DatabaseAccounts_ListSqlContainers (removed)
Description Lists the SQL container under an existing Azure Cosmos DB database account.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/sql/databases/{databaseName}/containers
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties: object ,
}
,
]
,
}
DatabaseAccounts_GetSqlContainer (removed)
Description Gets the SQL container under an existing Azure Cosmos DB database account.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/sql/databases/{databaseName}/containers/{containerName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
containerName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties: object ,
}
DatabaseAccounts_CreateUpdateSqlContainer (removed)
Description Create or update an Azure Cosmos DB SQL container
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/sql/databases/{databaseName}/containers/{containerName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
containerName: string ,
api-version: string ,
createUpdateSqlContainerParameters:
{
properties:
{
resource:
{
id: string ,
indexingPolicy:
{
automatic: boolean ,
indexingMode: enum ,
includedPaths:
[
{
path: string ,
indexes:
[
{
dataType: enum ,
precision: integer ,
kind: enum ,
}
,
]
,
}
,
]
,
excludedPaths:
[
{
path: string ,
}
,
]
,
}
,
partitionKey:
{
paths:
[
string ,
]
,
kind: enum ,
}
,
defaultTtl: integer ,
uniqueKeyPolicy:
{
uniqueKeys:
[
{
paths:
[
string ,
]
,
}
,
]
,
}
,
conflictResolutionPolicy:
{
mode: enum ,
conflictResolutionPath: string ,
conflictResolutionProcedure: string ,
}
,
}
,
options: object ,
}
,
}
,
}

⚐ Response (202)

{}

⚐ Response (200)

{
properties: object ,
}
DatabaseAccounts_DeleteSqlContainer (removed)
Description Deletes an existing Azure Cosmos DB SQL container.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/sql/databases/{databaseName}/containers/{containerName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
containerName: string ,
api-version: string ,
}

⚐ Response (202)

{}

⚐ Response (204)

{}
DatabaseAccounts_GetSqlContainerThroughput (removed)
Description Gets the RUs per second of the SQL container under an existing Azure Cosmos DB database account.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/sql/databases/{databaseName}/containers/{containerName}/settings/throughput
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
containerName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties: object ,
}
DatabaseAccounts_UpdateSqlContainerThroughput (removed)
Description Update RUs per second of an Azure Cosmos DB SQL container
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/sql/databases/{databaseName}/containers/{containerName}/settings/throughput
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
containerName: string ,
api-version: string ,
updateThroughputParameters:
{
properties:
{
resource:
{
throughput: integer ,
}
,
}
,
}
,
}

⚐ Response (202)

{}

⚐ Response (200)

{
properties: object ,
}
DatabaseAccounts_ListMongoDBDatabases (removed)
Description Lists the MongoDB databases under an existing Azure Cosmos DB database account.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/mongodb/databases
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties: object ,
}
,
]
,
}
DatabaseAccounts_GetMongoDBDatabase (removed)
Description Gets the MongoDB databases under an existing Azure Cosmos DB database account with the provided name.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/mongodb/databases/{databaseName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties: object ,
}
DatabaseAccounts_CreateUpdateMongoDBDatabase (removed)
Description Create or updates Azure Cosmos DB MongoDB database
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/mongodb/databases/{databaseName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
api-version: string ,
createUpdateMongoDBDatabaseParameters:
{
properties:
{
resource:
{
id: string ,
}
,
options: object ,
}
,
}
,
}

⚐ Response (202)

{}

⚐ Response (200)

{
properties: object ,
}
DatabaseAccounts_DeleteMongoDBDatabase (removed)
Description Deletes an existing Azure Cosmos DB MongoDB database.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/mongodb/databases/{databaseName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
api-version: string ,
}

⚐ Response (202)

{}

⚐ Response (204)

{}
DatabaseAccounts_GetMongoDBDatabaseThroughput (removed)
Description Gets the RUs per second of the MongoDB database under an existing Azure Cosmos DB database account with the provided name.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/mongodb/databases/{databaseName}/settings/throughput
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties: object ,
}
DatabaseAccounts_UpdateMongoDBDatabaseThroughput (removed)
Description Update RUs per second of the an Azure Cosmos DB MongoDB database
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/mongodb/databases/{databaseName}/settings/throughput
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
api-version: string ,
updateThroughputParameters:
{
properties:
{
resource:
{
throughput: integer ,
}
,
}
,
}
,
}

⚐ Response (202)

{}

⚐ Response (200)

{
properties: object ,
}
DatabaseAccounts_ListMongoDBCollections (removed)
Description Lists the MongoDB collection under an existing Azure Cosmos DB database account.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/mongodb/databases/{databaseName}/collections
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties: object ,
}
,
]
,
}
DatabaseAccounts_GetMongoDBCollection (removed)
Description Gets the MongoDB collection under an existing Azure Cosmos DB database account.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/mongodb/databases/{databaseName}/collections/{collectionName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
collectionName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties: object ,
}
DatabaseAccounts_CreateUpdateMongoDBCollection (removed)
Description Create or update an Azure Cosmos DB MongoDB Collection
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/mongodb/databases/{databaseName}/collections/{collectionName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
collectionName: string ,
api-version: string ,
createUpdateMongoDBCollectionParameters:
{
properties:
{
resource:
{
id: string ,
shardKey: object ,
indexes:
[
{
key:
{
keys:
[
string ,
]
,
}
,
options:
{
expireAfterSeconds: integer ,
unique: boolean ,
}
,
}
,
]
,
}
,
options: object ,
}
,
}
,
}

⚐ Response (202)

{}

⚐ Response (200)

{
properties: object ,
}
DatabaseAccounts_DeleteMongoDBCollection (removed)
Description Deletes an existing Azure Cosmos DB MongoDB Collection.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/mongodb/databases/{databaseName}/collections/{collectionName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
collectionName: string ,
api-version: string ,
}

⚐ Response (202)

{}

⚐ Response (204)

{}
DatabaseAccounts_GetMongoDBCollectionThroughput (removed)
Description Gets the RUs per second of the MongoDB collection under an existing Azure Cosmos DB database account with the provided name.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/mongodb/databases/{databaseName}/collections/{collectionName}/settings/throughput
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
collectionName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties: object ,
}
DatabaseAccounts_UpdateMongoDBCollectionThroughput (removed)
Description Update the RUs per second of an Azure Cosmos DB MongoDB collection
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/mongodb/databases/{databaseName}/collections/{collectionName}/settings/throughput
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
collectionName: string ,
api-version: string ,
updateThroughputParameters:
{
properties:
{
resource:
{
throughput: integer ,
}
,
}
,
}
,
}

⚐ Response (202)

{}

⚐ Response (200)

{
properties: object ,
}
DatabaseAccounts_ListTables (removed)
Description Lists the Tables under an existing Azure Cosmos DB database account.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/table/tables
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties: object ,
}
,
]
,
}
DatabaseAccounts_GetTable (removed)
Description Gets the Tables under an existing Azure Cosmos DB database account with the provided name.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/table/tables/{tableName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
tableName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties: object ,
}
DatabaseAccounts_CreateUpdateTable (removed)
Description Create or update an Azure Cosmos DB Table
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/table/tables/{tableName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
tableName: string ,
api-version: string ,
createUpdateTableParameters:
{
properties:
{
resource:
{
id: string ,
}
,
options: object ,
}
,
}
,
}

⚐ Response (202)

{}

⚐ Response (200)

{
properties: object ,
}
DatabaseAccounts_DeleteTable (removed)
Description Deletes an existing Azure Cosmos DB Table.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/table/tables/{tableName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
tableName: string ,
api-version: string ,
}

⚐ Response (202)

{}

⚐ Response (204)

{}
DatabaseAccounts_GetTableThroughput (removed)
Description Gets the RUs per second of the Table under an existing Azure Cosmos DB database account with the provided name.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/table/tables/{tableName}/settings/throughput
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
tableName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties: object ,
}
DatabaseAccounts_UpdateTableThroughput (removed)
Description Update RUs per second of an Azure Cosmos DB Table
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/table/tables/{tableName}/settings/throughput
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
tableName: string ,
api-version: string ,
updateThroughputParameters:
{
properties:
{
resource:
{
throughput: integer ,
}
,
}
,
}
,
}

⚐ Response (202)

{}

⚐ Response (200)

{
properties: object ,
}
DatabaseAccounts_ListCassandraKeyspaces (removed)
Description Lists the Cassandra keyspaces under an existing Azure Cosmos DB database account.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/cassandra/keyspaces
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties: object ,
}
,
]
,
}
DatabaseAccounts_GetCassandraKeyspace (removed)
Description Gets the Cassandra keyspaces under an existing Azure Cosmos DB database account with the provided name.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/cassandra/keyspaces/{keyspaceName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
keyspaceName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties: object ,
}
DatabaseAccounts_CreateUpdateCassandraKeyspace (removed)
Description Create or update an Azure Cosmos DB Cassandra keyspace
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/cassandra/keyspaces/{keyspaceName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
keyspaceName: string ,
api-version: string ,
createUpdateCassandraKeyspaceParameters:
{
properties:
{
resource:
{
id: string ,
}
,
options: object ,
}
,
}
,
}

⚐ Response (202)

{}

⚐ Response (200)

{
properties: object ,
}
DatabaseAccounts_DeleteCassandraKeyspace (removed)
Description Deletes an existing Azure Cosmos DB Cassandra keyspace.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/cassandra/keyspaces/{keyspaceName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
keyspaceName: string ,
api-version: string ,
}

⚐ Response (202)

{}

⚐ Response (204)

{}
DatabaseAccounts_GetCassandraKeyspaceThroughput (removed)
Description Gets the RUs per second of the Cassandra Keyspace under an existing Azure Cosmos DB database account with the provided name.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/cassandra/keyspaces/{keyspaceName}/settings/throughput
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
keyspaceName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties: object ,
}
DatabaseAccounts_UpdateCassandraKeyspaceThroughput (removed)
Description Update RUs per second of an Azure Cosmos DB Cassandra Keyspace
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/cassandra/keyspaces/{keyspaceName}/settings/throughput
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
keyspaceName: string ,
api-version: string ,
updateThroughputParameters:
{
properties:
{
resource:
{
throughput: integer ,
}
,
}
,
}
,
}

⚐ Response (202)

{}

⚐ Response (200)

{
properties: object ,
}
DatabaseAccounts_ListCassandraTables (removed)
Description Lists the Cassandra table under an existing Azure Cosmos DB database account.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/cassandra/keyspaces/{keyspaceName}/tables
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
keyspaceName: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties: object ,
}
,
]
,
}
DatabaseAccounts_GetCassandraTable (removed)
Description Gets the Cassandra table under an existing Azure Cosmos DB database account.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/cassandra/keyspaces/{keyspaceName}/tables/{tableName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
keyspaceName: string ,
tableName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties: object ,
}
DatabaseAccounts_CreateUpdateCassandraTable (removed)
Description Create or update an Azure Cosmos DB Cassandra Table
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/cassandra/keyspaces/{keyspaceName}/tables/{tableName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
keyspaceName: string ,
tableName: string ,
api-version: string ,
createUpdateCassandraTableParameters:
{
properties:
{
resource:
{
id: string ,
defaultTtl: integer ,
schema:
{
columns:
[
{
name: string ,
type: string ,
}
,
]
,
partitionKeys:
[
{
name: string ,
}
,
]
,
clusterKeys:
[
{
name: string ,
orderBy: string ,
}
,
]
,
}
,
}
,
options: object ,
}
,
}
,
}

⚐ Response (202)

{}

⚐ Response (200)

{
properties: object ,
}
DatabaseAccounts_DeleteCassandraTable (removed)
Description Deletes an existing Azure Cosmos DB Cassandra table.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/cassandra/keyspaces/{keyspaceName}/tables/{tableName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
keyspaceName: string ,
tableName: string ,
api-version: string ,
}

⚐ Response (202)

{}

⚐ Response (204)

{}
DatabaseAccounts_GetCassandraTableThroughput (removed)
Description Gets the RUs per second of the Cassandra table under an existing Azure Cosmos DB database account with the provided name.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/cassandra/keyspaces/{keyspaceName}/tables/{tableName}/settings/throughput
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
keyspaceName: string ,
tableName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties: object ,
}
DatabaseAccounts_UpdateCassandraTableThroughput (removed)
Description Update RUs per second of an Azure Cosmos DB Cassandra table
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/cassandra/keyspaces/{keyspaceName}/tables/{tableName}/settings/throughput
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
keyspaceName: string ,
tableName: string ,
api-version: string ,
updateThroughputParameters:
{
properties:
{
resource:
{
throughput: integer ,
}
,
}
,
}
,
}

⚐ Response (202)

{}

⚐ Response (200)

{
properties: object ,
}
DatabaseAccounts_ListGremlinDatabases (removed)
Description Lists the Gremlin databases under an existing Azure Cosmos DB database account.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/gremlin/databases
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
_rid: string ,
_ts: string ,
_etag: string ,
}
,
}
,
]
,
}
DatabaseAccounts_GetGremlinDatabase (removed)
Description Gets the Gremlin databases under an existing Azure Cosmos DB database account with the provided name.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/gremlin/databases/{databaseName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
_rid: string ,
_ts: string ,
_etag: string ,
}
,
}
DatabaseAccounts_CreateUpdateGremlinDatabase (removed)
Description Create or update an Azure Cosmos DB Gremlin database
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/gremlin/databases/{databaseName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
api-version: string ,
createUpdateGremlinDatabaseParameters:
{
properties:
{
resource:
{
id: string ,
}
,
options: object ,
}
,
}
,
}

⚐ Response (202)

{}

⚐ Response (200)

{
properties:
{
_rid: string ,
_ts: string ,
_etag: string ,
}
,
}
DatabaseAccounts_DeleteGremlinDatabase (removed)
Description Deletes an existing Azure Cosmos DB Gremlin database.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/gremlin/databases/{databaseName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
api-version: string ,
}

⚐ Response (202)

{}

⚐ Response (204)

{}
DatabaseAccounts_GetGremlinDatabaseThroughput (removed)
Description Gets the RUs per second of the Gremlin database under an existing Azure Cosmos DB database account with the provided name.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/gremlin/databases/{databaseName}/settings/throughput
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties: object ,
}
DatabaseAccounts_UpdateGremlinDatabaseThroughput (removed)
Description Update RUs per second of an Azure Cosmos DB Gremlin database
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/gremlin/databases/{databaseName}/settings/throughput
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
api-version: string ,
updateThroughputParameters:
{
properties:
{
resource:
{
throughput: integer ,
}
,
}
,
}
,
}

⚐ Response (202)

{}

⚐ Response (200)

{
properties: object ,
}
DatabaseAccounts_ListGremlinGraphs (removed)
Description Lists the Gremlin graph under an existing Azure Cosmos DB database account.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/gremlin/databases/{databaseName}/graphs
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties: object ,
}
,
]
,
}
DatabaseAccounts_GetGremlinGraph (removed)
Description Gets the Gremlin graph under an existing Azure Cosmos DB database account.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/gremlin/databases/{databaseName}/graphs/{graphName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
graphName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties: object ,
}
DatabaseAccounts_CreateUpdateGremlinGraph (removed)
Description Create or update an Azure Cosmos DB Gremlin graph
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/gremlin/databases/{databaseName}/graphs/{graphName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
graphName: string ,
api-version: string ,
createUpdateGremlinGraphParameters:
{
properties:
{
resource:
{
id: string ,
indexingPolicy:
{
automatic: boolean ,
indexingMode: enum ,
includedPaths:
[
{
path: string ,
indexes:
[
{
dataType: enum ,
precision: integer ,
kind: enum ,
}
,
]
,
}
,
]
,
excludedPaths:
[
{
path: string ,
}
,
]
,
}
,
partitionKey:
{
paths:
[
string ,
]
,
kind: enum ,
}
,
defaultTtl: integer ,
uniqueKeyPolicy:
{
uniqueKeys:
[
{
paths:
[
string ,
]
,
}
,
]
,
}
,
conflictResolutionPolicy:
{
mode: enum ,
conflictResolutionPath: string ,
conflictResolutionProcedure: string ,
}
,
}
,
options: object ,
}
,
}
,
}

⚐ Response (202)

{}

⚐ Response (200)

{
properties: object ,
}
DatabaseAccounts_DeleteGremlinGraph (removed)
Description Deletes an existing Azure Cosmos DB Gremlin graph.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/gremlin/databases/{databaseName}/graphs/{graphName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
graphName: string ,
api-version: string ,
}

⚐ Response (202)

{}

⚐ Response (204)

{}
DatabaseAccounts_GetGremlinGraphThroughput (removed)
Description Gets the Gremlin graph throughput under an existing Azure Cosmos DB database account with the provided name.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/gremlin/databases/{databaseName}/graphs/{graphName}/settings/throughput
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
graphName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties: object ,
}
DatabaseAccounts_UpdateGremlinGraphThroughput (removed)
Description Update RUs per second of an Azure Cosmos DB Gremlin graph
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/gremlin/databases/{databaseName}/graphs/{graphName}/settings/throughput
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
graphName: string ,
api-version: string ,
updateThroughputParameters:
{
properties:
{
resource:
{
throughput: integer ,
}
,
}
,
}
,
}

⚐ Response (202)

{}

⚐ Response (200)

{
properties: object ,
}