I want to get the list of VMs created by a specific user. Does SoftLayer provide any API for this purpose?
Asked
Active
Viewed 56 times
1 Answers
0
You can use this request for retrieving the list of virtual guests created by a user’s username:
https://$username:$apiKey@api.softlayer.com/rest/v3/SoftLayer_Account/getVirtualGuests.json?objectMask=mask[billingItem[orderItem[order[userRecord[username]]]]]&objectFilter={"virtualGuests":{"billingItem":{"orderItem":{"order":{"userRecord":{"username":{"operation":"$someUsername"}}}}}}}
Method: GET
Note: Replace $username, $apiKey and $someUsername with your data
Additional helpful links:
http://sldn.softlayer.com/article/Object-Filters
https://sldn.softlayer.com/article/object-masks
https://softlayer.github.io/ruby/determining_device_owners/
Here's also a great answer related to your question that's got remarkable information:

Community
- 1
- 1

Pedro David Fuentes Antezana
- 537
- 1
- 3
- 5