addBulkVirtualGuestAccess


SoftLayer_User_Customer_OpenIdConnect::addBulkVirtualGuestAccess

Add multiple CloudLayer Computing Instances to a portal user’s access list.

Overview

Add multiple CloudLayer Computing Instances to a portal user’s access list. A user’s CloudLayer Computing Instance access list controls which of an account’s CloudLayer Computing Instance objects a user has access to in the SoftLayer customer portal and API. CloudLayer Computing Instances do not exist in the SoftLayer portal and returns “not found” exceptions in the API if the user doesn’t have access to it. addBulkVirtualGuestAccess() does not attempt to add CloudLayer Computing Instance access if the given user already has access to that CloudLayer Computing Instance object.

Users can assign CloudLayer Computing Instance access to their child users, but not to themselves. An account’s master has access to all CloudLayer Computing Instances on their customer account and can set CloudLayer Computing Instance access for any of the other users on their account.


Parameters

Name Type Description
virtualGuestIds array of integers The internal identifiers of the CloudLayer Computing Instances you wish to add access to.

Required Headers

  • authenticate
  • SoftLayer_User_Customer_OpenIdConnectInitParameters

Return Values

  • boolean

Associated Methods

Error Handling

  • SoftLayer_Exception_PermissionDenied

Throw the exception “You may not grant or deny Master User device access.” when trying to add virtual guest access to a master user.

  • SoftLayer_Exception_PermissionDenied

Throw the exception “You may not grant or deny yourself device access.” when trying to add virtual guest access to the user making the call to the SoftLayer API.

  • SoftLayer_Exception_PermissionDenied

Throw the exception “You may not grant or deny device access to other users.” when trying to add virtual guest access the user making the API call is not their account’s master user or does not have the “USER_MANAGE” portal permission.

  • SoftLayer_Exception_Public

Throw the exception “Please specify a valid CloudLayer Computing Instance id.” if the given CloudLayer Computing Instance id is not a valid id.

  • SoftLayer_Exception_Public

Throw the exception “Unable to add user CloudLayer Computing Instance access.” if the API was unable to assign CloudLayer Computing Instance access to the given portal user.