Resource Center/Elastic Bare Metal Management(Plus)
PUTElastic Bare Metal Management(Plus)Since 4.0.0SynchronousAuth Required
ChangeBareMetal2ChassisState
ChangeBareMetal2ChassisState
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Path Parameters
Request Inputs
Path Parameters
uuidStringRequiredThe UUID of the bare metal chassis.
Body Fields
changebaremetal2chassisstateObjectRequiredchangebaremetal2chassisstate request body object.
stateEventStringRequiredThe event that changes the state of the chassis.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
PUT/zstack/v1/baremetal2/chassis/{uuid}/actions
/zstack/v1/baremetal2/chassis/{uuid}/actions
Request Example
curl -X PUT 'http://{host}/zstack/v1/baremetal2/chassis/{uuid}/actions' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"changebaremetal2chassisstate":{"stateEvent":"<stateEvent>"},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "uuid": "bba32ab86c2144f28e37dc5a08b851f1", "name": "BM_CHASSIS", "description": "This is a bare metal chassis.", "zoneUuid": "0c20255099d7481f91780b0d2e4efb0c", "clusterUuid": "36dc10452949470385c15a1b24e5a5b9", "chassisOfferingUuid": "5e58278750c14cbf86b5447ddd848fea", "type": "IPMI", "state": "Enabled", "status": "Available", "powerStatus": "POWER_ON", "createDate": "Nov 14, 2017 10:20:57 PM", "lastOpDate": "Nov 14, 2017 10:20:57 PM" } }Change History
This API has no change history records yet.
