How Do I Create ServiceCenter Cloud Hard Disks over an Interface Called by Running the curl Command

【Product�?
ManageOne ServiceCenter

【Version�?
3.X

【Question�?
How do I create ServiceCenter cloud hard disks over an interface called by running the curl command?

【Answer�?
Example of creating cloud hard disks over an interface:
curl -i -k -X POST 'https://192.168.51.14:543/goku/rest/v1.5/8c428de14e8a473c81651359f8780de5/orders' -H "User-Agent:HttpClient" -H "Content-Type:application/json" -H "Accept:application/json" -H "X-Auth-User-ID:3a526aa3134348ba9b8b00613e165eed" -H "X-HW-Cloud-Auth-Token:d2NjX2NyeXB0ATQxNDU1MzVGNDM0MjQzOzM3MzYzMzQ1NDYzMjMxNDY0MjM1MzYzMTQxMzU0MzQ1MzYzMzM0MzczNTQ2NDEzMjM4MzgzNzQ2Mzk0MTMwNDM7OzMxMzAzMDMwOzE1OTg3QzNDNTRDNkYwQkY4QjE3OTVGNDBDREZDNkFGOzQzRTRDQjFENzlGRjI4QkU7" -d '{"apply":{"serviceOfferingId":"default-service-offering-volume","params":"{\"cloudInfraId\":\"37\",\"availableZoneId\":\"az1.dc1\",\"vmId\":null,\"vmName\":\"\",\"count\":\"1\",\"size\":\"20\",\"name\":\"volume-efa9\",\"type\":\"normal\",\"mediaType\":\"fusionstorage\",\"srcResSize\":1,\"srcRes\":{\"srcResType\":null,\"srcResId\":null,\"srcResName\":null},\"volumeId\":null,\"snapshotId\":null}","tenancy":"0","isValid":"false"},"comments":""}'

[8c428de14e8a473c81651359f8780de5 indicates the VDC ID. serviceOfferingId (eg:default-service-offering-volume) indicates the service ID. name (eg:volume-efa9) indicates the cloud hard disk name.]

----End

Scroll to top