Microsoft Azure Cluster Operations API

The ClusterOperations API from Microsoft Azure, for clusteroperations.

GitHub OpenAPI
Business capability
IT Infrastructure Management BC-600.50

Operations 4

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

POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/restart Restart all nodes in a Cosmos DB for PostgreSQL cluster · Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I restart every node in my Azure Cosmos DB for PostgreSQL cluster?”
“Can I reboot a distributed PostgreSQL cluster in one call?”
Tell an agent
Restart all nodes in PostgreSQL cluster {clusterName}.
Reboot every node of cluster {clusterName}.
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/start Start compute on a stopped PostgreSQL cluster · Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I bring a stopped PostgreSQL cluster's compute back online?”
“Can I start compute on all nodes of a cluster I stopped to save money?”
Tell an agent
Start compute on stopped cluster {clusterName}.
Power up all nodes of PostgreSQL cluster {clusterName} again.
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/stop Stop compute on a PostgreSQL cluster · Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Can I stop compute on my PostgreSQL cluster to pause compute costs?”
“What shuts down compute on all nodes of a Cosmos DB for PostgreSQL cluster?”
Tell an agent
Stop compute on all nodes of cluster {clusterName}.
Pause PostgreSQL cluster {clusterName} by stopping its compute.
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/promote Promote a read replica cluster to read-write · Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I promote a read replica cluster into an independent read-write cluster?”
“Can I turn on geo-redundant backup when promoting a replica cluster?”
Tell an agent
Promote read replica cluster {clusterName} to an independent read-write cluster.
Promote replica {clusterName} with geo-backup set to {enableGeoBackup}.

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-clusteroperations-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-clusteroperations-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Microsoft Azure Azure Cosmos DB for PostgreSQL Cluster…
  description: Azure Cosmos DB for PostgreSQL database service resource provider REST APIs
  version: 2023-03-02-preview
servers:
- url: https://management.azure.com
security:
- azure_auth:
  - user_impersonation
tags:
- name: ClusterOperations
paths:
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/restart
  : post:
      description: Restarts all nodes in the cluster.
      tags:
      - ClusterOperations
      operationId: microsoftAzureClustersRestart
      x-ms-long-running-operation: true
      x-ms-long-running-operation-options:
        final-state-via: location
      x-ms-examples:
        Restart all servers in the cluster:
          $ref: ./examples/ClusterRestart.json
      parameters:
      - $ref: ../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter
      - $ref: '#/components/parameters/ClusterNameParameter'
      responses:
        '202':
          description: Accepted
          headers:
            location:
              schema:
                type: string
            azure-async-operation:
              schema:
                type: string
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: ../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse
      summary: Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups…
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/start
  : post:
      description: Starts stopped compute on all cluster nodes.
      tags:
      - ClusterOperations
      operationId: microsoftAzureClustersStart
      x-ms-long-running-operation: true
      x-ms-long-running-operation-options:
        final-state-via: location
      x-ms-examples:
        Start all servers in the cluster:
          $ref: ./examples/ClusterStart.json
      parameters:
      - $ref: ../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter
      - $ref: '#/components/parameters/ClusterNameParameter'
      responses:
        '200':
          description: OK
        '202':
          description: Accepted
          headers:
            location:
              schema:
                type: string
            azure-async-operation:
              schema:
                type: string
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: ../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse
      summary: Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups…
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/stop
  : post:
      description: Stops compute on all cluster nodes.
      tags:
      - ClusterOperations
      operationId: microsoftAzureClustersStop
      x-ms-long-running-operation: true
      x-ms-long-running-operation-options:
        final-state-via: location
      x-ms-examples:
        Stop all servers in the cluster:
          $ref: ./examples/ClusterStop.json
      parameters:
      - $ref: ../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter
      - $ref: '#/components/parameters/ClusterNameParameter'
      responses:
        '200':
          description: OK
        '202':
          description: Accepted
          headers:
            location:
              schema:
                type: string
            azure-async-operation:
              schema:
                type: string
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: ../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse
      summary: Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups…
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/promote
  : post:
      description: Promotes read replica cluster to an independent read-write cluster.
      tags:
      - ClusterOperations
      operationId: microsoftAzureClustersPromotereadreplica
      x-ms-long-running-operation: true
      x-ms-long-running-operation-options:
        final-state-via: location
      x-ms-examples:
        Promote read replica cluster to an independent read-write cluster.:
          $ref: ./examples/ClusterPromoteReadReplica.json
      parameters:
      - $ref: ../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter
      - $ref: '#/components/parameters/ClusterNameParameter'
      responses:
        '202':
          description: Accepted
          headers:
            location:
              schema:
                type: string
            azure-async-operation:
              schema:
                type: string
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: ../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse
      summary: Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups…
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PromoteRequest'
        description: The parameter for enabling geo-redundant backup while promoting read replica.
components:
  parameters:
    ClusterNameParameter:
      name: clusterName
      in: path
      required: true
      description: The name of the cluster.
      x-ms-parameter-location: method
      schema:
        type: string
        maxLength: 40
        minLength: 3
        pattern: ^(?![0-9]+$)(?!-)[a-z0-9-]{3,40}(?<!-)$
  schemas:
    PromoteRequest:
      description: Request from client to promote geo-redundant replica
      type: object
      properties:
        enableGeoBackup:
          type: boolean
          description: Cluster name to verify.
  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