-
Notifications
You must be signed in to change notification settings - Fork 0
/
batch_request.json
48 lines (47 loc) · 1.62 KB
/
batch_request.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{
"batch_details":{
"action_on_failure": "CONTINUE",
"execution_order": "SEQUENTIAL",
"api_request_list": [
{
"operation": "POST",
"path_and_params": "/api/nutanix/v3/vms",
"body": {
"spec": {
"cluster_reference": {
"kind": "cluster",
"uuid": "<cluster UUID>",
"name": "<cluster Name>"
},
"name": "vm_from_batch_1000",
"resources": {}
},
"metadata": {
"kind": "vm"
}
}
},
{
"operation": "POST",
"path_and_params": "/api/nutanix/v3/images",
"body": {
"spec": {
"name": "image_from_batch_1000",
"resources": {
"image_type": "DISK_IMAGE",
"source_uri": "https://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud-1905.qcow2"
},
"description": "Image created via v3 API batch request"
},
"api_version": "3.1.0",
"metadata": {
"kind": "image",
"categories": {},
"name": "image_from_batch_1000"
}
}
}
],
"api_version": "3.0"
}
}