Document navigation

CleanUpBareMetal2Bonding

API Request

URLs

PUT /v1/baremetal2/chassis/{chassisUuid}/actions

Headers

Authorization: OAuth the-session-uuid

Body

{
  "cleanUpBareMetal2Bonding": {},
  "systemTags": [],
  "userTags": []
}

In the preceding sample, both systemTags and userTags are optional. These two fields can be included in the body structure.

Curl Samples

curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X PUT -d '{"cleanUpBareMetal2Bonding":{}}' http://localhost:8080/zstack/v1/baremetal2/chassis/696b73a0a9d03df58131f56f00bf4b4d/actions

Request Parameters

Name Type Location Description Valid Value Starting Version
chassisUuid String body (contained in the params structure) The chassis UUID. 4.4.24
systemTags List body Optional. The system tags. 4.4.24
userTags List body Optional. The user tags. 4.4.24

API Response

Sample Response

{
    "error": {
        "code": "SYS.1001",
        "description": "A message or a operation timeout",
        "details": "Create VM on KVM timeout after 300s"
    }
}

SDK Sample

Java SDK

CleanUpBareMetal2BondingAction action = new CleanUpBareMetal2BondingAction();
action.chassisUuid = "696b73a0a9d03df58131f56f00bf4b4d";
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
CleanUpBareMetal2BondingAction.Result res = action.call();

Python SDK

action = CleanUpBareMetal2BondingAction()
action.chassisUuid = "696b73a0a9d03df58131f56f00bf4b4d"
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
res = action.call()