removeResourceObject


SoftLayer_User_Permission_Group::removeResourceObject

Unlinks a hardware, virtual guest, or dedicated host object on the

Description

Unlinks a SoftLayer_Hardware_Server, SoftLayer_Virtual_Guest, or SoftLayer_Virtual_DedicatedHost object from the group.

Parameters

Name Type Description
resourceObject SoftLayer_Entity The resource record to remove from this group (typically hardware, virtual guest, or dedicated host). See SoftLayer_User_Permission_Resource_Type for the valid entities for this request.
resourceTypeKeyName string An optional keyname specifying the type of resource provided. See SoftLayer_User_Permission_Resource_Type for the valid entities for this request.

Required Headers

Optional Headers

  • None

Return Values

  • boolean

Error Handling

  • Throws the exception “Can’t remove resource object to group: Permission Denied.” if a customer user attempts this request without the proper permission.
  • Throws the exception “A permission resource type does not exist for” if one of the object is not one of the valid resource types.

Associated Methods

curl -g -u $SL_USER:$SL_APIKEY -X POST -d '{"parameters": [SoftLayer_Entity, string]}' \
'https://api.softlayer.com/rest/v3.1/SoftLayer_User_Permission_Group/{SoftLayer_User_Permission_GroupID}/removeResourceObject'