Skip to content

Instantly share code, notes, and snippets.

@gowatana
Created January 10, 2018 18:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gowatana/e5b30dd6d6a215b811750e76619f56f5 to your computer and use it in GitHub Desktop.
Save gowatana/e5b30dd6d6a215b811750e76619f56f5 to your computer and use it in GitHub Desktop.
{
"api_version": "3.0",
"metadata": {
"kind": "vm"
},
"spec": {
"cluster_reference": {
"kind": "cluster",
"uuid": "00055511-31e5-05f5-0443-0050568aade6"
},
"name": "api-test-vm01",
"resources": {
"num_sockets": 1,
"num_vcpus_per_socket": 1,
"memory_size_mib": 1024,
"nic_list": [
{
"subnet_reference": {
"kind": "subnet",
"uuid": "83524fc1-9381-495e-b3b0-0a06d922d2e9"
}
}
],
"disk_list": [
{
"device_properties": {
"device_type": "CDROM",
"disk_address": {
"adapter_type": "IDE",
"device_index": 0
}
}
},
{
"device_properties": {
"device_type": "DISK",
"disk_address": {
"adapter_type": "SCSI",
"device_index": 0
}
},
"disk_size_mib": 16384
}
],
"power_state": "ON"
},
"description": "Nutanix APIv3 create VM sample."
}
}
@gowatana
Copy link
Author

下記の投稿むけ。

Nutanix REST API v3 で VM 作成してみる。
http://blog.ntnx.jp/entry/2018/01/13/000015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment