Microsoft Azure Mongo Clusters API

The MongoClusters API from Microsoft Azure, for mongoclusters.

GitHub OpenAPI
Business capability
IT Infrastructure Management BC-600.50

Operations 7

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/mongoClusters List all mongo clusters in a subscription · Microsoft Azure Get Subscriptions Subscriptionid Providers Microsoft Documentdb… #
Ask an LLM
“Which Cosmos DB mongo clusters are running across my whole subscription?”
“Can I see every mongo cluster I own regardless of resource group?”
Tell an agent
List every mongo cluster in my subscription.
Show all mongo clusters across all of my resource groups.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/mongoClusters List the mongo clusters in a resource group · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“What mongo clusters live in one particular resource group?”
“Can I scope my mongo cluster inventory to a single resource group?”
Tell an agent
List the mongo clusters in this resource group.
Show only the mongo clusters that belong to my current resource group.
PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/mongoClusters/{mongoClusterName} Create or fully replace a mongo cluster · Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I provision a new mongo cluster?”
“Does a full create-or-update overwrite every property of the cluster?”
Tell an agent
Create mongo cluster {mongoClusterName} with properties {properties}.
Overwrite the whole definition of {mongoClusterName} with {properties}.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/mongoClusters/{mongoClusterName} Get details of a mongo cluster · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“What's the configuration and state of a specific mongo cluster?”
“Can I look up one mongo cluster by name?”
Tell an agent
Show mongo cluster {mongoClusterName}.
Get the provisioning state and settings of {mongoClusterName}.
DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/mongoClusters/{mongoClusterName} Delete a mongo cluster · Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Can I tear down a mongo cluster I don't need anymore?”
“Is deleting a mongo cluster reversible?”
Tell an agent destructive · confirm first
Delete mongo cluster {mongoClusterName}.
Remove the {mongoClusterName} cluster and its data.
PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/mongoClusters/{mongoClusterName} Change some settings on a mongo cluster · Microsoft Azure Patch Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Can I change just a couple of properties on an existing mongo cluster?”
“How do I retag a mongo cluster without resending its full definition?”
Tell an agent
Patch mongo cluster {mongoClusterName} with {properties}.
Set the tags on existing cluster {mongoClusterName} to {tags}.
POST /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/checkMongoClusterNameAvailability Check if a mongo cluster name is available · Microsoft Azure Post Subscriptions Subscriptionid Providers Microsoft… #
Ask an LLM
“Is the mongo cluster name I want already taken in that region?”
“Can I validate a cluster name before provisioning it?”
Tell an agent
Check whether my proposed mongo cluster name is available in {location}.
Verify a new mongo cluster name is free in the target location before I create it.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/microsoft-azure:microsoft-azure-mongoclusters-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

microsoft-azure-mongoclusters-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Microsoft Azure Azure Cosmos DB for MongoDB vCore Mongo…
  description: The Microsoft Azure management API provides create, read, update, and delete functionality for Azure Cosmos DB for MongoDB vCore resources including clusters and firewall rules.
  version: 2024-02-15-preview
servers:
- url: https://management.azure.com
security:
- azure_auth:
  - user_impersonation
tags:
- name: MongoClusters
paths:
  /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/mongoClusters:
    get:
      tags:
      - MongoClusters
      operationId: microsoftAzureMongoclustersList
      x-ms-examples:
        List all the mongo clusters:
          $ref: ./examples/mongo-cluster/CosmosDBMongoClusterList.json
      description: List all the mongo clusters in a given subscription.
      parameters:
      - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter
      responses:
        '200':
          description: OK. The mongo clusters were retrieved successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MongoClusterListResult'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: ../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Microsoft Azure Get Subscriptions Subscriptionid Providers Microsoft Documentdb…
  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/mongoClusters:
    get:
      tags:
      - MongoClusters
      operationId: microsoftAzureMongoclustersListbyresourcegroup
      x-ms-examples:
        List the mongo clusters by resource group:
          $ref: ./examples/mongo-cluster/CosmosDBMongoClusterListByResourceGroup.json
      description: List all the mongo clusters in a given resource group.
      parameters:
      - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter
      responses:
        '200':
          description: OK. The mongo clusters were retrieved successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MongoClusterListResult'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: ../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups…
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/mongoClusters/{mongoClusterName}
  : put:
      description: Create or update a mongo cluster. Update overwrites all properties for the resource. To only modify some of the properties, use PATCH.
      tags:
      - MongoClusters
      operationId: microsoftAzureMongoclustersCreateorupdate
      x-ms-long-running-operation: true
      x-ms-long-running-operation-options:
        final-state-via: azure-async-operation
      x-ms-examples:
        Create a new mongo cluster:
          $ref: ./examples/mongo-cluster/CosmosDBMongoClusterCreate.json
        Create a new mongo cluster with point in time restore:
          $ref: ./examples/mongo-cluster/CosmosDBMongoClusterCreatePITR.json
      parameters:
      - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter
      - $ref: '#/components/parameters/MongoClusterNameParameter'
      responses:
        '200':
          description: OK. The mongo cluster request has no updates for the resource.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MongoCluster'
        '201':
          description: The mongo cluster is being created or updated asynchronously. Poll for provisioningState=Succeeded to find when the operation completes.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MongoCluster'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: ../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse
      summary: Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups…
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MongoCluster'
        description: The required parameters for creating or updating a mongo cluster.
        required: true
    get:
      description: Gets information about a mongo cluster.
      tags:
      - MongoClusters
      operationId: microsoftAzureMongoclustersGet
      x-ms-examples:
        Get the mongo cluster:
          $ref: ./examples/mongo-cluster/CosmosDBMongoClusterGet.json
      parameters:
      - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter
      - $ref: '#/components/parameters/MongoClusterNameParameter'
      responses:
        '200':
          description: OK. The mongo cluster properties were retrieved successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MongoCluster'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: ../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse
      summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups…
    delete:
      description: Deletes a mongo cluster.
      tags:
      - MongoClusters
      operationId: microsoftAzureMongoclustersDelete
      x-ms-long-running-operation: true
      x-ms-long-running-operation-options:
        final-state-via: location
      x-ms-examples:
        Delete the mongo cluster:
          $ref: ./examples/mongo-cluster/CosmosDBMongoClusterDelete.json
      parameters:
      - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter
      - $ref: '#/components/parameters/MongoClusterNameParameter'
      responses:
        '202':
          description: Accepted. The mongo cluster is being deleted asynchronously.
          headers:
            Location:
              schema:
                type: string
        '204':
          description: No Content. The mongo cluster does not exist.
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: ../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse
      summary: Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups…
    patch:
      description: Updates an existing mongo cluster. The request body can contain one to many of the properties present in the normal mongo cluster definition.
      tags:
      - MongoClusters
      operationId: microsoftAzureMongoclustersUpdate
      x-ms-long-running-operation: true
      x-ms-long-running-operation-options:
        final-state-via: location
      x-ms-examples:
        Update the mongo cluster:
          $ref: ./examples/mongo-cluster/CosmosDBMongoClusterUpdate.json
        Add new shard nodes:
          $ref: ./examples/mongo-cluster/CosmosDBMongoClusterAddNode.json
      parameters:
      - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter
      - $ref: '#/components/parameters/MongoClusterNameParameter'
      responses:
        '200':
          description: OK. The request has no changes for the mongo cluster.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MongoCluster'
        '202':
          description: Accepted. The mongo cluster update will be completed asynchronously.
          headers:
            Location:
              schema:
                type: string
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: ../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse
      summary: Microsoft Azure Patch Subscriptions Subscriptionid Resourcegroups…
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MongoClusterUpdate'
        description: The parameters for updating a mongo cluster.
        required: true
  /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/checkMongoClusterNameAvailability:
    post:
      description: Check the availability of name for resource
      tags:
      - MongoClusters
      operationId: microsoftAzureMongoclustersChecknameavailability
      x-ms-examples:
        Check name availability:
          $ref: ./examples/mongo-cluster/CosmosDBMongoClusterNameAvailability.json
        Check name availability already exists result:
          $ref: ./examples/mongo-cluster/CosmosDBMongoClusterNameAvailability_AlreadyExists.json
      parameters:
      - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/LocationParameter
      responses:
        '200':
          description: OK. Check availability returned successfully.
          content:
            application/json:
              schema:
                $ref: ../../../../../common-types/resource-management/v5/types.json#/definitions/CheckNameAvailabilityResponse
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: ../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse
      summary: Microsoft Azure Post Subscriptions Subscriptionid Providers Microsoft…
      requestBody:
        content:
          application/json:
            schema:
              $ref: ../../../../../common-types/resource-management/v5/types.json#/definitions/CheckNameAvailabilityRequest
        description: The required parameters for checking if resource name is available.
        required: true
components:
  schemas:
    NodeGroupSpecList:
      type: array
      description: The list of node group specifications for the cluster. Must include one node group spec with kind = 'Shard'.
      items:
        $ref: '#/components/schemas/NodeGroupSpec'
      x-ms-identifiers: []
      minItems: 1
    MongoClusterUpdate:
      type: object
      description: Represents a mongo cluster resource for updates.
      properties:
        properties:
          $ref: '#/components/schemas/MongoClusterProperties'
          x-ms-client-flatten: true
          description: Properties of the mongo cluster.
        tags:
          type: object
          additionalProperties:
            type: string
          description: Application-specific metadata in the form of key-value pairs.
    MongoClusterProperties:
      type: object
      description: The properties of a mongo cluster.
      properties:
        createMode:
          type: string
          description: The mode to create a mongo cluster.
          enum:
          - Default
          - PointInTimeRestore
          x-ms-enum:
            name: CreateMode
            modelAsString: true
          x-ms-mutability:
          - create
          default: Default
        restoreParameters:
          $ref: '#/components/schemas/MongoClusterRestoreParameters'
          description: Parameters used for restore operations
          x-ms-mutability:
          - create
        administratorLogin:
          type: string
          description: The administrator's login for the mongo cluster.
          x-ms-mutability:
          - create
          - update
          - read
        administratorLoginPassword:
          type: string
          x-ms-secret: true
          format: password
          x-ms-mutability:
          - create
          - update
          description: The password of the administrator login.
        serverVersion:
          type: string
          description: The Mongo DB server version. Defaults to the latest available version if not specified.
        connectionString:
          type: string
          readOnly: true
          description: The default mongo connection string for the cluster.
        earliestRestoreTime:
          type: string
          readOnly: true
          description: Earliest restore timestamp in UTC ISO8601 format.
        provisioningState:
          $ref: '#/components/schemas/ProvisioningState'
          description: A provisioning state of the mongo cluster.
          readOnly: true
        clusterStatus:
          $ref: '#/components/schemas/MongoClusterStatus'
          description: A status of the mongo cluster.
        nodeGroupSpecs:
          $ref: '#/components/schemas/NodeGroupSpecList'
          description: The list of node group specs in the cluster.
    MongoClusterListResult:
      type: object
      properties:
        value:
          type: array
          items:
            $ref: '#/components/schemas/MongoCluster'
          description: The list of mongo clusters
        nextLink:
          description: The link used to get the next page of results.
          type: string
          readOnly: true
      description: A list of mongo clusters.
    MongoClusterRestoreParameters:
      type: object
      description: Parameters used for restore operations
      properties:
        pointInTimeUTC:
          type: string
          format: date-time
          description: UTC point in time to restore a mongo cluster
        sourceResourceId:
          type: string
          description: Resource ID to locate the source cluster to restore
    MongoClusterStatus:
      description: The status of the resource at the time the operation was called.
      type: string
      enum:
      - Ready
      - Provisioning
      - Updating
      - Starting
      - Stopping
      - Stopped
      - Dropping
      x-ms-enum:
        name: MongoClusterStatus
        modelAsString: true
      readOnly: true
    NodeKind:
      type: string
      description: The kind of a node in the mongo cluster.
      enum:
      - Shard
      x-ms-enum:
        name: NodeKind
        modelAsString: true
    NodeGroupProperties:
      type: object
      description: The properties of the node group on a cluster.
      properties:
        sku:
          type: string
          description: 'The resource sku for the node group. This defines the size of CPU and memory that is provisioned for each node. Example values: ''M30'', ''M40''.'
        diskSizeGB:
          type: integer
          format: int64
          description: 'The disk storage size for the node group in GB. Example values: 128, 256, 512, 1024.'
        enableHa:
          type: boolean
          description: Whether high availability is enabled on the node group.
    NodeGroupSpec:
      type: object
      description: Specification for a node group.
      allOf:
      - $ref: '#/components/schemas/NodeGroupProperties'
      properties:
        kind:
          $ref: '#/components/schemas/NodeKind'
          description: The node type deployed in the node group.
        nodeCount:
          type: integer
          format: int32
          description: The number of nodes in the node group.
    ProvisioningState:
      description: The provisioning state of the resource.
      type: string
      enum:
      - Succeeded
      - Failed
      - Canceled
      - InProgress
      - Updating
      - Dropping
      x-ms-enum:
        name: ProvisioningState
        modelAsString: true
      readOnly: true
    MongoCluster:
      type: object
      description: Represents a mongo cluster resource.
      allOf:
      - $ref: ../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource
      properties:
        properties:
          $ref: '#/components/schemas/MongoClusterProperties'
          x-ms-client-flatten: true
          description: Properties of the mongo cluster.
  parameters:
    MongoClusterNameParameter:
      name: mongoClusterName
      in: path
      required: true
      description: The name of the mongo cluster.
      x-ms-parameter-location: method
      schema:
        type: string
        maxLength: 40
        minLength: 3
        pattern: ^[a-z0-9]+(-[a-z0-9]+)*
  securitySchemes:
    azure_auth:
      type: oauth2
      flows:
        implicit:
          scopes:
            user_impersonation: Impersonate your user account
          authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize
      description: Azure Active Directory OAuth2 Flow