How Do I Create a ServiceCenter VM over an Interface Called by Running the curl Command

【Product�?
ManageOne ServiceCenter

【Version�?
3.X

【Question�?
How do I create a ServiceCenter VM over an interface called by running the curl command?

【Answer�?
Example of creating a VM over an interface:
curl -i -k -X POST 'https://162.162.226.188:543/goku/rest/v1.5/1f4ce7b64fcc4621bb77982139723587/orders' -H "User-Agent:HttpClient" -H "Content-Type:application/json" -H "Accept:application/json" -H "X-Auth-User-ID:679e6b0a99564352b6622dd965ac2d18" -H "X-HW-Cloud-Auth-Token:d2NjX2NyeXB0ATQxNDU1MzVGNDM0MjQzOzMzNDM0MzM1NDUzOTQzNDY0NjQ1MzAzODQ1NDMzNDM5NDY0MzM3MzkzMTM4MzkzODM0NDM0MjMzMzkzNzM4NDE7OzMxMzAzMDMwOzhDQUMzODM3MjAzQTg2NkE0NjkzRjM3OTk4Mjc3NTI2OzQxODUyQTNEQ0VFRTdDQ0Y7" -d '{"apply":{"serviceOfferingId":"default-service-offering-corevm","params":"{\"cloudInfraId\":\"38\",\"availableZoneId\":\"az1.dc1\",\"templateId\":\"62c3b355-8adc-42c4-b42e-05100c9b3681\",\"templateInfo\":{\"vmtName\":\"image_local_oc\",\"osType\":\"Linux\",\"osVersion\":\"Novell SUSE Linux Enterprise Server 11 SP3 64bit\"},\"isSupportDr\":false,\"vpcId\":\"7a1f4af8-71b9-43e5-a753-ca2f75a64515\",\"vpcName\":\"vpcL1\",\"vmSpec\":{\"id\":\"a922fdc0-3d69-4887-b0f5-4dce2c9e3bfb\",\"name\":\"flavor_local_oc\",\"cpu\":{\"count\":16},\"memory\":{\"count\":32768},\"diskTotalSize\":1500,\"userVols\":[],\"nics\":[{\"networkType\":\"vpcNetwork\",\"$$hashKey\":\"object:1064\",\"networkID\":\"fd8b8fdd-4a55-42f4-9e5b-9f1b383deeec\",\"networkViewName\":\"netL1 (DHCP allocation / 13.13.13.0 / VXLAN ID: 9988)\",\"ipv4\":\"\",\"ipv6\":\"\",\"vpcNetworkType\":\"inner\",\"portTypeId\":\"normal\",\"portType\":\"normal\",\"portTypeName\":\"Common software switch\",\"Qos\":{},\"qosId\":\"\"}],\"isStartFromVolume\":false,\"slaLabels\":[]},\"vmUniqueInfo\":[{\"customNic\":[{}]}],\"businessTag\":{\"id\":\"\",\"name\":\"\"},\"count\":1,\"fspVersion\":\"6.0\",\"numaOpts\":0,\"name\":\"ygq001\",\"vmAttribute\":{\"serverGroupId\":\"\",\"serverGroupName\":\"\",\"serverGroupPolicy\":\"\"}}","tenancy":"0","isValid":"false"},"comments":""}'

[count indicates the number of VMs to be created. templateId indicates the VM template ID. isSupportDr indicates whether to support DR. vpcId indicates the VPC ID. vpcName indicates the VPC name. networkID indicates the network ID. mediaType indicates the storage SLA.]

----End

Scroll to top