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.4

    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.4
    iconOceanBase Cloud Platform
    V 4.3.4
    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 zones of an OceanBase cluster

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

    folded

    Share

    Description

    You can call this operation to query zones of an OceanBase cluster.

    Call description

    Prerequisites

    • You have the Read-only permission on the OceanBase cluster.

      For more information about the permissions, see Users and Permissions Overview.

    • You have passed the authentication for the OCP application service.

    Request path

    GET /api/v2/ob/clusters/{id}/zones

    Path parameters

    Parameter
    Type
    Required
    Example value
    Description
    id Integer Yes 100 The ID of the OceanBase cluster in which zones need to be queried.

    Response parameters

    Parameter
    Type
    Description
    data Object The requested data.
    ├─ contents Array The array of the zone information. For more information about the data structure, see the following table.
    ├─ page Object The page information.
    ├─ totalElements Integer The total number of entries.
    ├─ totalPage Integer The total number of pages.
    ├─ number Integer The page number of the returned page.
    ├─ size Integer The number of entries returned per page.
    successful Boolean Indicates whether the request was successful.
    timestamp Datetime The timestamp when the server completed the request.
    duration Integer The time taken by the server to process the request, in milliseconds.
    status Integer An 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 the zone information

    Parameter
    Type
    Description
    name String The name of the zone.
    idcName String The name of the IDC to which the zone belongs.
    regionName String The region to which the zone belongs.
    servers Array The list of servers.
    clusterId Long The ID of the OceanBase cluster generated by the OCP system.
    obClusterId Long The ID of the OceanBase cluster generated by the OceanBase Database system.
    serverCount Integer The number of servers.
    hostCount Integer The number of hosts

    Data structure of the server information

    Parameter
    Type
    Description
    id String The ID of the OBServer.
    ip String The IP address of the OBServer.
    port Integer The port number of the OBServer.
    sqlPort Integer The SQL port number.
    version String The version information.
    withRootserver Boolean Indicates whether the Root Service was enabled.
    status String The status of the OBServer.
    clusterId Long The ID of the OceanBase cluster to which the OBServer belongs. This ID is generated by the OCP system.
    zoneName String The name of the zone to which the OBServer belongs.
    regionName String The region to which the OBServer belongs.
    idcName String The IDC to which the OBServer belongs.
    hostId Long The host ID corresponding to the OBServer.
    hostTypeName String The name of the host type.
    startTime DateTime The start time of the OBServer.
    stopTime DateTime The stop time of the OBServer.

    Examples

    Sample request

    Query zones of a cluster

    GET /api/v2/ob/clusters/100/zones

    Sample response

    {
        "data": {
            "contents": [
                {
                    "clusterId": 12000001,
                    "compactionStatus": "IDLE",
                    "createTime": "2021-09-02T16:31:34+08:00",
                    "hostCount": 1,
                    "idcId": 3,
                    "idcName": "hz3",
                    "innerStatus": "ACTIVE",
                    "name": "zone1",
                    "obClusterId": 22,
                    "regionName": "hangzhou",
                    "rootServer": {
                        "address": "xxx.xxx.xxx.xxx:2882",
                        "role": "LEADER",
                        "sql_port": 2881
                    },
                    "serverCount": 1,
                    "servers": [
                        {
                            "clusterId": 12000001,
                            "hostId": 4000003,
                            "hostTypeName": "forge",
                            "id": 12000001,
                            "idcName": "hz3",
                            "innerStatus": "ACTIVE",
                            "ip": "xxx.xxx.xxx.xxx",
                            "port": 2882,
                            "regionName": "hangzhou",
                            "sqlPort": 2881,
                            "startTime": "2021-09-02T08:39:29.295684Z",
                            "status": "RUNNING",
                            "stopTime": "1970-01-01T00:00:00Z",
                            "updateTime": "2021-09-02T16:39:58+08:00",
                            "version": "3.1.0_20210412122703-1c10f0b3ad39105cd5d12eb566ebe3a374ea38f5(Apr 12 2021 12:57:39)",
                            "withRootserver": true,
                            "zoneName": "zone1"
                        }
                    ],
                    "status": "RUNNING",
                    "updateTime": "2021-09-03T02:01:31+08:00"
                }
            ]
        },
        "duration": 593,
        "server": "a83ad33525",
        "status": 200,
        "successful": true,
        "timestamp": "2021-09-03T10:28:31.861+08:00",
        "traceId": "340849601d4d4ffe"
    }
    

    Previous topic

    Take over an OceanBase cluster
    Last

    Next topic

    Create a zone for an OceanBase cluster
    Next
    What is on this page
    Description
    Call description
    Prerequisites
    Request path
    Response parameters
    Examples
    Sample request
    Sample response