OceanBase logo

OceanBase

A unified distributed database ready for your transactional, analytical, and AI workloads.

Product Overview
DEPLOY YOUR WAY

OceanBase Cloud

The best way to deploy and scale OceanBase

OceanBase Enterprise

Run and manage OceanBase on your infra

TRY OPEN SOURCE

OceanBase Community Edition

The free, open-source distributed database

OceanBase seekdb

Open source AI native search database

Customer Stories

Real-world success stories from enterprises across diverse industries.

View All
BY USE CASES

Mission-Critical Transactions

Global & Multicloud Application

Elastic Scaling for Peak Traffic

Real-time Analytics

Active Geo-redundancy

Database Consolidation

Resources

Comprehensive knowledge hub for OceanBase.

Blog

Live Demos

Training & Certification

Documentation

Official technical guides, tutorials, API references, and manuals for all OceanBase products.

View All
PRODUCTS

OceanBase Cloud

OceanBase Database

Tools

Connectors and Middleware

QUICK START

OceanBase Cloud

OceanBase Database

BEST PRACTICES

Practical guides for utilizing OceanBase more effectively and conveniently

Company

Learn more about OceanBase – our company, partnerships, and trust and security initiatives.

About OceanBase

Partner

Trust Center

Contact Us

International - English
中国站 - 简体中文
日本 - 日本語
Sign In
Start on Cloud

OceanBase

A unified distributed database ready for your transactional, analytical, and AI workloads.

Product Overview
DEPLOY YOUR WAY

OceanBase Cloud

The best way to deploy and scale OceanBase

OceanBase Enterprise

Run and manage OceanBase on your infra

TRY OPEN SOURCE

OceanBase Community Edition

The free, open-source distributed database

OceanBase seekdb

Open source AI native search database

Customer Stories

Real-world success stories from enterprises across diverse industries.

View All
BY USE CASES

Mission-Critical Transactions

Global & Multicloud Application

Elastic Scaling for Peak Traffic

Real-time Analytics

Active Geo-redundancy

Database Consolidation

Comprehensive knowledge hub for OceanBase.

Blog

Live Demos

Training & Certification

Documentation

Official technical guides, tutorials, API references, and manuals for all OceanBase products.

View All
PRODUCTS
OceanBase CloudOceanBase Database
ToolsConnectors and Middleware
QUICK START
OceanBase CloudOceanBase Database
BEST PRACTICES

Practical guides for utilizing OceanBase more effectively and conveniently

Learn more about OceanBase – our company, partnerships, and trust and security initiatives.

About OceanBase

Partner

Trust Center

Contact Us

Start on Cloud
编组
All Products
    • Databases
    • iconOceanBase Database
    • iconOceanBase Cloud
    • iconOceanBase Tugraph
    • iconInteractive Tutorials
    • iconOceanBase Best Practices
    • Tools
    • iconOceanBase Cloud Platform
    • iconOceanBase Migration Service
    • iconOceanBase Developer Center
    • iconOceanBase Migration Assessment
    • iconOceanBase Admin Tool
    • iconOceanBase Loader and Dumper
    • iconOceanBase Deployer
    • iconKubernetes operator for OceanBase
    • iconOceanBase Diagnostic Tool
    • iconOceanBase Binlog Service
    • Connectors and Middleware
    • iconOceanBase Database Proxy
    • iconEmbedded SQL in C for OceanBase
    • iconOceanBase Call Interface
    • iconOceanBase Connector/C
    • iconOceanBase Connector/J
    • iconOceanBase Connector/ODBC
    • iconOceanBase Connector/NET
icon

OceanBase Cloud Platform

V4.3.5

    Download PDF

    OceanBase logo

    The Unified Distributed Database for the AI Era.

    Follow Us
    Products
    OceanBase CloudOceanBase EnterpriseOceanBase Community EditionOceanBase seekdb
    Resources
    DocsBlogWhite PaperLive DemosTraining & CertificationTicket
    Company
    About OceanBaseTrust CenterLegalPartnerContact Us
    Follow Us

    © OceanBase 2026. All rights reserved

    Cloud Service AgreementPrivacy PolicySecurity
    Contact Us
    Document Feedback
    1. Documentation Center
    2. OceanBase Cloud Platform
    3. V4.3.5
    iconOceanBase Cloud Platform
    V 4.3.5
    Databases
    • OceanBase Database
    • OceanBase Cloud
    • OceanBase Tugraph
    • Interactive Tutorials
    • OceanBase Best Practices
    Tools
    • OceanBase Cloud Platform
    • OceanBase Migration Service
    • OceanBase Developer Center
    • OceanBase Migration Assessment
    • OceanBase Admin Tool
    • OceanBase Loader and Dumper
    • OceanBase Deployer
    • Kubernetes operator for OceanBase
    • OceanBase Diagnostic Tool
    • OceanBase Binlog Service
    Connectors and Middleware
    • OceanBase Database Proxy
    • Embedded SQL in C for OceanBase
    • OceanBase Call Interface
    • OceanBase Connector/C
    • OceanBase Connector/J
    • OceanBase Connector/ODBC
    • OceanBase Connector/NET
    • V 4.4.2
    • V 4.3.6
    • V 4.3.5
    • V 4.3.4
    • V 4.3.3
    • V 4.3.2
    • V 4.3.1
    • V 4.3.0
    • V 4.2.2
    • V 4.0.0 and earlier

    Query OBServer nodes in a zone

    Last Updated:2026-04-16 03:36:04  Updated
    Share
    What is on this page
    Description
    Call description
    Prerequisites
    Request path
    Request parameters
    Examples
    Sample request
    Sample response

    folded

    Share

    Description

    You can call this operation to query OBServer nodes in a specific zone of the specified OceanBase cluster.

    Call description

    Prerequisites

    • You have the read-only permission on the specified OceanBase cluster.

      For more information about the permissions, see Overview.

    • You have passed the authentication for the OceanBase Cloud Platform (OCP) application service.

    Request path

    GET /api/v2/clusters/{clusterId}/zones/{zoneName}/servers

    Request parameters

    Parameter
    Type
    Required
    Example value
    Description
    clusterId Integer Yes 1 The ID of the target cluster.
    zoneName String Yes zone1 The name of the zone.

    Basic data structure

    Parameter
    Type
    Description
    data Object The requested data.
    ├─ contents Array For more information, see Data structure of OBServer node information.
    successful Boolean Indicates whether the request was successful.
    timestamp Datetime The timestamp when the server completed the request.
    duration Integer The amount of time taken by the server to process the request, in milliseconds.
    status Integer The HTTP status code.
    traceId String The trace ID of the request. This trace ID is used for troubleshooting.
    server String The address of the application server that responded to the request.

    Data structure of OBServer node information

    Parameter
    Type
    Description
    id Integer The ID of the OBServer node.
    ip String The IP address of the OBServer node.
    port Integer The remote procedure call (RPC) port number of the OBServer node.
    sqlPort Integer The SQL port number of the OBServer node.
    runUser String The OS user.
    runPath String The run path.
    installPath String The installation path.
    version String The OceanBase Database version of the OBServer node.
    withRootserver Boolean Indicates whether RootService is deployed on the OBServer node.
    status String The status of the OBServer node. Valid values:
  • CREATING
  • RUNNING
  • STOPPING
  • STOPPED
  • STARTING
  • RESTARTING
  • DELETING
  • UNAVAILABLE
  • OPERATING
  • DELETED
  • innerStatus Enum The inner status of the OBServer node in OceanBase Database. Valid values:
  • ACTIVE
  • INACTIVE
  • DELETING
  • TAKEOVER_BY_RS
  • updateTime Datetime The time when the OBServer node was last updated.
    clusterId Integer The ID of the cluster to which the OBServer node belongs.
    zoneName String The name of the zone to which the OBServer node belongs.
    regionName String The name of the region to which the OBServer node belongs.
    idcName String The name of the IDC to which the OBServer node belongs.
    hostId Integer The host ID of the OBServer node.
    hostTypeName String The host type of the OBServer node.
    hostStatus Enum The status of the host. Valid values:
  • NEW
  • ONLINE
  • OFFLINE
  • AGENT_RESTARTING
  • AGENT_REINSTALLING
  • SHUTDOWN
  • DELETING
  • AVAILABLE
  • startTime Datetime The start time of the OBServer node.
    stopTime Datetime The stop time of the OBServer node.
    availableOperations StringArray The operations that can be performed on the OBServer node.
    arbitrationStatus Enum The connection status of the arbitration service. This parameter is supported in only OceanBase Database V4.2.0.0 and later. Valid values:
  • ACTIVE
  • INACTIVE
  • onlineCpuCoreRange String The CPU binding range of the OBServer node.

    Examples

    Sample request

    Query all OBServer nodes that belong to zone1 in the cluster whose ID is 1.

    GET /api/v2/ob/clusters/1/zones/zone1/servers

    Sample response

    {
        "data": {
            "contents": [{
                "arbitrationStatus": "ACTIVE",
                "clusterId": 6000004,
                "hostId": 4000027,
                "hostStatus": "ONLINE",
                "hostTypeName": "test",
                "id": 6000004,
                "idcName": "BJ",
                "innerStatus": "ACTIVE",
                "installPath": "/home/admin/oceanbase",
                "ip": "xxx.xxx.xxx.xxx",
                "onlineCpuCoreRange": "0-21",
                "port": 2882,
                "regionName": "OCP_META_REGION",
                "runPath": "/home/admin/oceanbase",
                "runUser": "admin",
                "sqlPort": 2881,
                "startTime": "2025-03-20T12:09:13+08:00",
                "status": "RUNNING",
                "stopTime": "1970-01-01T08:00:00+08:00",
                "updateTime": "2025-03-20T12:09:54+08:00",
                "version": "3.2.3.3_109020032023081510-45587812d6f25799555b6c39ea153e52bc15a2d9(Aug 15 2023 10:15:54)",
                "withRootserver": true,
                "zoneName": "zone1"
            }]
        },
        "duration": 23,
        "server": "74f95ea2f4",
        "status": 200,
        "successful": true,
        "timestamp": "2025-03-20T15:41:22.306+08:00",
        "traceId": "317721b284a4f84c"
    }
    

    Previous topic

    Query OBServer nodes of an OceanBase cluster
    Last

    Next topic

    Perform a switchover pre-check
    Next
    What is on this page
    Description
    Call description
    Prerequisites
    Request path
    Request parameters
    Examples
    Sample request
    Sample response