機能の概要
このAPIは、OceanBaseクラスタを削除するために使用します。
呼び出しの説明
インターフェース制約
呼び出し元には、OceanBaseクラスタを削除する権限が付与されていなければなりません。
呼び出し元の権限について詳細は、ユーザーと権限の概要を参照してください。
呼び出し元は、OCPアプリケーションサービスの認証を通過している必要があります。
リクエストパス
DELETE /api/v2/ob/clusters/{id}
path:
パラメータ |
種類 |
必須 |
サンプル値 |
説明 |
|---|---|---|---|---|
| id | Long | はい | 1 | 削除するOceanBaseクラスタのID。 |
戻り値
基本データ構造
パラメータ |
種類 |
説明 |
|---|---|---|
| data | Object | 非同期タスク情報。詳細はタスク情報を参照してください。 |
| successful | Boolean | リクエストが成功したかどうかを示します。 |
| timestamp | Datetime | サーバーがリクエストを完了したタイムスタンプ。 |
| duration | Integer | サーバーがリクエストを処理した時間(ミリ秒)。 |
| status | Integer | HTTPステータスコード。 |
| traceId | String | リクエストのTrace ID。問題の調査に使用されます。 |
| server | String | リクエストに応答したアプリケーションサービスのアドレス。 |
例
リクエスト例
DELETE /api/v2/ob/clusters/1
戻り値の例
{
"data": {
"cluster": {
"id": 19,
"name": "terran",
"obClusterId": 25
},
"context": "Context(parallelIdx=-1, stringMap={cluster_name=terran, cluster_id=19, service_type=OB_CLUSTER, former_cluster_status=RUNNING, service_name=terran:25, service_version=2.2.52, ob_cluster_id=25}, listMap={host_ids=[1]})",
"creator": {
"id": 100,
"name": "admin"
},
"id": 107280,
"name": "Delete primary OB cluster",
"startTime": "2021-03-02T10:27:16.449+08:00",
"status": "RUNNING",
"tasks": [
{
"description": "Prepare delete cluster",
"downstreams": [
128767
],
"id": 128764,
"name": "Prepare delete cluster",
"operation": "EXECUTE",
"status": "RUNNING",
"upstreams": [
]
},
{
"description": "Clean observer host",
"downstreams": [
128766
],
"id": 128765,
"name": "Clean observer host",
"operation": "EXECUTE",
"status": "PENDING",
"upstreams": [
128768
]
},
{
"description": "Delete cluster info",
"downstreams": [
128769
],
"id": 128766,
"name": "Delete cluster info",
"operation": "EXECUTE",
"status": "PENDING",
"upstreams": [
128765
]
},
{
"description": "Stop ocp agent service",
"downstreams": [
128768
],
"id": 128767,
"name": "Stop ocp agent service",
"operation": "EXECUTE",
"status": "PENDING",
"upstreams": [
128764
]
},
{
"description": "Wait node",
"downstreams": [
128765
],
"id": 128768,
"name": "Wait node",
"operation": "EXECUTE",
"status": "PENDING",
"upstreams": [
128767
]
},
{
"description": "Unreserve host",
"downstreams": [
],
"id": 128769,
"name": "Unreserve host",
"operation": "EXECUTE",
"status": "PENDING",
"upstreams": [
128766
]
}
]
},
"duration": 83,
"server": "a83ad33525",
"status": 200,
"successful": true,
"timestamp": "2021-03-02T10:27:16.488+08:00",
"traceId": "9b4cf006c83f4b2c"
}