Created
January 10, 2018 18:05
-
-
Save gowatana/e5b30dd6d6a215b811750e76619f56f5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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." | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
下記の投稿むけ。
Nutanix REST API v3 で VM 作成してみる。
http://blog.ntnx.jp/entry/2018/01/13/000015