Compute Management/Host Related Interfaces
PUTHost Related InterfacesSince 4.7.0SynchronousAuth Required
Get Host Latest Power Status
Get Host Latest Power Status
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Path Parameters
Request Inputs
Path Parameters
uuidStringRequiredResource UUID, uniquely identifies the resource
Body Fields
gethostpowerstatusObjectRequiredgethostpowerstatus request body object.
methodStringMethod to get host power status
systemTagsListSystem tag
userTagsListUser tag
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.
