Resource Center/Elastic Bare Metal Management(Plus)
PUTElastic Bare Metal Management(Plus)Since 4.0.0SynchronousAuth Required
ChangeBareMetal2GatewayState
ChangeBareMetal2GatewayState
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 gateway.
Body Fields
changebaremetal2gatewaystateObjectRequiredchangebaremetal2gatewaystate 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/gateways/{uuid}/actions
/zstack/v1/baremetal2/gateways/{uuid}/actions
Request Example
curl -X PUT 'http://{host}/zstack/v1/baremetal2/gateways/{uuid}/actions' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"changebaremetal2gatewaystate":{"stateEvent":"<stateEvent>"},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "username": "username", "password": "password", "sshPort": 22.0, "zoneUuid": "f7ee69031623443a82c3d1ad14e17216", "name": "BM_GATEWAY", "uuid": "3827d83852794e138019088f4e9e2371", "description": "This is a bare metal gateway.", "managementIp": "192.168.0.10", "state": "Enabled", "status": "Connected", "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.
