getServerPowerState


SoftLayer_Hardware::getServerPowerState

Retrieves a server’s power state.

Description

The ‘‘‘getPowerState’’’ method retrieves the power state for the selected server. The server’s power status is retrieved from its remote management card. This method returns “on”, for a server that has been powered on, or “off” for servers powered off.

Parameters

None

Required Headers

Optional Headers

  • None

Return Values

  • string

Error Handling

  • “Method has not been implemented for this object type.”
curl -g -u $SL_USER:$SL_APIKEY -X GET \
'https://api.softlayer.com/rest/v3.1/SoftLayer_Hardware/{SoftLayer_HardwareID}/getServerPowerState'