Skip to content

Instantly share code, notes, and snippets.

@kriss9
Created August 19, 2017 21:09
Show Gist options
  • Save kriss9/8534033c9ed2179bea807816312f680c to your computer and use it in GitHub Desktop.
Save kriss9/8534033c9ed2179bea807816312f680c to your computer and use it in GitHub Desktop.
Successful VM Creation via VMADM API
[root@headnode (dc1) /zones/data]# curl -H "Content-Type: application/json" -X POST -d @test.json 10.99.99.27:80/vms
{"vm_uuid":"4680560b-3deb-ec6f-a00d-f99a93f58e04","job_uuid":"48ea8f9c-673f-4825-8c7a-82e0d812ab76"}
[root@headnode (dc1) /zones/data]# cat test.json
{
"owner_uuid": "930896af-bf8c-48d4-885c-6573a94b1853",
"image_uuid": "fd2cc906-8938-11e3-beab-4359c665ac99",
"brand": "joyent",
"ram": 128,
"networks": ["dcaad9b7-0c1d-49d6-84d9-e65ad202d6ef"],
"billing_id":"4462b657-1938-cf89-8ef9-8cf6e6716213"
}
#example owner_uuid, billing_id found by performing GET request (curl -s 10.99.99.27:80/vms | json)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment