Delete an OBProxy cluster

2023-08-15 02:30:55  Updated

Description

You can call this operation to delete an OBProxy cluster.

Call description

Prerequisite

You have passed the authentication for the OCP application service.

Request path

DELETE /api/v2/obproxy/clusters/{id}

Request parameters

Parameter Type Required Example value Description
id Long Yes 1 The ID of the OBProxy cluster.

Response parameters

Basic data structure

Parameter Type Description
data Object The information about the asynchronous task. For more information, seeTask information.
successful Boolean Indicates whether the request was successful.
timestamp Datetime The timestamp when the server completed the request.
duration Integer The time taken by the server to process the request, in milliseconds.
status Integer An 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/obproxy/clusters/27

Sample response

{
        "data": {
                "context": {
                        "listMap": {},
                        "parallel": false,
                        "parallelIdx": -1,
                        "stringMap": {
                                "prohibit_rollback": "false"
                        }
                },
                "creator": "admin",
                "executor": "192.168.0.1",
                "id": 31440,
                "name": "Offline obproxy",
                "operation": "EXECUTE",
                "startTime": "2021-09-03T15:13:22.655+08:00",
                "status": "RUNNING",
                "subtasks": [{
                        "className": "com.alipay.ocp.service.task.business.obproxy.FinishTask",
                        "description": "Finish node",
                        "downstreams": [],
                        "id": 33148,
                        "name": "Finish node",
                        "nodeType": "JAVA_TASK",
                        "operation": "EXECUTE",
                        "parallelIdx": -1,
                        "prohibitRollback": false,
                        "runTime": 1,
                        "seriesId": 1,
                        "status": "PENDING",
                        "timeout": 0,
                        "upstreams": [33147]
                }, {
                        "className": "com.alipay.ocp.service.task.business.StartNode",
                        "description": "Start node",
                        "downstreams": [33148],
                        "id": 33147,
                        "name": "Start node",
                        "nodeType": "JAVA_TASK",
                        "operation": "EXECUTE",
                        "parallelIdx": -1,
                        "prohibitRollback": false,
                        "runTime": 1,
                        "seriesId": 0,
                        "status": "READY",
                        "timeout": 30,
                        "upstreams": []
                }],
                "taskDefinitionId": -1,
                "type": "MANUAL"
        },
        "duration": 46,
        "server": "192.168.0.1",
        "status": 200,
        "successful": true,
        "timestamp": "2021-09-03T15:13:22.679+08:00",
        "traceId": "54e4e962c95d4e3e"
}

Contact Us