Microsoft.DocumentDB (stable:2025-04-15)

2025/04/21 • 190 new 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 ,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
properties:
{
provisioningState: string ,
documentEndpoint: string ,
databaseAccountOfferType: enum ,
ipRules:
[
{
ipAddressOrRange: 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 ,
}
,
]
,
locations:
[
{
id: string ,
locationName: string ,
documentEndpoint: string ,
provisioningState: string ,
failoverPriority: integer ,
isZoneRedundant: boolean ,
}
,
]
,
failoverPolicies:
[
{
id: string ,
locationName: string ,
failoverPriority: integer ,
}
,
]
,
virtualNetworkRules:
[
{
id: string ,
ignoreMissingVNetServiceEndpoint: boolean ,
}
,
]
,
privateEndpointConnections:
[
{
properties:
{
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: string ,
description: string ,
actionsRequired: string ,
}
,
groupId: string ,
provisioningState: string ,
}
,
}
,
]
,
enableMultipleWriteLocations: boolean ,
enableCassandraConnector: boolean ,
connectorOffer: enum ,
disableKeyBasedMetadataWriteAccess: boolean ,
keyVaultKeyUri: string ,
defaultIdentity: string ,
publicNetworkAccess: enum ,
enableFreeTier: boolean ,
apiProperties:
{
serverVersion: enum ,
}
,
enableAnalyticalStorage: boolean ,
analyticalStorageConfiguration:
{
schemaType: enum ,
}
,
instanceId: string ,
createMode: enum ,
restoreParameters:
{
restoreMode: enum ,
databasesToRestore:
[
{
databaseName: string ,
collectionNames:
[
string ,
]
,
}
,
]
,
gremlinDatabasesToRestore:
[
{
databaseName: string ,
graphNames:
[
string ,
]
,
}
,
]
,
tablesToRestore:
[
string ,
]
,
}
,
backupPolicy:
{
type: enum ,
migrationState:
{
status: enum ,
targetType: enum ,
startTime: string ,
}
,
}
,
cors:
[
{
allowedOrigins: string ,
allowedMethods: string ,
allowedHeaders: string ,
exposedHeaders: string ,
maxAgeInSeconds: integer ,
}
,
]
,
networkAclBypass: enum ,
networkAclBypassResourceIds:
[
string ,
]
,
disableLocalAuth: boolean ,
capacity:
{
totalThroughputLimit: integer ,
}
,
keysMetadata:
{
primaryMasterKey:
{
generationTime: string ,
}
,
secondaryMasterKey:
{
generationTime: string ,
}
,
primaryReadonlyMasterKey:
{
generationTime: string ,
}
,
secondaryReadonlyMasterKey:
{
generationTime: string ,
}
,
}
,
enablePartitionMerge: boolean ,
minimalTlsVersion: enum ,
enableBurstCapacity: boolean ,
customerManagedKeyStatus: string ,
enablePerRegionPerPartitionAutoscale: boolean ,
}
,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}
DatabaseAccounts_Update (new)
Description Updates 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 ,
location: string ,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
properties:
{
consistencyPolicy:
{
defaultConsistencyLevel: enum ,
maxStalenessPrefix: integer ,
maxIntervalInSeconds: integer ,
}
,
locations:
[
{
id: string ,
locationName: string ,
documentEndpoint: string ,
provisioningState: string ,
failoverPriority: integer ,
isZoneRedundant: boolean ,
}
,
]
,
ipRules:
[
{
ipAddressOrRange: string ,
}
,
]
,
isVirtualNetworkFilterEnabled: boolean ,
enableAutomaticFailover: boolean ,
capabilities:
[
{
name: string ,
}
,
]
,
virtualNetworkRules:
[
{
id: string ,
ignoreMissingVNetServiceEndpoint: boolean ,
}
,
]
,
enableMultipleWriteLocations: boolean ,
enableCassandraConnector: boolean ,
connectorOffer: enum ,
disableKeyBasedMetadataWriteAccess: boolean ,
keyVaultKeyUri: string ,
defaultIdentity: string ,
publicNetworkAccess: enum ,
enableFreeTier: boolean ,
apiProperties:
{
serverVersion: enum ,
}
,
enableAnalyticalStorage: boolean ,
analyticalStorageConfiguration:
{
schemaType: enum ,
}
,
backupPolicy:
{
type: enum ,
migrationState:
{
status: enum ,
targetType: enum ,
startTime: string ,
}
,
}
,
cors:
[
{
allowedOrigins: string ,
allowedMethods: string ,
allowedHeaders: string ,
exposedHeaders: string ,
maxAgeInSeconds: integer ,
}
,
]
,
networkAclBypass: enum ,
networkAclBypassResourceIds:
[
string ,
]
,
disableLocalAuth: boolean ,
capacity:
{
totalThroughputLimit: integer ,
}
,
keysMetadata:
{
primaryMasterKey:
{
generationTime: string ,
}
,
secondaryMasterKey:
{
generationTime: string ,
}
,
primaryReadonlyMasterKey:
{
generationTime: string ,
}
,
secondaryReadonlyMasterKey:
{
generationTime: string ,
}
,
}
,
enablePartitionMerge: boolean ,
minimalTlsVersion: enum ,
enableBurstCapacity: boolean ,
customerManagedKeyStatus: string ,
enablePerRegionPerPartitionAutoscale: boolean ,
}
,
}
,
}

⚐ Response (200)

{
kind: enum ,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
properties:
{
provisioningState: string ,
documentEndpoint: string ,
databaseAccountOfferType: enum ,
ipRules:
[
{
ipAddressOrRange: 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 ,
}
,
]
,
locations:
[
{
id: string ,
locationName: string ,
documentEndpoint: string ,
provisioningState: string ,
failoverPriority: integer ,
isZoneRedundant: boolean ,
}
,
]
,
failoverPolicies:
[
{
id: string ,
locationName: string ,
failoverPriority: integer ,
}
,
]
,
virtualNetworkRules:
[
{
id: string ,
ignoreMissingVNetServiceEndpoint: boolean ,
}
,
]
,
privateEndpointConnections:
[
{
properties:
{
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: string ,
description: string ,
actionsRequired: string ,
}
,
groupId: string ,
provisioningState: string ,
}
,
}
,
]
,
enableMultipleWriteLocations: boolean ,
enableCassandraConnector: boolean ,
connectorOffer: enum ,
disableKeyBasedMetadataWriteAccess: boolean ,
keyVaultKeyUri: string ,
defaultIdentity: string ,
publicNetworkAccess: enum ,
enableFreeTier: boolean ,
apiProperties:
{
serverVersion: enum ,
}
,
enableAnalyticalStorage: boolean ,
analyticalStorageConfiguration:
{
schemaType: enum ,
}
,
instanceId: string ,
createMode: enum ,
restoreParameters:
{
restoreMode: enum ,
databasesToRestore:
[
{
databaseName: string ,
collectionNames:
[
string ,
]
,
}
,
]
,
gremlinDatabasesToRestore:
[
{
databaseName: string ,
graphNames:
[
string ,
]
,
}
,
]
,
tablesToRestore:
[
string ,
]
,
}
,
backupPolicy:
{
type: enum ,
migrationState:
{
status: enum ,
targetType: enum ,
startTime: string ,
}
,
}
,
cors:
[
{
allowedOrigins: string ,
allowedMethods: string ,
allowedHeaders: string ,
exposedHeaders: string ,
maxAgeInSeconds: integer ,
}
,
]
,
networkAclBypass: enum ,
networkAclBypassResourceIds:
[
string ,
]
,
disableLocalAuth: boolean ,
capacity:
{
totalThroughputLimit: integer ,
}
,
keysMetadata:
{
primaryMasterKey:
{
generationTime: string ,
}
,
secondaryMasterKey:
{
generationTime: string ,
}
,
primaryReadonlyMasterKey:
{
generationTime: string ,
}
,
secondaryReadonlyMasterKey:
{
generationTime: string ,
}
,
}
,
enablePartitionMerge: boolean ,
minimalTlsVersion: enum ,
enableBurstCapacity: boolean ,
customerManagedKeyStatus: string ,
enablePerRegionPerPartitionAutoscale: boolean ,
}
,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}
DatabaseAccounts_CreateOrUpdate (new)
Description Creates or updates an Azure Cosmos DB database account. The "Update" method is preferred when performing updates on an 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 ,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
properties:
{
consistencyPolicy:
{
defaultConsistencyLevel: enum ,
maxStalenessPrefix: integer ,
maxIntervalInSeconds: integer ,
}
,
locations:
[
{
id: string ,
locationName: string ,
documentEndpoint: string ,
provisioningState: string ,
failoverPriority: integer ,
isZoneRedundant: boolean ,
}
,
]
,
databaseAccountOfferType: enum ,
ipRules:
[
{
ipAddressOrRange: string ,
}
,
]
,
isVirtualNetworkFilterEnabled: boolean ,
enableAutomaticFailover: boolean ,
capabilities:
[
{
name: string ,
}
,
]
,
virtualNetworkRules:
[
{
id: string ,
ignoreMissingVNetServiceEndpoint: boolean ,
}
,
]
,
enableMultipleWriteLocations: boolean ,
enableCassandraConnector: boolean ,
connectorOffer: enum ,
disableKeyBasedMetadataWriteAccess: boolean ,
keyVaultKeyUri: string ,
defaultIdentity: string ,
publicNetworkAccess: enum ,
enableFreeTier: boolean ,
apiProperties:
{
serverVersion: enum ,
}
,
enableAnalyticalStorage: boolean ,
analyticalStorageConfiguration:
{
schemaType: enum ,
}
,
createMode: enum ,
backupPolicy:
{
type: enum ,
migrationState:
{
status: enum ,
targetType: enum ,
startTime: string ,
}
,
}
,
cors:
[
{
allowedOrigins: string ,
allowedMethods: string ,
allowedHeaders: string ,
exposedHeaders: string ,
maxAgeInSeconds: integer ,
}
,
]
,
networkAclBypass: enum ,
networkAclBypassResourceIds:
[
string ,
]
,
disableLocalAuth: boolean ,
restoreParameters:
{
restoreMode: enum ,
databasesToRestore:
[
{
databaseName: string ,
collectionNames:
[
string ,
]
,
}
,
]
,
gremlinDatabasesToRestore:
[
{
databaseName: string ,
graphNames:
[
string ,
]
,
}
,
]
,
tablesToRestore:
[
string ,
]
,
}
,
capacity:
{
totalThroughputLimit: integer ,
}
,
keysMetadata:
{
primaryMasterKey:
{
generationTime: string ,
}
,
secondaryMasterKey:
{
generationTime: string ,
}
,
primaryReadonlyMasterKey:
{
generationTime: string ,
}
,
secondaryReadonlyMasterKey:
{
generationTime: string ,
}
,
}
,
enablePartitionMerge: boolean ,
minimalTlsVersion: enum ,
enableBurstCapacity: boolean ,
customerManagedKeyStatus: string ,
enablePerRegionPerPartitionAutoscale: boolean ,
}
,
}
,
}

⚐ Response (200)

{
kind: enum ,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
properties:
{
provisioningState: string ,
documentEndpoint: string ,
databaseAccountOfferType: enum ,
ipRules:
[
{
ipAddressOrRange: 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 ,
}
,
]
,
locations:
[
{
id: string ,
locationName: string ,
documentEndpoint: string ,
provisioningState: string ,
failoverPriority: integer ,
isZoneRedundant: boolean ,
}
,
]
,
failoverPolicies:
[
{
id: string ,
locationName: string ,
failoverPriority: integer ,
}
,
]
,
virtualNetworkRules:
[
{
id: string ,
ignoreMissingVNetServiceEndpoint: boolean ,
}
,
]
,
privateEndpointConnections:
[
{
properties:
{
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: string ,
description: string ,
actionsRequired: string ,
}
,
groupId: string ,
provisioningState: string ,
}
,
}
,
]
,
enableMultipleWriteLocations: boolean ,
enableCassandraConnector: boolean ,
connectorOffer: enum ,
disableKeyBasedMetadataWriteAccess: boolean ,
keyVaultKeyUri: string ,
defaultIdentity: string ,
publicNetworkAccess: enum ,
enableFreeTier: boolean ,
apiProperties:
{
serverVersion: enum ,
}
,
enableAnalyticalStorage: boolean ,
analyticalStorageConfiguration:
{
schemaType: enum ,
}
,
instanceId: string ,
createMode: enum ,
restoreParameters:
{
restoreMode: enum ,
databasesToRestore:
[
{
databaseName: string ,
collectionNames:
[
string ,
]
,
}
,
]
,
gremlinDatabasesToRestore:
[
{
databaseName: string ,
graphNames:
[
string ,
]
,
}
,
]
,
tablesToRestore:
[
string ,
]
,
}
,
backupPolicy:
{
type: enum ,
migrationState:
{
status: enum ,
targetType: enum ,
startTime: string ,
}
,
}
,
cors:
[
{
allowedOrigins: string ,
allowedMethods: string ,
allowedHeaders: string ,
exposedHeaders: string ,
maxAgeInSeconds: integer ,
}
,
]
,
networkAclBypass: enum ,
networkAclBypassResourceIds:
[
string ,
]
,
disableLocalAuth: boolean ,
capacity:
{
totalThroughputLimit: integer ,
}
,
keysMetadata:
{
primaryMasterKey:
{
generationTime: string ,
}
,
secondaryMasterKey:
{
generationTime: string ,
}
,
primaryReadonlyMasterKey:
{
generationTime: string ,
}
,
secondaryReadonlyMasterKey:
{
generationTime: string ,
}
,
}
,
enablePartitionMerge: boolean ,
minimalTlsVersion: enum ,
enableBurstCapacity: boolean ,
customerManagedKeyStatus: string ,
enablePerRegionPerPartitionAutoscale: boolean ,
}
,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}
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)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ 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)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ 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 ,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
properties:
{
provisioningState: string ,
documentEndpoint: string ,
databaseAccountOfferType: enum ,
ipRules:
[
{
ipAddressOrRange: 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 ,
}
,
]
,
locations:
[
{
id: string ,
locationName: string ,
documentEndpoint: string ,
provisioningState: string ,
failoverPriority: integer ,
isZoneRedundant: boolean ,
}
,
]
,
failoverPolicies:
[
{
id: string ,
locationName: string ,
failoverPriority: integer ,
}
,
]
,
virtualNetworkRules:
[
{
id: string ,
ignoreMissingVNetServiceEndpoint: boolean ,
}
,
]
,
privateEndpointConnections:
[
{
properties:
{
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: string ,
description: string ,
actionsRequired: string ,
}
,
groupId: string ,
provisioningState: string ,
}
,
}
,
]
,
enableMultipleWriteLocations: boolean ,
enableCassandraConnector: boolean ,
connectorOffer: enum ,
disableKeyBasedMetadataWriteAccess: boolean ,
keyVaultKeyUri: string ,
defaultIdentity: string ,
publicNetworkAccess: enum ,
enableFreeTier: boolean ,
apiProperties:
{
serverVersion: enum ,
}
,
enableAnalyticalStorage: boolean ,
analyticalStorageConfiguration:
{
schemaType: enum ,
}
,
instanceId: string ,
createMode: enum ,
restoreParameters:
{
restoreMode: enum ,
databasesToRestore:
[
{
databaseName: string ,
collectionNames:
[
string ,
]
,
}
,
]
,
gremlinDatabasesToRestore:
[
{
databaseName: string ,
graphNames:
[
string ,
]
,
}
,
]
,
tablesToRestore:
[
string ,
]
,
}
,
backupPolicy:
{
type: enum ,
migrationState:
{
status: enum ,
targetType: enum ,
startTime: string ,
}
,
}
,
cors:
[
{
allowedOrigins: string ,
allowedMethods: string ,
allowedHeaders: string ,
exposedHeaders: string ,
maxAgeInSeconds: integer ,
}
,
]
,
networkAclBypass: enum ,
networkAclBypassResourceIds:
[
string ,
]
,
disableLocalAuth: boolean ,
capacity:
{
totalThroughputLimit: integer ,
}
,
keysMetadata:
{
primaryMasterKey:
{
generationTime: string ,
}
,
secondaryMasterKey:
{
generationTime: string ,
}
,
primaryReadonlyMasterKey:
{
generationTime: string ,
}
,
secondaryReadonlyMasterKey:
{
generationTime: string ,
}
,
}
,
enablePartitionMerge: boolean ,
minimalTlsVersion: enum ,
enableBurstCapacity: boolean ,
customerManagedKeyStatus: string ,
enablePerRegionPerPartitionAutoscale: boolean ,
}
,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}
,
]
,
}
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 ,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
properties:
{
provisioningState: string ,
documentEndpoint: string ,
databaseAccountOfferType: enum ,
ipRules:
[
{
ipAddressOrRange: 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 ,
}
,
]
,
locations:
[
{
id: string ,
locationName: string ,
documentEndpoint: string ,
provisioningState: string ,
failoverPriority: integer ,
isZoneRedundant: boolean ,
}
,
]
,
failoverPolicies:
[
{
id: string ,
locationName: string ,
failoverPriority: integer ,
}
,
]
,
virtualNetworkRules:
[
{
id: string ,
ignoreMissingVNetServiceEndpoint: boolean ,
}
,
]
,
privateEndpointConnections:
[
{
properties:
{
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: string ,
description: string ,
actionsRequired: string ,
}
,
groupId: string ,
provisioningState: string ,
}
,
}
,
]
,
enableMultipleWriteLocations: boolean ,
enableCassandraConnector: boolean ,
connectorOffer: enum ,
disableKeyBasedMetadataWriteAccess: boolean ,
keyVaultKeyUri: string ,
defaultIdentity: string ,
publicNetworkAccess: enum ,
enableFreeTier: boolean ,
apiProperties:
{
serverVersion: enum ,
}
,
enableAnalyticalStorage: boolean ,
analyticalStorageConfiguration:
{
schemaType: enum ,
}
,
instanceId: string ,
createMode: enum ,
restoreParameters:
{
restoreMode: enum ,
databasesToRestore:
[
{
databaseName: string ,
collectionNames:
[
string ,
]
,
}
,
]
,
gremlinDatabasesToRestore:
[
{
databaseName: string ,
graphNames:
[
string ,
]
,
}
,
]
,
tablesToRestore:
[
string ,
]
,
}
,
backupPolicy:
{
type: enum ,
migrationState:
{
status: enum ,
targetType: enum ,
startTime: string ,
}
,
}
,
cors:
[
{
allowedOrigins: string ,
allowedMethods: string ,
allowedHeaders: string ,
exposedHeaders: string ,
maxAgeInSeconds: integer ,
}
,
]
,
networkAclBypass: enum ,
networkAclBypassResourceIds:
[
string ,
]
,
disableLocalAuth: boolean ,
capacity:
{
totalThroughputLimit: integer ,
}
,
keysMetadata:
{
primaryMasterKey:
{
generationTime: string ,
}
,
secondaryMasterKey:
{
generationTime: string ,
}
,
primaryReadonlyMasterKey:
{
generationTime: string ,
}
,
secondaryReadonlyMasterKey:
{
generationTime: string ,
}
,
}
,
enablePartitionMerge: boolean ,
minimalTlsVersion: enum ,
enableBurstCapacity: boolean ,
customerManagedKeyStatus: string ,
enablePerRegionPerPartitionAutoscale: boolean ,
}
,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}
,
]
,
}
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 ,
keyKind: enum ,
type: enum ,
}
,
]
,
}
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)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ 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)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ 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)

{
azure-asyncoperation: string ,
location: string ,
}
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 ,
}
,
}
,
]
,
}
SqlResources_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}/sqlDatabases
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
resource:
{
_colls: string ,
_users: string ,
}
,
options: string ,
}
,
}
,
]
,
}
SqlResources_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}/sqlDatabases/{databaseName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
resource:
{
_colls: string ,
_users: string ,
}
,
options: string ,
}
,
}
SqlResources_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}/sqlDatabases/{databaseName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
api-version: string ,
createUpdateSqlDatabaseParameters:
{
properties:
{
resource:
{
id: string ,
restoreParameters: object ,
createMode: enum ,
}
,
options:
{
throughput: integer ,
autoscaleSettings:
{
maxThroughput: integer ,
}
,
}
,
}
,
}
,
}

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ Response (200)

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

⚼ Request

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

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ Response (204)

{}
SqlResources_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}/sqlDatabases/{databaseName}/throughputSettings/default
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
resource: string ,
}
,
}
SqlResources_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}/sqlDatabases/{databaseName}/throughputSettings/default
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
api-version: string ,
updateThroughputParameters:
{
properties:
{
resource:
{
throughput: integer ,
autoscaleSettings:
{
maxThroughput: integer ,
autoUpgradePolicy:
{
throughputPolicy:
{
isEnabled: boolean ,
incrementPercent: integer ,
}
,
}
,
targetMaxThroughput: integer ,
}
,
minimumThroughput: string ,
offerReplacePending: string ,
instantMaximumThroughput: string ,
softAllowedMaximumThroughput: string ,
}
,
}
,
}
,
}

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ Response (200)

{
properties:
{
resource: string ,
}
,
}
SqlResources_MigrateSqlDatabaseToAutoscale (new)
Description Migrate an Azure Cosmos DB SQL database from manual throughput to autoscale
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/throughputSettings/default/migrateToAutoscale
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
api-version: string ,
}

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ Response (200)

{
properties:
{
resource: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
SqlResources_MigrateSqlDatabaseToManualThroughput (new)
Description Migrate an Azure Cosmos DB SQL database from autoscale to manual throughput
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/throughputSettings/default/migrateToManualThroughput
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
api-version: string ,
}

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ Response (200)

{
properties:
{
resource: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
SqlResources_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}/sqlDatabases/{databaseName}/containers
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
resource: string ,
options: string ,
}
,
}
,
]
,
}
SqlResources_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}/sqlDatabases/{databaseName}/containers/{containerName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
containerName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
resource: string ,
options: string ,
}
,
}
SqlResources_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}/sqlDatabases/{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 ,
}
,
]
,
compositeIndexes:
[
{
path: string ,
order: enum ,
}
,
]
,
spatialIndexes:
[
{
path: string ,
types:
[
string ,
]
,
}
,
]
,
vectorIndexes:
[
{
path: string ,
type: enum ,
}
,
]
,
}
,
partitionKey:
{
paths:
[
string ,
]
,
kind: enum ,
version: integer ,
systemKey: boolean ,
}
,
defaultTtl: integer ,
uniqueKeyPolicy:
{
uniqueKeys:
[
{
paths:
[
string ,
]
,
}
,
]
,
}
,
conflictResolutionPolicy:
{
mode: enum ,
conflictResolutionPath: string ,
conflictResolutionProcedure: string ,
}
,
clientEncryptionPolicy:
{
includedPaths:
[
{
path: string ,
clientEncryptionKeyId: string ,
encryptionType: string ,
encryptionAlgorithm: string ,
}
,
]
,
policyFormatVersion: integer ,
}
,
analyticalStorageTtl: integer ,
restoreParameters: object ,
createMode: enum ,
computedProperties:
[
{
name: string ,
query: string ,
}
,
]
,
vectorEmbeddingPolicy:
{
vectorEmbeddings:
[
{
path: string ,
dataType: enum ,
distanceFunction: enum ,
dimensions: integer ,
}
,
]
,
}
,
fullTextPolicy:
{
defaultLanguage: string ,
fullTextPaths:
[
{
path: string ,
language: string ,
}
,
]
,
}
,
}
,
options:
{
throughput: integer ,
autoscaleSettings:
{
maxThroughput: integer ,
}
,
}
,
}
,
}
,
}

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ Response (200)

{
properties:
{
resource: string ,
options: string ,
}
,
}
SqlResources_DeleteSqlContainer (new)
Description Deletes an existing Azure Cosmos DB SQL container.
Reference Link ¶

⚼ Request

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

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ Response (204)

{}
SqlResources_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}/sqlDatabases/{databaseName}/containers/{containerName}/throughputSettings/default
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
containerName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
resource: string ,
}
,
}
SqlResources_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}/sqlDatabases/{databaseName}/containers/{containerName}/throughputSettings/default
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
containerName: string ,
api-version: string ,
updateThroughputParameters:
{
properties:
{
resource:
{
throughput: integer ,
autoscaleSettings:
{
maxThroughput: integer ,
autoUpgradePolicy:
{
throughputPolicy:
{
isEnabled: boolean ,
incrementPercent: integer ,
}
,
}
,
targetMaxThroughput: integer ,
}
,
minimumThroughput: string ,
offerReplacePending: string ,
instantMaximumThroughput: string ,
softAllowedMaximumThroughput: string ,
}
,
}
,
}
,
}

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ Response (200)

{
properties:
{
resource: string ,
}
,
}
SqlResources_MigrateSqlContainerToAutoscale (new)
Description Migrate an Azure Cosmos DB SQL container from manual throughput to autoscale
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/throughputSettings/default/migrateToAutoscale
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
containerName: string ,
api-version: string ,
}

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ Response (200)

{
properties:
{
resource: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
SqlResources_MigrateSqlContainerToManualThroughput (new)
Description Migrate an Azure Cosmos DB SQL container from autoscale to manual throughput
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/throughputSettings/default/migrateToManualThroughput
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
containerName: string ,
api-version: string ,
}

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ Response (200)

{
properties:
{
resource: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
SqlResources_ListClientEncryptionKeys (new)
Description Lists the ClientEncryptionKeys under an existing Azure Cosmos DB SQL database.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
value:
[
{
properties:
{
resource: string ,
}
,
}
,
]
,
}
SqlResources_GetClientEncryptionKey (new)
Description Gets the ClientEncryptionKey under an existing Azure Cosmos DB SQL database.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
properties:
{
resource: string ,
}
,
}
SqlResources_CreateUpdateClientEncryptionKey (new)
Description Create or update a ClientEncryptionKey. This API is meant to be invoked via tools such as the Azure Powershell (instead of directly).
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/clientEncryptionKeys/{clientEncryptionKeyName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
clientEncryptionKeyName: string ,
api-version: string ,
createUpdateClientEncryptionKeyParameters:
{
properties:
{
resource:
{
id: string ,
encryptionAlgorithm: string ,
wrappedDataEncryptionKey: string ,
keyWrapMetadata:
{
name: string ,
type: string ,
value: string ,
algorithm: string ,
}
,
}
,
}
,
}
,
}

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ Response (200)

{
properties:
{
resource: string ,
}
,
}
SqlResources_ListSqlStoredProcedures (new)
Description Lists the SQL storedProcedure under an existing Azure Cosmos DB database account.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
value:
[
{
properties:
{
resource: string ,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
SqlResources_GetSqlStoredProcedure (new)
Description Gets the SQL storedProcedure under an existing Azure Cosmos DB database account.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/storedProcedures/{storedProcedureName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
containerName: string ,
storedProcedureName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
resource: string ,
}
,
}
SqlResources_CreateUpdateSqlStoredProcedure (new)
Description Create or update an Azure Cosmos DB SQL storedProcedure
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/storedProcedures/{storedProcedureName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
containerName: string ,
storedProcedureName: string ,
api-version: string ,
createUpdateSqlStoredProcedureParameters:
{
properties:
{
resource:
{
id: string ,
body: string ,
}
,
options:
{
throughput: integer ,
autoscaleSettings:
{
maxThroughput: integer ,
}
,
}
,
}
,
}
,
}

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ Response (200)

{
properties:
{
resource: string ,
}
,
}
SqlResources_DeleteSqlStoredProcedure (new)
Description Deletes an existing Azure Cosmos DB SQL storedProcedure.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/storedProcedures/{storedProcedureName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
containerName: string ,
storedProcedureName: string ,
api-version: string ,
}

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ Response (204)

{}
SqlResources_ListSqlUserDefinedFunctions (new)
Description Lists the SQL userDefinedFunction under an existing Azure Cosmos DB database account.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
value:
[
{
properties:
{
resource: string ,
}
,
}
,
]
,
}
SqlResources_GetSqlUserDefinedFunction (new)
Description Gets the SQL userDefinedFunction under an existing Azure Cosmos DB database account.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/userDefinedFunctions/{userDefinedFunctionName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
containerName: string ,
userDefinedFunctionName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
resource: string ,
}
,
}
SqlResources_CreateUpdateSqlUserDefinedFunction (new)
Description Create or update an Azure Cosmos DB SQL userDefinedFunction
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/userDefinedFunctions/{userDefinedFunctionName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
containerName: string ,
userDefinedFunctionName: string ,
api-version: string ,
createUpdateSqlUserDefinedFunctionParameters:
{
properties:
{
resource:
{
id: string ,
body: string ,
}
,
options:
{
throughput: integer ,
autoscaleSettings:
{
maxThroughput: integer ,
}
,
}
,
}
,
}
,
}

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ Response (200)

{
properties:
{
resource: string ,
}
,
}
SqlResources_DeleteSqlUserDefinedFunction (new)
Description Deletes an existing Azure Cosmos DB SQL userDefinedFunction.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/userDefinedFunctions/{userDefinedFunctionName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
containerName: string ,
userDefinedFunctionName: string ,
api-version: string ,
}

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ Response (204)

{}
SqlResources_ListSqlTriggers (new)
Description Lists the SQL trigger under an existing Azure Cosmos DB database account.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
value:
[
{
properties:
{
resource: string ,
}
,
}
,
]
,
}
SqlResources_GetSqlTrigger (new)
Description Gets the SQL trigger under an existing Azure Cosmos DB database account.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/triggers/{triggerName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
containerName: string ,
triggerName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
resource: string ,
}
,
}
SqlResources_CreateUpdateSqlTrigger (new)
Description Create or update an Azure Cosmos DB SQL trigger
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/triggers/{triggerName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
containerName: string ,
triggerName: string ,
api-version: string ,
createUpdateSqlTriggerParameters:
{
properties:
{
resource:
{
id: string ,
body: string ,
triggerType: enum ,
triggerOperation: enum ,
}
,
options:
{
throughput: integer ,
autoscaleSettings:
{
maxThroughput: integer ,
}
,
}
,
}
,
}
,
}

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ Response (200)

{
properties:
{
resource: string ,
}
,
}
SqlResources_DeleteSqlTrigger (new)
Description Deletes an existing Azure Cosmos DB SQL trigger.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/triggers/{triggerName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
containerName: string ,
triggerName: string ,
api-version: string ,
}

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ Response (204)

{}
MongoDBResources_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}/mongodbDatabases
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
resource: string ,
options: string ,
}
,
}
,
]
,
}
MongoDBResources_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}/mongodbDatabases/{databaseName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
resource: string ,
options: string ,
}
,
}
MongoDBResources_CreateUpdateMongoDBDatabase (new)
Description Create or updates Azure Cosmos DB MongoDB database
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
api-version: string ,
createUpdateMongoDBDatabaseParameters:
{
properties:
{
resource:
{
id: string ,
restoreParameters: object ,
createMode: enum ,
}
,
options:
{
throughput: integer ,
autoscaleSettings:
{
maxThroughput: integer ,
}
,
}
,
}
,
}
,
}

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ Response (200)

{
properties:
{
resource: string ,
options: string ,
}
,
}
MongoDBResources_DeleteMongoDBDatabase (new)
Description Deletes an existing Azure Cosmos DB MongoDB database.
Reference Link ¶

⚼ Request

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

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ Response (204)

{}
MongoDBResources_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}/mongodbDatabases/{databaseName}/throughputSettings/default
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
resource: string ,
}
,
}
MongoDBResources_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}/mongodbDatabases/{databaseName}/throughputSettings/default
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
api-version: string ,
updateThroughputParameters:
{
properties:
{
resource:
{
throughput: integer ,
autoscaleSettings:
{
maxThroughput: integer ,
autoUpgradePolicy:
{
throughputPolicy:
{
isEnabled: boolean ,
incrementPercent: integer ,
}
,
}
,
targetMaxThroughput: integer ,
}
,
minimumThroughput: string ,
offerReplacePending: string ,
instantMaximumThroughput: string ,
softAllowedMaximumThroughput: string ,
}
,
}
,
}
,
}

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ Response (200)

{
properties:
{
resource: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
MongoDBResources_MigrateMongoDBDatabaseToAutoscale (new)
Description Migrate an Azure Cosmos DB MongoDB database from manual throughput to autoscale
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/throughputSettings/default/migrateToAutoscale
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
api-version: string ,
}

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ Response (200)

{
properties:
{
resource: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
MongoDBResources_MigrateMongoDBDatabaseToManualThroughput (new)
Description Migrate an Azure Cosmos DB MongoDB database from autoscale to manual throughput
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/throughputSettings/default/migrateToManualThroughput
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
api-version: string ,
}

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ Response (200)

{
properties:
{
resource: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
MongoDBResources_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}/mongodbDatabases/{databaseName}/collections
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
resource: string ,
options: string ,
}
,
}
,
]
,
}
MongoDBResources_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}/mongodbDatabases/{databaseName}/collections/{collectionName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
collectionName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
resource: string ,
options: string ,
}
,
}
MongoDBResources_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}/mongodbDatabases/{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 ,
}
,
}
,
]
,
analyticalStorageTtl: integer ,
restoreParameters: object ,
createMode: enum ,
}
,
options:
{
throughput: integer ,
autoscaleSettings:
{
maxThroughput: integer ,
}
,
}
,
}
,
}
,
}

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ Response (200)

{
properties:
{
resource: string ,
options: string ,
}
,
}
MongoDBResources_DeleteMongoDBCollection (new)
Description Deletes an existing Azure Cosmos DB MongoDB Collection.
Reference Link ¶

⚼ Request

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

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ Response (204)

{}
MongoDBResources_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}/mongodbDatabases/{databaseName}/collections/{collectionName}/throughputSettings/default
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
collectionName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
resource: string ,
}
,
}
MongoDBResources_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}/mongodbDatabases/{databaseName}/collections/{collectionName}/throughputSettings/default
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
collectionName: string ,
api-version: string ,
updateThroughputParameters:
{
properties:
{
resource:
{
throughput: integer ,
autoscaleSettings:
{
maxThroughput: integer ,
autoUpgradePolicy:
{
throughputPolicy:
{
isEnabled: boolean ,
incrementPercent: integer ,
}
,
}
,
targetMaxThroughput: integer ,
}
,
minimumThroughput: string ,
offerReplacePending: string ,
instantMaximumThroughput: string ,
softAllowedMaximumThroughput: string ,
}
,
}
,
}
,
}

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ Response (200)

{
properties:
{
resource: string ,
}
,
}
MongoDBResources_MigrateMongoDBCollectionToAutoscale (new)
Description Migrate an Azure Cosmos DB MongoDB collection from manual throughput to autoscale
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections/{collectionName}/throughputSettings/default/migrateToAutoscale
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
collectionName: string ,
api-version: string ,
}

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ Response (200)

{
properties:
{
resource: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
MongoDBResources_MigrateMongoDBCollectionToManualThroughput (new)
Description Migrate an Azure Cosmos DB MongoDB collection from autoscale to manual throughput
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections/{collectionName}/throughputSettings/default/migrateToManualThroughput
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
collectionName: string ,
api-version: string ,
}

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ Response (200)

{
properties:
{
resource: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
TableResources_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}/tables
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
resource: string ,
options: string ,
}
,
}
,
]
,
}
TableResources_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}/tables/{tableName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
tableName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
resource: string ,
options: string ,
}
,
}
TableResources_CreateUpdateTable (new)
Description Create or update an Azure Cosmos DB Table
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
tableName: string ,
api-version: string ,
createUpdateTableParameters:
{
properties:
{
resource:
{
id: string ,
restoreParameters: object ,
createMode: enum ,
}
,
options:
{
throughput: integer ,
autoscaleSettings:
{
maxThroughput: integer ,
}
,
}
,
}
,
}
,
}

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ Response (200)

{
properties:
{
resource: string ,
options: string ,
}
,
}
TableResources_DeleteTable (new)
Description Deletes an existing Azure Cosmos DB Table.
Reference Link ¶

⚼ Request

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

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ Response (204)

{}
TableResources_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}/tables/{tableName}/throughputSettings/default
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
tableName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
resource: string ,
}
,
}
TableResources_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}/tables/{tableName}/throughputSettings/default
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
tableName: string ,
api-version: string ,
updateThroughputParameters:
{
properties:
{
resource:
{
throughput: integer ,
autoscaleSettings:
{
maxThroughput: integer ,
autoUpgradePolicy:
{
throughputPolicy:
{
isEnabled: boolean ,
incrementPercent: integer ,
}
,
}
,
targetMaxThroughput: integer ,
}
,
minimumThroughput: string ,
offerReplacePending: string ,
instantMaximumThroughput: string ,
softAllowedMaximumThroughput: string ,
}
,
}
,
}
,
}

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ Response (200)

{
properties:
{
resource: string ,
}
,
}
TableResources_MigrateTableToAutoscale (new)
Description Migrate an Azure Cosmos DB Table from manual throughput to autoscale
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}/throughputSettings/default/migrateToAutoscale
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
tableName: string ,
api-version: string ,
}

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ Response (200)

{
properties:
{
resource: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
TableResources_MigrateTableToManualThroughput (new)
Description Migrate an Azure Cosmos DB Table from autoscale to manual throughput
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}/throughputSettings/default/migrateToManualThroughput
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
tableName: string ,
api-version: string ,
}

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ Response (200)

{
properties:
{
resource: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
CassandraResources_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}/cassandraKeyspaces
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
resource: string ,
options: string ,
}
,
}
,
]
,
}
CassandraResources_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}/cassandraKeyspaces/{keyspaceName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
keyspaceName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
resource: string ,
options: string ,
}
,
}
CassandraResources_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}/cassandraKeyspaces/{keyspaceName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
keyspaceName: string ,
api-version: string ,
createUpdateCassandraKeyspaceParameters:
{
properties:
{
resource:
{
id: string ,
}
,
options:
{
throughput: integer ,
autoscaleSettings:
{
maxThroughput: integer ,
}
,
}
,
}
,
}
,
}

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ Response (200)

{
properties:
{
resource: string ,
options: string ,
}
,
}
CassandraResources_DeleteCassandraKeyspace (new)
Description Deletes an existing Azure Cosmos DB Cassandra keyspace.
Reference Link ¶

⚼ Request

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

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ Response (204)

{}
CassandraResources_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}/cassandraKeyspaces/{keyspaceName}/throughputSettings/default
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
keyspaceName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
resource: string ,
}
,
}
CassandraResources_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}/cassandraKeyspaces/{keyspaceName}/throughputSettings/default
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
keyspaceName: string ,
api-version: string ,
updateThroughputParameters:
{
properties:
{
resource:
{
throughput: integer ,
autoscaleSettings:
{
maxThroughput: integer ,
autoUpgradePolicy:
{
throughputPolicy:
{
isEnabled: boolean ,
incrementPercent: integer ,
}
,
}
,
targetMaxThroughput: integer ,
}
,
minimumThroughput: string ,
offerReplacePending: string ,
instantMaximumThroughput: string ,
softAllowedMaximumThroughput: string ,
}
,
}
,
}
,
}

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ Response (200)

{
properties:
{
resource: string ,
}
,
}
CassandraResources_MigrateCassandraKeyspaceToAutoscale (new)
Description Migrate an Azure Cosmos DB Cassandra Keyspace from manual throughput to autoscale
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/throughputSettings/default/migrateToAutoscale
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
keyspaceName: string ,
api-version: string ,
}

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ Response (200)

{
properties:
{
resource: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
CassandraResources_MigrateCassandraKeyspaceToManualThroughput (new)
Description Migrate an Azure Cosmos DB Cassandra Keyspace from autoscale to manual throughput
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/throughputSettings/default/migrateToManualThroughput
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
keyspaceName: string ,
api-version: string ,
}

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ Response (200)

{
properties:
{
resource: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
CassandraResources_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}/cassandraKeyspaces/{keyspaceName}/tables
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
keyspaceName: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
resource: string ,
options: string ,
}
,
}
,
]
,
}
CassandraResources_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}/cassandraKeyspaces/{keyspaceName}/tables/{tableName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
keyspaceName: string ,
tableName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
resource: string ,
options: string ,
}
,
}
CassandraResources_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}/cassandraKeyspaces/{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 ,
}
,
]
,
}
,
analyticalStorageTtl: integer ,
}
,
options:
{
throughput: integer ,
autoscaleSettings:
{
maxThroughput: integer ,
}
,
}
,
}
,
}
,
}

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ Response (200)

{
properties:
{
resource: string ,
options: string ,
}
,
}
CassandraResources_DeleteCassandraTable (new)
Description Deletes an existing Azure Cosmos DB Cassandra table.
Reference Link ¶

⚼ Request

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

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ Response (204)

{}
CassandraResources_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}/cassandraKeyspaces/{keyspaceName}/tables/{tableName}/throughputSettings/default
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
keyspaceName: string ,
tableName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
resource: string ,
}
,
}
CassandraResources_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}/cassandraKeyspaces/{keyspaceName}/tables/{tableName}/throughputSettings/default
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
keyspaceName: string ,
tableName: string ,
api-version: string ,
updateThroughputParameters:
{
properties:
{
resource:
{
throughput: integer ,
autoscaleSettings:
{
maxThroughput: integer ,
autoUpgradePolicy:
{
throughputPolicy:
{
isEnabled: boolean ,
incrementPercent: integer ,
}
,
}
,
targetMaxThroughput: integer ,
}
,
minimumThroughput: string ,
offerReplacePending: string ,
instantMaximumThroughput: string ,
softAllowedMaximumThroughput: string ,
}
,
}
,
}
,
}

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ Response (200)

{
properties:
{
resource: string ,
}
,
}
CassandraResources_MigrateCassandraTableToAutoscale (new)
Description Migrate an Azure Cosmos DB Cassandra table from manual throughput to autoscale
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables/{tableName}/throughputSettings/default/migrateToAutoscale
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
keyspaceName: string ,
tableName: string ,
api-version: string ,
}

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ Response (200)

{
properties:
{
resource: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
CassandraResources_MigrateCassandraTableToManualThroughput (new)
Description Migrate an Azure Cosmos DB Cassandra table from autoscale to manual throughput
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables/{tableName}/throughputSettings/default/migrateToManualThroughput
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
keyspaceName: string ,
tableName: string ,
api-version: string ,
}

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ Response (200)

{
properties:
{
resource: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
GremlinResources_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}/gremlinDatabases
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
resource: string ,
options: string ,
}
,
}
,
]
,
}
GremlinResources_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}/gremlinDatabases/{databaseName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
resource: string ,
options: string ,
}
,
}
GremlinResources_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}/gremlinDatabases/{databaseName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
api-version: string ,
createUpdateGremlinDatabaseParameters:
{
properties:
{
resource:
{
id: string ,
restoreParameters: object ,
createMode: enum ,
}
,
options:
{
throughput: integer ,
autoscaleSettings:
{
maxThroughput: integer ,
}
,
}
,
}
,
}
,
}

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ Response (200)

{
properties:
{
resource: string ,
options: string ,
}
,
}
GremlinResources_DeleteGremlinDatabase (new)
Description Deletes an existing Azure Cosmos DB Gremlin database.
Reference Link ¶

⚼ Request

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

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ Response (204)

{}
GremlinResources_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}/gremlinDatabases/{databaseName}/throughputSettings/default
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
resource: string ,
}
,
}
GremlinResources_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}/gremlinDatabases/{databaseName}/throughputSettings/default
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
api-version: string ,
updateThroughputParameters:
{
properties:
{
resource:
{
throughput: integer ,
autoscaleSettings:
{
maxThroughput: integer ,
autoUpgradePolicy:
{
throughputPolicy:
{
isEnabled: boolean ,
incrementPercent: integer ,
}
,
}
,
targetMaxThroughput: integer ,
}
,
minimumThroughput: string ,
offerReplacePending: string ,
instantMaximumThroughput: string ,
softAllowedMaximumThroughput: string ,
}
,
}
,
}
,
}

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ Response (200)

{
properties:
{
resource: string ,
}
,
}
GremlinResources_MigrateGremlinDatabaseToAutoscale (new)
Description Migrate an Azure Cosmos DB Gremlin database from manual throughput to autoscale
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/throughputSettings/default/migrateToAutoscale
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
api-version: string ,
}

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ Response (200)

{
properties:
{
resource: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
GremlinResources_MigrateGremlinDatabaseToManualThroughput (new)
Description Migrate an Azure Cosmos DB Gremlin database from autoscale to manual throughput
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/throughputSettings/default/migrateToManualThroughput
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
api-version: string ,
}

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ Response (200)

{
properties:
{
resource: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
GremlinResources_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}/gremlinDatabases/{databaseName}/graphs
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
resource: string ,
options: string ,
}
,
}
,
]
,
}
GremlinResources_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}/gremlinDatabases/{databaseName}/graphs/{graphName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
graphName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
resource: string ,
options: string ,
}
,
}
GremlinResources_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}/gremlinDatabases/{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 ,
}
,
]
,
compositeIndexes:
[
{
path: string ,
order: enum ,
}
,
]
,
spatialIndexes:
[
{
path: string ,
types:
[
string ,
]
,
}
,
]
,
vectorIndexes:
[
{
path: string ,
type: enum ,
}
,
]
,
}
,
partitionKey:
{
paths:
[
string ,
]
,
kind: enum ,
version: integer ,
systemKey: boolean ,
}
,
defaultTtl: integer ,
uniqueKeyPolicy:
{
uniqueKeys:
[
{
paths:
[
string ,
]
,
}
,
]
,
}
,
conflictResolutionPolicy:
{
mode: enum ,
conflictResolutionPath: string ,
conflictResolutionProcedure: string ,
}
,
analyticalStorageTtl: integer ,
restoreParameters: object ,
createMode: enum ,
}
,
options:
{
throughput: integer ,
autoscaleSettings:
{
maxThroughput: integer ,
}
,
}
,
}
,
}
,
}

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ Response (200)

{
properties:
{
resource: string ,
options: string ,
}
,
}
GremlinResources_DeleteGremlinGraph (new)
Description Deletes an existing Azure Cosmos DB Gremlin graph.
Reference Link ¶

⚼ Request

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

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ Response (204)

{}
GremlinResources_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}/gremlinDatabases/{databaseName}/graphs/{graphName}/throughputSettings/default
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
graphName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
resource: string ,
}
,
}
GremlinResources_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}/gremlinDatabases/{databaseName}/graphs/{graphName}/throughputSettings/default
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
graphName: string ,
api-version: string ,
updateThroughputParameters:
{
properties:
{
resource:
{
throughput: integer ,
autoscaleSettings:
{
maxThroughput: integer ,
autoUpgradePolicy:
{
throughputPolicy:
{
isEnabled: boolean ,
incrementPercent: integer ,
}
,
}
,
targetMaxThroughput: integer ,
}
,
minimumThroughput: string ,
offerReplacePending: string ,
instantMaximumThroughput: string ,
softAllowedMaximumThroughput: string ,
}
,
}
,
}
,
}

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ Response (200)

{
properties:
{
resource: string ,
}
,
}
GremlinResources_MigrateGremlinGraphToAutoscale (new)
Description Migrate an Azure Cosmos DB Gremlin graph from manual throughput to autoscale
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/graphs/{graphName}/throughputSettings/default/migrateToAutoscale
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
graphName: string ,
api-version: string ,
}

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ Response (200)

{
properties:
{
resource: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
GremlinResources_MigrateGremlinGraphToManualThroughput (new)
Description Migrate an Azure Cosmos DB Gremlin graph from autoscale to manual throughput
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/graphs/{graphName}/throughputSettings/default/migrateToManualThroughput
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
graphName: string ,
api-version: string ,
}

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ Response (200)

{
properties:
{
resource: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Locations_List (new)
Description List Cosmos DB locations and their properties
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
value:
[
{
properties:
{
supportsAvailabilityZone: boolean ,
isResidencyRestricted: boolean ,
backupStorageRedundancies:
[
string ,
]
,
isSubscriptionRegionAccessAllowedForRegular: boolean ,
isSubscriptionRegionAccessAllowedForAz: boolean ,
status: enum ,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Locations_Get (new)
Description Get the properties of an existing Cosmos DB location
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
properties:
{
supportsAvailabilityZone: boolean ,
isResidencyRestricted: boolean ,
backupStorageRedundancies:
[
string ,
]
,
isSubscriptionRegionAccessAllowedForRegular: boolean ,
isSubscriptionRegionAccessAllowedForAz: boolean ,
status: enum ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
CassandraClusters_ListBySubscription (new)
Description List all managed Cassandra clusters in this subscription.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
value:
[
{
properties:
{
provisioningState: enum ,
restoreFromBackupId: string ,
delegatedManagementSubnetId: string ,
cassandraVersion: string ,
clusterNameOverride: string ,
authenticationMethod: enum ,
initialCassandraAdminPassword: string ,
prometheusEndpoint:
{
ipAddress: string ,
}
,
repairEnabled: boolean ,
clientCertificates:
[
{
pem: string ,
}
,
]
,
externalGossipCertificates:
[
{
pem: string ,
}
,
]
,
gossipCertificates:
[
{
pem: string ,
}
,
]
,
externalSeedNodes:
[
{
ipAddress: string ,
}
,
]
,
seedNodes:
[
{
ipAddress: string ,
}
,
]
,
hoursBetweenBackups: integer ,
deallocated: boolean ,
cassandraAuditLoggingEnabled: boolean ,
provisionError:
{
code: string ,
message: string ,
target: string ,
additionalErrorInfo: string ,
}
,
azureConnectionMethod: enum ,
privateLinkResourceId: string ,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
CassandraClusters_ListByResourceGroup (new)
Description List all managed Cassandra clusters in this resource group.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
value:
[
{
properties:
{
provisioningState: enum ,
restoreFromBackupId: string ,
delegatedManagementSubnetId: string ,
cassandraVersion: string ,
clusterNameOverride: string ,
authenticationMethod: enum ,
initialCassandraAdminPassword: string ,
prometheusEndpoint:
{
ipAddress: string ,
}
,
repairEnabled: boolean ,
clientCertificates:
[
{
pem: string ,
}
,
]
,
externalGossipCertificates:
[
{
pem: string ,
}
,
]
,
gossipCertificates:
[
{
pem: string ,
}
,
]
,
externalSeedNodes:
[
{
ipAddress: string ,
}
,
]
,
seedNodes:
[
{
ipAddress: string ,
}
,
]
,
hoursBetweenBackups: integer ,
deallocated: boolean ,
cassandraAuditLoggingEnabled: boolean ,
provisionError:
{
code: string ,
message: string ,
target: string ,
additionalErrorInfo: string ,
}
,
azureConnectionMethod: enum ,
privateLinkResourceId: string ,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
CassandraClusters_Get (new)
Description Get the properties of a managed Cassandra cluster.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
properties:
{
provisioningState: enum ,
restoreFromBackupId: string ,
delegatedManagementSubnetId: string ,
cassandraVersion: string ,
clusterNameOverride: string ,
authenticationMethod: enum ,
initialCassandraAdminPassword: string ,
prometheusEndpoint:
{
ipAddress: string ,
}
,
repairEnabled: boolean ,
clientCertificates:
[
{
pem: string ,
}
,
]
,
externalGossipCertificates:
[
{
pem: string ,
}
,
]
,
gossipCertificates:
[
{
pem: string ,
}
,
]
,
externalSeedNodes:
[
{
ipAddress: string ,
}
,
]
,
seedNodes:
[
{
ipAddress: string ,
}
,
]
,
hoursBetweenBackups: integer ,
deallocated: boolean ,
cassandraAuditLoggingEnabled: boolean ,
provisionError:
{
code: string ,
message: string ,
target: string ,
additionalErrorInfo: string ,
}
,
azureConnectionMethod: enum ,
privateLinkResourceId: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
CassandraClusters_Delete (new)
Description Deletes a managed Cassandra cluster.
Reference Link ¶

⚼ Request

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

⚐ Response (202)

{}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
CassandraClusters_CreateUpdate (new)
Description Create or update a managed Cassandra cluster. When updating, you must specify all writable properties. To update only some properties, use PATCH.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}
{
subscriptionId: string ,
resourceGroupName: string ,
clusterName: string ,
api-version: string ,
body:
{
properties:
{
provisioningState: enum ,
restoreFromBackupId: string ,
delegatedManagementSubnetId: string ,
cassandraVersion: string ,
clusterNameOverride: string ,
authenticationMethod: enum ,
initialCassandraAdminPassword: string ,
prometheusEndpoint:
{
ipAddress: string ,
}
,
repairEnabled: boolean ,
clientCertificates:
[
{
pem: string ,
}
,
]
,
externalGossipCertificates:
[
{
pem: string ,
}
,
]
,
gossipCertificates:
[
{
pem: string ,
}
,
]
,
externalSeedNodes:
[
{
ipAddress: string ,
}
,
]
,
seedNodes:
[
{
ipAddress: string ,
}
,
]
,
hoursBetweenBackups: integer ,
deallocated: boolean ,
cassandraAuditLoggingEnabled: boolean ,
provisionError:
{
code: string ,
message: string ,
target: string ,
additionalErrorInfo: string ,
}
,
azureConnectionMethod: enum ,
privateLinkResourceId: string ,
}
,
}
,
}

⚐ Response (200)

{
properties:
{
provisioningState: enum ,
restoreFromBackupId: string ,
delegatedManagementSubnetId: string ,
cassandraVersion: string ,
clusterNameOverride: string ,
authenticationMethod: enum ,
initialCassandraAdminPassword: string ,
prometheusEndpoint:
{
ipAddress: string ,
}
,
repairEnabled: boolean ,
clientCertificates:
[
{
pem: string ,
}
,
]
,
externalGossipCertificates:
[
{
pem: string ,
}
,
]
,
gossipCertificates:
[
{
pem: string ,
}
,
]
,
externalSeedNodes:
[
{
ipAddress: string ,
}
,
]
,
seedNodes:
[
{
ipAddress: string ,
}
,
]
,
hoursBetweenBackups: integer ,
deallocated: boolean ,
cassandraAuditLoggingEnabled: boolean ,
provisionError:
{
code: string ,
message: string ,
target: string ,
additionalErrorInfo: string ,
}
,
azureConnectionMethod: enum ,
privateLinkResourceId: string ,
}
,
}

⚐ Response (201)

{
properties:
{
provisioningState: enum ,
restoreFromBackupId: string ,
delegatedManagementSubnetId: string ,
cassandraVersion: string ,
clusterNameOverride: string ,
authenticationMethod: enum ,
initialCassandraAdminPassword: string ,
prometheusEndpoint:
{
ipAddress: string ,
}
,
repairEnabled: boolean ,
clientCertificates:
[
{
pem: string ,
}
,
]
,
externalGossipCertificates:
[
{
pem: string ,
}
,
]
,
gossipCertificates:
[
{
pem: string ,
}
,
]
,
externalSeedNodes:
[
{
ipAddress: string ,
}
,
]
,
seedNodes:
[
{
ipAddress: string ,
}
,
]
,
hoursBetweenBackups: integer ,
deallocated: boolean ,
cassandraAuditLoggingEnabled: boolean ,
provisionError:
{
code: string ,
message: string ,
target: string ,
additionalErrorInfo: string ,
}
,
azureConnectionMethod: enum ,
privateLinkResourceId: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
CassandraClusters_Update (new)
Description Updates some of the properties of a managed Cassandra cluster.
Reference Link ¶

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}
{
subscriptionId: string ,
resourceGroupName: string ,
clusterName: string ,
api-version: string ,
body:
{
properties:
{
provisioningState: enum ,
restoreFromBackupId: string ,
delegatedManagementSubnetId: string ,
cassandraVersion: string ,
clusterNameOverride: string ,
authenticationMethod: enum ,
initialCassandraAdminPassword: string ,
prometheusEndpoint:
{
ipAddress: string ,
}
,
repairEnabled: boolean ,
clientCertificates:
[
{
pem: string ,
}
,
]
,
externalGossipCertificates:
[
{
pem: string ,
}
,
]
,
gossipCertificates:
[
{
pem: string ,
}
,
]
,
externalSeedNodes:
[
{
ipAddress: string ,
}
,
]
,
seedNodes:
[
{
ipAddress: string ,
}
,
]
,
hoursBetweenBackups: integer ,
deallocated: boolean ,
cassandraAuditLoggingEnabled: boolean ,
provisionError:
{
code: string ,
message: string ,
target: string ,
additionalErrorInfo: string ,
}
,
azureConnectionMethod: enum ,
privateLinkResourceId: string ,
}
,
}
,
}

⚐ Response (202)

{
properties:
{
provisioningState: enum ,
restoreFromBackupId: string ,
delegatedManagementSubnetId: string ,
cassandraVersion: string ,
clusterNameOverride: string ,
authenticationMethod: enum ,
initialCassandraAdminPassword: string ,
prometheusEndpoint:
{
ipAddress: string ,
}
,
repairEnabled: boolean ,
clientCertificates:
[
{
pem: string ,
}
,
]
,
externalGossipCertificates:
[
{
pem: string ,
}
,
]
,
gossipCertificates:
[
{
pem: string ,
}
,
]
,
externalSeedNodes:
[
{
ipAddress: string ,
}
,
]
,
seedNodes:
[
{
ipAddress: string ,
}
,
]
,
hoursBetweenBackups: integer ,
deallocated: boolean ,
cassandraAuditLoggingEnabled: boolean ,
provisionError:
{
code: string ,
message: string ,
target: string ,
additionalErrorInfo: string ,
}
,
azureConnectionMethod: enum ,
privateLinkResourceId: string ,
}
,
}

⚐ Response (200)

{
properties:
{
provisioningState: enum ,
restoreFromBackupId: string ,
delegatedManagementSubnetId: string ,
cassandraVersion: string ,
clusterNameOverride: string ,
authenticationMethod: enum ,
initialCassandraAdminPassword: string ,
prometheusEndpoint:
{
ipAddress: string ,
}
,
repairEnabled: boolean ,
clientCertificates:
[
{
pem: string ,
}
,
]
,
externalGossipCertificates:
[
{
pem: string ,
}
,
]
,
gossipCertificates:
[
{
pem: string ,
}
,
]
,
externalSeedNodes:
[
{
ipAddress: string ,
}
,
]
,
seedNodes:
[
{
ipAddress: string ,
}
,
]
,
hoursBetweenBackups: integer ,
deallocated: boolean ,
cassandraAuditLoggingEnabled: boolean ,
provisionError:
{
code: string ,
message: string ,
target: string ,
additionalErrorInfo: string ,
}
,
azureConnectionMethod: enum ,
privateLinkResourceId: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
CassandraClusters_InvokeCommand (new)
Description Invoke a command like nodetool for cassandra maintenance
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/invokeCommand
{
subscriptionId: string ,
resourceGroupName: string ,
clusterName: string ,
api-version: string ,
body:
{
command: string ,
arguments: object ,
host: string ,
cassandra-stop-start: boolean ,
readwrite: boolean ,
}
,
}

⚐ Response (202)

{
commandOutput: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
CassandraDataCenters_List (new)
Description List all data centers in a particular managed Cassandra cluster.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
value:
[
{
properties:
{
provisioningState: enum ,
dataCenterLocation: string ,
delegatedSubnetId: string ,
nodeCount: integer ,
seedNodes:
[
{
ipAddress: string ,
}
,
]
,
base64EncodedCassandraYamlFragment: string ,
managedDiskCustomerKeyUri: string ,
backupStorageCustomerKeyUri: string ,
sku: string ,
diskSku: string ,
diskCapacity: integer ,
availabilityZone: boolean ,
authenticationMethodLdapProperties:
{
serverHostname: string ,
serverPort: integer ,
serviceUserDistinguishedName: string ,
serviceUserPassword: string ,
searchBaseDistinguishedName: string ,
searchFilterTemplate: string ,
serverCertificates:
[
{
pem: string ,
}
,
]
,
connectionTimeoutInMs: integer ,
}
,
deallocated: boolean ,
provisionError:
{
code: string ,
message: string ,
target: string ,
additionalErrorInfo: string ,
}
,
privateEndpointIpAddress: string ,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
CassandraDataCenters_Get (new)
Description Get the properties of a managed Cassandra data center.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/dataCenters/{dataCenterName}
{
subscriptionId: string ,
resourceGroupName: string ,
clusterName: string ,
dataCenterName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
provisioningState: enum ,
dataCenterLocation: string ,
delegatedSubnetId: string ,
nodeCount: integer ,
seedNodes:
[
{
ipAddress: string ,
}
,
]
,
base64EncodedCassandraYamlFragment: string ,
managedDiskCustomerKeyUri: string ,
backupStorageCustomerKeyUri: string ,
sku: string ,
diskSku: string ,
diskCapacity: integer ,
availabilityZone: boolean ,
authenticationMethodLdapProperties:
{
serverHostname: string ,
serverPort: integer ,
serviceUserDistinguishedName: string ,
serviceUserPassword: string ,
searchBaseDistinguishedName: string ,
searchFilterTemplate: string ,
serverCertificates:
[
{
pem: string ,
}
,
]
,
connectionTimeoutInMs: integer ,
}
,
deallocated: boolean ,
provisionError:
{
code: string ,
message: string ,
target: string ,
additionalErrorInfo: string ,
}
,
privateEndpointIpAddress: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
CassandraDataCenters_Delete (new)
Description Delete a managed Cassandra data center.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/dataCenters/{dataCenterName}
{
subscriptionId: string ,
resourceGroupName: string ,
clusterName: string ,
dataCenterName: string ,
api-version: string ,
}

⚐ Response (202)

{}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
CassandraDataCenters_CreateUpdate (new)
Description Create or update a managed Cassandra data center. When updating, overwrite all properties. To update only some properties, use PATCH.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/dataCenters/{dataCenterName}
{
subscriptionId: string ,
resourceGroupName: string ,
clusterName: string ,
dataCenterName: string ,
api-version: string ,
body:
{
properties:
{
provisioningState: enum ,
dataCenterLocation: string ,
delegatedSubnetId: string ,
nodeCount: integer ,
seedNodes:
[
{
ipAddress: string ,
}
,
]
,
base64EncodedCassandraYamlFragment: string ,
managedDiskCustomerKeyUri: string ,
backupStorageCustomerKeyUri: string ,
sku: string ,
diskSku: string ,
diskCapacity: integer ,
availabilityZone: boolean ,
authenticationMethodLdapProperties:
{
serverHostname: string ,
serverPort: integer ,
serviceUserDistinguishedName: string ,
serviceUserPassword: string ,
searchBaseDistinguishedName: string ,
searchFilterTemplate: string ,
serverCertificates:
[
{
pem: string ,
}
,
]
,
connectionTimeoutInMs: integer ,
}
,
deallocated: boolean ,
provisionError:
{
code: string ,
message: string ,
target: string ,
additionalErrorInfo: string ,
}
,
privateEndpointIpAddress: string ,
}
,
}
,
}

⚐ Response (201)

{
properties:
{
provisioningState: enum ,
dataCenterLocation: string ,
delegatedSubnetId: string ,
nodeCount: integer ,
seedNodes:
[
{
ipAddress: string ,
}
,
]
,
base64EncodedCassandraYamlFragment: string ,
managedDiskCustomerKeyUri: string ,
backupStorageCustomerKeyUri: string ,
sku: string ,
diskSku: string ,
diskCapacity: integer ,
availabilityZone: boolean ,
authenticationMethodLdapProperties:
{
serverHostname: string ,
serverPort: integer ,
serviceUserDistinguishedName: string ,
serviceUserPassword: string ,
searchBaseDistinguishedName: string ,
searchFilterTemplate: string ,
serverCertificates:
[
{
pem: string ,
}
,
]
,
connectionTimeoutInMs: integer ,
}
,
deallocated: boolean ,
provisionError:
{
code: string ,
message: string ,
target: string ,
additionalErrorInfo: string ,
}
,
privateEndpointIpAddress: string ,
}
,
}

⚐ Response (200)

{
properties:
{
provisioningState: enum ,
dataCenterLocation: string ,
delegatedSubnetId: string ,
nodeCount: integer ,
seedNodes:
[
{
ipAddress: string ,
}
,
]
,
base64EncodedCassandraYamlFragment: string ,
managedDiskCustomerKeyUri: string ,
backupStorageCustomerKeyUri: string ,
sku: string ,
diskSku: string ,
diskCapacity: integer ,
availabilityZone: boolean ,
authenticationMethodLdapProperties:
{
serverHostname: string ,
serverPort: integer ,
serviceUserDistinguishedName: string ,
serviceUserPassword: string ,
searchBaseDistinguishedName: string ,
searchFilterTemplate: string ,
serverCertificates:
[
{
pem: string ,
}
,
]
,
connectionTimeoutInMs: integer ,
}
,
deallocated: boolean ,
provisionError:
{
code: string ,
message: string ,
target: string ,
additionalErrorInfo: string ,
}
,
privateEndpointIpAddress: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
CassandraDataCenters_Update (new)
Description Update some of the properties of a managed Cassandra data center.
Reference Link ¶

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/dataCenters/{dataCenterName}
{
subscriptionId: string ,
resourceGroupName: string ,
clusterName: string ,
dataCenterName: string ,
api-version: string ,
body:
{
properties:
{
provisioningState: enum ,
dataCenterLocation: string ,
delegatedSubnetId: string ,
nodeCount: integer ,
seedNodes:
[
{
ipAddress: string ,
}
,
]
,
base64EncodedCassandraYamlFragment: string ,
managedDiskCustomerKeyUri: string ,
backupStorageCustomerKeyUri: string ,
sku: string ,
diskSku: string ,
diskCapacity: integer ,
availabilityZone: boolean ,
authenticationMethodLdapProperties:
{
serverHostname: string ,
serverPort: integer ,
serviceUserDistinguishedName: string ,
serviceUserPassword: string ,
searchBaseDistinguishedName: string ,
searchFilterTemplate: string ,
serverCertificates:
[
{
pem: string ,
}
,
]
,
connectionTimeoutInMs: integer ,
}
,
deallocated: boolean ,
provisionError:
{
code: string ,
message: string ,
target: string ,
additionalErrorInfo: string ,
}
,
privateEndpointIpAddress: string ,
}
,
}
,
}

⚐ Response (202)

{
properties:
{
provisioningState: enum ,
dataCenterLocation: string ,
delegatedSubnetId: string ,
nodeCount: integer ,
seedNodes:
[
{
ipAddress: string ,
}
,
]
,
base64EncodedCassandraYamlFragment: string ,
managedDiskCustomerKeyUri: string ,
backupStorageCustomerKeyUri: string ,
sku: string ,
diskSku: string ,
diskCapacity: integer ,
availabilityZone: boolean ,
authenticationMethodLdapProperties:
{
serverHostname: string ,
serverPort: integer ,
serviceUserDistinguishedName: string ,
serviceUserPassword: string ,
searchBaseDistinguishedName: string ,
searchFilterTemplate: string ,
serverCertificates:
[
{
pem: string ,
}
,
]
,
connectionTimeoutInMs: integer ,
}
,
deallocated: boolean ,
provisionError:
{
code: string ,
message: string ,
target: string ,
additionalErrorInfo: string ,
}
,
privateEndpointIpAddress: string ,
}
,
}

⚐ Response (200)

{
properties:
{
provisioningState: enum ,
dataCenterLocation: string ,
delegatedSubnetId: string ,
nodeCount: integer ,
seedNodes:
[
{
ipAddress: string ,
}
,
]
,
base64EncodedCassandraYamlFragment: string ,
managedDiskCustomerKeyUri: string ,
backupStorageCustomerKeyUri: string ,
sku: string ,
diskSku: string ,
diskCapacity: integer ,
availabilityZone: boolean ,
authenticationMethodLdapProperties:
{
serverHostname: string ,
serverPort: integer ,
serviceUserDistinguishedName: string ,
serviceUserPassword: string ,
searchBaseDistinguishedName: string ,
searchFilterTemplate: string ,
serverCertificates:
[
{
pem: string ,
}
,
]
,
connectionTimeoutInMs: integer ,
}
,
deallocated: boolean ,
provisionError:
{
code: string ,
message: string ,
target: string ,
additionalErrorInfo: string ,
}
,
privateEndpointIpAddress: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
CassandraClusters_Deallocate (new)
Description Deallocate the Managed Cassandra Cluster and Associated Data Centers. Deallocation will deallocate the host virtual machine of this cluster, and reserved the data disk. This won't do anything on an already deallocated cluster. Use Start to restart the cluster.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/deallocate
{
subscriptionId: string ,
resourceGroupName: string ,
clusterName: string ,
api-version: string ,
}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
CassandraClusters_Start (new)
Description Start the Managed Cassandra Cluster and Associated Data Centers. Start will start the host virtual machine of this cluster with reserved data disk. This won't do anything on an already running cluster. Use Deallocate to deallocate the cluster.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/start
{
subscriptionId: string ,
resourceGroupName: string ,
clusterName: string ,
api-version: string ,
}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
CassandraClusters_Status (new)
Description Gets the CPU, memory, and disk usage statistics for each Cassandra node in a cluster.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
eTag: string ,
reaperStatus:
{
healthy: boolean ,
repairRunIds: object ,
repairSchedules: object ,
}
,
connectionErrors:
[
{
connectionState: enum ,
iPFrom: string ,
iPTo: string ,
port: integer ,
exception: string ,
}
,
]
,
errors:
[
{
code: string ,
message: string ,
target: string ,
additionalErrorInfo: string ,
}
,
]
,
dataCenters:
[
{
name: string ,
seedNodes:
[
string ,
]
,
nodes:
[
{
address: string ,
state: enum ,
status: string ,
cassandraProcessStatus: string ,
load: string ,
tokens:
[
string ,
]
,
size: integer ,
hostID: string ,
rack: string ,
timestamp: string ,
diskUsedKB: integer ,
diskFreeKB: integer ,
memoryUsedKB: integer ,
memoryBuffersAndCachedKB: integer ,
memoryFreeKB: integer ,
memoryTotalKB: integer ,
cpuUsage: number ,
}
,
]
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
MongoDBResources_GetMongoRoleDefinition (new)
Description Retrieves the properties of an existing Azure Cosmos DB Mongo Role Definition with the given Id.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
properties:
{
roleName: string ,
type: enum ,
databaseName: string ,
privileges:
[
{
resource:
{
db: string ,
collection: string ,
}
,
actions:
[
string ,
]
,
}
,
]
,
roles:
[
{
db: string ,
role: string ,
}
,
]
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
MongoDBResources_CreateUpdateMongoRoleDefinition (new)
Description Creates or updates an Azure Cosmos DB Mongo Role Definition.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbRoleDefinitions/{mongoRoleDefinitionId}
{
mongoRoleDefinitionId: string ,
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
api-version: string ,
createUpdateMongoRoleDefinitionParameters:
{
properties:
{
roleName: string ,
type: enum ,
databaseName: string ,
privileges:
[
{
resource:
{
db: string ,
collection: string ,
}
,
actions:
[
string ,
]
,
}
,
]
,
roles:
[
{
db: string ,
role: string ,
}
,
]
,
}
,
}
,
}

⚐ Response (200)

{
properties:
{
roleName: string ,
type: enum ,
databaseName: string ,
privileges:
[
{
resource:
{
db: string ,
collection: string ,
}
,
actions:
[
string ,
]
,
}
,
]
,
roles:
[
{
db: string ,
role: string ,
}
,
]
,
}
,
}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
MongoDBResources_DeleteMongoRoleDefinition (new)
Description Deletes an existing Azure Cosmos DB Mongo Role Definition.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
MongoDBResources_ListMongoRoleDefinitions (new)
Description Retrieves the list of all Azure Cosmos DB Mongo Role Definitions.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
value:
[
{
properties:
{
roleName: string ,
type: enum ,
databaseName: string ,
privileges:
[
{
resource:
{
db: string ,
collection: string ,
}
,
actions:
[
string ,
]
,
}
,
]
,
roles:
[
{
db: string ,
role: string ,
}
,
]
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
MongoDBResources_GetMongoUserDefinition (new)
Description Retrieves the properties of an existing Azure Cosmos DB Mongo User Definition with the given Id.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
properties:
{
userName: string ,
password: string ,
databaseName: string ,
customData: string ,
roles:
[
{
db: string ,
role: string ,
}
,
]
,
mechanisms: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
MongoDBResources_CreateUpdateMongoUserDefinition (new)
Description Creates or updates an Azure Cosmos DB Mongo User Definition.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbUserDefinitions/{mongoUserDefinitionId}
{
mongoUserDefinitionId: string ,
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
api-version: string ,
createUpdateMongoUserDefinitionParameters:
{
properties:
{
userName: string ,
password: string ,
databaseName: string ,
customData: string ,
roles:
[
{
db: string ,
role: string ,
}
,
]
,
mechanisms: string ,
}
,
}
,
}

⚐ Response (200)

{
properties:
{
userName: string ,
password: string ,
databaseName: string ,
customData: string ,
roles:
[
{
db: string ,
role: string ,
}
,
]
,
mechanisms: string ,
}
,
}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
MongoDBResources_DeleteMongoUserDefinition (new)
Description Deletes an existing Azure Cosmos DB Mongo User Definition.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
MongoDBResources_ListMongoUserDefinitions (new)
Description Retrieves the list of all Azure Cosmos DB Mongo User Definition.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
value:
[
{
properties:
{
userName: string ,
password: string ,
databaseName: string ,
customData: string ,
roles:
[
{
db: string ,
role: string ,
}
,
]
,
mechanisms: string ,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
NotebookWorkspaces_ListByDatabaseAccount (new)
Description Gets the notebook workspace resources of an existing Cosmos DB account.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
value:
[
{
properties:
{
notebookServerEndpoint: string ,
status: string ,
}
,
}
,
]
,
}

⚐ Response (default)

{
code: string ,
message: string ,
}
NotebookWorkspaces_Get (new)
Description Gets the notebook workspace for a Cosmos DB account.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
properties:
{
notebookServerEndpoint: string ,
status: string ,
}
,
}

⚐ Response (default)

{
code: string ,
message: string ,
}
NotebookWorkspaces_CreateOrUpdate (new)
Description Creates the notebook workspace for a Cosmos DB account.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/notebookWorkspaces/{notebookWorkspaceName}
{
subscriptionId: string ,
resourceGroupName: string ,
api-version: string ,
accountName: string ,
notebookWorkspaceName: string ,
notebookCreateUpdateParameters: object ,
}

⚐ Response (200)

{
properties:
{
notebookServerEndpoint: string ,
status: string ,
}
,
}

⚐ Response (default)

{
code: string ,
message: string ,
}
NotebookWorkspaces_Delete (new)
Description Deletes the notebook workspace for a Cosmos DB account.
Reference Link ¶

⚼ Request

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

⚐ Response (202)

{}

⚐ Response (204)

{}

⚐ Response (default)

{
code: string ,
message: string ,
}
NotebookWorkspaces_ListConnectionInfo (new)
Description Retrieves the connection info for the notebook workspace
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
authToken: string ,
notebookServerEndpoint: string ,
}

⚐ Response (default)

{
code: string ,
message: string ,
}
NotebookWorkspaces_RegenerateAuthToken (new)
Description Regenerates the auth token for the notebook workspace
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (default)

{
code: string ,
message: string ,
}
NotebookWorkspaces_Start (new)
Description Starts the notebook workspace
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (default)

{
code: string ,
message: string ,
}
PrivateEndpointConnections_ListByDatabaseAccount (new)
Description List all private endpoint connections on a Cosmos DB account.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
value:
[
{
properties:
{
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: string ,
description: string ,
actionsRequired: string ,
}
,
groupId: string ,
provisioningState: string ,
}
,
}
,
]
,
}
PrivateEndpointConnections_Get (new)
Description Gets a private endpoint connection.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
properties:
{
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: string ,
description: string ,
actionsRequired: string ,
}
,
groupId: string ,
provisioningState: string ,
}
,
}
PrivateEndpointConnections_CreateOrUpdate (new)
Description Approve or reject a private endpoint connection with a given name.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}
{
subscriptionId: string ,
resourceGroupName: string ,
api-version: string ,
accountName: string ,
privateEndpointConnectionName: string ,
parameters:
{
properties:
{
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: string ,
description: string ,
actionsRequired: string ,
}
,
groupId: string ,
provisioningState: string ,
}
,
}
,
}

⚐ Response (200)

{
properties:
{
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: string ,
description: string ,
actionsRequired: string ,
}
,
groupId: string ,
provisioningState: string ,
}
,
}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PrivateEndpointConnections_Delete (new)
Description Deletes a private endpoint connection with a given name.
Reference Link ¶

⚼ Request

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

⚐ Response (202)

{}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PrivateLinkResources_ListByDatabaseAccount (new)
Description Gets the private link resources that need to be created for a Cosmos DB account.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
value:
[
{
properties:
{
groupId: string ,
requiredMembers:
[
string ,
]
,
requiredZoneNames:
[
string ,
]
,
}
,
}
,
]
,
}
PrivateLinkResources_Get (new)
Description Gets the private link resources that need to be created for a Cosmos DB account.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
properties:
{
groupId: string ,
requiredMembers:
[
string ,
]
,
requiredZoneNames:
[
string ,
]
,
}
,
}
SqlResources_GetSqlRoleDefinition (new)
Description Retrieves the properties of an existing Azure Cosmos DB SQL Role Definition with the given Id.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
properties:
{
roleName: string ,
type: enum ,
assignableScopes:
[
string ,
]
,
permissions:
[
{
dataActions:
[
string ,
]
,
notDataActions:
[
string ,
]
,
}
,
]
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
SqlResources_CreateUpdateSqlRoleDefinition (new)
Description Creates or updates an Azure Cosmos DB SQL Role Definition.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlRoleDefinitions/{roleDefinitionId}
{
roleDefinitionId: string ,
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
api-version: string ,
createUpdateSqlRoleDefinitionParameters:
{
properties:
{
roleName: string ,
type: enum ,
assignableScopes:
[
string ,
]
,
permissions:
[
{
dataActions:
[
string ,
]
,
notDataActions:
[
string ,
]
,
}
,
]
,
}
,
}
,
}

⚐ Response (200)

{
properties:
{
roleName: string ,
type: enum ,
assignableScopes:
[
string ,
]
,
permissions:
[
{
dataActions:
[
string ,
]
,
notDataActions:
[
string ,
]
,
}
,
]
,
}
,
}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
SqlResources_DeleteSqlRoleDefinition (new)
Description Deletes an existing Azure Cosmos DB SQL Role Definition.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
SqlResources_ListSqlRoleDefinitions (new)
Description Retrieves the list of all Azure Cosmos DB SQL Role Definitions.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
value:
[
{
properties:
{
roleName: string ,
type: enum ,
assignableScopes:
[
string ,
]
,
permissions:
[
{
dataActions:
[
string ,
]
,
notDataActions:
[
string ,
]
,
}
,
]
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
SqlResources_GetSqlRoleAssignment (new)
Description Retrieves the properties of an existing Azure Cosmos DB SQL Role Assignment with the given Id.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
properties:
{
roleDefinitionId: string ,
scope: string ,
principalId: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
SqlResources_CreateUpdateSqlRoleAssignment (new)
Description Creates or updates an Azure Cosmos DB SQL Role Assignment.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlRoleAssignments/{roleAssignmentId}
{
roleAssignmentId: string ,
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
api-version: string ,
createUpdateSqlRoleAssignmentParameters:
{
properties:
{
roleDefinitionId: string ,
scope: string ,
principalId: string ,
}
,
}
,
}

⚐ Response (200)

{
properties:
{
roleDefinitionId: string ,
scope: string ,
principalId: string ,
}
,
}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
SqlResources_DeleteSqlRoleAssignment (new)
Description Deletes an existing Azure Cosmos DB SQL Role Assignment.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
SqlResources_ListSqlRoleAssignments (new)
Description Retrieves the list of all Azure Cosmos DB SQL Role Assignments.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
value:
[
{
properties:
{
roleDefinitionId: string ,
scope: string ,
principalId: string ,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
RestorableDatabaseAccounts_ListByLocation (new)
Description Lists all the restorable Azure Cosmos DB database accounts available under the subscription and in a region. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' permission.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
value:
[
{
properties:
{
accountName: string ,
creationTime: string ,
deletionTime: string ,
oldestRestorableTime: string ,
apiType: enum ,
restorableLocations:
[
{
locationName: string ,
regionalDatabaseAccountInstanceId: string ,
creationTime: string ,
deletionTime: string ,
}
,
]
,
}
,
id: string ,
name: string ,
type: string ,
location: string ,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
RestorableDatabaseAccounts_List (new)
Description Lists all the restorable Azure Cosmos DB database accounts available under the subscription. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' permission.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
value:
[
{
properties:
{
accountName: string ,
creationTime: string ,
deletionTime: string ,
oldestRestorableTime: string ,
apiType: enum ,
restorableLocations:
[
{
locationName: string ,
regionalDatabaseAccountInstanceId: string ,
creationTime: string ,
deletionTime: string ,
}
,
]
,
}
,
id: string ,
name: string ,
type: string ,
location: string ,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
RestorableDatabaseAccounts_GetByLocation (new)
Description Retrieves the properties of an existing Azure Cosmos DB restorable database account. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read/*' permission.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}
{
api-version: string ,
subscriptionId: string ,
location: string ,
instanceId: string ,
}

⚐ Response (200)

{
properties:
{
accountName: string ,
creationTime: string ,
deletionTime: string ,
oldestRestorableTime: string ,
apiType: enum ,
restorableLocations:
[
{
locationName: string ,
regionalDatabaseAccountInstanceId: string ,
creationTime: string ,
deletionTime: string ,
}
,
]
,
}
,
id: string ,
name: string ,
type: string ,
location: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
SqlResources_RetrieveContinuousBackupInformation (new)
Description Retrieves continuous backup information for a container resource.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/retrieveContinuousBackupInformation
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
containerName: string ,
api-version: string ,
location:
{
location: string ,
}
,
}

⚐ Response (200)

{
continuousBackupInformation:
{
latestRestorableTimestamp: string ,
}
,
}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
RestorableSqlDatabases_List (new)
Description Show the event feed of all mutations done on all the Azure Cosmos DB SQL databases under the restorable account. This helps in scenario where database was accidentally deleted to get the deletion time. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}/restorableSqlDatabases
{
api-version: string ,
subscriptionId: string ,
location: string ,
instanceId: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
resource:
{
_rid: string ,
operationType: enum ,
canUndelete: string ,
canUndeleteReason: string ,
eventTimestamp: string ,
ownerId: string ,
ownerResourceId: string ,
database:
{
_colls: string ,
_users: string ,
_self: string ,
}
,
}
,
}
,
id: string ,
name: string ,
type: string ,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
RestorableSqlContainers_List (new)
Description Show the event feed of all mutations done on all the Azure Cosmos DB SQL containers under a specific database. This helps in scenario where container was accidentally deleted. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}/restorableSqlContainers
{
api-version: string ,
subscriptionId: string ,
location: string ,
instanceId: string ,
restorableSqlDatabaseRid: string ,
startTime: string ,
endTime: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
resource:
{
_rid: string ,
operationType: enum ,
canUndelete: string ,
canUndeleteReason: string ,
eventTimestamp: string ,
ownerId: string ,
ownerResourceId: string ,
container:
{
_self: string ,
}
,
}
,
}
,
id: string ,
name: string ,
type: string ,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
RestorableSqlResources_List (new)
Description Return a list of database and container combo that exist on the account at the given timestamp and location. This helps in scenarios to validate what resources exist at given timestamp and location. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}/restorableSqlResources
{
api-version: string ,
subscriptionId: string ,
location: string ,
instanceId: string ,
restoreLocation: string ,
restoreTimestampInUtc: string ,
}

⚐ Response (200)

{
value:
[
{
id: string ,
name: string ,
type: string ,
databaseName: string ,
collectionNames:
[
string ,
]
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
MongoDBResources_RetrieveContinuousBackupInformation (new)
Description Retrieves continuous backup information for a Mongodb collection.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections/{collectionName}/retrieveContinuousBackupInformation
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
collectionName: string ,
api-version: string ,
location:
{
location: string ,
}
,
}

⚐ Response (200)

{
continuousBackupInformation:
{
latestRestorableTimestamp: string ,
}
,
}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
RestorableMongodbDatabases_List (new)
Description Show the event feed of all mutations done on all the Azure Cosmos DB MongoDB databases under the restorable account. This helps in scenario where database was accidentally deleted to get the deletion time. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}/restorableMongodbDatabases
{
api-version: string ,
subscriptionId: string ,
location: string ,
instanceId: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
resource:
{
_rid: string ,
operationType: enum ,
canUndelete: string ,
canUndeleteReason: string ,
eventTimestamp: string ,
ownerId: string ,
ownerResourceId: string ,
}
,
}
,
id: string ,
name: string ,
type: string ,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
RestorableMongodbCollections_List (new)
Description Show the event feed of all mutations done on all the Azure Cosmos DB MongoDB collections under a specific database. This helps in scenario where container was accidentally deleted. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}/restorableMongodbCollections
{
api-version: string ,
subscriptionId: string ,
location: string ,
instanceId: string ,
restorableMongodbDatabaseRid: string ,
startTime: string ,
endTime: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
resource:
{
_rid: string ,
operationType: enum ,
canUndelete: string ,
canUndeleteReason: string ,
eventTimestamp: string ,
ownerId: string ,
ownerResourceId: string ,
}
,
}
,
id: string ,
name: string ,
type: string ,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
RestorableMongodbResources_List (new)
Description Return a list of database and collection combo that exist on the account at the given timestamp and location. This helps in scenarios to validate what resources exist at given timestamp and location. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}/restorableMongodbResources
{
api-version: string ,
subscriptionId: string ,
location: string ,
instanceId: string ,
restoreLocation: string ,
restoreTimestampInUtc: string ,
}

⚐ Response (200)

{
value:
[
{
id: string ,
name: string ,
type: string ,
databaseName: string ,
collectionNames:
[
string ,
]
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
GremlinResources_RetrieveContinuousBackupInformation (new)
Description Retrieves continuous backup information for a gremlin graph.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/graphs/{graphName}/retrieveContinuousBackupInformation
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
databaseName: string ,
graphName: string ,
api-version: string ,
location:
{
location: string ,
}
,
}

⚐ Response (200)

{
continuousBackupInformation:
{
latestRestorableTimestamp: string ,
}
,
}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
RestorableGremlinDatabases_List (new)
Description Show the event feed of all mutations done on all the Azure Cosmos DB Gremlin databases under the restorable account. This helps in scenario where database was accidentally deleted to get the deletion time. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}/restorableGremlinDatabases
{
api-version: string ,
subscriptionId: string ,
location: string ,
instanceId: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
resource:
{
_rid: string ,
operationType: enum ,
canUndelete: string ,
canUndeleteReason: string ,
eventTimestamp: string ,
ownerId: string ,
ownerResourceId: string ,
}
,
}
,
id: string ,
name: string ,
type: string ,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
RestorableGremlinGraphs_List (new)
Description Show the event feed of all mutations done on all the Azure Cosmos DB Gremlin graphs under a specific database. This helps in scenario where container was accidentally deleted. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}/restorableGraphs
{
api-version: string ,
subscriptionId: string ,
location: string ,
instanceId: string ,
restorableGremlinDatabaseRid: string ,
startTime: string ,
endTime: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
resource:
{
_rid: string ,
operationType: enum ,
canUndelete: string ,
canUndeleteReason: string ,
eventTimestamp: string ,
ownerId: string ,
ownerResourceId: string ,
}
,
}
,
id: string ,
name: string ,
type: string ,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
RestorableGremlinResources_List (new)
Description Return a list of gremlin database and graphs combo that exist on the account at the given timestamp and location. This helps in scenarios to validate what resources exist at given timestamp and location. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}/restorableGremlinResources
{
api-version: string ,
subscriptionId: string ,
location: string ,
instanceId: string ,
restoreLocation: string ,
restoreTimestampInUtc: string ,
}

⚐ Response (200)

{
value:
[
{
id: string ,
name: string ,
type: string ,
databaseName: string ,
graphNames:
[
string ,
]
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
TableResources_RetrieveContinuousBackupInformation (new)
Description Retrieves continuous backup information for a table.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
continuousBackupInformation:
{
latestRestorableTimestamp: string ,
}
,
}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
RestorableTables_List (new)
Description Show the event feed of all mutations done on all the Azure Cosmos DB Tables. This helps in scenario where table was accidentally deleted. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}/restorableTables
{
api-version: string ,
subscriptionId: string ,
location: string ,
instanceId: string ,
startTime: string ,
endTime: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
resource:
{
_rid: string ,
operationType: enum ,
canUndelete: string ,
canUndeleteReason: string ,
eventTimestamp: string ,
ownerId: string ,
ownerResourceId: string ,
}
,
}
,
id: string ,
name: string ,
type: string ,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
RestorableTableResources_List (new)
Description Return a list of tables that exist on the account at the given timestamp and location. This helps in scenarios to validate what resources exist at given timestamp and location. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}/restorableTableResources
{
api-version: string ,
subscriptionId: string ,
location: string ,
instanceId: string ,
restoreLocation: string ,
restoreTimestampInUtc: string ,
}

⚐ Response (200)

{
value:
[
{
id: string ,
name: string ,
type: string ,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Service_List (new)
Description Gets the status of service.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
value:
[
{
properties:
{
creationTime: string ,
instanceSize: enum ,
instanceCount: integer ,
serviceType: enum ,
status: enum ,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Service_Create (new)
Description Creates a service.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/services/{serviceName}
{
subscriptionId: string ,
resourceGroupName: string ,
accountName: string ,
serviceName: string ,
api-version: string ,
createUpdateParameters:
{
properties:
{
instanceSize: enum ,
instanceCount: integer ,
serviceType: enum ,
}
,
}
,
}

⚐ Response (200)

{
properties:
{
creationTime: string ,
instanceSize: enum ,
instanceCount: integer ,
serviceType: enum ,
status: enum ,
}
,
}

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Service_Get (new)
Description Gets the status of service.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
properties:
{
creationTime: string ,
instanceSize: enum ,
instanceCount: integer ,
serviceType: enum ,
status: enum ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Service_Delete (new)
Description Deletes service with the given serviceName.
Reference Link ¶

⚼ Request

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

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ Response (204)

{}

⚐ Response (200)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}