Remove multiple hardware from a portal user’s hardware access list.
Remove multiple hardware from a portal user’s hardware access list. A user’s hardware access list controls which of an account’s hardware objects a user has access to in the SoftLayer customer portal and API. Hardware does not exist in the SoftLayer portal and returns “not found” exceptions in the API if the user doesn’t have access to it. If a user does not has access to the hardware you’re attempting to remove then removeBulkHardwareAccess() returns true.
Users can assign hardware access to their child users, but not to themselves. An account’s master has access to all hardware on their customer account and can set hardware access for any of the other users on their account.
If the user has full hardware access, then it will provide access to “ALL but passed in” hardware ids.
|hardwareIds||array of integers||Hardware IDs|
Throw the exception “You may not grant or deny Master User device access.” when trying to remove hardware access to a master user.
Throw the exception “You may not grant or deny yourself device access.” when trying to remove hardware access to the user making the call to the SoftLayer API.
Throw the exception “You may not grant or deny device access to other users.” when trying to remove hardware access the user making the API call is not their account’s master user or does not have the “USER_MANAGE” portal permission.
Throw the exception “Please specify a valid hardware id.” if the given hardware id is not a valid hardware id.
Throw the exception “Unable to remove user hardware access.” if the API was unable to remove hardware access from the given portal user.