Add hardware to a portal user’s hardware access list.
Add hardware to 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 already has access to the hardware you’re attempting to add then addHardwareAccess() 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.
Only the USER_MANAGE permission is required to execute this.
Name | Type | Description |
---|---|---|
hardwareId | int | The identifier of the hardware to add to a user’s hardware access list. |
None
curl -g -u $SL_USER:$SL_APIKEY -X POST -d '{"parameters": [int]}' \
'https://api.softlayer.com/rest/v3.1/SoftLayer_User_Customer_OpenIdConnect/{SoftLayer_User_Customer_OpenIdConnectID}/addHardwareAccess'