Search code examples
ibm-cloud-infrastructure

Get list of users who have access to a hardware device


I am using

SoftLayer_Account::getHardware

to get list of hardware in my account. How can I get list of users who have access to this hardware?

I dont want to go round about to get list of hardware a user has access to using

SoftLayer_User_Customer::getHardware

Solution

  • The following can help you SoftLayer_Hardware_Server::getUsers:

    URL:
    https://[username]:[apikey]@api.softlayer.com/rest/v3/SoftLayer_Hardware_Server/[hardware_id]/getUsers
    
    Method: GET