Description
You can call this operation to dissociate an arbitration service from multiple OceanBase clusters.
Call description
Prerequisites
- You have the ARBITRATION:UPDATE permission on the target arbitration service.
- You have the CLUSTER:UPDATE permission on all clusters specified in the
clusterIdListparameter.
Request path
POST /api/v2/ob/clusters/batchRemoveArbitration
Request parameters
body:
| Parameter | Type | Required | Example value | Description |
|---|---|---|---|---|
| arbitrationServiceId | Long | Yes | 25 | The ID of the target arbitration service. |
| clusterIdList | List<Long> | Yes | 83,84 | The list of IDs of the OceanBase clusters to be dissociated from the arbitration service. Separate the cluster IDs with commas (,). |
Response parameters
Basic data structure
| Parameter | Type | Description |
|---|---|---|
| data | Object | The information about the asynchronous task. For more information, see Task return structure. |
| 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. |
Examples
Sample request
POST /api/v2/ob/clusters/batchRemoveArbitration
{
"arbitrationServiceId":25,
"clusterIdList":[83,84]
}
Sample response
{
"data": {
"creator": "admin",
"executor": "xxx.xxx.xxx.xxx",
"id": 29775,
"name": "Batch remove arbitration service",
"operation": "EXECUTE",
"prohibitRollback": false,
"startTime": "2025-01-22T18:15:31.744+08:00",
"status": "RUNNING",
"subtasks": [
{
"description": "Update OB cluster status",
"downstreams": [],
"id": 40619,
"name": "Update OB cluster status",
"nodeType": "JAVA_TASK",
"operation": "EXECUTE",
"parallelIdx": 1,
"prohibitRollback": false,
"prohibitSkip": false,
"runTime": 1,
"seriesId": 2,
"status": "PENDING",
"taskId": 29775,
"timeout": 30,
"upstreams": [
40616
]
},
{
"description": "Wait node",
"downstreams": [
40614,
40619
],
"id": 40616,
"name": "Wait node",
"nodeType": "JAVA_TASK",
"operation": "EXECUTE",
"parallelIdx": -1,
"prohibitRollback": false,
"prohibitSkip": false,
"runTime": 1,
"seriesId": 0,
"status": "PENDING",
"taskId": 29775,
"timeout": 30,
"upstreams": [
40615,
40620
]
},
{
"description": "Prepare to operate arbitration services",
"downstreams": [
40621
],
"id": 40617,
"name": "Prepare to operate arbitration services",
"nodeType": "JAVA_TASK",
"operation": "EXECUTE",
"parallelIdx": 1,
"prohibitRollback": false,
"prohibitSkip": false,
"runTime": 1,
"seriesId": 4,
"status": "READY",
"taskId": 29775,
"timeout": 60,
"upstreams": []
},
{
"description": "Wait node",
"downstreams": [
40615,
40620
],
"id": 40613,
"name": "Wait node",
"nodeType": "JAVA_TASK",
"operation": "EXECUTE",
"parallelIdx": -1,
"prohibitRollback": false,
"prohibitSkip": false,
"runTime": 1,
"seriesId": 10,
"status": "PENDING",
"taskId": 29775,
"timeout": 30,
"upstreams": [
40612,
40618
]
},
{
"description": "Disable tenant arbitration service",
"downstreams": [
40613
],
"id": 40618,
"name": "Disable tenant arbitration service",
"nodeType": "JAVA_TASK",
"operation": "EXECUTE",
"parallelIdx": 1,
"prohibitRollback": false,
"prohibitSkip": false,
"runTime": 1,
"seriesId": 9,
"status": "PENDING",
"taskId": 29775,
"timeout": 1800,
"upstreams": [
40621
]
},
{
"description": "Operate ob arbitration service",
"downstreams": [
40616
],
"id": 40620,
"name": "Operate ob arbitration service",
"nodeType": "JAVA_TASK",
"operation": "EXECUTE",
"parallelIdx": 0,
"prohibitRollback": false,
"prohibitSkip": false,
"runTime": 1,
"seriesId": 5,
"status": "PENDING",
"taskId": 29775,
"timeout": 1800,
"upstreams": [
40613
]
},
{
"description": "Operate ob arbitration service",
"downstreams": [
40616
],
"id": 40615,
"name": "Operate ob arbitration service",
"nodeType": "JAVA_TASK",
"operation": "EXECUTE",
"parallelIdx": 1,
"prohibitRollback": false,
"prohibitSkip": false,
"runTime": 1,
"seriesId": 6,
"status": "PENDING",
"taskId": 29775,
"timeout": 1800,
"upstreams": [
40613
]
},
{
"description": "Prepare to operate arbitration services",
"downstreams": [
40621
],
"id": 40611,
"name": "Prepare to operate arbitration services",
"nodeType": "JAVA_TASK",
"operation": "EXECUTE",
"parallelIdx": 0,
"prohibitRollback": false,
"prohibitSkip": false,
"runTime": 1,
"seriesId": 3,
"status": "READY",
"taskId": 29775,
"timeout": 60,
"upstreams": []
},
{
"description": "Update OB cluster status",
"downstreams": [],
"id": 40614,
"name": "Update OB cluster status",
"nodeType": "JAVA_TASK",
"operation": "EXECUTE",
"parallelIdx": 0,
"prohibitRollback": false,
"prohibitSkip": false,
"runTime": 1,
"seriesId": 1,
"status": "PENDING",
"taskId": 29775,
"timeout": 30,
"upstreams": [
40616
]
},
{
"description": "Disable tenant arbitration service",
"downstreams": [
40613
],
"id": 40612,
"name": "Disable tenant arbitration service",
"nodeType": "JAVA_TASK",
"operation": "EXECUTE",
"parallelIdx": 0,
"prohibitRollback": false,
"prohibitSkip": false,
"runTime": 1,
"seriesId": 8,
"status": "PENDING",
"taskId": 29775,
"timeout": 1800,
"upstreams": [
40621
]
},
{
"description": "Wait node",
"downstreams": [
40612,
40618
],
"id": 40621,
"name": "Wait node",
"nodeType": "JAVA_TASK",
"operation": "EXECUTE",
"parallelIdx": -1,
"prohibitRollback": false,
"prohibitSkip": false,
"runTime": 1,
"seriesId": 7,
"status": "PENDING",
"taskId": 29775,
"timeout": 30,
"upstreams": [
40611,
40617
]
}
],
"taskDefinitionId": -1,
"type": "MANUAL"
},
"duration": 51,
"server": "5e11a5f435",
"status": 200,
"successful": true,
"timestamp": "2025-01-22T18:15:31.771+08:00",
"traceId": "331ffa5d613bbb20"
}