How Do I Query the VM List over an Interface on the ServiceCenter Server

【Product�?
ManageOne ServiceCenter

【Version�?
3.X

【Question�?
How do I query the VM list over an interface on the ServiceCenter server?

【Answer�?
Example curl command of querying the VM list:
curl -i -k -X POST 'https://162.162.167.2:543/goku/rest/v1.5/237ad39f47154084b339be69b3b766dd/vms/action?cloud-infra=36' -H "User-Agent:HttpClient" -H "Content-Type:application/json" -H "Accept:application/json" -H "X-Auth-User-ID: 8044e196d6a84e998d71bfbf82426e6d" -H "X-HW-Cloud-Auth-Token: d2NjX2NyeXB0ATQxNDU1MzVGNDM0MjQzOzQyMzg0MzM0NDQ0NTM3MzgzNTQyMzczMTQyNDU0NTMwMzEzNzMwMzEzMzQ1MzUzMDM0NDMzNzMwNDI0MTQzMzU7OzMxMzAzMDMwOzVBRTYwQ0E3QTBDRTQxMTBCREY3QTBENkRCQjIzNjcxO0Q3NzJFRUJCRjhENjBGNjc7" -d'{"list":{"start":"","limit":11,"detail":0,"notTagsAny":"__type_baremetal","status":[""],"detailLevel":1,"availableZoneId":"","condition":""}}''
The following parameters may vary depending on the site planning:
ad39f47154084b339be69b3b766dd: specifies the ID of a VDC.
X-Auth-User-ID: specifies the ID of a user account.
The long string after X-HW-Cloud-Auth-Token specifies the token ID.

----End

Scroll to top