Microsoft.DocumentDB (preview:2025-04-01)

2025/06/02 • 6 updated methods

MongoClusters_List (updated)
Description List all the mongo clusters in a given subscription.
Reference Link ¶

⚶ Changes

{
  "#id": "MongoClusters_List",
  "$responses": {
    "200": {
      "$properties": {
        "value": {
          "$properties": {
            "properties": [
              {
                "authConfig": [
                  {
                    "allowedModes": {
                      "Enum": {
                        "new": [
                          [
                            "NativeAuth",
                            "Native mongo authentication mode using username and password with auth mechanism 'SCRAM-SHA-256'."
                          ],
                          [
                            "MicrosoftEntraID",
                            "Microsoft Entra ID authentication mode using Entra users assigned to the cluster and auth mechanism 'MONGODB-OIDC'."
                          ]
                        ],
                        "old": [
                          [
                            "NativeAuth",
                            "Native mongo authentication mode using username and password with auth mechanism 'SCRAM-SHA-256'."
                          ],
                          [
                            "MicrosoftEntraID",
                            "Microsot Entra ID authentication mode using Entra users assigned to the cluster and auth mechanism 'MONGODB-OIDC'."
                          ]
                        ]
                      }
                    }
                  }
                ]
              }
            ]
          }
        }
      }
    }
  }
}

⚼ Request

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

⚐ Response (200)

{
value:
[
{
properties:
{
createMode: enum ,
restoreParameters:
{
pointInTimeUTC: string ,
sourceResourceId: string ,
}
,
replicaParameters:
{
sourceResourceId: string ,
sourceLocation: string ,
}
,
administrator:
{
userName: string ,
password: string ,
}
,
serverVersion: string ,
connectionString: string ,
provisioningState: enum ,
clusterStatus: enum ,
publicNetworkAccess: enum ,
highAvailability:
{
targetMode: enum ,
}
,
storage:
{
sizeGb: integer ,
type: enum ,
iops: integer ,
throughput: integer ,
}
,
sharding:
{
shardCount: integer ,
}
,
compute:
{
tier: string ,
}
,
backup:
{
earliestRestoreTime: string ,
}
,
dataApi:
{
mode: enum ,
}
,
privateEndpointConnections:
[
{
properties:
{
groupIds:
[
string ,
]
,
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: string ,
}
,
provisioningState: enum ,
}
,
}
,
]
,
previewFeatures:
[
string ,
]
,
replica:
{
sourceResourceId: string ,
role: enum ,
replicationState: enum ,
}
,
infrastructureVersion: string ,
authConfig:
{
allowedModes:
[
string ,
]
,
}
,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
MongoClusters_ListByResourceGroup (updated)
Description List all the mongo clusters in a given resource group.
Reference Link ¶

⚶ Changes

{
  "#id": "MongoClusters_ListByResourceGroup",
  "$responses": {
    "200": {
      "$properties": {
        "value": {
          "$properties": {
            "properties": [
              {
                "authConfig": [
                  {
                    "allowedModes": {
                      "Enum": {
                        "new": [
                          [
                            "NativeAuth",
                            "Native mongo authentication mode using username and password with auth mechanism 'SCRAM-SHA-256'."
                          ],
                          [
                            "MicrosoftEntraID",
                            "Microsoft Entra ID authentication mode using Entra users assigned to the cluster and auth mechanism 'MONGODB-OIDC'."
                          ]
                        ],
                        "old": [
                          [
                            "NativeAuth",
                            "Native mongo authentication mode using username and password with auth mechanism 'SCRAM-SHA-256'."
                          ],
                          [
                            "MicrosoftEntraID",
                            "Microsot Entra ID authentication mode using Entra users assigned to the cluster and auth mechanism 'MONGODB-OIDC'."
                          ]
                        ]
                      }
                    }
                  }
                ]
              }
            ]
          }
        }
      }
    }
  }
}

⚼ Request

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

⚐ Response (200)

{
value:
[
{
properties:
{
createMode: enum ,
restoreParameters:
{
pointInTimeUTC: string ,
sourceResourceId: string ,
}
,
replicaParameters:
{
sourceResourceId: string ,
sourceLocation: string ,
}
,
administrator:
{
userName: string ,
password: string ,
}
,
serverVersion: string ,
connectionString: string ,
provisioningState: enum ,
clusterStatus: enum ,
publicNetworkAccess: enum ,
highAvailability:
{
targetMode: enum ,
}
,
storage:
{
sizeGb: integer ,
type: enum ,
iops: integer ,
throughput: integer ,
}
,
sharding:
{
shardCount: integer ,
}
,
compute:
{
tier: string ,
}
,
backup:
{
earliestRestoreTime: string ,
}
,
dataApi:
{
mode: enum ,
}
,
privateEndpointConnections:
[
{
properties:
{
groupIds:
[
string ,
]
,
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: string ,
}
,
provisioningState: enum ,
}
,
}
,
]
,
previewFeatures:
[
string ,
]
,
replica:
{
sourceResourceId: string ,
role: enum ,
replicationState: enum ,
}
,
infrastructureVersion: string ,
authConfig:
{
allowedModes:
[
string ,
]
,
}
,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
MongoClusters_Get (updated)
Description Gets information about a mongo cluster.
Reference Link ¶

⚶ Changes

{
  "#id": "MongoClusters_Get",
  "$responses": {
    "200": {
      "$properties": {
        "properties": [
          {
            "authConfig": [
              {
                "allowedModes": {
                  "Enum": {
                    "new": [
                      [
                        "NativeAuth",
                        "Native mongo authentication mode using username and password with auth mechanism 'SCRAM-SHA-256'."
                      ],
                      [
                        "MicrosoftEntraID",
                        "Microsoft Entra ID authentication mode using Entra users assigned to the cluster and auth mechanism 'MONGODB-OIDC'."
                      ]
                    ],
                    "old": [
                      [
                        "NativeAuth",
                        "Native mongo authentication mode using username and password with auth mechanism 'SCRAM-SHA-256'."
                      ],
                      [
                        "MicrosoftEntraID",
                        "Microsot Entra ID authentication mode using Entra users assigned to the cluster and auth mechanism 'MONGODB-OIDC'."
                      ]
                    ]
                  }
                }
              }
            ]
          }
        ]
      }
    }
  }
}

⚼ Request

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

⚐ Response (200)

{
properties:
{
createMode: enum ,
restoreParameters:
{
pointInTimeUTC: string ,
sourceResourceId: string ,
}
,
replicaParameters:
{
sourceResourceId: string ,
sourceLocation: string ,
}
,
administrator:
{
userName: string ,
password: string ,
}
,
serverVersion: string ,
connectionString: string ,
provisioningState: enum ,
clusterStatus: enum ,
publicNetworkAccess: enum ,
highAvailability:
{
targetMode: enum ,
}
,
storage:
{
sizeGb: integer ,
type: enum ,
iops: integer ,
throughput: integer ,
}
,
sharding:
{
shardCount: integer ,
}
,
compute:
{
tier: string ,
}
,
backup:
{
earliestRestoreTime: string ,
}
,
dataApi:
{
mode: enum ,
}
,
privateEndpointConnections:
[
{
properties:
{
groupIds:
[
string ,
]
,
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: string ,
}
,
provisioningState: enum ,
}
,
}
,
]
,
previewFeatures:
[
string ,
]
,
replica:
{
sourceResourceId: string ,
role: enum ,
replicationState: enum ,
}
,
infrastructureVersion: string ,
authConfig:
{
allowedModes:
[
string ,
]
,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
MongoClusters_CreateOrUpdate (updated)
Description Create or update a mongo cluster. Update overwrites all properties for the resource. To only modify some of the properties, use PATCH.
Reference Link ¶

⚶ Changes

{
  "#id": "MongoClusters_CreateOrUpdate",
  "$parameters": {
    "resource": {
      "$properties": {
        "properties": [
          {
            "authConfig": [
              {
                "allowedModes": {
                  "Enum": {
                    "new": [
                      [
                        "NativeAuth",
                        "Native mongo authentication mode using username and password with auth mechanism 'SCRAM-SHA-256'."
                      ],
                      [
                        "MicrosoftEntraID",
                        "Microsoft Entra ID authentication mode using Entra users assigned to the cluster and auth mechanism 'MONGODB-OIDC'."
                      ]
                    ],
                    "old": [
                      [
                        "NativeAuth",
                        "Native mongo authentication mode using username and password with auth mechanism 'SCRAM-SHA-256'."
                      ],
                      [
                        "MicrosoftEntraID",
                        "Microsot Entra ID authentication mode using Entra users assigned to the cluster and auth mechanism 'MONGODB-OIDC'."
                      ]
                    ]
                  }
                }
              }
            ]
          }
        ]
      }
    }
  },
  "$responses": {
    "200": {
      "$properties": {
        "properties": [
          {
            "authConfig": [
              {
                "allowedModes": {
                  "Enum": {
                    "new": [
                      [
                        "NativeAuth",
                        "Native mongo authentication mode using username and password with auth mechanism 'SCRAM-SHA-256'."
                      ],
                      [
                        "MicrosoftEntraID",
                        "Microsoft Entra ID authentication mode using Entra users assigned to the cluster and auth mechanism 'MONGODB-OIDC'."
                      ]
                    ],
                    "old": [
                      [
                        "NativeAuth",
                        "Native mongo authentication mode using username and password with auth mechanism 'SCRAM-SHA-256'."
                      ],
                      [
                        "MicrosoftEntraID",
                        "Microsot Entra ID authentication mode using Entra users assigned to the cluster and auth mechanism 'MONGODB-OIDC'."
                      ]
                    ]
                  }
                }
              }
            ]
          }
        ]
      }
    },
    "201": {
      "$properties": {
        "properties": [
          {
            "authConfig": [
              {
                "allowedModes": {
                  "Enum": {
                    "new": [
                      [
                        "NativeAuth",
                        "Native mongo authentication mode using username and password with auth mechanism 'SCRAM-SHA-256'."
                      ],
                      [
                        "MicrosoftEntraID",
                        "Microsoft Entra ID authentication mode using Entra users assigned to the cluster and auth mechanism 'MONGODB-OIDC'."
                      ]
                    ],
                    "old": [
                      [
                        "NativeAuth",
                        "Native mongo authentication mode using username and password with auth mechanism 'SCRAM-SHA-256'."
                      ],
                      [
                        "MicrosoftEntraID",
                        "Microsot Entra ID authentication mode using Entra users assigned to the cluster and auth mechanism 'MONGODB-OIDC'."
                      ]
                    ]
                  }
                }
              }
            ]
          }
        ]
      }
    }
  }
}

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/mongoClusters/{mongoClusterName}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
mongoClusterName: string ,
resource:
{
properties:
{
createMode: enum ,
restoreParameters:
{
pointInTimeUTC: string ,
sourceResourceId: string ,
}
,
replicaParameters:
{
sourceResourceId: string ,
sourceLocation: string ,
}
,
administrator:
{
userName: string ,
password: string ,
}
,
serverVersion: string ,
connectionString: string ,
provisioningState: enum ,
clusterStatus: enum ,
publicNetworkAccess: enum ,
highAvailability:
{
targetMode: enum ,
}
,
storage:
{
sizeGb: integer ,
type: enum ,
iops: integer ,
throughput: integer ,
}
,
sharding:
{
shardCount: integer ,
}
,
compute:
{
tier: string ,
}
,
backup:
{
earliestRestoreTime: string ,
}
,
dataApi:
{
mode: enum ,
}
,
privateEndpointConnections:
[
{
properties:
{
groupIds:
[
string ,
]
,
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: string ,
}
,
provisioningState: enum ,
}
,
}
,
]
,
previewFeatures:
[
string ,
]
,
replica:
{
sourceResourceId: string ,
role: enum ,
replicationState: enum ,
}
,
infrastructureVersion: string ,
authConfig:
{
allowedModes:
[
string ,
]
,
}
,
}
,
}
,
}

⚐ Response (200)

{
properties:
{
createMode: enum ,
restoreParameters:
{
pointInTimeUTC: string ,
sourceResourceId: string ,
}
,
replicaParameters:
{
sourceResourceId: string ,
sourceLocation: string ,
}
,
administrator:
{
userName: string ,
password: string ,
}
,
serverVersion: string ,
connectionString: string ,
provisioningState: enum ,
clusterStatus: enum ,
publicNetworkAccess: enum ,
highAvailability:
{
targetMode: enum ,
}
,
storage:
{
sizeGb: integer ,
type: enum ,
iops: integer ,
throughput: integer ,
}
,
sharding:
{
shardCount: integer ,
}
,
compute:
{
tier: string ,
}
,
backup:
{
earliestRestoreTime: string ,
}
,
dataApi:
{
mode: enum ,
}
,
privateEndpointConnections:
[
{
properties:
{
groupIds:
[
string ,
]
,
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: string ,
}
,
provisioningState: enum ,
}
,
}
,
]
,
previewFeatures:
[
string ,
]
,
replica:
{
sourceResourceId: string ,
role: enum ,
replicationState: enum ,
}
,
infrastructureVersion: string ,
authConfig:
{
allowedModes:
[
string ,
]
,
}
,
}
,
}

⚐ Response (201)

{
$headers:
{
retry-after: integer ,
}
,
$schema:
{
properties:
{
createMode: enum ,
restoreParameters:
{
pointInTimeUTC: string ,
sourceResourceId: string ,
}
,
replicaParameters:
{
sourceResourceId: string ,
sourceLocation: string ,
}
,
administrator:
{
userName: string ,
password: string ,
}
,
serverVersion: string ,
connectionString: string ,
provisioningState: enum ,
clusterStatus: enum ,
publicNetworkAccess: enum ,
highAvailability:
{
targetMode: enum ,
}
,
storage:
{
sizeGb: integer ,
type: enum ,
iops: integer ,
throughput: integer ,
}
,
sharding:
{
shardCount: integer ,
}
,
compute:
{
tier: string ,
}
,
backup:
{
earliestRestoreTime: string ,
}
,
dataApi:
{
mode: enum ,
}
,
privateEndpointConnections:
[
{
properties:
{
groupIds:
[
string ,
]
,
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: string ,
}
,
provisioningState: enum ,
}
,
}
,
]
,
previewFeatures:
[
string ,
]
,
replica:
{
sourceResourceId: string ,
role: enum ,
replicationState: enum ,
}
,
infrastructureVersion: string ,
authConfig:
{
allowedModes:
[
string ,
]
,
}
,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
MongoClusters_Update (updated)
Description Updates an existing mongo cluster. The request body can contain one to many of the properties present in the normal mongo cluster definition.
Reference Link ¶

⚶ Changes

{
  "#id": "MongoClusters_Update",
  "$parameters": {
    "properties": {
      "$properties": {
        "properties": [
          {
            "authConfig": [
              {
                "allowedModes": {
                  "Enum": {
                    "new": [
                      [
                        "NativeAuth",
                        "Native mongo authentication mode using username and password with auth mechanism 'SCRAM-SHA-256'."
                      ],
                      [
                        "MicrosoftEntraID",
                        "Microsoft Entra ID authentication mode using Entra users assigned to the cluster and auth mechanism 'MONGODB-OIDC'."
                      ]
                    ],
                    "old": [
                      [
                        "NativeAuth",
                        "Native mongo authentication mode using username and password with auth mechanism 'SCRAM-SHA-256'."
                      ],
                      [
                        "MicrosoftEntraID",
                        "Microsot Entra ID authentication mode using Entra users assigned to the cluster and auth mechanism 'MONGODB-OIDC'."
                      ]
                    ]
                  }
                }
              }
            ]
          }
        ]
      }
    }
  },
  "$responses": {
    "200": {
      "$properties": {
        "properties": [
          {
            "authConfig": [
              {
                "allowedModes": {
                  "Enum": {
                    "new": [
                      [
                        "NativeAuth",
                        "Native mongo authentication mode using username and password with auth mechanism 'SCRAM-SHA-256'."
                      ],
                      [
                        "MicrosoftEntraID",
                        "Microsoft Entra ID authentication mode using Entra users assigned to the cluster and auth mechanism 'MONGODB-OIDC'."
                      ]
                    ],
                    "old": [
                      [
                        "NativeAuth",
                        "Native mongo authentication mode using username and password with auth mechanism 'SCRAM-SHA-256'."
                      ],
                      [
                        "MicrosoftEntraID",
                        "Microsot Entra ID authentication mode using Entra users assigned to the cluster and auth mechanism 'MONGODB-OIDC'."
                      ]
                    ]
                  }
                }
              }
            ]
          }
        ]
      }
    }
  }
}

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/mongoClusters/{mongoClusterName}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
mongoClusterName: string ,
properties:
{
tags: object ,
properties:
{
administrator:
{
userName: string ,
password: string ,
}
,
serverVersion: string ,
publicNetworkAccess: enum ,
highAvailability:
{
targetMode: enum ,
}
,
storage:
{
sizeGb: integer ,
type: enum ,
iops: integer ,
throughput: integer ,
}
,
sharding:
{
shardCount: integer ,
}
,
compute:
{
tier: string ,
}
,
backup:
{
earliestRestoreTime: string ,
}
,
dataApi:
{
mode: enum ,
}
,
previewFeatures:
[
string ,
]
,
authConfig:
{
allowedModes:
[
string ,
]
,
}
,
}
,
}
,
}

⚐ Response (200)

{
properties:
{
createMode: enum ,
restoreParameters:
{
pointInTimeUTC: string ,
sourceResourceId: string ,
}
,
replicaParameters:
{
sourceResourceId: string ,
sourceLocation: string ,
}
,
administrator:
{
userName: string ,
password: string ,
}
,
serverVersion: string ,
connectionString: string ,
provisioningState: enum ,
clusterStatus: enum ,
publicNetworkAccess: enum ,
highAvailability:
{
targetMode: enum ,
}
,
storage:
{
sizeGb: integer ,
type: enum ,
iops: integer ,
throughput: integer ,
}
,
sharding:
{
shardCount: integer ,
}
,
compute:
{
tier: string ,
}
,
backup:
{
earliestRestoreTime: string ,
}
,
dataApi:
{
mode: enum ,
}
,
privateEndpointConnections:
[
{
properties:
{
groupIds:
[
string ,
]
,
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: string ,
}
,
provisioningState: enum ,
}
,
}
,
]
,
previewFeatures:
[
string ,
]
,
replica:
{
sourceResourceId: string ,
role: enum ,
replicationState: enum ,
}
,
infrastructureVersion: string ,
authConfig:
{
allowedModes:
[
string ,
]
,
}
,
}
,
}

⚐ Response (202)

{
location: string ,
retry-after: integer ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
Replicas_ListByParent (updated)
Description List all the replicas for the mongo cluster.
Reference Link ¶

⚶ Changes

{
  "#id": "Replicas_ListByParent",
  "$responses": {
    "200": {
      "$properties": {
        "value": {
          "$properties": {
            "properties": [
              {
                "authConfig": [
                  {
                    "allowedModes": {
                      "Enum": {
                        "new": [
                          [
                            "NativeAuth",
                            "Native mongo authentication mode using username and password with auth mechanism 'SCRAM-SHA-256'."
                          ],
                          [
                            "MicrosoftEntraID",
                            "Microsoft Entra ID authentication mode using Entra users assigned to the cluster and auth mechanism 'MONGODB-OIDC'."
                          ]
                        ],
                        "old": [
                          [
                            "NativeAuth",
                            "Native mongo authentication mode using username and password with auth mechanism 'SCRAM-SHA-256'."
                          ],
                          [
                            "MicrosoftEntraID",
                            "Microsot Entra ID authentication mode using Entra users assigned to the cluster and auth mechanism 'MONGODB-OIDC'."
                          ]
                        ]
                      }
                    }
                  }
                ]
              }
            ]
          }
        }
      }
    }
  }
}

⚼ Request

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

⚐ Response (200)

{
value:
[
{
properties:
{
createMode: enum ,
restoreParameters:
{
pointInTimeUTC: string ,
sourceResourceId: string ,
}
,
replicaParameters:
{
sourceResourceId: string ,
sourceLocation: string ,
}
,
administrator:
{
userName: string ,
password: string ,
}
,
serverVersion: string ,
connectionString: string ,
provisioningState: enum ,
clusterStatus: enum ,
publicNetworkAccess: enum ,
highAvailability:
{
targetMode: enum ,
}
,
storage:
{
sizeGb: integer ,
type: enum ,
iops: integer ,
throughput: integer ,
}
,
sharding:
{
shardCount: integer ,
}
,
compute:
{
tier: string ,
}
,
backup:
{
earliestRestoreTime: string ,
}
,
dataApi:
{
mode: enum ,
}
,
privateEndpointConnections:
[
{
properties:
{
groupIds:
[
string ,
]
,
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: string ,
}
,
provisioningState: enum ,
}
,
}
,
]
,
previewFeatures:
[
string ,
]
,
replica:
{
sourceResourceId: string ,
role: enum ,
replicationState: enum ,
}
,
infrastructureVersion: string ,
authConfig:
{
allowedModes:
[
string ,
]
,
}
,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}