File tree Expand file tree Collapse file tree 1 file changed +110
-0
lines changed Expand file tree Collapse file tree 1 file changed +110
-0
lines changed Original file line number Diff line number Diff line change @@ -136,3 +136,113 @@ Delete backing is optional and defaults to true.
136
136
137
137
You can retrieve the disk_name from the disk's ` filename ` property
138
138
Decreasing a disk's size is not supported
139
+
140
+ ### Reconfigure a VM - Add a Network Adapter
141
+
142
+ #### Request:
143
+
144
+ POST /api/requests
145
+
146
+ ``` json
147
+ {
148
+ "action" : " create" ,
149
+ "options" : {
150
+ "request_type" : " vm_reconfigure" ,
151
+ "src_ids" : [" 2" ],
152
+ "network_adapter_add" : [
153
+ {
154
+ "network" : " VM Network"
155
+ }
156
+ ]
157
+ }
158
+ }
159
+ ```
160
+
161
+ ### Reconfigure a VM - Remove a Network Adapter
162
+
163
+ #### Request:
164
+
165
+ POST /api/requests
166
+
167
+ ``` json
168
+ {
169
+ "action" : " create" ,
170
+ "options" : {
171
+ "request_type" : " vm_reconfigure" ,
172
+ "src_ids" : [" 2" ],
173
+ "network_adapter_remove" : [
174
+ {
175
+ "network" : {
176
+ "name" : " Network Adapter 1"
177
+ }
178
+ }
179
+ ]
180
+ }
181
+ }
182
+ ```
183
+
184
+ ### Reconfigure a VM - Modify a Network Adapter
185
+
186
+ #### Request:
187
+
188
+ POST /api/requests
189
+
190
+ ``` json
191
+ {
192
+ "action" : " create" ,
193
+ "options" : {
194
+ "request_type" : " vm_reconfigure" ,
195
+ "src_ids" : [" 2" ],
196
+ "network_adapter_edit" : [
197
+ {
198
+ "name" : " Network Adapter 1" ,
199
+ "network" : " VM Network 2"
200
+ }
201
+ ]
202
+ }
203
+ }
204
+ ```
205
+
206
+ ### Reconfigure a VM - Connect a CD-ROM
207
+
208
+ #### Request:
209
+
210
+ POST /api/requests
211
+
212
+ ``` json
213
+ {
214
+ "action" : " create" ,
215
+ "options" : {
216
+ "request_type" : " vm_reconfigure" ,
217
+ "src_ids" : [" 2" ],
218
+ "cdrom_connect" : [
219
+ {
220
+ "device_name" : " CD/DVD drive 1" ,
221
+ "storage_id" : " 1" ,
222
+ "filename" : " file.iso"
223
+ }
224
+ ]
225
+ }
226
+ }
227
+ ```
228
+
229
+ ### Reconfigure a VM - Disconnect a CD-ROM
230
+
231
+ #### Request:
232
+
233
+ POST /api/requests
234
+
235
+ ``` json
236
+ {
237
+ "action" : " create" ,
238
+ "options" : {
239
+ "request_type" : " vm_reconfigure" ,
240
+ "src_ids" : [" 2" ],
241
+ "cdrom_disconnect" : [
242
+ {
243
+ "device_name" : " CD/DVD drive 1"
244
+ }
245
+ ]
246
+ }
247
+ }
248
+ ```
You can’t perform that action at this time.
0 commit comments