Stop an arbitration service

2025-03-26 07:47:21  Updated

Description

You can call this operation to stop an arbitration service.

Call description

Prerequisites

You have the ARBITRATION:UPDATE permission on the arbitration service.

Request path

POST /api/v2/arbitration/services/{id}/stop

Request parameters

path:

Parameter Type Required Example value Description
id Long Yes 4901 The ID of the arbitration service to be stopped.

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/stop

Sample response

{
    "data": {
        "creator": "admin",
        "executor": "xxx.xxx.xxx.xxx",
        "id": 20836,
        "name": "Stop arbitration service",
        "operation": "EXECUTE",
        "prohibitRollback": false,
        "startTime": "2025-01-21T10:54:13.283+08:00",
        "status": "RUNNING",
        "subtasks": [
            {
                "description": "Stop arbitration service",
                "downstreams": [
                    26282
                ],
                "id": 26284,
                "name": "Stop arbitration service",
                "nodeType": "JAVA_TASK",
                "operation": "EXECUTE",
                "parallelIdx": -1,
                "prohibitRollback": false,
                "prohibitSkip": false,
                "runTime": 1,
                "seriesId": 1,
                "status": "PENDING",
                "taskId": 20836,
                "timeout": 1800,
                "upstreams": [
                    26283
                ]
            },
            {
                "description": "Prepare stop arbitration service",
                "downstreams": [
                    26284
                ],
                "id": 26283,
                "name": "Prepare stop arbitration service",
                "nodeType": "JAVA_TASK",
                "operation": "EXECUTE",
                "parallelIdx": -1,
                "prohibitRollback": false,
                "prohibitSkip": false,
                "runTime": 1,
                "seriesId": 2,
                "status": "READY",
                "taskId": 20836,
                "timeout": 60,
                "upstreams": []
            },
            {
                "description": "Update arbitration service status",
                "downstreams": [],
                "id": 26282,
                "name": "Update arbitration service status",
                "nodeType": "JAVA_TASK",
                "operation": "EXECUTE",
                "parallelIdx": -1,
                "prohibitRollback": false,
                "prohibitSkip": false,
                "runTime": 1,
                "seriesId": 0,
                "status": "PENDING",
                "taskId": 20836,
                "timeout": 60,
                "upstreams": [
                    26284
                ]
            }
        ],
        "taskDefinitionId": -1,
        "type": "MANUAL"
    },
    "duration": 51,
    "server": "6d952bd732",
    "status": 200,
    "successful": true,
    "timestamp": "2025-01-21T10:54:13.304+08:00",
    "traceId": "bf5b083c9138e3ce"
}

Contact Us