getServerPowerState


SoftLayer_Hardware_Server::getServerPowerState

Retrieves server’s power state

Description

Retrieves the power state for the server. The server’s power status is retrieved from its remote management card. This will return ‘on’ or ‘off’.

Parameters

None

Required Headers

Optional Headers

  • None

Return Values

  • string
curl -g -u $SL_USER:$SL_APIKEY -X GET \
'https://api.softlayer.com/rest/v3.1/SoftLayer_Hardware_Server/{SoftLayer_Hardware_ServerID}/getServerPowerState'