Description
You can call this operation to delete an arbitration service.
Call description
Prerequisites
You have the ARBITRATION:DELETE permission on the arbitration service.
Request path
DELETE /api/v2/arbitration/services/{id}/delete
Request parameters
path:
| Parameter | Type | Required | Example value | Description |
|---|---|---|---|---|
| id | Long | Yes | 4901 | The ID of the arbitration service to be deleted. |
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
DELETE /api/v2/arbitration/services/4192/delete
Sample response
{
"data": {
"creator": "admin",
"executor": "xxx.xxx.xxx.xxx",
"id": 4192,
"name": "Delete arbitration service",
"operation": "EXECUTE",
"prohibitRollback": false,
"startTime": "2024-12-23T20:57:29.858+08:00",
"status": "RUNNING",
"subtasks": [
{
"description": "Prepare delete arbitration service",
"downstreams": [
4850
],
"id": 4851,
"name": "Prepare delete arbitration service",
"nodeType": "JAVA_TASK",
"operation": "EXECUTE",
"parallelIdx": -1,
"prohibitRollback": false,
"prohibitSkip": false,
"runTime": 1,
"seriesId": 1,
"status": "READY",
"taskId": 4192,
"timeout": 60,
"upstreams": []
},
{
"description": "Uninstall arbitration service",
"downstreams": [
4852
],
"id": 4853,
"name": "Uninstall arbitration service",
"nodeType": "JAVA_TASK",
"operation": "EXECUTE",
"parallelIdx": -1,
"prohibitRollback": true,
"prohibitSkip": false,
"runTime": 1,
"seriesId": 0,
"status": "PENDING",
"taskId": 4192,
"timeout": 3600,
"upstreams": [
4850
]
},
{
"description": "Delete arbitration service info",
"downstreams": [],
"id": 4852,
"name": "Delete arbitration service info",
"nodeType": "JAVA_TASK",
"operation": "EXECUTE",
"parallelIdx": -1,
"prohibitRollback": true,
"prohibitSkip": false,
"runTime": 1,
"seriesId": 2,
"status": "PENDING",
"taskId": 4192,
"timeout": 60,
"upstreams": [
4853
]
},
{
"description": "Stop arbitration service",
"downstreams": [
4853
],
"id": 4850,
"name": "Stop arbitration service",
"nodeType": "JAVA_TASK",
"operation": "EXECUTE",
"parallelIdx": -1,
"prohibitRollback": false,
"prohibitSkip": false,
"runTime": 1,
"seriesId": 3,
"status": "PENDING",
"taskId": 4192,
"timeout": 1800,
"upstreams": [
4851
]
}
],
"taskDefinitionId": -1,
"type": "MANUAL"
},
"duration": 46,
"server": "6d952bd732",
"status": 200,
"successful": true,
"timestamp": "2024-12-23T20:57:29.876+08:00",
"traceId": "a7b0c2d1af4d7390"
}