Nacos Operator API

Server operations and metrics

Operations 4

GET /v1/ns/operator/switches Get system switches #
PUT /v1/ns/operator/switches Update system switches #
GET /v1/ns/operator/metrics Get server metrics #
GET /v1/ns/operator/servers List cluster servers #

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/nacos-operator-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

nacos-operator-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Nacos Open Auth Operator API
  description: Nacos Open API for service discovery, configuration management, and namespace management. Nacos supports dynamic service discovery, service configuration, service metadata, and traffic management.
  version: 2.3.0
  contact:
    name: Alibaba Nacos
    url: https://nacos.io/
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0
servers:
- url: http://localhost:8848/nacos
  description: Local Nacos server
- url: http://{nacos_host}:{port}/nacos
  description: Custom Nacos server
  variables:
    nacos_host:
      default: localhost
    port:
      default: '8848'
security:
- AccessToken: []
tags:
- name: Operator
  description: Server operations and metrics
paths:
  /v1/ns/operator/switches:
    get:
      operationId: getSwitches
      summary: Get system switches
      description: Returns Nacos system switch values.
      tags:
      - Operator
      responses:
        '200':
          description: System switches
          content:
            application/json:
              schema:
                type: object
                properties:
                  name:
                    type: string
                  masters:
                    type: array
                    items:
                      type: string
                  adWeightMap:
                    type: object
                  defaultPushCacheMillis:
                    type: integer
                  clientBeatInterval:
                    type: integer
                  defaultCacheMillis:
                    type: integer
                  distroThreshold:
                    type: number
                  healthCheckEnabled:
                    type: boolean
                  autoChangeHealthCheckEnabled:
                    type: boolean
                  distroEnabled:
                    type: boolean
                  enableStandalone:
                    type: boolean
                  pushEnabled:
                    type: boolean
                  checkTimes:
                    type: integer
    put:
      operationId: updateSwitches
      summary: Update system switches
      description: Updates a Nacos system switch value.
      tags:
      - Operator
      parameters:
      - name: entry
        in: query
        required: true
        schema:
          type: string
        description: Switch entry key
      - name: value
        in: query
        required: true
        schema:
          type: string
        description: Switch entry value
      - name: debug
        in: query
        schema:
          type: boolean
      responses:
        '200':
          description: Switch updated
          content:
            text/plain:
              schema:
                type: string
  /v1/ns/operator/metrics:
    get:
      operationId: getMetrics
      summary: Get server metrics
      description: Returns current Nacos server metrics.
      tags:
      - Operator
      responses:
        '200':
          description: Server metrics
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                  serviceCount:
                    type: integer
                  instanceCount:
                    type: integer
                  subscribeCount:
                    type: integer
                  raftNotifyTaskCount:
                    type: integer
                  responsibleServiceCount:
                    type: integer
                  responsibleInstanceCount:
                    type: integer
                  cpu:
                    type: number
                  load:
                    type: number
                  mem:
                    type: number
  /v1/ns/operator/servers:
    get:
      operationId: listServers
      summary: List cluster servers
      description: Returns the list of Nacos cluster members.
      tags:
      - Operator
      parameters:
      - name: healthy
        in: query
        schema:
          type: boolean
        description: Filter by health status
      responses:
        '200':
          description: Cluster server list
          content:
            application/json:
              schema:
                type: object
                properties:
                  servers:
                    type: array
                    items:
                      type: object
                      properties:
                        ip:
                          type: string
                        port:
                          type: integer
                        state:
                          type: string
                        extendInfo:
                          type: object
                        address:
                          type: string
                        failAccessCnt:
                          type: integer
components:
  securitySchemes:
    AccessToken:
      type: apiKey
      name: accessToken
      in: query
      description: Access token obtained from login endpoint