---
title: "启动 OceanBase 集群 | OceanBase 文档中心"
description: "启动 OceanBase 集群 功能说明 该接口用于启动 OceanBase 集群。 调用说明 接口约束 调用者需具备启动 OceanBase 集群的权限。 关于调用者的权限，详情可参见 安全概述 。 调用者需要通过 OCP 应用服务鉴权。 请求路径 POST /api/v2/ob/clusters/{id}/sta…"
---
切换语言

- 中文站 - 简体中文
- International - English
- 日本站 - 日本語

文档反馈![](https://mdn.alipayobjects.com/huamei_22khvb/afts/img/A*lJTmRZ61jSUAAAAAAAAAAAAADiGDAQ/original) 云平台 OCPV 4.0.3 企业版

# 启动 OceanBase 集群

更新时间：2023-08-16 15:51:32

## 功能说明

该接口用于启动 OceanBase 集群。

## 调用说明

### 接口约束

- 调用者需具备启动 OceanBase 集群的权限。

  关于调用者的权限，详情可参见 [安全概述](https://www.oceanbase.com/docs/enterprise-oceanbase-ocp-cn-10000000001538756)。
 - 调用者需要通过 OCP 应用服务鉴权。

### 请求路径

`POST /api/v2/ob/clusters/{id}/start`

**path：**

| 参数 | 类型 | 必选 | 示例值 | 描述 |
| --- | --- | --- | --- | --- |
| id | Long | 是 | 1 | 需启动的 OceanBase 集群的 ID |

### 返回结果

基础数据结构

| 参数 | 类型 | 说明 |
| --- | --- | --- |
| data | Object | 异步任务信息，详情参见 [任务信息](https://www.oceanbase.com/docs/enterprise-oceanbase-ocp-cn-10000000001540216)。 |
| successful | Boolean | 请求是否成功。 |
| timestamp | Datetime | 服务端完成请求的时间戳。 |
| duration | Integer | 服务端处理请求的时间（毫秒）。 |
| status | Integer | 符合 HTTP Status 规范的编码。 |
| traceId | String | 请求的 Trace ID，用于排查问题。 |
| server | String | 响应请求的应用服务的地址。 |

## 示例

### 请求示例

`POST /api/v2/ob/clusters/1/start`

### 返回示例

```unknow
{
  "data": {
    "cluster": {
      "id": 21,
      "name": "ob_upgrade",
      "obClusterId": 22
    },
    "context": "Context(parallelIdx=-1, stringMap={cluster_name=ob_upgrade, cluster_id=21, ocpagent_service_name=agent}, listMap={server_ids=[5], host_ids=[5], zone_names=[zone1]})",
    "creator": {
      "id": 100,
      "name": "admin"
    },
    "id": 107330,
    "name": "Start OB cluster",
    "startTime": "2021-03-02T10:31:42.285+08:00",
    "status": "RUNNING",
    "tasks": [
      {
        "description": "Wait node",
        "downstreams": [
          128848
        ],
        "id": 128836,
        "name": "Wait node",
        "operation": "EXECUTE",
        "status": "PENDING",
        "upstreams": [
          128843
        ]
      },
      {
        "description": "Wait node",
        "downstreams": [
          128845
        ],
        "id": 128837,
        "name": "Wait node",
        "operation": "EXECUTE",
        "status": "PENDING",
        "upstreams": [
          128842
        ]
      },
      {
        "description": "Update OB cluster status",
        "downstreams": [

        ],
        "id": 128838,
        "name": "Update OB cluster status",
        "operation": "EXECUTE",
        "status": "PENDING",
        "upstreams": [
          128849
        ]
      },
      {
        "description": "Start ocp agent service",
        "downstreams": [
          128853
        ],
        "id": 128839,
        "name": "Start ocp agent service",
        "operation": "EXECUTE",
        "status": "PENDING",
        "upstreams": [
          128841
        ]
      },
      {
        "description": "Prepare start cluster",
        "downstreams": [
          128846
        ],
        "id": 128840,
        "name": "Prepare start cluster",
        "operation": "EXECUTE",
        "status": "RUNNING",
        "upstreams": [

        ]
      },
      {
        "description": "Wait observer accessible",
        "downstreams": [
          128839
        ],
        "id": 128841,
        "name": "Wait observer accessible",
        "operation": "EXECUTE",
        "status": "PENDING",
        "upstreams": [
          128850
        ]
      },
      {
        "description": "Update observer status",
        "downstreams": [
          128837
        ],
        "id": 128842,
        "name": "Update observer status",
        "operation": "EXECUTE",
        "status": "PENDING",
        "upstreams": [
          128847
        ]
      },
      {
        "description": "Start server",
        "downstreams": [
          128836
        ],
        "id": 128843,
        "name": "Start server",
        "operation": "EXECUTE",
        "status": "PENDING",
        "upstreams": [
          128853
        ]
      },
      {
        "description": "Prepare start observer",
        "downstreams": [
          128851
        ],
        "id": 128844,
        "name": "Prepare start observer",
        "operation": "EXECUTE",
        "status": "PENDING",
        "upstreams": [
          128852
        ]
      },
      {
        "description": "Update zone status",
        "downstreams": [
          128849
        ],
        "id": 128845,
        "name": "Update zone status",
        "operation": "EXECUTE",
        "status": "PENDING",
        "upstreams": [
          128837
        ]
      },
      {
        "description": "Prepare start OB zone",
        "downstreams": [
          128852
        ],
        "id": 128846,
        "name": "Prepare start OB zone",
        "operation": "EXECUTE",
        "status": "PENDING",
        "upstreams": [
          128840
        ]
      },
      {
        "description": "Wait node",
        "downstreams": [
          128842
        ],
        "id": 128847,
        "name": "Wait node",
        "operation": "EXECUTE",
        "status": "PENDING",
        "upstreams": [
          128848
        ]
      },
      {
        "description": "Start zone",
        "downstreams": [
          128847
        ],
        "id": 128848,
        "name": "Start zone",
        "operation": "EXECUTE",
        "status": "PENDING",
        "upstreams": [
          128836
        ]
      },
      {
        "description": "Sync all tenant information",
        "downstreams": [
          128838
        ],
        "id": 128849,
        "name": "Sync all tenant information",
        "operation": "EXECUTE",
        "status": "PENDING",
        "upstreams": [
          128845
        ]
      },
      {
        "description": "Start observer process",
        "downstreams": [
          128841
        ],
        "id": 128850,
        "name": "Start observer process",
        "operation": "EXECUTE",
        "status": "PENDING",
        "upstreams": [
          128851
        ]
      },
      {
        "description": "Wait node",
        "downstreams": [
          128850
        ],
        "id": 128851,
        "name": "Wait node",
        "operation": "EXECUTE",
        "status": "PENDING",
        "upstreams": [
          128844
        ]
      },
      {
        "description": "Wait node",
        "downstreams": [
          128844
        ],
        "id": 128852,
        "name": "Wait node",
        "operation": "EXECUTE",
        "status": "PENDING",
        "upstreams": [
          128846
        ]
      },
      {
        "description": "Wait node",
        "downstreams": [
          128843
        ],
        "id": 128853,
        "name": "Wait node",
        "operation": "EXECUTE",
        "status": "PENDING",
        "upstreams": [
          128839
        ]
      }
    ]
  },
  "duration": 116,
  "server": "a83ad33525",
  "status": 200,
  "successful": true,
  "timestamp": "2021-03-02T10:31:42.362+08:00",
  "traceId": "71abcaaaff9440b9"
}

```

 上一篇 下一篇 ![有帮助](https://gw.alipayobjects.com/mdn/ob_asset/afts/img/A*y6ocSqN8cqsAAAAAAAAAAAAAARQnAQ)![无帮助](https://gw.alipayobjects.com/mdn/ob_asset/afts/img/A*BG9IQJyLHF8AAAAAAAAAAAAAARQnAQ)![反馈](https://gw.alipayobjects.com/mdn/ob_asset/afts/img/A*eTWdQKCRKHwAAAAAAAAAAAAAARQnAQ)[AI](https://www.oceanbase.com/obi) 咨询热线
