getObject


SoftLayer_Network_Security_Scanner_Request::getObject

Retrieve a SoftLayer_Network_Security_Scanner_Request record.

Description

getObject retrieves the SoftLayer_Network_Security_Scanner_Request object whose ID number corresponds to the ID number of the init parameter passed to the SoftLayer_Network_Security_Scanner_Request service. You can only retrieve requests and reports that are assigned to your SoftLayer account.

Parameters

None

Required Headers

Optional Headers

Return Values

Error Handling

  • Throws the error “Unable to find object with id of {id}.” when the object for the supplied hardwareId is not found.
  • Throws the error “Only one vulnerability scan may be started at a time.” when a trying to create a new request before a previous one for the selected hardware item is finished.
  • Throws the error “The selected vulnerability report could not be found.” when the report file could not be located.
curl -g -u $SL_USER:$SL_APIKEY -X GET \
'https://api.softlayer.com/rest/v3.1/SoftLayer_Network_Security_Scanner_Request/{SoftLayer_Network_Security_Scanner_RequestID}/getObject'