deleteObject


SoftLayer_User_Permission_Role::deleteObject

Delete a new customer permission role

Description

Customer users can only delete permission roles with systemFlag set to false. The SYSTEM type is reserved for internal use. The user who is creating the permission role must have the permission to manage users.

Parameters

None

Required Headers

Optional Headers

  • None

Return Values

  • boolean

Error Handling

  • Throws the exception “You cannot delete role: Permission Denied.” if a customer user attempts to delete a permission role without the proper permission.
  • Throws the exception “You cannot delete system role” if a customer user attempts to delete a SYSTEM permission role.
curl -g -u $SL_USER:$SL_APIKEY -X GET \
'https://api.softlayer.com/rest/v3.1/SoftLayer_User_Permission_Role/{SoftLayer_User_Permission_RoleID}/deleteObject'