Resource Center/Hardware/Host Operations
PUTHost OperationsSince 4.7.0SynchronousAuth Required
GetHostPowerStatus
GetHostPowerStatus
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 resource UUID.
Body Fields
gethostpowerstatusObjectRequiredgethostpowerstatus request body object.
methodStringOptional. The method to get the host power status.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
PUT/zstack/v1/hosts/power/{uuid}/actions
/zstack/v1/hosts/power/{uuid}/actions
Request Example
curl -X PUT 'http://{host}/zstack/v1/hosts/power/{uuid}/actions' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"gethostpowerstatus":{"method":"<method>"},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "ipmiAddress": "192.168.0.1", "ipmiUsername": "admin", "ipmiPort": 623, "ipmiPassword": "password", "ipmiPowerStatus": "POWER_ON" } }Change History
This API has no change history records yet.
