Description
You can call this operation to restart an arbitration service.
Call description
Prerequisites
You have the ARBITRATION:UPDATE permission on the arbitration service.
Request path
POST /api/v2/arbitration/services/{id}/restart
Request parameters
path:
| Parameter | Type | Required | Example value | Description |
|---|---|---|---|---|
| id | Long | Yes | 4901 | The ID of the arbitration service to be restarted. |
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/arbitration/services/20838/restart
Sample response
{
"data": {
"creator": "admin",
"executor": "xxx.xxx.xxx.xxx",
"id": 20839,
"name": "Restart arbitration service",
"operation": "EXECUTE",
"prohibitRollback": false,
"startTime": "2025-01-21T10:56:42.415+08:00",
"status": "RUNNING",
"subtasks": [
{
"description": "Update arbitration service status",
"downstreams": [],
"id": 26291,
"name": "Update arbitration service status",
"nodeType": "JAVA_TASK",
"operation": "EXECUTE",
"parallelIdx": -1,
"prohibitRollback": false,
"prohibitSkip": false,
"runTime": 1,
"seriesId": 0,
"status": "PENDING",
"taskId": 20839,
"timeout": 60,
"upstreams": [
26292
]
},
{
"description": "Start arbitration service",
"downstreams": [
26292
],
"id": 26290,
"name": "Start arbitration service",
"nodeType": "JAVA_TASK",
"operation": "EXECUTE",
"parallelIdx": -1,
"prohibitRollback": false,
"prohibitSkip": false,
"runTime": 1,
"seriesId": 3,
"status": "PENDING",
"taskId": 20839,
"timeout": 1800,
"upstreams": [
26293
]
},
{
"description": "Clean arbitration status monitor records",
"downstreams": [
26291
],
"id": 26292,
"name": "Clean arbitration status monitor records",
"nodeType": "JAVA_TASK",
"operation": "EXECUTE",
"parallelIdx": -1,
"prohibitRollback": false,
"prohibitSkip": false,
"runTime": 1,
"seriesId": 2,
"status": "PENDING",
"taskId": 20839,
"timeout": 120,
"upstreams": [
26290
]
},
{
"description": "Stop arbitration service",
"downstreams": [
26290
],
"id": 26293,
"name": "Stop arbitration service",
"nodeType": "JAVA_TASK",
"operation": "EXECUTE",
"parallelIdx": -1,
"prohibitRollback": false,
"prohibitSkip": false,
"runTime": 1,
"seriesId": 1,
"status": "PENDING",
"taskId": 20839,
"timeout": 1800,
"upstreams": [
26289
]
},
{
"description": "Prepare restart arbitration service",
"downstreams": [
26293
],
"id": 26289,
"name": "Prepare restart arbitration service",
"nodeType": "JAVA_TASK",
"operation": "EXECUTE",
"parallelIdx": -1,
"prohibitRollback": false,
"prohibitSkip": false,
"runTime": 1,
"seriesId": 4,
"status": "READY",
"taskId": 20839,
"timeout": 60,
"upstreams": []
}
],
"taskDefinitionId": -1,
"type": "MANUAL"
},
"duration": 30,
"server": "6d952bd732",
"status": 200,
"successful": true,
"timestamp": "2025-01-21T10:56:42.427+08:00",
"traceId": "1c63b130f4dc5098"
}