unlinkRole


SoftLayer_User_Permission_Group::unlinkRole

Unlinks a permission role from the group.

Description

Removes a link from SoftLayer_User_Permission_Role object to the group.

Parameters

Name Type Description
role SoftLayer_User_Permission_Role Permission Role to be unlinked.

Required Headers

Optional Headers

  • None

Return Values

  • void

Error Handling

  • Throws the exception “Can’t unlink role and group: Permission Denied.” if a customer user attempts this request without the proper permission.
  • Throws the exception “Invalid role” if the permission role does not exist.
curl -g -u $SL_USER:$SL_APIKEY -X POST -d '{"parameters": [SoftLayer_User_Permission_Role]}' \
'https://api.softlayer.com/rest/v3.1/SoftLayer_User_Permission_Group/{SoftLayer_User_Permission_GroupID}/unlinkRole'