]> git.proxmox.com Git - pve-docs.git/blob - api-viewer/apidata.js
bump version to 8.2.0
[pve-docs.git] / api-viewer / apidata.js
1 const apiSchema = [
2 {
3 "children" : [
4 {
5 "children" : [
6 {
7 "info" : {
8 "DELETE" : {
9 "allowtoken" : 1,
10 "description" : "Mark replication job for removal.",
11 "method" : "DELETE",
12 "name" : "delete",
13 "parameters" : {
14 "additionalProperties" : 0,
15 "properties" : {
16 "force" : {
17 "default" : 0,
18 "description" : "Will remove the jobconfig entry, but will not cleanup.",
19 "optional" : 1,
20 "type" : "boolean",
21 "typetext" : "<boolean>"
22 },
23 "id" : {
24 "description" : "Replication Job ID. The ID is composed of a Guest ID and a job number, separated by a hyphen, i.e. '<GUEST>-<JOBNUM>'.",
25 "format" : "pve-replication-job-id",
26 "pattern" : "[1-9][0-9]{2,8}-\\d{1,9}",
27 "type" : "string"
28 },
29 "keep" : {
30 "default" : 0,
31 "description" : "Keep replicated data at target (do not remove).",
32 "optional" : 1,
33 "type" : "boolean",
34 "typetext" : "<boolean>"
35 }
36 }
37 },
38 "permissions" : {
39 "check" : [
40 "perm",
41 "/storage",
42 [
43 "Datastore.Allocate"
44 ]
45 ]
46 },
47 "protected" : 1,
48 "returns" : {
49 "type" : "null"
50 }
51 },
52 "GET" : {
53 "allowtoken" : 1,
54 "description" : "Read replication job configuration.",
55 "method" : "GET",
56 "name" : "read",
57 "parameters" : {
58 "additionalProperties" : 0,
59 "properties" : {
60 "id" : {
61 "description" : "Replication Job ID. The ID is composed of a Guest ID and a job number, separated by a hyphen, i.e. '<GUEST>-<JOBNUM>'.",
62 "format" : "pve-replication-job-id",
63 "pattern" : "[1-9][0-9]{2,8}-\\d{1,9}",
64 "type" : "string"
65 }
66 }
67 },
68 "permissions" : {
69 "description" : "Requires the VM.Audit permission on /vms/<vmid>.",
70 "user" : "all"
71 },
72 "returns" : {
73 "type" : "object"
74 }
75 },
76 "PUT" : {
77 "allowtoken" : 1,
78 "description" : "Update replication job configuration.",
79 "method" : "PUT",
80 "name" : "update",
81 "parameters" : {
82 "additionalProperties" : 0,
83 "properties" : {
84 "comment" : {
85 "description" : "Description.",
86 "maxLength" : 4096,
87 "optional" : 1,
88 "type" : "string",
89 "typetext" : "<string>"
90 },
91 "delete" : {
92 "description" : "A list of settings you want to delete.",
93 "format" : "pve-configid-list",
94 "maxLength" : 4096,
95 "optional" : 1,
96 "type" : "string",
97 "typetext" : "<string>"
98 },
99 "digest" : {
100 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
101 "maxLength" : 64,
102 "optional" : 1,
103 "type" : "string",
104 "typetext" : "<string>"
105 },
106 "disable" : {
107 "description" : "Flag to disable/deactivate the entry.",
108 "optional" : 1,
109 "type" : "boolean",
110 "typetext" : "<boolean>"
111 },
112 "id" : {
113 "description" : "Replication Job ID. The ID is composed of a Guest ID and a job number, separated by a hyphen, i.e. '<GUEST>-<JOBNUM>'.",
114 "format" : "pve-replication-job-id",
115 "pattern" : "[1-9][0-9]{2,8}-\\d{1,9}",
116 "type" : "string"
117 },
118 "rate" : {
119 "description" : "Rate limit in mbps (megabytes per second) as floating point number.",
120 "minimum" : 1,
121 "optional" : 1,
122 "type" : "number",
123 "typetext" : "<number> (1 - N)"
124 },
125 "remove_job" : {
126 "description" : "Mark the replication job for removal. The job will remove all local replication snapshots. When set to 'full', it also tries to remove replicated volumes on the target. The job then removes itself from the configuration file.",
127 "enum" : [
128 "local",
129 "full"
130 ],
131 "optional" : 1,
132 "type" : "string"
133 },
134 "schedule" : {
135 "default" : "*/15",
136 "description" : "Storage replication schedule. The format is a subset of `systemd` calendar events.",
137 "format" : "pve-calendar-event",
138 "maxLength" : 128,
139 "optional" : 1,
140 "type" : "string",
141 "typetext" : "<string>"
142 },
143 "source" : {
144 "description" : "For internal use, to detect if the guest was stolen.",
145 "format" : "pve-node",
146 "optional" : 1,
147 "type" : "string",
148 "typetext" : "<string>"
149 }
150 },
151 "type" : "object"
152 },
153 "permissions" : {
154 "check" : [
155 "perm",
156 "/storage",
157 [
158 "Datastore.Allocate"
159 ]
160 ]
161 },
162 "protected" : 1,
163 "returns" : {
164 "type" : "null"
165 }
166 }
167 },
168 "leaf" : 1,
169 "path" : "/cluster/replication/{id}",
170 "text" : "{id}"
171 }
172 ],
173 "info" : {
174 "GET" : {
175 "allowtoken" : 1,
176 "description" : "List replication jobs.",
177 "method" : "GET",
178 "name" : "index",
179 "parameters" : {
180 "additionalProperties" : 0
181 },
182 "permissions" : {
183 "description" : "Will only return replication jobs for which the calling user has VM.Audit permission on /vms/<vmid>.",
184 "user" : "all"
185 },
186 "returns" : {
187 "items" : {
188 "properties" : {},
189 "type" : "object"
190 },
191 "links" : [
192 {
193 "href" : "{id}",
194 "rel" : "child"
195 }
196 ],
197 "type" : "array"
198 }
199 },
200 "POST" : {
201 "allowtoken" : 1,
202 "description" : "Create a new replication job",
203 "method" : "POST",
204 "name" : "create",
205 "parameters" : {
206 "additionalProperties" : 0,
207 "properties" : {
208 "comment" : {
209 "description" : "Description.",
210 "maxLength" : 4096,
211 "optional" : 1,
212 "type" : "string",
213 "typetext" : "<string>"
214 },
215 "disable" : {
216 "description" : "Flag to disable/deactivate the entry.",
217 "optional" : 1,
218 "type" : "boolean",
219 "typetext" : "<boolean>"
220 },
221 "id" : {
222 "description" : "Replication Job ID. The ID is composed of a Guest ID and a job number, separated by a hyphen, i.e. '<GUEST>-<JOBNUM>'.",
223 "format" : "pve-replication-job-id",
224 "pattern" : "[1-9][0-9]{2,8}-\\d{1,9}",
225 "type" : "string"
226 },
227 "rate" : {
228 "description" : "Rate limit in mbps (megabytes per second) as floating point number.",
229 "minimum" : 1,
230 "optional" : 1,
231 "type" : "number",
232 "typetext" : "<number> (1 - N)"
233 },
234 "remove_job" : {
235 "description" : "Mark the replication job for removal. The job will remove all local replication snapshots. When set to 'full', it also tries to remove replicated volumes on the target. The job then removes itself from the configuration file.",
236 "enum" : [
237 "local",
238 "full"
239 ],
240 "optional" : 1,
241 "type" : "string"
242 },
243 "schedule" : {
244 "default" : "*/15",
245 "description" : "Storage replication schedule. The format is a subset of `systemd` calendar events.",
246 "format" : "pve-calendar-event",
247 "maxLength" : 128,
248 "optional" : 1,
249 "type" : "string",
250 "typetext" : "<string>"
251 },
252 "source" : {
253 "description" : "For internal use, to detect if the guest was stolen.",
254 "format" : "pve-node",
255 "optional" : 1,
256 "type" : "string",
257 "typetext" : "<string>"
258 },
259 "target" : {
260 "description" : "Target node.",
261 "format" : "pve-node",
262 "optional" : 0,
263 "type" : "string",
264 "typetext" : "<string>"
265 },
266 "type" : {
267 "description" : "Section type.",
268 "enum" : [
269 "local"
270 ],
271 "type" : "string"
272 }
273 },
274 "type" : "object"
275 },
276 "permissions" : {
277 "check" : [
278 "perm",
279 "/storage",
280 [
281 "Datastore.Allocate"
282 ]
283 ]
284 },
285 "protected" : 1,
286 "returns" : {
287 "type" : "null"
288 }
289 }
290 },
291 "leaf" : 0,
292 "path" : "/cluster/replication",
293 "text" : "replication"
294 },
295 {
296 "children" : [
297 {
298 "children" : [
299 {
300 "info" : {
301 "DELETE" : {
302 "allowtoken" : 1,
303 "description" : "Remove Metric server.",
304 "method" : "DELETE",
305 "name" : "delete",
306 "parameters" : {
307 "additionalProperties" : 0,
308 "properties" : {
309 "id" : {
310 "format" : "pve-configid",
311 "type" : "string",
312 "typetext" : "<string>"
313 }
314 }
315 },
316 "permissions" : {
317 "check" : [
318 "perm",
319 "/",
320 [
321 "Sys.Modify"
322 ]
323 ]
324 },
325 "protected" : 1,
326 "returns" : {
327 "type" : "null"
328 }
329 },
330 "GET" : {
331 "allowtoken" : 1,
332 "description" : "Read metric server configuration.",
333 "method" : "GET",
334 "name" : "read",
335 "parameters" : {
336 "additionalProperties" : 0,
337 "properties" : {
338 "id" : {
339 "format" : "pve-configid",
340 "type" : "string",
341 "typetext" : "<string>"
342 }
343 }
344 },
345 "permissions" : {
346 "check" : [
347 "perm",
348 "/",
349 [
350 "Sys.Audit"
351 ]
352 ]
353 },
354 "returns" : {
355 "type" : "object"
356 }
357 },
358 "POST" : {
359 "allowtoken" : 1,
360 "description" : "Create a new external metric server config",
361 "method" : "POST",
362 "name" : "create",
363 "parameters" : {
364 "additionalProperties" : 0,
365 "properties" : {
366 "api-path-prefix" : {
367 "description" : "An API path prefix inserted between '<host>:<port>/' and '/api2/'. Can be useful if the InfluxDB service runs behind a reverse proxy.",
368 "optional" : 1,
369 "type" : "string",
370 "typetext" : "<string>"
371 },
372 "bucket" : {
373 "description" : "The InfluxDB bucket/db. Only necessary when using the http v2 api.",
374 "optional" : 1,
375 "type" : "string",
376 "typetext" : "<string>"
377 },
378 "disable" : {
379 "description" : "Flag to disable the plugin.",
380 "optional" : 1,
381 "type" : "boolean",
382 "typetext" : "<boolean>"
383 },
384 "id" : {
385 "description" : "The ID of the entry.",
386 "format" : "pve-configid",
387 "type" : "string",
388 "typetext" : "<string>"
389 },
390 "influxdbproto" : {
391 "default" : "udp",
392 "enum" : [
393 "udp",
394 "http",
395 "https"
396 ],
397 "optional" : 1,
398 "type" : "string"
399 },
400 "max-body-size" : {
401 "default" : 25000000,
402 "description" : "InfluxDB max-body-size in bytes. Requests are batched up to this size.",
403 "minimum" : 1,
404 "optional" : 1,
405 "type" : "integer",
406 "typetext" : "<integer> (1 - N)"
407 },
408 "mtu" : {
409 "default" : 1500,
410 "description" : "MTU for metrics transmission over UDP",
411 "maximum" : 65536,
412 "minimum" : 512,
413 "optional" : 1,
414 "type" : "integer",
415 "typetext" : "<integer> (512 - 65536)"
416 },
417 "organization" : {
418 "description" : "The InfluxDB organization. Only necessary when using the http v2 api. Has no meaning when using v2 compatibility api.",
419 "optional" : 1,
420 "type" : "string",
421 "typetext" : "<string>"
422 },
423 "path" : {
424 "description" : "root graphite path (ex: proxmox.mycluster.mykey)",
425 "format" : "graphite-path",
426 "optional" : 1,
427 "type" : "string",
428 "typetext" : "<string>"
429 },
430 "port" : {
431 "description" : "server network port",
432 "maximum" : 65536,
433 "minimum" : 1,
434 "type" : "integer",
435 "typetext" : "<integer> (1 - 65536)"
436 },
437 "proto" : {
438 "description" : "Protocol to send graphite data. TCP or UDP (default)",
439 "enum" : [
440 "udp",
441 "tcp"
442 ],
443 "optional" : 1,
444 "type" : "string"
445 },
446 "server" : {
447 "description" : "server dns name or IP address",
448 "format" : "address",
449 "type" : "string",
450 "typetext" : "<string>"
451 },
452 "timeout" : {
453 "default" : 1,
454 "description" : "graphite TCP socket timeout (default=1)",
455 "minimum" : 0,
456 "optional" : 1,
457 "type" : "integer",
458 "typetext" : "<integer> (0 - N)"
459 },
460 "token" : {
461 "description" : "The InfluxDB access token. Only necessary when using the http v2 api. If the v2 compatibility api is used, use 'user:password' instead.",
462 "optional" : 1,
463 "type" : "string",
464 "typetext" : "<string>"
465 },
466 "type" : {
467 "description" : "Plugin type.",
468 "enum" : [
469 "graphite",
470 "influxdb"
471 ],
472 "format" : "pve-configid",
473 "type" : "string"
474 },
475 "verify-certificate" : {
476 "default" : 1,
477 "description" : "Set to 0 to disable certificate verification for https endpoints.",
478 "optional" : 1,
479 "type" : "boolean",
480 "typetext" : "<boolean>"
481 }
482 },
483 "type" : "object"
484 },
485 "permissions" : {
486 "check" : [
487 "perm",
488 "/",
489 [
490 "Sys.Modify"
491 ]
492 ]
493 },
494 "protected" : 1,
495 "returns" : {
496 "type" : "null"
497 }
498 },
499 "PUT" : {
500 "allowtoken" : 1,
501 "description" : "Update metric server configuration.",
502 "method" : "PUT",
503 "name" : "update",
504 "parameters" : {
505 "additionalProperties" : 0,
506 "properties" : {
507 "api-path-prefix" : {
508 "description" : "An API path prefix inserted between '<host>:<port>/' and '/api2/'. Can be useful if the InfluxDB service runs behind a reverse proxy.",
509 "optional" : 1,
510 "type" : "string",
511 "typetext" : "<string>"
512 },
513 "bucket" : {
514 "description" : "The InfluxDB bucket/db. Only necessary when using the http v2 api.",
515 "optional" : 1,
516 "type" : "string",
517 "typetext" : "<string>"
518 },
519 "delete" : {
520 "description" : "A list of settings you want to delete.",
521 "format" : "pve-configid-list",
522 "maxLength" : 4096,
523 "optional" : 1,
524 "type" : "string",
525 "typetext" : "<string>"
526 },
527 "digest" : {
528 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
529 "maxLength" : 64,
530 "optional" : 1,
531 "type" : "string",
532 "typetext" : "<string>"
533 },
534 "disable" : {
535 "description" : "Flag to disable the plugin.",
536 "optional" : 1,
537 "type" : "boolean",
538 "typetext" : "<boolean>"
539 },
540 "id" : {
541 "description" : "The ID of the entry.",
542 "format" : "pve-configid",
543 "type" : "string",
544 "typetext" : "<string>"
545 },
546 "influxdbproto" : {
547 "default" : "udp",
548 "enum" : [
549 "udp",
550 "http",
551 "https"
552 ],
553 "optional" : 1,
554 "type" : "string"
555 },
556 "max-body-size" : {
557 "default" : 25000000,
558 "description" : "InfluxDB max-body-size in bytes. Requests are batched up to this size.",
559 "minimum" : 1,
560 "optional" : 1,
561 "type" : "integer",
562 "typetext" : "<integer> (1 - N)"
563 },
564 "mtu" : {
565 "default" : 1500,
566 "description" : "MTU for metrics transmission over UDP",
567 "maximum" : 65536,
568 "minimum" : 512,
569 "optional" : 1,
570 "type" : "integer",
571 "typetext" : "<integer> (512 - 65536)"
572 },
573 "organization" : {
574 "description" : "The InfluxDB organization. Only necessary when using the http v2 api. Has no meaning when using v2 compatibility api.",
575 "optional" : 1,
576 "type" : "string",
577 "typetext" : "<string>"
578 },
579 "path" : {
580 "description" : "root graphite path (ex: proxmox.mycluster.mykey)",
581 "format" : "graphite-path",
582 "optional" : 1,
583 "type" : "string",
584 "typetext" : "<string>"
585 },
586 "port" : {
587 "description" : "server network port",
588 "maximum" : 65536,
589 "minimum" : 1,
590 "type" : "integer",
591 "typetext" : "<integer> (1 - 65536)"
592 },
593 "proto" : {
594 "description" : "Protocol to send graphite data. TCP or UDP (default)",
595 "enum" : [
596 "udp",
597 "tcp"
598 ],
599 "optional" : 1,
600 "type" : "string"
601 },
602 "server" : {
603 "description" : "server dns name or IP address",
604 "format" : "address",
605 "type" : "string",
606 "typetext" : "<string>"
607 },
608 "timeout" : {
609 "default" : 1,
610 "description" : "graphite TCP socket timeout (default=1)",
611 "minimum" : 0,
612 "optional" : 1,
613 "type" : "integer",
614 "typetext" : "<integer> (0 - N)"
615 },
616 "token" : {
617 "description" : "The InfluxDB access token. Only necessary when using the http v2 api. If the v2 compatibility api is used, use 'user:password' instead.",
618 "optional" : 1,
619 "type" : "string",
620 "typetext" : "<string>"
621 },
622 "verify-certificate" : {
623 "default" : 1,
624 "description" : "Set to 0 to disable certificate verification for https endpoints.",
625 "optional" : 1,
626 "type" : "boolean",
627 "typetext" : "<boolean>"
628 }
629 },
630 "type" : "object"
631 },
632 "permissions" : {
633 "check" : [
634 "perm",
635 "/",
636 [
637 "Sys.Modify"
638 ]
639 ]
640 },
641 "protected" : 1,
642 "returns" : {
643 "type" : "null"
644 }
645 }
646 },
647 "leaf" : 1,
648 "path" : "/cluster/metrics/server/{id}",
649 "text" : "{id}"
650 }
651 ],
652 "info" : {
653 "GET" : {
654 "allowtoken" : 1,
655 "description" : "List configured metric servers.",
656 "method" : "GET",
657 "name" : "server_index",
658 "parameters" : {
659 "additionalProperties" : 0
660 },
661 "permissions" : {
662 "check" : [
663 "perm",
664 "/",
665 [
666 "Sys.Audit"
667 ]
668 ]
669 },
670 "returns" : {
671 "items" : {
672 "properties" : {
673 "disable" : {
674 "description" : "Flag to disable the plugin.",
675 "type" : "boolean"
676 },
677 "id" : {
678 "description" : "The ID of the entry.",
679 "type" : "string"
680 },
681 "port" : {
682 "description" : "Server network port",
683 "type" : "integer"
684 },
685 "server" : {
686 "description" : "Server dns name or IP address",
687 "type" : "string"
688 },
689 "type" : {
690 "description" : "Plugin type.",
691 "type" : "string"
692 }
693 },
694 "type" : "object"
695 },
696 "links" : [
697 {
698 "href" : "{id}",
699 "rel" : "child"
700 }
701 ],
702 "type" : "array"
703 }
704 }
705 },
706 "leaf" : 0,
707 "path" : "/cluster/metrics/server",
708 "text" : "server"
709 }
710 ],
711 "info" : {
712 "GET" : {
713 "allowtoken" : 1,
714 "description" : "Metrics index.",
715 "method" : "GET",
716 "name" : "index",
717 "parameters" : {
718 "additionalProperties" : 0
719 },
720 "permissions" : {
721 "user" : "all"
722 },
723 "returns" : {
724 "items" : {
725 "properties" : {},
726 "type" : "object"
727 },
728 "links" : [
729 {
730 "href" : "{name}",
731 "rel" : "child"
732 }
733 ],
734 "type" : "array"
735 }
736 }
737 },
738 "leaf" : 0,
739 "path" : "/cluster/metrics",
740 "text" : "metrics"
741 },
742 {
743 "children" : [
744 {
745 "children" : [
746 {
747 "children" : [
748 {
749 "info" : {
750 "DELETE" : {
751 "allowtoken" : 1,
752 "description" : "Remove sendmail endpoint",
753 "method" : "DELETE",
754 "name" : "delete_sendmail_endpoint",
755 "parameters" : {
756 "additionalProperties" : 0,
757 "properties" : {
758 "name" : {
759 "format" : "pve-configid",
760 "type" : "string",
761 "typetext" : "<string>"
762 }
763 }
764 },
765 "permissions" : {
766 "check" : [
767 "perm",
768 "/mapping/notifications",
769 [
770 "Mapping.Modify"
771 ]
772 ]
773 },
774 "protected" : 1,
775 "returns" : {
776 "type" : "null"
777 }
778 },
779 "GET" : {
780 "allowtoken" : 1,
781 "description" : "Return a specific sendmail endpoint",
782 "method" : "GET",
783 "name" : "get_sendmail_endpoint",
784 "parameters" : {
785 "additionalProperties" : 0,
786 "properties" : {
787 "name" : {
788 "format" : "pve-configid",
789 "type" : "string",
790 "typetext" : "<string>"
791 }
792 }
793 },
794 "permissions" : {
795 "check" : [
796 "or",
797 [
798 "perm",
799 "/mapping/notifications",
800 [
801 "Mapping.Modify"
802 ]
803 ],
804 [
805 "perm",
806 "/mapping/notifications",
807 [
808 "Mapping.Audit"
809 ]
810 ]
811 ]
812 },
813 "protected" : 1,
814 "returns" : {
815 "properties" : {
816 "author" : {
817 "description" : "Author of the mail",
818 "optional" : 1,
819 "type" : "string"
820 },
821 "comment" : {
822 "description" : "Comment",
823 "optional" : 1,
824 "type" : "string"
825 },
826 "digest" : {
827 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
828 "maxLength" : 64,
829 "optional" : 1,
830 "type" : "string"
831 },
832 "disable" : {
833 "default" : 0,
834 "description" : "Disable this target",
835 "optional" : 1,
836 "type" : "boolean"
837 },
838 "from-address" : {
839 "description" : "`From` address for the mail",
840 "optional" : 1,
841 "type" : "string"
842 },
843 "mailto" : {
844 "description" : "List of email recipients",
845 "items" : {
846 "format" : "email-or-username",
847 "type" : "string"
848 },
849 "optional" : 1,
850 "type" : "array"
851 },
852 "mailto-user" : {
853 "description" : "List of users",
854 "items" : {
855 "format" : "pve-userid",
856 "type" : "string"
857 },
858 "optional" : 1,
859 "type" : "array"
860 },
861 "name" : {
862 "description" : "The name of the endpoint.",
863 "format" : "pve-configid",
864 "type" : "string"
865 }
866 },
867 "type" : "object"
868 }
869 },
870 "PUT" : {
871 "allowtoken" : 1,
872 "description" : "Update existing sendmail endpoint",
873 "method" : "PUT",
874 "name" : "update_sendmail_endpoint",
875 "parameters" : {
876 "additionalProperties" : 0,
877 "properties" : {
878 "author" : {
879 "description" : "Author of the mail",
880 "optional" : 1,
881 "type" : "string",
882 "typetext" : "<string>"
883 },
884 "comment" : {
885 "description" : "Comment",
886 "optional" : 1,
887 "type" : "string",
888 "typetext" : "<string>"
889 },
890 "delete" : {
891 "description" : "A list of settings you want to delete.",
892 "items" : {
893 "format" : "pve-configid",
894 "type" : "string"
895 },
896 "optional" : 1,
897 "type" : "array",
898 "typetext" : "<array>"
899 },
900 "digest" : {
901 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
902 "maxLength" : 64,
903 "optional" : 1,
904 "type" : "string",
905 "typetext" : "<string>"
906 },
907 "disable" : {
908 "default" : 0,
909 "description" : "Disable this target",
910 "optional" : 1,
911 "type" : "boolean",
912 "typetext" : "<boolean>"
913 },
914 "from-address" : {
915 "description" : "`From` address for the mail",
916 "optional" : 1,
917 "type" : "string",
918 "typetext" : "<string>"
919 },
920 "mailto" : {
921 "description" : "List of email recipients",
922 "items" : {
923 "format" : "email-or-username",
924 "type" : "string"
925 },
926 "optional" : 1,
927 "type" : "array",
928 "typetext" : "<array>"
929 },
930 "mailto-user" : {
931 "description" : "List of users",
932 "items" : {
933 "format" : "pve-userid",
934 "type" : "string"
935 },
936 "optional" : 1,
937 "type" : "array",
938 "typetext" : "<array>"
939 },
940 "name" : {
941 "description" : "The name of the endpoint.",
942 "format" : "pve-configid",
943 "type" : "string",
944 "typetext" : "<string>"
945 }
946 }
947 },
948 "permissions" : {
949 "check" : [
950 "perm",
951 "/mapping/notifications",
952 [
953 "Mapping.Modify"
954 ]
955 ]
956 },
957 "protected" : 1,
958 "returns" : {
959 "type" : "null"
960 }
961 }
962 },
963 "leaf" : 1,
964 "path" : "/cluster/notifications/endpoints/sendmail/{name}",
965 "text" : "{name}"
966 }
967 ],
968 "info" : {
969 "GET" : {
970 "allowtoken" : 1,
971 "description" : "Returns a list of all sendmail endpoints",
972 "method" : "GET",
973 "name" : "get_sendmail_endpoints",
974 "parameters" : {
975 "additionalProperties" : 0
976 },
977 "permissions" : {
978 "check" : [
979 "or",
980 [
981 "perm",
982 "/mapping/notifications",
983 [
984 "Mapping.Modify"
985 ]
986 ],
987 [
988 "perm",
989 "/mapping/notifications",
990 [
991 "Mapping.Audit"
992 ]
993 ]
994 ]
995 },
996 "protected" : 1,
997 "returns" : {
998 "items" : {
999 "properties" : {
1000 "author" : {
1001 "description" : "Author of the mail",
1002 "optional" : 1,
1003 "type" : "string"
1004 },
1005 "comment" : {
1006 "description" : "Comment",
1007 "optional" : 1,
1008 "type" : "string"
1009 },
1010 "disable" : {
1011 "default" : 0,
1012 "description" : "Disable this target",
1013 "optional" : 1,
1014 "type" : "boolean"
1015 },
1016 "from-address" : {
1017 "description" : "`From` address for the mail",
1018 "optional" : 1,
1019 "type" : "string"
1020 },
1021 "mailto" : {
1022 "description" : "List of email recipients",
1023 "items" : {
1024 "format" : "email-or-username",
1025 "type" : "string"
1026 },
1027 "optional" : 1,
1028 "type" : "array"
1029 },
1030 "mailto-user" : {
1031 "description" : "List of users",
1032 "items" : {
1033 "format" : "pve-userid",
1034 "type" : "string"
1035 },
1036 "optional" : 1,
1037 "type" : "array"
1038 },
1039 "name" : {
1040 "description" : "The name of the endpoint.",
1041 "format" : "pve-configid",
1042 "type" : "string"
1043 },
1044 "origin" : {
1045 "description" : "Show if this entry was created by a user or was built-in",
1046 "enum" : [
1047 "user-created",
1048 "builtin",
1049 "modified-builtin"
1050 ],
1051 "type" : "string"
1052 }
1053 },
1054 "type" : "object"
1055 },
1056 "links" : [
1057 {
1058 "href" : "{name}",
1059 "rel" : "child"
1060 }
1061 ],
1062 "type" : "array"
1063 }
1064 },
1065 "POST" : {
1066 "allowtoken" : 1,
1067 "description" : "Create a new sendmail endpoint",
1068 "method" : "POST",
1069 "name" : "create_sendmail_endpoint",
1070 "parameters" : {
1071 "additionalProperties" : 0,
1072 "properties" : {
1073 "author" : {
1074 "description" : "Author of the mail",
1075 "optional" : 1,
1076 "type" : "string",
1077 "typetext" : "<string>"
1078 },
1079 "comment" : {
1080 "description" : "Comment",
1081 "optional" : 1,
1082 "type" : "string",
1083 "typetext" : "<string>"
1084 },
1085 "disable" : {
1086 "default" : 0,
1087 "description" : "Disable this target",
1088 "optional" : 1,
1089 "type" : "boolean",
1090 "typetext" : "<boolean>"
1091 },
1092 "from-address" : {
1093 "description" : "`From` address for the mail",
1094 "optional" : 1,
1095 "type" : "string",
1096 "typetext" : "<string>"
1097 },
1098 "mailto" : {
1099 "description" : "List of email recipients",
1100 "items" : {
1101 "format" : "email-or-username",
1102 "type" : "string"
1103 },
1104 "optional" : 1,
1105 "type" : "array",
1106 "typetext" : "<array>"
1107 },
1108 "mailto-user" : {
1109 "description" : "List of users",
1110 "items" : {
1111 "format" : "pve-userid",
1112 "type" : "string"
1113 },
1114 "optional" : 1,
1115 "type" : "array",
1116 "typetext" : "<array>"
1117 },
1118 "name" : {
1119 "description" : "The name of the endpoint.",
1120 "format" : "pve-configid",
1121 "type" : "string",
1122 "typetext" : "<string>"
1123 }
1124 }
1125 },
1126 "permissions" : {
1127 "check" : [
1128 "perm",
1129 "/mapping/notifications",
1130 [
1131 "Mapping.Modify"
1132 ]
1133 ]
1134 },
1135 "protected" : 1,
1136 "returns" : {
1137 "type" : "null"
1138 }
1139 }
1140 },
1141 "leaf" : 0,
1142 "path" : "/cluster/notifications/endpoints/sendmail",
1143 "text" : "sendmail"
1144 },
1145 {
1146 "children" : [
1147 {
1148 "info" : {
1149 "DELETE" : {
1150 "allowtoken" : 1,
1151 "description" : "Remove gotify endpoint",
1152 "method" : "DELETE",
1153 "name" : "delete_gotify_endpoint",
1154 "parameters" : {
1155 "additionalProperties" : 0,
1156 "properties" : {
1157 "name" : {
1158 "format" : "pve-configid",
1159 "type" : "string",
1160 "typetext" : "<string>"
1161 }
1162 }
1163 },
1164 "permissions" : {
1165 "check" : [
1166 "perm",
1167 "/mapping/notifications",
1168 [
1169 "Mapping.Modify"
1170 ]
1171 ]
1172 },
1173 "protected" : 1,
1174 "returns" : {
1175 "type" : "null"
1176 }
1177 },
1178 "GET" : {
1179 "allowtoken" : 1,
1180 "description" : "Return a specific gotify endpoint",
1181 "method" : "GET",
1182 "name" : "get_gotify_endpoint",
1183 "parameters" : {
1184 "additionalProperties" : 0,
1185 "properties" : {
1186 "name" : {
1187 "description" : "Name of the endpoint.",
1188 "format" : "pve-configid",
1189 "type" : "string",
1190 "typetext" : "<string>"
1191 }
1192 }
1193 },
1194 "permissions" : {
1195 "check" : [
1196 "or",
1197 [
1198 "perm",
1199 "/mapping/notifications",
1200 [
1201 "Mapping.Modify"
1202 ]
1203 ],
1204 [
1205 "perm",
1206 "/mapping/notifications",
1207 [
1208 "Mapping.Audit"
1209 ]
1210 ]
1211 ]
1212 },
1213 "protected" : 1,
1214 "returns" : {
1215 "properties" : {
1216 "comment" : {
1217 "description" : "Comment",
1218 "optional" : 1,
1219 "type" : "string"
1220 },
1221 "digest" : {
1222 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
1223 "maxLength" : 64,
1224 "optional" : 1,
1225 "type" : "string"
1226 },
1227 "disable" : {
1228 "default" : 0,
1229 "description" : "Disable this target",
1230 "optional" : 1,
1231 "type" : "boolean"
1232 },
1233 "name" : {
1234 "description" : "The name of the endpoint.",
1235 "format" : "pve-configid",
1236 "type" : "string"
1237 },
1238 "server" : {
1239 "description" : "Server URL",
1240 "type" : "string"
1241 }
1242 },
1243 "type" : "object"
1244 }
1245 },
1246 "PUT" : {
1247 "allowtoken" : 1,
1248 "description" : "Update existing gotify endpoint",
1249 "method" : "PUT",
1250 "name" : "update_gotify_endpoint",
1251 "parameters" : {
1252 "additionalProperties" : 0,
1253 "properties" : {
1254 "comment" : {
1255 "description" : "Comment",
1256 "optional" : 1,
1257 "type" : "string",
1258 "typetext" : "<string>"
1259 },
1260 "delete" : {
1261 "description" : "A list of settings you want to delete.",
1262 "items" : {
1263 "format" : "pve-configid",
1264 "type" : "string"
1265 },
1266 "optional" : 1,
1267 "type" : "array",
1268 "typetext" : "<array>"
1269 },
1270 "digest" : {
1271 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
1272 "maxLength" : 64,
1273 "optional" : 1,
1274 "type" : "string",
1275 "typetext" : "<string>"
1276 },
1277 "disable" : {
1278 "default" : 0,
1279 "description" : "Disable this target",
1280 "optional" : 1,
1281 "type" : "boolean",
1282 "typetext" : "<boolean>"
1283 },
1284 "name" : {
1285 "description" : "The name of the endpoint.",
1286 "format" : "pve-configid",
1287 "type" : "string",
1288 "typetext" : "<string>"
1289 },
1290 "server" : {
1291 "description" : "Server URL",
1292 "optional" : 1,
1293 "type" : "string",
1294 "typetext" : "<string>"
1295 },
1296 "token" : {
1297 "description" : "Secret token",
1298 "optional" : 1,
1299 "type" : "string",
1300 "typetext" : "<string>"
1301 }
1302 }
1303 },
1304 "permissions" : {
1305 "check" : [
1306 "perm",
1307 "/mapping/notifications",
1308 [
1309 "Mapping.Modify"
1310 ]
1311 ]
1312 },
1313 "protected" : 1,
1314 "returns" : {
1315 "type" : "null"
1316 }
1317 }
1318 },
1319 "leaf" : 1,
1320 "path" : "/cluster/notifications/endpoints/gotify/{name}",
1321 "text" : "{name}"
1322 }
1323 ],
1324 "info" : {
1325 "GET" : {
1326 "allowtoken" : 1,
1327 "description" : "Returns a list of all gotify endpoints",
1328 "method" : "GET",
1329 "name" : "get_gotify_endpoints",
1330 "parameters" : {
1331 "additionalProperties" : 0
1332 },
1333 "permissions" : {
1334 "check" : [
1335 "perm",
1336 "/mapping/notifications",
1337 [
1338 "Mapping.Audit"
1339 ]
1340 ]
1341 },
1342 "protected" : 1,
1343 "returns" : {
1344 "items" : {
1345 "properties" : {
1346 "comment" : {
1347 "description" : "Comment",
1348 "optional" : 1,
1349 "type" : "string"
1350 },
1351 "disable" : {
1352 "default" : 0,
1353 "description" : "Disable this target",
1354 "optional" : 1,
1355 "type" : "boolean"
1356 },
1357 "name" : {
1358 "description" : "The name of the endpoint.",
1359 "format" : "pve-configid",
1360 "type" : "string"
1361 },
1362 "origin" : {
1363 "description" : "Show if this entry was created by a user or was built-in",
1364 "enum" : [
1365 "user-created",
1366 "builtin",
1367 "modified-builtin"
1368 ],
1369 "type" : "string"
1370 },
1371 "server" : {
1372 "description" : "Server URL",
1373 "type" : "string"
1374 }
1375 },
1376 "type" : "object"
1377 },
1378 "links" : [
1379 {
1380 "href" : "{name}",
1381 "rel" : "child"
1382 }
1383 ],
1384 "type" : "array"
1385 }
1386 },
1387 "POST" : {
1388 "allowtoken" : 1,
1389 "description" : "Create a new gotify endpoint",
1390 "method" : "POST",
1391 "name" : "create_gotify_endpoint",
1392 "parameters" : {
1393 "additionalProperties" : 0,
1394 "properties" : {
1395 "comment" : {
1396 "description" : "Comment",
1397 "optional" : 1,
1398 "type" : "string",
1399 "typetext" : "<string>"
1400 },
1401 "disable" : {
1402 "default" : 0,
1403 "description" : "Disable this target",
1404 "optional" : 1,
1405 "type" : "boolean",
1406 "typetext" : "<boolean>"
1407 },
1408 "name" : {
1409 "description" : "The name of the endpoint.",
1410 "format" : "pve-configid",
1411 "type" : "string",
1412 "typetext" : "<string>"
1413 },
1414 "server" : {
1415 "description" : "Server URL",
1416 "type" : "string",
1417 "typetext" : "<string>"
1418 },
1419 "token" : {
1420 "description" : "Secret token",
1421 "type" : "string",
1422 "typetext" : "<string>"
1423 }
1424 }
1425 },
1426 "permissions" : {
1427 "check" : [
1428 "perm",
1429 "/mapping/notifications",
1430 [
1431 "Mapping.Modify"
1432 ]
1433 ]
1434 },
1435 "protected" : 1,
1436 "returns" : {
1437 "type" : "null"
1438 }
1439 }
1440 },
1441 "leaf" : 0,
1442 "path" : "/cluster/notifications/endpoints/gotify",
1443 "text" : "gotify"
1444 },
1445 {
1446 "children" : [
1447 {
1448 "info" : {
1449 "DELETE" : {
1450 "allowtoken" : 1,
1451 "description" : "Remove smtp endpoint",
1452 "method" : "DELETE",
1453 "name" : "delete_smtp_endpoint",
1454 "parameters" : {
1455 "additionalProperties" : 0,
1456 "properties" : {
1457 "name" : {
1458 "format" : "pve-configid",
1459 "type" : "string",
1460 "typetext" : "<string>"
1461 }
1462 }
1463 },
1464 "permissions" : {
1465 "check" : [
1466 "perm",
1467 "/mapping/notifications",
1468 [
1469 "Mapping.Modify"
1470 ]
1471 ]
1472 },
1473 "protected" : 1,
1474 "returns" : {
1475 "type" : "null"
1476 }
1477 },
1478 "GET" : {
1479 "allowtoken" : 1,
1480 "description" : "Return a specific smtp endpoint",
1481 "method" : "GET",
1482 "name" : "get_smtp_endpoint",
1483 "parameters" : {
1484 "additionalProperties" : 0,
1485 "properties" : {
1486 "name" : {
1487 "format" : "pve-configid",
1488 "type" : "string",
1489 "typetext" : "<string>"
1490 }
1491 }
1492 },
1493 "permissions" : {
1494 "check" : [
1495 "or",
1496 [
1497 "perm",
1498 "/mapping/notifications",
1499 [
1500 "Mapping.Modify"
1501 ]
1502 ],
1503 [
1504 "perm",
1505 "/mapping/notifications",
1506 [
1507 "Mapping.Audit"
1508 ]
1509 ]
1510 ]
1511 },
1512 "protected" : 1,
1513 "returns" : {
1514 "properties" : {
1515 "author" : {
1516 "description" : "Author of the mail. Defaults to 'Proxmox VE'.",
1517 "optional" : 1,
1518 "type" : "string"
1519 },
1520 "comment" : {
1521 "description" : "Comment",
1522 "optional" : 1,
1523 "type" : "string"
1524 },
1525 "digest" : {
1526 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
1527 "maxLength" : 64,
1528 "optional" : 1,
1529 "type" : "string"
1530 },
1531 "disable" : {
1532 "default" : 0,
1533 "description" : "Disable this target",
1534 "optional" : 1,
1535 "type" : "boolean"
1536 },
1537 "from-address" : {
1538 "description" : "`From` address for the mail",
1539 "type" : "string"
1540 },
1541 "mailto" : {
1542 "description" : "List of email recipients",
1543 "items" : {
1544 "format" : "email-or-username",
1545 "type" : "string"
1546 },
1547 "optional" : 1,
1548 "type" : "array"
1549 },
1550 "mailto-user" : {
1551 "description" : "List of users",
1552 "items" : {
1553 "format" : "pve-userid",
1554 "type" : "string"
1555 },
1556 "optional" : 1,
1557 "type" : "array"
1558 },
1559 "mode" : {
1560 "default" : "tls",
1561 "description" : "Determine which encryption method shall be used for the connection.",
1562 "enum" : [
1563 "insecure",
1564 "starttls",
1565 "tls"
1566 ],
1567 "optional" : 1,
1568 "type" : "string"
1569 },
1570 "name" : {
1571 "description" : "The name of the endpoint.",
1572 "format" : "pve-configid",
1573 "type" : "string"
1574 },
1575 "port" : {
1576 "description" : "The port to be used. Defaults to 465 for TLS based connections, 587 for STARTTLS based connections and port 25 for insecure plain-text connections.",
1577 "optional" : 1,
1578 "type" : "integer"
1579 },
1580 "server" : {
1581 "description" : "The address of the SMTP server.",
1582 "type" : "string"
1583 },
1584 "username" : {
1585 "description" : "Username for SMTP authentication",
1586 "optional" : 1,
1587 "type" : "string"
1588 }
1589 },
1590 "type" : "object"
1591 }
1592 },
1593 "PUT" : {
1594 "allowtoken" : 1,
1595 "description" : "Update existing smtp endpoint",
1596 "method" : "PUT",
1597 "name" : "update_smtp_endpoint",
1598 "parameters" : {
1599 "additionalProperties" : 0,
1600 "properties" : {
1601 "author" : {
1602 "description" : "Author of the mail. Defaults to 'Proxmox VE'.",
1603 "optional" : 1,
1604 "type" : "string",
1605 "typetext" : "<string>"
1606 },
1607 "comment" : {
1608 "description" : "Comment",
1609 "optional" : 1,
1610 "type" : "string",
1611 "typetext" : "<string>"
1612 },
1613 "delete" : {
1614 "description" : "A list of settings you want to delete.",
1615 "items" : {
1616 "format" : "pve-configid",
1617 "type" : "string"
1618 },
1619 "optional" : 1,
1620 "type" : "array",
1621 "typetext" : "<array>"
1622 },
1623 "digest" : {
1624 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
1625 "maxLength" : 64,
1626 "optional" : 1,
1627 "type" : "string",
1628 "typetext" : "<string>"
1629 },
1630 "disable" : {
1631 "default" : 0,
1632 "description" : "Disable this target",
1633 "optional" : 1,
1634 "type" : "boolean",
1635 "typetext" : "<boolean>"
1636 },
1637 "from-address" : {
1638 "description" : "`From` address for the mail",
1639 "optional" : 1,
1640 "type" : "string",
1641 "typetext" : "<string>"
1642 },
1643 "mailto" : {
1644 "description" : "List of email recipients",
1645 "items" : {
1646 "format" : "email-or-username",
1647 "type" : "string"
1648 },
1649 "optional" : 1,
1650 "type" : "array",
1651 "typetext" : "<array>"
1652 },
1653 "mailto-user" : {
1654 "description" : "List of users",
1655 "items" : {
1656 "format" : "pve-userid",
1657 "type" : "string"
1658 },
1659 "optional" : 1,
1660 "type" : "array",
1661 "typetext" : "<array>"
1662 },
1663 "mode" : {
1664 "default" : "tls",
1665 "description" : "Determine which encryption method shall be used for the connection.",
1666 "enum" : [
1667 "insecure",
1668 "starttls",
1669 "tls"
1670 ],
1671 "optional" : 1,
1672 "type" : "string"
1673 },
1674 "name" : {
1675 "description" : "The name of the endpoint.",
1676 "format" : "pve-configid",
1677 "type" : "string",
1678 "typetext" : "<string>"
1679 },
1680 "password" : {
1681 "description" : "Password for SMTP authentication",
1682 "optional" : 1,
1683 "type" : "string",
1684 "typetext" : "<string>"
1685 },
1686 "port" : {
1687 "description" : "The port to be used. Defaults to 465 for TLS based connections, 587 for STARTTLS based connections and port 25 for insecure plain-text connections.",
1688 "optional" : 1,
1689 "type" : "integer",
1690 "typetext" : "<integer>"
1691 },
1692 "server" : {
1693 "description" : "The address of the SMTP server.",
1694 "optional" : 1,
1695 "type" : "string",
1696 "typetext" : "<string>"
1697 },
1698 "username" : {
1699 "description" : "Username for SMTP authentication",
1700 "optional" : 1,
1701 "type" : "string",
1702 "typetext" : "<string>"
1703 }
1704 }
1705 },
1706 "permissions" : {
1707 "check" : [
1708 "or",
1709 [
1710 "perm",
1711 "/mapping/notifications",
1712 [
1713 "Mapping.Modify"
1714 ]
1715 ]
1716 ]
1717 },
1718 "protected" : 1,
1719 "returns" : {
1720 "type" : "null"
1721 }
1722 }
1723 },
1724 "leaf" : 1,
1725 "path" : "/cluster/notifications/endpoints/smtp/{name}",
1726 "text" : "{name}"
1727 }
1728 ],
1729 "info" : {
1730 "GET" : {
1731 "allowtoken" : 1,
1732 "description" : "Returns a list of all smtp endpoints",
1733 "method" : "GET",
1734 "name" : "get_smtp_endpoints",
1735 "parameters" : {
1736 "additionalProperties" : 0
1737 },
1738 "permissions" : {
1739 "check" : [
1740 "or",
1741 [
1742 "perm",
1743 "/mapping/notifications",
1744 [
1745 "Mapping.Modify"
1746 ]
1747 ],
1748 [
1749 "perm",
1750 "/mapping/notifications",
1751 [
1752 "Mapping.Audit"
1753 ]
1754 ]
1755 ]
1756 },
1757 "protected" : 1,
1758 "returns" : {
1759 "items" : {
1760 "properties" : {
1761 "author" : {
1762 "description" : "Author of the mail. Defaults to 'Proxmox VE'.",
1763 "optional" : 1,
1764 "type" : "string"
1765 },
1766 "comment" : {
1767 "description" : "Comment",
1768 "optional" : 1,
1769 "type" : "string"
1770 },
1771 "disable" : {
1772 "default" : 0,
1773 "description" : "Disable this target",
1774 "optional" : 1,
1775 "type" : "boolean"
1776 },
1777 "from-address" : {
1778 "description" : "`From` address for the mail",
1779 "type" : "string"
1780 },
1781 "mailto" : {
1782 "description" : "List of email recipients",
1783 "items" : {
1784 "format" : "email-or-username",
1785 "type" : "string"
1786 },
1787 "optional" : 1,
1788 "type" : "array"
1789 },
1790 "mailto-user" : {
1791 "description" : "List of users",
1792 "items" : {
1793 "format" : "pve-userid",
1794 "type" : "string"
1795 },
1796 "optional" : 1,
1797 "type" : "array"
1798 },
1799 "mode" : {
1800 "default" : "tls",
1801 "description" : "Determine which encryption method shall be used for the connection.",
1802 "enum" : [
1803 "insecure",
1804 "starttls",
1805 "tls"
1806 ],
1807 "optional" : 1,
1808 "type" : "string"
1809 },
1810 "name" : {
1811 "description" : "The name of the endpoint.",
1812 "format" : "pve-configid",
1813 "type" : "string"
1814 },
1815 "origin" : {
1816 "description" : "Show if this entry was created by a user or was built-in",
1817 "enum" : [
1818 "user-created",
1819 "builtin",
1820 "modified-builtin"
1821 ],
1822 "type" : "string"
1823 },
1824 "port" : {
1825 "description" : "The port to be used. Defaults to 465 for TLS based connections, 587 for STARTTLS based connections and port 25 for insecure plain-text connections.",
1826 "optional" : 1,
1827 "type" : "integer"
1828 },
1829 "server" : {
1830 "description" : "The address of the SMTP server.",
1831 "type" : "string"
1832 },
1833 "username" : {
1834 "description" : "Username for SMTP authentication",
1835 "optional" : 1,
1836 "type" : "string"
1837 }
1838 },
1839 "type" : "object"
1840 },
1841 "links" : [
1842 {
1843 "href" : "{name}",
1844 "rel" : "child"
1845 }
1846 ],
1847 "type" : "array"
1848 }
1849 },
1850 "POST" : {
1851 "allowtoken" : 1,
1852 "description" : "Create a new smtp endpoint",
1853 "method" : "POST",
1854 "name" : "create_smtp_endpoint",
1855 "parameters" : {
1856 "additionalProperties" : 0,
1857 "properties" : {
1858 "author" : {
1859 "description" : "Author of the mail. Defaults to 'Proxmox VE'.",
1860 "optional" : 1,
1861 "type" : "string",
1862 "typetext" : "<string>"
1863 },
1864 "comment" : {
1865 "description" : "Comment",
1866 "optional" : 1,
1867 "type" : "string",
1868 "typetext" : "<string>"
1869 },
1870 "disable" : {
1871 "default" : 0,
1872 "description" : "Disable this target",
1873 "optional" : 1,
1874 "type" : "boolean",
1875 "typetext" : "<boolean>"
1876 },
1877 "from-address" : {
1878 "description" : "`From` address for the mail",
1879 "type" : "string",
1880 "typetext" : "<string>"
1881 },
1882 "mailto" : {
1883 "description" : "List of email recipients",
1884 "items" : {
1885 "format" : "email-or-username",
1886 "type" : "string"
1887 },
1888 "optional" : 1,
1889 "type" : "array",
1890 "typetext" : "<array>"
1891 },
1892 "mailto-user" : {
1893 "description" : "List of users",
1894 "items" : {
1895 "format" : "pve-userid",
1896 "type" : "string"
1897 },
1898 "optional" : 1,
1899 "type" : "array",
1900 "typetext" : "<array>"
1901 },
1902 "mode" : {
1903 "default" : "tls",
1904 "description" : "Determine which encryption method shall be used for the connection.",
1905 "enum" : [
1906 "insecure",
1907 "starttls",
1908 "tls"
1909 ],
1910 "optional" : 1,
1911 "type" : "string"
1912 },
1913 "name" : {
1914 "description" : "The name of the endpoint.",
1915 "format" : "pve-configid",
1916 "type" : "string",
1917 "typetext" : "<string>"
1918 },
1919 "password" : {
1920 "description" : "Password for SMTP authentication",
1921 "optional" : 1,
1922 "type" : "string",
1923 "typetext" : "<string>"
1924 },
1925 "port" : {
1926 "description" : "The port to be used. Defaults to 465 for TLS based connections, 587 for STARTTLS based connections and port 25 for insecure plain-text connections.",
1927 "optional" : 1,
1928 "type" : "integer",
1929 "typetext" : "<integer>"
1930 },
1931 "server" : {
1932 "description" : "The address of the SMTP server.",
1933 "type" : "string",
1934 "typetext" : "<string>"
1935 },
1936 "username" : {
1937 "description" : "Username for SMTP authentication",
1938 "optional" : 1,
1939 "type" : "string",
1940 "typetext" : "<string>"
1941 }
1942 }
1943 },
1944 "permissions" : {
1945 "check" : [
1946 "or",
1947 [
1948 "perm",
1949 "/mapping/notifications",
1950 [
1951 "Mapping.Modify"
1952 ]
1953 ]
1954 ]
1955 },
1956 "protected" : 1,
1957 "returns" : {
1958 "type" : "null"
1959 }
1960 }
1961 },
1962 "leaf" : 0,
1963 "path" : "/cluster/notifications/endpoints/smtp",
1964 "text" : "smtp"
1965 }
1966 ],
1967 "info" : {
1968 "GET" : {
1969 "allowtoken" : 1,
1970 "description" : "Index for all available endpoint types.",
1971 "method" : "GET",
1972 "name" : "endpoints_index",
1973 "parameters" : {
1974 "additionalProperties" : 0
1975 },
1976 "permissions" : {
1977 "user" : "all"
1978 },
1979 "returns" : {
1980 "items" : {
1981 "properties" : {},
1982 "type" : "object"
1983 },
1984 "links" : [
1985 {
1986 "href" : "{name}",
1987 "rel" : "child"
1988 }
1989 ],
1990 "type" : "array"
1991 }
1992 }
1993 },
1994 "leaf" : 0,
1995 "path" : "/cluster/notifications/endpoints",
1996 "text" : "endpoints"
1997 },
1998 {
1999 "children" : [
2000 {
2001 "children" : [
2002 {
2003 "info" : {
2004 "POST" : {
2005 "allowtoken" : 1,
2006 "description" : "Send a test notification to a provided target.",
2007 "method" : "POST",
2008 "name" : "test_target",
2009 "parameters" : {
2010 "additionalProperties" : 0,
2011 "properties" : {
2012 "name" : {
2013 "description" : "Name of the target.",
2014 "format" : "pve-configid",
2015 "type" : "string",
2016 "typetext" : "<string>"
2017 }
2018 }
2019 },
2020 "permissions" : {
2021 "check" : [
2022 "or",
2023 [
2024 "perm",
2025 "/mapping/notifications",
2026 [
2027 "Mapping.Modify"
2028 ]
2029 ],
2030 [
2031 "perm",
2032 "/mapping/notifications",
2033 [
2034 "Mapping.Audit"
2035 ]
2036 ],
2037 [
2038 "perm",
2039 "/mapping/notifications",
2040 [
2041 "Mapping.Use"
2042 ]
2043 ]
2044 ]
2045 },
2046 "protected" : 1,
2047 "returns" : {
2048 "type" : "null"
2049 }
2050 }
2051 },
2052 "leaf" : 1,
2053 "path" : "/cluster/notifications/targets/{name}/test",
2054 "text" : "test"
2055 }
2056 ],
2057 "leaf" : 0,
2058 "path" : "/cluster/notifications/targets/{name}",
2059 "text" : "{name}"
2060 }
2061 ],
2062 "info" : {
2063 "GET" : {
2064 "allowtoken" : 1,
2065 "description" : "Returns a list of all entities that can be used as notification targets.",
2066 "method" : "GET",
2067 "name" : "get_all_targets",
2068 "parameters" : {
2069 "additionalProperties" : 0
2070 },
2071 "permissions" : {
2072 "check" : [
2073 "or",
2074 [
2075 "perm",
2076 "/mapping/notifications",
2077 [
2078 "Mapping.Modify"
2079 ]
2080 ],
2081 [
2082 "perm",
2083 "/mapping/notifications",
2084 [
2085 "Mapping.Audit"
2086 ]
2087 ],
2088 [
2089 "perm",
2090 "/mapping/notifications",
2091 [
2092 "Mapping.Use"
2093 ]
2094 ]
2095 ]
2096 },
2097 "protected" : 1,
2098 "returns" : {
2099 "items" : {
2100 "properties" : {
2101 "comment" : {
2102 "description" : "Comment",
2103 "optional" : 1,
2104 "type" : "string"
2105 },
2106 "disable" : {
2107 "default" : 0,
2108 "description" : "Show if this target is disabled",
2109 "optional" : 1,
2110 "type" : "boolean"
2111 },
2112 "name" : {
2113 "description" : "Name of the target.",
2114 "format" : "pve-configid",
2115 "type" : "string"
2116 },
2117 "origin" : {
2118 "description" : "Show if this entry was created by a user or was built-in",
2119 "enum" : [
2120 "user-created",
2121 "builtin",
2122 "modified-builtin"
2123 ],
2124 "type" : "string"
2125 },
2126 "type" : {
2127 "description" : "Type of the target.",
2128 "enum" : [
2129 "sendmail",
2130 "gotify",
2131 "smtp"
2132 ],
2133 "type" : "string"
2134 }
2135 },
2136 "type" : "object"
2137 },
2138 "links" : [
2139 {
2140 "href" : "{name}",
2141 "rel" : "child"
2142 }
2143 ],
2144 "type" : "array"
2145 }
2146 }
2147 },
2148 "leaf" : 0,
2149 "path" : "/cluster/notifications/targets",
2150 "text" : "targets"
2151 },
2152 {
2153 "children" : [
2154 {
2155 "info" : {
2156 "DELETE" : {
2157 "allowtoken" : 1,
2158 "description" : "Remove matcher",
2159 "method" : "DELETE",
2160 "name" : "delete_matcher",
2161 "parameters" : {
2162 "additionalProperties" : 0,
2163 "properties" : {
2164 "name" : {
2165 "format" : "pve-configid",
2166 "type" : "string",
2167 "typetext" : "<string>"
2168 }
2169 }
2170 },
2171 "permissions" : {
2172 "check" : [
2173 "perm",
2174 "/mapping/notifications",
2175 [
2176 "Mapping.Modify"
2177 ]
2178 ]
2179 },
2180 "protected" : 1,
2181 "returns" : {
2182 "type" : "null"
2183 }
2184 },
2185 "GET" : {
2186 "allowtoken" : 1,
2187 "description" : "Return a specific matcher",
2188 "method" : "GET",
2189 "name" : "get_matcher",
2190 "parameters" : {
2191 "additionalProperties" : 0,
2192 "properties" : {
2193 "name" : {
2194 "format" : "pve-configid",
2195 "type" : "string",
2196 "typetext" : "<string>"
2197 }
2198 }
2199 },
2200 "permissions" : {
2201 "check" : [
2202 "or",
2203 [
2204 "perm",
2205 "/mapping/notifications",
2206 [
2207 "Mapping.Modify"
2208 ]
2209 ],
2210 [
2211 "perm",
2212 "/mapping/notifications",
2213 [
2214 "Mapping.Audit"
2215 ]
2216 ]
2217 ]
2218 },
2219 "protected" : 1,
2220 "returns" : {
2221 "properties" : {
2222 "comment" : {
2223 "description" : "Comment",
2224 "optional" : 1,
2225 "type" : "string"
2226 },
2227 "digest" : {
2228 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
2229 "maxLength" : 64,
2230 "optional" : 1,
2231 "type" : "string"
2232 },
2233 "disable" : {
2234 "default" : 0,
2235 "description" : "Disable this matcher",
2236 "optional" : 1,
2237 "type" : "boolean"
2238 },
2239 "invert-match" : {
2240 "description" : "Invert match of the whole matcher",
2241 "optional" : 1,
2242 "type" : "boolean"
2243 },
2244 "match-calendar" : {
2245 "description" : "Match notification timestamp",
2246 "items" : {
2247 "type" : "string"
2248 },
2249 "optional" : 1,
2250 "type" : "array"
2251 },
2252 "match-field" : {
2253 "description" : "Metadata fields to match (regex or exact match). Must be in the form (regex|exact):<field>=<value>",
2254 "items" : {
2255 "type" : "string"
2256 },
2257 "optional" : 1,
2258 "type" : "array"
2259 },
2260 "match-severity" : {
2261 "description" : "Notification severities to match",
2262 "items" : {
2263 "type" : "string"
2264 },
2265 "optional" : 1,
2266 "type" : "array"
2267 },
2268 "mode" : {
2269 "default" : "all",
2270 "description" : "Choose between 'all' and 'any' for when multiple properties are specified",
2271 "enum" : [
2272 "all",
2273 "any"
2274 ],
2275 "optional" : 1,
2276 "type" : "string"
2277 },
2278 "name" : {
2279 "description" : "Name of the matcher.",
2280 "format" : "pve-configid",
2281 "type" : "string"
2282 },
2283 "target" : {
2284 "description" : "Targets to notify on match",
2285 "items" : {
2286 "format" : "pve-configid",
2287 "type" : "string"
2288 },
2289 "optional" : 1,
2290 "type" : "array"
2291 }
2292 },
2293 "type" : "object"
2294 }
2295 },
2296 "PUT" : {
2297 "allowtoken" : 1,
2298 "description" : "Update existing matcher",
2299 "method" : "PUT",
2300 "name" : "update_matcher",
2301 "parameters" : {
2302 "additionalProperties" : 0,
2303 "properties" : {
2304 "comment" : {
2305 "description" : "Comment",
2306 "optional" : 1,
2307 "type" : "string",
2308 "typetext" : "<string>"
2309 },
2310 "delete" : {
2311 "description" : "A list of settings you want to delete.",
2312 "items" : {
2313 "format" : "pve-configid",
2314 "type" : "string"
2315 },
2316 "optional" : 1,
2317 "type" : "array",
2318 "typetext" : "<array>"
2319 },
2320 "digest" : {
2321 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
2322 "maxLength" : 64,
2323 "optional" : 1,
2324 "type" : "string",
2325 "typetext" : "<string>"
2326 },
2327 "disable" : {
2328 "default" : 0,
2329 "description" : "Disable this matcher",
2330 "optional" : 1,
2331 "type" : "boolean",
2332 "typetext" : "<boolean>"
2333 },
2334 "invert-match" : {
2335 "description" : "Invert match of the whole matcher",
2336 "optional" : 1,
2337 "type" : "boolean",
2338 "typetext" : "<boolean>"
2339 },
2340 "match-calendar" : {
2341 "description" : "Match notification timestamp",
2342 "items" : {
2343 "type" : "string"
2344 },
2345 "optional" : 1,
2346 "type" : "array",
2347 "typetext" : "<array>"
2348 },
2349 "match-field" : {
2350 "description" : "Metadata fields to match (regex or exact match). Must be in the form (regex|exact):<field>=<value>",
2351 "items" : {
2352 "type" : "string"
2353 },
2354 "optional" : 1,
2355 "type" : "array",
2356 "typetext" : "<array>"
2357 },
2358 "match-severity" : {
2359 "description" : "Notification severities to match",
2360 "items" : {
2361 "type" : "string"
2362 },
2363 "optional" : 1,
2364 "type" : "array",
2365 "typetext" : "<array>"
2366 },
2367 "mode" : {
2368 "default" : "all",
2369 "description" : "Choose between 'all' and 'any' for when multiple properties are specified",
2370 "enum" : [
2371 "all",
2372 "any"
2373 ],
2374 "optional" : 1,
2375 "type" : "string"
2376 },
2377 "name" : {
2378 "description" : "Name of the matcher.",
2379 "format" : "pve-configid",
2380 "type" : "string",
2381 "typetext" : "<string>"
2382 },
2383 "target" : {
2384 "description" : "Targets to notify on match",
2385 "items" : {
2386 "format" : "pve-configid",
2387 "type" : "string"
2388 },
2389 "optional" : 1,
2390 "type" : "array",
2391 "typetext" : "<array>"
2392 }
2393 }
2394 },
2395 "permissions" : {
2396 "check" : [
2397 "perm",
2398 "/mapping/notifications",
2399 [
2400 "Mapping.Modify"
2401 ]
2402 ]
2403 },
2404 "protected" : 1,
2405 "returns" : {
2406 "type" : "null"
2407 }
2408 }
2409 },
2410 "leaf" : 1,
2411 "path" : "/cluster/notifications/matchers/{name}",
2412 "text" : "{name}"
2413 }
2414 ],
2415 "info" : {
2416 "GET" : {
2417 "allowtoken" : 1,
2418 "description" : "Returns a list of all matchers",
2419 "method" : "GET",
2420 "name" : "get_matchers",
2421 "parameters" : {
2422 "additionalProperties" : 0
2423 },
2424 "permissions" : {
2425 "check" : [
2426 "or",
2427 [
2428 "perm",
2429 "/mapping/notifications",
2430 [
2431 "Mapping.Modify"
2432 ]
2433 ],
2434 [
2435 "perm",
2436 "/mapping/notifications",
2437 [
2438 "Mapping.Audit"
2439 ]
2440 ],
2441 [
2442 "perm",
2443 "/mapping/notifications",
2444 [
2445 "Mapping.Use"
2446 ]
2447 ]
2448 ]
2449 },
2450 "protected" : 1,
2451 "returns" : {
2452 "items" : {
2453 "properties" : {
2454 "comment" : {
2455 "description" : "Comment",
2456 "optional" : 1,
2457 "type" : "string"
2458 },
2459 "disable" : {
2460 "default" : 0,
2461 "description" : "Disable this matcher",
2462 "optional" : 1,
2463 "type" : "boolean"
2464 },
2465 "invert-match" : {
2466 "description" : "Invert match of the whole matcher",
2467 "optional" : 1,
2468 "type" : "boolean"
2469 },
2470 "match-calendar" : {
2471 "description" : "Match notification timestamp",
2472 "items" : {
2473 "type" : "string"
2474 },
2475 "optional" : 1,
2476 "type" : "array"
2477 },
2478 "match-field" : {
2479 "description" : "Metadata fields to match (regex or exact match). Must be in the form (regex|exact):<field>=<value>",
2480 "items" : {
2481 "type" : "string"
2482 },
2483 "optional" : 1,
2484 "type" : "array"
2485 },
2486 "match-severity" : {
2487 "description" : "Notification severities to match",
2488 "items" : {
2489 "type" : "string"
2490 },
2491 "optional" : 1,
2492 "type" : "array"
2493 },
2494 "mode" : {
2495 "default" : "all",
2496 "description" : "Choose between 'all' and 'any' for when multiple properties are specified",
2497 "enum" : [
2498 "all",
2499 "any"
2500 ],
2501 "optional" : 1,
2502 "type" : "string"
2503 },
2504 "name" : {
2505 "description" : "Name of the matcher.",
2506 "format" : "pve-configid",
2507 "type" : "string"
2508 },
2509 "origin" : {
2510 "description" : "Show if this entry was created by a user or was built-in",
2511 "enum" : [
2512 "user-created",
2513 "builtin",
2514 "modified-builtin"
2515 ],
2516 "type" : "string"
2517 },
2518 "target" : {
2519 "description" : "Targets to notify on match",
2520 "items" : {
2521 "format" : "pve-configid",
2522 "type" : "string"
2523 },
2524 "optional" : 1,
2525 "type" : "array"
2526 }
2527 },
2528 "type" : "object"
2529 },
2530 "links" : [
2531 {
2532 "href" : "{name}",
2533 "rel" : "child"
2534 }
2535 ],
2536 "type" : "array"
2537 }
2538 },
2539 "POST" : {
2540 "allowtoken" : 1,
2541 "description" : "Create a new matcher",
2542 "method" : "POST",
2543 "name" : "create_matcher",
2544 "parameters" : {
2545 "additionalProperties" : 0,
2546 "properties" : {
2547 "comment" : {
2548 "description" : "Comment",
2549 "optional" : 1,
2550 "type" : "string",
2551 "typetext" : "<string>"
2552 },
2553 "disable" : {
2554 "default" : 0,
2555 "description" : "Disable this matcher",
2556 "optional" : 1,
2557 "type" : "boolean",
2558 "typetext" : "<boolean>"
2559 },
2560 "invert-match" : {
2561 "description" : "Invert match of the whole matcher",
2562 "optional" : 1,
2563 "type" : "boolean",
2564 "typetext" : "<boolean>"
2565 },
2566 "match-calendar" : {
2567 "description" : "Match notification timestamp",
2568 "items" : {
2569 "type" : "string"
2570 },
2571 "optional" : 1,
2572 "type" : "array",
2573 "typetext" : "<array>"
2574 },
2575 "match-field" : {
2576 "description" : "Metadata fields to match (regex or exact match). Must be in the form (regex|exact):<field>=<value>",
2577 "items" : {
2578 "type" : "string"
2579 },
2580 "optional" : 1,
2581 "type" : "array",
2582 "typetext" : "<array>"
2583 },
2584 "match-severity" : {
2585 "description" : "Notification severities to match",
2586 "items" : {
2587 "type" : "string"
2588 },
2589 "optional" : 1,
2590 "type" : "array",
2591 "typetext" : "<array>"
2592 },
2593 "mode" : {
2594 "default" : "all",
2595 "description" : "Choose between 'all' and 'any' for when multiple properties are specified",
2596 "enum" : [
2597 "all",
2598 "any"
2599 ],
2600 "optional" : 1,
2601 "type" : "string"
2602 },
2603 "name" : {
2604 "description" : "Name of the matcher.",
2605 "format" : "pve-configid",
2606 "type" : "string",
2607 "typetext" : "<string>"
2608 },
2609 "target" : {
2610 "description" : "Targets to notify on match",
2611 "items" : {
2612 "format" : "pve-configid",
2613 "type" : "string"
2614 },
2615 "optional" : 1,
2616 "type" : "array",
2617 "typetext" : "<array>"
2618 }
2619 }
2620 },
2621 "permissions" : {
2622 "check" : [
2623 "perm",
2624 "/mapping/notifications",
2625 [
2626 "Mapping.Modify"
2627 ]
2628 ]
2629 },
2630 "protected" : 1,
2631 "returns" : {
2632 "type" : "null"
2633 }
2634 }
2635 },
2636 "leaf" : 0,
2637 "path" : "/cluster/notifications/matchers",
2638 "text" : "matchers"
2639 }
2640 ],
2641 "info" : {
2642 "GET" : {
2643 "allowtoken" : 1,
2644 "description" : "Index for notification-related API endpoints.",
2645 "method" : "GET",
2646 "name" : "index",
2647 "parameters" : {
2648 "additionalProperties" : 0
2649 },
2650 "permissions" : {
2651 "user" : "all"
2652 },
2653 "returns" : {
2654 "items" : {
2655 "properties" : {},
2656 "type" : "object"
2657 },
2658 "links" : [
2659 {
2660 "href" : "{name}",
2661 "rel" : "child"
2662 }
2663 ],
2664 "type" : "array"
2665 }
2666 }
2667 },
2668 "leaf" : 0,
2669 "path" : "/cluster/notifications",
2670 "text" : "notifications"
2671 },
2672 {
2673 "children" : [
2674 {
2675 "info" : {
2676 "GET" : {
2677 "allowtoken" : 1,
2678 "description" : "Return the version of the cluster join API available on this node.",
2679 "method" : "GET",
2680 "name" : "join_api_version",
2681 "parameters" : {
2682 "additionalProperties" : 0
2683 },
2684 "permissions" : {
2685 "check" : [
2686 "perm",
2687 "/",
2688 [
2689 "Sys.Audit"
2690 ]
2691 ]
2692 },
2693 "returns" : {
2694 "description" : "Cluster Join API version, currently 1",
2695 "minimum" : 0,
2696 "type" : "integer"
2697 }
2698 }
2699 },
2700 "leaf" : 1,
2701 "path" : "/cluster/config/apiversion",
2702 "text" : "apiversion"
2703 },
2704 {
2705 "children" : [
2706 {
2707 "info" : {
2708 "DELETE" : {
2709 "allowtoken" : 1,
2710 "description" : "Removes a node from the cluster configuration.",
2711 "method" : "DELETE",
2712 "name" : "delnode",
2713 "parameters" : {
2714 "additionalProperties" : 0,
2715 "properties" : {
2716 "node" : {
2717 "description" : "The cluster node name.",
2718 "format" : "pve-node",
2719 "type" : "string",
2720 "typetext" : "<string>"
2721 }
2722 }
2723 },
2724 "protected" : 1,
2725 "returns" : {
2726 "type" : "null"
2727 }
2728 },
2729 "POST" : {
2730 "allowtoken" : 1,
2731 "description" : "Adds a node to the cluster configuration. This call is for internal use.",
2732 "method" : "POST",
2733 "name" : "addnode",
2734 "parameters" : {
2735 "additionalProperties" : 0,
2736 "properties" : {
2737 "apiversion" : {
2738 "description" : "The JOIN_API_VERSION of the new node.",
2739 "optional" : 1,
2740 "type" : "integer",
2741 "typetext" : "<integer>"
2742 },
2743 "force" : {
2744 "description" : "Do not throw error if node already exists.",
2745 "optional" : 1,
2746 "type" : "boolean",
2747 "typetext" : "<boolean>"
2748 },
2749 "link[n]" : {
2750 "description" : "Address and priority information of a single corosync link. (up to 8 links supported; link0..link7)",
2751 "format" : {
2752 "address" : {
2753 "default_key" : 1,
2754 "description" : "Hostname (or IP) of this corosync link address.",
2755 "format" : "address",
2756 "format_description" : "IP",
2757 "type" : "string"
2758 },
2759 "priority" : {
2760 "default" : 0,
2761 "description" : "The priority for the link when knet is used in 'passive' mode (default). Lower value means higher priority. Only valid for cluster create, ignored on node add.",
2762 "maximum" : 255,
2763 "minimum" : 0,
2764 "optional" : 1,
2765 "type" : "integer"
2766 }
2767 },
2768 "optional" : 1,
2769 "type" : "string",
2770 "typetext" : "[address=]<IP> [,priority=<integer>]"
2771 },
2772 "new_node_ip" : {
2773 "description" : "IP Address of node to add. Used as fallback if no links are given.",
2774 "format" : "ip",
2775 "optional" : 1,
2776 "type" : "string",
2777 "typetext" : "<string>"
2778 },
2779 "node" : {
2780 "description" : "The cluster node name.",
2781 "format" : "pve-node",
2782 "type" : "string",
2783 "typetext" : "<string>"
2784 },
2785 "nodeid" : {
2786 "description" : "Node id for this node.",
2787 "minimum" : 1,
2788 "optional" : 1,
2789 "type" : "integer",
2790 "typetext" : "<integer> (1 - N)"
2791 },
2792 "votes" : {
2793 "description" : "Number of votes for this node",
2794 "minimum" : 0,
2795 "optional" : 1,
2796 "type" : "integer",
2797 "typetext" : "<integer> (0 - N)"
2798 }
2799 }
2800 },
2801 "protected" : 1,
2802 "returns" : {
2803 "properties" : {
2804 "corosync_authkey" : {
2805 "type" : "string"
2806 },
2807 "corosync_conf" : {
2808 "type" : "string"
2809 },
2810 "warnings" : {
2811 "items" : {
2812 "type" : "string"
2813 },
2814 "type" : "array"
2815 }
2816 },
2817 "type" : "object"
2818 }
2819 }
2820 },
2821 "leaf" : 1,
2822 "path" : "/cluster/config/nodes/{node}",
2823 "text" : "{node}"
2824 }
2825 ],
2826 "info" : {
2827 "GET" : {
2828 "allowtoken" : 1,
2829 "description" : "Corosync node list.",
2830 "method" : "GET",
2831 "name" : "nodes",
2832 "parameters" : {
2833 "additionalProperties" : 0
2834 },
2835 "permissions" : {
2836 "check" : [
2837 "perm",
2838 "/",
2839 [
2840 "Sys.Audit"
2841 ]
2842 ]
2843 },
2844 "returns" : {
2845 "items" : {
2846 "properties" : {
2847 "node" : {
2848 "type" : "string"
2849 }
2850 },
2851 "type" : "object"
2852 },
2853 "links" : [
2854 {
2855 "href" : "{node}",
2856 "rel" : "child"
2857 }
2858 ],
2859 "type" : "array"
2860 }
2861 }
2862 },
2863 "leaf" : 0,
2864 "path" : "/cluster/config/nodes",
2865 "text" : "nodes"
2866 },
2867 {
2868 "info" : {
2869 "GET" : {
2870 "allowtoken" : 1,
2871 "description" : "Get information needed to join this cluster over the connected node.",
2872 "method" : "GET",
2873 "name" : "join_info",
2874 "parameters" : {
2875 "additionalProperties" : 0,
2876 "properties" : {
2877 "node" : {
2878 "default" : "current connected node",
2879 "description" : "The node for which the joinee gets the nodeinfo. ",
2880 "format" : "pve-node",
2881 "optional" : 1,
2882 "type" : "string",
2883 "typetext" : "<string>"
2884 }
2885 }
2886 },
2887 "permissions" : {
2888 "check" : [
2889 "perm",
2890 "/",
2891 [
2892 "Sys.Audit"
2893 ]
2894 ]
2895 },
2896 "returns" : {
2897 "additionalProperties" : 0,
2898 "properties" : {
2899 "config_digest" : {
2900 "type" : "string"
2901 },
2902 "nodelist" : {
2903 "items" : {
2904 "additionalProperties" : 1,
2905 "properties" : {
2906 "name" : {
2907 "description" : "The cluster node name.",
2908 "format" : "pve-node",
2909 "type" : "string"
2910 },
2911 "nodeid" : {
2912 "description" : "Node id for this node.",
2913 "minimum" : 1,
2914 "optional" : 1,
2915 "type" : "integer"
2916 },
2917 "pve_addr" : {
2918 "format" : "ip",
2919 "type" : "string"
2920 },
2921 "pve_fp" : {
2922 "description" : "Certificate SHA 256 fingerprint.",
2923 "pattern" : "([A-Fa-f0-9]{2}:){31}[A-Fa-f0-9]{2}",
2924 "type" : "string"
2925 },
2926 "quorum_votes" : {
2927 "minimum" : 0,
2928 "type" : "integer"
2929 },
2930 "ring0_addr" : {
2931 "description" : "Address and priority information of a single corosync link. (up to 8 links supported; link0..link7)",
2932 "format" : {
2933 "address" : {
2934 "default_key" : 1,
2935 "description" : "Hostname (or IP) of this corosync link address.",
2936 "format" : "address",
2937 "format_description" : "IP",
2938 "type" : "string"
2939 },
2940 "priority" : {
2941 "default" : 0,
2942 "description" : "The priority for the link when knet is used in 'passive' mode (default). Lower value means higher priority. Only valid for cluster create, ignored on node add.",
2943 "maximum" : 255,
2944 "minimum" : 0,
2945 "optional" : 1,
2946 "type" : "integer"
2947 }
2948 },
2949 "optional" : 1,
2950 "type" : "string"
2951 }
2952 },
2953 "type" : "object"
2954 },
2955 "type" : "array"
2956 },
2957 "preferred_node" : {
2958 "description" : "The cluster node name.",
2959 "format" : "pve-node",
2960 "type" : "string"
2961 },
2962 "totem" : {
2963 "type" : "object"
2964 }
2965 },
2966 "type" : "object"
2967 }
2968 },
2969 "POST" : {
2970 "allowtoken" : 1,
2971 "description" : "Joins this node into an existing cluster. If no links are given, default to IP resolved by node's hostname on single link (fallback fails for clusters with multiple links).",
2972 "method" : "POST",
2973 "name" : "join",
2974 "parameters" : {
2975 "additionalProperties" : 0,
2976 "properties" : {
2977 "fingerprint" : {
2978 "description" : "Certificate SHA 256 fingerprint.",
2979 "pattern" : "([A-Fa-f0-9]{2}:){31}[A-Fa-f0-9]{2}",
2980 "type" : "string"
2981 },
2982 "force" : {
2983 "description" : "Do not throw error if node already exists.",
2984 "optional" : 1,
2985 "type" : "boolean",
2986 "typetext" : "<boolean>"
2987 },
2988 "hostname" : {
2989 "description" : "Hostname (or IP) of an existing cluster member.",
2990 "type" : "string",
2991 "typetext" : "<string>"
2992 },
2993 "link[n]" : {
2994 "description" : "Address and priority information of a single corosync link. (up to 8 links supported; link0..link7)",
2995 "format" : {
2996 "address" : {
2997 "default_key" : 1,
2998 "description" : "Hostname (or IP) of this corosync link address.",
2999 "format" : "address",
3000 "format_description" : "IP",
3001 "type" : "string"
3002 },
3003 "priority" : {
3004 "default" : 0,
3005 "description" : "The priority for the link when knet is used in 'passive' mode (default). Lower value means higher priority. Only valid for cluster create, ignored on node add.",
3006 "maximum" : 255,
3007 "minimum" : 0,
3008 "optional" : 1,
3009 "type" : "integer"
3010 }
3011 },
3012 "optional" : 1,
3013 "type" : "string",
3014 "typetext" : "[address=]<IP> [,priority=<integer>]"
3015 },
3016 "nodeid" : {
3017 "description" : "Node id for this node.",
3018 "minimum" : 1,
3019 "optional" : 1,
3020 "type" : "integer",
3021 "typetext" : "<integer> (1 - N)"
3022 },
3023 "password" : {
3024 "description" : "Superuser (root) password of peer node.",
3025 "maxLength" : 128,
3026 "type" : "string",
3027 "typetext" : "<string>"
3028 },
3029 "votes" : {
3030 "description" : "Number of votes for this node",
3031 "minimum" : 0,
3032 "optional" : 1,
3033 "type" : "integer",
3034 "typetext" : "<integer> (0 - N)"
3035 }
3036 }
3037 },
3038 "protected" : 1,
3039 "returns" : {
3040 "type" : "string"
3041 }
3042 }
3043 },
3044 "leaf" : 1,
3045 "path" : "/cluster/config/join",
3046 "text" : "join"
3047 },
3048 {
3049 "info" : {
3050 "GET" : {
3051 "allowtoken" : 1,
3052 "description" : "Get corosync totem protocol settings.",
3053 "method" : "GET",
3054 "name" : "totem",
3055 "parameters" : {
3056 "additionalProperties" : 0
3057 },
3058 "permissions" : {
3059 "check" : [
3060 "perm",
3061 "/",
3062 [
3063 "Sys.Audit"
3064 ]
3065 ]
3066 },
3067 "returns" : {
3068 "type" : "object"
3069 }
3070 }
3071 },
3072 "leaf" : 1,
3073 "path" : "/cluster/config/totem",
3074 "text" : "totem"
3075 },
3076 {
3077 "info" : {
3078 "GET" : {
3079 "allowtoken" : 1,
3080 "description" : "Get QDevice status",
3081 "method" : "GET",
3082 "name" : "status",
3083 "parameters" : {
3084 "additionalProperties" : 0
3085 },
3086 "permissions" : {
3087 "check" : [
3088 "perm",
3089 "/",
3090 [
3091 "Sys.Audit"
3092 ]
3093 ]
3094 },
3095 "protected" : 1,
3096 "returns" : {
3097 "type" : "object"
3098 }
3099 }
3100 },
3101 "leaf" : 1,
3102 "path" : "/cluster/config/qdevice",
3103 "text" : "qdevice"
3104 }
3105 ],
3106 "info" : {
3107 "GET" : {
3108 "allowtoken" : 1,
3109 "description" : "Directory index.",
3110 "method" : "GET",
3111 "name" : "index",
3112 "parameters" : {
3113 "additionalProperties" : 0
3114 },
3115 "permissions" : {
3116 "check" : [
3117 "perm",
3118 "/",
3119 [
3120 "Sys.Audit"
3121 ]
3122 ]
3123 },
3124 "returns" : {
3125 "items" : {
3126 "properties" : {},
3127 "type" : "object"
3128 },
3129 "links" : [
3130 {
3131 "href" : "{name}",
3132 "rel" : "child"
3133 }
3134 ],
3135 "type" : "array"
3136 }
3137 },
3138 "POST" : {
3139 "allowtoken" : 1,
3140 "description" : "Generate new cluster configuration. If no links given, default to local IP address as link0.",
3141 "method" : "POST",
3142 "name" : "create",
3143 "parameters" : {
3144 "additionalProperties" : 0,
3145 "properties" : {
3146 "clustername" : {
3147 "description" : "The name of the cluster.",
3148 "format" : "pve-node",
3149 "maxLength" : 15,
3150 "type" : "string",
3151 "typetext" : "<string>"
3152 },
3153 "link[n]" : {
3154 "description" : "Address and priority information of a single corosync link. (up to 8 links supported; link0..link7)",
3155 "format" : {
3156 "address" : {
3157 "default_key" : 1,
3158 "description" : "Hostname (or IP) of this corosync link address.",
3159 "format" : "address",
3160 "format_description" : "IP",
3161 "type" : "string"
3162 },
3163 "priority" : {
3164 "default" : 0,
3165 "description" : "The priority for the link when knet is used in 'passive' mode (default). Lower value means higher priority. Only valid for cluster create, ignored on node add.",
3166 "maximum" : 255,
3167 "minimum" : 0,
3168 "optional" : 1,
3169 "type" : "integer"
3170 }
3171 },
3172 "optional" : 1,
3173 "type" : "string",
3174 "typetext" : "[address=]<IP> [,priority=<integer>]"
3175 },
3176 "nodeid" : {
3177 "description" : "Node id for this node.",
3178 "minimum" : 1,
3179 "optional" : 1,
3180 "type" : "integer",
3181 "typetext" : "<integer> (1 - N)"
3182 },
3183 "votes" : {
3184 "description" : "Number of votes for this node.",
3185 "minimum" : 1,
3186 "optional" : 1,
3187 "type" : "integer",
3188 "typetext" : "<integer> (1 - N)"
3189 }
3190 }
3191 },
3192 "protected" : 1,
3193 "returns" : {
3194 "type" : "string"
3195 }
3196 }
3197 },
3198 "leaf" : 0,
3199 "path" : "/cluster/config",
3200 "text" : "config"
3201 },
3202 {
3203 "children" : [
3204 {
3205 "children" : [
3206 {
3207 "children" : [
3208 {
3209 "info" : {
3210 "DELETE" : {
3211 "allowtoken" : 1,
3212 "description" : "Delete rule.",
3213 "method" : "DELETE",
3214 "name" : "delete_rule",
3215 "parameters" : {
3216 "additionalProperties" : 0,
3217 "properties" : {
3218 "digest" : {
3219 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
3220 "maxLength" : 64,
3221 "optional" : 1,
3222 "type" : "string",
3223 "typetext" : "<string>"
3224 },
3225 "group" : {
3226 "description" : "Security Group name.",
3227 "maxLength" : 18,
3228 "minLength" : 2,
3229 "pattern" : "[A-Za-z][A-Za-z0-9\\-\\_]+",
3230 "type" : "string"
3231 },
3232 "pos" : {
3233 "description" : "Update rule at position <pos>.",
3234 "minimum" : 0,
3235 "optional" : 1,
3236 "type" : "integer",
3237 "typetext" : "<integer> (0 - N)"
3238 }
3239 }
3240 },
3241 "permissions" : {
3242 "check" : [
3243 "perm",
3244 "/",
3245 [
3246 "Sys.Modify"
3247 ]
3248 ]
3249 },
3250 "protected" : 1,
3251 "proxyto" : null,
3252 "returns" : {
3253 "type" : "null"
3254 }
3255 },
3256 "GET" : {
3257 "allowtoken" : 1,
3258 "description" : "Get single rule data.",
3259 "method" : "GET",
3260 "name" : "get_rule",
3261 "parameters" : {
3262 "additionalProperties" : 0,
3263 "properties" : {
3264 "group" : {
3265 "description" : "Security Group name.",
3266 "maxLength" : 18,
3267 "minLength" : 2,
3268 "pattern" : "[A-Za-z][A-Za-z0-9\\-\\_]+",
3269 "type" : "string"
3270 },
3271 "pos" : {
3272 "description" : "Update rule at position <pos>.",
3273 "minimum" : 0,
3274 "optional" : 1,
3275 "type" : "integer",
3276 "typetext" : "<integer> (0 - N)"
3277 }
3278 }
3279 },
3280 "permissions" : {
3281 "check" : [
3282 "perm",
3283 "/",
3284 [
3285 "Sys.Audit"
3286 ]
3287 ]
3288 },
3289 "proxyto" : null,
3290 "returns" : {
3291 "properties" : {
3292 "action" : {
3293 "type" : "string"
3294 },
3295 "comment" : {
3296 "optional" : 1,
3297 "type" : "string"
3298 },
3299 "dest" : {
3300 "optional" : 1,
3301 "type" : "string"
3302 },
3303 "dport" : {
3304 "optional" : 1,
3305 "type" : "string"
3306 },
3307 "enable" : {
3308 "optional" : 1,
3309 "type" : "integer"
3310 },
3311 "icmp-type" : {
3312 "optional" : 1,
3313 "type" : "string"
3314 },
3315 "iface" : {
3316 "optional" : 1,
3317 "type" : "string"
3318 },
3319 "ipversion" : {
3320 "optional" : 1,
3321 "type" : "integer"
3322 },
3323 "log" : {
3324 "description" : "Log level for firewall rule",
3325 "enum" : [
3326 "emerg",
3327 "alert",
3328 "crit",
3329 "err",
3330 "warning",
3331 "notice",
3332 "info",
3333 "debug",
3334 "nolog"
3335 ],
3336 "optional" : 1,
3337 "type" : "string"
3338 },
3339 "macro" : {
3340 "optional" : 1,
3341 "type" : "string"
3342 },
3343 "pos" : {
3344 "type" : "integer"
3345 },
3346 "proto" : {
3347 "optional" : 1,
3348 "type" : "string"
3349 },
3350 "source" : {
3351 "optional" : 1,
3352 "type" : "string"
3353 },
3354 "sport" : {
3355 "optional" : 1,
3356 "type" : "string"
3357 },
3358 "type" : {
3359 "type" : "string"
3360 }
3361 },
3362 "type" : "object"
3363 }
3364 },
3365 "PUT" : {
3366 "allowtoken" : 1,
3367 "description" : "Modify rule data.",
3368 "method" : "PUT",
3369 "name" : "update_rule",
3370 "parameters" : {
3371 "additionalProperties" : 0,
3372 "properties" : {
3373 "action" : {
3374 "description" : "Rule action ('ACCEPT', 'DROP', 'REJECT') or security group name.",
3375 "maxLength" : 20,
3376 "minLength" : 2,
3377 "optional" : 1,
3378 "pattern" : "[A-Za-z][A-Za-z0-9\\-\\_]+",
3379 "type" : "string"
3380 },
3381 "comment" : {
3382 "description" : "Descriptive comment.",
3383 "optional" : 1,
3384 "type" : "string",
3385 "typetext" : "<string>"
3386 },
3387 "delete" : {
3388 "description" : "A list of settings you want to delete.",
3389 "format" : "pve-configid-list",
3390 "optional" : 1,
3391 "type" : "string",
3392 "typetext" : "<string>"
3393 },
3394 "dest" : {
3395 "description" : "Restrict packet destination address. This can refer to a single IP address, an IP set ('+ipsetname') or an IP alias definition. You can also specify an address range like '20.34.101.207-201.3.9.99', or a list of IP addresses and networks (entries are separated by comma). Please do not mix IPv4 and IPv6 addresses inside such lists.",
3396 "format" : "pve-fw-addr-spec",
3397 "maxLength" : 512,
3398 "optional" : 1,
3399 "type" : "string",
3400 "typetext" : "<string>"
3401 },
3402 "digest" : {
3403 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
3404 "maxLength" : 64,
3405 "optional" : 1,
3406 "type" : "string",
3407 "typetext" : "<string>"
3408 },
3409 "dport" : {
3410 "description" : "Restrict TCP/UDP destination port. You can use service names or simple numbers (0-65535), as defined in '/etc/services'. Port ranges can be specified with '\\d+:\\d+', for example '80:85', and you can use comma separated list to match several ports or ranges.",
3411 "format" : "pve-fw-dport-spec",
3412 "optional" : 1,
3413 "type" : "string",
3414 "typetext" : "<string>"
3415 },
3416 "enable" : {
3417 "description" : "Flag to enable/disable a rule.",
3418 "minimum" : 0,
3419 "optional" : 1,
3420 "type" : "integer",
3421 "typetext" : "<integer> (0 - N)"
3422 },
3423 "group" : {
3424 "description" : "Security Group name.",
3425 "maxLength" : 18,
3426 "minLength" : 2,
3427 "pattern" : "[A-Za-z][A-Za-z0-9\\-\\_]+",
3428 "type" : "string"
3429 },
3430 "icmp-type" : {
3431 "description" : "Specify icmp-type. Only valid if proto equals 'icmp' or 'icmpv6'/'ipv6-icmp'.",
3432 "format" : "pve-fw-icmp-type-spec",
3433 "optional" : 1,
3434 "type" : "string",
3435 "typetext" : "<string>"
3436 },
3437 "iface" : {
3438 "description" : "Network interface name. You have to use network configuration key names for VMs and containers ('net\\d+'). Host related rules can use arbitrary strings.",
3439 "format" : "pve-iface",
3440 "maxLength" : 20,
3441 "minLength" : 2,
3442 "optional" : 1,
3443 "type" : "string",
3444 "typetext" : "<string>"
3445 },
3446 "log" : {
3447 "description" : "Log level for firewall rule.",
3448 "enum" : [
3449 "emerg",
3450 "alert",
3451 "crit",
3452 "err",
3453 "warning",
3454 "notice",
3455 "info",
3456 "debug",
3457 "nolog"
3458 ],
3459 "optional" : 1,
3460 "type" : "string"
3461 },
3462 "macro" : {
3463 "description" : "Use predefined standard macro.",
3464 "maxLength" : 128,
3465 "optional" : 1,
3466 "type" : "string",
3467 "typetext" : "<string>"
3468 },
3469 "moveto" : {
3470 "description" : "Move rule to new position <moveto>. Other arguments are ignored.",
3471 "minimum" : 0,
3472 "optional" : 1,
3473 "type" : "integer",
3474 "typetext" : "<integer> (0 - N)"
3475 },
3476 "pos" : {
3477 "description" : "Update rule at position <pos>.",
3478 "minimum" : 0,
3479 "optional" : 1,
3480 "type" : "integer",
3481 "typetext" : "<integer> (0 - N)"
3482 },
3483 "proto" : {
3484 "description" : "IP protocol. You can use protocol names ('tcp'/'udp') or simple numbers, as defined in '/etc/protocols'.",
3485 "format" : "pve-fw-protocol-spec",
3486 "optional" : 1,
3487 "type" : "string",
3488 "typetext" : "<string>"
3489 },
3490 "source" : {
3491 "description" : "Restrict packet source address. This can refer to a single IP address, an IP set ('+ipsetname') or an IP alias definition. You can also specify an address range like '20.34.101.207-201.3.9.99', or a list of IP addresses and networks (entries are separated by comma). Please do not mix IPv4 and IPv6 addresses inside such lists.",
3492 "format" : "pve-fw-addr-spec",
3493 "maxLength" : 512,
3494 "optional" : 1,
3495 "type" : "string",
3496 "typetext" : "<string>"
3497 },
3498 "sport" : {
3499 "description" : "Restrict TCP/UDP source port. You can use service names or simple numbers (0-65535), as defined in '/etc/services'. Port ranges can be specified with '\\d+:\\d+', for example '80:85', and you can use comma separated list to match several ports or ranges.",
3500 "format" : "pve-fw-sport-spec",
3501 "optional" : 1,
3502 "type" : "string",
3503 "typetext" : "<string>"
3504 },
3505 "type" : {
3506 "description" : "Rule type.",
3507 "enum" : [
3508 "in",
3509 "out",
3510 "group"
3511 ],
3512 "optional" : 1,
3513 "type" : "string"
3514 }
3515 }
3516 },
3517 "permissions" : {
3518 "check" : [
3519 "perm",
3520 "/",
3521 [
3522 "Sys.Modify"
3523 ]
3524 ]
3525 },
3526 "protected" : 1,
3527 "proxyto" : null,
3528 "returns" : {
3529 "type" : "null"
3530 }
3531 }
3532 },
3533 "leaf" : 1,
3534 "path" : "/cluster/firewall/groups/{group}/{pos}",
3535 "text" : "{pos}"
3536 }
3537 ],
3538 "info" : {
3539 "DELETE" : {
3540 "allowtoken" : 1,
3541 "description" : "Delete security group.",
3542 "method" : "DELETE",
3543 "name" : "delete_security_group",
3544 "parameters" : {
3545 "additionalProperties" : 0,
3546 "properties" : {
3547 "group" : {
3548 "description" : "Security Group name.",
3549 "maxLength" : 18,
3550 "minLength" : 2,
3551 "pattern" : "[A-Za-z][A-Za-z0-9\\-\\_]+",
3552 "type" : "string"
3553 }
3554 }
3555 },
3556 "permissions" : {
3557 "check" : [
3558 "perm",
3559 "/",
3560 [
3561 "Sys.Modify"
3562 ]
3563 ]
3564 },
3565 "protected" : 1,
3566 "returns" : {
3567 "type" : "null"
3568 }
3569 },
3570 "GET" : {
3571 "allowtoken" : 1,
3572 "description" : "List rules.",
3573 "method" : "GET",
3574 "name" : "get_rules",
3575 "parameters" : {
3576 "additionalProperties" : 0,
3577 "properties" : {
3578 "group" : {
3579 "description" : "Security Group name.",
3580 "maxLength" : 18,
3581 "minLength" : 2,
3582 "pattern" : "[A-Za-z][A-Za-z0-9\\-\\_]+",
3583 "type" : "string"
3584 }
3585 }
3586 },
3587 "permissions" : {
3588 "check" : [
3589 "perm",
3590 "/",
3591 [
3592 "Sys.Audit"
3593 ]
3594 ]
3595 },
3596 "proxyto" : null,
3597 "returns" : {
3598 "items" : {
3599 "properties" : {
3600 "pos" : {
3601 "type" : "integer"
3602 }
3603 },
3604 "type" : "object"
3605 },
3606 "links" : [
3607 {
3608 "href" : "{pos}",
3609 "rel" : "child"
3610 }
3611 ],
3612 "type" : "array"
3613 }
3614 },
3615 "POST" : {
3616 "allowtoken" : 1,
3617 "description" : "Create new rule.",
3618 "method" : "POST",
3619 "name" : "create_rule",
3620 "parameters" : {
3621 "additionalProperties" : 0,
3622 "properties" : {
3623 "action" : {
3624 "description" : "Rule action ('ACCEPT', 'DROP', 'REJECT') or security group name.",
3625 "maxLength" : 20,
3626 "minLength" : 2,
3627 "optional" : 0,
3628 "pattern" : "[A-Za-z][A-Za-z0-9\\-\\_]+",
3629 "type" : "string"
3630 },
3631 "comment" : {
3632 "description" : "Descriptive comment.",
3633 "optional" : 1,
3634 "type" : "string",
3635 "typetext" : "<string>"
3636 },
3637 "dest" : {
3638 "description" : "Restrict packet destination address. This can refer to a single IP address, an IP set ('+ipsetname') or an IP alias definition. You can also specify an address range like '20.34.101.207-201.3.9.99', or a list of IP addresses and networks (entries are separated by comma). Please do not mix IPv4 and IPv6 addresses inside such lists.",
3639 "format" : "pve-fw-addr-spec",
3640 "maxLength" : 512,
3641 "optional" : 1,
3642 "type" : "string",
3643 "typetext" : "<string>"
3644 },
3645 "digest" : {
3646 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
3647 "maxLength" : 64,
3648 "optional" : 1,
3649 "type" : "string",
3650 "typetext" : "<string>"
3651 },
3652 "dport" : {
3653 "description" : "Restrict TCP/UDP destination port. You can use service names or simple numbers (0-65535), as defined in '/etc/services'. Port ranges can be specified with '\\d+:\\d+', for example '80:85', and you can use comma separated list to match several ports or ranges.",
3654 "format" : "pve-fw-dport-spec",
3655 "optional" : 1,
3656 "type" : "string",
3657 "typetext" : "<string>"
3658 },
3659 "enable" : {
3660 "description" : "Flag to enable/disable a rule.",
3661 "minimum" : 0,
3662 "optional" : 1,
3663 "type" : "integer",
3664 "typetext" : "<integer> (0 - N)"
3665 },
3666 "group" : {
3667 "description" : "Security Group name.",
3668 "maxLength" : 18,
3669 "minLength" : 2,
3670 "pattern" : "[A-Za-z][A-Za-z0-9\\-\\_]+",
3671 "type" : "string"
3672 },
3673 "icmp-type" : {
3674 "description" : "Specify icmp-type. Only valid if proto equals 'icmp' or 'icmpv6'/'ipv6-icmp'.",
3675 "format" : "pve-fw-icmp-type-spec",
3676 "optional" : 1,
3677 "type" : "string",
3678 "typetext" : "<string>"
3679 },
3680 "iface" : {
3681 "description" : "Network interface name. You have to use network configuration key names for VMs and containers ('net\\d+'). Host related rules can use arbitrary strings.",
3682 "format" : "pve-iface",
3683 "maxLength" : 20,
3684 "minLength" : 2,
3685 "optional" : 1,
3686 "type" : "string",
3687 "typetext" : "<string>"
3688 },
3689 "log" : {
3690 "description" : "Log level for firewall rule.",
3691 "enum" : [
3692 "emerg",
3693 "alert",
3694 "crit",
3695 "err",
3696 "warning",
3697 "notice",
3698 "info",
3699 "debug",
3700 "nolog"
3701 ],
3702 "optional" : 1,
3703 "type" : "string"
3704 },
3705 "macro" : {
3706 "description" : "Use predefined standard macro.",
3707 "maxLength" : 128,
3708 "optional" : 1,
3709 "type" : "string",
3710 "typetext" : "<string>"
3711 },
3712 "pos" : {
3713 "description" : "Update rule at position <pos>.",
3714 "minimum" : 0,
3715 "optional" : 1,
3716 "type" : "integer",
3717 "typetext" : "<integer> (0 - N)"
3718 },
3719 "proto" : {
3720 "description" : "IP protocol. You can use protocol names ('tcp'/'udp') or simple numbers, as defined in '/etc/protocols'.",
3721 "format" : "pve-fw-protocol-spec",
3722 "optional" : 1,
3723 "type" : "string",
3724 "typetext" : "<string>"
3725 },
3726 "source" : {
3727 "description" : "Restrict packet source address. This can refer to a single IP address, an IP set ('+ipsetname') or an IP alias definition. You can also specify an address range like '20.34.101.207-201.3.9.99', or a list of IP addresses and networks (entries are separated by comma). Please do not mix IPv4 and IPv6 addresses inside such lists.",
3728 "format" : "pve-fw-addr-spec",
3729 "maxLength" : 512,
3730 "optional" : 1,
3731 "type" : "string",
3732 "typetext" : "<string>"
3733 },
3734 "sport" : {
3735 "description" : "Restrict TCP/UDP source port. You can use service names or simple numbers (0-65535), as defined in '/etc/services'. Port ranges can be specified with '\\d+:\\d+', for example '80:85', and you can use comma separated list to match several ports or ranges.",
3736 "format" : "pve-fw-sport-spec",
3737 "optional" : 1,
3738 "type" : "string",
3739 "typetext" : "<string>"
3740 },
3741 "type" : {
3742 "description" : "Rule type.",
3743 "enum" : [
3744 "in",
3745 "out",
3746 "group"
3747 ],
3748 "optional" : 0,
3749 "type" : "string"
3750 }
3751 }
3752 },
3753 "permissions" : {
3754 "check" : [
3755 "perm",
3756 "/",
3757 [
3758 "Sys.Modify"
3759 ]
3760 ]
3761 },
3762 "protected" : 1,
3763 "proxyto" : null,
3764 "returns" : {
3765 "type" : "null"
3766 }
3767 }
3768 },
3769 "leaf" : 0,
3770 "path" : "/cluster/firewall/groups/{group}",
3771 "text" : "{group}"
3772 }
3773 ],
3774 "info" : {
3775 "GET" : {
3776 "allowtoken" : 1,
3777 "description" : "List security groups.",
3778 "method" : "GET",
3779 "name" : "list_security_groups",
3780 "parameters" : {
3781 "additionalProperties" : 0
3782 },
3783 "permissions" : {
3784 "user" : "all"
3785 },
3786 "returns" : {
3787 "items" : {
3788 "properties" : {
3789 "comment" : {
3790 "optional" : 1,
3791 "type" : "string"
3792 },
3793 "digest" : {
3794 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
3795 "maxLength" : 64,
3796 "optional" : 0,
3797 "type" : "string"
3798 },
3799 "group" : {
3800 "description" : "Security Group name.",
3801 "maxLength" : 18,
3802 "minLength" : 2,
3803 "pattern" : "[A-Za-z][A-Za-z0-9\\-\\_]+",
3804 "type" : "string"
3805 }
3806 },
3807 "type" : "object"
3808 },
3809 "links" : [
3810 {
3811 "href" : "{group}",
3812 "rel" : "child"
3813 }
3814 ],
3815 "type" : "array"
3816 }
3817 },
3818 "POST" : {
3819 "allowtoken" : 1,
3820 "description" : "Create new security group.",
3821 "method" : "POST",
3822 "name" : "create_security_group",
3823 "parameters" : {
3824 "additionalProperties" : 0,
3825 "properties" : {
3826 "comment" : {
3827 "optional" : 1,
3828 "type" : "string",
3829 "typetext" : "<string>"
3830 },
3831 "digest" : {
3832 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
3833 "maxLength" : 64,
3834 "optional" : 1,
3835 "type" : "string",
3836 "typetext" : "<string>"
3837 },
3838 "group" : {
3839 "description" : "Security Group name.",
3840 "maxLength" : 18,
3841 "minLength" : 2,
3842 "pattern" : "[A-Za-z][A-Za-z0-9\\-\\_]+",
3843 "type" : "string"
3844 },
3845 "rename" : {
3846 "description" : "Rename/update an existing security group. You can set 'rename' to the same value as 'name' to update the 'comment' of an existing group.",
3847 "maxLength" : 18,
3848 "minLength" : 2,
3849 "optional" : 1,
3850 "pattern" : "[A-Za-z][A-Za-z0-9\\-\\_]+",
3851 "type" : "string"
3852 }
3853 }
3854 },
3855 "permissions" : {
3856 "check" : [
3857 "perm",
3858 "/",
3859 [
3860 "Sys.Modify"
3861 ]
3862 ]
3863 },
3864 "protected" : 1,
3865 "returns" : {
3866 "type" : "null"
3867 }
3868 }
3869 },
3870 "leaf" : 0,
3871 "path" : "/cluster/firewall/groups",
3872 "text" : "groups"
3873 },
3874 {
3875 "children" : [
3876 {
3877 "info" : {
3878 "DELETE" : {
3879 "allowtoken" : 1,
3880 "description" : "Delete rule.",
3881 "method" : "DELETE",
3882 "name" : "delete_rule",
3883 "parameters" : {
3884 "additionalProperties" : 0,
3885 "properties" : {
3886 "digest" : {
3887 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
3888 "maxLength" : 64,
3889 "optional" : 1,
3890 "type" : "string",
3891 "typetext" : "<string>"
3892 },
3893 "pos" : {
3894 "description" : "Update rule at position <pos>.",
3895 "minimum" : 0,
3896 "optional" : 1,
3897 "type" : "integer",
3898 "typetext" : "<integer> (0 - N)"
3899 }
3900 }
3901 },
3902 "permissions" : {
3903 "check" : [
3904 "perm",
3905 "/",
3906 [
3907 "Sys.Modify"
3908 ]
3909 ]
3910 },
3911 "protected" : 1,
3912 "proxyto" : null,
3913 "returns" : {
3914 "type" : "null"
3915 }
3916 },
3917 "GET" : {
3918 "allowtoken" : 1,
3919 "description" : "Get single rule data.",
3920 "method" : "GET",
3921 "name" : "get_rule",
3922 "parameters" : {
3923 "additionalProperties" : 0,
3924 "properties" : {
3925 "pos" : {
3926 "description" : "Update rule at position <pos>.",
3927 "minimum" : 0,
3928 "optional" : 1,
3929 "type" : "integer",
3930 "typetext" : "<integer> (0 - N)"
3931 }
3932 }
3933 },
3934 "permissions" : {
3935 "check" : [
3936 "perm",
3937 "/",
3938 [
3939 "Sys.Audit"
3940 ]
3941 ]
3942 },
3943 "proxyto" : null,
3944 "returns" : {
3945 "properties" : {
3946 "action" : {
3947 "type" : "string"
3948 },
3949 "comment" : {
3950 "optional" : 1,
3951 "type" : "string"
3952 },
3953 "dest" : {
3954 "optional" : 1,
3955 "type" : "string"
3956 },
3957 "dport" : {
3958 "optional" : 1,
3959 "type" : "string"
3960 },
3961 "enable" : {
3962 "optional" : 1,
3963 "type" : "integer"
3964 },
3965 "icmp-type" : {
3966 "optional" : 1,
3967 "type" : "string"
3968 },
3969 "iface" : {
3970 "optional" : 1,
3971 "type" : "string"
3972 },
3973 "ipversion" : {
3974 "optional" : 1,
3975 "type" : "integer"
3976 },
3977 "log" : {
3978 "description" : "Log level for firewall rule",
3979 "enum" : [
3980 "emerg",
3981 "alert",
3982 "crit",
3983 "err",
3984 "warning",
3985 "notice",
3986 "info",
3987 "debug",
3988 "nolog"
3989 ],
3990 "optional" : 1,
3991 "type" : "string"
3992 },
3993 "macro" : {
3994 "optional" : 1,
3995 "type" : "string"
3996 },
3997 "pos" : {
3998 "type" : "integer"
3999 },
4000 "proto" : {
4001 "optional" : 1,
4002 "type" : "string"
4003 },
4004 "source" : {
4005 "optional" : 1,
4006 "type" : "string"
4007 },
4008 "sport" : {
4009 "optional" : 1,
4010 "type" : "string"
4011 },
4012 "type" : {
4013 "type" : "string"
4014 }
4015 },
4016 "type" : "object"
4017 }
4018 },
4019 "PUT" : {
4020 "allowtoken" : 1,
4021 "description" : "Modify rule data.",
4022 "method" : "PUT",
4023 "name" : "update_rule",
4024 "parameters" : {
4025 "additionalProperties" : 0,
4026 "properties" : {
4027 "action" : {
4028 "description" : "Rule action ('ACCEPT', 'DROP', 'REJECT') or security group name.",
4029 "maxLength" : 20,
4030 "minLength" : 2,
4031 "optional" : 1,
4032 "pattern" : "[A-Za-z][A-Za-z0-9\\-\\_]+",
4033 "type" : "string"
4034 },
4035 "comment" : {
4036 "description" : "Descriptive comment.",
4037 "optional" : 1,
4038 "type" : "string",
4039 "typetext" : "<string>"
4040 },
4041 "delete" : {
4042 "description" : "A list of settings you want to delete.",
4043 "format" : "pve-configid-list",
4044 "optional" : 1,
4045 "type" : "string",
4046 "typetext" : "<string>"
4047 },
4048 "dest" : {
4049 "description" : "Restrict packet destination address. This can refer to a single IP address, an IP set ('+ipsetname') or an IP alias definition. You can also specify an address range like '20.34.101.207-201.3.9.99', or a list of IP addresses and networks (entries are separated by comma). Please do not mix IPv4 and IPv6 addresses inside such lists.",
4050 "format" : "pve-fw-addr-spec",
4051 "maxLength" : 512,
4052 "optional" : 1,
4053 "type" : "string",
4054 "typetext" : "<string>"
4055 },
4056 "digest" : {
4057 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
4058 "maxLength" : 64,
4059 "optional" : 1,
4060 "type" : "string",
4061 "typetext" : "<string>"
4062 },
4063 "dport" : {
4064 "description" : "Restrict TCP/UDP destination port. You can use service names or simple numbers (0-65535), as defined in '/etc/services'. Port ranges can be specified with '\\d+:\\d+', for example '80:85', and you can use comma separated list to match several ports or ranges.",
4065 "format" : "pve-fw-dport-spec",
4066 "optional" : 1,
4067 "type" : "string",
4068 "typetext" : "<string>"
4069 },
4070 "enable" : {
4071 "description" : "Flag to enable/disable a rule.",
4072 "minimum" : 0,
4073 "optional" : 1,
4074 "type" : "integer",
4075 "typetext" : "<integer> (0 - N)"
4076 },
4077 "icmp-type" : {
4078 "description" : "Specify icmp-type. Only valid if proto equals 'icmp' or 'icmpv6'/'ipv6-icmp'.",
4079 "format" : "pve-fw-icmp-type-spec",
4080 "optional" : 1,
4081 "type" : "string",
4082 "typetext" : "<string>"
4083 },
4084 "iface" : {
4085 "description" : "Network interface name. You have to use network configuration key names for VMs and containers ('net\\d+'). Host related rules can use arbitrary strings.",
4086 "format" : "pve-iface",
4087 "maxLength" : 20,
4088 "minLength" : 2,
4089 "optional" : 1,
4090 "type" : "string",
4091 "typetext" : "<string>"
4092 },
4093 "log" : {
4094 "description" : "Log level for firewall rule.",
4095 "enum" : [
4096 "emerg",
4097 "alert",
4098 "crit",
4099 "err",
4100 "warning",
4101 "notice",
4102 "info",
4103 "debug",
4104 "nolog"
4105 ],
4106 "optional" : 1,
4107 "type" : "string"
4108 },
4109 "macro" : {
4110 "description" : "Use predefined standard macro.",
4111 "maxLength" : 128,
4112 "optional" : 1,
4113 "type" : "string",
4114 "typetext" : "<string>"
4115 },
4116 "moveto" : {
4117 "description" : "Move rule to new position <moveto>. Other arguments are ignored.",
4118 "minimum" : 0,
4119 "optional" : 1,
4120 "type" : "integer",
4121 "typetext" : "<integer> (0 - N)"
4122 },
4123 "pos" : {
4124 "description" : "Update rule at position <pos>.",
4125 "minimum" : 0,
4126 "optional" : 1,
4127 "type" : "integer",
4128 "typetext" : "<integer> (0 - N)"
4129 },
4130 "proto" : {
4131 "description" : "IP protocol. You can use protocol names ('tcp'/'udp') or simple numbers, as defined in '/etc/protocols'.",
4132 "format" : "pve-fw-protocol-spec",
4133 "optional" : 1,
4134 "type" : "string",
4135 "typetext" : "<string>"
4136 },
4137 "source" : {
4138 "description" : "Restrict packet source address. This can refer to a single IP address, an IP set ('+ipsetname') or an IP alias definition. You can also specify an address range like '20.34.101.207-201.3.9.99', or a list of IP addresses and networks (entries are separated by comma). Please do not mix IPv4 and IPv6 addresses inside such lists.",
4139 "format" : "pve-fw-addr-spec",
4140 "maxLength" : 512,
4141 "optional" : 1,
4142 "type" : "string",
4143 "typetext" : "<string>"
4144 },
4145 "sport" : {
4146 "description" : "Restrict TCP/UDP source port. You can use service names or simple numbers (0-65535), as defined in '/etc/services'. Port ranges can be specified with '\\d+:\\d+', for example '80:85', and you can use comma separated list to match several ports or ranges.",
4147 "format" : "pve-fw-sport-spec",
4148 "optional" : 1,
4149 "type" : "string",
4150 "typetext" : "<string>"
4151 },
4152 "type" : {
4153 "description" : "Rule type.",
4154 "enum" : [
4155 "in",
4156 "out",
4157 "group"
4158 ],
4159 "optional" : 1,
4160 "type" : "string"
4161 }
4162 }
4163 },
4164 "permissions" : {
4165 "check" : [
4166 "perm",
4167 "/",
4168 [
4169 "Sys.Modify"
4170 ]
4171 ]
4172 },
4173 "protected" : 1,
4174 "proxyto" : null,
4175 "returns" : {
4176 "type" : "null"
4177 }
4178 }
4179 },
4180 "leaf" : 1,
4181 "path" : "/cluster/firewall/rules/{pos}",
4182 "text" : "{pos}"
4183 }
4184 ],
4185 "info" : {
4186 "GET" : {
4187 "allowtoken" : 1,
4188 "description" : "List rules.",
4189 "method" : "GET",
4190 "name" : "get_rules",
4191 "parameters" : {
4192 "additionalProperties" : 0
4193 },
4194 "permissions" : {
4195 "check" : [
4196 "perm",
4197 "/",
4198 [
4199 "Sys.Audit"
4200 ]
4201 ]
4202 },
4203 "proxyto" : null,
4204 "returns" : {
4205 "items" : {
4206 "properties" : {
4207 "pos" : {
4208 "type" : "integer"
4209 }
4210 },
4211 "type" : "object"
4212 },
4213 "links" : [
4214 {
4215 "href" : "{pos}",
4216 "rel" : "child"
4217 }
4218 ],
4219 "type" : "array"
4220 }
4221 },
4222 "POST" : {
4223 "allowtoken" : 1,
4224 "description" : "Create new rule.",
4225 "method" : "POST",
4226 "name" : "create_rule",
4227 "parameters" : {
4228 "additionalProperties" : 0,
4229 "properties" : {
4230 "action" : {
4231 "description" : "Rule action ('ACCEPT', 'DROP', 'REJECT') or security group name.",
4232 "maxLength" : 20,
4233 "minLength" : 2,
4234 "optional" : 0,
4235 "pattern" : "[A-Za-z][A-Za-z0-9\\-\\_]+",
4236 "type" : "string"
4237 },
4238 "comment" : {
4239 "description" : "Descriptive comment.",
4240 "optional" : 1,
4241 "type" : "string",
4242 "typetext" : "<string>"
4243 },
4244 "dest" : {
4245 "description" : "Restrict packet destination address. This can refer to a single IP address, an IP set ('+ipsetname') or an IP alias definition. You can also specify an address range like '20.34.101.207-201.3.9.99', or a list of IP addresses and networks (entries are separated by comma). Please do not mix IPv4 and IPv6 addresses inside such lists.",
4246 "format" : "pve-fw-addr-spec",
4247 "maxLength" : 512,
4248 "optional" : 1,
4249 "type" : "string",
4250 "typetext" : "<string>"
4251 },
4252 "digest" : {
4253 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
4254 "maxLength" : 64,
4255 "optional" : 1,
4256 "type" : "string",
4257 "typetext" : "<string>"
4258 },
4259 "dport" : {
4260 "description" : "Restrict TCP/UDP destination port. You can use service names or simple numbers (0-65535), as defined in '/etc/services'. Port ranges can be specified with '\\d+:\\d+', for example '80:85', and you can use comma separated list to match several ports or ranges.",
4261 "format" : "pve-fw-dport-spec",
4262 "optional" : 1,
4263 "type" : "string",
4264 "typetext" : "<string>"
4265 },
4266 "enable" : {
4267 "description" : "Flag to enable/disable a rule.",
4268 "minimum" : 0,
4269 "optional" : 1,
4270 "type" : "integer",
4271 "typetext" : "<integer> (0 - N)"
4272 },
4273 "icmp-type" : {
4274 "description" : "Specify icmp-type. Only valid if proto equals 'icmp' or 'icmpv6'/'ipv6-icmp'.",
4275 "format" : "pve-fw-icmp-type-spec",
4276 "optional" : 1,
4277 "type" : "string",
4278 "typetext" : "<string>"
4279 },
4280 "iface" : {
4281 "description" : "Network interface name. You have to use network configuration key names for VMs and containers ('net\\d+'). Host related rules can use arbitrary strings.",
4282 "format" : "pve-iface",
4283 "maxLength" : 20,
4284 "minLength" : 2,
4285 "optional" : 1,
4286 "type" : "string",
4287 "typetext" : "<string>"
4288 },
4289 "log" : {
4290 "description" : "Log level for firewall rule.",
4291 "enum" : [
4292 "emerg",
4293 "alert",
4294 "crit",
4295 "err",
4296 "warning",
4297 "notice",
4298 "info",
4299 "debug",
4300 "nolog"
4301 ],
4302 "optional" : 1,
4303 "type" : "string"
4304 },
4305 "macro" : {
4306 "description" : "Use predefined standard macro.",
4307 "maxLength" : 128,
4308 "optional" : 1,
4309 "type" : "string",
4310 "typetext" : "<string>"
4311 },
4312 "pos" : {
4313 "description" : "Update rule at position <pos>.",
4314 "minimum" : 0,
4315 "optional" : 1,
4316 "type" : "integer",
4317 "typetext" : "<integer> (0 - N)"
4318 },
4319 "proto" : {
4320 "description" : "IP protocol. You can use protocol names ('tcp'/'udp') or simple numbers, as defined in '/etc/protocols'.",
4321 "format" : "pve-fw-protocol-spec",
4322 "optional" : 1,
4323 "type" : "string",
4324 "typetext" : "<string>"
4325 },
4326 "source" : {
4327 "description" : "Restrict packet source address. This can refer to a single IP address, an IP set ('+ipsetname') or an IP alias definition. You can also specify an address range like '20.34.101.207-201.3.9.99', or a list of IP addresses and networks (entries are separated by comma). Please do not mix IPv4 and IPv6 addresses inside such lists.",
4328 "format" : "pve-fw-addr-spec",
4329 "maxLength" : 512,
4330 "optional" : 1,
4331 "type" : "string",
4332 "typetext" : "<string>"
4333 },
4334 "sport" : {
4335 "description" : "Restrict TCP/UDP source port. You can use service names or simple numbers (0-65535), as defined in '/etc/services'. Port ranges can be specified with '\\d+:\\d+', for example '80:85', and you can use comma separated list to match several ports or ranges.",
4336 "format" : "pve-fw-sport-spec",
4337 "optional" : 1,
4338 "type" : "string",
4339 "typetext" : "<string>"
4340 },
4341 "type" : {
4342 "description" : "Rule type.",
4343 "enum" : [
4344 "in",
4345 "out",
4346 "group"
4347 ],
4348 "optional" : 0,
4349 "type" : "string"
4350 }
4351 }
4352 },
4353 "permissions" : {
4354 "check" : [
4355 "perm",
4356 "/",
4357 [
4358 "Sys.Modify"
4359 ]
4360 ]
4361 },
4362 "protected" : 1,
4363 "proxyto" : null,
4364 "returns" : {
4365 "type" : "null"
4366 }
4367 }
4368 },
4369 "leaf" : 0,
4370 "path" : "/cluster/firewall/rules",
4371 "text" : "rules"
4372 },
4373 {
4374 "children" : [
4375 {
4376 "children" : [
4377 {
4378 "info" : {
4379 "DELETE" : {
4380 "allowtoken" : 1,
4381 "description" : "Remove IP or Network from IPSet.",
4382 "method" : "DELETE",
4383 "name" : "remove_ip",
4384 "parameters" : {
4385 "additionalProperties" : 0,
4386 "properties" : {
4387 "cidr" : {
4388 "description" : "Network/IP specification in CIDR format.",
4389 "format" : "IPorCIDRorAlias",
4390 "type" : "string",
4391 "typetext" : "<string>"
4392 },
4393 "digest" : {
4394 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
4395 "maxLength" : 64,
4396 "optional" : 1,
4397 "type" : "string",
4398 "typetext" : "<string>"
4399 },
4400 "name" : {
4401 "description" : "IP set name.",
4402 "maxLength" : 64,
4403 "minLength" : 2,
4404 "pattern" : "[A-Za-z][A-Za-z0-9\\-\\_]+",
4405 "type" : "string"
4406 }
4407 }
4408 },
4409 "permissions" : {
4410 "check" : [
4411 "perm",
4412 "/",
4413 [
4414 "Sys.Modify"
4415 ]
4416 ]
4417 },
4418 "protected" : 1,
4419 "returns" : {
4420 "type" : "null"
4421 }
4422 },
4423 "GET" : {
4424 "allowtoken" : 1,
4425 "description" : "Read IP or Network settings from IPSet.",
4426 "method" : "GET",
4427 "name" : "read_ip",
4428 "parameters" : {
4429 "additionalProperties" : 0,
4430 "properties" : {
4431 "cidr" : {
4432 "description" : "Network/IP specification in CIDR format.",
4433 "format" : "IPorCIDRorAlias",
4434 "type" : "string",
4435 "typetext" : "<string>"
4436 },
4437 "name" : {
4438 "description" : "IP set name.",
4439 "maxLength" : 64,
4440 "minLength" : 2,
4441 "pattern" : "[A-Za-z][A-Za-z0-9\\-\\_]+",
4442 "type" : "string"
4443 }
4444 }
4445 },
4446 "permissions" : {
4447 "check" : [
4448 "perm",
4449 "/",
4450 [
4451 "Sys.Audit"
4452 ]
4453 ]
4454 },
4455 "protected" : 1,
4456 "returns" : {
4457 "type" : "object"
4458 }
4459 },
4460 "PUT" : {
4461 "allowtoken" : 1,
4462 "description" : "Update IP or Network settings",
4463 "method" : "PUT",
4464 "name" : "update_ip",
4465 "parameters" : {
4466 "additionalProperties" : 0,
4467 "properties" : {
4468 "cidr" : {
4469 "description" : "Network/IP specification in CIDR format.",
4470 "format" : "IPorCIDRorAlias",
4471 "type" : "string",
4472 "typetext" : "<string>"
4473 },
4474 "comment" : {
4475 "optional" : 1,
4476 "type" : "string",
4477 "typetext" : "<string>"
4478 },
4479 "digest" : {
4480 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
4481 "maxLength" : 64,
4482 "optional" : 1,
4483 "type" : "string",
4484 "typetext" : "<string>"
4485 },
4486 "name" : {
4487 "description" : "IP set name.",
4488 "maxLength" : 64,
4489 "minLength" : 2,
4490 "pattern" : "[A-Za-z][A-Za-z0-9\\-\\_]+",
4491 "type" : "string"
4492 },
4493 "nomatch" : {
4494 "optional" : 1,
4495 "type" : "boolean",
4496 "typetext" : "<boolean>"
4497 }
4498 }
4499 },
4500 "permissions" : {
4501 "check" : [
4502 "perm",
4503 "/",
4504 [
4505 "Sys.Modify"
4506 ]
4507 ]
4508 },
4509 "protected" : 1,
4510 "returns" : {
4511 "type" : "null"
4512 }
4513 }
4514 },
4515 "leaf" : 1,
4516 "path" : "/cluster/firewall/ipset/{name}/{cidr}",
4517 "text" : "{cidr}"
4518 }
4519 ],
4520 "info" : {
4521 "DELETE" : {
4522 "allowtoken" : 1,
4523 "description" : "Delete IPSet",
4524 "method" : "DELETE",
4525 "name" : "delete_ipset",
4526 "parameters" : {
4527 "additionalProperties" : 0,
4528 "properties" : {
4529 "force" : {
4530 "description" : "Delete all members of the IPSet, if there are any.",
4531 "optional" : 1,
4532 "type" : "boolean",
4533 "typetext" : "<boolean>"
4534 },
4535 "name" : {
4536 "description" : "IP set name.",
4537 "maxLength" : 64,
4538 "minLength" : 2,
4539 "pattern" : "[A-Za-z][A-Za-z0-9\\-\\_]+",
4540 "type" : "string"
4541 }
4542 }
4543 },
4544 "permissions" : {
4545 "check" : [
4546 "perm",
4547 "/",
4548 [
4549 "Sys.Modify"
4550 ]
4551 ]
4552 },
4553 "protected" : 1,
4554 "returns" : {
4555 "type" : "null"
4556 }
4557 },
4558 "GET" : {
4559 "allowtoken" : 1,
4560 "description" : "List IPSet content",
4561 "method" : "GET",
4562 "name" : "get_ipset",
4563 "parameters" : {
4564 "additionalProperties" : 0,
4565 "properties" : {
4566 "name" : {
4567 "description" : "IP set name.",
4568 "maxLength" : 64,
4569 "minLength" : 2,
4570 "pattern" : "[A-Za-z][A-Za-z0-9\\-\\_]+",
4571 "type" : "string"
4572 }
4573 }
4574 },
4575 "permissions" : {
4576 "check" : [
4577 "perm",
4578 "/",
4579 [
4580 "Sys.Audit"
4581 ]
4582 ]
4583 },
4584 "returns" : {
4585 "items" : {
4586 "properties" : {
4587 "cidr" : {
4588 "type" : "string"
4589 },
4590 "comment" : {
4591 "optional" : 1,
4592 "type" : "string"
4593 },
4594 "digest" : {
4595 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
4596 "maxLength" : 64,
4597 "optional" : 0,
4598 "type" : "string"
4599 },
4600 "nomatch" : {
4601 "optional" : 1,
4602 "type" : "boolean"
4603 }
4604 },
4605 "type" : "object"
4606 },
4607 "links" : [
4608 {
4609 "href" : "{cidr}",
4610 "rel" : "child"
4611 }
4612 ],
4613 "type" : "array"
4614 }
4615 },
4616 "POST" : {
4617 "allowtoken" : 1,
4618 "description" : "Add IP or Network to IPSet.",
4619 "method" : "POST",
4620 "name" : "create_ip",
4621 "parameters" : {
4622 "additionalProperties" : 0,
4623 "properties" : {
4624 "cidr" : {
4625 "description" : "Network/IP specification in CIDR format.",
4626 "format" : "IPorCIDRorAlias",
4627 "type" : "string",
4628 "typetext" : "<string>"
4629 },
4630 "comment" : {
4631 "optional" : 1,
4632 "type" : "string",
4633 "typetext" : "<string>"
4634 },
4635 "name" : {
4636 "description" : "IP set name.",
4637 "maxLength" : 64,
4638 "minLength" : 2,
4639 "pattern" : "[A-Za-z][A-Za-z0-9\\-\\_]+",
4640 "type" : "string"
4641 },
4642 "nomatch" : {
4643 "optional" : 1,
4644 "type" : "boolean",
4645 "typetext" : "<boolean>"
4646 }
4647 }
4648 },
4649 "permissions" : {
4650 "check" : [
4651 "perm",
4652 "/",
4653 [
4654 "Sys.Modify"
4655 ]
4656 ]
4657 },
4658 "protected" : 1,
4659 "returns" : {
4660 "type" : "null"
4661 }
4662 }
4663 },
4664 "leaf" : 0,
4665 "path" : "/cluster/firewall/ipset/{name}",
4666 "text" : "{name}"
4667 }
4668 ],
4669 "info" : {
4670 "GET" : {
4671 "allowtoken" : 1,
4672 "description" : "List IPSets",
4673 "method" : "GET",
4674 "name" : "ipset_index",
4675 "parameters" : {
4676 "additionalProperties" : 0
4677 },
4678 "permissions" : {
4679 "check" : [
4680 "perm",
4681 "/",
4682 [
4683 "Sys.Audit"
4684 ]
4685 ]
4686 },
4687 "returns" : {
4688 "items" : {
4689 "properties" : {
4690 "comment" : {
4691 "optional" : 1,
4692 "type" : "string"
4693 },
4694 "digest" : {
4695 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
4696 "maxLength" : 64,
4697 "optional" : 0,
4698 "type" : "string"
4699 },
4700 "name" : {
4701 "description" : "IP set name.",
4702 "maxLength" : 64,
4703 "minLength" : 2,
4704 "pattern" : "[A-Za-z][A-Za-z0-9\\-\\_]+",
4705 "type" : "string"
4706 }
4707 },
4708 "type" : "object"
4709 },
4710 "links" : [
4711 {
4712 "href" : "{name}",
4713 "rel" : "child"
4714 }
4715 ],
4716 "type" : "array"
4717 }
4718 },
4719 "POST" : {
4720 "allowtoken" : 1,
4721 "description" : "Create new IPSet",
4722 "method" : "POST",
4723 "name" : "create_ipset",
4724 "parameters" : {
4725 "additionalProperties" : 0,
4726 "properties" : {
4727 "comment" : {
4728 "optional" : 1,
4729 "type" : "string",
4730 "typetext" : "<string>"
4731 },
4732 "digest" : {
4733 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
4734 "maxLength" : 64,
4735 "optional" : 1,
4736 "type" : "string",
4737 "typetext" : "<string>"
4738 },
4739 "name" : {
4740 "description" : "IP set name.",
4741 "maxLength" : 64,
4742 "minLength" : 2,
4743 "pattern" : "[A-Za-z][A-Za-z0-9\\-\\_]+",
4744 "type" : "string"
4745 },
4746 "rename" : {
4747 "description" : "Rename an existing IPSet. You can set 'rename' to the same value as 'name' to update the 'comment' of an existing IPSet.",
4748 "maxLength" : 64,
4749 "minLength" : 2,
4750 "optional" : 1,
4751 "pattern" : "[A-Za-z][A-Za-z0-9\\-\\_]+",
4752 "type" : "string"
4753 }
4754 }
4755 },
4756 "permissions" : {
4757 "check" : [
4758 "perm",
4759 "/",
4760 [
4761 "Sys.Modify"
4762 ]
4763 ]
4764 },
4765 "protected" : 1,
4766 "returns" : {
4767 "type" : "null"
4768 }
4769 }
4770 },
4771 "leaf" : 0,
4772 "path" : "/cluster/firewall/ipset",
4773 "text" : "ipset"
4774 },
4775 {
4776 "children" : [
4777 {
4778 "info" : {
4779 "DELETE" : {
4780 "allowtoken" : 1,
4781 "description" : "Remove IP or Network alias.",
4782 "method" : "DELETE",
4783 "name" : "remove_alias",
4784 "parameters" : {
4785 "additionalProperties" : 0,
4786 "properties" : {
4787 "digest" : {
4788 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
4789 "maxLength" : 64,
4790 "optional" : 1,
4791 "type" : "string",
4792 "typetext" : "<string>"
4793 },
4794 "name" : {
4795 "description" : "Alias name.",
4796 "maxLength" : 64,
4797 "minLength" : 2,
4798 "pattern" : "[A-Za-z][A-Za-z0-9\\-\\_]+",
4799 "type" : "string"
4800 }
4801 }
4802 },
4803 "permissions" : {
4804 "check" : [
4805 "perm",
4806 "/",
4807 [
4808 "Sys.Modify"
4809 ]
4810 ]
4811 },
4812 "protected" : 1,
4813 "returns" : {
4814 "type" : "null"
4815 }
4816 },
4817 "GET" : {
4818 "allowtoken" : 1,
4819 "description" : "Read alias.",
4820 "method" : "GET",
4821 "name" : "read_alias",
4822 "parameters" : {
4823 "additionalProperties" : 0,
4824 "properties" : {
4825 "name" : {
4826 "description" : "Alias name.",
4827 "maxLength" : 64,
4828 "minLength" : 2,
4829 "pattern" : "[A-Za-z][A-Za-z0-9\\-\\_]+",
4830 "type" : "string"
4831 }
4832 }
4833 },
4834 "permissions" : {
4835 "check" : [
4836 "perm",
4837 "/",
4838 [
4839 "Sys.Audit"
4840 ]
4841 ]
4842 },
4843 "returns" : {
4844 "type" : "object"
4845 }
4846 },
4847 "PUT" : {
4848 "allowtoken" : 1,
4849 "description" : "Update IP or Network alias.",
4850 "method" : "PUT",
4851 "name" : "update_alias",
4852 "parameters" : {
4853 "additionalProperties" : 0,
4854 "properties" : {
4855 "cidr" : {
4856 "description" : "Network/IP specification in CIDR format.",
4857 "format" : "IPorCIDR",
4858 "type" : "string",
4859 "typetext" : "<string>"
4860 },
4861 "comment" : {
4862 "optional" : 1,
4863 "type" : "string",
4864 "typetext" : "<string>"
4865 },
4866 "digest" : {
4867 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
4868 "maxLength" : 64,
4869 "optional" : 1,
4870 "type" : "string",
4871 "typetext" : "<string>"
4872 },
4873 "name" : {
4874 "description" : "Alias name.",
4875 "maxLength" : 64,
4876 "minLength" : 2,
4877 "pattern" : "[A-Za-z][A-Za-z0-9\\-\\_]+",
4878 "type" : "string"
4879 },
4880 "rename" : {
4881 "description" : "Rename an existing alias.",
4882 "maxLength" : 64,
4883 "minLength" : 2,
4884 "optional" : 1,
4885 "pattern" : "[A-Za-z][A-Za-z0-9\\-\\_]+",
4886 "type" : "string"
4887 }
4888 }
4889 },
4890 "permissions" : {
4891 "check" : [
4892 "perm",
4893 "/",
4894 [
4895 "Sys.Modify"
4896 ]
4897 ]
4898 },
4899 "protected" : 1,
4900 "returns" : {
4901 "type" : "null"
4902 }
4903 }
4904 },
4905 "leaf" : 1,
4906 "path" : "/cluster/firewall/aliases/{name}",
4907 "text" : "{name}"
4908 }
4909 ],
4910 "info" : {
4911 "GET" : {
4912 "allowtoken" : 1,
4913 "description" : "List aliases",
4914 "method" : "GET",
4915 "name" : "get_aliases",
4916 "parameters" : {
4917 "additionalProperties" : 0
4918 },
4919 "permissions" : {
4920 "check" : [
4921 "perm",
4922 "/",
4923 [
4924 "Sys.Audit"
4925 ]
4926 ]
4927 },
4928 "returns" : {
4929 "items" : {
4930 "properties" : {
4931 "cidr" : {
4932 "type" : "string"
4933 },
4934 "comment" : {
4935 "optional" : 1,
4936 "type" : "string"
4937 },
4938 "digest" : {
4939 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
4940 "maxLength" : 64,
4941 "optional" : 0,
4942 "type" : "string"
4943 },
4944 "name" : {
4945 "type" : "string"
4946 }
4947 },
4948 "type" : "object"
4949 },
4950 "links" : [
4951 {
4952 "href" : "{name}",
4953 "rel" : "child"
4954 }
4955 ],
4956 "type" : "array"
4957 }
4958 },
4959 "POST" : {
4960 "allowtoken" : 1,
4961 "description" : "Create IP or Network Alias.",
4962 "method" : "POST",
4963 "name" : "create_alias",
4964 "parameters" : {
4965 "additionalProperties" : 0,
4966 "properties" : {
4967 "cidr" : {
4968 "description" : "Network/IP specification in CIDR format.",
4969 "format" : "IPorCIDR",
4970 "type" : "string",
4971 "typetext" : "<string>"
4972 },
4973 "comment" : {
4974 "optional" : 1,
4975 "type" : "string",
4976 "typetext" : "<string>"
4977 },
4978 "name" : {
4979 "description" : "Alias name.",
4980 "maxLength" : 64,
4981 "minLength" : 2,
4982 "pattern" : "[A-Za-z][A-Za-z0-9\\-\\_]+",
4983 "type" : "string"
4984 }
4985 }
4986 },
4987 "permissions" : {
4988 "check" : [
4989 "perm",
4990 "/",
4991 [
4992 "Sys.Modify"
4993 ]
4994 ]
4995 },
4996 "protected" : 1,
4997 "returns" : {
4998 "type" : "null"
4999 }
5000 }
5001 },
5002 "leaf" : 0,
5003 "path" : "/cluster/firewall/aliases",
5004 "text" : "aliases"
5005 },
5006 {
5007 "info" : {
5008 "GET" : {
5009 "allowtoken" : 1,
5010 "description" : "Get Firewall options.",
5011 "method" : "GET",
5012 "name" : "get_options",
5013 "parameters" : {
5014 "additionalProperties" : 0
5015 },
5016 "permissions" : {
5017 "check" : [
5018 "perm",
5019 "/",
5020 [
5021 "Sys.Audit"
5022 ]
5023 ]
5024 },
5025 "returns" : {
5026 "properties" : {
5027 "ebtables" : {
5028 "default" : 1,
5029 "description" : "Enable ebtables rules cluster wide.",
5030 "optional" : 1,
5031 "type" : "boolean"
5032 },
5033 "enable" : {
5034 "description" : "Enable or disable the firewall cluster wide.",
5035 "minimum" : 0,
5036 "optional" : 1,
5037 "type" : "integer"
5038 },
5039 "log_ratelimit" : {
5040 "description" : "Log ratelimiting settings",
5041 "format" : {
5042 "burst" : {
5043 "default" : 5,
5044 "description" : "Initial burst of packages which will always get logged before the rate is applied",
5045 "minimum" : 0,
5046 "optional" : 1,
5047 "type" : "integer"
5048 },
5049 "enable" : {
5050 "default" : "1",
5051 "default_key" : 1,
5052 "description" : "Enable or disable log rate limiting",
5053 "type" : "boolean"
5054 },
5055 "rate" : {
5056 "default" : "1/second",
5057 "description" : "Frequency with which the burst bucket gets refilled",
5058 "format_description" : "rate",
5059 "optional" : 1,
5060 "pattern" : "[1-9][0-9]*\\/(second|minute|hour|day)",
5061 "type" : "string"
5062 }
5063 },
5064 "optional" : 1,
5065 "type" : "string"
5066 },
5067 "policy_in" : {
5068 "description" : "Input policy.",
5069 "enum" : [
5070 "ACCEPT",
5071 "REJECT",
5072 "DROP"
5073 ],
5074 "optional" : 1,
5075 "type" : "string"
5076 },
5077 "policy_out" : {
5078 "description" : "Output policy.",
5079 "enum" : [
5080 "ACCEPT",
5081 "REJECT",
5082 "DROP"
5083 ],
5084 "optional" : 1,
5085 "type" : "string"
5086 }
5087 },
5088 "type" : "object"
5089 }
5090 },
5091 "PUT" : {
5092 "allowtoken" : 1,
5093 "description" : "Set Firewall options.",
5094 "method" : "PUT",
5095 "name" : "set_options",
5096 "parameters" : {
5097 "additionalProperties" : 0,
5098 "properties" : {
5099 "delete" : {
5100 "description" : "A list of settings you want to delete.",
5101 "format" : "pve-configid-list",
5102 "optional" : 1,
5103 "type" : "string",
5104 "typetext" : "<string>"
5105 },
5106 "digest" : {
5107 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
5108 "maxLength" : 64,
5109 "optional" : 1,
5110 "type" : "string",
5111 "typetext" : "<string>"
5112 },
5113 "ebtables" : {
5114 "default" : 1,
5115 "description" : "Enable ebtables rules cluster wide.",
5116 "optional" : 1,
5117 "type" : "boolean",
5118 "typetext" : "<boolean>"
5119 },
5120 "enable" : {
5121 "description" : "Enable or disable the firewall cluster wide.",
5122 "minimum" : 0,
5123 "optional" : 1,
5124 "type" : "integer",
5125 "typetext" : "<integer> (0 - N)"
5126 },
5127 "log_ratelimit" : {
5128 "description" : "Log ratelimiting settings",
5129 "format" : {
5130 "burst" : {
5131 "default" : 5,
5132 "description" : "Initial burst of packages which will always get logged before the rate is applied",
5133 "minimum" : 0,
5134 "optional" : 1,
5135 "type" : "integer"
5136 },
5137 "enable" : {
5138 "default" : "1",
5139 "default_key" : 1,
5140 "description" : "Enable or disable log rate limiting",
5141 "type" : "boolean"
5142 },
5143 "rate" : {
5144 "default" : "1/second",
5145 "description" : "Frequency with which the burst bucket gets refilled",
5146 "format_description" : "rate",
5147 "optional" : 1,
5148 "pattern" : "[1-9][0-9]*\\/(second|minute|hour|day)",
5149 "type" : "string"
5150 }
5151 },
5152 "optional" : 1,
5153 "type" : "string",
5154 "typetext" : "[enable=]<1|0> [,burst=<integer>] [,rate=<rate>]"
5155 },
5156 "policy_in" : {
5157 "description" : "Input policy.",
5158 "enum" : [
5159 "ACCEPT",
5160 "REJECT",
5161 "DROP"
5162 ],
5163 "optional" : 1,
5164 "type" : "string"
5165 },
5166 "policy_out" : {
5167 "description" : "Output policy.",
5168 "enum" : [
5169 "ACCEPT",
5170 "REJECT",
5171 "DROP"
5172 ],
5173 "optional" : 1,
5174 "type" : "string"
5175 }
5176 }
5177 },
5178 "permissions" : {
5179 "check" : [
5180 "perm",
5181 "/",
5182 [
5183 "Sys.Modify"
5184 ]
5185 ]
5186 },
5187 "protected" : 1,
5188 "returns" : {
5189 "type" : "null"
5190 }
5191 }
5192 },
5193 "leaf" : 1,
5194 "path" : "/cluster/firewall/options",
5195 "text" : "options"
5196 },
5197 {
5198 "info" : {
5199 "GET" : {
5200 "allowtoken" : 1,
5201 "description" : "List available macros",
5202 "method" : "GET",
5203 "name" : "get_macros",
5204 "parameters" : {
5205 "additionalProperties" : 0
5206 },
5207 "permissions" : {
5208 "user" : "all"
5209 },
5210 "returns" : {
5211 "items" : {
5212 "properties" : {
5213 "descr" : {
5214 "description" : "More verbose description (if available).",
5215 "type" : "string"
5216 },
5217 "macro" : {
5218 "description" : "Macro name.",
5219 "type" : "string"
5220 }
5221 },
5222 "type" : "object"
5223 },
5224 "type" : "array"
5225 }
5226 }
5227 },
5228 "leaf" : 1,
5229 "path" : "/cluster/firewall/macros",
5230 "text" : "macros"
5231 },
5232 {
5233 "info" : {
5234 "GET" : {
5235 "allowtoken" : 1,
5236 "description" : "Lists possible IPSet/Alias reference which are allowed in source/dest properties.",
5237 "method" : "GET",
5238 "name" : "refs",
5239 "parameters" : {
5240 "additionalProperties" : 0,
5241 "properties" : {
5242 "type" : {
5243 "description" : "Only list references of specified type.",
5244 "enum" : [
5245 "alias",
5246 "ipset"
5247 ],
5248 "optional" : 1,
5249 "type" : "string"
5250 }
5251 }
5252 },
5253 "permissions" : {
5254 "check" : [
5255 "perm",
5256 "/",
5257 [
5258 "Sys.Audit"
5259 ]
5260 ]
5261 },
5262 "returns" : {
5263 "items" : {
5264 "properties" : {
5265 "comment" : {
5266 "optional" : 1,
5267 "type" : "string"
5268 },
5269 "name" : {
5270 "type" : "string"
5271 },
5272 "ref" : {
5273 "type" : "string"
5274 },
5275 "scope" : {
5276 "type" : "string"
5277 },
5278 "type" : {
5279 "enum" : [
5280 "alias",
5281 "ipset"
5282 ],
5283 "type" : "string"
5284 }
5285 },
5286 "type" : "object"
5287 },
5288 "type" : "array"
5289 }
5290 }
5291 },
5292 "leaf" : 1,
5293 "path" : "/cluster/firewall/refs",
5294 "text" : "refs"
5295 }
5296 ],
5297 "info" : {
5298 "GET" : {
5299 "allowtoken" : 1,
5300 "description" : "Directory index.",
5301 "method" : "GET",
5302 "name" : "index",
5303 "parameters" : {
5304 "additionalProperties" : 0
5305 },
5306 "permissions" : {
5307 "user" : "all"
5308 },
5309 "returns" : {
5310 "items" : {
5311 "properties" : {},
5312 "type" : "object"
5313 },
5314 "links" : [
5315 {
5316 "href" : "{name}",
5317 "rel" : "child"
5318 }
5319 ],
5320 "type" : "array"
5321 }
5322 }
5323 },
5324 "leaf" : 0,
5325 "path" : "/cluster/firewall",
5326 "text" : "firewall"
5327 },
5328 {
5329 "children" : [
5330 {
5331 "children" : [
5332 {
5333 "info" : {
5334 "GET" : {
5335 "allowtoken" : 1,
5336 "description" : "Returns included guests and the backup status of their disks. Optimized to be used in ExtJS tree views.",
5337 "method" : "GET",
5338 "name" : "get_volume_backup_included",
5339 "parameters" : {
5340 "additionalProperties" : 0,
5341 "properties" : {
5342 "id" : {
5343 "description" : "The job ID.",
5344 "maxLength" : 50,
5345 "type" : "string",
5346 "typetext" : "<string>"
5347 }
5348 }
5349 },
5350 "permissions" : {
5351 "check" : [
5352 "perm",
5353 "/",
5354 [
5355 "Sys.Audit"
5356 ]
5357 ]
5358 },
5359 "protected" : 1,
5360 "returns" : {
5361 "description" : "Root node of the tree object. Children represent guests, grandchildren represent volumes of that guest.",
5362 "properties" : {
5363 "children" : {
5364 "items" : {
5365 "properties" : {
5366 "children" : {
5367 "description" : "The volumes of the guest with the information if they will be included in backups.",
5368 "items" : {
5369 "properties" : {
5370 "id" : {
5371 "description" : "Configuration key of the volume.",
5372 "type" : "string"
5373 },
5374 "included" : {
5375 "description" : "Whether the volume is included in the backup or not.",
5376 "type" : "boolean"
5377 },
5378 "name" : {
5379 "description" : "Name of the volume.",
5380 "type" : "string"
5381 },
5382 "reason" : {
5383 "description" : "The reason why the volume is included (or excluded).",
5384 "type" : "string"
5385 }
5386 },
5387 "type" : "object"
5388 },
5389 "optional" : 1,
5390 "type" : "array"
5391 },
5392 "id" : {
5393 "description" : "VMID of the guest.",
5394 "type" : "integer"
5395 },
5396 "name" : {
5397 "description" : "Name of the guest",
5398 "optional" : 1,
5399 "type" : "string"
5400 },
5401 "type" : {
5402 "description" : "Type of the guest, VM, CT or unknown for removed but not purged guests.",
5403 "enum" : [
5404 "qemu",
5405 "lxc",
5406 "unknown"
5407 ],
5408 "type" : "string"
5409 }
5410 },
5411 "type" : "object"
5412 },
5413 "type" : "array"
5414 }
5415 },
5416 "type" : "object"
5417 }
5418 }
5419 },
5420 "leaf" : 1,
5421 "path" : "/cluster/backup/{id}/included_volumes",
5422 "text" : "included_volumes"
5423 }
5424 ],
5425 "info" : {
5426 "DELETE" : {
5427 "allowtoken" : 1,
5428 "description" : "Delete vzdump backup job definition.",
5429 "method" : "DELETE",
5430 "name" : "delete_job",
5431 "parameters" : {
5432 "additionalProperties" : 0,
5433 "properties" : {
5434 "id" : {
5435 "description" : "The job ID.",
5436 "maxLength" : 50,
5437 "type" : "string",
5438 "typetext" : "<string>"
5439 }
5440 }
5441 },
5442 "permissions" : {
5443 "check" : [
5444 "perm",
5445 "/",
5446 [
5447 "Sys.Modify"
5448 ]
5449 ]
5450 },
5451 "protected" : 1,
5452 "returns" : {
5453 "type" : "null"
5454 }
5455 },
5456 "GET" : {
5457 "allowtoken" : 1,
5458 "description" : "Read vzdump backup job definition.",
5459 "method" : "GET",
5460 "name" : "read_job",
5461 "parameters" : {
5462 "additionalProperties" : 0,
5463 "properties" : {
5464 "id" : {
5465 "description" : "The job ID.",
5466 "maxLength" : 50,
5467 "type" : "string",
5468 "typetext" : "<string>"
5469 }
5470 }
5471 },
5472 "permissions" : {
5473 "check" : [
5474 "perm",
5475 "/",
5476 [
5477 "Sys.Audit"
5478 ]
5479 ]
5480 },
5481 "returns" : {
5482 "type" : "object"
5483 }
5484 },
5485 "PUT" : {
5486 "allowtoken" : 1,
5487 "description" : "Update vzdump backup job definition.",
5488 "method" : "PUT",
5489 "name" : "update_job",
5490 "parameters" : {
5491 "additionalProperties" : 0,
5492 "properties" : {
5493 "all" : {
5494 "default" : 0,
5495 "description" : "Backup all known guest systems on this host.",
5496 "optional" : 1,
5497 "type" : "boolean",
5498 "typetext" : "<boolean>"
5499 },
5500 "bwlimit" : {
5501 "default" : 0,
5502 "description" : "Limit I/O bandwidth (in KiB/s).",
5503 "minimum" : 0,
5504 "optional" : 1,
5505 "type" : "integer",
5506 "typetext" : "<integer> (0 - N)"
5507 },
5508 "comment" : {
5509 "description" : "Description for the Job.",
5510 "maxLength" : 512,
5511 "optional" : 1,
5512 "type" : "string",
5513 "typetext" : "<string>"
5514 },
5515 "compress" : {
5516 "default" : "0",
5517 "description" : "Compress dump file.",
5518 "enum" : [
5519 "0",
5520 "1",
5521 "gzip",
5522 "lzo",
5523 "zstd"
5524 ],
5525 "optional" : 1,
5526 "type" : "string"
5527 },
5528 "delete" : {
5529 "description" : "A list of settings you want to delete.",
5530 "format" : "pve-configid-list",
5531 "optional" : 1,
5532 "type" : "string",
5533 "typetext" : "<string>"
5534 },
5535 "dow" : {
5536 "description" : "Day of week selection.",
5537 "format" : "pve-day-of-week-list",
5538 "optional" : 1,
5539 "requires" : "starttime",
5540 "type" : "string",
5541 "typetext" : "<string>"
5542 },
5543 "dumpdir" : {
5544 "description" : "Store resulting files to specified directory.",
5545 "optional" : 1,
5546 "type" : "string",
5547 "typetext" : "<string>"
5548 },
5549 "enabled" : {
5550 "default" : "1",
5551 "description" : "Enable or disable the job.",
5552 "optional" : 1,
5553 "type" : "boolean",
5554 "typetext" : "<boolean>"
5555 },
5556 "exclude" : {
5557 "description" : "Exclude specified guest systems (assumes --all)",
5558 "format" : "pve-vmid-list",
5559 "optional" : 1,
5560 "type" : "string",
5561 "typetext" : "<string>"
5562 },
5563 "exclude-path" : {
5564 "description" : "Exclude certain files/directories (shell globs). Paths starting with '/' are anchored to the container's root, other paths match relative to each subdirectory.",
5565 "items" : {
5566 "type" : "string"
5567 },
5568 "optional" : 1,
5569 "type" : "array",
5570 "typetext" : "<array>"
5571 },
5572 "fleecing" : {
5573 "description" : "Options for backup fleecing (VM only).",
5574 "format" : "backup-fleecing",
5575 "optional" : 1,
5576 "type" : "string",
5577 "typetext" : "[[enabled=]<1|0>] [,storage=<storage ID>]"
5578 },
5579 "id" : {
5580 "description" : "The job ID.",
5581 "maxLength" : 50,
5582 "type" : "string",
5583 "typetext" : "<string>"
5584 },
5585 "ionice" : {
5586 "default" : 7,
5587 "description" : "Set IO priority when using the BFQ scheduler. For snapshot and suspend mode backups of VMs, this only affects the compressor. A value of 8 means the idle priority is used, otherwise the best-effort priority is used with the specified value.",
5588 "maximum" : 8,
5589 "minimum" : 0,
5590 "optional" : 1,
5591 "type" : "integer",
5592 "typetext" : "<integer> (0 - 8)"
5593 },
5594 "lockwait" : {
5595 "default" : 180,
5596 "description" : "Maximal time to wait for the global lock (minutes).",
5597 "minimum" : 0,
5598 "optional" : 1,
5599 "type" : "integer",
5600 "typetext" : "<integer> (0 - N)"
5601 },
5602 "mailnotification" : {
5603 "default" : "always",
5604 "description" : "Deprecated: use notification targets/matchers instead. Specify when to send a notification mail",
5605 "enum" : [
5606 "always",
5607 "failure"
5608 ],
5609 "optional" : 1,
5610 "type" : "string"
5611 },
5612 "mailto" : {
5613 "description" : "Deprecated: Use notification targets/matchers instead. Comma-separated list of email addresses or users that should receive email notifications.",
5614 "format" : "email-or-username-list",
5615 "optional" : 1,
5616 "type" : "string",
5617 "typetext" : "<string>"
5618 },
5619 "maxfiles" : {
5620 "description" : "Deprecated: use 'prune-backups' instead. Maximal number of backup files per guest system.",
5621 "minimum" : 1,
5622 "optional" : 1,
5623 "type" : "integer",
5624 "typetext" : "<integer> (1 - N)"
5625 },
5626 "mode" : {
5627 "default" : "snapshot",
5628 "description" : "Backup mode.",
5629 "enum" : [
5630 "snapshot",
5631 "suspend",
5632 "stop"
5633 ],
5634 "optional" : 1,
5635 "type" : "string"
5636 },
5637 "node" : {
5638 "description" : "Only run if executed on this node.",
5639 "format" : "pve-node",
5640 "optional" : 1,
5641 "type" : "string",
5642 "typetext" : "<string>"
5643 },
5644 "notes-template" : {
5645 "description" : "Template string for generating notes for the backup(s). It can contain variables which will be replaced by their values. Currently supported are {{cluster}}, {{guestname}}, {{node}}, and {{vmid}}, but more might be added in the future. Needs to be a single line, newline and backslash need to be escaped as '\\n' and '\\\\' respectively.",
5646 "maxLength" : 1024,
5647 "optional" : 1,
5648 "requires" : "storage",
5649 "type" : "string",
5650 "typetext" : "<string>"
5651 },
5652 "notification-mode" : {
5653 "default" : "auto",
5654 "description" : "Determine which notification system to use. If set to 'legacy-sendmail', vzdump will consider the mailto/mailnotification parameters and send emails to the specified address(es) via the 'sendmail' command. If set to 'notification-system', a notification will be sent via PVE's notification system, and the mailto and mailnotification will be ignored. If set to 'auto' (default setting), an email will be sent if mailto is set, and the notification system will be used if not.",
5655 "enum" : [
5656 "auto",
5657 "legacy-sendmail",
5658 "notification-system"
5659 ],
5660 "optional" : 1,
5661 "type" : "string"
5662 },
5663 "notification-policy" : {
5664 "default" : "always",
5665 "description" : "Deprecated: Do not use",
5666 "enum" : [
5667 "always",
5668 "failure",
5669 "never"
5670 ],
5671 "optional" : 1,
5672 "type" : "string"
5673 },
5674 "notification-target" : {
5675 "description" : "Deprecated: Do not use",
5676 "format" : "pve-configid",
5677 "optional" : 1,
5678 "type" : "string",
5679 "typetext" : "<string>"
5680 },
5681 "performance" : {
5682 "description" : "Other performance-related settings.",
5683 "format" : "backup-performance",
5684 "optional" : 1,
5685 "type" : "string",
5686 "typetext" : "[max-workers=<integer>] [,pbs-entries-max=<integer>]"
5687 },
5688 "pigz" : {
5689 "default" : 0,
5690 "description" : "Use pigz instead of gzip when N>0. N=1 uses half of cores, N>1 uses N as thread count.",
5691 "optional" : 1,
5692 "type" : "integer",
5693 "typetext" : "<integer>"
5694 },
5695 "pool" : {
5696 "description" : "Backup all known guest systems included in the specified pool.",
5697 "optional" : 1,
5698 "type" : "string",
5699 "typetext" : "<string>"
5700 },
5701 "protected" : {
5702 "description" : "If true, mark backup(s) as protected.",
5703 "optional" : 1,
5704 "requires" : "storage",
5705 "type" : "boolean",
5706 "typetext" : "<boolean>"
5707 },
5708 "prune-backups" : {
5709 "default" : "keep-all=1",
5710 "description" : "Use these retention options instead of those from the storage configuration.",
5711 "format" : "prune-backups",
5712 "optional" : 1,
5713 "type" : "string",
5714 "typetext" : "[keep-all=<1|0>] [,keep-daily=<N>] [,keep-hourly=<N>] [,keep-last=<N>] [,keep-monthly=<N>] [,keep-weekly=<N>] [,keep-yearly=<N>]"
5715 },
5716 "quiet" : {
5717 "default" : 0,
5718 "description" : "Be quiet.",
5719 "optional" : 1,
5720 "type" : "boolean",
5721 "typetext" : "<boolean>"
5722 },
5723 "remove" : {
5724 "default" : 1,
5725 "description" : "Prune older backups according to 'prune-backups'.",
5726 "optional" : 1,
5727 "type" : "boolean",
5728 "typetext" : "<boolean>"
5729 },
5730 "repeat-missed" : {
5731 "default" : 0,
5732 "description" : "If true, the job will be run as soon as possible if it was missed while the scheduler was not running.",
5733 "optional" : 1,
5734 "type" : "boolean",
5735 "typetext" : "<boolean>"
5736 },
5737 "schedule" : {
5738 "description" : "Backup schedule. The format is a subset of `systemd` calendar events.",
5739 "format" : "pve-calendar-event",
5740 "maxLength" : 128,
5741 "optional" : 1,
5742 "type" : "string",
5743 "typetext" : "<string>"
5744 },
5745 "script" : {
5746 "description" : "Use specified hook script.",
5747 "optional" : 1,
5748 "type" : "string",
5749 "typetext" : "<string>"
5750 },
5751 "starttime" : {
5752 "description" : "Job Start time.",
5753 "optional" : 1,
5754 "pattern" : "\\d{1,2}:\\d{1,2}",
5755 "type" : "string",
5756 "typetext" : "HH:MM"
5757 },
5758 "stdexcludes" : {
5759 "default" : 1,
5760 "description" : "Exclude temporary files and logs.",
5761 "optional" : 1,
5762 "type" : "boolean",
5763 "typetext" : "<boolean>"
5764 },
5765 "stop" : {
5766 "default" : 0,
5767 "description" : "Stop running backup jobs on this host.",
5768 "optional" : 1,
5769 "type" : "boolean",
5770 "typetext" : "<boolean>"
5771 },
5772 "stopwait" : {
5773 "default" : 10,
5774 "description" : "Maximal time to wait until a guest system is stopped (minutes).",
5775 "minimum" : 0,
5776 "optional" : 1,
5777 "type" : "integer",
5778 "typetext" : "<integer> (0 - N)"
5779 },
5780 "storage" : {
5781 "description" : "Store resulting file to this storage.",
5782 "format" : "pve-storage-id",
5783 "format_description" : "storage ID",
5784 "optional" : 1,
5785 "type" : "string",
5786 "typetext" : "<storage ID>"
5787 },
5788 "tmpdir" : {
5789 "description" : "Store temporary files to specified directory.",
5790 "optional" : 1,
5791 "type" : "string",
5792 "typetext" : "<string>"
5793 },
5794 "vmid" : {
5795 "description" : "The ID of the guest system you want to backup.",
5796 "format" : "pve-vmid-list",
5797 "optional" : 1,
5798 "type" : "string",
5799 "typetext" : "<string>"
5800 },
5801 "zstd" : {
5802 "default" : 1,
5803 "description" : "Zstd threads. N=0 uses half of the available cores, if N is set to a value bigger than 0, N is used as thread count.",
5804 "optional" : 1,
5805 "type" : "integer",
5806 "typetext" : "<integer>"
5807 }
5808 }
5809 },
5810 "permissions" : {
5811 "check" : [
5812 "perm",
5813 "/",
5814 [
5815 "Sys.Modify"
5816 ]
5817 ],
5818 "description" : "The 'tmpdir', 'dumpdir' and 'script' parameters are additionally restricted to the 'root@pam' user."
5819 },
5820 "protected" : 1,
5821 "returns" : {
5822 "type" : "null"
5823 }
5824 }
5825 },
5826 "leaf" : 0,
5827 "path" : "/cluster/backup/{id}",
5828 "text" : "{id}"
5829 }
5830 ],
5831 "info" : {
5832 "GET" : {
5833 "allowtoken" : 1,
5834 "description" : "List vzdump backup schedule.",
5835 "method" : "GET",
5836 "name" : "index",
5837 "parameters" : {
5838 "additionalProperties" : 0
5839 },
5840 "permissions" : {
5841 "check" : [
5842 "perm",
5843 "/",
5844 [
5845 "Sys.Audit"
5846 ]
5847 ]
5848 },
5849 "returns" : {
5850 "items" : {
5851 "properties" : {
5852 "id" : {
5853 "description" : "The job ID.",
5854 "maxLength" : 50,
5855 "type" : "string"
5856 }
5857 },
5858 "type" : "object"
5859 },
5860 "links" : [
5861 {
5862 "href" : "{id}",
5863 "rel" : "child"
5864 }
5865 ],
5866 "type" : "array"
5867 }
5868 },
5869 "POST" : {
5870 "allowtoken" : 1,
5871 "description" : "Create new vzdump backup job.",
5872 "method" : "POST",
5873 "name" : "create_job",
5874 "parameters" : {
5875 "additionalProperties" : 0,
5876 "properties" : {
5877 "all" : {
5878 "default" : 0,
5879 "description" : "Backup all known guest systems on this host.",
5880 "optional" : 1,
5881 "type" : "boolean",
5882 "typetext" : "<boolean>"
5883 },
5884 "bwlimit" : {
5885 "default" : 0,
5886 "description" : "Limit I/O bandwidth (in KiB/s).",
5887 "minimum" : 0,
5888 "optional" : 1,
5889 "type" : "integer",
5890 "typetext" : "<integer> (0 - N)"
5891 },
5892 "comment" : {
5893 "description" : "Description for the Job.",
5894 "maxLength" : 512,
5895 "optional" : 1,
5896 "type" : "string",
5897 "typetext" : "<string>"
5898 },
5899 "compress" : {
5900 "default" : "0",
5901 "description" : "Compress dump file.",
5902 "enum" : [
5903 "0",
5904 "1",
5905 "gzip",
5906 "lzo",
5907 "zstd"
5908 ],
5909 "optional" : 1,
5910 "type" : "string"
5911 },
5912 "dow" : {
5913 "default" : "mon,tue,wed,thu,fri,sat,sun",
5914 "description" : "Day of week selection.",
5915 "format" : "pve-day-of-week-list",
5916 "optional" : 1,
5917 "requires" : "starttime",
5918 "type" : "string",
5919 "typetext" : "<string>"
5920 },
5921 "dumpdir" : {
5922 "description" : "Store resulting files to specified directory.",
5923 "optional" : 1,
5924 "type" : "string",
5925 "typetext" : "<string>"
5926 },
5927 "enabled" : {
5928 "default" : "1",
5929 "description" : "Enable or disable the job.",
5930 "optional" : 1,
5931 "type" : "boolean",
5932 "typetext" : "<boolean>"
5933 },
5934 "exclude" : {
5935 "description" : "Exclude specified guest systems (assumes --all)",
5936 "format" : "pve-vmid-list",
5937 "optional" : 1,
5938 "type" : "string",
5939 "typetext" : "<string>"
5940 },
5941 "exclude-path" : {
5942 "description" : "Exclude certain files/directories (shell globs). Paths starting with '/' are anchored to the container's root, other paths match relative to each subdirectory.",
5943 "items" : {
5944 "type" : "string"
5945 },
5946 "optional" : 1,
5947 "type" : "array",
5948 "typetext" : "<array>"
5949 },
5950 "fleecing" : {
5951 "description" : "Options for backup fleecing (VM only).",
5952 "format" : "backup-fleecing",
5953 "optional" : 1,
5954 "type" : "string",
5955 "typetext" : "[[enabled=]<1|0>] [,storage=<storage ID>]"
5956 },
5957 "id" : {
5958 "description" : "Job ID (will be autogenerated).",
5959 "format" : "pve-configid",
5960 "optional" : 1,
5961 "type" : "string",
5962 "typetext" : "<string>"
5963 },
5964 "ionice" : {
5965 "default" : 7,
5966 "description" : "Set IO priority when using the BFQ scheduler. For snapshot and suspend mode backups of VMs, this only affects the compressor. A value of 8 means the idle priority is used, otherwise the best-effort priority is used with the specified value.",
5967 "maximum" : 8,
5968 "minimum" : 0,
5969 "optional" : 1,
5970 "type" : "integer",
5971 "typetext" : "<integer> (0 - 8)"
5972 },
5973 "lockwait" : {
5974 "default" : 180,
5975 "description" : "Maximal time to wait for the global lock (minutes).",
5976 "minimum" : 0,
5977 "optional" : 1,
5978 "type" : "integer",
5979 "typetext" : "<integer> (0 - N)"
5980 },
5981 "mailnotification" : {
5982 "default" : "always",
5983 "description" : "Deprecated: use notification targets/matchers instead. Specify when to send a notification mail",
5984 "enum" : [
5985 "always",
5986 "failure"
5987 ],
5988 "optional" : 1,
5989 "type" : "string"
5990 },
5991 "mailto" : {
5992 "description" : "Deprecated: Use notification targets/matchers instead. Comma-separated list of email addresses or users that should receive email notifications.",
5993 "format" : "email-or-username-list",
5994 "optional" : 1,
5995 "type" : "string",
5996 "typetext" : "<string>"
5997 },
5998 "maxfiles" : {
5999 "description" : "Deprecated: use 'prune-backups' instead. Maximal number of backup files per guest system.",
6000 "minimum" : 1,
6001 "optional" : 1,
6002 "type" : "integer",
6003 "typetext" : "<integer> (1 - N)"
6004 },
6005 "mode" : {
6006 "default" : "snapshot",
6007 "description" : "Backup mode.",
6008 "enum" : [
6009 "snapshot",
6010 "suspend",
6011 "stop"
6012 ],
6013 "optional" : 1,
6014 "type" : "string"
6015 },
6016 "node" : {
6017 "description" : "Only run if executed on this node.",
6018 "format" : "pve-node",
6019 "optional" : 1,
6020 "type" : "string",
6021 "typetext" : "<string>"
6022 },
6023 "notes-template" : {
6024 "description" : "Template string for generating notes for the backup(s). It can contain variables which will be replaced by their values. Currently supported are {{cluster}}, {{guestname}}, {{node}}, and {{vmid}}, but more might be added in the future. Needs to be a single line, newline and backslash need to be escaped as '\\n' and '\\\\' respectively.",
6025 "maxLength" : 1024,
6026 "optional" : 1,
6027 "requires" : "storage",
6028 "type" : "string",
6029 "typetext" : "<string>"
6030 },
6031 "notification-mode" : {
6032 "default" : "auto",
6033 "description" : "Determine which notification system to use. If set to 'legacy-sendmail', vzdump will consider the mailto/mailnotification parameters and send emails to the specified address(es) via the 'sendmail' command. If set to 'notification-system', a notification will be sent via PVE's notification system, and the mailto and mailnotification will be ignored. If set to 'auto' (default setting), an email will be sent if mailto is set, and the notification system will be used if not.",
6034 "enum" : [
6035 "auto",
6036 "legacy-sendmail",
6037 "notification-system"
6038 ],
6039 "optional" : 1,
6040 "type" : "string"
6041 },
6042 "notification-policy" : {
6043 "default" : "always",
6044 "description" : "Deprecated: Do not use",
6045 "enum" : [
6046 "always",
6047 "failure",
6048 "never"
6049 ],
6050 "optional" : 1,
6051 "type" : "string"
6052 },
6053 "notification-target" : {
6054 "description" : "Deprecated: Do not use",
6055 "format" : "pve-configid",
6056 "optional" : 1,
6057 "type" : "string",
6058 "typetext" : "<string>"
6059 },
6060 "performance" : {
6061 "description" : "Other performance-related settings.",
6062 "format" : "backup-performance",
6063 "optional" : 1,
6064 "type" : "string",
6065 "typetext" : "[max-workers=<integer>] [,pbs-entries-max=<integer>]"
6066 },
6067 "pigz" : {
6068 "default" : 0,
6069 "description" : "Use pigz instead of gzip when N>0. N=1 uses half of cores, N>1 uses N as thread count.",
6070 "optional" : 1,
6071 "type" : "integer",
6072 "typetext" : "<integer>"
6073 },
6074 "pool" : {
6075 "description" : "Backup all known guest systems included in the specified pool.",
6076 "optional" : 1,
6077 "type" : "string",
6078 "typetext" : "<string>"
6079 },
6080 "protected" : {
6081 "description" : "If true, mark backup(s) as protected.",
6082 "optional" : 1,
6083 "requires" : "storage",
6084 "type" : "boolean",
6085 "typetext" : "<boolean>"
6086 },
6087 "prune-backups" : {
6088 "default" : "keep-all=1",
6089 "description" : "Use these retention options instead of those from the storage configuration.",
6090 "format" : "prune-backups",
6091 "optional" : 1,
6092 "type" : "string",
6093 "typetext" : "[keep-all=<1|0>] [,keep-daily=<N>] [,keep-hourly=<N>] [,keep-last=<N>] [,keep-monthly=<N>] [,keep-weekly=<N>] [,keep-yearly=<N>]"
6094 },
6095 "quiet" : {
6096 "default" : 0,
6097 "description" : "Be quiet.",
6098 "optional" : 1,
6099 "type" : "boolean",
6100 "typetext" : "<boolean>"
6101 },
6102 "remove" : {
6103 "default" : 1,
6104 "description" : "Prune older backups according to 'prune-backups'.",
6105 "optional" : 1,
6106 "type" : "boolean",
6107 "typetext" : "<boolean>"
6108 },
6109 "repeat-missed" : {
6110 "default" : 0,
6111 "description" : "If true, the job will be run as soon as possible if it was missed while the scheduler was not running.",
6112 "optional" : 1,
6113 "type" : "boolean",
6114 "typetext" : "<boolean>"
6115 },
6116 "schedule" : {
6117 "description" : "Backup schedule. The format is a subset of `systemd` calendar events.",
6118 "format" : "pve-calendar-event",
6119 "maxLength" : 128,
6120 "optional" : 1,
6121 "type" : "string",
6122 "typetext" : "<string>"
6123 },
6124 "script" : {
6125 "description" : "Use specified hook script.",
6126 "optional" : 1,
6127 "type" : "string",
6128 "typetext" : "<string>"
6129 },
6130 "starttime" : {
6131 "description" : "Job Start time.",
6132 "optional" : 1,
6133 "pattern" : "\\d{1,2}:\\d{1,2}",
6134 "type" : "string",
6135 "typetext" : "HH:MM"
6136 },
6137 "stdexcludes" : {
6138 "default" : 1,
6139 "description" : "Exclude temporary files and logs.",
6140 "optional" : 1,
6141 "type" : "boolean",
6142 "typetext" : "<boolean>"
6143 },
6144 "stop" : {
6145 "default" : 0,
6146 "description" : "Stop running backup jobs on this host.",
6147 "optional" : 1,
6148 "type" : "boolean",
6149 "typetext" : "<boolean>"
6150 },
6151 "stopwait" : {
6152 "default" : 10,
6153 "description" : "Maximal time to wait until a guest system is stopped (minutes).",
6154 "minimum" : 0,
6155 "optional" : 1,
6156 "type" : "integer",
6157 "typetext" : "<integer> (0 - N)"
6158 },
6159 "storage" : {
6160 "description" : "Store resulting file to this storage.",
6161 "format" : "pve-storage-id",
6162 "format_description" : "storage ID",
6163 "optional" : 1,
6164 "type" : "string",
6165 "typetext" : "<storage ID>"
6166 },
6167 "tmpdir" : {
6168 "description" : "Store temporary files to specified directory.",
6169 "optional" : 1,
6170 "type" : "string",
6171 "typetext" : "<string>"
6172 },
6173 "vmid" : {
6174 "description" : "The ID of the guest system you want to backup.",
6175 "format" : "pve-vmid-list",
6176 "optional" : 1,
6177 "type" : "string",
6178 "typetext" : "<string>"
6179 },
6180 "zstd" : {
6181 "default" : 1,
6182 "description" : "Zstd threads. N=0 uses half of the available cores, if N is set to a value bigger than 0, N is used as thread count.",
6183 "optional" : 1,
6184 "type" : "integer",
6185 "typetext" : "<integer>"
6186 }
6187 }
6188 },
6189 "permissions" : {
6190 "check" : [
6191 "perm",
6192 "/",
6193 [
6194 "Sys.Modify"
6195 ]
6196 ],
6197 "description" : "The 'tmpdir', 'dumpdir' and 'script' parameters are additionally restricted to the 'root@pam' user."
6198 },
6199 "protected" : 1,
6200 "returns" : {
6201 "type" : "null"
6202 }
6203 }
6204 },
6205 "leaf" : 0,
6206 "path" : "/cluster/backup",
6207 "text" : "backup"
6208 },
6209 {
6210 "children" : [
6211 {
6212 "info" : {
6213 "GET" : {
6214 "allowtoken" : 1,
6215 "description" : "Shows all guests which are not covered by any backup job.",
6216 "method" : "GET",
6217 "name" : "get_guests_not_in_backup",
6218 "parameters" : {
6219 "additionalProperties" : 0
6220 },
6221 "permissions" : {
6222 "check" : [
6223 "perm",
6224 "/",
6225 [
6226 "Sys.Audit"
6227 ]
6228 ]
6229 },
6230 "protected" : 1,
6231 "returns" : {
6232 "description" : "Contains the guest objects.",
6233 "items" : {
6234 "properties" : {
6235 "name" : {
6236 "description" : "Name of the guest",
6237 "optional" : 1,
6238 "type" : "string"
6239 },
6240 "type" : {
6241 "description" : "Type of the guest.",
6242 "enum" : [
6243 "qemu",
6244 "lxc"
6245 ],
6246 "type" : "string"
6247 },
6248 "vmid" : {
6249 "description" : "VMID of the guest.",
6250 "type" : "integer"
6251 }
6252 },
6253 "type" : "object"
6254 },
6255 "type" : "array"
6256 }
6257 }
6258 },
6259 "leaf" : 1,
6260 "path" : "/cluster/backup-info/not-backed-up",
6261 "text" : "not-backed-up"
6262 }
6263 ],
6264 "info" : {
6265 "GET" : {
6266 "allowtoken" : 1,
6267 "description" : "Index for backup info related endpoints",
6268 "method" : "GET",
6269 "name" : "index",
6270 "parameters" : {
6271 "additionalProperties" : 0
6272 },
6273 "returns" : {
6274 "description" : "Directory index.",
6275 "items" : {
6276 "properties" : {
6277 "subdir" : {
6278 "description" : "API sub-directory endpoint",
6279 "type" : "string"
6280 }
6281 },
6282 "type" : "object"
6283 },
6284 "links" : [
6285 {
6286 "href" : "{subdir}",
6287 "rel" : "child"
6288 }
6289 ],
6290 "type" : "array"
6291 }
6292 }
6293 },
6294 "leaf" : 0,
6295 "path" : "/cluster/backup-info",
6296 "text" : "backup-info"
6297 },
6298 {
6299 "children" : [
6300 {
6301 "children" : [
6302 {
6303 "children" : [
6304 {
6305 "info" : {
6306 "POST" : {
6307 "allowtoken" : 1,
6308 "description" : "Request resource migration (online) to another node.",
6309 "method" : "POST",
6310 "name" : "migrate",
6311 "parameters" : {
6312 "additionalProperties" : 0,
6313 "properties" : {
6314 "node" : {
6315 "description" : "Target node.",
6316 "format" : "pve-node",
6317 "type" : "string",
6318 "typetext" : "<string>"
6319 },
6320 "sid" : {
6321 "description" : "HA resource ID. This consists of a resource type followed by a resource specific name, separated with colon (example: vm:100 / ct:100). For virtual machines and containers, you can simply use the VM or CT id as a shortcut (example: 100).",
6322 "format" : "pve-ha-resource-or-vm-id",
6323 "type" : "string",
6324 "typetext" : "<type>:<name>"
6325 }
6326 }
6327 },
6328 "permissions" : {
6329 "check" : [
6330 "perm",
6331 "/",
6332 [
6333 "Sys.Console"
6334 ]
6335 ]
6336 },
6337 "protected" : 1,
6338 "returns" : {
6339 "type" : "null"
6340 }
6341 }
6342 },
6343 "leaf" : 1,
6344 "path" : "/cluster/ha/resources/{sid}/migrate",
6345 "text" : "migrate"
6346 },
6347 {
6348 "info" : {
6349 "POST" : {
6350 "allowtoken" : 1,
6351 "description" : "Request resource relocatzion to another node. This stops the service on the old node, and restarts it on the target node.",
6352 "method" : "POST",
6353 "name" : "relocate",
6354 "parameters" : {
6355 "additionalProperties" : 0,
6356 "properties" : {
6357 "node" : {
6358 "description" : "Target node.",
6359 "format" : "pve-node",
6360 "type" : "string",
6361 "typetext" : "<string>"
6362 },
6363 "sid" : {
6364 "description" : "HA resource ID. This consists of a resource type followed by a resource specific name, separated with colon (example: vm:100 / ct:100). For virtual machines and containers, you can simply use the VM or CT id as a shortcut (example: 100).",
6365 "format" : "pve-ha-resource-or-vm-id",
6366 "type" : "string",
6367 "typetext" : "<type>:<name>"
6368 }
6369 }
6370 },
6371 "permissions" : {
6372 "check" : [
6373 "perm",
6374 "/",
6375 [
6376 "Sys.Console"
6377 ]
6378 ]
6379 },
6380 "protected" : 1,
6381 "returns" : {
6382 "type" : "null"
6383 }
6384 }
6385 },
6386 "leaf" : 1,
6387 "path" : "/cluster/ha/resources/{sid}/relocate",
6388 "text" : "relocate"
6389 }
6390 ],
6391 "info" : {
6392 "DELETE" : {
6393 "allowtoken" : 1,
6394 "description" : "Delete resource configuration.",
6395 "method" : "DELETE",
6396 "name" : "delete",
6397 "parameters" : {
6398 "additionalProperties" : 0,
6399 "properties" : {
6400 "sid" : {
6401 "description" : "HA resource ID. This consists of a resource type followed by a resource specific name, separated with colon (example: vm:100 / ct:100). For virtual machines and containers, you can simply use the VM or CT id as a shortcut (example: 100).",
6402 "format" : "pve-ha-resource-or-vm-id",
6403 "type" : "string",
6404 "typetext" : "<type>:<name>"
6405 }
6406 }
6407 },
6408 "permissions" : {
6409 "check" : [
6410 "perm",
6411 "/",
6412 [
6413 "Sys.Console"
6414 ]
6415 ]
6416 },
6417 "protected" : 1,
6418 "returns" : {
6419 "type" : "null"
6420 }
6421 },
6422 "GET" : {
6423 "allowtoken" : 1,
6424 "description" : "Read resource configuration.",
6425 "method" : "GET",
6426 "name" : "read",
6427 "parameters" : {
6428 "additionalProperties" : 0,
6429 "properties" : {
6430 "sid" : {
6431 "description" : "HA resource ID. This consists of a resource type followed by a resource specific name, separated with colon (example: vm:100 / ct:100). For virtual machines and containers, you can simply use the VM or CT id as a shortcut (example: 100).",
6432 "format" : "pve-ha-resource-or-vm-id",
6433 "type" : "string",
6434 "typetext" : "<type>:<name>"
6435 }
6436 }
6437 },
6438 "permissions" : {
6439 "check" : [
6440 "perm",
6441 "/",
6442 [
6443 "Sys.Audit"
6444 ]
6445 ]
6446 },
6447 "returns" : {
6448 "properties" : {
6449 "comment" : {
6450 "description" : "Description.",
6451 "optional" : 1,
6452 "type" : "string"
6453 },
6454 "digest" : {
6455 "description" : "Can be used to prevent concurrent modifications.",
6456 "type" : "string"
6457 },
6458 "group" : {
6459 "description" : "The HA group identifier.",
6460 "format" : "pve-configid",
6461 "optional" : 1,
6462 "type" : "string"
6463 },
6464 "max_relocate" : {
6465 "description" : "Maximal number of service relocate tries when a service failes to start.",
6466 "optional" : 1,
6467 "type" : "integer"
6468 },
6469 "max_restart" : {
6470 "description" : "Maximal number of tries to restart the service on a node after its start failed.",
6471 "optional" : 1,
6472 "type" : "integer"
6473 },
6474 "sid" : {
6475 "description" : "HA resource ID. This consists of a resource type followed by a resource specific name, separated with colon (example: vm:100 / ct:100). For virtual machines and containers, you can simply use the VM or CT id as a shortcut (example: 100).",
6476 "format" : "pve-ha-resource-or-vm-id",
6477 "type" : "string",
6478 "typetext" : "<type>:<name>"
6479 },
6480 "state" : {
6481 "description" : "Requested resource state.",
6482 "enum" : [
6483 "started",
6484 "stopped",
6485 "enabled",
6486 "disabled",
6487 "ignored"
6488 ],
6489 "optional" : 1,
6490 "type" : "string"
6491 },
6492 "type" : {
6493 "description" : "The type of the resources.",
6494 "type" : "string"
6495 }
6496 },
6497 "type" : "object"
6498 }
6499 },
6500 "PUT" : {
6501 "allowtoken" : 1,
6502 "description" : "Update resource configuration.",
6503 "method" : "PUT",
6504 "name" : "update",
6505 "parameters" : {
6506 "additionalProperties" : 0,
6507 "properties" : {
6508 "comment" : {
6509 "description" : "Description.",
6510 "maxLength" : 4096,
6511 "optional" : 1,
6512 "type" : "string",
6513 "typetext" : "<string>"
6514 },
6515 "delete" : {
6516 "description" : "A list of settings you want to delete.",
6517 "format" : "pve-configid-list",
6518 "maxLength" : 4096,
6519 "optional" : 1,
6520 "type" : "string",
6521 "typetext" : "<string>"
6522 },
6523 "digest" : {
6524 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
6525 "maxLength" : 64,
6526 "optional" : 1,
6527 "type" : "string",
6528 "typetext" : "<string>"
6529 },
6530 "group" : {
6531 "description" : "The HA group identifier.",
6532 "format" : "pve-configid",
6533 "optional" : 1,
6534 "type" : "string",
6535 "typetext" : "<string>"
6536 },
6537 "max_relocate" : {
6538 "default" : 1,
6539 "description" : "Maximal number of service relocate tries when a service failes to start.",
6540 "minimum" : 0,
6541 "optional" : 1,
6542 "type" : "integer",
6543 "typetext" : "<integer> (0 - N)"
6544 },
6545 "max_restart" : {
6546 "default" : 1,
6547 "description" : "Maximal number of tries to restart the service on a node after its start failed.",
6548 "minimum" : 0,
6549 "optional" : 1,
6550 "type" : "integer",
6551 "typetext" : "<integer> (0 - N)"
6552 },
6553 "sid" : {
6554 "description" : "HA resource ID. This consists of a resource type followed by a resource specific name, separated with colon (example: vm:100 / ct:100). For virtual machines and containers, you can simply use the VM or CT id as a shortcut (example: 100).",
6555 "format" : "pve-ha-resource-or-vm-id",
6556 "type" : "string",
6557 "typetext" : "<type>:<name>"
6558 },
6559 "state" : {
6560 "default" : "started",
6561 "description" : "Requested resource state.",
6562 "enum" : [
6563 "started",
6564 "stopped",
6565 "enabled",
6566 "disabled",
6567 "ignored"
6568 ],
6569 "optional" : 1,
6570 "type" : "string",
6571 "verbose_description" : "Requested resource state. The CRM reads this state and acts accordingly.\nPlease note that `enabled` is just an alias for `started`.\n\n`started`;;\n\nThe CRM tries to start the resource. Service state is\nset to `started` after successful start. On node failures, or when start\nfails, it tries to recover the resource. If everything fails, service\nstate it set to `error`.\n\n`stopped`;;\n\nThe CRM tries to keep the resource in `stopped` state, but it\nstill tries to relocate the resources on node failures.\n\n`disabled`;;\n\nThe CRM tries to put the resource in `stopped` state, but does not try\nto relocate the resources on node failures. The main purpose of this\nstate is error recovery, because it is the only way to move a resource out\nof the `error` state.\n\n`ignored`;;\n\nThe resource gets removed from the manager status and so the CRM and the LRM do\nnot touch the resource anymore. All {pve} API calls affecting this resource\nwill be executed, directly bypassing the HA stack. CRM commands will be thrown\naway while there source is in this state. The resource will not get relocated\non node failures.\n\n"
6572 }
6573 },
6574 "type" : "object"
6575 },
6576 "permissions" : {
6577 "check" : [
6578 "perm",
6579 "/",
6580 [
6581 "Sys.Console"
6582 ]
6583 ]
6584 },
6585 "protected" : 1,
6586 "returns" : {
6587 "type" : "null"
6588 }
6589 }
6590 },
6591 "leaf" : 0,
6592 "path" : "/cluster/ha/resources/{sid}",
6593 "text" : "{sid}"
6594 }
6595 ],
6596 "info" : {
6597 "GET" : {
6598 "allowtoken" : 1,
6599 "description" : "List HA resources.",
6600 "method" : "GET",
6601 "name" : "index",
6602 "parameters" : {
6603 "additionalProperties" : 0,
6604 "properties" : {
6605 "type" : {
6606 "description" : "Only list resources of specific type",
6607 "enum" : [
6608 "ct",
6609 "vm"
6610 ],
6611 "optional" : 1,
6612 "type" : "string"
6613 }
6614 }
6615 },
6616 "permissions" : {
6617 "check" : [
6618 "perm",
6619 "/",
6620 [
6621 "Sys.Audit"
6622 ]
6623 ]
6624 },
6625 "returns" : {
6626 "items" : {
6627 "properties" : {
6628 "sid" : {
6629 "type" : "string"
6630 }
6631 },
6632 "type" : "object"
6633 },
6634 "links" : [
6635 {
6636 "href" : "{sid}",
6637 "rel" : "child"
6638 }
6639 ],
6640 "type" : "array"
6641 }
6642 },
6643 "POST" : {
6644 "allowtoken" : 1,
6645 "description" : "Create a new HA resource.",
6646 "method" : "POST",
6647 "name" : "create",
6648 "parameters" : {
6649 "additionalProperties" : 0,
6650 "properties" : {
6651 "comment" : {
6652 "description" : "Description.",
6653 "maxLength" : 4096,
6654 "optional" : 1,
6655 "type" : "string",
6656 "typetext" : "<string>"
6657 },
6658 "group" : {
6659 "description" : "The HA group identifier.",
6660 "format" : "pve-configid",
6661 "optional" : 1,
6662 "type" : "string",
6663 "typetext" : "<string>"
6664 },
6665 "max_relocate" : {
6666 "default" : 1,
6667 "description" : "Maximal number of service relocate tries when a service failes to start.",
6668 "minimum" : 0,
6669 "optional" : 1,
6670 "type" : "integer",
6671 "typetext" : "<integer> (0 - N)"
6672 },
6673 "max_restart" : {
6674 "default" : 1,
6675 "description" : "Maximal number of tries to restart the service on a node after its start failed.",
6676 "minimum" : 0,
6677 "optional" : 1,
6678 "type" : "integer",
6679 "typetext" : "<integer> (0 - N)"
6680 },
6681 "sid" : {
6682 "description" : "HA resource ID. This consists of a resource type followed by a resource specific name, separated with colon (example: vm:100 / ct:100). For virtual machines and containers, you can simply use the VM or CT id as a shortcut (example: 100).",
6683 "format" : "pve-ha-resource-or-vm-id",
6684 "type" : "string",
6685 "typetext" : "<type>:<name>"
6686 },
6687 "state" : {
6688 "default" : "started",
6689 "description" : "Requested resource state.",
6690 "enum" : [
6691 "started",
6692 "stopped",
6693 "enabled",
6694 "disabled",
6695 "ignored"
6696 ],
6697 "optional" : 1,
6698 "type" : "string",
6699 "verbose_description" : "Requested resource state. The CRM reads this state and acts accordingly.\nPlease note that `enabled` is just an alias for `started`.\n\n`started`;;\n\nThe CRM tries to start the resource. Service state is\nset to `started` after successful start. On node failures, or when start\nfails, it tries to recover the resource. If everything fails, service\nstate it set to `error`.\n\n`stopped`;;\n\nThe CRM tries to keep the resource in `stopped` state, but it\nstill tries to relocate the resources on node failures.\n\n`disabled`;;\n\nThe CRM tries to put the resource in `stopped` state, but does not try\nto relocate the resources on node failures. The main purpose of this\nstate is error recovery, because it is the only way to move a resource out\nof the `error` state.\n\n`ignored`;;\n\nThe resource gets removed from the manager status and so the CRM and the LRM do\nnot touch the resource anymore. All {pve} API calls affecting this resource\nwill be executed, directly bypassing the HA stack. CRM commands will be thrown\naway while there source is in this state. The resource will not get relocated\non node failures.\n\n"
6700 },
6701 "type" : {
6702 "description" : "Resource type.",
6703 "enum" : [
6704 "ct",
6705 "vm"
6706 ],
6707 "optional" : 1,
6708 "type" : "string"
6709 }
6710 },
6711 "type" : "object"
6712 },
6713 "permissions" : {
6714 "check" : [
6715 "perm",
6716 "/",
6717 [
6718 "Sys.Console"
6719 ]
6720 ]
6721 },
6722 "protected" : 1,
6723 "returns" : {
6724 "type" : "null"
6725 }
6726 }
6727 },
6728 "leaf" : 0,
6729 "path" : "/cluster/ha/resources",
6730 "text" : "resources"
6731 },
6732 {
6733 "children" : [
6734 {
6735 "info" : {
6736 "DELETE" : {
6737 "allowtoken" : 1,
6738 "description" : "Delete ha group configuration.",
6739 "method" : "DELETE",
6740 "name" : "delete",
6741 "parameters" : {
6742 "additionalProperties" : 0,
6743 "properties" : {
6744 "group" : {
6745 "description" : "The HA group identifier.",
6746 "format" : "pve-configid",
6747 "type" : "string",
6748 "typetext" : "<string>"
6749 }
6750 }
6751 },
6752 "permissions" : {
6753 "check" : [
6754 "perm",
6755 "/",
6756 [
6757 "Sys.Console"
6758 ]
6759 ]
6760 },
6761 "protected" : 1,
6762 "returns" : {
6763 "type" : "null"
6764 }
6765 },
6766 "GET" : {
6767 "allowtoken" : 1,
6768 "description" : "Read ha group configuration.",
6769 "method" : "GET",
6770 "name" : "read",
6771 "parameters" : {
6772 "additionalProperties" : 0,
6773 "properties" : {
6774 "group" : {
6775 "description" : "The HA group identifier.",
6776 "format" : "pve-configid",
6777 "type" : "string",
6778 "typetext" : "<string>"
6779 }
6780 }
6781 },
6782 "permissions" : {
6783 "check" : [
6784 "perm",
6785 "/",
6786 [
6787 "Sys.Audit"
6788 ]
6789 ]
6790 },
6791 "returns" : {}
6792 },
6793 "PUT" : {
6794 "allowtoken" : 1,
6795 "description" : "Update ha group configuration.",
6796 "method" : "PUT",
6797 "name" : "update",
6798 "parameters" : {
6799 "additionalProperties" : 0,
6800 "properties" : {
6801 "comment" : {
6802 "description" : "Description.",
6803 "maxLength" : 4096,
6804 "optional" : 1,
6805 "type" : "string",
6806 "typetext" : "<string>"
6807 },
6808 "delete" : {
6809 "description" : "A list of settings you want to delete.",
6810 "format" : "pve-configid-list",
6811 "maxLength" : 4096,
6812 "optional" : 1,
6813 "type" : "string",
6814 "typetext" : "<string>"
6815 },
6816 "digest" : {
6817 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
6818 "maxLength" : 64,
6819 "optional" : 1,
6820 "type" : "string",
6821 "typetext" : "<string>"
6822 },
6823 "group" : {
6824 "description" : "The HA group identifier.",
6825 "format" : "pve-configid",
6826 "type" : "string",
6827 "typetext" : "<string>"
6828 },
6829 "nodes" : {
6830 "description" : "List of cluster node names with optional priority.",
6831 "format" : "pve-ha-group-node-list",
6832 "optional" : 1,
6833 "type" : "string",
6834 "typetext" : "<node>[:<pri>]{,<node>[:<pri>]}*",
6835 "verbose_description" : "List of cluster node members, where a priority can be given to each node. A resource bound to a group will run on the available nodes with the highest priority. If there are more nodes in the highest priority class, the services will get distributed to those nodes. The priorities have a relative meaning only."
6836 },
6837 "nofailback" : {
6838 "default" : 0,
6839 "description" : "The CRM tries to run services on the node with the highest priority. If a node with higher priority comes online, the CRM migrates the service to that node. Enabling nofailback prevents that behavior.",
6840 "optional" : 1,
6841 "type" : "boolean",
6842 "typetext" : "<boolean>"
6843 },
6844 "restricted" : {
6845 "default" : 0,
6846 "description" : "Resources bound to restricted groups may only run on nodes defined by the group.",
6847 "optional" : 1,
6848 "type" : "boolean",
6849 "typetext" : "<boolean>",
6850 "verbose_description" : "Resources bound to restricted groups may only run on nodes defined by the group. The resource will be placed in the stopped state if no group node member is online. Resources on unrestricted groups may run on any cluster node if all group members are offline, but they will migrate back as soon as a group member comes online. One can implement a 'preferred node' behavior using an unrestricted group with only one member."
6851 }
6852 },
6853 "type" : "object"
6854 },
6855 "permissions" : {
6856 "check" : [
6857 "perm",
6858 "/",
6859 [
6860 "Sys.Console"
6861 ]
6862 ]
6863 },
6864 "protected" : 1,
6865 "returns" : {
6866 "type" : "null"
6867 }
6868 }
6869 },
6870 "leaf" : 1,
6871 "path" : "/cluster/ha/groups/{group}",
6872 "text" : "{group}"
6873 }
6874 ],
6875 "info" : {
6876 "GET" : {
6877 "allowtoken" : 1,
6878 "description" : "Get HA groups.",
6879 "method" : "GET",
6880 "name" : "index",
6881 "parameters" : {
6882 "additionalProperties" : 0
6883 },
6884 "permissions" : {
6885 "check" : [
6886 "perm",
6887 "/",
6888 [
6889 "Sys.Audit"
6890 ]
6891 ]
6892 },
6893 "returns" : {
6894 "items" : {
6895 "properties" : {
6896 "group" : {
6897 "type" : "string"
6898 }
6899 },
6900 "type" : "object"
6901 },
6902 "links" : [
6903 {
6904 "href" : "{group}",
6905 "rel" : "child"
6906 }
6907 ],
6908 "type" : "array"
6909 }
6910 },
6911 "POST" : {
6912 "allowtoken" : 1,
6913 "description" : "Create a new HA group.",
6914 "method" : "POST",
6915 "name" : "create",
6916 "parameters" : {
6917 "additionalProperties" : 0,
6918 "properties" : {
6919 "comment" : {
6920 "description" : "Description.",
6921 "maxLength" : 4096,
6922 "optional" : 1,
6923 "type" : "string",
6924 "typetext" : "<string>"
6925 },
6926 "group" : {
6927 "description" : "The HA group identifier.",
6928 "format" : "pve-configid",
6929 "type" : "string",
6930 "typetext" : "<string>"
6931 },
6932 "nodes" : {
6933 "description" : "List of cluster node names with optional priority.",
6934 "format" : "pve-ha-group-node-list",
6935 "optional" : 0,
6936 "type" : "string",
6937 "typetext" : "<node>[:<pri>]{,<node>[:<pri>]}*",
6938 "verbose_description" : "List of cluster node members, where a priority can be given to each node. A resource bound to a group will run on the available nodes with the highest priority. If there are more nodes in the highest priority class, the services will get distributed to those nodes. The priorities have a relative meaning only."
6939 },
6940 "nofailback" : {
6941 "default" : 0,
6942 "description" : "The CRM tries to run services on the node with the highest priority. If a node with higher priority comes online, the CRM migrates the service to that node. Enabling nofailback prevents that behavior.",
6943 "optional" : 1,
6944 "type" : "boolean",
6945 "typetext" : "<boolean>"
6946 },
6947 "restricted" : {
6948 "default" : 0,
6949 "description" : "Resources bound to restricted groups may only run on nodes defined by the group.",
6950 "optional" : 1,
6951 "type" : "boolean",
6952 "typetext" : "<boolean>",
6953 "verbose_description" : "Resources bound to restricted groups may only run on nodes defined by the group. The resource will be placed in the stopped state if no group node member is online. Resources on unrestricted groups may run on any cluster node if all group members are offline, but they will migrate back as soon as a group member comes online. One can implement a 'preferred node' behavior using an unrestricted group with only one member."
6954 },
6955 "type" : {
6956 "description" : "Group type.",
6957 "enum" : [
6958 "group"
6959 ],
6960 "optional" : 1,
6961 "type" : "string"
6962 }
6963 },
6964 "type" : "object"
6965 },
6966 "permissions" : {
6967 "check" : [
6968 "perm",
6969 "/",
6970 [
6971 "Sys.Console"
6972 ]
6973 ]
6974 },
6975 "protected" : 1,
6976 "returns" : {
6977 "type" : "null"
6978 }
6979 }
6980 },
6981 "leaf" : 0,
6982 "path" : "/cluster/ha/groups",
6983 "text" : "groups"
6984 },
6985 {
6986 "children" : [
6987 {
6988 "info" : {
6989 "GET" : {
6990 "allowtoken" : 1,
6991 "description" : "Get HA manger status.",
6992 "method" : "GET",
6993 "name" : "status",
6994 "parameters" : {
6995 "additionalProperties" : 0
6996 },
6997 "permissions" : {
6998 "check" : [
6999 "perm",
7000 "/",
7001 [
7002 "Sys.Audit"
7003 ]
7004 ]
7005 },
7006 "returns" : {
7007 "items" : {
7008 "properties" : {
7009 "crm_state" : {
7010 "description" : "For type 'service'. Service state as seen by the CRM.",
7011 "optional" : 1,
7012 "type" : "string"
7013 },
7014 "id" : {
7015 "description" : "Status entry ID (quorum, master, lrm:<node>, service:<sid>).",
7016 "type" : "string"
7017 },
7018 "max_relocate" : {
7019 "description" : "For type 'service'.",
7020 "optional" : 1,
7021 "type" : "integer"
7022 },
7023 "max_restart" : {
7024 "description" : "For type 'service'.",
7025 "optional" : 1,
7026 "type" : "integer"
7027 },
7028 "node" : {
7029 "description" : "Node associated to status entry.",
7030 "type" : "string"
7031 },
7032 "quorate" : {
7033 "description" : "For type 'quorum'. Whether the cluster is quorate or not.",
7034 "optional" : 1,
7035 "type" : "boolean"
7036 },
7037 "request_state" : {
7038 "description" : "For type 'service'. Requested service state.",
7039 "optional" : 1,
7040 "type" : "string"
7041 },
7042 "sid" : {
7043 "description" : "For type 'service'. Service ID.",
7044 "optional" : 1,
7045 "type" : "string"
7046 },
7047 "state" : {
7048 "description" : "For type 'service'. Verbose service state.",
7049 "optional" : 1,
7050 "type" : "string"
7051 },
7052 "status" : {
7053 "description" : "Status of the entry (value depends on type).",
7054 "type" : "string"
7055 },
7056 "timestamp" : {
7057 "description" : "For type 'lrm','master'. Timestamp of the status information.",
7058 "optional" : 1,
7059 "type" : "integer"
7060 },
7061 "type" : {
7062 "description" : "Type of status entry.",
7063 "enum" : [
7064 "quorum",
7065 "master",
7066 "lrm",
7067 "service"
7068 ]
7069 }
7070 },
7071 "type" : "object"
7072 },
7073 "type" : "array"
7074 }
7075 }
7076 },
7077 "leaf" : 1,
7078 "path" : "/cluster/ha/status/current",
7079 "text" : "current"
7080 },
7081 {
7082 "info" : {
7083 "GET" : {
7084 "allowtoken" : 1,
7085 "description" : "Get full HA manger status, including LRM status.",
7086 "method" : "GET",
7087 "name" : "manager_status",
7088 "parameters" : {
7089 "additionalProperties" : 0
7090 },
7091 "permissions" : {
7092 "check" : [
7093 "perm",
7094 "/",
7095 [
7096 "Sys.Audit"
7097 ]
7098 ]
7099 },
7100 "returns" : {
7101 "type" : "object"
7102 }
7103 }
7104 },
7105 "leaf" : 1,
7106 "path" : "/cluster/ha/status/manager_status",
7107 "text" : "manager_status"
7108 }
7109 ],
7110 "info" : {
7111 "GET" : {
7112 "allowtoken" : 1,
7113 "description" : "Directory index.",
7114 "method" : "GET",
7115 "name" : "index",
7116 "parameters" : {
7117 "additionalProperties" : 0
7118 },
7119 "permissions" : {
7120 "user" : "all"
7121 },
7122 "returns" : {
7123 "items" : {
7124 "properties" : {},
7125 "type" : "object"
7126 },
7127 "links" : [
7128 {
7129 "href" : "{name}",
7130 "rel" : "child"
7131 }
7132 ],
7133 "type" : "array"
7134 }
7135 }
7136 },
7137 "leaf" : 0,
7138 "path" : "/cluster/ha/status",
7139 "text" : "status"
7140 }
7141 ],
7142 "info" : {
7143 "GET" : {
7144 "allowtoken" : 1,
7145 "description" : "Directory index.",
7146 "method" : "GET",
7147 "name" : "index",
7148 "parameters" : {
7149 "additionalProperties" : 0
7150 },
7151 "permissions" : {
7152 "check" : [
7153 "perm",
7154 "/",
7155 [
7156 "Sys.Audit"
7157 ]
7158 ]
7159 },
7160 "returns" : {
7161 "items" : {
7162 "properties" : {
7163 "id" : {
7164 "type" : "string"
7165 }
7166 },
7167 "type" : "object"
7168 },
7169 "links" : [
7170 {
7171 "href" : "{id}",
7172 "rel" : "child"
7173 }
7174 ],
7175 "type" : "array"
7176 }
7177 }
7178 },
7179 "leaf" : 0,
7180 "path" : "/cluster/ha",
7181 "text" : "ha"
7182 },
7183 {
7184 "children" : [
7185 {
7186 "children" : [
7187 {
7188 "info" : {
7189 "DELETE" : {
7190 "allowtoken" : 1,
7191 "description" : "Delete ACME plugin configuration.",
7192 "method" : "DELETE",
7193 "name" : "delete_plugin",
7194 "parameters" : {
7195 "additionalProperties" : 0,
7196 "properties" : {
7197 "id" : {
7198 "description" : "Unique identifier for ACME plugin instance.",
7199 "format" : "pve-configid",
7200 "type" : "string",
7201 "typetext" : "<string>"
7202 }
7203 }
7204 },
7205 "permissions" : {
7206 "check" : [
7207 "perm",
7208 "/",
7209 [
7210 "Sys.Modify"
7211 ]
7212 ]
7213 },
7214 "protected" : 1,
7215 "returns" : {
7216 "type" : "null"
7217 }
7218 },
7219 "GET" : {
7220 "allowtoken" : 1,
7221 "description" : "Get ACME plugin configuration.",
7222 "method" : "GET",
7223 "name" : "get_plugin_config",
7224 "parameters" : {
7225 "additionalProperties" : 0,
7226 "properties" : {
7227 "id" : {
7228 "description" : "Unique identifier for ACME plugin instance.",
7229 "format" : "pve-configid",
7230 "type" : "string",
7231 "typetext" : "<string>"
7232 }
7233 }
7234 },
7235 "permissions" : {
7236 "check" : [
7237 "perm",
7238 "/",
7239 [
7240 "Sys.Modify"
7241 ]
7242 ]
7243 },
7244 "protected" : 1,
7245 "returns" : {
7246 "type" : "object"
7247 }
7248 },
7249 "PUT" : {
7250 "allowtoken" : 1,
7251 "description" : "Update ACME plugin configuration.",
7252 "method" : "PUT",
7253 "name" : "update_plugin",
7254 "parameters" : {
7255 "additionalProperties" : 0,
7256 "properties" : {
7257 "api" : {
7258 "description" : "API plugin name",
7259 "enum" : [
7260 "1984hosting",
7261 "acmedns",
7262 "acmeproxy",
7263 "active24",
7264 "ad",
7265 "ali",
7266 "anx",
7267 "artfiles",
7268 "arvan",
7269 "aurora",
7270 "autodns",
7271 "aws",
7272 "azion",
7273 "azure",
7274 "bookmyname",
7275 "bunny",
7276 "cf",
7277 "clouddns",
7278 "cloudns",
7279 "cn",
7280 "conoha",
7281 "constellix",
7282 "cpanel",
7283 "curanet",
7284 "cyon",
7285 "da",
7286 "ddnss",
7287 "desec",
7288 "df",
7289 "dgon",
7290 "dnsexit",
7291 "dnshome",
7292 "dnsimple",
7293 "dnsservices",
7294 "do",
7295 "doapi",
7296 "domeneshop",
7297 "dp",
7298 "dpi",
7299 "dreamhost",
7300 "duckdns",
7301 "durabledns",
7302 "dyn",
7303 "dynu",
7304 "dynv6",
7305 "easydns",
7306 "edgedns",
7307 "euserv",
7308 "exoscale",
7309 "fornex",
7310 "freedns",
7311 "gandi_livedns",
7312 "gcloud",
7313 "gcore",
7314 "gd",
7315 "geoscaling",
7316 "googledomains",
7317 "he",
7318 "hetzner",
7319 "hexonet",
7320 "hostingde",
7321 "huaweicloud",
7322 "infoblox",
7323 "infomaniak",
7324 "internetbs",
7325 "inwx",
7326 "ionos",
7327 "ipv64",
7328 "ispconfig",
7329 "jd",
7330 "joker",
7331 "kappernet",
7332 "kas",
7333 "kinghost",
7334 "knot",
7335 "la",
7336 "leaseweb",
7337 "lexicon",
7338 "linode",
7339 "linode_v4",
7340 "loopia",
7341 "lua",
7342 "maradns",
7343 "me",
7344 "miab",
7345 "misaka",
7346 "myapi",
7347 "mydevil",
7348 "mydnsjp",
7349 "mythic_beasts",
7350 "namecheap",
7351 "namecom",
7352 "namesilo",
7353 "nanelo",
7354 "nederhost",
7355 "neodigit",
7356 "netcup",
7357 "netlify",
7358 "nic",
7359 "njalla",
7360 "nm",
7361 "nsd",
7362 "nsone",
7363 "nsupdate",
7364 "nw",
7365 "oci",
7366 "one",
7367 "online",
7368 "openprovider",
7369 "openstack",
7370 "opnsense",
7371 "ovh",
7372 "pdns",
7373 "pleskxml",
7374 "pointhq",
7375 "porkbun",
7376 "rackcorp",
7377 "rackspace",
7378 "rage4",
7379 "rcode0",
7380 "regru",
7381 "scaleway",
7382 "schlundtech",
7383 "selectel",
7384 "selfhost",
7385 "servercow",
7386 "simply",
7387 "tele3",
7388 "tencent",
7389 "transip",
7390 "udr",
7391 "ultra",
7392 "unoeuro",
7393 "variomedia",
7394 "veesp",
7395 "vercel",
7396 "vscale",
7397 "vultr",
7398 "websupport",
7399 "world4you",
7400 "yandex",
7401 "yc",
7402 "zilore",
7403 "zone",
7404 "zonomi"
7405 ],
7406 "optional" : 1,
7407 "type" : "string"
7408 },
7409 "data" : {
7410 "description" : "DNS plugin data. (base64 encoded)",
7411 "optional" : 1,
7412 "type" : "string",
7413 "typetext" : "<string>"
7414 },
7415 "delete" : {
7416 "description" : "A list of settings you want to delete.",
7417 "format" : "pve-configid-list",
7418 "maxLength" : 4096,
7419 "optional" : 1,
7420 "type" : "string",
7421 "typetext" : "<string>"
7422 },
7423 "digest" : {
7424 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
7425 "maxLength" : 64,
7426 "optional" : 1,
7427 "type" : "string",
7428 "typetext" : "<string>"
7429 },
7430 "disable" : {
7431 "description" : "Flag to disable the config.",
7432 "optional" : 1,
7433 "type" : "boolean",
7434 "typetext" : "<boolean>"
7435 },
7436 "id" : {
7437 "description" : "ACME Plugin ID name",
7438 "format" : "pve-configid",
7439 "type" : "string",
7440 "typetext" : "<string>"
7441 },
7442 "nodes" : {
7443 "description" : "List of cluster node names.",
7444 "format" : "pve-node-list",
7445 "optional" : 1,
7446 "type" : "string",
7447 "typetext" : "<string>"
7448 },
7449 "validation-delay" : {
7450 "default" : 30,
7451 "description" : "Extra delay in seconds to wait before requesting validation. Allows to cope with a long TTL of DNS records.",
7452 "maximum" : 172800,
7453 "minimum" : 0,
7454 "optional" : 1,
7455 "type" : "integer",
7456 "typetext" : "<integer> (0 - 172800)"
7457 }
7458 },
7459 "type" : "object"
7460 },
7461 "permissions" : {
7462 "check" : [
7463 "perm",
7464 "/",
7465 [
7466 "Sys.Modify"
7467 ]
7468 ]
7469 },
7470 "protected" : 1,
7471 "returns" : {
7472 "type" : "null"
7473 }
7474 }
7475 },
7476 "leaf" : 1,
7477 "path" : "/cluster/acme/plugins/{id}",
7478 "text" : "{id}"
7479 }
7480 ],
7481 "info" : {
7482 "GET" : {
7483 "allowtoken" : 1,
7484 "description" : "ACME plugin index.",
7485 "method" : "GET",
7486 "name" : "index",
7487 "parameters" : {
7488 "additionalProperties" : 0,
7489 "properties" : {
7490 "type" : {
7491 "description" : "Only list ACME plugins of a specific type",
7492 "enum" : [
7493 "dns",
7494 "standalone"
7495 ],
7496 "optional" : 1,
7497 "type" : "string"
7498 }
7499 }
7500 },
7501 "permissions" : {
7502 "check" : [
7503 "perm",
7504 "/",
7505 [
7506 "Sys.Modify"
7507 ]
7508 ]
7509 },
7510 "protected" : 1,
7511 "returns" : {
7512 "items" : {
7513 "properties" : {
7514 "plugin" : {
7515 "description" : "Unique identifier for ACME plugin instance.",
7516 "format" : "pve-configid",
7517 "type" : "string"
7518 }
7519 },
7520 "type" : "object"
7521 },
7522 "links" : [
7523 {
7524 "href" : "{plugin}",
7525 "rel" : "child"
7526 }
7527 ],
7528 "type" : "array"
7529 }
7530 },
7531 "POST" : {
7532 "allowtoken" : 1,
7533 "description" : "Add ACME plugin configuration.",
7534 "method" : "POST",
7535 "name" : "add_plugin",
7536 "parameters" : {
7537 "additionalProperties" : 0,
7538 "properties" : {
7539 "api" : {
7540 "description" : "API plugin name",
7541 "enum" : [
7542 "1984hosting",
7543 "acmedns",
7544 "acmeproxy",
7545 "active24",
7546 "ad",
7547 "ali",
7548 "anx",
7549 "artfiles",
7550 "arvan",
7551 "aurora",
7552 "autodns",
7553 "aws",
7554 "azion",
7555 "azure",
7556 "bookmyname",
7557 "bunny",
7558 "cf",
7559 "clouddns",
7560 "cloudns",
7561 "cn",
7562 "conoha",
7563 "constellix",
7564 "cpanel",
7565 "curanet",
7566 "cyon",
7567 "da",
7568 "ddnss",
7569 "desec",
7570 "df",
7571 "dgon",
7572 "dnsexit",
7573 "dnshome",
7574 "dnsimple",
7575 "dnsservices",
7576 "do",
7577 "doapi",
7578 "domeneshop",
7579 "dp",
7580 "dpi",
7581 "dreamhost",
7582 "duckdns",
7583 "durabledns",
7584 "dyn",
7585 "dynu",
7586 "dynv6",
7587 "easydns",
7588 "edgedns",
7589 "euserv",
7590 "exoscale",
7591 "fornex",
7592 "freedns",
7593 "gandi_livedns",
7594 "gcloud",
7595 "gcore",
7596 "gd",
7597 "geoscaling",
7598 "googledomains",
7599 "he",
7600 "hetzner",
7601 "hexonet",
7602 "hostingde",
7603 "huaweicloud",
7604 "infoblox",
7605 "infomaniak",
7606 "internetbs",
7607 "inwx",
7608 "ionos",
7609 "ipv64",
7610 "ispconfig",
7611 "jd",
7612 "joker",
7613 "kappernet",
7614 "kas",
7615 "kinghost",
7616 "knot",
7617 "la",
7618 "leaseweb",
7619 "lexicon",
7620 "linode",
7621 "linode_v4",
7622 "loopia",
7623 "lua",
7624 "maradns",
7625 "me",
7626 "miab",
7627 "misaka",
7628 "myapi",
7629 "mydevil",
7630 "mydnsjp",
7631 "mythic_beasts",
7632 "namecheap",
7633 "namecom",
7634 "namesilo",
7635 "nanelo",
7636 "nederhost",
7637 "neodigit",
7638 "netcup",
7639 "netlify",
7640 "nic",
7641 "njalla",
7642 "nm",
7643 "nsd",
7644 "nsone",
7645 "nsupdate",
7646 "nw",
7647 "oci",
7648 "one",
7649 "online",
7650 "openprovider",
7651 "openstack",
7652 "opnsense",
7653 "ovh",
7654 "pdns",
7655 "pleskxml",
7656 "pointhq",
7657 "porkbun",
7658 "rackcorp",
7659 "rackspace",
7660 "rage4",
7661 "rcode0",
7662 "regru",
7663 "scaleway",
7664 "schlundtech",
7665 "selectel",
7666 "selfhost",
7667 "servercow",
7668 "simply",
7669 "tele3",
7670 "tencent",
7671 "transip",
7672 "udr",
7673 "ultra",
7674 "unoeuro",
7675 "variomedia",
7676 "veesp",
7677 "vercel",
7678 "vscale",
7679 "vultr",
7680 "websupport",
7681 "world4you",
7682 "yandex",
7683 "yc",
7684 "zilore",
7685 "zone",
7686 "zonomi"
7687 ],
7688 "optional" : 1,
7689 "type" : "string"
7690 },
7691 "data" : {
7692 "description" : "DNS plugin data. (base64 encoded)",
7693 "optional" : 1,
7694 "type" : "string",
7695 "typetext" : "<string>"
7696 },
7697 "disable" : {
7698 "description" : "Flag to disable the config.",
7699 "optional" : 1,
7700 "type" : "boolean",
7701 "typetext" : "<boolean>"
7702 },
7703 "id" : {
7704 "description" : "ACME Plugin ID name",
7705 "format" : "pve-configid",
7706 "type" : "string",
7707 "typetext" : "<string>"
7708 },
7709 "nodes" : {
7710 "description" : "List of cluster node names.",
7711 "format" : "pve-node-list",
7712 "optional" : 1,
7713 "type" : "string",
7714 "typetext" : "<string>"
7715 },
7716 "type" : {
7717 "description" : "ACME challenge type.",
7718 "enum" : [
7719 "dns",
7720 "standalone"
7721 ],
7722 "type" : "string"
7723 },
7724 "validation-delay" : {
7725 "default" : 30,
7726 "description" : "Extra delay in seconds to wait before requesting validation. Allows to cope with a long TTL of DNS records.",
7727 "maximum" : 172800,
7728 "minimum" : 0,
7729 "optional" : 1,
7730 "type" : "integer",
7731 "typetext" : "<integer> (0 - 172800)"
7732 }
7733 },
7734 "type" : "object"
7735 },
7736 "permissions" : {
7737 "check" : [
7738 "perm",
7739 "/",
7740 [
7741 "Sys.Modify"
7742 ]
7743 ]
7744 },
7745 "protected" : 1,
7746 "returns" : {
7747 "type" : "null"
7748 }
7749 }
7750 },
7751 "leaf" : 0,
7752 "path" : "/cluster/acme/plugins",
7753 "text" : "plugins"
7754 },
7755 {
7756 "children" : [
7757 {
7758 "info" : {
7759 "DELETE" : {
7760 "allowtoken" : 1,
7761 "description" : "Deactivate existing ACME account at CA.",
7762 "method" : "DELETE",
7763 "name" : "deactivate_account",
7764 "parameters" : {
7765 "additionalProperties" : 0,
7766 "properties" : {
7767 "name" : {
7768 "default" : "default",
7769 "description" : "ACME account config file name.",
7770 "format" : "pve-configid",
7771 "format_description" : "name",
7772 "optional" : 1,
7773 "type" : "string",
7774 "typetext" : "<name>"
7775 }
7776 }
7777 },
7778 "protected" : 1,
7779 "returns" : {
7780 "type" : "string"
7781 }
7782 },
7783 "GET" : {
7784 "allowtoken" : 1,
7785 "description" : "Return existing ACME account information.",
7786 "method" : "GET",
7787 "name" : "get_account",
7788 "parameters" : {
7789 "additionalProperties" : 0,
7790 "properties" : {
7791 "name" : {
7792 "default" : "default",
7793 "description" : "ACME account config file name.",
7794 "format" : "pve-configid",
7795 "format_description" : "name",
7796 "optional" : 1,
7797 "type" : "string",
7798 "typetext" : "<name>"
7799 }
7800 }
7801 },
7802 "protected" : 1,
7803 "returns" : {
7804 "additionalProperties" : 0,
7805 "properties" : {
7806 "account" : {
7807 "optional" : 1,
7808 "renderer" : "yaml",
7809 "type" : "object"
7810 },
7811 "directory" : {
7812 "description" : "URL of ACME CA directory endpoint.",
7813 "optional" : 1,
7814 "pattern" : "^https?://.*",
7815 "type" : "string"
7816 },
7817 "location" : {
7818 "optional" : 1,
7819 "type" : "string"
7820 },
7821 "tos" : {
7822 "optional" : 1,
7823 "type" : "string"
7824 }
7825 },
7826 "type" : "object"
7827 }
7828 },
7829 "PUT" : {
7830 "allowtoken" : 1,
7831 "description" : "Update existing ACME account information with CA. Note: not specifying any new account information triggers a refresh.",
7832 "method" : "PUT",
7833 "name" : "update_account",
7834 "parameters" : {
7835 "additionalProperties" : 0,
7836 "properties" : {
7837 "contact" : {
7838 "description" : "Contact email addresses.",
7839 "format" : "email-list",
7840 "optional" : 1,
7841 "type" : "string",
7842 "typetext" : "<string>"
7843 },
7844 "name" : {
7845 "default" : "default",
7846 "description" : "ACME account config file name.",
7847 "format" : "pve-configid",
7848 "format_description" : "name",
7849 "optional" : 1,
7850 "type" : "string",
7851 "typetext" : "<name>"
7852 }
7853 }
7854 },
7855 "protected" : 1,
7856 "returns" : {
7857 "type" : "string"
7858 }
7859 }
7860 },
7861 "leaf" : 1,
7862 "path" : "/cluster/acme/account/{name}",
7863 "text" : "{name}"
7864 }
7865 ],
7866 "info" : {
7867 "GET" : {
7868 "allowtoken" : 1,
7869 "description" : "ACMEAccount index.",
7870 "method" : "GET",
7871 "name" : "account_index",
7872 "parameters" : {
7873 "additionalProperties" : 0
7874 },
7875 "permissions" : {
7876 "user" : "all"
7877 },
7878 "protected" : 1,
7879 "returns" : {
7880 "items" : {
7881 "properties" : {},
7882 "type" : "object"
7883 },
7884 "links" : [
7885 {
7886 "href" : "{name}",
7887 "rel" : "child"
7888 }
7889 ],
7890 "type" : "array"
7891 }
7892 },
7893 "POST" : {
7894 "allowtoken" : 1,
7895 "description" : "Register a new ACME account with CA.",
7896 "method" : "POST",
7897 "name" : "register_account",
7898 "parameters" : {
7899 "additionalProperties" : 0,
7900 "properties" : {
7901 "contact" : {
7902 "description" : "Contact email addresses.",
7903 "format" : "email-list",
7904 "type" : "string",
7905 "typetext" : "<string>"
7906 },
7907 "directory" : {
7908 "default" : "https://acme-v02.api.letsencrypt.org/directory",
7909 "description" : "URL of ACME CA directory endpoint.",
7910 "optional" : 1,
7911 "pattern" : "^https?://.*",
7912 "type" : "string"
7913 },
7914 "eab-hmac-key" : {
7915 "description" : "HMAC key for External Account Binding.",
7916 "optional" : 1,
7917 "requires" : "eab-kid",
7918 "type" : "string",
7919 "typetext" : "<string>"
7920 },
7921 "eab-kid" : {
7922 "description" : "Key Identifier for External Account Binding.",
7923 "optional" : 1,
7924 "requires" : "eab-hmac-key",
7925 "type" : "string",
7926 "typetext" : "<string>"
7927 },
7928 "name" : {
7929 "default" : "default",
7930 "description" : "ACME account config file name.",
7931 "format" : "pve-configid",
7932 "format_description" : "name",
7933 "optional" : 1,
7934 "type" : "string",
7935 "typetext" : "<name>"
7936 },
7937 "tos_url" : {
7938 "description" : "URL of CA TermsOfService - setting this indicates agreement.",
7939 "optional" : 1,
7940 "type" : "string",
7941 "typetext" : "<string>"
7942 }
7943 }
7944 },
7945 "protected" : 1,
7946 "returns" : {
7947 "type" : "string"
7948 }
7949 }
7950 },
7951 "leaf" : 0,
7952 "path" : "/cluster/acme/account",
7953 "text" : "account"
7954 },
7955 {
7956 "info" : {
7957 "GET" : {
7958 "allowtoken" : 1,
7959 "description" : "Retrieve ACME TermsOfService URL from CA. Deprecated, please use /cluster/acme/meta.",
7960 "method" : "GET",
7961 "name" : "get_tos",
7962 "parameters" : {
7963 "additionalProperties" : 0,
7964 "properties" : {
7965 "directory" : {
7966 "default" : "https://acme-v02.api.letsencrypt.org/directory",
7967 "description" : "URL of ACME CA directory endpoint.",
7968 "optional" : 1,
7969 "pattern" : "^https?://.*",
7970 "type" : "string"
7971 }
7972 }
7973 },
7974 "permissions" : {
7975 "user" : "all"
7976 },
7977 "returns" : {
7978 "description" : "ACME TermsOfService URL.",
7979 "optional" : 1,
7980 "type" : "string"
7981 }
7982 }
7983 },
7984 "leaf" : 1,
7985 "path" : "/cluster/acme/tos",
7986 "text" : "tos"
7987 },
7988 {
7989 "info" : {
7990 "GET" : {
7991 "allowtoken" : 1,
7992 "description" : "Retrieve ACME Directory Meta Information",
7993 "method" : "GET",
7994 "name" : "get_meta",
7995 "parameters" : {
7996 "additionalProperties" : 0,
7997 "properties" : {
7998 "directory" : {
7999 "default" : "https://acme-v02.api.letsencrypt.org/directory",
8000 "description" : "URL of ACME CA directory endpoint.",
8001 "optional" : 1,
8002 "pattern" : "^https?://.*",
8003 "type" : "string"
8004 }
8005 }
8006 },
8007 "permissions" : {
8008 "check" : [
8009 "perm",
8010 "/nodes/{node}",
8011 [
8012 "Sys.Audit"
8013 ]
8014 ]
8015 },
8016 "returns" : {
8017 "additionalProperties" : 1,
8018 "properties" : {
8019 "caaIdentities" : {
8020 "description" : "Hostnames referring to the ACME servers.",
8021 "items" : {
8022 "type" : "string"
8023 },
8024 "optional" : 1,
8025 "type" : "array"
8026 },
8027 "externalAccountRequired" : {
8028 "description" : "EAB Required",
8029 "optional" : 1,
8030 "type" : "boolean"
8031 },
8032 "termsOfService" : {
8033 "description" : "ACME TermsOfService URL.",
8034 "optional" : 1,
8035 "type" : "string"
8036 },
8037 "website" : {
8038 "description" : "URL to more information about the ACME server.",
8039 "optional" : 1,
8040 "type" : "string"
8041 }
8042 },
8043 "type" : "object"
8044 }
8045 }
8046 },
8047 "leaf" : 1,
8048 "path" : "/cluster/acme/meta",
8049 "text" : "meta"
8050 },
8051 {
8052 "info" : {
8053 "GET" : {
8054 "allowtoken" : 1,
8055 "description" : "Get named known ACME directory endpoints.",
8056 "method" : "GET",
8057 "name" : "get_directories",
8058 "parameters" : {
8059 "additionalProperties" : 0
8060 },
8061 "permissions" : {
8062 "user" : "all"
8063 },
8064 "returns" : {
8065 "items" : {
8066 "additionalProperties" : 0,
8067 "properties" : {
8068 "name" : {
8069 "type" : "string"
8070 },
8071 "url" : {
8072 "description" : "URL of ACME CA directory endpoint.",
8073 "pattern" : "^https?://.*",
8074 "type" : "string"
8075 }
8076 },
8077 "type" : "object"
8078 },
8079 "type" : "array"
8080 }
8081 }
8082 },
8083 "leaf" : 1,
8084 "path" : "/cluster/acme/directories",
8085 "text" : "directories"
8086 },
8087 {
8088 "info" : {
8089 "GET" : {
8090 "allowtoken" : 1,
8091 "description" : "Get schema of ACME challenge types.",
8092 "method" : "GET",
8093 "name" : "challengeschema",
8094 "parameters" : {
8095 "additionalProperties" : 0
8096 },
8097 "permissions" : {
8098 "user" : "all"
8099 },
8100 "returns" : {
8101 "items" : {
8102 "additionalProperties" : 0,
8103 "properties" : {
8104 "id" : {
8105 "type" : "string"
8106 },
8107 "name" : {
8108 "description" : "Human readable name, falls back to id",
8109 "type" : "string"
8110 },
8111 "schema" : {
8112 "type" : "object"
8113 },
8114 "type" : {
8115 "type" : "string"
8116 }
8117 },
8118 "type" : "object"
8119 },
8120 "type" : "array"
8121 }
8122 }
8123 },
8124 "leaf" : 1,
8125 "path" : "/cluster/acme/challenge-schema",
8126 "text" : "challenge-schema"
8127 }
8128 ],
8129 "info" : {
8130 "GET" : {
8131 "allowtoken" : 1,
8132 "description" : "ACMEAccount index.",
8133 "method" : "GET",
8134 "name" : "index",
8135 "parameters" : {
8136 "additionalProperties" : 0
8137 },
8138 "permissions" : {
8139 "user" : "all"
8140 },
8141 "returns" : {
8142 "items" : {
8143 "properties" : {},
8144 "type" : "object"
8145 },
8146 "links" : [
8147 {
8148 "href" : "{name}",
8149 "rel" : "child"
8150 }
8151 ],
8152 "type" : "array"
8153 }
8154 }
8155 },
8156 "leaf" : 0,
8157 "path" : "/cluster/acme",
8158 "text" : "acme"
8159 },
8160 {
8161 "children" : [
8162 {
8163 "info" : {
8164 "GET" : {
8165 "allowtoken" : 1,
8166 "description" : "Get ceph metadata.",
8167 "method" : "GET",
8168 "name" : "metadata",
8169 "parameters" : {
8170 "additionalProperties" : 0,
8171 "properties" : {
8172 "scope" : {
8173 "default" : "all",
8174 "enum" : [
8175 "all",
8176 "versions"
8177 ],
8178 "optional" : 1,
8179 "type" : "string"
8180 }
8181 }
8182 },
8183 "permissions" : {
8184 "check" : [
8185 "perm",
8186 "/",
8187 [
8188 "Sys.Audit",
8189 "Datastore.Audit"
8190 ],
8191 "any",
8192 1
8193 ]
8194 },
8195 "protected" : 1,
8196 "returns" : {
8197 "description" : "Items for each type of service containing objects for each instance.",
8198 "properties" : {
8199 "mds" : {
8200 "description" : "Metadata servers configured in the cluster and their properties.",
8201 "properties" : {
8202 "{id}" : {
8203 "description" : "Useful properties are listed, but not the full list.",
8204 "properties" : {
8205 "addr" : {
8206 "description" : "Bind addresses and ports.",
8207 "type" : "string"
8208 },
8209 "ceph_release" : {
8210 "description" : "Ceph release codename currently used.",
8211 "type" : "string"
8212 },
8213 "ceph_version" : {
8214 "description" : "Version info currently used by the service.",
8215 "type" : "string"
8216 },
8217 "ceph_version_short" : {
8218 "description" : "Short version (numerical) info currently used by the service.",
8219 "type" : "string"
8220 },
8221 "hostname" : {
8222 "description" : "Hostname on which the service is running.",
8223 "type" : "string"
8224 },
8225 "mem_swap_kb" : {
8226 "description" : "Memory of the service currently in swap.",
8227 "type" : "integer"
8228 },
8229 "mem_total_kb" : {
8230 "description" : "Memory consumption of the service.",
8231 "type" : "integer"
8232 },
8233 "name" : {
8234 "description" : "Name of the service instance.",
8235 "type" : "string"
8236 }
8237 },
8238 "type" : "object"
8239 }
8240 },
8241 "type" : "object"
8242 },
8243 "mgr" : {
8244 "description" : "Managers configured in the cluster and their properties.",
8245 "properties" : {
8246 "{id}" : {
8247 "description" : "Useful properties are listed, but not the full list.",
8248 "properties" : {
8249 "addr" : {
8250 "description" : "Bind address",
8251 "type" : "string"
8252 },
8253 "ceph_release" : {
8254 "description" : "Ceph release codename currently used.",
8255 "type" : "string"
8256 },
8257 "ceph_version" : {
8258 "description" : "Version info currently used by the service.",
8259 "type" : "string"
8260 },
8261 "ceph_version_short" : {
8262 "description" : "Short version (numerical) info currently used by the service.",
8263 "type" : "string"
8264 },
8265 "hostname" : {
8266 "description" : "Hostname on which the service is running.",
8267 "type" : "string"
8268 },
8269 "mem_swap_kb" : {
8270 "description" : "Memory of the service currently in swap.",
8271 "type" : "integer"
8272 },
8273 "mem_total_kb" : {
8274 "description" : "Memory consumption of the service.",
8275 "type" : "integer"
8276 },
8277 "name" : {
8278 "description" : "Name of the service instance.",
8279 "type" : "string"
8280 }
8281 },
8282 "type" : "object"
8283 }
8284 },
8285 "type" : "object"
8286 },
8287 "mon" : {
8288 "description" : "Monitors configured in the cluster and their properties.",
8289 "properties" : {
8290 "{id}" : {
8291 "description" : "Useful properties are listed, but not the full list.",
8292 "properties" : {
8293 "addrs" : {
8294 "description" : "Bind addresses and ports.",
8295 "type" : "string"
8296 },
8297 "ceph_release" : {
8298 "description" : "Ceph release codename currently used.",
8299 "type" : "string"
8300 },
8301 "ceph_version" : {
8302 "description" : "Version info currently used by the service.",
8303 "type" : "string"
8304 },
8305 "ceph_version_short" : {
8306 "description" : "Short version (numerical) info currently used by the service.",
8307 "type" : "string"
8308 },
8309 "hostname" : {
8310 "description" : "Hostname on which the service is running.",
8311 "type" : "string"
8312 },
8313 "mem_swap_kb" : {
8314 "description" : "Memory of the service currently in swap.",
8315 "type" : "integer"
8316 },
8317 "mem_total_kb" : {
8318 "description" : "Memory consumption of the service.",
8319 "type" : "integer"
8320 },
8321 "name" : {
8322 "description" : "Name of the service instance.",
8323 "type" : "string"
8324 }
8325 },
8326 "type" : "object"
8327 }
8328 },
8329 "type" : "object"
8330 },
8331 "node" : {
8332 "description" : "Ceph version installed on the nodes.",
8333 "properties" : {
8334 "{node}" : {
8335 "properties" : {
8336 "buildcommit" : {
8337 "description" : "GIT commit used for the build.",
8338 "type" : "string"
8339 },
8340 "version" : {
8341 "description" : "Version info.",
8342 "properties" : {
8343 "parts" : {
8344 "description" : "major, minor & patch",
8345 "type" : "array"
8346 },
8347 "str" : {
8348 "description" : "Version as single string.",
8349 "type" : "string"
8350 }
8351 },
8352 "type" : "object"
8353 }
8354 },
8355 "type" : "object"
8356 }
8357 },
8358 "type" : "object"
8359 },
8360 "osd" : {
8361 "description" : "OSDs configured in the cluster and their properties.",
8362 "properties" : {
8363 "{id}" : {
8364 "description" : "Useful properties are listed, but not the full list.",
8365 "properties" : {
8366 "back_addr" : {
8367 "description" : "Bind addresses and ports for backend inter OSD traffic.",
8368 "type" : "string"
8369 },
8370 "ceph_release" : {
8371 "description" : "Ceph release codename currently used.",
8372 "type" : "string"
8373 },
8374 "ceph_version" : {
8375 "description" : "Version info currently used by the service.",
8376 "type" : "string"
8377 },
8378 "ceph_version_short" : {
8379 "description" : "Short version (numerical) info currently used by the service.",
8380 "type" : "string"
8381 },
8382 "device_id" : {
8383 "description" : "Devices used by the OSD.",
8384 "type" : "string"
8385 },
8386 "front_addr" : {
8387 "description" : "Bind addresses and ports for frontend traffic to OSDs.",
8388 "type" : "string"
8389 },
8390 "hostname" : {
8391 "description" : "Hostname on which the service is running.",
8392 "type" : "string"
8393 },
8394 "id" : {
8395 "description" : "OSD ID.",
8396 "type" : "integer"
8397 },
8398 "mem_swap_kb" : {
8399 "description" : "Memory of the service currently in swap.",
8400 "type" : "integer"
8401 },
8402 "mem_total_kb" : {
8403 "description" : "Memory consumption of the service.",
8404 "type" : "integer"
8405 },
8406 "osd_data" : {
8407 "description" : "Path to the OSD data directory.",
8408 "type" : "string"
8409 },
8410 "osd_objectstore" : {
8411 "description" : "OSD objectstore type.",
8412 "type" : "string"
8413 }
8414 },
8415 "type" : "object"
8416 }
8417 },
8418 "type" : "array"
8419 }
8420 },
8421 "type" : "object"
8422 }
8423 }
8424 },
8425 "leaf" : 1,
8426 "path" : "/cluster/ceph/metadata",
8427 "text" : "metadata"
8428 },
8429 {
8430 "info" : {
8431 "GET" : {
8432 "allowtoken" : 1,
8433 "description" : "Get ceph status.",
8434 "method" : "GET",
8435 "name" : "status",
8436 "parameters" : {
8437 "additionalProperties" : 0
8438 },
8439 "permissions" : {
8440 "check" : [
8441 "perm",
8442 "/",
8443 [
8444 "Sys.Audit",
8445 "Datastore.Audit"
8446 ],
8447 "any",
8448 1
8449 ]
8450 },
8451 "protected" : 1,
8452 "returns" : {
8453 "type" : "object"
8454 }
8455 }
8456 },
8457 "leaf" : 1,
8458 "path" : "/cluster/ceph/status",
8459 "text" : "status"
8460 },
8461 {
8462 "children" : [
8463 {
8464 "info" : {
8465 "GET" : {
8466 "allowtoken" : 1,
8467 "description" : "Get the status of a specific ceph flag.",
8468 "method" : "GET",
8469 "name" : "get_flag",
8470 "parameters" : {
8471 "additionalProperties" : 0,
8472 "properties" : {
8473 "flag" : {
8474 "description" : "The name of the flag name to get.",
8475 "enum" : [
8476 "nobackfill",
8477 "nodeep-scrub",
8478 "nodown",
8479 "noin",
8480 "noout",
8481 "norebalance",
8482 "norecover",
8483 "noscrub",
8484 "notieragent",
8485 "noup",
8486 "pause"
8487 ],
8488 "type" : "string"
8489 }
8490 }
8491 },
8492 "permissions" : {
8493 "check" : [
8494 "perm",
8495 "/",
8496 [
8497 "Sys.Audit"
8498 ]
8499 ]
8500 },
8501 "protected" : 1,
8502 "returns" : {
8503 "type" : "boolean"
8504 }
8505 },
8506 "PUT" : {
8507 "allowtoken" : 1,
8508 "description" : "Set or clear (unset) a specific ceph flag",
8509 "method" : "PUT",
8510 "name" : "update_flag",
8511 "parameters" : {
8512 "additionalProperties" : 0,
8513 "properties" : {
8514 "flag" : {
8515 "description" : "The ceph flag to update",
8516 "enum" : [
8517 "nobackfill",
8518 "nodeep-scrub",
8519 "nodown",
8520 "noin",
8521 "noout",
8522 "norebalance",
8523 "norecover",
8524 "noscrub",
8525 "notieragent",
8526 "noup",
8527 "pause"
8528 ],
8529 "type" : "string"
8530 },
8531 "value" : {
8532 "description" : "The new value of the flag",
8533 "type" : "boolean",
8534 "typetext" : "<boolean>"
8535 }
8536 }
8537 },
8538 "permissions" : {
8539 "check" : [
8540 "perm",
8541 "/",
8542 [
8543 "Sys.Modify"
8544 ]
8545 ]
8546 },
8547 "protected" : 1,
8548 "returns" : {
8549 "type" : "null"
8550 }
8551 }
8552 },
8553 "leaf" : 1,
8554 "path" : "/cluster/ceph/flags/{flag}",
8555 "text" : "{flag}"
8556 }
8557 ],
8558 "info" : {
8559 "GET" : {
8560 "allowtoken" : 1,
8561 "description" : "get the status of all ceph flags",
8562 "method" : "GET",
8563 "name" : "get_all_flags",
8564 "parameters" : {
8565 "additionalProperties" : 0
8566 },
8567 "permissions" : {
8568 "check" : [
8569 "perm",
8570 "/",
8571 [
8572 "Sys.Audit"
8573 ]
8574 ]
8575 },
8576 "protected" : 1,
8577 "returns" : {
8578 "items" : {
8579 "additionalProperties" : 1,
8580 "properties" : {
8581 "description" : {
8582 "description" : "Flag description.",
8583 "type" : "string"
8584 },
8585 "name" : {
8586 "description" : "Flag name.",
8587 "enum" : [
8588 "nobackfill",
8589 "nodeep-scrub",
8590 "nodown",
8591 "noin",
8592 "noout",
8593 "norebalance",
8594 "norecover",
8595 "noscrub",
8596 "notieragent",
8597 "noup",
8598 "pause"
8599 ],
8600 "type" : "string"
8601 },
8602 "value" : {
8603 "description" : "Flag value.",
8604 "type" : "boolean"
8605 }
8606 },
8607 "type" : "object"
8608 },
8609 "links" : [
8610 {
8611 "href" : "{name}",
8612 "rel" : "child"
8613 }
8614 ],
8615 "type" : "array"
8616 }
8617 },
8618 "PUT" : {
8619 "allowtoken" : 1,
8620 "description" : "Set/Unset multiple ceph flags at once.",
8621 "method" : "PUT",
8622 "name" : "set_flags",
8623 "parameters" : {
8624 "additionalProperties" : 0,
8625 "properties" : {
8626 "nobackfill" : {
8627 "description" : "Backfilling of PGs is suspended.",
8628 "optional" : 1,
8629 "type" : "boolean",
8630 "typetext" : "<boolean>"
8631 },
8632 "nodeep-scrub" : {
8633 "description" : "Deep Scrubbing is disabled.",
8634 "optional" : 1,
8635 "type" : "boolean",
8636 "typetext" : "<boolean>"
8637 },
8638 "nodown" : {
8639 "description" : "OSD failure reports are being ignored, such that the monitors will not mark OSDs down.",
8640 "optional" : 1,
8641 "type" : "boolean",
8642 "typetext" : "<boolean>"
8643 },
8644 "noin" : {
8645 "description" : "OSDs that were previously marked out will not be marked back in when they start.",
8646 "optional" : 1,
8647 "type" : "boolean",
8648 "typetext" : "<boolean>"
8649 },
8650 "noout" : {
8651 "description" : "OSDs will not automatically be marked out after the configured interval.",
8652 "optional" : 1,
8653 "type" : "boolean",
8654 "typetext" : "<boolean>"
8655 },
8656 "norebalance" : {
8657 "description" : "Rebalancing of PGs is suspended.",
8658 "optional" : 1,
8659 "type" : "boolean",
8660 "typetext" : "<boolean>"
8661 },
8662 "norecover" : {
8663 "description" : "Recovery of PGs is suspended.",
8664 "optional" : 1,
8665 "type" : "boolean",
8666 "typetext" : "<boolean>"
8667 },
8668 "noscrub" : {
8669 "description" : "Scrubbing is disabled.",
8670 "optional" : 1,
8671 "type" : "boolean",
8672 "typetext" : "<boolean>"
8673 },
8674 "notieragent" : {
8675 "description" : "Cache tiering activity is suspended.",
8676 "optional" : 1,
8677 "type" : "boolean",
8678 "typetext" : "<boolean>"
8679 },
8680 "noup" : {
8681 "description" : "OSDs are not allowed to start.",
8682 "optional" : 1,
8683 "type" : "boolean",
8684 "typetext" : "<boolean>"
8685 },
8686 "pause" : {
8687 "description" : "Pauses read and writes.",
8688 "optional" : 1,
8689 "type" : "boolean",
8690 "typetext" : "<boolean>"
8691 }
8692 }
8693 },
8694 "permissions" : {
8695 "check" : [
8696 "perm",
8697 "/",
8698 [
8699 "Sys.Modify"
8700 ]
8701 ]
8702 },
8703 "protected" : 1,
8704 "returns" : {
8705 "type" : "string"
8706 }
8707 }
8708 },
8709 "leaf" : 0,
8710 "path" : "/cluster/ceph/flags",
8711 "text" : "flags"
8712 }
8713 ],
8714 "info" : {
8715 "GET" : {
8716 "allowtoken" : 1,
8717 "description" : "Cluster ceph index.",
8718 "method" : "GET",
8719 "name" : "cephindex",
8720 "parameters" : {
8721 "additionalProperties" : 0
8722 },
8723 "permissions" : {
8724 "user" : "all"
8725 },
8726 "returns" : {
8727 "items" : {
8728 "properties" : {},
8729 "type" : "object"
8730 },
8731 "links" : [
8732 {
8733 "href" : "{name}",
8734 "rel" : "child"
8735 }
8736 ],
8737 "type" : "array"
8738 }
8739 }
8740 },
8741 "leaf" : 0,
8742 "path" : "/cluster/ceph",
8743 "text" : "ceph"
8744 },
8745 {
8746 "children" : [
8747 {
8748 "children" : [
8749 {
8750 "info" : {
8751 "DELETE" : {
8752 "allowtoken" : 1,
8753 "description" : "Delete realm-sync job definition.",
8754 "method" : "DELETE",
8755 "name" : "delete_job",
8756 "parameters" : {
8757 "additionalProperties" : 0,
8758 "properties" : {
8759 "id" : {
8760 "format" : "pve-configid",
8761 "type" : "string",
8762 "typetext" : "<string>"
8763 }
8764 }
8765 },
8766 "permissions" : {
8767 "check" : [
8768 "perm",
8769 "/",
8770 [
8771 "Sys.Modify"
8772 ]
8773 ]
8774 },
8775 "protected" : 1,
8776 "returns" : {
8777 "type" : "null"
8778 }
8779 },
8780 "GET" : {
8781 "allowtoken" : 1,
8782 "description" : "Read realm-sync job definition.",
8783 "method" : "GET",
8784 "name" : "read_job",
8785 "parameters" : {
8786 "additionalProperties" : 0,
8787 "properties" : {
8788 "id" : {
8789 "format" : "pve-configid",
8790 "type" : "string",
8791 "typetext" : "<string>"
8792 }
8793 }
8794 },
8795 "permissions" : {
8796 "check" : [
8797 "perm",
8798 "/",
8799 [
8800 "Sys.Audit"
8801 ]
8802 ]
8803 },
8804 "returns" : {
8805 "type" : "object"
8806 }
8807 },
8808 "POST" : {
8809 "allowtoken" : 1,
8810 "description" : "Create new realm-sync job.",
8811 "method" : "POST",
8812 "name" : "create_job",
8813 "parameters" : {
8814 "additionalProperties" : 0,
8815 "properties" : {
8816 "comment" : {
8817 "description" : "Description for the Job.",
8818 "maxLength" : 512,
8819 "optional" : 1,
8820 "type" : "string",
8821 "typetext" : "<string>"
8822 },
8823 "enable-new" : {
8824 "default" : "1",
8825 "description" : "Enable newly synced users immediately.",
8826 "optional" : 1,
8827 "type" : "boolean",
8828 "typetext" : "<boolean>"
8829 },
8830 "enabled" : {
8831 "default" : 1,
8832 "description" : "Determines if the job is enabled.",
8833 "optional" : 1,
8834 "type" : "boolean",
8835 "typetext" : "<boolean>"
8836 },
8837 "id" : {
8838 "description" : "The ID of the job.",
8839 "format" : "pve-configid",
8840 "maxLength" : 64,
8841 "type" : "string",
8842 "typetext" : "<string>"
8843 },
8844 "realm" : {
8845 "description" : "Authentication domain ID",
8846 "format" : "pve-realm",
8847 "maxLength" : 32,
8848 "optional" : 1,
8849 "type" : "string",
8850 "typetext" : "<string>"
8851 },
8852 "remove-vanished" : {
8853 "default" : "none",
8854 "description" : "A semicolon-seperated list of things to remove when they or the user vanishes during a sync. The following values are possible: 'entry' removes the user/group when not returned from the sync. 'properties' removes the set properties on existing user/group that do not appear in the source (even custom ones). 'acl' removes acls when the user/group is not returned from the sync. Instead of a list it also can be 'none' (the default).",
8855 "optional" : 1,
8856 "pattern" : "(?:(?:(?:acl|properties|entry);)*(?:acl|properties|entry))|none",
8857 "type" : "string",
8858 "typetext" : "([acl];[properties];[entry])|none"
8859 },
8860 "schedule" : {
8861 "description" : "Backup schedule. The format is a subset of `systemd` calendar events.",
8862 "format" : "pve-calendar-event",
8863 "maxLength" : 128,
8864 "type" : "string",
8865 "typetext" : "<string>"
8866 },
8867 "scope" : {
8868 "description" : "Select what to sync.",
8869 "enum" : [
8870 "users",
8871 "groups",
8872 "both"
8873 ],
8874 "optional" : 1,
8875 "type" : "string"
8876 }
8877 },
8878 "type" : "object"
8879 },
8880 "permissions" : {
8881 "check" : [
8882 "and",
8883 [
8884 "perm",
8885 "/access/realm/{realm}",
8886 [
8887 "Realm.AllocateUser"
8888 ]
8889 ],
8890 [
8891 "perm",
8892 "/access/groups",
8893 [
8894 "User.Modify"
8895 ]
8896 ]
8897 ],
8898 "description" : "'Realm.AllocateUser' on '/access/realm/<realm>' and 'User.Modify' permissions to '/access/groups/'."
8899 },
8900 "protected" : 1,
8901 "returns" : {
8902 "type" : "null"
8903 }
8904 },
8905 "PUT" : {
8906 "allowtoken" : 1,
8907 "description" : "Update realm-sync job definition.",
8908 "method" : "PUT",
8909 "name" : "update_job",
8910 "parameters" : {
8911 "additionalProperties" : 0,
8912 "properties" : {
8913 "comment" : {
8914 "description" : "Description for the Job.",
8915 "maxLength" : 512,
8916 "optional" : 1,
8917 "type" : "string",
8918 "typetext" : "<string>"
8919 },
8920 "delete" : {
8921 "description" : "A list of settings you want to delete.",
8922 "format" : "pve-configid-list",
8923 "maxLength" : 4096,
8924 "optional" : 1,
8925 "type" : "string",
8926 "typetext" : "<string>"
8927 },
8928 "enable-new" : {
8929 "default" : "1",
8930 "description" : "Enable newly synced users immediately.",
8931 "optional" : 1,
8932 "type" : "boolean",
8933 "typetext" : "<boolean>"
8934 },
8935 "enabled" : {
8936 "default" : 1,
8937 "description" : "Determines if the job is enabled.",
8938 "optional" : 1,
8939 "type" : "boolean",
8940 "typetext" : "<boolean>"
8941 },
8942 "id" : {
8943 "description" : "The ID of the job.",
8944 "format" : "pve-configid",
8945 "maxLength" : 64,
8946 "type" : "string",
8947 "typetext" : "<string>"
8948 },
8949 "remove-vanished" : {
8950 "default" : "none",
8951 "description" : "A semicolon-seperated list of things to remove when they or the user vanishes during a sync. The following values are possible: 'entry' removes the user/group when not returned from the sync. 'properties' removes the set properties on existing user/group that do not appear in the source (even custom ones). 'acl' removes acls when the user/group is not returned from the sync. Instead of a list it also can be 'none' (the default).",
8952 "optional" : 1,
8953 "pattern" : "(?:(?:(?:acl|properties|entry);)*(?:acl|properties|entry))|none",
8954 "type" : "string",
8955 "typetext" : "([acl];[properties];[entry])|none"
8956 },
8957 "schedule" : {
8958 "description" : "Backup schedule. The format is a subset of `systemd` calendar events.",
8959 "format" : "pve-calendar-event",
8960 "maxLength" : 128,
8961 "type" : "string",
8962 "typetext" : "<string>"
8963 },
8964 "scope" : {
8965 "description" : "Select what to sync.",
8966 "enum" : [
8967 "users",
8968 "groups",
8969 "both"
8970 ],
8971 "optional" : 1,
8972 "type" : "string"
8973 }
8974 },
8975 "type" : "object"
8976 },
8977 "permissions" : {
8978 "check" : [
8979 "and",
8980 [
8981 "perm",
8982 "/access/realm/{realm}",
8983 [
8984 "Realm.AllocateUser"
8985 ]
8986 ],
8987 [
8988 "perm",
8989 "/access/groups",
8990 [
8991 "User.Modify"
8992 ]
8993 ]
8994 ],
8995 "description" : "'Realm.AllocateUser' on '/access/realm/<realm>' and 'User.Modify' permissions to '/access/groups/'."
8996 },
8997 "protected" : 1,
8998 "returns" : {
8999 "type" : "null"
9000 }
9001 }
9002 },
9003 "leaf" : 1,
9004 "path" : "/cluster/jobs/realm-sync/{id}",
9005 "text" : "{id}"
9006 }
9007 ],
9008 "info" : {
9009 "GET" : {
9010 "allowtoken" : 1,
9011 "description" : "List configured realm-sync-jobs.",
9012 "method" : "GET",
9013 "name" : "syncjob_index",
9014 "parameters" : {
9015 "additionalProperties" : 0
9016 },
9017 "permissions" : {
9018 "check" : [
9019 "perm",
9020 "/",
9021 [
9022 "Sys.Audit"
9023 ]
9024 ]
9025 },
9026 "returns" : {
9027 "items" : {
9028 "properties" : {
9029 "comment" : {
9030 "description" : "A comment for the job.",
9031 "optional" : 1,
9032 "type" : "string"
9033 },
9034 "enabled" : {
9035 "description" : "If the job is enabled or not.",
9036 "type" : "boolean"
9037 },
9038 "id" : {
9039 "description" : "The ID of the entry.",
9040 "type" : "string"
9041 },
9042 "last-run" : {
9043 "description" : "Last execution time of the job in seconds since the beginning of the UNIX epoch",
9044 "optional" : 1,
9045 "type" : "integer"
9046 },
9047 "next-run" : {
9048 "description" : "Next planned execution time of the job in seconds since the beginning of the UNIX epoch.",
9049 "optional" : 1,
9050 "type" : "integer"
9051 },
9052 "realm" : {
9053 "description" : "Authentication domain ID",
9054 "format" : "pve-realm",
9055 "maxLength" : 32,
9056 "type" : "string"
9057 },
9058 "remove-vanished" : {
9059 "default" : "none",
9060 "description" : "A semicolon-seperated list of things to remove when they or the user vanishes during a sync. The following values are possible: 'entry' removes the user/group when not returned from the sync. 'properties' removes the set properties on existing user/group that do not appear in the source (even custom ones). 'acl' removes acls when the user/group is not returned from the sync. Instead of a list it also can be 'none' (the default).",
9061 "optional" : "1",
9062 "pattern" : "(?:(?:(?:acl|properties|entry);)*(?:acl|properties|entry))|none",
9063 "type" : "string",
9064 "typetext" : "([acl];[properties];[entry])|none"
9065 },
9066 "schedule" : {
9067 "description" : "The configured sync schedule.",
9068 "type" : "string"
9069 },
9070 "scope" : {
9071 "description" : "Select what to sync.",
9072 "enum" : [
9073 "users",
9074 "groups",
9075 "both"
9076 ],
9077 "optional" : "1",
9078 "type" : "string"
9079 }
9080 },
9081 "type" : "object"
9082 },
9083 "links" : [
9084 {
9085 "href" : "{id}",
9086 "rel" : "child"
9087 }
9088 ],
9089 "type" : "array"
9090 }
9091 }
9092 },
9093 "leaf" : 0,
9094 "path" : "/cluster/jobs/realm-sync",
9095 "text" : "realm-sync"
9096 },
9097 {
9098 "info" : {
9099 "GET" : {
9100 "allowtoken" : 1,
9101 "description" : "Returns a list of future schedule runtimes.",
9102 "method" : "GET",
9103 "name" : "schedule-analyze",
9104 "parameters" : {
9105 "additionalProperties" : 0,
9106 "properties" : {
9107 "iterations" : {
9108 "default" : 10,
9109 "description" : "Number of event-iteration to simulate and return.",
9110 "maximum" : 100,
9111 "minimum" : 1,
9112 "optional" : 1,
9113 "type" : "integer",
9114 "typetext" : "<integer> (1 - 100)"
9115 },
9116 "schedule" : {
9117 "description" : "Job schedule. The format is a subset of `systemd` calendar events.",
9118 "format" : "pve-calendar-event",
9119 "maxLength" : 128,
9120 "type" : "string",
9121 "typetext" : "<string>"
9122 },
9123 "starttime" : {
9124 "description" : "UNIX timestamp to start the calculation from. Defaults to the current time.",
9125 "optional" : 1,
9126 "type" : "integer",
9127 "typetext" : "<integer>"
9128 }
9129 }
9130 },
9131 "permissions" : {
9132 "user" : "all"
9133 },
9134 "returns" : {
9135 "description" : "An array of the next <iterations> events since <starttime>.",
9136 "items" : {
9137 "properties" : {
9138 "timestamp" : {
9139 "description" : "UNIX timestamp for the run.",
9140 "type" : "integer"
9141 },
9142 "utc" : {
9143 "description" : "UTC timestamp for the run.",
9144 "type" : "string"
9145 }
9146 },
9147 "type" : "object"
9148 },
9149 "type" : "array"
9150 }
9151 }
9152 },
9153 "leaf" : 1,
9154 "path" : "/cluster/jobs/schedule-analyze",
9155 "text" : "schedule-analyze"
9156 }
9157 ],
9158 "info" : {
9159 "GET" : {
9160 "allowtoken" : 1,
9161 "description" : "Index for jobs related endpoints.",
9162 "method" : "GET",
9163 "name" : "index",
9164 "parameters" : {
9165 "additionalProperties" : 0
9166 },
9167 "permissions" : {
9168 "user" : "all"
9169 },
9170 "returns" : {
9171 "description" : "Directory index.",
9172 "items" : {
9173 "properties" : {
9174 "subdir" : {
9175 "description" : "API sub-directory endpoint",
9176 "type" : "string"
9177 }
9178 },
9179 "type" : "object"
9180 },
9181 "links" : [
9182 {
9183 "href" : "{subdir}",
9184 "rel" : "child"
9185 }
9186 ],
9187 "type" : "array"
9188 }
9189 }
9190 },
9191 "leaf" : 0,
9192 "path" : "/cluster/jobs",
9193 "text" : "jobs"
9194 },
9195 {
9196 "children" : [
9197 {
9198 "children" : [
9199 {
9200 "info" : {
9201 "DELETE" : {
9202 "allowtoken" : 1,
9203 "description" : "Remove Hardware Mapping.",
9204 "method" : "DELETE",
9205 "name" : "delete",
9206 "parameters" : {
9207 "additionalProperties" : 0,
9208 "properties" : {
9209 "id" : {
9210 "format" : "pve-configid",
9211 "type" : "string",
9212 "typetext" : "<string>"
9213 }
9214 }
9215 },
9216 "permissions" : {
9217 "check" : [
9218 "perm",
9219 "/mapping/pci",
9220 [
9221 "Mapping.Modify"
9222 ]
9223 ]
9224 },
9225 "protected" : 1,
9226 "returns" : {
9227 "type" : "null"
9228 }
9229 },
9230 "GET" : {
9231 "allowtoken" : 1,
9232 "description" : "Get PCI Mapping.",
9233 "method" : "GET",
9234 "name" : "get",
9235 "parameters" : {
9236 "additionalProperties" : 0,
9237 "properties" : {
9238 "id" : {
9239 "format" : "pve-configid",
9240 "type" : "string",
9241 "typetext" : "<string>"
9242 }
9243 }
9244 },
9245 "permissions" : {
9246 "check" : [
9247 "or",
9248 [
9249 "perm",
9250 "/mapping/pci/{id}",
9251 [
9252 "Mapping.Use"
9253 ]
9254 ],
9255 [
9256 "perm",
9257 "/mapping/pci/{id}",
9258 [
9259 "Mapping.Modify"
9260 ]
9261 ],
9262 [
9263 "perm",
9264 "/mapping/pci/{id}",
9265 [
9266 "Mapping.Audit"
9267 ]
9268 ]
9269 ]
9270 },
9271 "protected" : 1,
9272 "returns" : {
9273 "type" : "object"
9274 }
9275 },
9276 "PUT" : {
9277 "allowtoken" : 1,
9278 "description" : "Update a hardware mapping.",
9279 "method" : "PUT",
9280 "name" : "update",
9281 "parameters" : {
9282 "additionalProperties" : 0,
9283 "properties" : {
9284 "delete" : {
9285 "description" : "A list of settings you want to delete.",
9286 "format" : "pve-configid-list",
9287 "maxLength" : 4096,
9288 "optional" : 1,
9289 "type" : "string",
9290 "typetext" : "<string>"
9291 },
9292 "description" : {
9293 "description" : "Description of the logical PCI device.",
9294 "maxLength" : 4096,
9295 "optional" : 1,
9296 "type" : "string",
9297 "typetext" : "<string>"
9298 },
9299 "digest" : {
9300 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
9301 "maxLength" : 64,
9302 "optional" : 1,
9303 "type" : "string",
9304 "typetext" : "<string>"
9305 },
9306 "id" : {
9307 "description" : "The ID of the logical PCI mapping.",
9308 "format" : "pve-configid",
9309 "type" : "string",
9310 "typetext" : "<string>"
9311 },
9312 "map" : {
9313 "description" : "A list of maps for the cluster nodes.",
9314 "items" : {
9315 "format" : {
9316 "description" : {
9317 "description" : "Description of the node specific device.",
9318 "maxLength" : 4096,
9319 "optional" : 1,
9320 "type" : "string"
9321 },
9322 "id" : {
9323 "description" : "The vendor and device ID that is expected. Used for detecting hardware changes",
9324 "pattern" : "(?^:^[0-9A-Fa-f]{4}:[0-9A-Fa-f]{4}$)",
9325 "type" : "string"
9326 },
9327 "iommugroup" : {
9328 "description" : "The IOMMU group in which the device is to be expected in. Used for detecting hardware changes.",
9329 "optional" : 1,
9330 "type" : "integer"
9331 },
9332 "node" : {
9333 "description" : "The cluster node name.",
9334 "format" : "pve-node",
9335 "type" : "string"
9336 },
9337 "path" : {
9338 "description" : "The path to the device. If the function is omitted, the whole device is mapped. In that case use the attributes of the first device. You can give multiple paths as a semicolon seperated list, the first available will then be chosen on guest start.",
9339 "pattern" : "(?:[a-f0-9]{4,}:[a-f0-9]{2}:[a-f0-9]{2}(?:.[a-f0-9])?;)*[a-f0-9]{4,}:[a-f0-9]{2}:[a-f0-9]{2}(?:.[a-f0-9])?",
9340 "type" : "string"
9341 },
9342 "subsystem-id" : {
9343 "description" : "The subsystem vendor and device ID that is expected. Used for detecting hardware changes.",
9344 "optional" : 1,
9345 "pattern" : "(?^:^[0-9A-Fa-f]{4}:[0-9A-Fa-f]{4}$)",
9346 "type" : "string"
9347 }
9348 },
9349 "type" : "string"
9350 },
9351 "optional" : 1,
9352 "type" : "array",
9353 "typetext" : "<array>"
9354 },
9355 "mdev" : {
9356 "default" : 0,
9357 "description" : "Marks the device(s) as being capable of providing mediated devices.",
9358 "optional" : 1,
9359 "type" : "boolean",
9360 "typetext" : "<boolean>"
9361 }
9362 },
9363 "type" : "object"
9364 },
9365 "permissions" : {
9366 "check" : [
9367 "perm",
9368 "/mapping/pci/{id}",
9369 [
9370 "Mapping.Modify"
9371 ]
9372 ]
9373 },
9374 "protected" : 1,
9375 "returns" : {
9376 "type" : "null"
9377 }
9378 }
9379 },
9380 "leaf" : 1,
9381 "path" : "/cluster/mapping/pci/{id}",
9382 "text" : "{id}"
9383 }
9384 ],
9385 "info" : {
9386 "GET" : {
9387 "allowtoken" : 1,
9388 "description" : "List PCI Hardware Mapping",
9389 "method" : "GET",
9390 "name" : "index",
9391 "parameters" : {
9392 "additionalProperties" : 0,
9393 "properties" : {
9394 "check-node" : {
9395 "description" : "If given, checks the configurations on the given node for correctness, and adds relevant diagnostics for the devices to the response.",
9396 "format" : "pve-node",
9397 "optional" : 1,
9398 "type" : "string",
9399 "typetext" : "<string>"
9400 }
9401 }
9402 },
9403 "permissions" : {
9404 "description" : "Only lists entries where you have 'Mapping.Modify', 'Mapping.Use' or 'Mapping.Audit' permissions on '/mapping/pci/<id>'.",
9405 "user" : "all"
9406 },
9407 "returns" : {
9408 "items" : {
9409 "properties" : {
9410 "checks" : {
9411 "description" : "A list of checks, only present if 'check_node' is set.",
9412 "items" : {
9413 "properties" : {
9414 "message" : {
9415 "description" : "The message of the error",
9416 "type" : "string"
9417 },
9418 "severity" : {
9419 "description" : "The severity of the error",
9420 "enum" : [
9421 "warning",
9422 "error"
9423 ],
9424 "type" : "string"
9425 }
9426 },
9427 "type" : "object"
9428 },
9429 "optional" : 1,
9430 "type" : "array"
9431 },
9432 "description" : {
9433 "description" : "A description of the logical mapping.",
9434 "type" : "string"
9435 },
9436 "id" : {
9437 "description" : "The logical ID of the mapping.",
9438 "type" : "string"
9439 },
9440 "map" : {
9441 "description" : "The entries of the mapping.",
9442 "items" : {
9443 "description" : "A mapping for a node.",
9444 "type" : "string"
9445 },
9446 "type" : "array"
9447 }
9448 },
9449 "type" : "object"
9450 },
9451 "links" : [
9452 {
9453 "href" : "{id}",
9454 "rel" : "child"
9455 }
9456 ],
9457 "type" : "array"
9458 }
9459 },
9460 "POST" : {
9461 "allowtoken" : 1,
9462 "description" : "Create a new hardware mapping.",
9463 "method" : "POST",
9464 "name" : "create",
9465 "parameters" : {
9466 "additionalProperties" : 0,
9467 "properties" : {
9468 "description" : {
9469 "description" : "Description of the logical PCI device.",
9470 "maxLength" : 4096,
9471 "optional" : 1,
9472 "type" : "string",
9473 "typetext" : "<string>"
9474 },
9475 "id" : {
9476 "description" : "The ID of the logical PCI mapping.",
9477 "format" : "pve-configid",
9478 "type" : "string",
9479 "typetext" : "<string>"
9480 },
9481 "map" : {
9482 "description" : "A list of maps for the cluster nodes.",
9483 "items" : {
9484 "format" : {
9485 "description" : {
9486 "description" : "Description of the node specific device.",
9487 "maxLength" : 4096,
9488 "optional" : 1,
9489 "type" : "string"
9490 },
9491 "id" : {
9492 "description" : "The vendor and device ID that is expected. Used for detecting hardware changes",
9493 "pattern" : "(?^:^[0-9A-Fa-f]{4}:[0-9A-Fa-f]{4}$)",
9494 "type" : "string"
9495 },
9496 "iommugroup" : {
9497 "description" : "The IOMMU group in which the device is to be expected in. Used for detecting hardware changes.",
9498 "optional" : 1,
9499 "type" : "integer"
9500 },
9501 "node" : {
9502 "description" : "The cluster node name.",
9503 "format" : "pve-node",
9504 "type" : "string"
9505 },
9506 "path" : {
9507 "description" : "The path to the device. If the function is omitted, the whole device is mapped. In that case use the attributes of the first device. You can give multiple paths as a semicolon seperated list, the first available will then be chosen on guest start.",
9508 "pattern" : "(?:[a-f0-9]{4,}:[a-f0-9]{2}:[a-f0-9]{2}(?:.[a-f0-9])?;)*[a-f0-9]{4,}:[a-f0-9]{2}:[a-f0-9]{2}(?:.[a-f0-9])?",
9509 "type" : "string"
9510 },
9511 "subsystem-id" : {
9512 "description" : "The subsystem vendor and device ID that is expected. Used for detecting hardware changes.",
9513 "optional" : 1,
9514 "pattern" : "(?^:^[0-9A-Fa-f]{4}:[0-9A-Fa-f]{4}$)",
9515 "type" : "string"
9516 }
9517 },
9518 "type" : "string"
9519 },
9520 "optional" : 0,
9521 "type" : "array",
9522 "typetext" : "<array>"
9523 },
9524 "mdev" : {
9525 "default" : 0,
9526 "description" : "Marks the device(s) as being capable of providing mediated devices.",
9527 "optional" : 1,
9528 "type" : "boolean",
9529 "typetext" : "<boolean>"
9530 }
9531 },
9532 "type" : "object"
9533 },
9534 "permissions" : {
9535 "check" : [
9536 "perm",
9537 "/mapping/pci",
9538 [
9539 "Mapping.Modify"
9540 ]
9541 ]
9542 },
9543 "protected" : 1,
9544 "returns" : {
9545 "type" : "null"
9546 }
9547 }
9548 },
9549 "leaf" : 0,
9550 "path" : "/cluster/mapping/pci",
9551 "text" : "pci"
9552 },
9553 {
9554 "children" : [
9555 {
9556 "info" : {
9557 "DELETE" : {
9558 "allowtoken" : 1,
9559 "description" : "Remove Hardware Mapping.",
9560 "method" : "DELETE",
9561 "name" : "delete",
9562 "parameters" : {
9563 "additionalProperties" : 0,
9564 "properties" : {
9565 "id" : {
9566 "format" : "pve-configid",
9567 "type" : "string",
9568 "typetext" : "<string>"
9569 }
9570 }
9571 },
9572 "permissions" : {
9573 "check" : [
9574 "perm",
9575 "/mapping/usb",
9576 [
9577 "Mapping.Modify"
9578 ]
9579 ]
9580 },
9581 "protected" : 1,
9582 "returns" : {
9583 "type" : "null"
9584 }
9585 },
9586 "GET" : {
9587 "allowtoken" : 1,
9588 "description" : "Get USB Mapping.",
9589 "method" : "GET",
9590 "name" : "get",
9591 "parameters" : {
9592 "additionalProperties" : 0,
9593 "properties" : {
9594 "id" : {
9595 "format" : "pve-configid",
9596 "type" : "string",
9597 "typetext" : "<string>"
9598 }
9599 }
9600 },
9601 "permissions" : {
9602 "check" : [
9603 "or",
9604 [
9605 "perm",
9606 "/mapping/usb/{id}",
9607 [
9608 "Mapping.Audit"
9609 ]
9610 ],
9611 [
9612 "perm",
9613 "/mapping/usb/{id}",
9614 [
9615 "Mapping.Use"
9616 ]
9617 ],
9618 [
9619 "perm",
9620 "/mapping/usb/{id}",
9621 [
9622 "Mapping.Modify"
9623 ]
9624 ]
9625 ]
9626 },
9627 "protected" : 1,
9628 "returns" : {
9629 "type" : "object"
9630 }
9631 },
9632 "PUT" : {
9633 "allowtoken" : 1,
9634 "description" : "Update a hardware mapping.",
9635 "method" : "PUT",
9636 "name" : "update",
9637 "parameters" : {
9638 "additionalProperties" : 0,
9639 "properties" : {
9640 "delete" : {
9641 "description" : "A list of settings you want to delete.",
9642 "format" : "pve-configid-list",
9643 "maxLength" : 4096,
9644 "optional" : 1,
9645 "type" : "string",
9646 "typetext" : "<string>"
9647 },
9648 "description" : {
9649 "description" : "Description of the logical USB device.",
9650 "maxLength" : 4096,
9651 "optional" : 1,
9652 "type" : "string",
9653 "typetext" : "<string>"
9654 },
9655 "digest" : {
9656 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
9657 "maxLength" : 64,
9658 "optional" : 1,
9659 "type" : "string",
9660 "typetext" : "<string>"
9661 },
9662 "id" : {
9663 "description" : "The ID of the logical USB mapping.",
9664 "format" : "pve-configid",
9665 "type" : "string",
9666 "typetext" : "<string>"
9667 },
9668 "map" : {
9669 "description" : "A list of maps for the cluster nodes.",
9670 "items" : {
9671 "format" : {
9672 "description" : {
9673 "description" : "Description of the node specific device.",
9674 "maxLength" : 4096,
9675 "optional" : 1,
9676 "type" : "string"
9677 },
9678 "id" : {
9679 "description" : "The vendor and device ID that is expected. If a USB path is given, it is only used for detecting hardware changes",
9680 "pattern" : "(?^:^[0-9A-Fa-f]{4}:[0-9A-Fa-f]{4}$)",
9681 "type" : "string"
9682 },
9683 "node" : {
9684 "description" : "The cluster node name.",
9685 "format" : "pve-node",
9686 "type" : "string"
9687 },
9688 "path" : {
9689 "description" : "The path to the usb device.",
9690 "optional" : 1,
9691 "pattern" : "(?^:^(\\d+)\\-(\\d+(\\.\\d+)*)$)",
9692 "type" : "string"
9693 }
9694 },
9695 "type" : "string"
9696 },
9697 "type" : "array",
9698 "typetext" : "<array>"
9699 }
9700 },
9701 "type" : "object"
9702 },
9703 "permissions" : {
9704 "check" : [
9705 "perm",
9706 "/mapping/usb/{id}",
9707 [
9708 "Mapping.Modify"
9709 ]
9710 ]
9711 },
9712 "protected" : 1,
9713 "returns" : {
9714 "type" : "null"
9715 }
9716 }
9717 },
9718 "leaf" : 1,
9719 "path" : "/cluster/mapping/usb/{id}",
9720 "text" : "{id}"
9721 }
9722 ],
9723 "info" : {
9724 "GET" : {
9725 "allowtoken" : 1,
9726 "description" : "List USB Hardware Mappings",
9727 "method" : "GET",
9728 "name" : "index",
9729 "parameters" : {
9730 "additionalProperties" : 0,
9731 "properties" : {
9732 "check-node" : {
9733 "description" : "If given, checks the configurations on the given node for correctness, and adds relevant errors to the devices.",
9734 "format" : "pve-node",
9735 "optional" : 1,
9736 "type" : "string",
9737 "typetext" : "<string>"
9738 }
9739 }
9740 },
9741 "permissions" : {
9742 "description" : "Only lists entries where you have 'Mapping.Modify', 'Mapping.Use' or 'Mapping.Audit' permissions on '/mapping/usb/<id>'.",
9743 "user" : "all"
9744 },
9745 "returns" : {
9746 "items" : {
9747 "properties" : {
9748 "description" : {
9749 "description" : "A description of the logical mapping.",
9750 "type" : "string"
9751 },
9752 "error" : {
9753 "description" : "A list of errors when 'check_node' is given.",
9754 "items" : {
9755 "properties" : {
9756 "message" : {
9757 "description" : "The message of the error",
9758 "type" : "string"
9759 },
9760 "severity" : {
9761 "description" : "The severity of the error",
9762 "type" : "string"
9763 }
9764 },
9765 "type" : "object"
9766 }
9767 },
9768 "id" : {
9769 "description" : "The logical ID of the mapping.",
9770 "type" : "string"
9771 },
9772 "map" : {
9773 "description" : "The entries of the mapping.",
9774 "items" : {
9775 "description" : "A mapping for a node.",
9776 "type" : "string"
9777 },
9778 "type" : "array"
9779 }
9780 },
9781 "type" : "object"
9782 },
9783 "links" : [
9784 {
9785 "href" : "{id}",
9786 "rel" : "child"
9787 }
9788 ],
9789 "type" : "array"
9790 }
9791 },
9792 "POST" : {
9793 "allowtoken" : 1,
9794 "description" : "Create a new hardware mapping.",
9795 "method" : "POST",
9796 "name" : "create",
9797 "parameters" : {
9798 "additionalProperties" : 0,
9799 "properties" : {
9800 "description" : {
9801 "description" : "Description of the logical USB device.",
9802 "maxLength" : 4096,
9803 "optional" : 1,
9804 "type" : "string",
9805 "typetext" : "<string>"
9806 },
9807 "id" : {
9808 "description" : "The ID of the logical USB mapping.",
9809 "format" : "pve-configid",
9810 "type" : "string",
9811 "typetext" : "<string>"
9812 },
9813 "map" : {
9814 "description" : "A list of maps for the cluster nodes.",
9815 "items" : {
9816 "format" : {
9817 "description" : {
9818 "description" : "Description of the node specific device.",
9819 "maxLength" : 4096,
9820 "optional" : 1,
9821 "type" : "string"
9822 },
9823 "id" : {
9824 "description" : "The vendor and device ID that is expected. If a USB path is given, it is only used for detecting hardware changes",
9825 "pattern" : "(?^:^[0-9A-Fa-f]{4}:[0-9A-Fa-f]{4}$)",
9826 "type" : "string"
9827 },
9828 "node" : {
9829 "description" : "The cluster node name.",
9830 "format" : "pve-node",
9831 "type" : "string"
9832 },
9833 "path" : {
9834 "description" : "The path to the usb device.",
9835 "optional" : 1,
9836 "pattern" : "(?^:^(\\d+)\\-(\\d+(\\.\\d+)*)$)",
9837 "type" : "string"
9838 }
9839 },
9840 "type" : "string"
9841 },
9842 "type" : "array",
9843 "typetext" : "<array>"
9844 }
9845 },
9846 "type" : "object"
9847 },
9848 "permissions" : {
9849 "check" : [
9850 "perm",
9851 "/mapping/usb",
9852 [
9853 "Mapping.Modify"
9854 ]
9855 ]
9856 },
9857 "protected" : 1,
9858 "returns" : {
9859 "type" : "null"
9860 }
9861 }
9862 },
9863 "leaf" : 0,
9864 "path" : "/cluster/mapping/usb",
9865 "text" : "usb"
9866 }
9867 ],
9868 "info" : {
9869 "GET" : {
9870 "allowtoken" : 1,
9871 "description" : "List resource types.",
9872 "method" : "GET",
9873 "name" : "index",
9874 "parameters" : {
9875 "additionalProperties" : 0
9876 },
9877 "permissions" : {
9878 "user" : "all"
9879 },
9880 "returns" : {
9881 "items" : {
9882 "type" : "object"
9883 },
9884 "links" : [
9885 {
9886 "href" : "{name}",
9887 "rel" : "child"
9888 }
9889 ],
9890 "type" : "array"
9891 }
9892 }
9893 },
9894 "leaf" : 0,
9895 "path" : "/cluster/mapping",
9896 "text" : "mapping"
9897 },
9898 {
9899 "children" : [
9900 {
9901 "children" : [
9902 {
9903 "children" : [
9904 {
9905 "children" : [
9906 {
9907 "info" : {
9908 "DELETE" : {
9909 "allowtoken" : 1,
9910 "description" : "Delete sdn subnet object configuration.",
9911 "method" : "DELETE",
9912 "name" : "delete",
9913 "parameters" : {
9914 "additionalProperties" : 0,
9915 "properties" : {
9916 "subnet" : {
9917 "description" : "The SDN subnet object identifier.",
9918 "format" : "pve-sdn-subnet-id",
9919 "type" : "string",
9920 "typetext" : "<string>"
9921 },
9922 "vnet" : {
9923 "description" : "The SDN vnet object identifier.",
9924 "format" : "pve-sdn-vnet-id",
9925 "type" : "string",
9926 "typetext" : "<string>"
9927 }
9928 }
9929 },
9930 "permissions" : {
9931 "description" : "Require 'SDN.Allocate' permission on '/sdn/zones/<zone>/<vnet>'",
9932 "user" : "all"
9933 },
9934 "protected" : 1,
9935 "returns" : {
9936 "type" : "null"
9937 }
9938 },
9939 "GET" : {
9940 "allowtoken" : 1,
9941 "description" : "Read sdn subnet configuration.",
9942 "method" : "GET",
9943 "name" : "read",
9944 "parameters" : {
9945 "additionalProperties" : 0,
9946 "properties" : {
9947 "pending" : {
9948 "description" : "Display pending config.",
9949 "optional" : 1,
9950 "type" : "boolean",
9951 "typetext" : "<boolean>"
9952 },
9953 "running" : {
9954 "description" : "Display running config.",
9955 "optional" : 1,
9956 "type" : "boolean",
9957 "typetext" : "<boolean>"
9958 },
9959 "subnet" : {
9960 "description" : "The SDN subnet object identifier.",
9961 "format" : "pve-sdn-subnet-id",
9962 "type" : "string",
9963 "typetext" : "<string>"
9964 },
9965 "vnet" : {
9966 "description" : "The SDN vnet object identifier.",
9967 "format" : "pve-sdn-vnet-id",
9968 "type" : "string",
9969 "typetext" : "<string>"
9970 }
9971 }
9972 },
9973 "permissions" : {
9974 "description" : "Require 'SDN.Audit' or 'SDN.Allocate' permissions on '/sdn/zones/<zone>/<vnet>'",
9975 "user" : "all"
9976 },
9977 "returns" : {
9978 "type" : "object"
9979 }
9980 },
9981 "PUT" : {
9982 "allowtoken" : 1,
9983 "description" : "Update sdn subnet object configuration.",
9984 "method" : "PUT",
9985 "name" : "update",
9986 "parameters" : {
9987 "additionalProperties" : 0,
9988 "properties" : {
9989 "delete" : {
9990 "description" : "A list of settings you want to delete.",
9991 "format" : "pve-configid-list",
9992 "maxLength" : 4096,
9993 "optional" : 1,
9994 "type" : "string",
9995 "typetext" : "<string>"
9996 },
9997 "dhcp-dns-server" : {
9998 "description" : "IP address for the DNS server",
9999 "format" : "ip",
10000 "optional" : 1,
10001 "type" : "string",
10002 "typetext" : "<string>"
10003 },
10004 "dhcp-range" : {
10005 "description" : "A list of DHCP ranges for this subnet",
10006 "items" : {
10007 "format" : "pve-sdn-dhcp-range",
10008 "type" : "string"
10009 },
10010 "optional" : 1,
10011 "type" : "array",
10012 "typetext" : "<array>"
10013 },
10014 "digest" : {
10015 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
10016 "maxLength" : 64,
10017 "optional" : 1,
10018 "type" : "string",
10019 "typetext" : "<string>"
10020 },
10021 "dnszoneprefix" : {
10022 "description" : "dns domain zone prefix ex: 'adm' -> <hostname>.adm.mydomain.com",
10023 "format" : "dns-name",
10024 "optional" : 1,
10025 "type" : "string",
10026 "typetext" : "<string>"
10027 },
10028 "gateway" : {
10029 "description" : "Subnet Gateway: Will be assign on vnet for layer3 zones",
10030 "format" : "ip",
10031 "optional" : 1,
10032 "type" : "string",
10033 "typetext" : "<string>"
10034 },
10035 "snat" : {
10036 "description" : "enable masquerade for this subnet if pve-firewall",
10037 "optional" : 1,
10038 "type" : "boolean",
10039 "typetext" : "<boolean>"
10040 },
10041 "subnet" : {
10042 "description" : "The SDN subnet object identifier.",
10043 "format" : "pve-sdn-subnet-id",
10044 "type" : "string",
10045 "typetext" : "<string>"
10046 },
10047 "vnet" : {
10048 "description" : "associated vnet",
10049 "optional" : 1,
10050 "type" : "string",
10051 "typetext" : "<string>"
10052 }
10053 },
10054 "type" : "object"
10055 },
10056 "permissions" : {
10057 "description" : "Require 'SDN.Allocate' permission on '/sdn/zones/<zone>/<vnet>'",
10058 "user" : "all"
10059 },
10060 "protected" : 1,
10061 "returns" : {
10062 "type" : "null"
10063 }
10064 }
10065 },
10066 "leaf" : 1,
10067 "path" : "/cluster/sdn/vnets/{vnet}/subnets/{subnet}",
10068 "text" : "{subnet}"
10069 }
10070 ],
10071 "info" : {
10072 "GET" : {
10073 "allowtoken" : 1,
10074 "description" : "SDN subnets index.",
10075 "method" : "GET",
10076 "name" : "index",
10077 "parameters" : {
10078 "additionalProperties" : 0,
10079 "properties" : {
10080 "pending" : {
10081 "description" : "Display pending config.",
10082 "optional" : 1,
10083 "type" : "boolean",
10084 "typetext" : "<boolean>"
10085 },
10086 "running" : {
10087 "description" : "Display running config.",
10088 "optional" : 1,
10089 "type" : "boolean",
10090 "typetext" : "<boolean>"
10091 },
10092 "vnet" : {
10093 "description" : "The SDN vnet object identifier.",
10094 "format" : "pve-sdn-vnet-id",
10095 "type" : "string",
10096 "typetext" : "<string>"
10097 }
10098 }
10099 },
10100 "permissions" : {
10101 "description" : "Only list entries where you have 'SDN.Audit' or 'SDN.Allocate' permissions on '/sdn/zones/<zone>/<vnet>'",
10102 "user" : "all"
10103 },
10104 "returns" : {
10105 "items" : {
10106 "properties" : {},
10107 "type" : "object"
10108 },
10109 "links" : [
10110 {
10111 "href" : "{subnet}",
10112 "rel" : "child"
10113 }
10114 ],
10115 "type" : "array"
10116 }
10117 },
10118 "POST" : {
10119 "allowtoken" : 1,
10120 "description" : "Create a new sdn subnet object.",
10121 "method" : "POST",
10122 "name" : "create",
10123 "parameters" : {
10124 "additionalProperties" : 0,
10125 "properties" : {
10126 "dhcp-dns-server" : {
10127 "description" : "IP address for the DNS server",
10128 "format" : "ip",
10129 "optional" : 1,
10130 "type" : "string",
10131 "typetext" : "<string>"
10132 },
10133 "dhcp-range" : {
10134 "description" : "A list of DHCP ranges for this subnet",
10135 "items" : {
10136 "format" : "pve-sdn-dhcp-range",
10137 "type" : "string"
10138 },
10139 "optional" : 1,
10140 "type" : "array",
10141 "typetext" : "<array>"
10142 },
10143 "dnszoneprefix" : {
10144 "description" : "dns domain zone prefix ex: 'adm' -> <hostname>.adm.mydomain.com",
10145 "format" : "dns-name",
10146 "optional" : 1,
10147 "type" : "string",
10148 "typetext" : "<string>"
10149 },
10150 "gateway" : {
10151 "description" : "Subnet Gateway: Will be assign on vnet for layer3 zones",
10152 "format" : "ip",
10153 "optional" : 1,
10154 "type" : "string",
10155 "typetext" : "<string>"
10156 },
10157 "snat" : {
10158 "description" : "enable masquerade for this subnet if pve-firewall",
10159 "optional" : 1,
10160 "type" : "boolean",
10161 "typetext" : "<boolean>"
10162 },
10163 "subnet" : {
10164 "description" : "The SDN subnet object identifier.",
10165 "format" : "pve-sdn-subnet-id",
10166 "type" : "string",
10167 "typetext" : "<string>"
10168 },
10169 "type" : {
10170 "enum" : [
10171 "subnet"
10172 ],
10173 "type" : "string"
10174 },
10175 "vnet" : {
10176 "description" : "associated vnet",
10177 "optional" : 0,
10178 "type" : "string",
10179 "typetext" : "<string>"
10180 }
10181 },
10182 "type" : "object"
10183 },
10184 "permissions" : {
10185 "description" : "Require 'SDN.Allocate' permission on '/sdn/zones/<zone>/<vnet>'",
10186 "user" : "all"
10187 },
10188 "protected" : 1,
10189 "returns" : {
10190 "type" : "null"
10191 }
10192 }
10193 },
10194 "leaf" : 0,
10195 "path" : "/cluster/sdn/vnets/{vnet}/subnets",
10196 "text" : "subnets"
10197 },
10198 {
10199 "info" : {
10200 "DELETE" : {
10201 "allowtoken" : 1,
10202 "description" : "Delete IP Mappings in a VNet",
10203 "method" : "DELETE",
10204 "name" : "ipdelete",
10205 "parameters" : {
10206 "additionalProperties" : 0,
10207 "properties" : {
10208 "ip" : {
10209 "description" : "The IP address to delete",
10210 "format" : "ip",
10211 "type" : "string",
10212 "typetext" : "<string>"
10213 },
10214 "mac" : {
10215 "description" : "Unicast MAC address.",
10216 "format" : "mac-addr",
10217 "format_description" : "XX:XX:XX:XX:XX:XX",
10218 "optional" : 1,
10219 "type" : "string",
10220 "typetext" : "<XX:XX:XX:XX:XX:XX>",
10221 "verbose_description" : "A common MAC address with the I/G (Individual/Group) bit not set."
10222 },
10223 "vnet" : {
10224 "description" : "The SDN vnet object identifier.",
10225 "format" : "pve-sdn-vnet-id",
10226 "type" : "string",
10227 "typetext" : "<string>"
10228 },
10229 "zone" : {
10230 "description" : "The SDN zone object identifier.",
10231 "format" : "pve-sdn-zone-id",
10232 "type" : "string",
10233 "typetext" : "<string>"
10234 }
10235 }
10236 },
10237 "permissions" : {
10238 "check" : [
10239 "perm",
10240 "/sdn/zones/{zone}/{vnet}",
10241 [
10242 "SDN.Allocate"
10243 ]
10244 ]
10245 },
10246 "protected" : 1,
10247 "returns" : {
10248 "type" : "null"
10249 }
10250 },
10251 "POST" : {
10252 "allowtoken" : 1,
10253 "description" : "Create IP Mapping in a VNet",
10254 "method" : "POST",
10255 "name" : "ipcreate",
10256 "parameters" : {
10257 "additionalProperties" : 0,
10258 "properties" : {
10259 "ip" : {
10260 "description" : "The IP address to associate with the given MAC address",
10261 "format" : "ip",
10262 "type" : "string",
10263 "typetext" : "<string>"
10264 },
10265 "mac" : {
10266 "description" : "Unicast MAC address.",
10267 "format" : "mac-addr",
10268 "format_description" : "XX:XX:XX:XX:XX:XX",
10269 "optional" : 1,
10270 "type" : "string",
10271 "typetext" : "<XX:XX:XX:XX:XX:XX>",
10272 "verbose_description" : "A common MAC address with the I/G (Individual/Group) bit not set."
10273 },
10274 "vnet" : {
10275 "description" : "The SDN vnet object identifier.",
10276 "format" : "pve-sdn-vnet-id",
10277 "type" : "string",
10278 "typetext" : "<string>"
10279 },
10280 "zone" : {
10281 "description" : "The SDN zone object identifier.",
10282 "format" : "pve-sdn-zone-id",
10283 "type" : "string",
10284 "typetext" : "<string>"
10285 }
10286 }
10287 },
10288 "permissions" : {
10289 "check" : [
10290 "perm",
10291 "/sdn/zones/{zone}/{vnet}",
10292 [
10293 "SDN.Allocate"
10294 ]
10295 ]
10296 },
10297 "protected" : 1,
10298 "returns" : {
10299 "type" : "null"
10300 }
10301 },
10302 "PUT" : {
10303 "allowtoken" : 1,
10304 "description" : "Update IP Mapping in a VNet",
10305 "method" : "PUT",
10306 "name" : "ipupdate",
10307 "parameters" : {
10308 "additionalProperties" : 0,
10309 "properties" : {
10310 "ip" : {
10311 "description" : "The IP address to associate with the given MAC address",
10312 "format" : "ip",
10313 "type" : "string",
10314 "typetext" : "<string>"
10315 },
10316 "mac" : {
10317 "description" : "Unicast MAC address.",
10318 "format" : "mac-addr",
10319 "format_description" : "XX:XX:XX:XX:XX:XX",
10320 "optional" : 1,
10321 "type" : "string",
10322 "typetext" : "<XX:XX:XX:XX:XX:XX>",
10323 "verbose_description" : "A common MAC address with the I/G (Individual/Group) bit not set."
10324 },
10325 "vmid" : {
10326 "description" : "The (unique) ID of the VM.",
10327 "format" : "pve-vmid",
10328 "maximum" : 999999999,
10329 "minimum" : 100,
10330 "optional" : 1,
10331 "type" : "integer",
10332 "typetext" : "<integer> (100 - 999999999)"
10333 },
10334 "vnet" : {
10335 "description" : "The SDN vnet object identifier.",
10336 "format" : "pve-sdn-vnet-id",
10337 "type" : "string",
10338 "typetext" : "<string>"
10339 },
10340 "zone" : {
10341 "description" : "The SDN zone object identifier.",
10342 "format" : "pve-sdn-zone-id",
10343 "type" : "string",
10344 "typetext" : "<string>"
10345 }
10346 }
10347 },
10348 "permissions" : {
10349 "check" : [
10350 "perm",
10351 "/sdn/zones/{zone}/{vnet}",
10352 [
10353 "SDN.Allocate"
10354 ]
10355 ]
10356 },
10357 "protected" : 1,
10358 "returns" : {
10359 "type" : "null"
10360 }
10361 }
10362 },
10363 "leaf" : 1,
10364 "path" : "/cluster/sdn/vnets/{vnet}/ips",
10365 "text" : "ips"
10366 }
10367 ],
10368 "info" : {
10369 "DELETE" : {
10370 "allowtoken" : 1,
10371 "description" : "Delete sdn vnet object configuration.",
10372 "method" : "DELETE",
10373 "name" : "delete",
10374 "parameters" : {
10375 "additionalProperties" : 0,
10376 "properties" : {
10377 "vnet" : {
10378 "description" : "The SDN vnet object identifier.",
10379 "format" : "pve-sdn-vnet-id",
10380 "type" : "string",
10381 "typetext" : "<string>"
10382 }
10383 }
10384 },
10385 "permissions" : {
10386 "description" : "Require 'SDN.Allocate' permission on '/sdn/zones/<zone>/<vnet>'",
10387 "user" : "all"
10388 },
10389 "protected" : 1,
10390 "returns" : {
10391 "type" : "null"
10392 }
10393 },
10394 "GET" : {
10395 "allowtoken" : 1,
10396 "description" : "Read sdn vnet configuration.",
10397 "method" : "GET",
10398 "name" : "read",
10399 "parameters" : {
10400 "additionalProperties" : 0,
10401 "properties" : {
10402 "pending" : {
10403 "description" : "Display pending config.",
10404 "optional" : 1,
10405 "type" : "boolean",
10406 "typetext" : "<boolean>"
10407 },
10408 "running" : {
10409 "description" : "Display running config.",
10410 "optional" : 1,
10411 "type" : "boolean",
10412 "typetext" : "<boolean>"
10413 },
10414 "vnet" : {
10415 "description" : "The SDN vnet object identifier.",
10416 "format" : "pve-sdn-vnet-id",
10417 "type" : "string",
10418 "typetext" : "<string>"
10419 }
10420 }
10421 },
10422 "permissions" : {
10423 "description" : "Require 'SDN.Audit' or 'SDN.Allocate' permissions on '/sdn/zones/<zone>/<vnet>'",
10424 "user" : "all"
10425 },
10426 "returns" : {
10427 "type" : "object"
10428 }
10429 },
10430 "PUT" : {
10431 "allowtoken" : 1,
10432 "description" : "Update sdn vnet object configuration.",
10433 "method" : "PUT",
10434 "name" : "update",
10435 "parameters" : {
10436 "additionalProperties" : 0,
10437 "properties" : {
10438 "alias" : {
10439 "description" : "alias name of the vnet",
10440 "maxLength" : 256,
10441 "optional" : 1,
10442 "pattern" : "(?^i:[\\(\\)-_.\\w\\d\\s]{0,256})",
10443 "type" : "string"
10444 },
10445 "delete" : {
10446 "description" : "A list of settings you want to delete.",
10447 "format" : "pve-configid-list",
10448 "maxLength" : 4096,
10449 "optional" : 1,
10450 "type" : "string",
10451 "typetext" : "<string>"
10452 },
10453 "digest" : {
10454 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
10455 "maxLength" : 64,
10456 "optional" : 1,
10457 "type" : "string",
10458 "typetext" : "<string>"
10459 },
10460 "tag" : {
10461 "description" : "vlan or vxlan id",
10462 "optional" : 1,
10463 "type" : "integer",
10464 "typetext" : "<integer>"
10465 },
10466 "vlanaware" : {
10467 "description" : "Allow vm VLANs to pass through this vnet.",
10468 "optional" : 1,
10469 "type" : "boolean",
10470 "typetext" : "<boolean>"
10471 },
10472 "vnet" : {
10473 "description" : "The SDN vnet object identifier.",
10474 "format" : "pve-sdn-vnet-id",
10475 "type" : "string",
10476 "typetext" : "<string>"
10477 },
10478 "zone" : {
10479 "description" : "zone id",
10480 "optional" : 1,
10481 "type" : "string",
10482 "typetext" : "<string>"
10483 }
10484 },
10485 "type" : "object"
10486 },
10487 "permissions" : {
10488 "description" : "Require 'SDN.Allocate' permission on '/sdn/zones/<zone>/<vnet>'",
10489 "user" : "all"
10490 },
10491 "protected" : 1,
10492 "returns" : {
10493 "type" : "null"
10494 }
10495 }
10496 },
10497 "leaf" : 0,
10498 "path" : "/cluster/sdn/vnets/{vnet}",
10499 "text" : "{vnet}"
10500 }
10501 ],
10502 "info" : {
10503 "GET" : {
10504 "allowtoken" : 1,
10505 "description" : "SDN vnets index.",
10506 "method" : "GET",
10507 "name" : "index",
10508 "parameters" : {
10509 "additionalProperties" : 0,
10510 "properties" : {
10511 "pending" : {
10512 "description" : "Display pending config.",
10513 "optional" : 1,
10514 "type" : "boolean",
10515 "typetext" : "<boolean>"
10516 },
10517 "running" : {
10518 "description" : "Display running config.",
10519 "optional" : 1,
10520 "type" : "boolean",
10521 "typetext" : "<boolean>"
10522 }
10523 }
10524 },
10525 "permissions" : {
10526 "description" : "Only list entries where you have 'SDN.Audit' or 'SDN.Allocate' permissions on '/sdn/zones/<zone>/<vnet>'",
10527 "user" : "all"
10528 },
10529 "returns" : {
10530 "items" : {
10531 "properties" : {},
10532 "type" : "object"
10533 },
10534 "links" : [
10535 {
10536 "href" : "{vnet}",
10537 "rel" : "child"
10538 }
10539 ],
10540 "type" : "array"
10541 }
10542 },
10543 "POST" : {
10544 "allowtoken" : 1,
10545 "description" : "Create a new sdn vnet object.",
10546 "method" : "POST",
10547 "name" : "create",
10548 "parameters" : {
10549 "additionalProperties" : 0,
10550 "properties" : {
10551 "alias" : {
10552 "description" : "alias name of the vnet",
10553 "maxLength" : 256,
10554 "optional" : 1,
10555 "pattern" : "(?^i:[\\(\\)-_.\\w\\d\\s]{0,256})",
10556 "type" : "string"
10557 },
10558 "tag" : {
10559 "description" : "vlan or vxlan id",
10560 "optional" : 1,
10561 "type" : "integer",
10562 "typetext" : "<integer>"
10563 },
10564 "type" : {
10565 "description" : "Type",
10566 "enum" : [
10567 "vnet"
10568 ],
10569 "optional" : 1,
10570 "type" : "string"
10571 },
10572 "vlanaware" : {
10573 "description" : "Allow vm VLANs to pass through this vnet.",
10574 "optional" : 1,
10575 "type" : "boolean",
10576 "typetext" : "<boolean>"
10577 },
10578 "vnet" : {
10579 "description" : "The SDN vnet object identifier.",
10580 "format" : "pve-sdn-vnet-id",
10581 "type" : "string",
10582 "typetext" : "<string>"
10583 },
10584 "zone" : {
10585 "description" : "zone id",
10586 "optional" : 0,
10587 "type" : "string",
10588 "typetext" : "<string>"
10589 }
10590 },
10591 "type" : "object"
10592 },
10593 "permissions" : {
10594 "check" : [
10595 "perm",
10596 "/sdn/zones/{zone}",
10597 [
10598 "SDN.Allocate"
10599 ]
10600 ]
10601 },
10602 "protected" : 1,
10603 "returns" : {
10604 "type" : "null"
10605 }
10606 }
10607 },
10608 "leaf" : 0,
10609 "path" : "/cluster/sdn/vnets",
10610 "text" : "vnets"
10611 },
10612 {
10613 "children" : [
10614 {
10615 "info" : {
10616 "DELETE" : {
10617 "allowtoken" : 1,
10618 "description" : "Delete sdn zone object configuration.",
10619 "method" : "DELETE",
10620 "name" : "delete",
10621 "parameters" : {
10622 "additionalProperties" : 0,
10623 "properties" : {
10624 "zone" : {
10625 "description" : "The SDN zone object identifier.",
10626 "format" : "pve-sdn-zone-id",
10627 "type" : "string",
10628 "typetext" : "<string>"
10629 }
10630 }
10631 },
10632 "permissions" : {
10633 "check" : [
10634 "perm",
10635 "/sdn/zones/{zone}",
10636 [
10637 "SDN.Allocate"
10638 ]
10639 ]
10640 },
10641 "protected" : 1,
10642 "returns" : {
10643 "type" : "null"
10644 }
10645 },
10646 "GET" : {
10647 "allowtoken" : 1,
10648 "description" : "Read sdn zone configuration.",
10649 "method" : "GET",
10650 "name" : "read",
10651 "parameters" : {
10652 "additionalProperties" : 0,
10653 "properties" : {
10654 "pending" : {
10655 "description" : "Display pending config.",
10656 "optional" : 1,
10657 "type" : "boolean",
10658 "typetext" : "<boolean>"
10659 },
10660 "running" : {
10661 "description" : "Display running config.",
10662 "optional" : 1,
10663 "type" : "boolean",
10664 "typetext" : "<boolean>"
10665 },
10666 "zone" : {
10667 "description" : "The SDN zone object identifier.",
10668 "format" : "pve-sdn-zone-id",
10669 "type" : "string",
10670 "typetext" : "<string>"
10671 }
10672 }
10673 },
10674 "permissions" : {
10675 "check" : [
10676 "perm",
10677 "/sdn/zones/{zone}",
10678 [
10679 "SDN.Allocate"
10680 ]
10681 ]
10682 },
10683 "returns" : {
10684 "type" : "object"
10685 }
10686 },
10687 "PUT" : {
10688 "allowtoken" : 1,
10689 "description" : "Update sdn zone object configuration.",
10690 "method" : "PUT",
10691 "name" : "update",
10692 "parameters" : {
10693 "additionalProperties" : 0,
10694 "properties" : {
10695 "advertise-subnets" : {
10696 "description" : "Advertise evpn subnets if you have silent hosts",
10697 "optional" : 1,
10698 "type" : "boolean",
10699 "typetext" : "<boolean>"
10700 },
10701 "bridge" : {
10702 "optional" : 1,
10703 "type" : "string",
10704 "typetext" : "<string>"
10705 },
10706 "bridge-disable-mac-learning" : {
10707 "description" : "Disable auto mac learning.",
10708 "optional" : 1,
10709 "type" : "boolean",
10710 "typetext" : "<boolean>"
10711 },
10712 "controller" : {
10713 "description" : "Frr router name",
10714 "optional" : 1,
10715 "type" : "string",
10716 "typetext" : "<string>"
10717 },
10718 "delete" : {
10719 "description" : "A list of settings you want to delete.",
10720 "format" : "pve-configid-list",
10721 "maxLength" : 4096,
10722 "optional" : 1,
10723 "type" : "string",
10724 "typetext" : "<string>"
10725 },
10726 "dhcp" : {
10727 "description" : "Type of the DHCP backend for this zone",
10728 "enum" : [
10729 "dnsmasq"
10730 ],
10731 "optional" : 1,
10732 "type" : "string"
10733 },
10734 "digest" : {
10735 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
10736 "maxLength" : 64,
10737 "optional" : 1,
10738 "type" : "string",
10739 "typetext" : "<string>"
10740 },
10741 "disable-arp-nd-suppression" : {
10742 "description" : "Disable ipv4 arp && ipv6 neighbour discovery suppression",
10743 "optional" : 1,
10744 "type" : "boolean",
10745 "typetext" : "<boolean>"
10746 },
10747 "dns" : {
10748 "description" : "dns api server",
10749 "optional" : 1,
10750 "type" : "string",
10751 "typetext" : "<string>"
10752 },
10753 "dnszone" : {
10754 "description" : "dns domain zone ex: mydomain.com",
10755 "format" : "dns-name",
10756 "optional" : 1,
10757 "type" : "string",
10758 "typetext" : "<string>"
10759 },
10760 "dp-id" : {
10761 "description" : "Faucet dataplane id",
10762 "optional" : 1,
10763 "type" : "integer",
10764 "typetext" : "<integer>"
10765 },
10766 "exitnodes" : {
10767 "description" : "List of cluster node names.",
10768 "format" : "pve-node-list",
10769 "optional" : 1,
10770 "type" : "string",
10771 "typetext" : "<string>"
10772 },
10773 "exitnodes-local-routing" : {
10774 "description" : "Allow exitnodes to connect to evpn guests",
10775 "optional" : 1,
10776 "type" : "boolean",
10777 "typetext" : "<boolean>"
10778 },
10779 "exitnodes-primary" : {
10780 "description" : "Force traffic to this exitnode first.",
10781 "format" : "pve-node",
10782 "optional" : 1,
10783 "type" : "string",
10784 "typetext" : "<string>"
10785 },
10786 "ipam" : {
10787 "description" : "use a specific ipam",
10788 "optional" : 1,
10789 "type" : "string",
10790 "typetext" : "<string>"
10791 },
10792 "mac" : {
10793 "description" : "Anycast logical router mac address",
10794 "format" : "mac-addr",
10795 "optional" : 1,
10796 "type" : "string",
10797 "typetext" : "<string>"
10798 },
10799 "mtu" : {
10800 "description" : "MTU",
10801 "optional" : 1,
10802 "type" : "integer",
10803 "typetext" : "<integer>"
10804 },
10805 "nodes" : {
10806 "description" : "List of cluster node names.",
10807 "format" : "pve-node-list",
10808 "optional" : 1,
10809 "type" : "string",
10810 "typetext" : "<string>"
10811 },
10812 "peers" : {
10813 "description" : "peers address list.",
10814 "format" : "ip-list",
10815 "optional" : 1,
10816 "type" : "string",
10817 "typetext" : "<string>"
10818 },
10819 "reversedns" : {
10820 "description" : "reverse dns api server",
10821 "optional" : 1,
10822 "type" : "string",
10823 "typetext" : "<string>"
10824 },
10825 "rt-import" : {
10826 "description" : "Route-Target import",
10827 "format" : "pve-sdn-bgp-rt-list",
10828 "optional" : 1,
10829 "type" : "string",
10830 "typetext" : "<string>"
10831 },
10832 "tag" : {
10833 "description" : "Service-VLAN Tag",
10834 "minimum" : 0,
10835 "optional" : 1,
10836 "type" : "integer",
10837 "typetext" : "<integer> (0 - N)"
10838 },
10839 "vlan-protocol" : {
10840 "default" : "802.1q",
10841 "enum" : [
10842 "802.1q",
10843 "802.1ad"
10844 ],
10845 "optional" : 1,
10846 "type" : "string"
10847 },
10848 "vrf-vxlan" : {
10849 "description" : "l3vni.",
10850 "optional" : 1,
10851 "type" : "integer",
10852 "typetext" : "<integer>"
10853 },
10854 "vxlan-port" : {
10855 "description" : "Vxlan tunnel udp port (default 4789).",
10856 "maximum" : 65536,
10857 "minimum" : 1,
10858 "optional" : 1,
10859 "type" : "integer",
10860 "typetext" : "<integer> (1 - 65536)"
10861 },
10862 "zone" : {
10863 "description" : "The SDN zone object identifier.",
10864 "format" : "pve-sdn-zone-id",
10865 "type" : "string",
10866 "typetext" : "<string>"
10867 }
10868 },
10869 "type" : "object"
10870 },
10871 "permissions" : {
10872 "check" : [
10873 "perm",
10874 "/sdn/zones/{zone}",
10875 [
10876 "SDN.Allocate"
10877 ]
10878 ]
10879 },
10880 "protected" : 1,
10881 "returns" : {
10882 "type" : "null"
10883 }
10884 }
10885 },
10886 "leaf" : 1,
10887 "path" : "/cluster/sdn/zones/{zone}",
10888 "text" : "{zone}"
10889 }
10890 ],
10891 "info" : {
10892 "GET" : {
10893 "allowtoken" : 1,
10894 "description" : "SDN zones index.",
10895 "method" : "GET",
10896 "name" : "index",
10897 "parameters" : {
10898 "additionalProperties" : 0,
10899 "properties" : {
10900 "pending" : {
10901 "description" : "Display pending config.",
10902 "optional" : 1,
10903 "type" : "boolean",
10904 "typetext" : "<boolean>"
10905 },
10906 "running" : {
10907 "description" : "Display running config.",
10908 "optional" : 1,
10909 "type" : "boolean",
10910 "typetext" : "<boolean>"
10911 },
10912 "type" : {
10913 "description" : "Only list SDN zones of specific type",
10914 "enum" : [
10915 "evpn",
10916 "faucet",
10917 "qinq",
10918 "simple",
10919 "vlan",
10920 "vxlan"
10921 ],
10922 "optional" : 1,
10923 "type" : "string"
10924 }
10925 }
10926 },
10927 "permissions" : {
10928 "description" : "Only list entries where you have 'SDN.Audit' or 'SDN.Allocate' permissions on '/sdn/zones/<zone>'",
10929 "user" : "all"
10930 },
10931 "returns" : {
10932 "items" : {
10933 "properties" : {
10934 "dhcp" : {
10935 "optional" : 1,
10936 "type" : "string"
10937 },
10938 "dns" : {
10939 "optional" : 1,
10940 "type" : "string"
10941 },
10942 "dnszone" : {
10943 "optional" : 1,
10944 "type" : "string"
10945 },
10946 "ipam" : {
10947 "optional" : 1,
10948 "type" : "string"
10949 },
10950 "mtu" : {
10951 "optional" : 1,
10952 "type" : "integer"
10953 },
10954 "nodes" : {
10955 "optional" : 1,
10956 "type" : "string"
10957 },
10958 "pending" : {
10959 "optional" : 1
10960 },
10961 "reversedns" : {
10962 "optional" : 1,
10963 "type" : "string"
10964 },
10965 "state" : {
10966 "optional" : 1,
10967 "type" : "string"
10968 },
10969 "type" : {
10970 "type" : "string"
10971 },
10972 "zone" : {
10973 "type" : "string"
10974 }
10975 },
10976 "type" : "object"
10977 },
10978 "links" : [
10979 {
10980 "href" : "{zone}",
10981 "rel" : "child"
10982 }
10983 ],
10984 "type" : "array"
10985 }
10986 },
10987 "POST" : {
10988 "allowtoken" : 1,
10989 "description" : "Create a new sdn zone object.",
10990 "method" : "POST",
10991 "name" : "create",
10992 "parameters" : {
10993 "additionalProperties" : 0,
10994 "properties" : {
10995 "advertise-subnets" : {
10996 "description" : "Advertise evpn subnets if you have silent hosts",
10997 "optional" : 1,
10998 "type" : "boolean",
10999 "typetext" : "<boolean>"
11000 },
11001 "bridge" : {
11002 "optional" : 1,
11003 "type" : "string",
11004 "typetext" : "<string>"
11005 },
11006 "bridge-disable-mac-learning" : {
11007 "description" : "Disable auto mac learning.",
11008 "optional" : 1,
11009 "type" : "boolean",
11010 "typetext" : "<boolean>"
11011 },
11012 "controller" : {
11013 "description" : "Frr router name",
11014 "optional" : 1,
11015 "type" : "string",
11016 "typetext" : "<string>"
11017 },
11018 "dhcp" : {
11019 "description" : "Type of the DHCP backend for this zone",
11020 "enum" : [
11021 "dnsmasq"
11022 ],
11023 "optional" : 1,
11024 "type" : "string"
11025 },
11026 "disable-arp-nd-suppression" : {
11027 "description" : "Disable ipv4 arp && ipv6 neighbour discovery suppression",
11028 "optional" : 1,
11029 "type" : "boolean",
11030 "typetext" : "<boolean>"
11031 },
11032 "dns" : {
11033 "description" : "dns api server",
11034 "optional" : 1,
11035 "type" : "string",
11036 "typetext" : "<string>"
11037 },
11038 "dnszone" : {
11039 "description" : "dns domain zone ex: mydomain.com",
11040 "format" : "dns-name",
11041 "optional" : 1,
11042 "type" : "string",
11043 "typetext" : "<string>"
11044 },
11045 "dp-id" : {
11046 "description" : "Faucet dataplane id",
11047 "optional" : 1,
11048 "type" : "integer",
11049 "typetext" : "<integer>"
11050 },
11051 "exitnodes" : {
11052 "description" : "List of cluster node names.",
11053 "format" : "pve-node-list",
11054 "optional" : 1,
11055 "type" : "string",
11056 "typetext" : "<string>"
11057 },
11058 "exitnodes-local-routing" : {
11059 "description" : "Allow exitnodes to connect to evpn guests",
11060 "optional" : 1,
11061 "type" : "boolean",
11062 "typetext" : "<boolean>"
11063 },
11064 "exitnodes-primary" : {
11065 "description" : "Force traffic to this exitnode first.",
11066 "format" : "pve-node",
11067 "optional" : 1,
11068 "type" : "string",
11069 "typetext" : "<string>"
11070 },
11071 "ipam" : {
11072 "description" : "use a specific ipam",
11073 "optional" : 1,
11074 "type" : "string",
11075 "typetext" : "<string>"
11076 },
11077 "mac" : {
11078 "description" : "Anycast logical router mac address",
11079 "format" : "mac-addr",
11080 "optional" : 1,
11081 "type" : "string",
11082 "typetext" : "<string>"
11083 },
11084 "mtu" : {
11085 "description" : "MTU",
11086 "optional" : 1,
11087 "type" : "integer",
11088 "typetext" : "<integer>"
11089 },
11090 "nodes" : {
11091 "description" : "List of cluster node names.",
11092 "format" : "pve-node-list",
11093 "optional" : 1,
11094 "type" : "string",
11095 "typetext" : "<string>"
11096 },
11097 "peers" : {
11098 "description" : "peers address list.",
11099 "format" : "ip-list",
11100 "optional" : 1,
11101 "type" : "string",
11102 "typetext" : "<string>"
11103 },
11104 "reversedns" : {
11105 "description" : "reverse dns api server",
11106 "optional" : 1,
11107 "type" : "string",
11108 "typetext" : "<string>"
11109 },
11110 "rt-import" : {
11111 "description" : "Route-Target import",
11112 "format" : "pve-sdn-bgp-rt-list",
11113 "optional" : 1,
11114 "type" : "string",
11115 "typetext" : "<string>"
11116 },
11117 "tag" : {
11118 "description" : "Service-VLAN Tag",
11119 "minimum" : 0,
11120 "optional" : 1,
11121 "type" : "integer",
11122 "typetext" : "<integer> (0 - N)"
11123 },
11124 "type" : {
11125 "description" : "Plugin type.",
11126 "enum" : [
11127 "evpn",
11128 "faucet",
11129 "qinq",
11130 "simple",
11131 "vlan",
11132 "vxlan"
11133 ],
11134 "format" : "pve-configid",
11135 "type" : "string"
11136 },
11137 "vlan-protocol" : {
11138 "default" : "802.1q",
11139 "enum" : [
11140 "802.1q",
11141 "802.1ad"
11142 ],
11143 "optional" : 1,
11144 "type" : "string"
11145 },
11146 "vrf-vxlan" : {
11147 "description" : "l3vni.",
11148 "optional" : 1,
11149 "type" : "integer",
11150 "typetext" : "<integer>"
11151 },
11152 "vxlan-port" : {
11153 "description" : "Vxlan tunnel udp port (default 4789).",
11154 "maximum" : 65536,
11155 "minimum" : 1,
11156 "optional" : 1,
11157 "type" : "integer",
11158 "typetext" : "<integer> (1 - 65536)"
11159 },
11160 "zone" : {
11161 "description" : "The SDN zone object identifier.",
11162 "format" : "pve-sdn-zone-id",
11163 "type" : "string",
11164 "typetext" : "<string>"
11165 }
11166 },
11167 "type" : "object"
11168 },
11169 "permissions" : {
11170 "check" : [
11171 "perm",
11172 "/sdn/zones",
11173 [
11174 "SDN.Allocate"
11175 ]
11176 ]
11177 },
11178 "protected" : 1,
11179 "returns" : {
11180 "type" : "null"
11181 }
11182 }
11183 },
11184 "leaf" : 0,
11185 "path" : "/cluster/sdn/zones",
11186 "text" : "zones"
11187 },
11188 {
11189 "children" : [
11190 {
11191 "info" : {
11192 "DELETE" : {
11193 "allowtoken" : 1,
11194 "description" : "Delete sdn controller object configuration.",
11195 "method" : "DELETE",
11196 "name" : "delete",
11197 "parameters" : {
11198 "additionalProperties" : 0,
11199 "properties" : {
11200 "controller" : {
11201 "description" : "The SDN controller object identifier.",
11202 "format" : "pve-sdn-controller-id",
11203 "type" : "string",
11204 "typetext" : "<string>"
11205 }
11206 }
11207 },
11208 "permissions" : {
11209 "check" : [
11210 "perm",
11211 "/sdn/controllers",
11212 [
11213 "SDN.Allocate"
11214 ]
11215 ]
11216 },
11217 "protected" : 1,
11218 "returns" : {
11219 "type" : "null"
11220 }
11221 },
11222 "GET" : {
11223 "allowtoken" : 1,
11224 "description" : "Read sdn controller configuration.",
11225 "method" : "GET",
11226 "name" : "read",
11227 "parameters" : {
11228 "additionalProperties" : 0,
11229 "properties" : {
11230 "controller" : {
11231 "description" : "The SDN controller object identifier.",
11232 "format" : "pve-sdn-controller-id",
11233 "type" : "string",
11234 "typetext" : "<string>"
11235 },
11236 "pending" : {
11237 "description" : "Display pending config.",
11238 "optional" : 1,
11239 "type" : "boolean",
11240 "typetext" : "<boolean>"
11241 },
11242 "running" : {
11243 "description" : "Display running config.",
11244 "optional" : 1,
11245 "type" : "boolean",
11246 "typetext" : "<boolean>"
11247 }
11248 }
11249 },
11250 "permissions" : {
11251 "check" : [
11252 "perm",
11253 "/sdn/controllers/{controller}",
11254 [
11255 "SDN.Allocate"
11256 ]
11257 ]
11258 },
11259 "returns" : {
11260 "type" : "object"
11261 }
11262 },
11263 "PUT" : {
11264 "allowtoken" : 1,
11265 "description" : "Update sdn controller object configuration.",
11266 "method" : "PUT",
11267 "name" : "update",
11268 "parameters" : {
11269 "additionalProperties" : 0,
11270 "properties" : {
11271 "asn" : {
11272 "description" : "autonomous system number",
11273 "maximum" : 4294967296,
11274 "minimum" : 0,
11275 "optional" : 1,
11276 "type" : "integer",
11277 "typetext" : "<integer> (0 - 4294967296)"
11278 },
11279 "bgp-multipath-as-path-relax" : {
11280 "optional" : 1,
11281 "type" : "boolean",
11282 "typetext" : "<boolean>"
11283 },
11284 "controller" : {
11285 "description" : "The SDN controller object identifier.",
11286 "format" : "pve-sdn-controller-id",
11287 "type" : "string",
11288 "typetext" : "<string>"
11289 },
11290 "delete" : {
11291 "description" : "A list of settings you want to delete.",
11292 "format" : "pve-configid-list",
11293 "maxLength" : 4096,
11294 "optional" : 1,
11295 "type" : "string",
11296 "typetext" : "<string>"
11297 },
11298 "digest" : {
11299 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
11300 "maxLength" : 64,
11301 "optional" : 1,
11302 "type" : "string",
11303 "typetext" : "<string>"
11304 },
11305 "ebgp" : {
11306 "description" : "Enable ebgp. (remote-as external)",
11307 "optional" : 1,
11308 "type" : "boolean",
11309 "typetext" : "<boolean>"
11310 },
11311 "ebgp-multihop" : {
11312 "optional" : 1,
11313 "type" : "integer",
11314 "typetext" : "<integer>"
11315 },
11316 "isis-domain" : {
11317 "description" : "ISIS domain.",
11318 "optional" : 1,
11319 "type" : "string",
11320 "typetext" : "<string>"
11321 },
11322 "isis-ifaces" : {
11323 "description" : "ISIS interface.",
11324 "format" : "pve-iface-list",
11325 "optional" : 1,
11326 "type" : "string",
11327 "typetext" : "<string>"
11328 },
11329 "isis-net" : {
11330 "description" : "ISIS network entity title.",
11331 "optional" : 1,
11332 "type" : "string",
11333 "typetext" : "<string>"
11334 },
11335 "loopback" : {
11336 "description" : "source loopback interface.",
11337 "optional" : 1,
11338 "type" : "string",
11339 "typetext" : "<string>"
11340 },
11341 "node" : {
11342 "description" : "The cluster node name.",
11343 "format" : "pve-node",
11344 "optional" : 1,
11345 "type" : "string",
11346 "typetext" : "<string>"
11347 },
11348 "peers" : {
11349 "description" : "peers address list.",
11350 "format" : "ip-list",
11351 "optional" : 1,
11352 "type" : "string",
11353 "typetext" : "<string>"
11354 }
11355 },
11356 "type" : "object"
11357 },
11358 "permissions" : {
11359 "check" : [
11360 "perm",
11361 "/sdn/controllers",
11362 [
11363 "SDN.Allocate"
11364 ]
11365 ]
11366 },
11367 "protected" : 1,
11368 "returns" : {
11369 "type" : "null"
11370 }
11371 }
11372 },
11373 "leaf" : 1,
11374 "path" : "/cluster/sdn/controllers/{controller}",
11375 "text" : "{controller}"
11376 }
11377 ],
11378 "info" : {
11379 "GET" : {
11380 "allowtoken" : 1,
11381 "description" : "SDN controllers index.",
11382 "method" : "GET",
11383 "name" : "index",
11384 "parameters" : {
11385 "additionalProperties" : 0,
11386 "properties" : {
11387 "pending" : {
11388 "description" : "Display pending config.",
11389 "optional" : 1,
11390 "type" : "boolean",
11391 "typetext" : "<boolean>"
11392 },
11393 "running" : {
11394 "description" : "Display running config.",
11395 "optional" : 1,
11396 "type" : "boolean",
11397 "typetext" : "<boolean>"
11398 },
11399 "type" : {
11400 "description" : "Only list sdn controllers of specific type",
11401 "enum" : [
11402 "bgp",
11403 "evpn",
11404 "faucet",
11405 "isis"
11406 ],
11407 "optional" : 1,
11408 "type" : "string"
11409 }
11410 }
11411 },
11412 "permissions" : {
11413 "description" : "Only list entries where you have 'SDN.Audit' or 'SDN.Allocate' permissions on '/sdn/controllers/<controller>'",
11414 "user" : "all"
11415 },
11416 "returns" : {
11417 "items" : {
11418 "properties" : {
11419 "controller" : {
11420 "type" : "string"
11421 },
11422 "pending" : {
11423 "optional" : 1
11424 },
11425 "state" : {
11426 "optional" : 1,
11427 "type" : "string"
11428 },
11429 "type" : {
11430 "type" : "string"
11431 }
11432 },
11433 "type" : "object"
11434 },
11435 "links" : [
11436 {
11437 "href" : "{controller}",
11438 "rel" : "child"
11439 }
11440 ],
11441 "type" : "array"
11442 }
11443 },
11444 "POST" : {
11445 "allowtoken" : 1,
11446 "description" : "Create a new sdn controller object.",
11447 "method" : "POST",
11448 "name" : "create",
11449 "parameters" : {
11450 "additionalProperties" : 0,
11451 "properties" : {
11452 "asn" : {
11453 "description" : "autonomous system number",
11454 "maximum" : 4294967296,
11455 "minimum" : 0,
11456 "optional" : 1,
11457 "type" : "integer",
11458 "typetext" : "<integer> (0 - 4294967296)"
11459 },
11460 "bgp-multipath-as-path-relax" : {
11461 "optional" : 1,
11462 "type" : "boolean",
11463 "typetext" : "<boolean>"
11464 },
11465 "controller" : {
11466 "description" : "The SDN controller object identifier.",
11467 "format" : "pve-sdn-controller-id",
11468 "type" : "string",
11469 "typetext" : "<string>"
11470 },
11471 "ebgp" : {
11472 "description" : "Enable ebgp. (remote-as external)",
11473 "optional" : 1,
11474 "type" : "boolean",
11475 "typetext" : "<boolean>"
11476 },
11477 "ebgp-multihop" : {
11478 "optional" : 1,
11479 "type" : "integer",
11480 "typetext" : "<integer>"
11481 },
11482 "isis-domain" : {
11483 "description" : "ISIS domain.",
11484 "optional" : 1,
11485 "type" : "string",
11486 "typetext" : "<string>"
11487 },
11488 "isis-ifaces" : {
11489 "description" : "ISIS interface.",
11490 "format" : "pve-iface-list",
11491 "optional" : 1,
11492 "type" : "string",
11493 "typetext" : "<string>"
11494 },
11495 "isis-net" : {
11496 "description" : "ISIS network entity title.",
11497 "optional" : 1,
11498 "type" : "string",
11499 "typetext" : "<string>"
11500 },
11501 "loopback" : {
11502 "description" : "source loopback interface.",
11503 "optional" : 1,
11504 "type" : "string",
11505 "typetext" : "<string>"
11506 },
11507 "node" : {
11508 "description" : "The cluster node name.",
11509 "format" : "pve-node",
11510 "optional" : 1,
11511 "type" : "string",
11512 "typetext" : "<string>"
11513 },
11514 "peers" : {
11515 "description" : "peers address list.",
11516 "format" : "ip-list",
11517 "optional" : 1,
11518 "type" : "string",
11519 "typetext" : "<string>"
11520 },
11521 "type" : {
11522 "description" : "Plugin type.",
11523 "enum" : [
11524 "bgp",
11525 "evpn",
11526 "faucet",
11527 "isis"
11528 ],
11529 "format" : "pve-configid",
11530 "type" : "string"
11531 }
11532 },
11533 "type" : "object"
11534 },
11535 "permissions" : {
11536 "check" : [
11537 "perm",
11538 "/sdn/controllers",
11539 [
11540 "SDN.Allocate"
11541 ]
11542 ]
11543 },
11544 "protected" : 1,
11545 "returns" : {
11546 "type" : "null"
11547 }
11548 }
11549 },
11550 "leaf" : 0,
11551 "path" : "/cluster/sdn/controllers",
11552 "text" : "controllers"
11553 },
11554 {
11555 "children" : [
11556 {
11557 "children" : [
11558 {
11559 "info" : {
11560 "GET" : {
11561 "allowtoken" : 1,
11562 "description" : "List PVE IPAM Entries",
11563 "method" : "GET",
11564 "name" : "ipamindex",
11565 "parameters" : {
11566 "additionalProperties" : 0,
11567 "properties" : {
11568 "ipam" : {
11569 "description" : "The SDN ipam object identifier.",
11570 "format" : "pve-sdn-ipam-id",
11571 "type" : "string",
11572 "typetext" : "<string>"
11573 }
11574 }
11575 },
11576 "permissions" : {
11577 "description" : "Only list entries where you have 'SDN.Audit' or 'SDN.Allocate' permissions on '/sdn/zones/<zone>/<vnet>'",
11578 "user" : "all"
11579 },
11580 "protected" : 1,
11581 "returns" : {
11582 "type" : "array"
11583 }
11584 }
11585 },
11586 "leaf" : 1,
11587 "path" : "/cluster/sdn/ipams/{ipam}/status",
11588 "text" : "status"
11589 }
11590 ],
11591 "info" : {
11592 "DELETE" : {
11593 "allowtoken" : 1,
11594 "description" : "Delete sdn ipam object configuration.",
11595 "method" : "DELETE",
11596 "name" : "delete",
11597 "parameters" : {
11598 "additionalProperties" : 0,
11599 "properties" : {
11600 "ipam" : {
11601 "description" : "The SDN ipam object identifier.",
11602 "format" : "pve-sdn-ipam-id",
11603 "type" : "string",
11604 "typetext" : "<string>"
11605 }
11606 }
11607 },
11608 "permissions" : {
11609 "check" : [
11610 "perm",
11611 "/sdn/ipams",
11612 [
11613 "SDN.Allocate"
11614 ]
11615 ]
11616 },
11617 "protected" : 1,
11618 "returns" : {
11619 "type" : "null"
11620 }
11621 },
11622 "GET" : {
11623 "allowtoken" : 1,
11624 "description" : "Read sdn ipam configuration.",
11625 "method" : "GET",
11626 "name" : "read",
11627 "parameters" : {
11628 "additionalProperties" : 0,
11629 "properties" : {
11630 "ipam" : {
11631 "description" : "The SDN ipam object identifier.",
11632 "format" : "pve-sdn-ipam-id",
11633 "type" : "string",
11634 "typetext" : "<string>"
11635 }
11636 }
11637 },
11638 "permissions" : {
11639 "check" : [
11640 "perm",
11641 "/sdn/ipams/{ipam}",
11642 [
11643 "SDN.Allocate"
11644 ]
11645 ]
11646 },
11647 "returns" : {
11648 "type" : "object"
11649 }
11650 },
11651 "PUT" : {
11652 "allowtoken" : 1,
11653 "description" : "Update sdn ipam object configuration.",
11654 "method" : "PUT",
11655 "name" : "update",
11656 "parameters" : {
11657 "additionalProperties" : 0,
11658 "properties" : {
11659 "delete" : {
11660 "description" : "A list of settings you want to delete.",
11661 "format" : "pve-configid-list",
11662 "maxLength" : 4096,
11663 "optional" : 1,
11664 "type" : "string",
11665 "typetext" : "<string>"
11666 },
11667 "digest" : {
11668 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
11669 "maxLength" : 64,
11670 "optional" : 1,
11671 "type" : "string",
11672 "typetext" : "<string>"
11673 },
11674 "ipam" : {
11675 "description" : "The SDN ipam object identifier.",
11676 "format" : "pve-sdn-ipam-id",
11677 "type" : "string",
11678 "typetext" : "<string>"
11679 },
11680 "section" : {
11681 "optional" : 1,
11682 "type" : "integer",
11683 "typetext" : "<integer>"
11684 },
11685 "token" : {
11686 "optional" : 1,
11687 "type" : "string",
11688 "typetext" : "<string>"
11689 },
11690 "url" : {
11691 "optional" : 1,
11692 "type" : "string",
11693 "typetext" : "<string>"
11694 }
11695 },
11696 "type" : "object"
11697 },
11698 "permissions" : {
11699 "check" : [
11700 "perm",
11701 "/sdn/ipams",
11702 [
11703 "SDN.Allocate"
11704 ]
11705 ]
11706 },
11707 "protected" : 1,
11708 "returns" : {
11709 "type" : "null"
11710 }
11711 }
11712 },
11713 "leaf" : 0,
11714 "path" : "/cluster/sdn/ipams/{ipam}",
11715 "text" : "{ipam}"
11716 }
11717 ],
11718 "info" : {
11719 "GET" : {
11720 "allowtoken" : 1,
11721 "description" : "SDN ipams index.",
11722 "method" : "GET",
11723 "name" : "index",
11724 "parameters" : {
11725 "additionalProperties" : 0,
11726 "properties" : {
11727 "type" : {
11728 "description" : "Only list sdn ipams of specific type",
11729 "enum" : [
11730 "netbox",
11731 "phpipam",
11732 "pve"
11733 ],
11734 "optional" : 1,
11735 "type" : "string"
11736 }
11737 }
11738 },
11739 "permissions" : {
11740 "description" : "Only list entries where you have 'SDN.Audit' or 'SDN.Allocate' permissions on '/sdn/ipams/<ipam>'",
11741 "user" : "all"
11742 },
11743 "returns" : {
11744 "items" : {
11745 "properties" : {
11746 "ipam" : {
11747 "type" : "string"
11748 },
11749 "type" : {
11750 "type" : "string"
11751 }
11752 },
11753 "type" : "object"
11754 },
11755 "links" : [
11756 {
11757 "href" : "{ipam}",
11758 "rel" : "child"
11759 }
11760 ],
11761 "type" : "array"
11762 }
11763 },
11764 "POST" : {
11765 "allowtoken" : 1,
11766 "description" : "Create a new sdn ipam object.",
11767 "method" : "POST",
11768 "name" : "create",
11769 "parameters" : {
11770 "additionalProperties" : 0,
11771 "properties" : {
11772 "ipam" : {
11773 "description" : "The SDN ipam object identifier.",
11774 "format" : "pve-sdn-ipam-id",
11775 "type" : "string",
11776 "typetext" : "<string>"
11777 },
11778 "section" : {
11779 "optional" : 1,
11780 "type" : "integer",
11781 "typetext" : "<integer>"
11782 },
11783 "token" : {
11784 "optional" : 1,
11785 "type" : "string",
11786 "typetext" : "<string>"
11787 },
11788 "type" : {
11789 "description" : "Plugin type.",
11790 "enum" : [
11791 "netbox",
11792 "phpipam",
11793 "pve"
11794 ],
11795 "format" : "pve-configid",
11796 "type" : "string"
11797 },
11798 "url" : {
11799 "optional" : 1,
11800 "type" : "string",
11801 "typetext" : "<string>"
11802 }
11803 },
11804 "type" : "object"
11805 },
11806 "permissions" : {
11807 "check" : [
11808 "perm",
11809 "/sdn/ipams",
11810 [
11811 "SDN.Allocate"
11812 ]
11813 ]
11814 },
11815 "protected" : 1,
11816 "returns" : {
11817 "type" : "null"
11818 }
11819 }
11820 },
11821 "leaf" : 0,
11822 "path" : "/cluster/sdn/ipams",
11823 "text" : "ipams"
11824 },
11825 {
11826 "children" : [
11827 {
11828 "info" : {
11829 "DELETE" : {
11830 "allowtoken" : 1,
11831 "description" : "Delete sdn dns object configuration.",
11832 "method" : "DELETE",
11833 "name" : "delete",
11834 "parameters" : {
11835 "additionalProperties" : 0,
11836 "properties" : {
11837 "dns" : {
11838 "description" : "The SDN dns object identifier.",
11839 "format" : "pve-sdn-dns-id",
11840 "type" : "string",
11841 "typetext" : "<string>"
11842 }
11843 }
11844 },
11845 "permissions" : {
11846 "check" : [
11847 "perm",
11848 "/sdn/dns",
11849 [
11850 "SDN.Allocate"
11851 ]
11852 ]
11853 },
11854 "protected" : 1,
11855 "returns" : {
11856 "type" : "null"
11857 }
11858 },
11859 "GET" : {
11860 "allowtoken" : 1,
11861 "description" : "Read sdn dns configuration.",
11862 "method" : "GET",
11863 "name" : "read",
11864 "parameters" : {
11865 "additionalProperties" : 0,
11866 "properties" : {
11867 "dns" : {
11868 "description" : "The SDN dns object identifier.",
11869 "format" : "pve-sdn-dns-id",
11870 "type" : "string",
11871 "typetext" : "<string>"
11872 }
11873 }
11874 },
11875 "permissions" : {
11876 "check" : [
11877 "perm",
11878 "/sdn/dns/{dns}",
11879 [
11880 "SDN.Allocate"
11881 ]
11882 ]
11883 },
11884 "returns" : {
11885 "type" : "object"
11886 }
11887 },
11888 "PUT" : {
11889 "allowtoken" : 1,
11890 "description" : "Update sdn dns object configuration.",
11891 "method" : "PUT",
11892 "name" : "update",
11893 "parameters" : {
11894 "additionalProperties" : 0,
11895 "properties" : {
11896 "delete" : {
11897 "description" : "A list of settings you want to delete.",
11898 "format" : "pve-configid-list",
11899 "maxLength" : 4096,
11900 "optional" : 1,
11901 "type" : "string",
11902 "typetext" : "<string>"
11903 },
11904 "digest" : {
11905 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
11906 "maxLength" : 64,
11907 "optional" : 1,
11908 "type" : "string",
11909 "typetext" : "<string>"
11910 },
11911 "dns" : {
11912 "description" : "The SDN dns object identifier.",
11913 "format" : "pve-sdn-dns-id",
11914 "type" : "string",
11915 "typetext" : "<string>"
11916 },
11917 "key" : {
11918 "optional" : 1,
11919 "type" : "string",
11920 "typetext" : "<string>"
11921 },
11922 "reversemaskv6" : {
11923 "optional" : 1,
11924 "type" : "integer",
11925 "typetext" : "<integer>"
11926 },
11927 "ttl" : {
11928 "optional" : 1,
11929 "type" : "integer",
11930 "typetext" : "<integer>"
11931 },
11932 "url" : {
11933 "optional" : 1,
11934 "type" : "string",
11935 "typetext" : "<string>"
11936 }
11937 },
11938 "type" : "object"
11939 },
11940 "permissions" : {
11941 "check" : [
11942 "perm",
11943 "/sdn/dns",
11944 [
11945 "SDN.Allocate"
11946 ]
11947 ]
11948 },
11949 "protected" : 1,
11950 "returns" : {
11951 "type" : "null"
11952 }
11953 }
11954 },
11955 "leaf" : 1,
11956 "path" : "/cluster/sdn/dns/{dns}",
11957 "text" : "{dns}"
11958 }
11959 ],
11960 "info" : {
11961 "GET" : {
11962 "allowtoken" : 1,
11963 "description" : "SDN dns index.",
11964 "method" : "GET",
11965 "name" : "index",
11966 "parameters" : {
11967 "additionalProperties" : 0,
11968 "properties" : {
11969 "type" : {
11970 "description" : "Only list sdn dns of specific type",
11971 "enum" : [
11972 "powerdns"
11973 ],
11974 "optional" : 1,
11975 "type" : "string"
11976 }
11977 }
11978 },
11979 "permissions" : {
11980 "description" : "Only list entries where you have 'SDN.Audit' or 'SDN.Allocate' permissions on '/sdn/dns/<dns>'",
11981 "user" : "all"
11982 },
11983 "returns" : {
11984 "items" : {
11985 "properties" : {
11986 "dns" : {
11987 "type" : "string"
11988 },
11989 "type" : {
11990 "type" : "string"
11991 }
11992 },
11993 "type" : "object"
11994 },
11995 "links" : [
11996 {
11997 "href" : "{dns}",
11998 "rel" : "child"
11999 }
12000 ],
12001 "type" : "array"
12002 }
12003 },
12004 "POST" : {
12005 "allowtoken" : 1,
12006 "description" : "Create a new sdn dns object.",
12007 "method" : "POST",
12008 "name" : "create",
12009 "parameters" : {
12010 "additionalProperties" : 0,
12011 "properties" : {
12012 "dns" : {
12013 "description" : "The SDN dns object identifier.",
12014 "format" : "pve-sdn-dns-id",
12015 "type" : "string",
12016 "typetext" : "<string>"
12017 },
12018 "key" : {
12019 "optional" : 0,
12020 "type" : "string",
12021 "typetext" : "<string>"
12022 },
12023 "reversemaskv6" : {
12024 "optional" : 1,
12025 "type" : "integer",
12026 "typetext" : "<integer>"
12027 },
12028 "reversev6mask" : {
12029 "optional" : 1,
12030 "type" : "integer",
12031 "typetext" : "<integer>"
12032 },
12033 "ttl" : {
12034 "optional" : 1,
12035 "type" : "integer",
12036 "typetext" : "<integer>"
12037 },
12038 "type" : {
12039 "description" : "Plugin type.",
12040 "enum" : [
12041 "powerdns"
12042 ],
12043 "format" : "pve-configid",
12044 "type" : "string"
12045 },
12046 "url" : {
12047 "optional" : 0,
12048 "type" : "string",
12049 "typetext" : "<string>"
12050 }
12051 },
12052 "type" : "object"
12053 },
12054 "permissions" : {
12055 "check" : [
12056 "perm",
12057 "/sdn/dns",
12058 [
12059 "SDN.Allocate"
12060 ]
12061 ]
12062 },
12063 "protected" : 1,
12064 "returns" : {
12065 "type" : "null"
12066 }
12067 }
12068 },
12069 "leaf" : 0,
12070 "path" : "/cluster/sdn/dns",
12071 "text" : "dns"
12072 }
12073 ],
12074 "info" : {
12075 "GET" : {
12076 "allowtoken" : 1,
12077 "description" : "Directory index.",
12078 "method" : "GET",
12079 "name" : "index",
12080 "parameters" : {
12081 "additionalProperties" : 0
12082 },
12083 "permissions" : {
12084 "check" : [
12085 "perm",
12086 "/sdn",
12087 [
12088 "SDN.Audit"
12089 ]
12090 ]
12091 },
12092 "returns" : {
12093 "items" : {
12094 "properties" : {
12095 "id" : {
12096 "type" : "string"
12097 }
12098 },
12099 "type" : "object"
12100 },
12101 "links" : [
12102 {
12103 "href" : "{id}",
12104 "rel" : "child"
12105 }
12106 ],
12107 "type" : "array"
12108 }
12109 },
12110 "PUT" : {
12111 "allowtoken" : 1,
12112 "description" : "Apply sdn controller changes && reload.",
12113 "method" : "PUT",
12114 "name" : "reload",
12115 "parameters" : {
12116 "additionalProperties" : 0
12117 },
12118 "permissions" : {
12119 "check" : [
12120 "perm",
12121 "/sdn",
12122 [
12123 "SDN.Allocate"
12124 ]
12125 ]
12126 },
12127 "protected" : 1,
12128 "returns" : {
12129 "type" : "string"
12130 }
12131 }
12132 },
12133 "leaf" : 0,
12134 "path" : "/cluster/sdn",
12135 "text" : "sdn"
12136 },
12137 {
12138 "info" : {
12139 "GET" : {
12140 "allowtoken" : 1,
12141 "description" : "Read cluster log",
12142 "method" : "GET",
12143 "name" : "log",
12144 "parameters" : {
12145 "additionalProperties" : 0,
12146 "properties" : {
12147 "max" : {
12148 "description" : "Maximum number of entries.",
12149 "minimum" : 1,
12150 "optional" : 1,
12151 "type" : "integer",
12152 "typetext" : "<integer> (1 - N)"
12153 }
12154 }
12155 },
12156 "permissions" : {
12157 "user" : "all"
12158 },
12159 "returns" : {
12160 "items" : {
12161 "properties" : {},
12162 "type" : "object"
12163 },
12164 "type" : "array"
12165 }
12166 }
12167 },
12168 "leaf" : 1,
12169 "path" : "/cluster/log",
12170 "text" : "log"
12171 },
12172 {
12173 "info" : {
12174 "GET" : {
12175 "allowtoken" : 1,
12176 "description" : "Resources index (cluster wide).",
12177 "method" : "GET",
12178 "name" : "resources",
12179 "parameters" : {
12180 "additionalProperties" : 0,
12181 "properties" : {
12182 "type" : {
12183 "enum" : [
12184 "vm",
12185 "storage",
12186 "node",
12187 "sdn"
12188 ],
12189 "optional" : 1,
12190 "type" : "string"
12191 }
12192 }
12193 },
12194 "permissions" : {
12195 "user" : "all"
12196 },
12197 "returns" : {
12198 "items" : {
12199 "properties" : {
12200 "cgroup-mode" : {
12201 "description" : "The cgroup mode the node operates under (when type == node).",
12202 "optional" : 1,
12203 "type" : "integer"
12204 },
12205 "content" : {
12206 "description" : "Allowed storage content types (when type == storage).",
12207 "format" : "pve-storage-content-list",
12208 "optional" : 1,
12209 "type" : "string"
12210 },
12211 "cpu" : {
12212 "description" : "CPU utilization (when type in node,qemu,lxc).",
12213 "minimum" : 0,
12214 "optional" : 1,
12215 "renderer" : "fraction_as_percentage",
12216 "type" : "number"
12217 },
12218 "disk" : {
12219 "description" : "Used disk space in bytes (when type in storage), used root image spave for VMs (type in qemu,lxc).",
12220 "minimum" : 0,
12221 "optional" : 1,
12222 "renderer" : "bytes",
12223 "type" : "integer"
12224 },
12225 "hastate" : {
12226 "description" : "HA service status (for HA managed VMs).",
12227 "optional" : 1,
12228 "type" : "string"
12229 },
12230 "id" : {
12231 "description" : "Resource id.",
12232 "type" : "string"
12233 },
12234 "level" : {
12235 "description" : "Support level (when type == node).",
12236 "optional" : 1,
12237 "type" : "string"
12238 },
12239 "maxcpu" : {
12240 "description" : "Number of available CPUs (when type in node,qemu,lxc).",
12241 "minimum" : 0,
12242 "optional" : 1,
12243 "type" : "number"
12244 },
12245 "maxdisk" : {
12246 "description" : "Storage size in bytes (when type in storage), root image size for VMs (type in qemu,lxc).",
12247 "minimum" : 0,
12248 "optional" : 1,
12249 "renderer" : "bytes",
12250 "type" : "integer"
12251 },
12252 "maxmem" : {
12253 "description" : "Number of available memory in bytes (when type in node,qemu,lxc).",
12254 "optional" : 1,
12255 "renderer" : "bytes",
12256 "type" : "integer"
12257 },
12258 "mem" : {
12259 "description" : "Used memory in bytes (when type in node,qemu,lxc).",
12260 "minimum" : 0,
12261 "optional" : 1,
12262 "renderer" : "bytes",
12263 "type" : "integer"
12264 },
12265 "name" : {
12266 "description" : "Name of the resource.",
12267 "optional" : 1,
12268 "type" : "string"
12269 },
12270 "node" : {
12271 "description" : "The cluster node name (when type in node,storage,qemu,lxc).",
12272 "format" : "pve-node",
12273 "optional" : 1,
12274 "type" : "string"
12275 },
12276 "plugintype" : {
12277 "description" : "More specific type, if available.",
12278 "optional" : 1,
12279 "type" : "string"
12280 },
12281 "pool" : {
12282 "description" : "The pool name (when type in pool,qemu,lxc).",
12283 "optional" : 1,
12284 "type" : "string"
12285 },
12286 "status" : {
12287 "description" : "Resource type dependent status.",
12288 "optional" : 1,
12289 "type" : "string"
12290 },
12291 "storage" : {
12292 "description" : "The storage identifier (when type == storage).",
12293 "format" : "pve-storage-id",
12294 "format_description" : "storage ID",
12295 "optional" : 1,
12296 "type" : "string"
12297 },
12298 "type" : {
12299 "description" : "Resource type.",
12300 "enum" : [
12301 "node",
12302 "storage",
12303 "pool",
12304 "qemu",
12305 "lxc",
12306 "openvz",
12307 "sdn"
12308 ],
12309 "type" : "string"
12310 },
12311 "uptime" : {
12312 "description" : "Node uptime in seconds (when type in node,qemu,lxc).",
12313 "optional" : 1,
12314 "renderer" : "duration",
12315 "type" : "integer"
12316 },
12317 "vmid" : {
12318 "description" : "The numerical vmid (when type in qemu,lxc).",
12319 "format" : "pve-vmid",
12320 "maximum" : 999999999,
12321 "minimum" : 100,
12322 "optional" : 1,
12323 "type" : "integer"
12324 }
12325 },
12326 "type" : "object"
12327 },
12328 "type" : "array"
12329 }
12330 }
12331 },
12332 "leaf" : 1,
12333 "path" : "/cluster/resources",
12334 "text" : "resources"
12335 },
12336 {
12337 "info" : {
12338 "GET" : {
12339 "allowtoken" : 1,
12340 "description" : "List recent tasks (cluster wide).",
12341 "method" : "GET",
12342 "name" : "tasks",
12343 "parameters" : {
12344 "additionalProperties" : 0
12345 },
12346 "permissions" : {
12347 "user" : "all"
12348 },
12349 "returns" : {
12350 "items" : {
12351 "properties" : {
12352 "upid" : {
12353 "type" : "string"
12354 }
12355 },
12356 "type" : "object"
12357 },
12358 "type" : "array"
12359 }
12360 }
12361 },
12362 "leaf" : 1,
12363 "path" : "/cluster/tasks",
12364 "text" : "tasks"
12365 },
12366 {
12367 "info" : {
12368 "GET" : {
12369 "allowtoken" : 1,
12370 "description" : "Get datacenter options. Without 'Sys.Audit' on '/' not all options are returned.",
12371 "method" : "GET",
12372 "name" : "get_options",
12373 "parameters" : {
12374 "additionalProperties" : 0
12375 },
12376 "permissions" : {
12377 "check" : [
12378 "perm",
12379 "/",
12380 [
12381 "Sys.Audit"
12382 ]
12383 ],
12384 "user" : "all"
12385 },
12386 "returns" : {
12387 "type" : "object"
12388 }
12389 },
12390 "PUT" : {
12391 "allowtoken" : 1,
12392 "description" : "Set datacenter options.",
12393 "method" : "PUT",
12394 "name" : "set_options",
12395 "parameters" : {
12396 "additionalProperties" : 0,
12397 "properties" : {
12398 "bwlimit" : {
12399 "description" : "Set I/O bandwidth limit for various operations (in KiB/s).",
12400 "format" : {
12401 "clone" : {
12402 "description" : "bandwidth limit in KiB/s for cloning disks",
12403 "format_description" : "LIMIT",
12404 "minimum" : "0",
12405 "optional" : 1,
12406 "type" : "number"
12407 },
12408 "default" : {
12409 "description" : "default bandwidth limit in KiB/s",
12410 "format_description" : "LIMIT",
12411 "minimum" : "0",
12412 "optional" : 1,
12413 "type" : "number"
12414 },
12415 "migration" : {
12416 "description" : "bandwidth limit in KiB/s for migrating guests (including moving local disks)",
12417 "format_description" : "LIMIT",
12418 "minimum" : "0",
12419 "optional" : 1,
12420 "type" : "number"
12421 },
12422 "move" : {
12423 "description" : "bandwidth limit in KiB/s for moving disks",
12424 "format_description" : "LIMIT",
12425 "minimum" : "0",
12426 "optional" : 1,
12427 "type" : "number"
12428 },
12429 "restore" : {
12430 "description" : "bandwidth limit in KiB/s for restoring guests from backups",
12431 "format_description" : "LIMIT",
12432 "minimum" : "0",
12433 "optional" : 1,
12434 "type" : "number"
12435 }
12436 },
12437 "optional" : 1,
12438 "type" : "string",
12439 "typetext" : "[clone=<LIMIT>] [,default=<LIMIT>] [,migration=<LIMIT>] [,move=<LIMIT>] [,restore=<LIMIT>]"
12440 },
12441 "console" : {
12442 "description" : "Select the default Console viewer. You can either use the builtin java applet (VNC; deprecated and maps to html5), an external virt-viewer comtatible application (SPICE), an HTML5 based vnc viewer (noVNC), or an HTML5 based console client (xtermjs). If the selected viewer is not available (e.g. SPICE not activated for the VM), the fallback is noVNC.",
12443 "enum" : [
12444 "applet",
12445 "vv",
12446 "html5",
12447 "xtermjs"
12448 ],
12449 "optional" : 1,
12450 "type" : "string"
12451 },
12452 "crs" : {
12453 "description" : "Cluster resource scheduling settings.",
12454 "format" : {
12455 "ha" : {
12456 "default" : "basic",
12457 "description" : "Use this resource scheduler mode for HA.",
12458 "enum" : [
12459 "basic",
12460 "static"
12461 ],
12462 "optional" : 1,
12463 "type" : "string",
12464 "verbose_description" : "Configures how the HA manager should select nodes to start or recover services. With 'basic', only the number of services is used, with 'static', static CPU and memory configuration of services is considered."
12465 },
12466 "ha-rebalance-on-start" : {
12467 "default" : 0,
12468 "description" : "Set to use CRS for selecting a suited node when a HA services request-state changes from stop to start.",
12469 "optional" : 1,
12470 "type" : "boolean"
12471 }
12472 },
12473 "optional" : 1,
12474 "type" : "string",
12475 "typetext" : "[ha=<basic|static>] [,ha-rebalance-on-start=<1|0>]"
12476 },
12477 "delete" : {
12478 "description" : "A list of settings you want to delete.",
12479 "format" : "pve-configid-list",
12480 "optional" : 1,
12481 "type" : "string",
12482 "typetext" : "<string>"
12483 },
12484 "description" : {
12485 "description" : "Datacenter description. Shown in the web-interface datacenter notes panel. This is saved as comment inside the configuration file.",
12486 "maxLength" : 65536,
12487 "optional" : 1,
12488 "type" : "string",
12489 "typetext" : "<string>"
12490 },
12491 "email_from" : {
12492 "description" : "Specify email address to send notification from (default is root@$hostname)",
12493 "format" : "email-opt",
12494 "optional" : 1,
12495 "type" : "string",
12496 "typetext" : "<string>"
12497 },
12498 "fencing" : {
12499 "default" : "watchdog",
12500 "description" : "Set the fencing mode of the HA cluster. Hardware mode needs a valid configuration of fence devices in /etc/pve/ha/fence.cfg. With both all two modes are used.\n\nWARNING: 'hardware' and 'both' are EXPERIMENTAL & WIP",
12501 "enum" : [
12502 "watchdog",
12503 "hardware",
12504 "both"
12505 ],
12506 "optional" : 1,
12507 "type" : "string"
12508 },
12509 "ha" : {
12510 "description" : "Cluster wide HA settings.",
12511 "format" : {
12512 "shutdown_policy" : {
12513 "default" : "conditional",
12514 "description" : "The policy for HA services on node shutdown. 'freeze' disables auto-recovery, 'failover' ensures recovery, 'conditional' recovers on poweroff and freezes on reboot. 'migrate' will migrate running services to other nodes, if possible. With 'freeze' or 'failover', HA Services will always get stopped first on shutdown.",
12515 "enum" : [
12516 "freeze",
12517 "failover",
12518 "conditional",
12519 "migrate"
12520 ],
12521 "type" : "string",
12522 "verbose_description" : "Describes the policy for handling HA services on poweroff or reboot of a node. Freeze will always freeze services which are still located on the node on shutdown, those services won't be recovered by the HA manager. Failover will not mark the services as frozen and thus the services will get recovered to other nodes, if the shutdown node does not come up again quickly (< 1min). 'conditional' chooses automatically depending on the type of shutdown, i.e., on a reboot the service will be frozen but on a poweroff the service will stay as is, and thus get recovered after about 2 minutes. Migrate will try to move all running services to another node when a reboot or shutdown was triggered. The poweroff process will only continue once no running services are located on the node anymore. If the node comes up again, the service will be moved back to the previously powered-off node, at least if no other migration, reloaction or recovery took place."
12523 }
12524 },
12525 "optional" : 1,
12526 "type" : "string",
12527 "typetext" : "shutdown_policy=<enum>"
12528 },
12529 "http_proxy" : {
12530 "description" : "Specify external http proxy which is used for downloads (example: 'http://username:password@host:port/')",
12531 "optional" : 1,
12532 "pattern" : "http://.*",
12533 "type" : "string"
12534 },
12535 "keyboard" : {
12536 "description" : "Default keybord layout for vnc server.",
12537 "enum" : [
12538 "de",
12539 "de-ch",
12540 "da",
12541 "en-gb",
12542 "en-us",
12543 "es",
12544 "fi",
12545 "fr",
12546 "fr-be",
12547 "fr-ca",
12548 "fr-ch",
12549 "hu",
12550 "is",
12551 "it",
12552 "ja",
12553 "lt",
12554 "mk",
12555 "nl",
12556 "no",
12557 "pl",
12558 "pt",
12559 "pt-br",
12560 "sv",
12561 "sl",
12562 "tr"
12563 ],
12564 "optional" : 1,
12565 "type" : "string"
12566 },
12567 "language" : {
12568 "description" : "Default GUI language.",
12569 "enum" : [
12570 "ar",
12571 "ca",
12572 "da",
12573 "de",
12574 "en",
12575 "es",
12576 "eu",
12577 "fa",
12578 "fr",
12579 "hr",
12580 "he",
12581 "it",
12582 "ja",
12583 "ka",
12584 "kr",
12585 "nb",
12586 "nl",
12587 "nn",
12588 "pl",
12589 "pt_BR",
12590 "ru",
12591 "sl",
12592 "sv",
12593 "tr",
12594 "ukr",
12595 "zh_CN",
12596 "zh_TW"
12597 ],
12598 "optional" : 1,
12599 "type" : "string"
12600 },
12601 "mac_prefix" : {
12602 "default" : "BC:24:11",
12603 "description" : "Prefix for the auto-generated MAC addresses of virtual guests. The default 'BC:24:11' is the OUI assigned by the IEEE to Proxmox Server Solutions GmbH for a 24-bit large MAC block. You're allowed to use this in local networks, i.e., those not directly reachable by the public (e.g., in a LAN or behind NAT).",
12604 "format" : "mac-prefix",
12605 "optional" : 1,
12606 "type" : "string",
12607 "typetext" : "<string>",
12608 "verbose_description" : "Prefix for the auto-generated MAC addresses of virtual guests. The default `BC:24:11` is the Organizationally Unique Identifier (OUI) assigned by the IEEE to Proxmox Server Solutions GmbH for a MAC Address Block Large (MA-L). You're allowed to use this in local networks, i.e., those not directly reachable by the public (e.g., in a LAN or NAT/Masquerading).\n \nNote that when you run multiple cluster that (partially) share the networks of their virtual guests, it's highly recommended that you extend the default MAC prefix, or generate a custom (valid) one, to reduce the chance of MAC collisions. For example, add a separate extra hexadecimal to the Proxmox OUI for each cluster, like `BC:24:11:0` for the first, `BC:24:11:1` for the second, and so on.\n Alternatively, you can also separate the networks of the guests logically, e.g., by using VLANs.\n\nFor publicly accessible guests it's recommended that you get your own https://standards.ieee.org/products-programs/regauth/[OUI from the IEEE] registered or coordinate with your, or your hosting providers, network admins."
12609 },
12610 "max_workers" : {
12611 "description" : "Defines how many workers (per node) are maximal started on actions like 'stopall VMs' or task from the ha-manager.",
12612 "minimum" : 1,
12613 "optional" : 1,
12614 "type" : "integer",
12615 "typetext" : "<integer> (1 - N)"
12616 },
12617 "migration" : {
12618 "description" : "For cluster wide migration settings.",
12619 "format" : {
12620 "network" : {
12621 "description" : "CIDR of the (sub) network that is used for migration.",
12622 "format" : "CIDR",
12623 "format_description" : "CIDR",
12624 "optional" : 1,
12625 "type" : "string"
12626 },
12627 "type" : {
12628 "default" : "secure",
12629 "default_key" : 1,
12630 "description" : "Migration traffic is encrypted using an SSH tunnel by default. On secure, completely private networks this can be disabled to increase performance.",
12631 "enum" : [
12632 "secure",
12633 "insecure"
12634 ],
12635 "type" : "string"
12636 }
12637 },
12638 "optional" : 1,
12639 "type" : "string",
12640 "typetext" : "[type=]<secure|insecure> [,network=<CIDR>]"
12641 },
12642 "migration_unsecure" : {
12643 "description" : "Migration is secure using SSH tunnel by default. For secure private networks you can disable it to speed up migration. Deprecated, use the 'migration' property instead!",
12644 "optional" : 1,
12645 "type" : "boolean",
12646 "typetext" : "<boolean>"
12647 },
12648 "next-id" : {
12649 "description" : "Control the range for the free VMID auto-selection pool.",
12650 "format" : {
12651 "lower" : {
12652 "default" : 100,
12653 "description" : "Lower, inclusive boundary for free next-id API range.",
12654 "max" : 999999999,
12655 "min" : 100,
12656 "optional" : 1,
12657 "type" : "integer"
12658 },
12659 "upper" : {
12660 "default" : 1000000,
12661 "description" : "Upper, exclusive boundary for free next-id API range.",
12662 "max" : 1000000000,
12663 "min" : 100,
12664 "optional" : 1,
12665 "type" : "integer"
12666 }
12667 },
12668 "optional" : 1,
12669 "type" : "string",
12670 "typetext" : "[lower=<integer>] [,upper=<integer>]"
12671 },
12672 "notify" : {
12673 "description" : "Cluster-wide notification settings.",
12674 "format" : {
12675 "fencing" : {
12676 "description" : "UNUSED - Use datacenter notification settings instead.",
12677 "enum" : [
12678 "always",
12679 "never"
12680 ],
12681 "optional" : 1,
12682 "type" : "string"
12683 },
12684 "package-updates" : {
12685 "default" : "auto",
12686 "description" : "DEPRECATED: Use datacenter notification settings instead. Control when the daily update job should send out notifications.",
12687 "enum" : [
12688 "auto",
12689 "always",
12690 "never"
12691 ],
12692 "optional" : 1,
12693 "type" : "string",
12694 "verbose_description" : "DEPRECATED: Use datacenter notification settings instead.\nControl how often the daily update job should send out notifications:\n* 'auto' daily for systems with a valid subscription, as those are assumed to be production-ready and thus should know about pending updates.\n* 'always' every update, if there are new pending updates.\n* 'never' never send a notification for new pending updates.\n"
12695 },
12696 "replication" : {
12697 "description" : "UNUSED - Use datacenter notification settings instead.",
12698 "enum" : [
12699 "always",
12700 "never"
12701 ],
12702 "optional" : 1,
12703 "type" : "string"
12704 },
12705 "target-fencing" : {
12706 "description" : "UNUSED - Use datacenter notification settings instead.",
12707 "format_description" : "TARGET",
12708 "optional" : 1,
12709 "type" : "string"
12710 },
12711 "target-package-updates" : {
12712 "description" : "UNUSED - Use datacenter notification settings instead.",
12713 "format_description" : "TARGET",
12714 "optional" : 1,
12715 "type" : "string"
12716 },
12717 "target-replication" : {
12718 "description" : "UNUSED - Use datacenter notification settings instead.",
12719 "format_description" : "TARGET",
12720 "optional" : 1,
12721 "type" : "string"
12722 }
12723 },
12724 "optional" : 1,
12725 "type" : "string",
12726 "typetext" : "[fencing=<always|never>] [,package-updates=<auto|always|never>] [,replication=<always|never>] [,target-fencing=<TARGET>] [,target-package-updates=<TARGET>] [,target-replication=<TARGET>]"
12727 },
12728 "registered-tags" : {
12729 "description" : "A list of tags that require a `Sys.Modify` on '/' to set and delete. Tags set here that are also in 'user-tag-access' also require `Sys.Modify`.",
12730 "optional" : 1,
12731 "pattern" : "(?:(?^i:[a-z0-9_][a-z0-9_\\-\\+\\.]*);)*(?^i:[a-z0-9_][a-z0-9_\\-\\+\\.]*)",
12732 "type" : "string",
12733 "typetext" : "<tag>[;<tag>...]"
12734 },
12735 "tag-style" : {
12736 "description" : "Tag style options.",
12737 "format" : {
12738 "case-sensitive" : {
12739 "default" : 0,
12740 "description" : "Controls if filtering for unique tags on update should check case-sensitive.",
12741 "optional" : 1,
12742 "type" : "boolean"
12743 },
12744 "color-map" : {
12745 "description" : "Manual color mapping for tags (semicolon separated).",
12746 "optional" : 1,
12747 "pattern" : "(?:(?^i:[a-z0-9_][a-z0-9_\\-\\+\\.]*):[0-9a-fA-F]{6}(?::[0-9a-fA-F]{6})?)(?:;(?:(?^i:[a-z0-9_][a-z0-9_\\-\\+\\.]*):[0-9a-fA-F]{6}(?::[0-9a-fA-F]{6})?))*",
12748 "type" : "string",
12749 "typetext" : "<tag>:<hex-color>[:<hex-color-for-text>][;<tag>=...]"
12750 },
12751 "ordering" : {
12752 "default" : "alphabetical",
12753 "description" : "Controls the sorting of the tags in the web-interface and the API update.",
12754 "enum" : [
12755 "config",
12756 "alphabetical"
12757 ],
12758 "optional" : 1,
12759 "type" : "string"
12760 },
12761 "shape" : {
12762 "default" : "circle",
12763 "description" : "Tag shape for the web ui tree. 'full' draws the full tag. 'circle' draws only a circle with the background color. 'dense' only draws a small rectancle (useful when many tags are assigned to each guest).'none' disables showing the tags.",
12764 "enum" : [
12765 "full",
12766 "circle",
12767 "dense",
12768 "none"
12769 ],
12770 "optional" : 1,
12771 "type" : "string"
12772 }
12773 },
12774 "optional" : 1,
12775 "type" : "string",
12776 "typetext" : "[case-sensitive=<1|0>] [,color-map=<tag>:<hex-color>[:<hex-color-for-text>][;<tag>=...]] [,ordering=<config|alphabetical>] [,shape=<enum>]"
12777 },
12778 "u2f" : {
12779 "description" : "u2f",
12780 "format" : {
12781 "appid" : {
12782 "description" : "U2F AppId URL override. Defaults to the origin.",
12783 "format_description" : "APPID",
12784 "optional" : 1,
12785 "type" : "string"
12786 },
12787 "origin" : {
12788 "description" : "U2F Origin override. Mostly useful for single nodes with a single URL.",
12789 "format_description" : "URL",
12790 "optional" : 1,
12791 "type" : "string"
12792 }
12793 },
12794 "optional" : 1,
12795 "type" : "string",
12796 "typetext" : "[appid=<APPID>] [,origin=<URL>]"
12797 },
12798 "user-tag-access" : {
12799 "description" : "Privilege options for user-settable tags",
12800 "format" : {
12801 "user-allow" : {
12802 "default" : "free",
12803 "description" : "Controls tag usage for users without `Sys.Modify` on `/` by either allowing `none`, a `list`, already `existing` or anything (`free`).",
12804 "enum" : [
12805 "none",
12806 "list",
12807 "existing",
12808 "free"
12809 ],
12810 "optional" : 1,
12811 "type" : "string",
12812 "verbose_description" : "Controls which tags can be set or deleted on resources a user controls (such as guests). Users with the `Sys.Modify` privilege on `/` are alwaysunrestricted.\n* 'none' no tags are usable.\n* 'list' tags from 'user-allow-list' are usable.\n* 'existing' like list, but already existing tags of resources are also usable.\n* 'free' no tag restrictions.\n"
12813 },
12814 "user-allow-list" : {
12815 "description" : "List of tags users are allowed to set and delete (semicolon separated) for 'user-allow' values 'list' and 'existing'.",
12816 "optional" : 1,
12817 "pattern" : "(?^i:[a-z0-9_][a-z0-9_\\-\\+\\.]*)(?:;(?^i:[a-z0-9_][a-z0-9_\\-\\+\\.]*))*",
12818 "type" : "string",
12819 "typetext" : "<tag>[;<tag>...]"
12820 }
12821 },
12822 "optional" : 1,
12823 "type" : "string",
12824 "typetext" : "[user-allow=<enum>] [,user-allow-list=<tag>[;<tag>...]]"
12825 },
12826 "webauthn" : {
12827 "description" : "webauthn configuration",
12828 "format" : {
12829 "allow-subdomains" : {
12830 "default" : 1,
12831 "description" : "Whether to allow the origin to be a subdomain, rather than the exact URL.",
12832 "optional" : 1,
12833 "type" : "boolean"
12834 },
12835 "id" : {
12836 "description" : "Relying party ID. Must be the domain name without protocol, port or location. Changing this *will* break existing credentials.",
12837 "format_description" : "DOMAINNAME",
12838 "optional" : 1,
12839 "type" : "string"
12840 },
12841 "origin" : {
12842 "description" : "Site origin. Must be a `https://` URL (or `http://localhost`). Should contain the address users type in their browsers to access the web interface. Changing this *may* break existing credentials.",
12843 "format_description" : "URL",
12844 "optional" : 1,
12845 "type" : "string"
12846 },
12847 "rp" : {
12848 "description" : "Relying party name. Any text identifier. Changing this *may* break existing credentials.",
12849 "format_description" : "RELYING_PARTY",
12850 "optional" : 1,
12851 "type" : "string"
12852 }
12853 },
12854 "optional" : 1,
12855 "type" : "string",
12856 "typetext" : "[allow-subdomains=<1|0>] [,id=<DOMAINNAME>] [,origin=<URL>] [,rp=<RELYING_PARTY>]"
12857 }
12858 }
12859 },
12860 "permissions" : {
12861 "check" : [
12862 "perm",
12863 "/",
12864 [
12865 "Sys.Modify"
12866 ]
12867 ]
12868 },
12869 "protected" : 1,
12870 "returns" : {
12871 "type" : "null"
12872 }
12873 }
12874 },
12875 "leaf" : 1,
12876 "path" : "/cluster/options",
12877 "text" : "options"
12878 },
12879 {
12880 "info" : {
12881 "GET" : {
12882 "allowtoken" : 1,
12883 "description" : "Get cluster status information.",
12884 "method" : "GET",
12885 "name" : "get_status",
12886 "parameters" : {
12887 "additionalProperties" : 0
12888 },
12889 "permissions" : {
12890 "check" : [
12891 "perm",
12892 "/",
12893 [
12894 "Sys.Audit"
12895 ]
12896 ]
12897 },
12898 "protected" : 1,
12899 "returns" : {
12900 "items" : {
12901 "properties" : {
12902 "id" : {
12903 "type" : "string"
12904 },
12905 "ip" : {
12906 "description" : "[node] IP of the resolved nodename.",
12907 "optional" : 1,
12908 "type" : "string"
12909 },
12910 "level" : {
12911 "description" : "[node] Proxmox VE Subscription level, indicates if eligible for enterprise support as well as access to the stable Proxmox VE Enterprise Repository.",
12912 "optional" : 1,
12913 "type" : "string"
12914 },
12915 "local" : {
12916 "description" : "[node] Indicates if this is the responding node.",
12917 "optional" : 1,
12918 "type" : "boolean"
12919 },
12920 "name" : {
12921 "type" : "string"
12922 },
12923 "nodeid" : {
12924 "description" : "[node] ID of the node from the corosync configuration.",
12925 "optional" : 1,
12926 "type" : "integer"
12927 },
12928 "nodes" : {
12929 "description" : "[cluster] Nodes count, including offline nodes.",
12930 "optional" : 1,
12931 "type" : "integer"
12932 },
12933 "online" : {
12934 "description" : "[node] Indicates if the node is online or offline.",
12935 "optional" : 1,
12936 "type" : "boolean"
12937 },
12938 "quorate" : {
12939 "description" : "[cluster] Indicates if there is a majority of nodes online to make decisions",
12940 "optional" : 1,
12941 "type" : "boolean"
12942 },
12943 "type" : {
12944 "description" : "Indicates the type, either cluster or node. The type defines the object properties e.g. quorate available for type cluster.",
12945 "enum" : [
12946 "cluster",
12947 "node"
12948 ],
12949 "type" : "string"
12950 },
12951 "version" : {
12952 "description" : "[cluster] Current version of the corosync configuration file.",
12953 "optional" : 1,
12954 "type" : "integer"
12955 }
12956 },
12957 "type" : "object"
12958 },
12959 "type" : "array"
12960 }
12961 }
12962 },
12963 "leaf" : 1,
12964 "path" : "/cluster/status",
12965 "text" : "status"
12966 },
12967 {
12968 "info" : {
12969 "GET" : {
12970 "allowtoken" : 1,
12971 "description" : "Get next free VMID. Pass a VMID to assert that its free (at time of check).",
12972 "method" : "GET",
12973 "name" : "nextid",
12974 "parameters" : {
12975 "additionalProperties" : 0,
12976 "properties" : {
12977 "vmid" : {
12978 "description" : "The (unique) ID of the VM.",
12979 "format" : "pve-vmid",
12980 "maximum" : 999999999,
12981 "minimum" : 100,
12982 "optional" : 1,
12983 "type" : "integer",
12984 "typetext" : "<integer> (100 - 999999999)"
12985 }
12986 }
12987 },
12988 "permissions" : {
12989 "user" : "all"
12990 },
12991 "returns" : {
12992 "description" : "The next free VMID.",
12993 "type" : "integer"
12994 }
12995 }
12996 },
12997 "leaf" : 1,
12998 "path" : "/cluster/nextid",
12999 "text" : "nextid"
13000 }
13001 ],
13002 "info" : {
13003 "GET" : {
13004 "allowtoken" : 1,
13005 "description" : "Cluster index.",
13006 "method" : "GET",
13007 "name" : "index",
13008 "parameters" : {
13009 "additionalProperties" : 0
13010 },
13011 "permissions" : {
13012 "user" : "all"
13013 },
13014 "returns" : {
13015 "items" : {
13016 "properties" : {},
13017 "type" : "object"
13018 },
13019 "links" : [
13020 {
13021 "href" : "{name}",
13022 "rel" : "child"
13023 }
13024 ],
13025 "type" : "array"
13026 }
13027 }
13028 },
13029 "leaf" : 0,
13030 "path" : "/cluster",
13031 "text" : "cluster"
13032 },
13033 {
13034 "children" : [
13035 {
13036 "children" : [
13037 {
13038 "children" : [
13039 {
13040 "children" : [
13041 {
13042 "children" : [
13043 {
13044 "children" : [
13045 {
13046 "info" : {
13047 "DELETE" : {
13048 "allowtoken" : 1,
13049 "description" : "Delete rule.",
13050 "method" : "DELETE",
13051 "name" : "delete_rule",
13052 "parameters" : {
13053 "additionalProperties" : 0,
13054 "properties" : {
13055 "digest" : {
13056 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
13057 "maxLength" : 64,
13058 "optional" : 1,
13059 "type" : "string",
13060 "typetext" : "<string>"
13061 },
13062 "node" : {
13063 "description" : "The cluster node name.",
13064 "format" : "pve-node",
13065 "type" : "string",
13066 "typetext" : "<string>"
13067 },
13068 "pos" : {
13069 "description" : "Update rule at position <pos>.",
13070 "minimum" : 0,
13071 "optional" : 1,
13072 "type" : "integer",
13073 "typetext" : "<integer> (0 - N)"
13074 },
13075 "vmid" : {
13076 "description" : "The (unique) ID of the VM.",
13077 "format" : "pve-vmid",
13078 "maximum" : 999999999,
13079 "minimum" : 100,
13080 "type" : "integer",
13081 "typetext" : "<integer> (100 - 999999999)"
13082 }
13083 }
13084 },
13085 "permissions" : {
13086 "check" : [
13087 "perm",
13088 "/vms/{vmid}",
13089 [
13090 "VM.Config.Network"
13091 ]
13092 ]
13093 },
13094 "protected" : 1,
13095 "proxyto" : null,
13096 "returns" : {
13097 "type" : "null"
13098 }
13099 },
13100 "GET" : {
13101 "allowtoken" : 1,
13102 "description" : "Get single rule data.",
13103 "method" : "GET",
13104 "name" : "get_rule",
13105 "parameters" : {
13106 "additionalProperties" : 0,
13107 "properties" : {
13108 "node" : {
13109 "description" : "The cluster node name.",
13110 "format" : "pve-node",
13111 "type" : "string",
13112 "typetext" : "<string>"
13113 },
13114 "pos" : {
13115 "description" : "Update rule at position <pos>.",
13116 "minimum" : 0,
13117 "optional" : 1,
13118 "type" : "integer",
13119 "typetext" : "<integer> (0 - N)"
13120 },
13121 "vmid" : {
13122 "description" : "The (unique) ID of the VM.",
13123 "format" : "pve-vmid",
13124 "maximum" : 999999999,
13125 "minimum" : 100,
13126 "type" : "integer",
13127 "typetext" : "<integer> (100 - 999999999)"
13128 }
13129 }
13130 },
13131 "permissions" : {
13132 "check" : [
13133 "perm",
13134 "/vms/{vmid}",
13135 [
13136 "VM.Audit"
13137 ]
13138 ]
13139 },
13140 "proxyto" : null,
13141 "returns" : {
13142 "properties" : {
13143 "action" : {
13144 "type" : "string"
13145 },
13146 "comment" : {
13147 "optional" : 1,
13148 "type" : "string"
13149 },
13150 "dest" : {
13151 "optional" : 1,
13152 "type" : "string"
13153 },
13154 "dport" : {
13155 "optional" : 1,
13156 "type" : "string"
13157 },
13158 "enable" : {
13159 "optional" : 1,
13160 "type" : "integer"
13161 },
13162 "icmp-type" : {
13163 "optional" : 1,
13164 "type" : "string"
13165 },
13166 "iface" : {
13167 "optional" : 1,
13168 "type" : "string"
13169 },
13170 "ipversion" : {
13171 "optional" : 1,
13172 "type" : "integer"
13173 },
13174 "log" : {
13175 "description" : "Log level for firewall rule",
13176 "enum" : [
13177 "emerg",
13178 "alert",
13179 "crit",
13180 "err",
13181 "warning",
13182 "notice",
13183 "info",
13184 "debug",
13185 "nolog"
13186 ],
13187 "optional" : 1,
13188 "type" : "string"
13189 },
13190 "macro" : {
13191 "optional" : 1,
13192 "type" : "string"
13193 },
13194 "pos" : {
13195 "type" : "integer"
13196 },
13197 "proto" : {
13198 "optional" : 1,
13199 "type" : "string"
13200 },
13201 "source" : {
13202 "optional" : 1,
13203 "type" : "string"
13204 },
13205 "sport" : {
13206 "optional" : 1,
13207 "type" : "string"
13208 },
13209 "type" : {
13210 "type" : "string"
13211 }
13212 },
13213 "type" : "object"
13214 }
13215 },
13216 "PUT" : {
13217 "allowtoken" : 1,
13218 "description" : "Modify rule data.",
13219 "method" : "PUT",
13220 "name" : "update_rule",
13221 "parameters" : {
13222 "additionalProperties" : 0,
13223 "properties" : {
13224 "action" : {
13225 "description" : "Rule action ('ACCEPT', 'DROP', 'REJECT') or security group name.",
13226 "maxLength" : 20,
13227 "minLength" : 2,
13228 "optional" : 1,
13229 "pattern" : "[A-Za-z][A-Za-z0-9\\-\\_]+",
13230 "type" : "string"
13231 },
13232 "comment" : {
13233 "description" : "Descriptive comment.",
13234 "optional" : 1,
13235 "type" : "string",
13236 "typetext" : "<string>"
13237 },
13238 "delete" : {
13239 "description" : "A list of settings you want to delete.",
13240 "format" : "pve-configid-list",
13241 "optional" : 1,
13242 "type" : "string",
13243 "typetext" : "<string>"
13244 },
13245 "dest" : {
13246 "description" : "Restrict packet destination address. This can refer to a single IP address, an IP set ('+ipsetname') or an IP alias definition. You can also specify an address range like '20.34.101.207-201.3.9.99', or a list of IP addresses and networks (entries are separated by comma). Please do not mix IPv4 and IPv6 addresses inside such lists.",
13247 "format" : "pve-fw-addr-spec",
13248 "maxLength" : 512,
13249 "optional" : 1,
13250 "type" : "string",
13251 "typetext" : "<string>"
13252 },
13253 "digest" : {
13254 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
13255 "maxLength" : 64,
13256 "optional" : 1,
13257 "type" : "string",
13258 "typetext" : "<string>"
13259 },
13260 "dport" : {
13261 "description" : "Restrict TCP/UDP destination port. You can use service names or simple numbers (0-65535), as defined in '/etc/services'. Port ranges can be specified with '\\d+:\\d+', for example '80:85', and you can use comma separated list to match several ports or ranges.",
13262 "format" : "pve-fw-dport-spec",
13263 "optional" : 1,
13264 "type" : "string",
13265 "typetext" : "<string>"
13266 },
13267 "enable" : {
13268 "description" : "Flag to enable/disable a rule.",
13269 "minimum" : 0,
13270 "optional" : 1,
13271 "type" : "integer",
13272 "typetext" : "<integer> (0 - N)"
13273 },
13274 "icmp-type" : {
13275 "description" : "Specify icmp-type. Only valid if proto equals 'icmp' or 'icmpv6'/'ipv6-icmp'.",
13276 "format" : "pve-fw-icmp-type-spec",
13277 "optional" : 1,
13278 "type" : "string",
13279 "typetext" : "<string>"
13280 },
13281 "iface" : {
13282 "description" : "Network interface name. You have to use network configuration key names for VMs and containers ('net\\d+'). Host related rules can use arbitrary strings.",
13283 "format" : "pve-iface",
13284 "maxLength" : 20,
13285 "minLength" : 2,
13286 "optional" : 1,
13287 "type" : "string",
13288 "typetext" : "<string>"
13289 },
13290 "log" : {
13291 "description" : "Log level for firewall rule.",
13292 "enum" : [
13293 "emerg",
13294 "alert",
13295 "crit",
13296 "err",
13297 "warning",
13298 "notice",
13299 "info",
13300 "debug",
13301 "nolog"
13302 ],
13303 "optional" : 1,
13304 "type" : "string"
13305 },
13306 "macro" : {
13307 "description" : "Use predefined standard macro.",
13308 "maxLength" : 128,
13309 "optional" : 1,
13310 "type" : "string",
13311 "typetext" : "<string>"
13312 },
13313 "moveto" : {
13314 "description" : "Move rule to new position <moveto>. Other arguments are ignored.",
13315 "minimum" : 0,
13316 "optional" : 1,
13317 "type" : "integer",
13318 "typetext" : "<integer> (0 - N)"
13319 },
13320 "node" : {
13321 "description" : "The cluster node name.",
13322 "format" : "pve-node",
13323 "type" : "string",
13324 "typetext" : "<string>"
13325 },
13326 "pos" : {
13327 "description" : "Update rule at position <pos>.",
13328 "minimum" : 0,
13329 "optional" : 1,
13330 "type" : "integer",
13331 "typetext" : "<integer> (0 - N)"
13332 },
13333 "proto" : {
13334 "description" : "IP protocol. You can use protocol names ('tcp'/'udp') or simple numbers, as defined in '/etc/protocols'.",
13335 "format" : "pve-fw-protocol-spec",
13336 "optional" : 1,
13337 "type" : "string",
13338 "typetext" : "<string>"
13339 },
13340 "source" : {
13341 "description" : "Restrict packet source address. This can refer to a single IP address, an IP set ('+ipsetname') or an IP alias definition. You can also specify an address range like '20.34.101.207-201.3.9.99', or a list of IP addresses and networks (entries are separated by comma). Please do not mix IPv4 and IPv6 addresses inside such lists.",
13342 "format" : "pve-fw-addr-spec",
13343 "maxLength" : 512,
13344 "optional" : 1,
13345 "type" : "string",
13346 "typetext" : "<string>"
13347 },
13348 "sport" : {
13349 "description" : "Restrict TCP/UDP source port. You can use service names or simple numbers (0-65535), as defined in '/etc/services'. Port ranges can be specified with '\\d+:\\d+', for example '80:85', and you can use comma separated list to match several ports or ranges.",
13350 "format" : "pve-fw-sport-spec",
13351 "optional" : 1,
13352 "type" : "string",
13353 "typetext" : "<string>"
13354 },
13355 "type" : {
13356 "description" : "Rule type.",
13357 "enum" : [
13358 "in",
13359 "out",
13360 "group"
13361 ],
13362 "optional" : 1,
13363 "type" : "string"
13364 },
13365 "vmid" : {
13366 "description" : "The (unique) ID of the VM.",
13367 "format" : "pve-vmid",
13368 "maximum" : 999999999,
13369 "minimum" : 100,
13370 "type" : "integer",
13371 "typetext" : "<integer> (100 - 999999999)"
13372 }
13373 }
13374 },
13375 "permissions" : {
13376 "check" : [
13377 "perm",
13378 "/vms/{vmid}",
13379 [
13380 "VM.Config.Network"
13381 ]
13382 ]
13383 },
13384 "protected" : 1,
13385 "proxyto" : null,
13386 "returns" : {
13387 "type" : "null"
13388 }
13389 }
13390 },
13391 "leaf" : 1,
13392 "path" : "/nodes/{node}/qemu/{vmid}/firewall/rules/{pos}",
13393 "text" : "{pos}"
13394 }
13395 ],
13396 "info" : {
13397 "GET" : {
13398 "allowtoken" : 1,
13399 "description" : "List rules.",
13400 "method" : "GET",
13401 "name" : "get_rules",
13402 "parameters" : {
13403 "additionalProperties" : 0,
13404 "properties" : {
13405 "node" : {
13406 "description" : "The cluster node name.",
13407 "format" : "pve-node",
13408 "type" : "string",
13409 "typetext" : "<string>"
13410 },
13411 "vmid" : {
13412 "description" : "The (unique) ID of the VM.",
13413 "format" : "pve-vmid",
13414 "maximum" : 999999999,
13415 "minimum" : 100,
13416 "type" : "integer",
13417 "typetext" : "<integer> (100 - 999999999)"
13418 }
13419 }
13420 },
13421 "permissions" : {
13422 "check" : [
13423 "perm",
13424 "/vms/{vmid}",
13425 [
13426 "VM.Audit"
13427 ]
13428 ]
13429 },
13430 "proxyto" : null,
13431 "returns" : {
13432 "items" : {
13433 "properties" : {
13434 "pos" : {
13435 "type" : "integer"
13436 }
13437 },
13438 "type" : "object"
13439 },
13440 "links" : [
13441 {
13442 "href" : "{pos}",
13443 "rel" : "child"
13444 }
13445 ],
13446 "type" : "array"
13447 }
13448 },
13449 "POST" : {
13450 "allowtoken" : 1,
13451 "description" : "Create new rule.",
13452 "method" : "POST",
13453 "name" : "create_rule",
13454 "parameters" : {
13455 "additionalProperties" : 0,
13456 "properties" : {
13457 "action" : {
13458 "description" : "Rule action ('ACCEPT', 'DROP', 'REJECT') or security group name.",
13459 "maxLength" : 20,
13460 "minLength" : 2,
13461 "optional" : 0,
13462 "pattern" : "[A-Za-z][A-Za-z0-9\\-\\_]+",
13463 "type" : "string"
13464 },
13465 "comment" : {
13466 "description" : "Descriptive comment.",
13467 "optional" : 1,
13468 "type" : "string",
13469 "typetext" : "<string>"
13470 },
13471 "dest" : {
13472 "description" : "Restrict packet destination address. This can refer to a single IP address, an IP set ('+ipsetname') or an IP alias definition. You can also specify an address range like '20.34.101.207-201.3.9.99', or a list of IP addresses and networks (entries are separated by comma). Please do not mix IPv4 and IPv6 addresses inside such lists.",
13473 "format" : "pve-fw-addr-spec",
13474 "maxLength" : 512,
13475 "optional" : 1,
13476 "type" : "string",
13477 "typetext" : "<string>"
13478 },
13479 "digest" : {
13480 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
13481 "maxLength" : 64,
13482 "optional" : 1,
13483 "type" : "string",
13484 "typetext" : "<string>"
13485 },
13486 "dport" : {
13487 "description" : "Restrict TCP/UDP destination port. You can use service names or simple numbers (0-65535), as defined in '/etc/services'. Port ranges can be specified with '\\d+:\\d+', for example '80:85', and you can use comma separated list to match several ports or ranges.",
13488 "format" : "pve-fw-dport-spec",
13489 "optional" : 1,
13490 "type" : "string",
13491 "typetext" : "<string>"
13492 },
13493 "enable" : {
13494 "description" : "Flag to enable/disable a rule.",
13495 "minimum" : 0,
13496 "optional" : 1,
13497 "type" : "integer",
13498 "typetext" : "<integer> (0 - N)"
13499 },
13500 "icmp-type" : {
13501 "description" : "Specify icmp-type. Only valid if proto equals 'icmp' or 'icmpv6'/'ipv6-icmp'.",
13502 "format" : "pve-fw-icmp-type-spec",
13503 "optional" : 1,
13504 "type" : "string",
13505 "typetext" : "<string>"
13506 },
13507 "iface" : {
13508 "description" : "Network interface name. You have to use network configuration key names for VMs and containers ('net\\d+'). Host related rules can use arbitrary strings.",
13509 "format" : "pve-iface",
13510 "maxLength" : 20,
13511 "minLength" : 2,
13512 "optional" : 1,
13513 "type" : "string",
13514 "typetext" : "<string>"
13515 },
13516 "log" : {
13517 "description" : "Log level for firewall rule.",
13518 "enum" : [
13519 "emerg",
13520 "alert",
13521 "crit",
13522 "err",
13523 "warning",
13524 "notice",
13525 "info",
13526 "debug",
13527 "nolog"
13528 ],
13529 "optional" : 1,
13530 "type" : "string"
13531 },
13532 "macro" : {
13533 "description" : "Use predefined standard macro.",
13534 "maxLength" : 128,
13535 "optional" : 1,
13536 "type" : "string",
13537 "typetext" : "<string>"
13538 },
13539 "node" : {
13540 "description" : "The cluster node name.",
13541 "format" : "pve-node",
13542 "type" : "string",
13543 "typetext" : "<string>"
13544 },
13545 "pos" : {
13546 "description" : "Update rule at position <pos>.",
13547 "minimum" : 0,
13548 "optional" : 1,
13549 "type" : "integer",
13550 "typetext" : "<integer> (0 - N)"
13551 },
13552 "proto" : {
13553 "description" : "IP protocol. You can use protocol names ('tcp'/'udp') or simple numbers, as defined in '/etc/protocols'.",
13554 "format" : "pve-fw-protocol-spec",
13555 "optional" : 1,
13556 "type" : "string",
13557 "typetext" : "<string>"
13558 },
13559 "source" : {
13560 "description" : "Restrict packet source address. This can refer to a single IP address, an IP set ('+ipsetname') or an IP alias definition. You can also specify an address range like '20.34.101.207-201.3.9.99', or a list of IP addresses and networks (entries are separated by comma). Please do not mix IPv4 and IPv6 addresses inside such lists.",
13561 "format" : "pve-fw-addr-spec",
13562 "maxLength" : 512,
13563 "optional" : 1,
13564 "type" : "string",
13565 "typetext" : "<string>"
13566 },
13567 "sport" : {
13568 "description" : "Restrict TCP/UDP source port. You can use service names or simple numbers (0-65535), as defined in '/etc/services'. Port ranges can be specified with '\\d+:\\d+', for example '80:85', and you can use comma separated list to match several ports or ranges.",
13569 "format" : "pve-fw-sport-spec",
13570 "optional" : 1,
13571 "type" : "string",
13572 "typetext" : "<string>"
13573 },
13574 "type" : {
13575 "description" : "Rule type.",
13576 "enum" : [
13577 "in",
13578 "out",
13579 "group"
13580 ],
13581 "optional" : 0,
13582 "type" : "string"
13583 },
13584 "vmid" : {
13585 "description" : "The (unique) ID of the VM.",
13586 "format" : "pve-vmid",
13587 "maximum" : 999999999,
13588 "minimum" : 100,
13589 "type" : "integer",
13590 "typetext" : "<integer> (100 - 999999999)"
13591 }
13592 }
13593 },
13594 "permissions" : {
13595 "check" : [
13596 "perm",
13597 "/vms/{vmid}",
13598 [
13599 "VM.Config.Network"
13600 ]
13601 ]
13602 },
13603 "protected" : 1,
13604 "proxyto" : null,
13605 "returns" : {
13606 "type" : "null"
13607 }
13608 }
13609 },
13610 "leaf" : 0,
13611 "path" : "/nodes/{node}/qemu/{vmid}/firewall/rules",
13612 "text" : "rules"
13613 },
13614 {
13615 "children" : [
13616 {
13617 "info" : {
13618 "DELETE" : {
13619 "allowtoken" : 1,
13620 "description" : "Remove IP or Network alias.",
13621 "method" : "DELETE",
13622 "name" : "remove_alias",
13623 "parameters" : {
13624 "additionalProperties" : 0,
13625 "properties" : {
13626 "digest" : {
13627 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
13628 "maxLength" : 64,
13629 "optional" : 1,
13630 "type" : "string",
13631 "typetext" : "<string>"
13632 },
13633 "name" : {
13634 "description" : "Alias name.",
13635 "maxLength" : 64,
13636 "minLength" : 2,
13637 "pattern" : "[A-Za-z][A-Za-z0-9\\-\\_]+",
13638 "type" : "string"
13639 },
13640 "node" : {
13641 "description" : "The cluster node name.",
13642 "format" : "pve-node",
13643 "type" : "string",
13644 "typetext" : "<string>"
13645 },
13646 "vmid" : {
13647 "description" : "The (unique) ID of the VM.",
13648 "format" : "pve-vmid",
13649 "maximum" : 999999999,
13650 "minimum" : 100,
13651 "type" : "integer",
13652 "typetext" : "<integer> (100 - 999999999)"
13653 }
13654 }
13655 },
13656 "permissions" : {
13657 "check" : [
13658 "perm",
13659 "/vms/{vmid}",
13660 [
13661 "VM.Config.Network"
13662 ]
13663 ]
13664 },
13665 "protected" : 1,
13666 "returns" : {
13667 "type" : "null"
13668 }
13669 },
13670 "GET" : {
13671 "allowtoken" : 1,
13672 "description" : "Read alias.",
13673 "method" : "GET",
13674 "name" : "read_alias",
13675 "parameters" : {
13676 "additionalProperties" : 0,
13677 "properties" : {
13678 "name" : {
13679 "description" : "Alias name.",
13680 "maxLength" : 64,
13681 "minLength" : 2,
13682 "pattern" : "[A-Za-z][A-Za-z0-9\\-\\_]+",
13683 "type" : "string"
13684 },
13685 "node" : {
13686 "description" : "The cluster node name.",
13687 "format" : "pve-node",
13688 "type" : "string",
13689 "typetext" : "<string>"
13690 },
13691 "vmid" : {
13692 "description" : "The (unique) ID of the VM.",
13693 "format" : "pve-vmid",
13694 "maximum" : 999999999,
13695 "minimum" : 100,
13696 "type" : "integer",
13697 "typetext" : "<integer> (100 - 999999999)"
13698 }
13699 }
13700 },
13701 "permissions" : {
13702 "check" : [
13703 "perm",
13704 "/vms/{vmid}",
13705 [
13706 "VM.Audit"
13707 ]
13708 ]
13709 },
13710 "returns" : {
13711 "type" : "object"
13712 }
13713 },
13714 "PUT" : {
13715 "allowtoken" : 1,
13716 "description" : "Update IP or Network alias.",
13717 "method" : "PUT",
13718 "name" : "update_alias",
13719 "parameters" : {
13720 "additionalProperties" : 0,
13721 "properties" : {
13722 "cidr" : {
13723 "description" : "Network/IP specification in CIDR format.",
13724 "format" : "IPorCIDR",
13725 "type" : "string",
13726 "typetext" : "<string>"
13727 },
13728 "comment" : {
13729 "optional" : 1,
13730 "type" : "string",
13731 "typetext" : "<string>"
13732 },
13733 "digest" : {
13734 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
13735 "maxLength" : 64,
13736 "optional" : 1,
13737 "type" : "string",
13738 "typetext" : "<string>"
13739 },
13740 "name" : {
13741 "description" : "Alias name.",
13742 "maxLength" : 64,
13743 "minLength" : 2,
13744 "pattern" : "[A-Za-z][A-Za-z0-9\\-\\_]+",
13745 "type" : "string"
13746 },
13747 "node" : {
13748 "description" : "The cluster node name.",
13749 "format" : "pve-node",
13750 "type" : "string",
13751 "typetext" : "<string>"
13752 },
13753 "rename" : {
13754 "description" : "Rename an existing alias.",
13755 "maxLength" : 64,
13756 "minLength" : 2,
13757 "optional" : 1,
13758 "pattern" : "[A-Za-z][A-Za-z0-9\\-\\_]+",
13759 "type" : "string"
13760 },
13761 "vmid" : {
13762 "description" : "The (unique) ID of the VM.",
13763 "format" : "pve-vmid",
13764 "maximum" : 999999999,
13765 "minimum" : 100,
13766 "type" : "integer",
13767 "typetext" : "<integer> (100 - 999999999)"
13768 }
13769 }
13770 },
13771 "permissions" : {
13772 "check" : [
13773 "perm",
13774 "/vms/{vmid}",
13775 [
13776 "VM.Config.Network"
13777 ]
13778 ]
13779 },
13780 "protected" : 1,
13781 "returns" : {
13782 "type" : "null"
13783 }
13784 }
13785 },
13786 "leaf" : 1,
13787 "path" : "/nodes/{node}/qemu/{vmid}/firewall/aliases/{name}",
13788 "text" : "{name}"
13789 }
13790 ],
13791 "info" : {
13792 "GET" : {
13793 "allowtoken" : 1,
13794 "description" : "List aliases",
13795 "method" : "GET",
13796 "name" : "get_aliases",
13797 "parameters" : {
13798 "additionalProperties" : 0,
13799 "properties" : {
13800 "node" : {
13801 "description" : "The cluster node name.",
13802 "format" : "pve-node",
13803 "type" : "string",
13804 "typetext" : "<string>"
13805 },
13806 "vmid" : {
13807 "description" : "The (unique) ID of the VM.",
13808 "format" : "pve-vmid",
13809 "maximum" : 999999999,
13810 "minimum" : 100,
13811 "type" : "integer",
13812 "typetext" : "<integer> (100 - 999999999)"
13813 }
13814 }
13815 },
13816 "permissions" : {
13817 "check" : [
13818 "perm",
13819 "/vms/{vmid}",
13820 [
13821 "VM.Audit"
13822 ]
13823 ]
13824 },
13825 "returns" : {
13826 "items" : {
13827 "properties" : {
13828 "cidr" : {
13829 "type" : "string"
13830 },
13831 "comment" : {
13832 "optional" : 1,
13833 "type" : "string"
13834 },
13835 "digest" : {
13836 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
13837 "maxLength" : 64,
13838 "optional" : 0,
13839 "type" : "string"
13840 },
13841 "name" : {
13842 "type" : "string"
13843 }
13844 },
13845 "type" : "object"
13846 },
13847 "links" : [
13848 {
13849 "href" : "{name}",
13850 "rel" : "child"
13851 }
13852 ],
13853 "type" : "array"
13854 }
13855 },
13856 "POST" : {
13857 "allowtoken" : 1,
13858 "description" : "Create IP or Network Alias.",
13859 "method" : "POST",
13860 "name" : "create_alias",
13861 "parameters" : {
13862 "additionalProperties" : 0,
13863 "properties" : {
13864 "cidr" : {
13865 "description" : "Network/IP specification in CIDR format.",
13866 "format" : "IPorCIDR",
13867 "type" : "string",
13868 "typetext" : "<string>"
13869 },
13870 "comment" : {
13871 "optional" : 1,
13872 "type" : "string",
13873 "typetext" : "<string>"
13874 },
13875 "name" : {
13876 "description" : "Alias name.",
13877 "maxLength" : 64,
13878 "minLength" : 2,
13879 "pattern" : "[A-Za-z][A-Za-z0-9\\-\\_]+",
13880 "type" : "string"
13881 },
13882 "node" : {
13883 "description" : "The cluster node name.",
13884 "format" : "pve-node",
13885 "type" : "string",
13886 "typetext" : "<string>"
13887 },
13888 "vmid" : {
13889 "description" : "The (unique) ID of the VM.",
13890 "format" : "pve-vmid",
13891 "maximum" : 999999999,
13892 "minimum" : 100,
13893 "type" : "integer",
13894 "typetext" : "<integer> (100 - 999999999)"
13895 }
13896 }
13897 },
13898 "permissions" : {
13899 "check" : [
13900 "perm",
13901 "/vms/{vmid}",
13902 [
13903 "VM.Config.Network"
13904 ]
13905 ]
13906 },
13907 "protected" : 1,
13908 "returns" : {
13909 "type" : "null"
13910 }
13911 }
13912 },
13913 "leaf" : 0,
13914 "path" : "/nodes/{node}/qemu/{vmid}/firewall/aliases",
13915 "text" : "aliases"
13916 },
13917 {
13918 "children" : [
13919 {
13920 "children" : [
13921 {
13922 "info" : {
13923 "DELETE" : {
13924 "allowtoken" : 1,
13925 "description" : "Remove IP or Network from IPSet.",
13926 "method" : "DELETE",
13927 "name" : "remove_ip",
13928 "parameters" : {
13929 "additionalProperties" : 0,
13930 "properties" : {
13931 "cidr" : {
13932 "description" : "Network/IP specification in CIDR format.",
13933 "format" : "IPorCIDRorAlias",
13934 "type" : "string",
13935 "typetext" : "<string>"
13936 },
13937 "digest" : {
13938 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
13939 "maxLength" : 64,
13940 "optional" : 1,
13941 "type" : "string",
13942 "typetext" : "<string>"
13943 },
13944 "name" : {
13945 "description" : "IP set name.",
13946 "maxLength" : 64,
13947 "minLength" : 2,
13948 "pattern" : "[A-Za-z][A-Za-z0-9\\-\\_]+",
13949 "type" : "string"
13950 },
13951 "node" : {
13952 "description" : "The cluster node name.",
13953 "format" : "pve-node",
13954 "type" : "string",
13955 "typetext" : "<string>"
13956 },
13957 "vmid" : {
13958 "description" : "The (unique) ID of the VM.",
13959 "format" : "pve-vmid",
13960 "maximum" : 999999999,
13961 "minimum" : 100,
13962 "type" : "integer",
13963 "typetext" : "<integer> (100 - 999999999)"
13964 }
13965 }
13966 },
13967 "permissions" : {
13968 "check" : [
13969 "perm",
13970 "/vms/{vmid}",
13971 [
13972 "VM.Config.Network"
13973 ]
13974 ]
13975 },
13976 "protected" : 1,
13977 "returns" : {
13978 "type" : "null"
13979 }
13980 },
13981 "GET" : {
13982 "allowtoken" : 1,
13983 "description" : "Read IP or Network settings from IPSet.",
13984 "method" : "GET",
13985 "name" : "read_ip",
13986 "parameters" : {
13987 "additionalProperties" : 0,
13988 "properties" : {
13989 "cidr" : {
13990 "description" : "Network/IP specification in CIDR format.",
13991 "format" : "IPorCIDRorAlias",
13992 "type" : "string",
13993 "typetext" : "<string>"
13994 },
13995 "name" : {
13996 "description" : "IP set name.",
13997 "maxLength" : 64,
13998 "minLength" : 2,
13999 "pattern" : "[A-Za-z][A-Za-z0-9\\-\\_]+",
14000 "type" : "string"
14001 },
14002 "node" : {
14003 "description" : "The cluster node name.",
14004 "format" : "pve-node",
14005 "type" : "string",
14006 "typetext" : "<string>"
14007 },
14008 "vmid" : {
14009 "description" : "The (unique) ID of the VM.",
14010 "format" : "pve-vmid",
14011 "maximum" : 999999999,
14012 "minimum" : 100,
14013 "type" : "integer",
14014 "typetext" : "<integer> (100 - 999999999)"
14015 }
14016 }
14017 },
14018 "permissions" : {
14019 "check" : [
14020 "perm",
14021 "/vms/{vmid}",
14022 [
14023 "VM.Audit"
14024 ]
14025 ]
14026 },
14027 "protected" : 1,
14028 "returns" : {
14029 "type" : "object"
14030 }
14031 },
14032 "PUT" : {
14033 "allowtoken" : 1,
14034 "description" : "Update IP or Network settings",
14035 "method" : "PUT",
14036 "name" : "update_ip",
14037 "parameters" : {
14038 "additionalProperties" : 0,
14039 "properties" : {
14040 "cidr" : {
14041 "description" : "Network/IP specification in CIDR format.",
14042 "format" : "IPorCIDRorAlias",
14043 "type" : "string",
14044 "typetext" : "<string>"
14045 },
14046 "comment" : {
14047 "optional" : 1,
14048 "type" : "string",
14049 "typetext" : "<string>"
14050 },
14051 "digest" : {
14052 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
14053 "maxLength" : 64,
14054 "optional" : 1,
14055 "type" : "string",
14056 "typetext" : "<string>"
14057 },
14058 "name" : {
14059 "description" : "IP set name.",
14060 "maxLength" : 64,
14061 "minLength" : 2,
14062 "pattern" : "[A-Za-z][A-Za-z0-9\\-\\_]+",
14063 "type" : "string"
14064 },
14065 "node" : {
14066 "description" : "The cluster node name.",
14067 "format" : "pve-node",
14068 "type" : "string",
14069 "typetext" : "<string>"
14070 },
14071 "nomatch" : {
14072 "optional" : 1,
14073 "type" : "boolean",
14074 "typetext" : "<boolean>"
14075 },
14076 "vmid" : {
14077 "description" : "The (unique) ID of the VM.",
14078 "format" : "pve-vmid",
14079 "maximum" : 999999999,
14080 "minimum" : 100,
14081 "type" : "integer",
14082 "typetext" : "<integer> (100 - 999999999)"
14083 }
14084 }
14085 },
14086 "permissions" : {
14087 "check" : [
14088 "perm",
14089 "/vms/{vmid}",
14090 [
14091 "VM.Config.Network"
14092 ]
14093 ]
14094 },
14095 "protected" : 1,
14096 "returns" : {
14097 "type" : "null"
14098 }
14099 }
14100 },
14101 "leaf" : 1,
14102 "path" : "/nodes/{node}/qemu/{vmid}/firewall/ipset/{name}/{cidr}",
14103 "text" : "{cidr}"
14104 }
14105 ],
14106 "info" : {
14107 "DELETE" : {
14108 "allowtoken" : 1,
14109 "description" : "Delete IPSet",
14110 "method" : "DELETE",
14111 "name" : "delete_ipset",
14112 "parameters" : {
14113 "additionalProperties" : 0,
14114 "properties" : {
14115 "force" : {
14116 "description" : "Delete all members of the IPSet, if there are any.",
14117 "optional" : 1,
14118 "type" : "boolean",
14119 "typetext" : "<boolean>"
14120 },
14121 "name" : {
14122 "description" : "IP set name.",
14123 "maxLength" : 64,
14124 "minLength" : 2,
14125 "pattern" : "[A-Za-z][A-Za-z0-9\\-\\_]+",
14126 "type" : "string"
14127 },
14128 "node" : {
14129 "description" : "The cluster node name.",
14130 "format" : "pve-node",
14131 "type" : "string",
14132 "typetext" : "<string>"
14133 },
14134 "vmid" : {
14135 "description" : "The (unique) ID of the VM.",
14136 "format" : "pve-vmid",
14137 "maximum" : 999999999,
14138 "minimum" : 100,
14139 "type" : "integer",
14140 "typetext" : "<integer> (100 - 999999999)"
14141 }
14142 }
14143 },
14144 "permissions" : {
14145 "check" : [
14146 "perm",
14147 "/vms/{vmid}",
14148 [
14149 "VM.Config.Network"
14150 ]
14151 ]
14152 },
14153 "protected" : 1,
14154 "returns" : {
14155 "type" : "null"
14156 }
14157 },
14158 "GET" : {
14159 "allowtoken" : 1,
14160 "description" : "List IPSet content",
14161 "method" : "GET",
14162 "name" : "get_ipset",
14163 "parameters" : {
14164 "additionalProperties" : 0,
14165 "properties" : {
14166 "name" : {
14167 "description" : "IP set name.",
14168 "maxLength" : 64,
14169 "minLength" : 2,
14170 "pattern" : "[A-Za-z][A-Za-z0-9\\-\\_]+",
14171 "type" : "string"
14172 },
14173 "node" : {
14174 "description" : "The cluster node name.",
14175 "format" : "pve-node",
14176 "type" : "string",
14177 "typetext" : "<string>"
14178 },
14179 "vmid" : {
14180 "description" : "The (unique) ID of the VM.",
14181 "format" : "pve-vmid",
14182 "maximum" : 999999999,
14183 "minimum" : 100,
14184 "type" : "integer",
14185 "typetext" : "<integer> (100 - 999999999)"
14186 }
14187 }
14188 },
14189 "permissions" : {
14190 "check" : [
14191 "perm",
14192 "/vms/{vmid}",
14193 [
14194 "VM.Audit"
14195 ]
14196 ]
14197 },
14198 "returns" : {
14199 "items" : {
14200 "properties" : {
14201 "cidr" : {
14202 "type" : "string"
14203 },
14204 "comment" : {
14205 "optional" : 1,
14206 "type" : "string"
14207 },
14208 "digest" : {
14209 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
14210 "maxLength" : 64,
14211 "optional" : 0,
14212 "type" : "string"
14213 },
14214 "nomatch" : {
14215 "optional" : 1,
14216 "type" : "boolean"
14217 }
14218 },
14219 "type" : "object"
14220 },
14221 "links" : [
14222 {
14223 "href" : "{cidr}",
14224 "rel" : "child"
14225 }
14226 ],
14227 "type" : "array"
14228 }
14229 },
14230 "POST" : {
14231 "allowtoken" : 1,
14232 "description" : "Add IP or Network to IPSet.",
14233 "method" : "POST",
14234 "name" : "create_ip",
14235 "parameters" : {
14236 "additionalProperties" : 0,
14237 "properties" : {
14238 "cidr" : {
14239 "description" : "Network/IP specification in CIDR format.",
14240 "format" : "IPorCIDRorAlias",
14241 "type" : "string",
14242 "typetext" : "<string>"
14243 },
14244 "comment" : {
14245 "optional" : 1,
14246 "type" : "string",
14247 "typetext" : "<string>"
14248 },
14249 "name" : {
14250 "description" : "IP set name.",
14251 "maxLength" : 64,
14252 "minLength" : 2,
14253 "pattern" : "[A-Za-z][A-Za-z0-9\\-\\_]+",
14254 "type" : "string"
14255 },
14256 "node" : {
14257 "description" : "The cluster node name.",
14258 "format" : "pve-node",
14259 "type" : "string",
14260 "typetext" : "<string>"
14261 },
14262 "nomatch" : {
14263 "optional" : 1,
14264 "type" : "boolean",
14265 "typetext" : "<boolean>"
14266 },
14267 "vmid" : {
14268 "description" : "The (unique) ID of the VM.",
14269 "format" : "pve-vmid",
14270 "maximum" : 999999999,
14271 "minimum" : 100,
14272 "type" : "integer",
14273 "typetext" : "<integer> (100 - 999999999)"
14274 }
14275 }
14276 },
14277 "permissions" : {
14278 "check" : [
14279 "perm",
14280 "/vms/{vmid}",
14281 [
14282 "VM.Config.Network"
14283 ]
14284 ]
14285 },
14286 "protected" : 1,
14287 "returns" : {
14288 "type" : "null"
14289 }
14290 }
14291 },
14292 "leaf" : 0,
14293 "path" : "/nodes/{node}/qemu/{vmid}/firewall/ipset/{name}",
14294 "text" : "{name}"
14295 }
14296 ],
14297 "info" : {
14298 "GET" : {
14299 "allowtoken" : 1,
14300 "description" : "List IPSets",
14301 "method" : "GET",
14302 "name" : "ipset_index",
14303 "parameters" : {
14304 "additionalProperties" : 0,
14305 "properties" : {
14306 "node" : {
14307 "description" : "The cluster node name.",
14308 "format" : "pve-node",
14309 "type" : "string",
14310 "typetext" : "<string>"
14311 },
14312 "vmid" : {
14313 "description" : "The (unique) ID of the VM.",
14314 "format" : "pve-vmid",
14315 "maximum" : 999999999,
14316 "minimum" : 100,
14317 "type" : "integer",
14318 "typetext" : "<integer> (100 - 999999999)"
14319 }
14320 }
14321 },
14322 "permissions" : {
14323 "check" : [
14324 "perm",
14325 "/vms/{vmid}",
14326 [
14327 "VM.Audit"
14328 ]
14329 ]
14330 },
14331 "returns" : {
14332 "items" : {
14333 "properties" : {
14334 "comment" : {
14335 "optional" : 1,
14336 "type" : "string"
14337 },
14338 "digest" : {
14339 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
14340 "maxLength" : 64,
14341 "optional" : 0,
14342 "type" : "string"
14343 },
14344 "name" : {
14345 "description" : "IP set name.",
14346 "maxLength" : 64,
14347 "minLength" : 2,
14348 "pattern" : "[A-Za-z][A-Za-z0-9\\-\\_]+",
14349 "type" : "string"
14350 }
14351 },
14352 "type" : "object"
14353 },
14354 "links" : [
14355 {
14356 "href" : "{name}",
14357 "rel" : "child"
14358 }
14359 ],
14360 "type" : "array"
14361 }
14362 },
14363 "POST" : {
14364 "allowtoken" : 1,
14365 "description" : "Create new IPSet",
14366 "method" : "POST",
14367 "name" : "create_ipset",
14368 "parameters" : {
14369 "additionalProperties" : 0,
14370 "properties" : {
14371 "comment" : {
14372 "optional" : 1,
14373 "type" : "string",
14374 "typetext" : "<string>"
14375 },
14376 "digest" : {
14377 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
14378 "maxLength" : 64,
14379 "optional" : 1,
14380 "type" : "string",
14381 "typetext" : "<string>"
14382 },
14383 "name" : {
14384 "description" : "IP set name.",
14385 "maxLength" : 64,
14386 "minLength" : 2,
14387 "pattern" : "[A-Za-z][A-Za-z0-9\\-\\_]+",
14388 "type" : "string"
14389 },
14390 "node" : {
14391 "description" : "The cluster node name.",
14392 "format" : "pve-node",
14393 "type" : "string",
14394 "typetext" : "<string>"
14395 },
14396 "rename" : {
14397 "description" : "Rename an existing IPSet. You can set 'rename' to the same value as 'name' to update the 'comment' of an existing IPSet.",
14398 "maxLength" : 64,
14399 "minLength" : 2,
14400 "optional" : 1,
14401 "pattern" : "[A-Za-z][A-Za-z0-9\\-\\_]+",
14402 "type" : "string"
14403 },
14404 "vmid" : {
14405 "description" : "The (unique) ID of the VM.",
14406 "format" : "pve-vmid",
14407 "maximum" : 999999999,
14408 "minimum" : 100,
14409 "type" : "integer",
14410 "typetext" : "<integer> (100 - 999999999)"
14411 }
14412 }
14413 },
14414 "permissions" : {
14415 "check" : [
14416 "perm",
14417 "/vms/{vmid}",
14418 [
14419 "VM.Config.Network"
14420 ]
14421 ]
14422 },
14423 "protected" : 1,
14424 "returns" : {
14425 "type" : "null"
14426 }
14427 }
14428 },
14429 "leaf" : 0,
14430 "path" : "/nodes/{node}/qemu/{vmid}/firewall/ipset",
14431 "text" : "ipset"
14432 },
14433 {
14434 "info" : {
14435 "GET" : {
14436 "allowtoken" : 1,
14437 "description" : "Get VM firewall options.",
14438 "method" : "GET",
14439 "name" : "get_options",
14440 "parameters" : {
14441 "additionalProperties" : 0,
14442 "properties" : {
14443 "node" : {
14444 "description" : "The cluster node name.",
14445 "format" : "pve-node",
14446 "type" : "string",
14447 "typetext" : "<string>"
14448 },
14449 "vmid" : {
14450 "description" : "The (unique) ID of the VM.",
14451 "format" : "pve-vmid",
14452 "maximum" : 999999999,
14453 "minimum" : 100,
14454 "type" : "integer",
14455 "typetext" : "<integer> (100 - 999999999)"
14456 }
14457 }
14458 },
14459 "permissions" : {
14460 "check" : [
14461 "perm",
14462 "/vms/{vmid}",
14463 [
14464 "VM.Audit"
14465 ]
14466 ]
14467 },
14468 "proxyto" : "node",
14469 "returns" : {
14470 "properties" : {
14471 "dhcp" : {
14472 "default" : 0,
14473 "description" : "Enable DHCP.",
14474 "optional" : 1,
14475 "type" : "boolean"
14476 },
14477 "enable" : {
14478 "default" : 0,
14479 "description" : "Enable/disable firewall rules.",
14480 "optional" : 1,
14481 "type" : "boolean"
14482 },
14483 "ipfilter" : {
14484 "description" : "Enable default IP filters. This is equivalent to adding an empty ipfilter-net<id> ipset for every interface. Such ipsets implicitly contain sane default restrictions such as restricting IPv6 link local addresses to the one derived from the interface's MAC address. For containers the configured IP addresses will be implicitly added.",
14485 "optional" : 1,
14486 "type" : "boolean"
14487 },
14488 "log_level_in" : {
14489 "description" : "Log level for incoming traffic.",
14490 "enum" : [
14491 "emerg",
14492 "alert",
14493 "crit",
14494 "err",
14495 "warning",
14496 "notice",
14497 "info",
14498 "debug",
14499 "nolog"
14500 ],
14501 "optional" : 1,
14502 "type" : "string"
14503 },
14504 "log_level_out" : {
14505 "description" : "Log level for outgoing traffic.",
14506 "enum" : [
14507 "emerg",
14508 "alert",
14509 "crit",
14510 "err",
14511 "warning",
14512 "notice",
14513 "info",
14514 "debug",
14515 "nolog"
14516 ],
14517 "optional" : 1,
14518 "type" : "string"
14519 },
14520 "macfilter" : {
14521 "default" : 1,
14522 "description" : "Enable/disable MAC address filter.",
14523 "optional" : 1,
14524 "type" : "boolean"
14525 },
14526 "ndp" : {
14527 "default" : 0,
14528 "description" : "Enable NDP (Neighbor Discovery Protocol).",
14529 "optional" : 1,
14530 "type" : "boolean"
14531 },
14532 "policy_in" : {
14533 "description" : "Input policy.",
14534 "enum" : [
14535 "ACCEPT",
14536 "REJECT",
14537 "DROP"
14538 ],
14539 "optional" : 1,
14540 "type" : "string"
14541 },
14542 "policy_out" : {
14543 "description" : "Output policy.",
14544 "enum" : [
14545 "ACCEPT",
14546 "REJECT",
14547 "DROP"
14548 ],
14549 "optional" : 1,
14550 "type" : "string"
14551 },
14552 "radv" : {
14553 "description" : "Allow sending Router Advertisement.",
14554 "optional" : 1,
14555 "type" : "boolean"
14556 }
14557 },
14558 "type" : "object"
14559 }
14560 },
14561 "PUT" : {
14562 "allowtoken" : 1,
14563 "description" : "Set Firewall options.",
14564 "method" : "PUT",
14565 "name" : "set_options",
14566 "parameters" : {
14567 "additionalProperties" : 0,
14568 "properties" : {
14569 "delete" : {
14570 "description" : "A list of settings you want to delete.",
14571 "format" : "pve-configid-list",
14572 "optional" : 1,
14573 "type" : "string",
14574 "typetext" : "<string>"
14575 },
14576 "dhcp" : {
14577 "default" : 0,
14578 "description" : "Enable DHCP.",
14579 "optional" : 1,
14580 "type" : "boolean",
14581 "typetext" : "<boolean>"
14582 },
14583 "digest" : {
14584 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
14585 "maxLength" : 64,
14586 "optional" : 1,
14587 "type" : "string",
14588 "typetext" : "<string>"
14589 },
14590 "enable" : {
14591 "default" : 0,
14592 "description" : "Enable/disable firewall rules.",
14593 "optional" : 1,
14594 "type" : "boolean",
14595 "typetext" : "<boolean>"
14596 },
14597 "ipfilter" : {
14598 "description" : "Enable default IP filters. This is equivalent to adding an empty ipfilter-net<id> ipset for every interface. Such ipsets implicitly contain sane default restrictions such as restricting IPv6 link local addresses to the one derived from the interface's MAC address. For containers the configured IP addresses will be implicitly added.",
14599 "optional" : 1,
14600 "type" : "boolean",
14601 "typetext" : "<boolean>"
14602 },
14603 "log_level_in" : {
14604 "description" : "Log level for incoming traffic.",
14605 "enum" : [
14606 "emerg",
14607 "alert",
14608 "crit",
14609 "err",
14610 "warning",
14611 "notice",
14612 "info",
14613 "debug",
14614 "nolog"
14615 ],
14616 "optional" : 1,
14617 "type" : "string"
14618 },
14619 "log_level_out" : {
14620 "description" : "Log level for outgoing traffic.",
14621 "enum" : [
14622 "emerg",
14623 "alert",
14624 "crit",
14625 "err",
14626 "warning",
14627 "notice",
14628 "info",
14629 "debug",
14630 "nolog"
14631 ],
14632 "optional" : 1,
14633 "type" : "string"
14634 },
14635 "macfilter" : {
14636 "default" : 1,
14637 "description" : "Enable/disable MAC address filter.",
14638 "optional" : 1,
14639 "type" : "boolean",
14640 "typetext" : "<boolean>"
14641 },
14642 "ndp" : {
14643 "default" : 0,
14644 "description" : "Enable NDP (Neighbor Discovery Protocol).",
14645 "optional" : 1,
14646 "type" : "boolean",
14647 "typetext" : "<boolean>"
14648 },
14649 "node" : {
14650 "description" : "The cluster node name.",
14651 "format" : "pve-node",
14652 "type" : "string",
14653 "typetext" : "<string>"
14654 },
14655 "policy_in" : {
14656 "description" : "Input policy.",
14657 "enum" : [
14658 "ACCEPT",
14659 "REJECT",
14660 "DROP"
14661 ],
14662 "optional" : 1,
14663 "type" : "string"
14664 },
14665 "policy_out" : {
14666 "description" : "Output policy.",
14667 "enum" : [
14668 "ACCEPT",
14669 "REJECT",
14670 "DROP"
14671 ],
14672 "optional" : 1,
14673 "type" : "string"
14674 },
14675 "radv" : {
14676 "description" : "Allow sending Router Advertisement.",
14677 "optional" : 1,
14678 "type" : "boolean",
14679 "typetext" : "<boolean>"
14680 },
14681 "vmid" : {
14682 "description" : "The (unique) ID of the VM.",
14683 "format" : "pve-vmid",
14684 "maximum" : 999999999,
14685 "minimum" : 100,
14686 "type" : "integer",
14687 "typetext" : "<integer> (100 - 999999999)"
14688 }
14689 }
14690 },
14691 "permissions" : {
14692 "check" : [
14693 "perm",
14694 "/vms/{vmid}",
14695 [
14696 "VM.Config.Network"
14697 ]
14698 ]
14699 },
14700 "protected" : 1,
14701 "proxyto" : "node",
14702 "returns" : {
14703 "type" : "null"
14704 }
14705 }
14706 },
14707 "leaf" : 1,
14708 "path" : "/nodes/{node}/qemu/{vmid}/firewall/options",
14709 "text" : "options"
14710 },
14711 {
14712 "info" : {
14713 "GET" : {
14714 "allowtoken" : 1,
14715 "description" : "Read firewall log",
14716 "method" : "GET",
14717 "name" : "log",
14718 "parameters" : {
14719 "additionalProperties" : 0,
14720 "properties" : {
14721 "limit" : {
14722 "minimum" : 0,
14723 "optional" : 1,
14724 "type" : "integer",
14725 "typetext" : "<integer> (0 - N)"
14726 },
14727 "node" : {
14728 "description" : "The cluster node name.",
14729 "format" : "pve-node",
14730 "type" : "string",
14731 "typetext" : "<string>"
14732 },
14733 "since" : {
14734 "description" : "Display log since this UNIX epoch.",
14735 "minimum" : 0,
14736 "optional" : 1,
14737 "type" : "integer",
14738 "typetext" : "<integer> (0 - N)"
14739 },
14740 "start" : {
14741 "minimum" : 0,
14742 "optional" : 1,
14743 "type" : "integer",
14744 "typetext" : "<integer> (0 - N)"
14745 },
14746 "until" : {
14747 "description" : "Display log until this UNIX epoch.",
14748 "minimum" : 0,
14749 "optional" : 1,
14750 "type" : "integer",
14751 "typetext" : "<integer> (0 - N)"
14752 },
14753 "vmid" : {
14754 "description" : "The (unique) ID of the VM.",
14755 "format" : "pve-vmid",
14756 "maximum" : 999999999,
14757 "minimum" : 100,
14758 "type" : "integer",
14759 "typetext" : "<integer> (100 - 999999999)"
14760 }
14761 }
14762 },
14763 "permissions" : {
14764 "check" : [
14765 "perm",
14766 "/vms/{vmid}",
14767 [
14768 "VM.Console"
14769 ]
14770 ]
14771 },
14772 "protected" : 1,
14773 "proxyto" : "node",
14774 "returns" : {
14775 "items" : {
14776 "properties" : {
14777 "n" : {
14778 "description" : "Line number",
14779 "type" : "integer"
14780 },
14781 "t" : {
14782 "description" : "Line text",
14783 "type" : "string"
14784 }
14785 },
14786 "type" : "object"
14787 },
14788 "type" : "array"
14789 }
14790 }
14791 },
14792 "leaf" : 1,
14793 "path" : "/nodes/{node}/qemu/{vmid}/firewall/log",
14794 "text" : "log"
14795 },
14796 {
14797 "info" : {
14798 "GET" : {
14799 "allowtoken" : 1,
14800 "description" : "Lists possible IPSet/Alias reference which are allowed in source/dest properties.",
14801 "method" : "GET",
14802 "name" : "refs",
14803 "parameters" : {
14804 "additionalProperties" : 0,
14805 "properties" : {
14806 "node" : {
14807 "description" : "The cluster node name.",
14808 "format" : "pve-node",
14809 "type" : "string",
14810 "typetext" : "<string>"
14811 },
14812 "type" : {
14813 "description" : "Only list references of specified type.",
14814 "enum" : [
14815 "alias",
14816 "ipset"
14817 ],
14818 "optional" : 1,
14819 "type" : "string"
14820 },
14821 "vmid" : {
14822 "description" : "The (unique) ID of the VM.",
14823 "format" : "pve-vmid",
14824 "maximum" : 999999999,
14825 "minimum" : 100,
14826 "type" : "integer",
14827 "typetext" : "<integer> (100 - 999999999)"
14828 }
14829 }
14830 },
14831 "permissions" : {
14832 "check" : [
14833 "perm",
14834 "/vms/{vmid}",
14835 [
14836 "VM.Audit"
14837 ]
14838 ]
14839 },
14840 "returns" : {
14841 "items" : {
14842 "properties" : {
14843 "comment" : {
14844 "optional" : 1,
14845 "type" : "string"
14846 },
14847 "name" : {
14848 "type" : "string"
14849 },
14850 "ref" : {
14851 "type" : "string"
14852 },
14853 "scope" : {
14854 "type" : "string"
14855 },
14856 "type" : {
14857 "enum" : [
14858 "alias",
14859 "ipset"
14860 ],
14861 "type" : "string"
14862 }
14863 },
14864 "type" : "object"
14865 },
14866 "type" : "array"
14867 }
14868 }
14869 },
14870 "leaf" : 1,
14871 "path" : "/nodes/{node}/qemu/{vmid}/firewall/refs",
14872 "text" : "refs"
14873 }
14874 ],
14875 "info" : {
14876 "GET" : {
14877 "allowtoken" : 1,
14878 "description" : "Directory index.",
14879 "method" : "GET",
14880 "name" : "index",
14881 "parameters" : {
14882 "additionalProperties" : 0,
14883 "properties" : {
14884 "node" : {
14885 "description" : "The cluster node name.",
14886 "format" : "pve-node",
14887 "type" : "string",
14888 "typetext" : "<string>"
14889 },
14890 "vmid" : {
14891 "description" : "The (unique) ID of the VM.",
14892 "format" : "pve-vmid",
14893 "maximum" : 999999999,
14894 "minimum" : 100,
14895 "type" : "integer",
14896 "typetext" : "<integer> (100 - 999999999)"
14897 }
14898 }
14899 },
14900 "permissions" : {
14901 "user" : "all"
14902 },
14903 "returns" : {
14904 "items" : {
14905 "properties" : {},
14906 "type" : "object"
14907 },
14908 "links" : [
14909 {
14910 "href" : "{name}",
14911 "rel" : "child"
14912 }
14913 ],
14914 "type" : "array"
14915 }
14916 }
14917 },
14918 "leaf" : 0,
14919 "path" : "/nodes/{node}/qemu/{vmid}/firewall",
14920 "text" : "firewall"
14921 },
14922 {
14923 "children" : [
14924 {
14925 "info" : {
14926 "POST" : {
14927 "allowtoken" : 1,
14928 "description" : "Execute fsfreeze-freeze.",
14929 "method" : "POST",
14930 "name" : "fsfreeze-freeze",
14931 "parameters" : {
14932 "additionalProperties" : 0,
14933 "properties" : {
14934 "node" : {
14935 "description" : "The cluster node name.",
14936 "format" : "pve-node",
14937 "type" : "string",
14938 "typetext" : "<string>"
14939 },
14940 "vmid" : {
14941 "description" : "The (unique) ID of the VM.",
14942 "format" : "pve-vmid",
14943 "maximum" : 999999999,
14944 "minimum" : 100,
14945 "type" : "integer",
14946 "typetext" : "<integer> (100 - 999999999)"
14947 }
14948 }
14949 },
14950 "permissions" : {
14951 "check" : [
14952 "perm",
14953 "/vms/{vmid}",
14954 [
14955 "VM.Monitor"
14956 ]
14957 ]
14958 },
14959 "protected" : 1,
14960 "proxyto" : "node",
14961 "returns" : {
14962 "description" : "Returns an object with a single `result` property.",
14963 "type" : "object"
14964 }
14965 }
14966 },
14967 "leaf" : 1,
14968 "path" : "/nodes/{node}/qemu/{vmid}/agent/fsfreeze-freeze",
14969 "text" : "fsfreeze-freeze"
14970 },
14971 {
14972 "info" : {
14973 "POST" : {
14974 "allowtoken" : 1,
14975 "description" : "Execute fsfreeze-status.",
14976 "method" : "POST",
14977 "name" : "fsfreeze-status",
14978 "parameters" : {
14979 "additionalProperties" : 0,
14980 "properties" : {
14981 "node" : {
14982 "description" : "The cluster node name.",
14983 "format" : "pve-node",
14984 "type" : "string",
14985 "typetext" : "<string>"
14986 },
14987 "vmid" : {
14988 "description" : "The (unique) ID of the VM.",
14989 "format" : "pve-vmid",
14990 "maximum" : 999999999,
14991 "minimum" : 100,
14992 "type" : "integer",
14993 "typetext" : "<integer> (100 - 999999999)"
14994 }
14995 }
14996 },
14997 "permissions" : {
14998 "check" : [
14999 "perm",
15000 "/vms/{vmid}",
15001 [
15002 "VM.Monitor"
15003 ]
15004 ]
15005 },
15006 "protected" : 1,
15007 "proxyto" : "node",
15008 "returns" : {
15009 "description" : "Returns an object with a single `result` property.",
15010 "type" : "object"
15011 }
15012 }
15013 },
15014 "leaf" : 1,
15015 "path" : "/nodes/{node}/qemu/{vmid}/agent/fsfreeze-status",
15016 "text" : "fsfreeze-status"
15017 },
15018 {
15019 "info" : {
15020 "POST" : {
15021 "allowtoken" : 1,
15022 "description" : "Execute fsfreeze-thaw.",
15023 "method" : "POST",
15024 "name" : "fsfreeze-thaw",
15025 "parameters" : {
15026 "additionalProperties" : 0,
15027 "properties" : {
15028 "node" : {
15029 "description" : "The cluster node name.",
15030 "format" : "pve-node",
15031 "type" : "string",
15032 "typetext" : "<string>"
15033 },
15034 "vmid" : {
15035 "description" : "The (unique) ID of the VM.",
15036 "format" : "pve-vmid",
15037 "maximum" : 999999999,
15038 "minimum" : 100,
15039 "type" : "integer",
15040 "typetext" : "<integer> (100 - 999999999)"
15041 }
15042 }
15043 },
15044 "permissions" : {
15045 "check" : [
15046 "perm",
15047 "/vms/{vmid}",
15048 [
15049 "VM.Monitor"
15050 ]
15051 ]
15052 },
15053 "protected" : 1,
15054 "proxyto" : "node",
15055 "returns" : {
15056 "description" : "Returns an object with a single `result` property.",
15057 "type" : "object"
15058 }
15059 }
15060 },
15061 "leaf" : 1,
15062 "path" : "/nodes/{node}/qemu/{vmid}/agent/fsfreeze-thaw",
15063 "text" : "fsfreeze-thaw"
15064 },
15065 {
15066 "info" : {
15067 "POST" : {
15068 "allowtoken" : 1,
15069 "description" : "Execute fstrim.",
15070 "method" : "POST",
15071 "name" : "fstrim",
15072 "parameters" : {
15073 "additionalProperties" : 0,
15074 "properties" : {
15075 "node" : {
15076 "description" : "The cluster node name.",
15077 "format" : "pve-node",
15078 "type" : "string",
15079 "typetext" : "<string>"
15080 },
15081 "vmid" : {
15082 "description" : "The (unique) ID of the VM.",
15083 "format" : "pve-vmid",
15084 "maximum" : 999999999,
15085 "minimum" : 100,
15086 "type" : "integer",
15087 "typetext" : "<integer> (100 - 999999999)"
15088 }
15089 }
15090 },
15091 "permissions" : {
15092 "check" : [
15093 "perm",
15094 "/vms/{vmid}",
15095 [
15096 "VM.Monitor"
15097 ]
15098 ]
15099 },
15100 "protected" : 1,
15101 "proxyto" : "node",
15102 "returns" : {
15103 "description" : "Returns an object with a single `result` property.",
15104 "type" : "object"
15105 }
15106 }
15107 },
15108 "leaf" : 1,
15109 "path" : "/nodes/{node}/qemu/{vmid}/agent/fstrim",
15110 "text" : "fstrim"
15111 },
15112 {
15113 "info" : {
15114 "GET" : {
15115 "allowtoken" : 1,
15116 "description" : "Execute get-fsinfo.",
15117 "method" : "GET",
15118 "name" : "get-fsinfo",
15119 "parameters" : {
15120 "additionalProperties" : 0,
15121 "properties" : {
15122 "node" : {
15123 "description" : "The cluster node name.",
15124 "format" : "pve-node",
15125 "type" : "string",
15126 "typetext" : "<string>"
15127 },
15128 "vmid" : {
15129 "description" : "The (unique) ID of the VM.",
15130 "format" : "pve-vmid",
15131 "maximum" : 999999999,
15132 "minimum" : 100,
15133 "type" : "integer",
15134 "typetext" : "<integer> (100 - 999999999)"
15135 }
15136 }
15137 },
15138 "permissions" : {
15139 "check" : [
15140 "perm",
15141 "/vms/{vmid}",
15142 [
15143 "VM.Monitor"
15144 ]
15145 ]
15146 },
15147 "protected" : 1,
15148 "proxyto" : "node",
15149 "returns" : {
15150 "description" : "Returns an object with a single `result` property.",
15151 "type" : "object"
15152 }
15153 }
15154 },
15155 "leaf" : 1,
15156 "path" : "/nodes/{node}/qemu/{vmid}/agent/get-fsinfo",
15157 "text" : "get-fsinfo"
15158 },
15159 {
15160 "info" : {
15161 "GET" : {
15162 "allowtoken" : 1,
15163 "description" : "Execute get-host-name.",
15164 "method" : "GET",
15165 "name" : "get-host-name",
15166 "parameters" : {
15167 "additionalProperties" : 0,
15168 "properties" : {
15169 "node" : {
15170 "description" : "The cluster node name.",
15171 "format" : "pve-node",
15172 "type" : "string",
15173 "typetext" : "<string>"
15174 },
15175 "vmid" : {
15176 "description" : "The (unique) ID of the VM.",
15177 "format" : "pve-vmid",
15178 "maximum" : 999999999,
15179 "minimum" : 100,
15180 "type" : "integer",
15181 "typetext" : "<integer> (100 - 999999999)"
15182 }
15183 }
15184 },
15185 "permissions" : {
15186 "check" : [
15187 "perm",
15188 "/vms/{vmid}",
15189 [
15190 "VM.Monitor"
15191 ]
15192 ]
15193 },
15194 "protected" : 1,
15195 "proxyto" : "node",
15196 "returns" : {
15197 "description" : "Returns an object with a single `result` property.",
15198 "type" : "object"
15199 }
15200 }
15201 },
15202 "leaf" : 1,
15203 "path" : "/nodes/{node}/qemu/{vmid}/agent/get-host-name",
15204 "text" : "get-host-name"
15205 },
15206 {
15207 "info" : {
15208 "GET" : {
15209 "allowtoken" : 1,
15210 "description" : "Execute get-memory-block-info.",
15211 "method" : "GET",
15212 "name" : "get-memory-block-info",
15213 "parameters" : {
15214 "additionalProperties" : 0,
15215 "properties" : {
15216 "node" : {
15217 "description" : "The cluster node name.",
15218 "format" : "pve-node",
15219 "type" : "string",
15220 "typetext" : "<string>"
15221 },
15222 "vmid" : {
15223 "description" : "The (unique) ID of the VM.",
15224 "format" : "pve-vmid",
15225 "maximum" : 999999999,
15226 "minimum" : 100,
15227 "type" : "integer",
15228 "typetext" : "<integer> (100 - 999999999)"
15229 }
15230 }
15231 },
15232 "permissions" : {
15233 "check" : [
15234 "perm",
15235 "/vms/{vmid}",
15236 [
15237 "VM.Monitor"
15238 ]
15239 ]
15240 },
15241 "protected" : 1,
15242 "proxyto" : "node",
15243 "returns" : {
15244 "description" : "Returns an object with a single `result` property.",
15245 "type" : "object"
15246 }
15247 }
15248 },
15249 "leaf" : 1,
15250 "path" : "/nodes/{node}/qemu/{vmid}/agent/get-memory-block-info",
15251 "text" : "get-memory-block-info"
15252 },
15253 {
15254 "info" : {
15255 "GET" : {
15256 "allowtoken" : 1,
15257 "description" : "Execute get-memory-blocks.",
15258 "method" : "GET",
15259 "name" : "get-memory-blocks",
15260 "parameters" : {
15261 "additionalProperties" : 0,
15262 "properties" : {
15263 "node" : {
15264 "description" : "The cluster node name.",
15265 "format" : "pve-node",
15266 "type" : "string",
15267 "typetext" : "<string>"
15268 },
15269 "vmid" : {
15270 "description" : "The (unique) ID of the VM.",
15271 "format" : "pve-vmid",
15272 "maximum" : 999999999,
15273 "minimum" : 100,
15274 "type" : "integer",
15275 "typetext" : "<integer> (100 - 999999999)"
15276 }
15277 }
15278 },
15279 "permissions" : {
15280 "check" : [
15281 "perm",
15282 "/vms/{vmid}",
15283 [
15284 "VM.Monitor"
15285 ]
15286 ]
15287 },
15288 "protected" : 1,
15289 "proxyto" : "node",
15290 "returns" : {
15291 "description" : "Returns an object with a single `result` property.",
15292 "type" : "object"
15293 }
15294 }
15295 },
15296 "leaf" : 1,
15297 "path" : "/nodes/{node}/qemu/{vmid}/agent/get-memory-blocks",
15298 "text" : "get-memory-blocks"
15299 },
15300 {
15301 "info" : {
15302 "GET" : {
15303 "allowtoken" : 1,
15304 "description" : "Execute get-osinfo.",
15305 "method" : "GET",
15306 "name" : "get-osinfo",
15307 "parameters" : {
15308 "additionalProperties" : 0,
15309 "properties" : {
15310 "node" : {
15311 "description" : "The cluster node name.",
15312 "format" : "pve-node",
15313 "type" : "string",
15314 "typetext" : "<string>"
15315 },
15316 "vmid" : {
15317 "description" : "The (unique) ID of the VM.",
15318 "format" : "pve-vmid",
15319 "maximum" : 999999999,
15320 "minimum" : 100,
15321 "type" : "integer",
15322 "typetext" : "<integer> (100 - 999999999)"
15323 }
15324 }
15325 },
15326 "permissions" : {
15327 "check" : [
15328 "perm",
15329 "/vms/{vmid}",
15330 [
15331 "VM.Monitor"
15332 ]
15333 ]
15334 },
15335 "protected" : 1,
15336 "proxyto" : "node",
15337 "returns" : {
15338 "description" : "Returns an object with a single `result` property.",
15339 "type" : "object"
15340 }
15341 }
15342 },
15343 "leaf" : 1,
15344 "path" : "/nodes/{node}/qemu/{vmid}/agent/get-osinfo",
15345 "text" : "get-osinfo"
15346 },
15347 {
15348 "info" : {
15349 "GET" : {
15350 "allowtoken" : 1,
15351 "description" : "Execute get-time.",
15352 "method" : "GET",
15353 "name" : "get-time",
15354 "parameters" : {
15355 "additionalProperties" : 0,
15356 "properties" : {
15357 "node" : {
15358 "description" : "The cluster node name.",
15359 "format" : "pve-node",
15360 "type" : "string",
15361 "typetext" : "<string>"
15362 },
15363 "vmid" : {
15364 "description" : "The (unique) ID of the VM.",
15365 "format" : "pve-vmid",
15366 "maximum" : 999999999,
15367 "minimum" : 100,
15368 "type" : "integer",
15369 "typetext" : "<integer> (100 - 999999999)"
15370 }
15371 }
15372 },
15373 "permissions" : {
15374 "check" : [
15375 "perm",
15376 "/vms/{vmid}",
15377 [
15378 "VM.Monitor"
15379 ]
15380 ]
15381 },
15382 "protected" : 1,
15383 "proxyto" : "node",
15384 "returns" : {
15385 "description" : "Returns an object with a single `result` property.",
15386 "type" : "object"
15387 }
15388 }
15389 },
15390 "leaf" : 1,
15391 "path" : "/nodes/{node}/qemu/{vmid}/agent/get-time",
15392 "text" : "get-time"
15393 },
15394 {
15395 "info" : {
15396 "GET" : {
15397 "allowtoken" : 1,
15398 "description" : "Execute get-timezone.",
15399 "method" : "GET",
15400 "name" : "get-timezone",
15401 "parameters" : {
15402 "additionalProperties" : 0,
15403 "properties" : {
15404 "node" : {
15405 "description" : "The cluster node name.",
15406 "format" : "pve-node",
15407 "type" : "string",
15408 "typetext" : "<string>"
15409 },
15410 "vmid" : {
15411 "description" : "The (unique) ID of the VM.",
15412 "format" : "pve-vmid",
15413 "maximum" : 999999999,
15414 "minimum" : 100,
15415 "type" : "integer",
15416 "typetext" : "<integer> (100 - 999999999)"
15417 }
15418 }
15419 },
15420 "permissions" : {
15421 "check" : [
15422 "perm",
15423 "/vms/{vmid}",
15424 [
15425 "VM.Monitor"
15426 ]
15427 ]
15428 },
15429 "protected" : 1,
15430 "proxyto" : "node",
15431 "returns" : {
15432 "description" : "Returns an object with a single `result` property.",
15433 "type" : "object"
15434 }
15435 }
15436 },
15437 "leaf" : 1,
15438 "path" : "/nodes/{node}/qemu/{vmid}/agent/get-timezone",
15439 "text" : "get-timezone"
15440 },
15441 {
15442 "info" : {
15443 "GET" : {
15444 "allowtoken" : 1,
15445 "description" : "Execute get-users.",
15446 "method" : "GET",
15447 "name" : "get-users",
15448 "parameters" : {
15449 "additionalProperties" : 0,
15450 "properties" : {
15451 "node" : {
15452 "description" : "The cluster node name.",
15453 "format" : "pve-node",
15454 "type" : "string",
15455 "typetext" : "<string>"
15456 },
15457 "vmid" : {
15458 "description" : "The (unique) ID of the VM.",
15459 "format" : "pve-vmid",
15460 "maximum" : 999999999,
15461 "minimum" : 100,
15462 "type" : "integer",
15463 "typetext" : "<integer> (100 - 999999999)"
15464 }
15465 }
15466 },
15467 "permissions" : {
15468 "check" : [
15469 "perm",
15470 "/vms/{vmid}",
15471 [
15472 "VM.Monitor"
15473 ]
15474 ]
15475 },
15476 "protected" : 1,
15477 "proxyto" : "node",
15478 "returns" : {
15479 "description" : "Returns an object with a single `result` property.",
15480 "type" : "object"
15481 }
15482 }
15483 },
15484 "leaf" : 1,
15485 "path" : "/nodes/{node}/qemu/{vmid}/agent/get-users",
15486 "text" : "get-users"
15487 },
15488 {
15489 "info" : {
15490 "GET" : {
15491 "allowtoken" : 1,
15492 "description" : "Execute get-vcpus.",
15493 "method" : "GET",
15494 "name" : "get-vcpus",
15495 "parameters" : {
15496 "additionalProperties" : 0,
15497 "properties" : {
15498 "node" : {
15499 "description" : "The cluster node name.",
15500 "format" : "pve-node",
15501 "type" : "string",
15502 "typetext" : "<string>"
15503 },
15504 "vmid" : {
15505 "description" : "The (unique) ID of the VM.",
15506 "format" : "pve-vmid",
15507 "maximum" : 999999999,
15508 "minimum" : 100,
15509 "type" : "integer",
15510 "typetext" : "<integer> (100 - 999999999)"
15511 }
15512 }
15513 },
15514 "permissions" : {
15515 "check" : [
15516 "perm",
15517 "/vms/{vmid}",
15518 [
15519 "VM.Monitor"
15520 ]
15521 ]
15522 },
15523 "protected" : 1,
15524 "proxyto" : "node",
15525 "returns" : {
15526 "description" : "Returns an object with a single `result` property.",
15527 "type" : "object"
15528 }
15529 }
15530 },
15531 "leaf" : 1,
15532 "path" : "/nodes/{node}/qemu/{vmid}/agent/get-vcpus",
15533 "text" : "get-vcpus"
15534 },
15535 {
15536 "info" : {
15537 "GET" : {
15538 "allowtoken" : 1,
15539 "description" : "Execute info.",
15540 "method" : "GET",
15541 "name" : "info",
15542 "parameters" : {
15543 "additionalProperties" : 0,
15544 "properties" : {
15545 "node" : {
15546 "description" : "The cluster node name.",
15547 "format" : "pve-node",
15548 "type" : "string",
15549 "typetext" : "<string>"
15550 },
15551 "vmid" : {
15552 "description" : "The (unique) ID of the VM.",
15553 "format" : "pve-vmid",
15554 "maximum" : 999999999,
15555 "minimum" : 100,
15556 "type" : "integer",
15557 "typetext" : "<integer> (100 - 999999999)"
15558 }
15559 }
15560 },
15561 "permissions" : {
15562 "check" : [
15563 "perm",
15564 "/vms/{vmid}",
15565 [
15566 "VM.Monitor"
15567 ]
15568 ]
15569 },
15570 "protected" : 1,
15571 "proxyto" : "node",
15572 "returns" : {
15573 "description" : "Returns an object with a single `result` property.",
15574 "type" : "object"
15575 }
15576 }
15577 },
15578 "leaf" : 1,
15579 "path" : "/nodes/{node}/qemu/{vmid}/agent/info",
15580 "text" : "info"
15581 },
15582 {
15583 "info" : {
15584 "GET" : {
15585 "allowtoken" : 1,
15586 "description" : "Execute network-get-interfaces.",
15587 "method" : "GET",
15588 "name" : "network-get-interfaces",
15589 "parameters" : {
15590 "additionalProperties" : 0,
15591 "properties" : {
15592 "node" : {
15593 "description" : "The cluster node name.",
15594 "format" : "pve-node",
15595 "type" : "string",
15596 "typetext" : "<string>"
15597 },
15598 "vmid" : {
15599 "description" : "The (unique) ID of the VM.",
15600 "format" : "pve-vmid",
15601 "maximum" : 999999999,
15602 "minimum" : 100,
15603 "type" : "integer",
15604 "typetext" : "<integer> (100 - 999999999)"
15605 }
15606 }
15607 },
15608 "permissions" : {
15609 "check" : [
15610 "perm",
15611 "/vms/{vmid}",
15612 [
15613 "VM.Monitor"
15614 ]
15615 ]
15616 },
15617 "protected" : 1,
15618 "proxyto" : "node",
15619 "returns" : {
15620 "description" : "Returns an object with a single `result` property.",
15621 "type" : "object"
15622 }
15623 }
15624 },
15625 "leaf" : 1,
15626 "path" : "/nodes/{node}/qemu/{vmid}/agent/network-get-interfaces",
15627 "text" : "network-get-interfaces"
15628 },
15629 {
15630 "info" : {
15631 "POST" : {
15632 "allowtoken" : 1,
15633 "description" : "Execute ping.",
15634 "method" : "POST",
15635 "name" : "ping",
15636 "parameters" : {
15637 "additionalProperties" : 0,
15638 "properties" : {
15639 "node" : {
15640 "description" : "The cluster node name.",
15641 "format" : "pve-node",
15642 "type" : "string",
15643 "typetext" : "<string>"
15644 },
15645 "vmid" : {
15646 "description" : "The (unique) ID of the VM.",
15647 "format" : "pve-vmid",
15648 "maximum" : 999999999,
15649 "minimum" : 100,
15650 "type" : "integer",
15651 "typetext" : "<integer> (100 - 999999999)"
15652 }
15653 }
15654 },
15655 "permissions" : {
15656 "check" : [
15657 "perm",
15658 "/vms/{vmid}",
15659 [
15660 "VM.Monitor"
15661 ]
15662 ]
15663 },
15664 "protected" : 1,
15665 "proxyto" : "node",
15666 "returns" : {
15667 "description" : "Returns an object with a single `result` property.",
15668 "type" : "object"
15669 }
15670 }
15671 },
15672 "leaf" : 1,
15673 "path" : "/nodes/{node}/qemu/{vmid}/agent/ping",
15674 "text" : "ping"
15675 },
15676 {
15677 "info" : {
15678 "POST" : {
15679 "allowtoken" : 1,
15680 "description" : "Execute shutdown.",
15681 "method" : "POST",
15682 "name" : "shutdown",
15683 "parameters" : {
15684 "additionalProperties" : 0,
15685 "properties" : {
15686 "node" : {
15687 "description" : "The cluster node name.",
15688 "format" : "pve-node",
15689 "type" : "string",
15690 "typetext" : "<string>"
15691 },
15692 "vmid" : {
15693 "description" : "The (unique) ID of the VM.",
15694 "format" : "pve-vmid",
15695 "maximum" : 999999999,
15696 "minimum" : 100,
15697 "type" : "integer",
15698 "typetext" : "<integer> (100 - 999999999)"
15699 }
15700 }
15701 },
15702 "permissions" : {
15703 "check" : [
15704 "perm",
15705 "/vms/{vmid}",
15706 [
15707 "VM.Monitor"
15708 ]
15709 ]
15710 },
15711 "protected" : 1,
15712 "proxyto" : "node",
15713 "returns" : {
15714 "description" : "Returns an object with a single `result` property.",
15715 "type" : "object"
15716 }
15717 }
15718 },
15719 "leaf" : 1,
15720 "path" : "/nodes/{node}/qemu/{vmid}/agent/shutdown",
15721 "text" : "shutdown"
15722 },
15723 {
15724 "info" : {
15725 "POST" : {
15726 "allowtoken" : 1,
15727 "description" : "Execute suspend-disk.",
15728 "method" : "POST",
15729 "name" : "suspend-disk",
15730 "parameters" : {
15731 "additionalProperties" : 0,
15732 "properties" : {
15733 "node" : {
15734 "description" : "The cluster node name.",
15735 "format" : "pve-node",
15736 "type" : "string",
15737 "typetext" : "<string>"
15738 },
15739 "vmid" : {
15740 "description" : "The (unique) ID of the VM.",
15741 "format" : "pve-vmid",
15742 "maximum" : 999999999,
15743 "minimum" : 100,
15744 "type" : "integer",
15745 "typetext" : "<integer> (100 - 999999999)"
15746 }
15747 }
15748 },
15749 "permissions" : {
15750 "check" : [
15751 "perm",
15752 "/vms/{vmid}",
15753 [
15754 "VM.Monitor"
15755 ]
15756 ]
15757 },
15758 "protected" : 1,
15759 "proxyto" : "node",
15760 "returns" : {
15761 "description" : "Returns an object with a single `result` property.",
15762 "type" : "object"
15763 }
15764 }
15765 },
15766 "leaf" : 1,
15767 "path" : "/nodes/{node}/qemu/{vmid}/agent/suspend-disk",
15768 "text" : "suspend-disk"
15769 },
15770 {
15771 "info" : {
15772 "POST" : {
15773 "allowtoken" : 1,
15774 "description" : "Execute suspend-hybrid.",
15775 "method" : "POST",
15776 "name" : "suspend-hybrid",
15777 "parameters" : {
15778 "additionalProperties" : 0,
15779 "properties" : {
15780 "node" : {
15781 "description" : "The cluster node name.",
15782 "format" : "pve-node",
15783 "type" : "string",
15784 "typetext" : "<string>"
15785 },
15786 "vmid" : {
15787 "description" : "The (unique) ID of the VM.",
15788 "format" : "pve-vmid",
15789 "maximum" : 999999999,
15790 "minimum" : 100,
15791 "type" : "integer",
15792 "typetext" : "<integer> (100 - 999999999)"
15793 }
15794 }
15795 },
15796 "permissions" : {
15797 "check" : [
15798 "perm",
15799 "/vms/{vmid}",
15800 [
15801 "VM.Monitor"
15802 ]
15803 ]
15804 },
15805 "protected" : 1,
15806 "proxyto" : "node",
15807 "returns" : {
15808 "description" : "Returns an object with a single `result` property.",
15809 "type" : "object"
15810 }
15811 }
15812 },
15813 "leaf" : 1,
15814 "path" : "/nodes/{node}/qemu/{vmid}/agent/suspend-hybrid",
15815 "text" : "suspend-hybrid"
15816 },
15817 {
15818 "info" : {
15819 "POST" : {
15820 "allowtoken" : 1,
15821 "description" : "Execute suspend-ram.",
15822 "method" : "POST",
15823 "name" : "suspend-ram",
15824 "parameters" : {
15825 "additionalProperties" : 0,
15826 "properties" : {
15827 "node" : {
15828 "description" : "The cluster node name.",
15829 "format" : "pve-node",
15830 "type" : "string",
15831 "typetext" : "<string>"
15832 },
15833 "vmid" : {
15834 "description" : "The (unique) ID of the VM.",
15835 "format" : "pve-vmid",
15836 "maximum" : 999999999,
15837 "minimum" : 100,
15838 "type" : "integer",
15839 "typetext" : "<integer> (100 - 999999999)"
15840 }
15841 }
15842 },
15843 "permissions" : {
15844 "check" : [
15845 "perm",
15846 "/vms/{vmid}",
15847 [
15848 "VM.Monitor"
15849 ]
15850 ]
15851 },
15852 "protected" : 1,
15853 "proxyto" : "node",
15854 "returns" : {
15855 "description" : "Returns an object with a single `result` property.",
15856 "type" : "object"
15857 }
15858 }
15859 },
15860 "leaf" : 1,
15861 "path" : "/nodes/{node}/qemu/{vmid}/agent/suspend-ram",
15862 "text" : "suspend-ram"
15863 },
15864 {
15865 "info" : {
15866 "POST" : {
15867 "allowtoken" : 1,
15868 "description" : "Sets the password for the given user to the given password",
15869 "method" : "POST",
15870 "name" : "set-user-password",
15871 "parameters" : {
15872 "additionalProperties" : 0,
15873 "properties" : {
15874 "crypted" : {
15875 "default" : 0,
15876 "description" : "set to 1 if the password has already been passed through crypt()",
15877 "optional" : 1,
15878 "type" : "boolean",
15879 "typetext" : "<boolean>"
15880 },
15881 "node" : {
15882 "description" : "The cluster node name.",
15883 "format" : "pve-node",
15884 "type" : "string",
15885 "typetext" : "<string>"
15886 },
15887 "password" : {
15888 "description" : "The new password.",
15889 "maxLength" : 1024,
15890 "minLength" : 5,
15891 "type" : "string",
15892 "typetext" : "<string>"
15893 },
15894 "username" : {
15895 "description" : "The user to set the password for.",
15896 "type" : "string",
15897 "typetext" : "<string>"
15898 },
15899 "vmid" : {
15900 "description" : "The (unique) ID of the VM.",
15901 "format" : "pve-vmid",
15902 "maximum" : 999999999,
15903 "minimum" : 100,
15904 "type" : "integer",
15905 "typetext" : "<integer> (100 - 999999999)"
15906 }
15907 }
15908 },
15909 "permissions" : {
15910 "check" : [
15911 "perm",
15912 "/vms/{vmid}",
15913 [
15914 "VM.Monitor"
15915 ]
15916 ]
15917 },
15918 "protected" : 1,
15919 "proxyto" : "node",
15920 "returns" : {
15921 "description" : "Returns an object with a single `result` property.",
15922 "type" : "object"
15923 }
15924 }
15925 },
15926 "leaf" : 1,
15927 "path" : "/nodes/{node}/qemu/{vmid}/agent/set-user-password",
15928 "text" : "set-user-password"
15929 },
15930 {
15931 "info" : {
15932 "POST" : {
15933 "allowtoken" : 1,
15934 "description" : "Executes the given command in the vm via the guest-agent and returns an object with the pid.",
15935 "method" : "POST",
15936 "name" : "exec",
15937 "parameters" : {
15938 "additionalProperties" : 0,
15939 "properties" : {
15940 "command" : {
15941 "description" : "The command as a list of program + arguments.",
15942 "items" : {
15943 "description" : "A single part of the program + arguments.",
15944 "format" : "string"
15945 },
15946 "type" : "array",
15947 "typetext" : "<array>"
15948 },
15949 "input-data" : {
15950 "description" : "Data to pass as 'input-data' to the guest. Usually treated as STDIN to 'command'.",
15951 "maxLength" : 65536,
15952 "optional" : 1,
15953 "type" : "string",
15954 "typetext" : "<string>"
15955 },
15956 "node" : {
15957 "description" : "The cluster node name.",
15958 "format" : "pve-node",
15959 "type" : "string",
15960 "typetext" : "<string>"
15961 },
15962 "vmid" : {
15963 "description" : "The (unique) ID of the VM.",
15964 "format" : "pve-vmid",
15965 "maximum" : 999999999,
15966 "minimum" : 100,
15967 "type" : "integer",
15968 "typetext" : "<integer> (100 - 999999999)"
15969 }
15970 }
15971 },
15972 "permissions" : {
15973 "check" : [
15974 "perm",
15975 "/vms/{vmid}",
15976 [
15977 "VM.Monitor"
15978 ]
15979 ]
15980 },
15981 "protected" : 1,
15982 "proxyto" : "node",
15983 "returns" : {
15984 "properties" : {
15985 "pid" : {
15986 "description" : "The PID of the process started by the guest-agent.",
15987 "type" : "integer"
15988 }
15989 },
15990 "type" : "object"
15991 }
15992 }
15993 },
15994 "leaf" : 1,
15995 "path" : "/nodes/{node}/qemu/{vmid}/agent/exec",
15996 "text" : "exec"
15997 },
15998 {
15999 "info" : {
16000 "GET" : {
16001 "allowtoken" : 1,
16002 "description" : "Gets the status of the given pid started by the guest-agent",
16003 "method" : "GET",
16004 "name" : "exec-status",
16005 "parameters" : {
16006 "additionalProperties" : 0,
16007 "properties" : {
16008 "node" : {
16009 "description" : "The cluster node name.",
16010 "format" : "pve-node",
16011 "type" : "string",
16012 "typetext" : "<string>"
16013 },
16014 "pid" : {
16015 "description" : "The PID to query",
16016 "type" : "integer",
16017 "typetext" : "<integer>"
16018 },
16019 "vmid" : {
16020 "description" : "The (unique) ID of the VM.",
16021 "format" : "pve-vmid",
16022 "maximum" : 999999999,
16023 "minimum" : 100,
16024 "type" : "integer",
16025 "typetext" : "<integer> (100 - 999999999)"
16026 }
16027 }
16028 },
16029 "permissions" : {
16030 "check" : [
16031 "perm",
16032 "/vms/{vmid}",
16033 [
16034 "VM.Monitor"
16035 ]
16036 ]
16037 },
16038 "protected" : 1,
16039 "proxyto" : "node",
16040 "returns" : {
16041 "properties" : {
16042 "err-data" : {
16043 "description" : "stderr of the process",
16044 "optional" : 1,
16045 "type" : "string"
16046 },
16047 "err-truncated" : {
16048 "description" : "true if stderr was not fully captured",
16049 "optional" : 1,
16050 "type" : "boolean"
16051 },
16052 "exitcode" : {
16053 "description" : "process exit code if it was normally terminated.",
16054 "optional" : 1,
16055 "type" : "integer"
16056 },
16057 "exited" : {
16058 "description" : "Tells if the given command has exited yet.",
16059 "type" : "boolean"
16060 },
16061 "out-data" : {
16062 "description" : "stdout of the process",
16063 "optional" : 1,
16064 "type" : "string"
16065 },
16066 "out-truncated" : {
16067 "description" : "true if stdout was not fully captured",
16068 "optional" : 1,
16069 "type" : "boolean"
16070 },
16071 "signal" : {
16072 "description" : "signal number or exception code if the process was abnormally terminated.",
16073 "optional" : 1,
16074 "type" : "integer"
16075 }
16076 },
16077 "type" : "object"
16078 }
16079 }
16080 },
16081 "leaf" : 1,
16082 "path" : "/nodes/{node}/qemu/{vmid}/agent/exec-status",
16083 "text" : "exec-status"
16084 },
16085 {
16086 "info" : {
16087 "GET" : {
16088 "allowtoken" : 1,
16089 "description" : "Reads the given file via guest agent. Is limited to 16777216 bytes.",
16090 "method" : "GET",
16091 "name" : "file-read",
16092 "parameters" : {
16093 "additionalProperties" : 0,
16094 "properties" : {
16095 "file" : {
16096 "description" : "The path to the file",
16097 "type" : "string",
16098 "typetext" : "<string>"
16099 },
16100 "node" : {
16101 "description" : "The cluster node name.",
16102 "format" : "pve-node",
16103 "type" : "string",
16104 "typetext" : "<string>"
16105 },
16106 "vmid" : {
16107 "description" : "The (unique) ID of the VM.",
16108 "format" : "pve-vmid",
16109 "maximum" : 999999999,
16110 "minimum" : 100,
16111 "type" : "integer",
16112 "typetext" : "<integer> (100 - 999999999)"
16113 }
16114 }
16115 },
16116 "permissions" : {
16117 "check" : [
16118 "perm",
16119 "/vms/{vmid}",
16120 [
16121 "VM.Monitor"
16122 ]
16123 ]
16124 },
16125 "protected" : 1,
16126 "proxyto" : "node",
16127 "returns" : {
16128 "description" : "Returns an object with a `content` property.",
16129 "properties" : {
16130 "content" : {
16131 "description" : "The content of the file, maximum 16777216",
16132 "type" : "string"
16133 },
16134 "truncated" : {
16135 "description" : "If set to 1, the output is truncated and not complete",
16136 "optional" : 1,
16137 "type" : "boolean"
16138 }
16139 },
16140 "type" : "object"
16141 }
16142 }
16143 },
16144 "leaf" : 1,
16145 "path" : "/nodes/{node}/qemu/{vmid}/agent/file-read",
16146 "text" : "file-read"
16147 },
16148 {
16149 "info" : {
16150 "POST" : {
16151 "allowtoken" : 1,
16152 "description" : "Writes the given file via guest agent.",
16153 "method" : "POST",
16154 "name" : "file-write",
16155 "parameters" : {
16156 "additionalProperties" : 0,
16157 "properties" : {
16158 "content" : {
16159 "description" : "The content to write into the file.",
16160 "maxLength" : 61440,
16161 "type" : "string",
16162 "typetext" : "<string>"
16163 },
16164 "encode" : {
16165 "default" : 1,
16166 "description" : "If set, the content will be encoded as base64 (required by QEMU).Otherwise the content needs to be encoded beforehand - defaults to true.",
16167 "optional" : 1,
16168 "type" : "boolean",
16169 "typetext" : "<boolean>"
16170 },
16171 "file" : {
16172 "description" : "The path to the file.",
16173 "type" : "string",
16174 "typetext" : "<string>"
16175 },
16176 "node" : {
16177 "description" : "The cluster node name.",
16178 "format" : "pve-node",
16179 "type" : "string",
16180 "typetext" : "<string>"
16181 },
16182 "vmid" : {
16183 "description" : "The (unique) ID of the VM.",
16184 "format" : "pve-vmid",
16185 "maximum" : 999999999,
16186 "minimum" : 100,
16187 "type" : "integer",
16188 "typetext" : "<integer> (100 - 999999999)"
16189 }
16190 }
16191 },
16192 "permissions" : {
16193 "check" : [
16194 "perm",
16195 "/vms/{vmid}",
16196 [
16197 "VM.Monitor"
16198 ]
16199 ]
16200 },
16201 "protected" : 1,
16202 "proxyto" : "node",
16203 "returns" : {
16204 "type" : "null"
16205 }
16206 }
16207 },
16208 "leaf" : 1,
16209 "path" : "/nodes/{node}/qemu/{vmid}/agent/file-write",
16210 "text" : "file-write"
16211 }
16212 ],
16213 "info" : {
16214 "GET" : {
16215 "allowtoken" : 1,
16216 "description" : "QEMU Guest Agent command index.",
16217 "method" : "GET",
16218 "name" : "index",
16219 "parameters" : {
16220 "additionalProperties" : 1,
16221 "properties" : {
16222 "node" : {
16223 "description" : "The cluster node name.",
16224 "format" : "pve-node",
16225 "type" : "string",
16226 "typetext" : "<string>"
16227 },
16228 "vmid" : {
16229 "description" : "The (unique) ID of the VM.",
16230 "format" : "pve-vmid",
16231 "maximum" : 999999999,
16232 "minimum" : 100,
16233 "type" : "integer",
16234 "typetext" : "<integer> (100 - 999999999)"
16235 }
16236 }
16237 },
16238 "permissions" : {
16239 "user" : "all"
16240 },
16241 "proxyto" : "node",
16242 "returns" : {
16243 "description" : "Returns the list of QEMU Guest Agent commands",
16244 "items" : {
16245 "properties" : {},
16246 "type" : "object"
16247 },
16248 "links" : [
16249 {
16250 "href" : "{name}",
16251 "rel" : "child"
16252 }
16253 ],
16254 "type" : "array"
16255 }
16256 },
16257 "POST" : {
16258 "allowtoken" : 1,
16259 "description" : "Execute QEMU Guest Agent commands.",
16260 "method" : "POST",
16261 "name" : "agent",
16262 "parameters" : {
16263 "additionalProperties" : 0,
16264 "properties" : {
16265 "command" : {
16266 "description" : "The QGA command.",
16267 "enum" : [
16268 "fsfreeze-freeze",
16269 "fsfreeze-status",
16270 "fsfreeze-thaw",
16271 "fstrim",
16272 "get-fsinfo",
16273 "get-host-name",
16274 "get-memory-block-info",
16275 "get-memory-blocks",
16276 "get-osinfo",
16277 "get-time",
16278 "get-timezone",
16279 "get-users",
16280 "get-vcpus",
16281 "info",
16282 "network-get-interfaces",
16283 "ping",
16284 "shutdown",
16285 "suspend-disk",
16286 "suspend-hybrid",
16287 "suspend-ram"
16288 ],
16289 "type" : "string"
16290 },
16291 "node" : {
16292 "description" : "The cluster node name.",
16293 "format" : "pve-node",
16294 "type" : "string",
16295 "typetext" : "<string>"
16296 },
16297 "vmid" : {
16298 "description" : "The (unique) ID of the VM.",
16299 "format" : "pve-vmid",
16300 "maximum" : 999999999,
16301 "minimum" : 100,
16302 "type" : "integer",
16303 "typetext" : "<integer> (100 - 999999999)"
16304 }
16305 }
16306 },
16307 "permissions" : {
16308 "check" : [
16309 "perm",
16310 "/vms/{vmid}",
16311 [
16312 "VM.Monitor"
16313 ]
16314 ]
16315 },
16316 "protected" : 1,
16317 "proxyto" : "node",
16318 "returns" : {
16319 "description" : "Returns an object with a single `result` property.",
16320 "type" : "object"
16321 }
16322 }
16323 },
16324 "leaf" : 0,
16325 "path" : "/nodes/{node}/qemu/{vmid}/agent",
16326 "text" : "agent"
16327 },
16328 {
16329 "info" : {
16330 "GET" : {
16331 "allowtoken" : 1,
16332 "description" : "Read VM RRD statistics (returns PNG)",
16333 "method" : "GET",
16334 "name" : "rrd",
16335 "parameters" : {
16336 "additionalProperties" : 0,
16337 "properties" : {
16338 "cf" : {
16339 "description" : "The RRD consolidation function",
16340 "enum" : [
16341 "AVERAGE",
16342 "MAX"
16343 ],
16344 "optional" : 1,
16345 "type" : "string"
16346 },
16347 "ds" : {
16348 "description" : "The list of datasources you want to display.",
16349 "format" : "pve-configid-list",
16350 "type" : "string",
16351 "typetext" : "<string>"
16352 },
16353 "node" : {
16354 "description" : "The cluster node name.",
16355 "format" : "pve-node",
16356 "type" : "string",
16357 "typetext" : "<string>"
16358 },
16359 "timeframe" : {
16360 "description" : "Specify the time frame you are interested in.",
16361 "enum" : [
16362 "hour",
16363 "day",
16364 "week",
16365 "month",
16366 "year"
16367 ],
16368 "type" : "string"
16369 },
16370 "vmid" : {
16371 "description" : "The (unique) ID of the VM.",
16372 "format" : "pve-vmid",
16373 "maximum" : 999999999,
16374 "minimum" : 100,
16375 "type" : "integer",
16376 "typetext" : "<integer> (100 - 999999999)"
16377 }
16378 }
16379 },
16380 "permissions" : {
16381 "check" : [
16382 "perm",
16383 "/vms/{vmid}",
16384 [
16385 "VM.Audit"
16386 ]
16387 ]
16388 },
16389 "protected" : 1,
16390 "returns" : {
16391 "properties" : {
16392 "filename" : {
16393 "type" : "string"
16394 }
16395 },
16396 "type" : "object"
16397 }
16398 }
16399 },
16400 "leaf" : 1,
16401 "path" : "/nodes/{node}/qemu/{vmid}/rrd",
16402 "text" : "rrd"
16403 },
16404 {
16405 "info" : {
16406 "GET" : {
16407 "allowtoken" : 1,
16408 "description" : "Read VM RRD statistics",
16409 "method" : "GET",
16410 "name" : "rrddata",
16411 "parameters" : {
16412 "additionalProperties" : 0,
16413 "properties" : {
16414 "cf" : {
16415 "description" : "The RRD consolidation function",
16416 "enum" : [
16417 "AVERAGE",
16418 "MAX"
16419 ],
16420 "optional" : 1,
16421 "type" : "string"
16422 },
16423 "node" : {
16424 "description" : "The cluster node name.",
16425 "format" : "pve-node",
16426 "type" : "string",
16427 "typetext" : "<string>"
16428 },
16429 "timeframe" : {
16430 "description" : "Specify the time frame you are interested in.",
16431 "enum" : [
16432 "hour",
16433 "day",
16434 "week",
16435 "month",
16436 "year"
16437 ],
16438 "type" : "string"
16439 },
16440 "vmid" : {
16441 "description" : "The (unique) ID of the VM.",
16442 "format" : "pve-vmid",
16443 "maximum" : 999999999,
16444 "minimum" : 100,
16445 "type" : "integer",
16446 "typetext" : "<integer> (100 - 999999999)"
16447 }
16448 }
16449 },
16450 "permissions" : {
16451 "check" : [
16452 "perm",
16453 "/vms/{vmid}",
16454 [
16455 "VM.Audit"
16456 ]
16457 ]
16458 },
16459 "protected" : 1,
16460 "returns" : {
16461 "items" : {
16462 "properties" : {},
16463 "type" : "object"
16464 },
16465 "type" : "array"
16466 }
16467 }
16468 },
16469 "leaf" : 1,
16470 "path" : "/nodes/{node}/qemu/{vmid}/rrddata",
16471 "text" : "rrddata"
16472 },
16473 {
16474 "info" : {
16475 "GET" : {
16476 "allowtoken" : 1,
16477 "description" : "Get the virtual machine configuration with pending configuration changes applied. Set the 'current' parameter to get the current configuration instead.",
16478 "method" : "GET",
16479 "name" : "vm_config",
16480 "parameters" : {
16481 "additionalProperties" : 0,
16482 "properties" : {
16483 "current" : {
16484 "default" : 0,
16485 "description" : "Get current values (instead of pending values).",
16486 "optional" : 1,
16487 "type" : "boolean",
16488 "typetext" : "<boolean>"
16489 },
16490 "node" : {
16491 "description" : "The cluster node name.",
16492 "format" : "pve-node",
16493 "type" : "string",
16494 "typetext" : "<string>"
16495 },
16496 "snapshot" : {
16497 "description" : "Fetch config values from given snapshot.",
16498 "format" : "pve-configid",
16499 "maxLength" : 40,
16500 "optional" : 1,
16501 "type" : "string",
16502 "typetext" : "<string>"
16503 },
16504 "vmid" : {
16505 "description" : "The (unique) ID of the VM.",
16506 "format" : "pve-vmid",
16507 "maximum" : 999999999,
16508 "minimum" : 100,
16509 "type" : "integer",
16510 "typetext" : "<integer> (100 - 999999999)"
16511 }
16512 }
16513 },
16514 "permissions" : {
16515 "check" : [
16516 "perm",
16517 "/vms/{vmid}",
16518 [
16519 "VM.Audit"
16520 ]
16521 ]
16522 },
16523 "proxyto" : "node",
16524 "returns" : {
16525 "description" : "The VM configuration.",
16526 "properties" : {
16527 "acpi" : {
16528 "default" : 1,
16529 "description" : "Enable/disable ACPI.",
16530 "optional" : 1,
16531 "type" : "boolean"
16532 },
16533 "affinity" : {
16534 "description" : "List of host cores used to execute guest processes, for example: 0,5,8-11",
16535 "format" : "pve-cpuset",
16536 "optional" : 1,
16537 "type" : "string"
16538 },
16539 "agent" : {
16540 "description" : "Enable/disable communication with the QEMU Guest Agent and its properties.",
16541 "format" : {
16542 "enabled" : {
16543 "default" : 0,
16544 "default_key" : 1,
16545 "description" : "Enable/disable communication with a QEMU Guest Agent (QGA) running in the VM.",
16546 "type" : "boolean"
16547 },
16548 "freeze-fs-on-backup" : {
16549 "default" : 1,
16550 "description" : "Freeze/thaw guest filesystems on backup for consistency.",
16551 "optional" : 1,
16552 "type" : "boolean"
16553 },
16554 "fstrim_cloned_disks" : {
16555 "default" : 0,
16556 "description" : "Run fstrim after moving a disk or migrating the VM.",
16557 "optional" : 1,
16558 "type" : "boolean"
16559 },
16560 "type" : {
16561 "default" : "virtio",
16562 "description" : "Select the agent type",
16563 "enum" : [
16564 "virtio",
16565 "isa"
16566 ],
16567 "optional" : 1,
16568 "type" : "string"
16569 }
16570 },
16571 "optional" : 1,
16572 "type" : "string"
16573 },
16574 "arch" : {
16575 "description" : "Virtual processor architecture. Defaults to the host.",
16576 "enum" : [
16577 "x86_64",
16578 "aarch64"
16579 ],
16580 "optional" : 1,
16581 "type" : "string"
16582 },
16583 "args" : {
16584 "description" : "Arbitrary arguments passed to kvm.",
16585 "optional" : 1,
16586 "type" : "string",
16587 "verbose_description" : "Arbitrary arguments passed to kvm, for example:\n\nargs: -no-reboot -smbios 'type=0,vendor=FOO'\n\nNOTE: this option is for experts only.\n"
16588 },
16589 "audio0" : {
16590 "description" : "Configure a audio device, useful in combination with QXL/Spice.",
16591 "format" : {
16592 "device" : {
16593 "description" : "Configure an audio device.",
16594 "enum" : [
16595 "ich9-intel-hda",
16596 "intel-hda",
16597 "AC97"
16598 ],
16599 "type" : "string"
16600 },
16601 "driver" : {
16602 "default" : "spice",
16603 "description" : "Driver backend for the audio device.",
16604 "enum" : [
16605 "spice",
16606 "none"
16607 ],
16608 "optional" : 1,
16609 "type" : "string"
16610 }
16611 },
16612 "optional" : 1,
16613 "type" : "string"
16614 },
16615 "autostart" : {
16616 "default" : 0,
16617 "description" : "Automatic restart after crash (currently ignored).",
16618 "optional" : 1,
16619 "type" : "boolean"
16620 },
16621 "balloon" : {
16622 "description" : "Amount of target RAM for the VM in MiB. Using zero disables the ballon driver.",
16623 "minimum" : 0,
16624 "optional" : 1,
16625 "type" : "integer"
16626 },
16627 "bios" : {
16628 "default" : "seabios",
16629 "description" : "Select BIOS implementation.",
16630 "enum" : [
16631 "seabios",
16632 "ovmf"
16633 ],
16634 "optional" : 1,
16635 "type" : "string"
16636 },
16637 "boot" : {
16638 "description" : "Specify guest boot order. Use the 'order=' sub-property as usage with no key or 'legacy=' is deprecated.",
16639 "format" : "pve-qm-boot",
16640 "optional" : 1,
16641 "type" : "string"
16642 },
16643 "bootdisk" : {
16644 "description" : "Enable booting from specified disk. Deprecated: Use 'boot: order=foo;bar' instead.",
16645 "format" : "pve-qm-bootdisk",
16646 "optional" : 1,
16647 "pattern" : "(ide|sata|scsi|virtio)\\d+",
16648 "type" : "string"
16649 },
16650 "cdrom" : {
16651 "description" : "This is an alias for option -ide2",
16652 "format" : "pve-qm-ide",
16653 "optional" : 1,
16654 "type" : "string",
16655 "typetext" : "<volume>"
16656 },
16657 "cicustom" : {
16658 "description" : "cloud-init: Specify custom files to replace the automatically generated ones at start.",
16659 "format" : "pve-qm-cicustom",
16660 "optional" : 1,
16661 "type" : "string"
16662 },
16663 "cipassword" : {
16664 "description" : "cloud-init: Password to assign the user. Using this is generally not recommended. Use ssh keys instead. Also note that older cloud-init versions do not support hashed passwords.",
16665 "optional" : 1,
16666 "type" : "string"
16667 },
16668 "citype" : {
16669 "description" : "Specifies the cloud-init configuration format. The default depends on the configured operating system type (`ostype`. We use the `nocloud` format for Linux, and `configdrive2` for windows.",
16670 "enum" : [
16671 "configdrive2",
16672 "nocloud",
16673 "opennebula"
16674 ],
16675 "optional" : 1,
16676 "type" : "string"
16677 },
16678 "ciupgrade" : {
16679 "default" : 1,
16680 "description" : "cloud-init: do an automatic package upgrade after the first boot.",
16681 "optional" : 1,
16682 "type" : "boolean"
16683 },
16684 "ciuser" : {
16685 "description" : "cloud-init: User name to change ssh keys and password for instead of the image's configured default user.",
16686 "optional" : 1,
16687 "type" : "string"
16688 },
16689 "cores" : {
16690 "default" : 1,
16691 "description" : "The number of cores per socket.",
16692 "minimum" : 1,
16693 "optional" : 1,
16694 "type" : "integer"
16695 },
16696 "cpu" : {
16697 "description" : "Emulated CPU type.",
16698 "format" : "pve-vm-cpu-conf",
16699 "optional" : 1,
16700 "type" : "string"
16701 },
16702 "cpulimit" : {
16703 "default" : 0,
16704 "description" : "Limit of CPU usage.",
16705 "maximum" : 128,
16706 "minimum" : 0,
16707 "optional" : 1,
16708 "type" : "number",
16709 "verbose_description" : "Limit of CPU usage.\n\nNOTE: If the computer has 2 CPUs, it has total of '2' CPU time. Value '0' indicates no CPU limit."
16710 },
16711 "cpuunits" : {
16712 "default" : "cgroup v1: 1024, cgroup v2: 100",
16713 "description" : "CPU weight for a VM, will be clamped to [1, 10000] in cgroup v2.",
16714 "maximum" : 262144,
16715 "minimum" : 1,
16716 "optional" : 1,
16717 "type" : "integer",
16718 "verbose_description" : "CPU weight for a VM. Argument is used in the kernel fair scheduler. The larger the number is, the more CPU time this VM gets. Number is relative to weights of all the other running VMs."
16719 },
16720 "description" : {
16721 "description" : "Description for the VM. Shown in the web-interface VM's summary. This is saved as comment inside the configuration file.",
16722 "maxLength" : 8192,
16723 "optional" : 1,
16724 "type" : "string"
16725 },
16726 "digest" : {
16727 "description" : "SHA1 digest of configuration file. This can be used to prevent concurrent modifications.",
16728 "type" : "string"
16729 },
16730 "efidisk0" : {
16731 "description" : "Configure a disk for storing EFI vars.",
16732 "format" : {
16733 "efitype" : {
16734 "default" : "2m",
16735 "description" : "Size and type of the OVMF EFI vars. '4m' is newer and recommended, and required for Secure Boot. For backwards compatibility, '2m' is used if not otherwise specified. Ignored for VMs with arch=aarch64 (ARM).",
16736 "enum" : [
16737 "2m",
16738 "4m"
16739 ],
16740 "optional" : 1,
16741 "type" : "string"
16742 },
16743 "file" : {
16744 "default_key" : 1,
16745 "description" : "The drive's backing volume.",
16746 "format" : "pve-volume-id-or-qm-path",
16747 "format_description" : "volume",
16748 "type" : "string"
16749 },
16750 "format" : {
16751 "description" : "The drive's backing file's data format.",
16752 "enum" : [
16753 "raw",
16754 "cow",
16755 "qcow",
16756 "qed",
16757 "qcow2",
16758 "vmdk",
16759 "cloop"
16760 ],
16761 "optional" : 1,
16762 "type" : "string"
16763 },
16764 "pre-enrolled-keys" : {
16765 "default" : 0,
16766 "description" : "Use am EFI vars template with distribution-specific and Microsoft Standard keys enrolled, if used with 'efitype=4m'. Note that this will enable Secure Boot by default, though it can still be turned off from within the VM.",
16767 "optional" : 1,
16768 "type" : "boolean"
16769 },
16770 "size" : {
16771 "description" : "Disk size. This is purely informational and has no effect.",
16772 "format" : "disk-size",
16773 "format_description" : "DiskSize",
16774 "optional" : 1,
16775 "type" : "string"
16776 },
16777 "volume" : {
16778 "alias" : "file"
16779 }
16780 },
16781 "optional" : 1,
16782 "type" : "string"
16783 },
16784 "freeze" : {
16785 "description" : "Freeze CPU at startup (use 'c' monitor command to start execution).",
16786 "optional" : 1,
16787 "type" : "boolean"
16788 },
16789 "hookscript" : {
16790 "description" : "Script that will be executed during various steps in the vms lifetime.",
16791 "format" : "pve-volume-id",
16792 "optional" : 1,
16793 "type" : "string"
16794 },
16795 "hostpci[n]" : {
16796 "description" : "Map host PCI devices into guest.",
16797 "format" : "pve-qm-hostpci",
16798 "optional" : 1,
16799 "type" : "string",
16800 "verbose_description" : "Map host PCI devices into guest.\n\nNOTE: This option allows direct access to host hardware. So it is no longer\npossible to migrate such machines - use with special care.\n\nCAUTION: Experimental! User reported problems with this option.\n"
16801 },
16802 "hotplug" : {
16803 "default" : "network,disk,usb",
16804 "description" : "Selectively enable hotplug features. This is a comma separated list of hotplug features: 'network', 'disk', 'cpu', 'memory', 'usb' and 'cloudinit'. Use '0' to disable hotplug completely. Using '1' as value is an alias for the default `network,disk,usb`. USB hotplugging is possible for guests with machine version >= 7.1 and ostype l26 or windows > 7.",
16805 "format" : "pve-hotplug-features",
16806 "optional" : 1,
16807 "type" : "string"
16808 },
16809 "hugepages" : {
16810 "description" : "Enable/disable hugepages memory.",
16811 "enum" : [
16812 "any",
16813 "2",
16814 "1024"
16815 ],
16816 "optional" : 1,
16817 "type" : "string"
16818 },
16819 "ide[n]" : {
16820 "description" : "Use volume as IDE hard disk or CD-ROM (n is 0 to 3).",
16821 "format" : {
16822 "aio" : {
16823 "description" : "AIO type to use.",
16824 "enum" : [
16825 "native",
16826 "threads",
16827 "io_uring"
16828 ],
16829 "optional" : 1,
16830 "type" : "string"
16831 },
16832 "backup" : {
16833 "description" : "Whether the drive should be included when making backups.",
16834 "optional" : 1,
16835 "type" : "boolean"
16836 },
16837 "bps" : {
16838 "description" : "Maximum r/w speed in bytes per second.",
16839 "format_description" : "bps",
16840 "optional" : 1,
16841 "type" : "integer"
16842 },
16843 "bps_max_length" : {
16844 "description" : "Maximum length of I/O bursts in seconds.",
16845 "format_description" : "seconds",
16846 "minimum" : 1,
16847 "optional" : 1,
16848 "type" : "integer"
16849 },
16850 "bps_rd" : {
16851 "description" : "Maximum read speed in bytes per second.",
16852 "format_description" : "bps",
16853 "optional" : 1,
16854 "type" : "integer"
16855 },
16856 "bps_rd_length" : {
16857 "alias" : "bps_rd_max_length"
16858 },
16859 "bps_rd_max_length" : {
16860 "description" : "Maximum length of read I/O bursts in seconds.",
16861 "format_description" : "seconds",
16862 "minimum" : 1,
16863 "optional" : 1,
16864 "type" : "integer"
16865 },
16866 "bps_wr" : {
16867 "description" : "Maximum write speed in bytes per second.",
16868 "format_description" : "bps",
16869 "optional" : 1,
16870 "type" : "integer"
16871 },
16872 "bps_wr_length" : {
16873 "alias" : "bps_wr_max_length"
16874 },
16875 "bps_wr_max_length" : {
16876 "description" : "Maximum length of write I/O bursts in seconds.",
16877 "format_description" : "seconds",
16878 "minimum" : 1,
16879 "optional" : 1,
16880 "type" : "integer"
16881 },
16882 "cache" : {
16883 "description" : "The drive's cache mode",
16884 "enum" : [
16885 "none",
16886 "writethrough",
16887 "writeback",
16888 "unsafe",
16889 "directsync"
16890 ],
16891 "optional" : 1,
16892 "type" : "string"
16893 },
16894 "cyls" : {
16895 "description" : "Force the drive's physical geometry to have a specific cylinder count.",
16896 "optional" : 1,
16897 "type" : "integer"
16898 },
16899 "detect_zeroes" : {
16900 "description" : "Controls whether to detect and try to optimize writes of zeroes.",
16901 "optional" : 1,
16902 "type" : "boolean"
16903 },
16904 "discard" : {
16905 "description" : "Controls whether to pass discard/trim requests to the underlying storage.",
16906 "enum" : [
16907 "ignore",
16908 "on"
16909 ],
16910 "optional" : 1,
16911 "type" : "string"
16912 },
16913 "file" : {
16914 "default_key" : 1,
16915 "description" : "The drive's backing volume.",
16916 "format" : "pve-volume-id-or-qm-path",
16917 "format_description" : "volume",
16918 "type" : "string"
16919 },
16920 "format" : {
16921 "description" : "The drive's backing file's data format.",
16922 "enum" : [
16923 "raw",
16924 "cow",
16925 "qcow",
16926 "qed",
16927 "qcow2",
16928 "vmdk",
16929 "cloop"
16930 ],
16931 "optional" : 1,
16932 "type" : "string"
16933 },
16934 "heads" : {
16935 "description" : "Force the drive's physical geometry to have a specific head count.",
16936 "optional" : 1,
16937 "type" : "integer"
16938 },
16939 "iops" : {
16940 "description" : "Maximum r/w I/O in operations per second.",
16941 "format_description" : "iops",
16942 "optional" : 1,
16943 "type" : "integer"
16944 },
16945 "iops_max" : {
16946 "description" : "Maximum unthrottled r/w I/O pool in operations per second.",
16947 "format_description" : "iops",
16948 "optional" : 1,
16949 "type" : "integer"
16950 },
16951 "iops_max_length" : {
16952 "description" : "Maximum length of I/O bursts in seconds.",
16953 "format_description" : "seconds",
16954 "minimum" : 1,
16955 "optional" : 1,
16956 "type" : "integer"
16957 },
16958 "iops_rd" : {
16959 "description" : "Maximum read I/O in operations per second.",
16960 "format_description" : "iops",
16961 "optional" : 1,
16962 "type" : "integer"
16963 },
16964 "iops_rd_length" : {
16965 "alias" : "iops_rd_max_length"
16966 },
16967 "iops_rd_max" : {
16968 "description" : "Maximum unthrottled read I/O pool in operations per second.",
16969 "format_description" : "iops",
16970 "optional" : 1,
16971 "type" : "integer"
16972 },
16973 "iops_rd_max_length" : {
16974 "description" : "Maximum length of read I/O bursts in seconds.",
16975 "format_description" : "seconds",
16976 "minimum" : 1,
16977 "optional" : 1,
16978 "type" : "integer"
16979 },
16980 "iops_wr" : {
16981 "description" : "Maximum write I/O in operations per second.",
16982 "format_description" : "iops",
16983 "optional" : 1,
16984 "type" : "integer"
16985 },
16986 "iops_wr_length" : {
16987 "alias" : "iops_wr_max_length"
16988 },
16989 "iops_wr_max" : {
16990 "description" : "Maximum unthrottled write I/O pool in operations per second.",
16991 "format_description" : "iops",
16992 "optional" : 1,
16993 "type" : "integer"
16994 },
16995 "iops_wr_max_length" : {
16996 "description" : "Maximum length of write I/O bursts in seconds.",
16997 "format_description" : "seconds",
16998 "minimum" : 1,
16999 "optional" : 1,
17000 "type" : "integer"
17001 },
17002 "mbps" : {
17003 "description" : "Maximum r/w speed in megabytes per second.",
17004 "format_description" : "mbps",
17005 "optional" : 1,
17006 "type" : "number"
17007 },
17008 "mbps_max" : {
17009 "description" : "Maximum unthrottled r/w pool in megabytes per second.",
17010 "format_description" : "mbps",
17011 "optional" : 1,
17012 "type" : "number"
17013 },
17014 "mbps_rd" : {
17015 "description" : "Maximum read speed in megabytes per second.",
17016 "format_description" : "mbps",
17017 "optional" : 1,
17018 "type" : "number"
17019 },
17020 "mbps_rd_max" : {
17021 "description" : "Maximum unthrottled read pool in megabytes per second.",
17022 "format_description" : "mbps",
17023 "optional" : 1,
17024 "type" : "number"
17025 },
17026 "mbps_wr" : {
17027 "description" : "Maximum write speed in megabytes per second.",
17028 "format_description" : "mbps",
17029 "optional" : 1,
17030 "type" : "number"
17031 },
17032 "mbps_wr_max" : {
17033 "description" : "Maximum unthrottled write pool in megabytes per second.",
17034 "format_description" : "mbps",
17035 "optional" : 1,
17036 "type" : "number"
17037 },
17038 "media" : {
17039 "default" : "disk",
17040 "description" : "The drive's media type.",
17041 "enum" : [
17042 "cdrom",
17043 "disk"
17044 ],
17045 "optional" : 1,
17046 "type" : "string"
17047 },
17048 "model" : {
17049 "description" : "The drive's reported model name, url-encoded, up to 40 bytes long.",
17050 "format" : "urlencoded",
17051 "format_description" : "model",
17052 "maxLength" : 120,
17053 "optional" : 1,
17054 "type" : "string"
17055 },
17056 "replicate" : {
17057 "default" : 1,
17058 "description" : "Whether the drive should considered for replication jobs.",
17059 "optional" : 1,
17060 "type" : "boolean"
17061 },
17062 "rerror" : {
17063 "description" : "Read error action.",
17064 "enum" : [
17065 "ignore",
17066 "report",
17067 "stop"
17068 ],
17069 "optional" : 1,
17070 "type" : "string"
17071 },
17072 "secs" : {
17073 "description" : "Force the drive's physical geometry to have a specific sector count.",
17074 "optional" : 1,
17075 "type" : "integer"
17076 },
17077 "serial" : {
17078 "description" : "The drive's reported serial number, url-encoded, up to 20 bytes long.",
17079 "format" : "urlencoded",
17080 "format_description" : "serial",
17081 "maxLength" : 60,
17082 "optional" : 1,
17083 "type" : "string"
17084 },
17085 "shared" : {
17086 "default" : 0,
17087 "description" : "Mark this locally-managed volume as available on all nodes",
17088 "optional" : 1,
17089 "type" : "boolean",
17090 "verbose_description" : "Mark this locally-managed volume as available on all nodes.\n\nWARNING: This option does not share the volume automatically, it assumes it is shared already!"
17091 },
17092 "size" : {
17093 "description" : "Disk size. This is purely informational and has no effect.",
17094 "format" : "disk-size",
17095 "format_description" : "DiskSize",
17096 "optional" : 1,
17097 "type" : "string"
17098 },
17099 "snapshot" : {
17100 "description" : "Controls qemu's snapshot mode feature. If activated, changes made to the disk are temporary and will be discarded when the VM is shutdown.",
17101 "optional" : 1,
17102 "type" : "boolean"
17103 },
17104 "ssd" : {
17105 "description" : "Whether to expose this drive as an SSD, rather than a rotational hard disk.",
17106 "optional" : 1,
17107 "type" : "boolean"
17108 },
17109 "trans" : {
17110 "description" : "Force disk geometry bios translation mode.",
17111 "enum" : [
17112 "none",
17113 "lba",
17114 "auto"
17115 ],
17116 "optional" : 1,
17117 "type" : "string"
17118 },
17119 "volume" : {
17120 "alias" : "file"
17121 },
17122 "werror" : {
17123 "description" : "Write error action.",
17124 "enum" : [
17125 "enospc",
17126 "ignore",
17127 "report",
17128 "stop"
17129 ],
17130 "optional" : 1,
17131 "type" : "string"
17132 },
17133 "wwn" : {
17134 "description" : "The drive's worldwide name, encoded as 16 bytes hex string, prefixed by '0x'.",
17135 "format_description" : "wwn",
17136 "optional" : 1,
17137 "pattern" : "(?^:^(0x)[0-9a-fA-F]{16})",
17138 "type" : "string"
17139 }
17140 },
17141 "optional" : 1,
17142 "type" : "string"
17143 },
17144 "ipconfig[n]" : {
17145 "description" : "cloud-init: Specify IP addresses and gateways for the corresponding interface.\n\nIP addresses use CIDR notation, gateways are optional but need an IP of the same type specified.\n\nThe special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit\ngateway should be provided.\nFor IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires\ncloud-init 19.4 or newer.\n\nIf cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using\ndhcp on IPv4.\n",
17146 "format" : "pve-qm-ipconfig",
17147 "optional" : 1,
17148 "type" : "string"
17149 },
17150 "ivshmem" : {
17151 "description" : "Inter-VM shared memory. Useful for direct communication between VMs, or to the host.",
17152 "format" : {
17153 "name" : {
17154 "description" : "The name of the file. Will be prefixed with 'pve-shm-'. Default is the VMID. Will be deleted when the VM is stopped.",
17155 "format_description" : "string",
17156 "optional" : 1,
17157 "pattern" : "[a-zA-Z0-9\\-]+",
17158 "type" : "string"
17159 },
17160 "size" : {
17161 "description" : "The size of the file in MB.",
17162 "minimum" : 1,
17163 "type" : "integer"
17164 }
17165 },
17166 "optional" : 1,
17167 "type" : "string"
17168 },
17169 "keephugepages" : {
17170 "default" : 0,
17171 "description" : "Use together with hugepages. If enabled, hugepages will not not be deleted after VM shutdown and can be used for subsequent starts.",
17172 "optional" : 1,
17173 "type" : "boolean"
17174 },
17175 "keyboard" : {
17176 "default" : null,
17177 "description" : "Keyboard layout for VNC server. This option is generally not required and is often better handled from within the guest OS.",
17178 "enum" : [
17179 "de",
17180 "de-ch",
17181 "da",
17182 "en-gb",
17183 "en-us",
17184 "es",
17185 "fi",
17186 "fr",
17187 "fr-be",
17188 "fr-ca",
17189 "fr-ch",
17190 "hu",
17191 "is",
17192 "it",
17193 "ja",
17194 "lt",
17195 "mk",
17196 "nl",
17197 "no",
17198 "pl",
17199 "pt",
17200 "pt-br",
17201 "sv",
17202 "sl",
17203 "tr"
17204 ],
17205 "optional" : 1,
17206 "type" : "string"
17207 },
17208 "kvm" : {
17209 "default" : 1,
17210 "description" : "Enable/disable KVM hardware virtualization.",
17211 "optional" : 1,
17212 "type" : "boolean"
17213 },
17214 "localtime" : {
17215 "description" : "Set the real time clock (RTC) to local time. This is enabled by default if the `ostype` indicates a Microsoft Windows OS.",
17216 "optional" : 1,
17217 "type" : "boolean"
17218 },
17219 "lock" : {
17220 "description" : "Lock/unlock the VM.",
17221 "enum" : [
17222 "backup",
17223 "clone",
17224 "create",
17225 "migrate",
17226 "rollback",
17227 "snapshot",
17228 "snapshot-delete",
17229 "suspending",
17230 "suspended"
17231 ],
17232 "optional" : 1,
17233 "type" : "string"
17234 },
17235 "machine" : {
17236 "description" : "Specify the QEMU machine.",
17237 "format" : {
17238 "type" : {
17239 "default_key" : 1,
17240 "description" : "Specifies the QEMU machine type.",
17241 "format_description" : "machine type",
17242 "maxLength" : 40,
17243 "optional" : 1,
17244 "pattern" : "(pc|pc(-i440fx)?-\\d+(\\.\\d+)+(\\+pve\\d+)?(\\.pxe)?|q35|pc-q35-\\d+(\\.\\d+)+(\\+pve\\d+)?(\\.pxe)?|virt(?:-\\d+(\\.\\d+)+)?(\\+pve\\d+)?)",
17245 "type" : "string"
17246 },
17247 "viommu" : {
17248 "description" : "Enable and set guest vIOMMU variant (Intel vIOMMU needs q35 to be set as machine type).",
17249 "enum" : [
17250 "intel",
17251 "virtio"
17252 ],
17253 "optional" : 1,
17254 "type" : "string"
17255 }
17256 },
17257 "optional" : 1,
17258 "type" : "string"
17259 },
17260 "memory" : {
17261 "description" : "Memory properties.",
17262 "format" : {
17263 "current" : {
17264 "default" : 512,
17265 "default_key" : 1,
17266 "description" : "Current amount of online RAM for the VM in MiB. This is the maximum available memory when you use the balloon device.",
17267 "minimum" : 16,
17268 "type" : "integer"
17269 }
17270 },
17271 "optional" : 1,
17272 "type" : "string"
17273 },
17274 "migrate_downtime" : {
17275 "default" : 0.1,
17276 "description" : "Set maximum tolerated downtime (in seconds) for migrations.",
17277 "minimum" : 0,
17278 "optional" : 1,
17279 "type" : "number"
17280 },
17281 "migrate_speed" : {
17282 "default" : 0,
17283 "description" : "Set maximum speed (in MB/s) for migrations. Value 0 is no limit.",
17284 "minimum" : 0,
17285 "optional" : 1,
17286 "type" : "integer"
17287 },
17288 "name" : {
17289 "description" : "Set a name for the VM. Only used on the configuration web interface.",
17290 "format" : "dns-name",
17291 "optional" : 1,
17292 "type" : "string"
17293 },
17294 "nameserver" : {
17295 "description" : "cloud-init: Sets DNS server IP address for a container. Create will automatically use the setting from the host if neither searchdomain nor nameserver are set.",
17296 "format" : "address-list",
17297 "optional" : 1,
17298 "type" : "string"
17299 },
17300 "net[n]" : {
17301 "description" : "Specify network devices.",
17302 "format" : {
17303 "bridge" : {
17304 "description" : "Bridge to attach the network device to. The Proxmox VE standard bridge\nis called 'vmbr0'.\n\nIf you do not specify a bridge, we create a kvm user (NATed) network\ndevice, which provides DHCP and DNS services. The following addresses\nare used:\n\n 10.0.2.2 Gateway\n 10.0.2.3 DNS Server\n 10.0.2.4 SMB Server\n\nThe DHCP server assign addresses to the guest starting from 10.0.2.15.\n",
17305 "format" : "pve-bridge-id",
17306 "format_description" : "bridge",
17307 "optional" : 1,
17308 "type" : "string"
17309 },
17310 "e1000" : {
17311 "alias" : "macaddr",
17312 "keyAlias" : "model"
17313 },
17314 "e1000-82540em" : {
17315 "alias" : "macaddr",
17316 "keyAlias" : "model"
17317 },
17318 "e1000-82544gc" : {
17319 "alias" : "macaddr",
17320 "keyAlias" : "model"
17321 },
17322 "e1000-82545em" : {
17323 "alias" : "macaddr",
17324 "keyAlias" : "model"
17325 },
17326 "e1000e" : {
17327 "alias" : "macaddr",
17328 "keyAlias" : "model"
17329 },
17330 "firewall" : {
17331 "description" : "Whether this interface should be protected by the firewall.",
17332 "optional" : 1,
17333 "type" : "boolean"
17334 },
17335 "i82551" : {
17336 "alias" : "macaddr",
17337 "keyAlias" : "model"
17338 },
17339 "i82557b" : {
17340 "alias" : "macaddr",
17341 "keyAlias" : "model"
17342 },
17343 "i82559er" : {
17344 "alias" : "macaddr",
17345 "keyAlias" : "model"
17346 },
17347 "link_down" : {
17348 "description" : "Whether this interface should be disconnected (like pulling the plug).",
17349 "optional" : 1,
17350 "type" : "boolean"
17351 },
17352 "macaddr" : {
17353 "description" : "MAC address. That address must be unique withing your network. This is automatically generated if not specified.",
17354 "format" : "mac-addr",
17355 "format_description" : "XX:XX:XX:XX:XX:XX",
17356 "optional" : 1,
17357 "type" : "string",
17358 "verbose_description" : "A common MAC address with the I/G (Individual/Group) bit not set."
17359 },
17360 "model" : {
17361 "default_key" : 1,
17362 "description" : "Network Card Model. The 'virtio' model provides the best performance with very low CPU overhead. If your guest does not support this driver, it is usually best to use 'e1000'.",
17363 "enum" : [
17364 "e1000",
17365 "e1000-82540em",
17366 "e1000-82544gc",
17367 "e1000-82545em",
17368 "e1000e",
17369 "i82551",
17370 "i82557b",
17371 "i82559er",
17372 "ne2k_isa",
17373 "ne2k_pci",
17374 "pcnet",
17375 "rtl8139",
17376 "virtio",
17377 "vmxnet3"
17378 ],
17379 "type" : "string"
17380 },
17381 "mtu" : {
17382 "description" : "Force MTU, for VirtIO only. Set to '1' to use the bridge MTU",
17383 "maximum" : 65520,
17384 "minimum" : 1,
17385 "optional" : 1,
17386 "type" : "integer"
17387 },
17388 "ne2k_isa" : {
17389 "alias" : "macaddr",
17390 "keyAlias" : "model"
17391 },
17392 "ne2k_pci" : {
17393 "alias" : "macaddr",
17394 "keyAlias" : "model"
17395 },
17396 "pcnet" : {
17397 "alias" : "macaddr",
17398 "keyAlias" : "model"
17399 },
17400 "queues" : {
17401 "description" : "Number of packet queues to be used on the device.",
17402 "maximum" : 64,
17403 "minimum" : 0,
17404 "optional" : 1,
17405 "type" : "integer"
17406 },
17407 "rate" : {
17408 "description" : "Rate limit in mbps (megabytes per second) as floating point number.",
17409 "minimum" : 0,
17410 "optional" : 1,
17411 "type" : "number"
17412 },
17413 "rtl8139" : {
17414 "alias" : "macaddr",
17415 "keyAlias" : "model"
17416 },
17417 "tag" : {
17418 "description" : "VLAN tag to apply to packets on this interface.",
17419 "maximum" : 4094,
17420 "minimum" : 1,
17421 "optional" : 1,
17422 "type" : "integer"
17423 },
17424 "trunks" : {
17425 "description" : "VLAN trunks to pass through this interface.",
17426 "format_description" : "vlanid[;vlanid...]",
17427 "optional" : 1,
17428 "pattern" : "(?^:\\d+(?:-\\d+)?(?:;\\d+(?:-\\d+)?)*)",
17429 "type" : "string"
17430 },
17431 "virtio" : {
17432 "alias" : "macaddr",
17433 "keyAlias" : "model"
17434 },
17435 "vmxnet3" : {
17436 "alias" : "macaddr",
17437 "keyAlias" : "model"
17438 }
17439 },
17440 "optional" : 1,
17441 "type" : "string"
17442 },
17443 "numa" : {
17444 "default" : 0,
17445 "description" : "Enable/disable NUMA.",
17446 "optional" : 1,
17447 "type" : "boolean"
17448 },
17449 "numa[n]" : {
17450 "description" : "NUMA topology.",
17451 "format" : {
17452 "cpus" : {
17453 "description" : "CPUs accessing this NUMA node.",
17454 "format_description" : "id[-id];...",
17455 "pattern" : "(?^:\\d+(?:-\\d+)?(?:;\\d+(?:-\\d+)?)*)",
17456 "type" : "string"
17457 },
17458 "hostnodes" : {
17459 "description" : "Host NUMA nodes to use.",
17460 "format_description" : "id[-id];...",
17461 "optional" : 1,
17462 "pattern" : "(?^:\\d+(?:-\\d+)?(?:;\\d+(?:-\\d+)?)*)",
17463 "type" : "string"
17464 },
17465 "memory" : {
17466 "description" : "Amount of memory this NUMA node provides.",
17467 "optional" : 1,
17468 "type" : "number"
17469 },
17470 "policy" : {
17471 "description" : "NUMA allocation policy.",
17472 "enum" : [
17473 "preferred",
17474 "bind",
17475 "interleave"
17476 ],
17477 "optional" : 1,
17478 "type" : "string"
17479 }
17480 },
17481 "optional" : 1,
17482 "type" : "string"
17483 },
17484 "onboot" : {
17485 "default" : 0,
17486 "description" : "Specifies whether a VM will be started during system bootup.",
17487 "optional" : 1,
17488 "type" : "boolean"
17489 },
17490 "ostype" : {
17491 "description" : "Specify guest operating system.",
17492 "enum" : [
17493 "other",
17494 "wxp",
17495 "w2k",
17496 "w2k3",
17497 "w2k8",
17498 "wvista",
17499 "win7",
17500 "win8",
17501 "win10",
17502 "win11",
17503 "l24",
17504 "l26",
17505 "solaris"
17506 ],
17507 "optional" : 1,
17508 "type" : "string",
17509 "verbose_description" : "Specify guest operating system. This is used to enable special\noptimization/features for specific operating systems:\n\n[horizontal]\nother;; unspecified OS\nwxp;; Microsoft Windows XP\nw2k;; Microsoft Windows 2000\nw2k3;; Microsoft Windows 2003\nw2k8;; Microsoft Windows 2008\nwvista;; Microsoft Windows Vista\nwin7;; Microsoft Windows 7\nwin8;; Microsoft Windows 8/2012/2012r2\nwin10;; Microsoft Windows 10/2016/2019\nwin11;; Microsoft Windows 11/2022\nl24;; Linux 2.4 Kernel\nl26;; Linux 2.6 - 6.X Kernel\nsolaris;; Solaris/OpenSolaris/OpenIndiania kernel\n"
17510 },
17511 "parallel[n]" : {
17512 "description" : "Map host parallel devices (n is 0 to 2).",
17513 "optional" : 1,
17514 "pattern" : "/dev/parport\\d+|/dev/usb/lp\\d+",
17515 "type" : "string",
17516 "verbose_description" : "Map host parallel devices (n is 0 to 2).\n\nNOTE: This option allows direct access to host hardware. So it is no longer possible to migrate such\nmachines - use with special care.\n\nCAUTION: Experimental! User reported problems with this option.\n"
17517 },
17518 "protection" : {
17519 "default" : 0,
17520 "description" : "Sets the protection flag of the VM. This will disable the remove VM and remove disk operations.",
17521 "optional" : 1,
17522 "type" : "boolean"
17523 },
17524 "reboot" : {
17525 "default" : 1,
17526 "description" : "Allow reboot. If set to '0' the VM exit on reboot.",
17527 "optional" : 1,
17528 "type" : "boolean"
17529 },
17530 "rng0" : {
17531 "description" : "Configure a VirtIO-based Random Number Generator.",
17532 "format" : {
17533 "max_bytes" : {
17534 "default" : 1024,
17535 "description" : "Maximum bytes of entropy allowed to get injected into the guest every 'period' milliseconds. Prefer a lower value when using '/dev/random' as source. Use `0` to disable limiting (potentially dangerous!).",
17536 "optional" : 1,
17537 "type" : "integer"
17538 },
17539 "period" : {
17540 "default" : 1000,
17541 "description" : "Every 'period' milliseconds the entropy-injection quota is reset, allowing the guest to retrieve another 'max_bytes' of entropy.",
17542 "optional" : 1,
17543 "type" : "integer"
17544 },
17545 "source" : {
17546 "default_key" : 1,
17547 "description" : "The file on the host to gather entropy from. In most cases '/dev/urandom' should be preferred over '/dev/random' to avoid entropy-starvation issues on the host. Using urandom does *not* decrease security in any meaningful way, as it's still seeded from real entropy, and the bytes provided will most likely be mixed with real entropy on the guest as well. '/dev/hwrng' can be used to pass through a hardware RNG from the host.",
17548 "enum" : [
17549 "/dev/urandom",
17550 "/dev/random",
17551 "/dev/hwrng"
17552 ],
17553 "type" : "string"
17554 }
17555 },
17556 "optional" : 1,
17557 "type" : "string"
17558 },
17559 "sata[n]" : {
17560 "description" : "Use volume as SATA hard disk or CD-ROM (n is 0 to 5).",
17561 "format" : {
17562 "aio" : {
17563 "description" : "AIO type to use.",
17564 "enum" : [
17565 "native",
17566 "threads",
17567 "io_uring"
17568 ],
17569 "optional" : 1,
17570 "type" : "string"
17571 },
17572 "backup" : {
17573 "description" : "Whether the drive should be included when making backups.",
17574 "optional" : 1,
17575 "type" : "boolean"
17576 },
17577 "bps" : {
17578 "description" : "Maximum r/w speed in bytes per second.",
17579 "format_description" : "bps",
17580 "optional" : 1,
17581 "type" : "integer"
17582 },
17583 "bps_max_length" : {
17584 "description" : "Maximum length of I/O bursts in seconds.",
17585 "format_description" : "seconds",
17586 "minimum" : 1,
17587 "optional" : 1,
17588 "type" : "integer"
17589 },
17590 "bps_rd" : {
17591 "description" : "Maximum read speed in bytes per second.",
17592 "format_description" : "bps",
17593 "optional" : 1,
17594 "type" : "integer"
17595 },
17596 "bps_rd_length" : {
17597 "alias" : "bps_rd_max_length"
17598 },
17599 "bps_rd_max_length" : {
17600 "description" : "Maximum length of read I/O bursts in seconds.",
17601 "format_description" : "seconds",
17602 "minimum" : 1,
17603 "optional" : 1,
17604 "type" : "integer"
17605 },
17606 "bps_wr" : {
17607 "description" : "Maximum write speed in bytes per second.",
17608 "format_description" : "bps",
17609 "optional" : 1,
17610 "type" : "integer"
17611 },
17612 "bps_wr_length" : {
17613 "alias" : "bps_wr_max_length"
17614 },
17615 "bps_wr_max_length" : {
17616 "description" : "Maximum length of write I/O bursts in seconds.",
17617 "format_description" : "seconds",
17618 "minimum" : 1,
17619 "optional" : 1,
17620 "type" : "integer"
17621 },
17622 "cache" : {
17623 "description" : "The drive's cache mode",
17624 "enum" : [
17625 "none",
17626 "writethrough",
17627 "writeback",
17628 "unsafe",
17629 "directsync"
17630 ],
17631 "optional" : 1,
17632 "type" : "string"
17633 },
17634 "cyls" : {
17635 "description" : "Force the drive's physical geometry to have a specific cylinder count.",
17636 "optional" : 1,
17637 "type" : "integer"
17638 },
17639 "detect_zeroes" : {
17640 "description" : "Controls whether to detect and try to optimize writes of zeroes.",
17641 "optional" : 1,
17642 "type" : "boolean"
17643 },
17644 "discard" : {
17645 "description" : "Controls whether to pass discard/trim requests to the underlying storage.",
17646 "enum" : [
17647 "ignore",
17648 "on"
17649 ],
17650 "optional" : 1,
17651 "type" : "string"
17652 },
17653 "file" : {
17654 "default_key" : 1,
17655 "description" : "The drive's backing volume.",
17656 "format" : "pve-volume-id-or-qm-path",
17657 "format_description" : "volume",
17658 "type" : "string"
17659 },
17660 "format" : {
17661 "description" : "The drive's backing file's data format.",
17662 "enum" : [
17663 "raw",
17664 "cow",
17665 "qcow",
17666 "qed",
17667 "qcow2",
17668 "vmdk",
17669 "cloop"
17670 ],
17671 "optional" : 1,
17672 "type" : "string"
17673 },
17674 "heads" : {
17675 "description" : "Force the drive's physical geometry to have a specific head count.",
17676 "optional" : 1,
17677 "type" : "integer"
17678 },
17679 "iops" : {
17680 "description" : "Maximum r/w I/O in operations per second.",
17681 "format_description" : "iops",
17682 "optional" : 1,
17683 "type" : "integer"
17684 },
17685 "iops_max" : {
17686 "description" : "Maximum unthrottled r/w I/O pool in operations per second.",
17687 "format_description" : "iops",
17688 "optional" : 1,
17689 "type" : "integer"
17690 },
17691 "iops_max_length" : {
17692 "description" : "Maximum length of I/O bursts in seconds.",
17693 "format_description" : "seconds",
17694 "minimum" : 1,
17695 "optional" : 1,
17696 "type" : "integer"
17697 },
17698 "iops_rd" : {
17699 "description" : "Maximum read I/O in operations per second.",
17700 "format_description" : "iops",
17701 "optional" : 1,
17702 "type" : "integer"
17703 },
17704 "iops_rd_length" : {
17705 "alias" : "iops_rd_max_length"
17706 },
17707 "iops_rd_max" : {
17708 "description" : "Maximum unthrottled read I/O pool in operations per second.",
17709 "format_description" : "iops",
17710 "optional" : 1,
17711 "type" : "integer"
17712 },
17713 "iops_rd_max_length" : {
17714 "description" : "Maximum length of read I/O bursts in seconds.",
17715 "format_description" : "seconds",
17716 "minimum" : 1,
17717 "optional" : 1,
17718 "type" : "integer"
17719 },
17720 "iops_wr" : {
17721 "description" : "Maximum write I/O in operations per second.",
17722 "format_description" : "iops",
17723 "optional" : 1,
17724 "type" : "integer"
17725 },
17726 "iops_wr_length" : {
17727 "alias" : "iops_wr_max_length"
17728 },
17729 "iops_wr_max" : {
17730 "description" : "Maximum unthrottled write I/O pool in operations per second.",
17731 "format_description" : "iops",
17732 "optional" : 1,
17733 "type" : "integer"
17734 },
17735 "iops_wr_max_length" : {
17736 "description" : "Maximum length of write I/O bursts in seconds.",
17737 "format_description" : "seconds",
17738 "minimum" : 1,
17739 "optional" : 1,
17740 "type" : "integer"
17741 },
17742 "mbps" : {
17743 "description" : "Maximum r/w speed in megabytes per second.",
17744 "format_description" : "mbps",
17745 "optional" : 1,
17746 "type" : "number"
17747 },
17748 "mbps_max" : {
17749 "description" : "Maximum unthrottled r/w pool in megabytes per second.",
17750 "format_description" : "mbps",
17751 "optional" : 1,
17752 "type" : "number"
17753 },
17754 "mbps_rd" : {
17755 "description" : "Maximum read speed in megabytes per second.",
17756 "format_description" : "mbps",
17757 "optional" : 1,
17758 "type" : "number"
17759 },
17760 "mbps_rd_max" : {
17761 "description" : "Maximum unthrottled read pool in megabytes per second.",
17762 "format_description" : "mbps",
17763 "optional" : 1,
17764 "type" : "number"
17765 },
17766 "mbps_wr" : {
17767 "description" : "Maximum write speed in megabytes per second.",
17768 "format_description" : "mbps",
17769 "optional" : 1,
17770 "type" : "number"
17771 },
17772 "mbps_wr_max" : {
17773 "description" : "Maximum unthrottled write pool in megabytes per second.",
17774 "format_description" : "mbps",
17775 "optional" : 1,
17776 "type" : "number"
17777 },
17778 "media" : {
17779 "default" : "disk",
17780 "description" : "The drive's media type.",
17781 "enum" : [
17782 "cdrom",
17783 "disk"
17784 ],
17785 "optional" : 1,
17786 "type" : "string"
17787 },
17788 "replicate" : {
17789 "default" : 1,
17790 "description" : "Whether the drive should considered for replication jobs.",
17791 "optional" : 1,
17792 "type" : "boolean"
17793 },
17794 "rerror" : {
17795 "description" : "Read error action.",
17796 "enum" : [
17797 "ignore",
17798 "report",
17799 "stop"
17800 ],
17801 "optional" : 1,
17802 "type" : "string"
17803 },
17804 "secs" : {
17805 "description" : "Force the drive's physical geometry to have a specific sector count.",
17806 "optional" : 1,
17807 "type" : "integer"
17808 },
17809 "serial" : {
17810 "description" : "The drive's reported serial number, url-encoded, up to 20 bytes long.",
17811 "format" : "urlencoded",
17812 "format_description" : "serial",
17813 "maxLength" : 60,
17814 "optional" : 1,
17815 "type" : "string"
17816 },
17817 "shared" : {
17818 "default" : 0,
17819 "description" : "Mark this locally-managed volume as available on all nodes",
17820 "optional" : 1,
17821 "type" : "boolean",
17822 "verbose_description" : "Mark this locally-managed volume as available on all nodes.\n\nWARNING: This option does not share the volume automatically, it assumes it is shared already!"
17823 },
17824 "size" : {
17825 "description" : "Disk size. This is purely informational and has no effect.",
17826 "format" : "disk-size",
17827 "format_description" : "DiskSize",
17828 "optional" : 1,
17829 "type" : "string"
17830 },
17831 "snapshot" : {
17832 "description" : "Controls qemu's snapshot mode feature. If activated, changes made to the disk are temporary and will be discarded when the VM is shutdown.",
17833 "optional" : 1,
17834 "type" : "boolean"
17835 },
17836 "ssd" : {
17837 "description" : "Whether to expose this drive as an SSD, rather than a rotational hard disk.",
17838 "optional" : 1,
17839 "type" : "boolean"
17840 },
17841 "trans" : {
17842 "description" : "Force disk geometry bios translation mode.",
17843 "enum" : [
17844 "none",
17845 "lba",
17846 "auto"
17847 ],
17848 "optional" : 1,
17849 "type" : "string"
17850 },
17851 "volume" : {
17852 "alias" : "file"
17853 },
17854 "werror" : {
17855 "description" : "Write error action.",
17856 "enum" : [
17857 "enospc",
17858 "ignore",
17859 "report",
17860 "stop"
17861 ],
17862 "optional" : 1,
17863 "type" : "string"
17864 },
17865 "wwn" : {
17866 "description" : "The drive's worldwide name, encoded as 16 bytes hex string, prefixed by '0x'.",
17867 "format_description" : "wwn",
17868 "optional" : 1,
17869 "pattern" : "(?^:^(0x)[0-9a-fA-F]{16})",
17870 "type" : "string"
17871 }
17872 },
17873 "optional" : 1,
17874 "type" : "string"
17875 },
17876 "scsi[n]" : {
17877 "description" : "Use volume as SCSI hard disk or CD-ROM (n is 0 to 30).",
17878 "format" : {
17879 "aio" : {
17880 "description" : "AIO type to use.",
17881 "enum" : [
17882 "native",
17883 "threads",
17884 "io_uring"
17885 ],
17886 "optional" : 1,
17887 "type" : "string"
17888 },
17889 "backup" : {
17890 "description" : "Whether the drive should be included when making backups.",
17891 "optional" : 1,
17892 "type" : "boolean"
17893 },
17894 "bps" : {
17895 "description" : "Maximum r/w speed in bytes per second.",
17896 "format_description" : "bps",
17897 "optional" : 1,
17898 "type" : "integer"
17899 },
17900 "bps_max_length" : {
17901 "description" : "Maximum length of I/O bursts in seconds.",
17902 "format_description" : "seconds",
17903 "minimum" : 1,
17904 "optional" : 1,
17905 "type" : "integer"
17906 },
17907 "bps_rd" : {
17908 "description" : "Maximum read speed in bytes per second.",
17909 "format_description" : "bps",
17910 "optional" : 1,
17911 "type" : "integer"
17912 },
17913 "bps_rd_length" : {
17914 "alias" : "bps_rd_max_length"
17915 },
17916 "bps_rd_max_length" : {
17917 "description" : "Maximum length of read I/O bursts in seconds.",
17918 "format_description" : "seconds",
17919 "minimum" : 1,
17920 "optional" : 1,
17921 "type" : "integer"
17922 },
17923 "bps_wr" : {
17924 "description" : "Maximum write speed in bytes per second.",
17925 "format_description" : "bps",
17926 "optional" : 1,
17927 "type" : "integer"
17928 },
17929 "bps_wr_length" : {
17930 "alias" : "bps_wr_max_length"
17931 },
17932 "bps_wr_max_length" : {
17933 "description" : "Maximum length of write I/O bursts in seconds.",
17934 "format_description" : "seconds",
17935 "minimum" : 1,
17936 "optional" : 1,
17937 "type" : "integer"
17938 },
17939 "cache" : {
17940 "description" : "The drive's cache mode",
17941 "enum" : [
17942 "none",
17943 "writethrough",
17944 "writeback",
17945 "unsafe",
17946 "directsync"
17947 ],
17948 "optional" : 1,
17949 "type" : "string"
17950 },
17951 "cyls" : {
17952 "description" : "Force the drive's physical geometry to have a specific cylinder count.",
17953 "optional" : 1,
17954 "type" : "integer"
17955 },
17956 "detect_zeroes" : {
17957 "description" : "Controls whether to detect and try to optimize writes of zeroes.",
17958 "optional" : 1,
17959 "type" : "boolean"
17960 },
17961 "discard" : {
17962 "description" : "Controls whether to pass discard/trim requests to the underlying storage.",
17963 "enum" : [
17964 "ignore",
17965 "on"
17966 ],
17967 "optional" : 1,
17968 "type" : "string"
17969 },
17970 "file" : {
17971 "default_key" : 1,
17972 "description" : "The drive's backing volume.",
17973 "format" : "pve-volume-id-or-qm-path",
17974 "format_description" : "volume",
17975 "type" : "string"
17976 },
17977 "format" : {
17978 "description" : "The drive's backing file's data format.",
17979 "enum" : [
17980 "raw",
17981 "cow",
17982 "qcow",
17983 "qed",
17984 "qcow2",
17985 "vmdk",
17986 "cloop"
17987 ],
17988 "optional" : 1,
17989 "type" : "string"
17990 },
17991 "heads" : {
17992 "description" : "Force the drive's physical geometry to have a specific head count.",
17993 "optional" : 1,
17994 "type" : "integer"
17995 },
17996 "iops" : {
17997 "description" : "Maximum r/w I/O in operations per second.",
17998 "format_description" : "iops",
17999 "optional" : 1,
18000 "type" : "integer"
18001 },
18002 "iops_max" : {
18003 "description" : "Maximum unthrottled r/w I/O pool in operations per second.",
18004 "format_description" : "iops",
18005 "optional" : 1,
18006 "type" : "integer"
18007 },
18008 "iops_max_length" : {
18009 "description" : "Maximum length of I/O bursts in seconds.",
18010 "format_description" : "seconds",
18011 "minimum" : 1,
18012 "optional" : 1,
18013 "type" : "integer"
18014 },
18015 "iops_rd" : {
18016 "description" : "Maximum read I/O in operations per second.",
18017 "format_description" : "iops",
18018 "optional" : 1,
18019 "type" : "integer"
18020 },
18021 "iops_rd_length" : {
18022 "alias" : "iops_rd_max_length"
18023 },
18024 "iops_rd_max" : {
18025 "description" : "Maximum unthrottled read I/O pool in operations per second.",
18026 "format_description" : "iops",
18027 "optional" : 1,
18028 "type" : "integer"
18029 },
18030 "iops_rd_max_length" : {
18031 "description" : "Maximum length of read I/O bursts in seconds.",
18032 "format_description" : "seconds",
18033 "minimum" : 1,
18034 "optional" : 1,
18035 "type" : "integer"
18036 },
18037 "iops_wr" : {
18038 "description" : "Maximum write I/O in operations per second.",
18039 "format_description" : "iops",
18040 "optional" : 1,
18041 "type" : "integer"
18042 },
18043 "iops_wr_length" : {
18044 "alias" : "iops_wr_max_length"
18045 },
18046 "iops_wr_max" : {
18047 "description" : "Maximum unthrottled write I/O pool in operations per second.",
18048 "format_description" : "iops",
18049 "optional" : 1,
18050 "type" : "integer"
18051 },
18052 "iops_wr_max_length" : {
18053 "description" : "Maximum length of write I/O bursts in seconds.",
18054 "format_description" : "seconds",
18055 "minimum" : 1,
18056 "optional" : 1,
18057 "type" : "integer"
18058 },
18059 "iothread" : {
18060 "description" : "Whether to use iothreads for this drive",
18061 "optional" : 1,
18062 "type" : "boolean"
18063 },
18064 "mbps" : {
18065 "description" : "Maximum r/w speed in megabytes per second.",
18066 "format_description" : "mbps",
18067 "optional" : 1,
18068 "type" : "number"
18069 },
18070 "mbps_max" : {
18071 "description" : "Maximum unthrottled r/w pool in megabytes per second.",
18072 "format_description" : "mbps",
18073 "optional" : 1,
18074 "type" : "number"
18075 },
18076 "mbps_rd" : {
18077 "description" : "Maximum read speed in megabytes per second.",
18078 "format_description" : "mbps",
18079 "optional" : 1,
18080 "type" : "number"
18081 },
18082 "mbps_rd_max" : {
18083 "description" : "Maximum unthrottled read pool in megabytes per second.",
18084 "format_description" : "mbps",
18085 "optional" : 1,
18086 "type" : "number"
18087 },
18088 "mbps_wr" : {
18089 "description" : "Maximum write speed in megabytes per second.",
18090 "format_description" : "mbps",
18091 "optional" : 1,
18092 "type" : "number"
18093 },
18094 "mbps_wr_max" : {
18095 "description" : "Maximum unthrottled write pool in megabytes per second.",
18096 "format_description" : "mbps",
18097 "optional" : 1,
18098 "type" : "number"
18099 },
18100 "media" : {
18101 "default" : "disk",
18102 "description" : "The drive's media type.",
18103 "enum" : [
18104 "cdrom",
18105 "disk"
18106 ],
18107 "optional" : 1,
18108 "type" : "string"
18109 },
18110 "product" : {
18111 "description" : "The drive's product name, up to 16 bytes long.",
18112 "format_description" : "product",
18113 "optional" : 1,
18114 "pattern" : "[A-Za-z0-9\\-_\\s]{,16}",
18115 "type" : "string"
18116 },
18117 "queues" : {
18118 "description" : "Number of queues.",
18119 "minimum" : 2,
18120 "optional" : 1,
18121 "type" : "integer"
18122 },
18123 "replicate" : {
18124 "default" : 1,
18125 "description" : "Whether the drive should considered for replication jobs.",
18126 "optional" : 1,
18127 "type" : "boolean"
18128 },
18129 "rerror" : {
18130 "description" : "Read error action.",
18131 "enum" : [
18132 "ignore",
18133 "report",
18134 "stop"
18135 ],
18136 "optional" : 1,
18137 "type" : "string"
18138 },
18139 "ro" : {
18140 "description" : "Whether the drive is read-only.",
18141 "optional" : 1,
18142 "type" : "boolean"
18143 },
18144 "scsiblock" : {
18145 "default" : 0,
18146 "description" : "whether to use scsi-block for full passthrough of host block device\n\nWARNING: can lead to I/O errors in combination with low memory or high memory fragmentation on host",
18147 "optional" : 1,
18148 "type" : "boolean"
18149 },
18150 "secs" : {
18151 "description" : "Force the drive's physical geometry to have a specific sector count.",
18152 "optional" : 1,
18153 "type" : "integer"
18154 },
18155 "serial" : {
18156 "description" : "The drive's reported serial number, url-encoded, up to 20 bytes long.",
18157 "format" : "urlencoded",
18158 "format_description" : "serial",
18159 "maxLength" : 60,
18160 "optional" : 1,
18161 "type" : "string"
18162 },
18163 "shared" : {
18164 "default" : 0,
18165 "description" : "Mark this locally-managed volume as available on all nodes",
18166 "optional" : 1,
18167 "type" : "boolean",
18168 "verbose_description" : "Mark this locally-managed volume as available on all nodes.\n\nWARNING: This option does not share the volume automatically, it assumes it is shared already!"
18169 },
18170 "size" : {
18171 "description" : "Disk size. This is purely informational and has no effect.",
18172 "format" : "disk-size",
18173 "format_description" : "DiskSize",
18174 "optional" : 1,
18175 "type" : "string"
18176 },
18177 "snapshot" : {
18178 "description" : "Controls qemu's snapshot mode feature. If activated, changes made to the disk are temporary and will be discarded when the VM is shutdown.",
18179 "optional" : 1,
18180 "type" : "boolean"
18181 },
18182 "ssd" : {
18183 "description" : "Whether to expose this drive as an SSD, rather than a rotational hard disk.",
18184 "optional" : 1,
18185 "type" : "boolean"
18186 },
18187 "trans" : {
18188 "description" : "Force disk geometry bios translation mode.",
18189 "enum" : [
18190 "none",
18191 "lba",
18192 "auto"
18193 ],
18194 "optional" : 1,
18195 "type" : "string"
18196 },
18197 "vendor" : {
18198 "description" : "The drive's vendor name, up to 8 bytes long.",
18199 "format_description" : "vendor",
18200 "optional" : 1,
18201 "pattern" : "[A-Za-z0-9\\-_\\s]{,8}",
18202 "type" : "string"
18203 },
18204 "volume" : {
18205 "alias" : "file"
18206 },
18207 "werror" : {
18208 "description" : "Write error action.",
18209 "enum" : [
18210 "enospc",
18211 "ignore",
18212 "report",
18213 "stop"
18214 ],
18215 "optional" : 1,
18216 "type" : "string"
18217 },
18218 "wwn" : {
18219 "description" : "The drive's worldwide name, encoded as 16 bytes hex string, prefixed by '0x'.",
18220 "format_description" : "wwn",
18221 "optional" : 1,
18222 "pattern" : "(?^:^(0x)[0-9a-fA-F]{16})",
18223 "type" : "string"
18224 }
18225 },
18226 "optional" : 1,
18227 "type" : "string"
18228 },
18229 "scsihw" : {
18230 "default" : "lsi",
18231 "description" : "SCSI controller model",
18232 "enum" : [
18233 "lsi",
18234 "lsi53c810",
18235 "virtio-scsi-pci",
18236 "virtio-scsi-single",
18237 "megasas",
18238 "pvscsi"
18239 ],
18240 "optional" : 1,
18241 "type" : "string"
18242 },
18243 "searchdomain" : {
18244 "description" : "cloud-init: Sets DNS search domains for a container. Create will automatically use the setting from the host if neither searchdomain nor nameserver are set.",
18245 "optional" : 1,
18246 "type" : "string"
18247 },
18248 "serial[n]" : {
18249 "description" : "Create a serial device inside the VM (n is 0 to 3)",
18250 "optional" : 1,
18251 "pattern" : "(/dev/.+|socket)",
18252 "type" : "string",
18253 "verbose_description" : "Create a serial device inside the VM (n is 0 to 3), and pass through a\nhost serial device (i.e. /dev/ttyS0), or create a unix socket on the\nhost side (use 'qm terminal' to open a terminal connection).\n\nNOTE: If you pass through a host serial device, it is no longer possible to migrate such machines -\nuse with special care.\n\nCAUTION: Experimental! User reported problems with this option.\n"
18254 },
18255 "shares" : {
18256 "default" : 1000,
18257 "description" : "Amount of memory shares for auto-ballooning. The larger the number is, the more memory this VM gets. Number is relative to weights of all other running VMs. Using zero disables auto-ballooning. Auto-ballooning is done by pvestatd.",
18258 "maximum" : 50000,
18259 "minimum" : 0,
18260 "optional" : 1,
18261 "type" : "integer"
18262 },
18263 "smbios1" : {
18264 "description" : "Specify SMBIOS type 1 fields.",
18265 "format" : "pve-qm-smbios1",
18266 "maxLength" : 512,
18267 "optional" : 1,
18268 "type" : "string"
18269 },
18270 "smp" : {
18271 "default" : 1,
18272 "description" : "The number of CPUs. Please use option -sockets instead.",
18273 "minimum" : 1,
18274 "optional" : 1,
18275 "type" : "integer"
18276 },
18277 "sockets" : {
18278 "default" : 1,
18279 "description" : "The number of CPU sockets.",
18280 "minimum" : 1,
18281 "optional" : 1,
18282 "type" : "integer"
18283 },
18284 "spice_enhancements" : {
18285 "description" : "Configure additional enhancements for SPICE.",
18286 "format" : {
18287 "foldersharing" : {
18288 "default" : "0",
18289 "description" : "Enable folder sharing via SPICE. Needs Spice-WebDAV daemon installed in the VM.",
18290 "optional" : 1,
18291 "type" : "boolean"
18292 },
18293 "videostreaming" : {
18294 "default" : "off",
18295 "description" : "Enable video streaming. Uses compression for detected video streams.",
18296 "enum" : [
18297 "off",
18298 "all",
18299 "filter"
18300 ],
18301 "optional" : 1,
18302 "type" : "string"
18303 }
18304 },
18305 "optional" : 1,
18306 "type" : "string"
18307 },
18308 "sshkeys" : {
18309 "description" : "cloud-init: Setup public SSH keys (one key per line, OpenSSH format).",
18310 "format" : "urlencoded",
18311 "optional" : 1,
18312 "type" : "string"
18313 },
18314 "startdate" : {
18315 "default" : "now",
18316 "description" : "Set the initial date of the real time clock. Valid format for date are:'now' or '2006-06-17T16:01:21' or '2006-06-17'.",
18317 "optional" : 1,
18318 "pattern" : "(now|\\d{4}-\\d{1,2}-\\d{1,2}(T\\d{1,2}:\\d{1,2}:\\d{1,2})?)",
18319 "type" : "string",
18320 "typetext" : "(now | YYYY-MM-DD | YYYY-MM-DDTHH:MM:SS)"
18321 },
18322 "startup" : {
18323 "description" : "Startup and shutdown behavior. Order is a non-negative number defining the general startup order. Shutdown in done with reverse ordering. Additionally you can set the 'up' or 'down' delay in seconds, which specifies a delay to wait before the next VM is started or stopped.",
18324 "format" : "pve-startup-order",
18325 "optional" : 1,
18326 "type" : "string",
18327 "typetext" : "[[order=]\\d+] [,up=\\d+] [,down=\\d+] "
18328 },
18329 "tablet" : {
18330 "default" : 1,
18331 "description" : "Enable/disable the USB tablet device.",
18332 "optional" : 1,
18333 "type" : "boolean",
18334 "verbose_description" : "Enable/disable the USB tablet device. This device is usually needed to allow absolute mouse positioning with VNC. Else the mouse runs out of sync with normal VNC clients. If you're running lots of console-only guests on one host, you may consider disabling this to save some context switches. This is turned off by default if you use spice (`qm set <vmid> --vga qxl`)."
18335 },
18336 "tags" : {
18337 "description" : "Tags of the VM. This is only meta information.",
18338 "format" : "pve-tag-list",
18339 "optional" : 1,
18340 "type" : "string"
18341 },
18342 "tdf" : {
18343 "default" : 0,
18344 "description" : "Enable/disable time drift fix.",
18345 "optional" : 1,
18346 "type" : "boolean"
18347 },
18348 "template" : {
18349 "default" : 0,
18350 "description" : "Enable/disable Template.",
18351 "optional" : 1,
18352 "type" : "boolean"
18353 },
18354 "tpmstate0" : {
18355 "description" : "Configure a Disk for storing TPM state. The format is fixed to 'raw'.",
18356 "format" : {
18357 "file" : {
18358 "default_key" : 1,
18359 "description" : "The drive's backing volume.",
18360 "format" : "pve-volume-id-or-qm-path",
18361 "format_description" : "volume",
18362 "type" : "string"
18363 },
18364 "size" : {
18365 "description" : "Disk size. This is purely informational and has no effect.",
18366 "format" : "disk-size",
18367 "format_description" : "DiskSize",
18368 "optional" : 1,
18369 "type" : "string"
18370 },
18371 "version" : {
18372 "default" : "v2.0",
18373 "description" : "The TPM interface version. v2.0 is newer and should be preferred. Note that this cannot be changed later on.",
18374 "enum" : [
18375 "v1.2",
18376 "v2.0"
18377 ],
18378 "optional" : 1,
18379 "type" : "string"
18380 },
18381 "volume" : {
18382 "alias" : "file"
18383 }
18384 },
18385 "optional" : 1,
18386 "type" : "string"
18387 },
18388 "unused[n]" : {
18389 "description" : "Reference to unused volumes. This is used internally, and should not be modified manually.",
18390 "format" : {
18391 "file" : {
18392 "default_key" : 1,
18393 "description" : "The drive's backing volume.",
18394 "format" : "pve-volume-id",
18395 "format_description" : "volume",
18396 "type" : "string"
18397 },
18398 "volume" : {
18399 "alias" : "file"
18400 }
18401 },
18402 "optional" : 1,
18403 "type" : "string"
18404 },
18405 "usb[n]" : {
18406 "description" : "Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14).",
18407 "format" : {
18408 "host" : {
18409 "default_key" : 1,
18410 "description" : "The Host USB device or port or the value 'spice'. HOSTUSBDEVICE syntax is:\n\n 'bus-port(.port)*' (decimal numbers) or\n 'vendor_id:product_id' (hexadeciaml numbers) or\n 'spice'\n\nYou can use the 'lsusb -t' command to list existing usb devices.\n\nNOTE: This option allows direct access to host hardware. So it is no longer possible to migrate such\nmachines - use with special care.\n\nThe value 'spice' can be used to add a usb redirection devices for spice.\n\nEither this or the 'mapping' key must be set.\n",
18411 "format_description" : "HOSTUSBDEVICE|spice",
18412 "optional" : 1,
18413 "pattern" : "(?^:(?:(?:(?^:(0x)?([0-9A-Fa-f]{4}):(0x)?([0-9A-Fa-f]{4})))|(?:(?^:(\\d+)\\-(\\d+(\\.\\d+)*)))|[Ss][Pp][Ii][Cc][Ee]))",
18414 "type" : "string"
18415 },
18416 "mapping" : {
18417 "description" : "The ID of a cluster wide mapping. Either this or the default-key 'host' must be set.",
18418 "format" : "pve-configid",
18419 "format_description" : "mapping-id",
18420 "optional" : 1,
18421 "type" : "string"
18422 },
18423 "usb3" : {
18424 "default" : 0,
18425 "description" : "Specifies whether if given host option is a USB3 device or port. For modern guests (machine version >= 7.1 and ostype l26 and windows > 7), this flag is irrelevant (all devices are plugged into a xhci controller).",
18426 "optional" : 1,
18427 "type" : "boolean"
18428 }
18429 },
18430 "optional" : 1,
18431 "type" : "string"
18432 },
18433 "vcpus" : {
18434 "default" : 0,
18435 "description" : "Number of hotplugged vcpus.",
18436 "minimum" : 1,
18437 "optional" : 1,
18438 "type" : "integer"
18439 },
18440 "vga" : {
18441 "description" : "Configure the VGA hardware.",
18442 "format" : {
18443 "clipboard" : {
18444 "description" : "Enable a specific clipboard. If not set, depending on the display type the SPICE one will be added. Migration with VNC clipboard is not yet supported!",
18445 "enum" : [
18446 "vnc"
18447 ],
18448 "optional" : 1,
18449 "type" : "string"
18450 },
18451 "memory" : {
18452 "description" : "Sets the VGA memory (in MiB). Has no effect with serial display.",
18453 "maximum" : 512,
18454 "minimum" : 4,
18455 "optional" : 1,
18456 "type" : "integer"
18457 },
18458 "type" : {
18459 "default" : "std",
18460 "default_key" : 1,
18461 "description" : "Select the VGA type.",
18462 "enum" : [
18463 "cirrus",
18464 "qxl",
18465 "qxl2",
18466 "qxl3",
18467 "qxl4",
18468 "none",
18469 "serial0",
18470 "serial1",
18471 "serial2",
18472 "serial3",
18473 "std",
18474 "virtio",
18475 "virtio-gl",
18476 "vmware"
18477 ],
18478 "optional" : 1,
18479 "type" : "string"
18480 }
18481 },
18482 "optional" : 1,
18483 "type" : "string",
18484 "verbose_description" : "Configure the VGA Hardware. If you want to use high resolution modes (>= 1280x1024x16) you may need to increase the vga memory option. Since QEMU 2.9 the default VGA display type is 'std' for all OS types besides some Windows versions (XP and older) which use 'cirrus'. The 'qxl' option enables the SPICE display server. For win* OS you can select how many independent displays you want, Linux guests can add displays them self.\nYou can also run without any graphic card, using a serial device as terminal."
18485 },
18486 "virtio[n]" : {
18487 "description" : "Use volume as VIRTIO hard disk (n is 0 to 15).",
18488 "format" : {
18489 "aio" : {
18490 "description" : "AIO type to use.",
18491 "enum" : [
18492 "native",
18493 "threads",
18494 "io_uring"
18495 ],
18496 "optional" : 1,
18497 "type" : "string"
18498 },
18499 "backup" : {
18500 "description" : "Whether the drive should be included when making backups.",
18501 "optional" : 1,
18502 "type" : "boolean"
18503 },
18504 "bps" : {
18505 "description" : "Maximum r/w speed in bytes per second.",
18506 "format_description" : "bps",
18507 "optional" : 1,
18508 "type" : "integer"
18509 },
18510 "bps_max_length" : {
18511 "description" : "Maximum length of I/O bursts in seconds.",
18512 "format_description" : "seconds",
18513 "minimum" : 1,
18514 "optional" : 1,
18515 "type" : "integer"
18516 },
18517 "bps_rd" : {
18518 "description" : "Maximum read speed in bytes per second.",
18519 "format_description" : "bps",
18520 "optional" : 1,
18521 "type" : "integer"
18522 },
18523 "bps_rd_length" : {
18524 "alias" : "bps_rd_max_length"
18525 },
18526 "bps_rd_max_length" : {
18527 "description" : "Maximum length of read I/O bursts in seconds.",
18528 "format_description" : "seconds",
18529 "minimum" : 1,
18530 "optional" : 1,
18531 "type" : "integer"
18532 },
18533 "bps_wr" : {
18534 "description" : "Maximum write speed in bytes per second.",
18535 "format_description" : "bps",
18536 "optional" : 1,
18537 "type" : "integer"
18538 },
18539 "bps_wr_length" : {
18540 "alias" : "bps_wr_max_length"
18541 },
18542 "bps_wr_max_length" : {
18543 "description" : "Maximum length of write I/O bursts in seconds.",
18544 "format_description" : "seconds",
18545 "minimum" : 1,
18546 "optional" : 1,
18547 "type" : "integer"
18548 },
18549 "cache" : {
18550 "description" : "The drive's cache mode",
18551 "enum" : [
18552 "none",
18553 "writethrough",
18554 "writeback",
18555 "unsafe",
18556 "directsync"
18557 ],
18558 "optional" : 1,
18559 "type" : "string"
18560 },
18561 "cyls" : {
18562 "description" : "Force the drive's physical geometry to have a specific cylinder count.",
18563 "optional" : 1,
18564 "type" : "integer"
18565 },
18566 "detect_zeroes" : {
18567 "description" : "Controls whether to detect and try to optimize writes of zeroes.",
18568 "optional" : 1,
18569 "type" : "boolean"
18570 },
18571 "discard" : {
18572 "description" : "Controls whether to pass discard/trim requests to the underlying storage.",
18573 "enum" : [
18574 "ignore",
18575 "on"
18576 ],
18577 "optional" : 1,
18578 "type" : "string"
18579 },
18580 "file" : {
18581 "default_key" : 1,
18582 "description" : "The drive's backing volume.",
18583 "format" : "pve-volume-id-or-qm-path",
18584 "format_description" : "volume",
18585 "type" : "string"
18586 },
18587 "format" : {
18588 "description" : "The drive's backing file's data format.",
18589 "enum" : [
18590 "raw",
18591 "cow",
18592 "qcow",
18593 "qed",
18594 "qcow2",
18595 "vmdk",
18596 "cloop"
18597 ],
18598 "optional" : 1,
18599 "type" : "string"
18600 },
18601 "heads" : {
18602 "description" : "Force the drive's physical geometry to have a specific head count.",
18603 "optional" : 1,
18604 "type" : "integer"
18605 },
18606 "iops" : {
18607 "description" : "Maximum r/w I/O in operations per second.",
18608 "format_description" : "iops",
18609 "optional" : 1,
18610 "type" : "integer"
18611 },
18612 "iops_max" : {
18613 "description" : "Maximum unthrottled r/w I/O pool in operations per second.",
18614 "format_description" : "iops",
18615 "optional" : 1,
18616 "type" : "integer"
18617 },
18618 "iops_max_length" : {
18619 "description" : "Maximum length of I/O bursts in seconds.",
18620 "format_description" : "seconds",
18621 "minimum" : 1,
18622 "optional" : 1,
18623 "type" : "integer"
18624 },
18625 "iops_rd" : {
18626 "description" : "Maximum read I/O in operations per second.",
18627 "format_description" : "iops",
18628 "optional" : 1,
18629 "type" : "integer"
18630 },
18631 "iops_rd_length" : {
18632 "alias" : "iops_rd_max_length"
18633 },
18634 "iops_rd_max" : {
18635 "description" : "Maximum unthrottled read I/O pool in operations per second.",
18636 "format_description" : "iops",
18637 "optional" : 1,
18638 "type" : "integer"
18639 },
18640 "iops_rd_max_length" : {
18641 "description" : "Maximum length of read I/O bursts in seconds.",
18642 "format_description" : "seconds",
18643 "minimum" : 1,
18644 "optional" : 1,
18645 "type" : "integer"
18646 },
18647 "iops_wr" : {
18648 "description" : "Maximum write I/O in operations per second.",
18649 "format_description" : "iops",
18650 "optional" : 1,
18651 "type" : "integer"
18652 },
18653 "iops_wr_length" : {
18654 "alias" : "iops_wr_max_length"
18655 },
18656 "iops_wr_max" : {
18657 "description" : "Maximum unthrottled write I/O pool in operations per second.",
18658 "format_description" : "iops",
18659 "optional" : 1,
18660 "type" : "integer"
18661 },
18662 "iops_wr_max_length" : {
18663 "description" : "Maximum length of write I/O bursts in seconds.",
18664 "format_description" : "seconds",
18665 "minimum" : 1,
18666 "optional" : 1,
18667 "type" : "integer"
18668 },
18669 "iothread" : {
18670 "description" : "Whether to use iothreads for this drive",
18671 "optional" : 1,
18672 "type" : "boolean"
18673 },
18674 "mbps" : {
18675 "description" : "Maximum r/w speed in megabytes per second.",
18676 "format_description" : "mbps",
18677 "optional" : 1,
18678 "type" : "number"
18679 },
18680 "mbps_max" : {
18681 "description" : "Maximum unthrottled r/w pool in megabytes per second.",
18682 "format_description" : "mbps",
18683 "optional" : 1,
18684 "type" : "number"
18685 },
18686 "mbps_rd" : {
18687 "description" : "Maximum read speed in megabytes per second.",
18688 "format_description" : "mbps",
18689 "optional" : 1,
18690 "type" : "number"
18691 },
18692 "mbps_rd_max" : {
18693 "description" : "Maximum unthrottled read pool in megabytes per second.",
18694 "format_description" : "mbps",
18695 "optional" : 1,
18696 "type" : "number"
18697 },
18698 "mbps_wr" : {
18699 "description" : "Maximum write speed in megabytes per second.",
18700 "format_description" : "mbps",
18701 "optional" : 1,
18702 "type" : "number"
18703 },
18704 "mbps_wr_max" : {
18705 "description" : "Maximum unthrottled write pool in megabytes per second.",
18706 "format_description" : "mbps",
18707 "optional" : 1,
18708 "type" : "number"
18709 },
18710 "media" : {
18711 "default" : "disk",
18712 "description" : "The drive's media type.",
18713 "enum" : [
18714 "cdrom",
18715 "disk"
18716 ],
18717 "optional" : 1,
18718 "type" : "string"
18719 },
18720 "replicate" : {
18721 "default" : 1,
18722 "description" : "Whether the drive should considered for replication jobs.",
18723 "optional" : 1,
18724 "type" : "boolean"
18725 },
18726 "rerror" : {
18727 "description" : "Read error action.",
18728 "enum" : [
18729 "ignore",
18730 "report",
18731 "stop"
18732 ],
18733 "optional" : 1,
18734 "type" : "string"
18735 },
18736 "ro" : {
18737 "description" : "Whether the drive is read-only.",
18738 "optional" : 1,
18739 "type" : "boolean"
18740 },
18741 "secs" : {
18742 "description" : "Force the drive's physical geometry to have a specific sector count.",
18743 "optional" : 1,
18744 "type" : "integer"
18745 },
18746 "serial" : {
18747 "description" : "The drive's reported serial number, url-encoded, up to 20 bytes long.",
18748 "format" : "urlencoded",
18749 "format_description" : "serial",
18750 "maxLength" : 60,
18751 "optional" : 1,
18752 "type" : "string"
18753 },
18754 "shared" : {
18755 "default" : 0,
18756 "description" : "Mark this locally-managed volume as available on all nodes",
18757 "optional" : 1,
18758 "type" : "boolean",
18759 "verbose_description" : "Mark this locally-managed volume as available on all nodes.\n\nWARNING: This option does not share the volume automatically, it assumes it is shared already!"
18760 },
18761 "size" : {
18762 "description" : "Disk size. This is purely informational and has no effect.",
18763 "format" : "disk-size",
18764 "format_description" : "DiskSize",
18765 "optional" : 1,
18766 "type" : "string"
18767 },
18768 "snapshot" : {
18769 "description" : "Controls qemu's snapshot mode feature. If activated, changes made to the disk are temporary and will be discarded when the VM is shutdown.",
18770 "optional" : 1,
18771 "type" : "boolean"
18772 },
18773 "trans" : {
18774 "description" : "Force disk geometry bios translation mode.",
18775 "enum" : [
18776 "none",
18777 "lba",
18778 "auto"
18779 ],
18780 "optional" : 1,
18781 "type" : "string"
18782 },
18783 "volume" : {
18784 "alias" : "file"
18785 },
18786 "werror" : {
18787 "description" : "Write error action.",
18788 "enum" : [
18789 "enospc",
18790 "ignore",
18791 "report",
18792 "stop"
18793 ],
18794 "optional" : 1,
18795 "type" : "string"
18796 }
18797 },
18798 "optional" : 1,
18799 "type" : "string"
18800 },
18801 "vmgenid" : {
18802 "default" : "1 (autogenerated)",
18803 "description" : "Set VM Generation ID. Use '1' to autogenerate on create or update, pass '0' to disable explicitly.",
18804 "format_description" : "UUID",
18805 "optional" : 1,
18806 "pattern" : "(?:[a-fA-F0-9]{8}(?:-[a-fA-F0-9]{4}){3}-[a-fA-F0-9]{12}|[01])",
18807 "type" : "string",
18808 "verbose_description" : "The VM generation ID (vmgenid) device exposes a 128-bit integer value identifier to the guest OS. This allows to notify the guest operating system when the virtual machine is executed with a different configuration (e.g. snapshot execution or creation from a template). The guest operating system notices the change, and is then able to react as appropriate by marking its copies of distributed databases as dirty, re-initializing its random number generator, etc.\nNote that auto-creation only works when done through API/CLI create or update methods, but not when manually editing the config file."
18809 },
18810 "vmstatestorage" : {
18811 "description" : "Default storage for VM state volumes/files.",
18812 "format" : "pve-storage-id",
18813 "format_description" : "storage ID",
18814 "optional" : 1,
18815 "type" : "string"
18816 },
18817 "watchdog" : {
18818 "description" : "Create a virtual hardware watchdog device.",
18819 "format" : "pve-qm-watchdog",
18820 "optional" : 1,
18821 "type" : "string",
18822 "verbose_description" : "Create a virtual hardware watchdog device. Once enabled (by a guest action), the watchdog must be periodically polled by an agent inside the guest or else the watchdog will reset the guest (or execute the respective action specified)"
18823 }
18824 },
18825 "type" : "object"
18826 }
18827 },
18828 "POST" : {
18829 "allowtoken" : 1,
18830 "description" : "Set virtual machine options (asynchrounous API).",
18831 "method" : "POST",
18832 "name" : "update_vm_async",
18833 "parameters" : {
18834 "additionalProperties" : 0,
18835 "properties" : {
18836 "acpi" : {
18837 "default" : 1,
18838 "description" : "Enable/disable ACPI.",
18839 "optional" : 1,
18840 "type" : "boolean",
18841 "typetext" : "<boolean>"
18842 },
18843 "affinity" : {
18844 "description" : "List of host cores used to execute guest processes, for example: 0,5,8-11",
18845 "format" : "pve-cpuset",
18846 "optional" : 1,
18847 "type" : "string",
18848 "typetext" : "<string>"
18849 },
18850 "agent" : {
18851 "description" : "Enable/disable communication with the QEMU Guest Agent and its properties.",
18852 "format" : {
18853 "enabled" : {
18854 "default" : 0,
18855 "default_key" : 1,
18856 "description" : "Enable/disable communication with a QEMU Guest Agent (QGA) running in the VM.",
18857 "type" : "boolean"
18858 },
18859 "freeze-fs-on-backup" : {
18860 "default" : 1,
18861 "description" : "Freeze/thaw guest filesystems on backup for consistency.",
18862 "optional" : 1,
18863 "type" : "boolean"
18864 },
18865 "fstrim_cloned_disks" : {
18866 "default" : 0,
18867 "description" : "Run fstrim after moving a disk or migrating the VM.",
18868 "optional" : 1,
18869 "type" : "boolean"
18870 },
18871 "type" : {
18872 "default" : "virtio",
18873 "description" : "Select the agent type",
18874 "enum" : [
18875 "virtio",
18876 "isa"
18877 ],
18878 "optional" : 1,
18879 "type" : "string"
18880 }
18881 },
18882 "optional" : 1,
18883 "type" : "string",
18884 "typetext" : "[enabled=]<1|0> [,freeze-fs-on-backup=<1|0>] [,fstrim_cloned_disks=<1|0>] [,type=<virtio|isa>]"
18885 },
18886 "arch" : {
18887 "description" : "Virtual processor architecture. Defaults to the host.",
18888 "enum" : [
18889 "x86_64",
18890 "aarch64"
18891 ],
18892 "optional" : 1,
18893 "type" : "string"
18894 },
18895 "args" : {
18896 "description" : "Arbitrary arguments passed to kvm.",
18897 "optional" : 1,
18898 "type" : "string",
18899 "typetext" : "<string>",
18900 "verbose_description" : "Arbitrary arguments passed to kvm, for example:\n\nargs: -no-reboot -smbios 'type=0,vendor=FOO'\n\nNOTE: this option is for experts only.\n"
18901 },
18902 "audio0" : {
18903 "description" : "Configure a audio device, useful in combination with QXL/Spice.",
18904 "format" : {
18905 "device" : {
18906 "description" : "Configure an audio device.",
18907 "enum" : [
18908 "ich9-intel-hda",
18909 "intel-hda",
18910 "AC97"
18911 ],
18912 "type" : "string"
18913 },
18914 "driver" : {
18915 "default" : "spice",
18916 "description" : "Driver backend for the audio device.",
18917 "enum" : [
18918 "spice",
18919 "none"
18920 ],
18921 "optional" : 1,
18922 "type" : "string"
18923 }
18924 },
18925 "optional" : 1,
18926 "type" : "string",
18927 "typetext" : "device=<ich9-intel-hda|intel-hda|AC97> [,driver=<spice|none>]"
18928 },
18929 "autostart" : {
18930 "default" : 0,
18931 "description" : "Automatic restart after crash (currently ignored).",
18932 "optional" : 1,
18933 "type" : "boolean",
18934 "typetext" : "<boolean>"
18935 },
18936 "background_delay" : {
18937 "description" : "Time to wait for the task to finish. We return 'null' if the task finish within that time.",
18938 "maximum" : 30,
18939 "minimum" : 1,
18940 "optional" : 1,
18941 "type" : "integer",
18942 "typetext" : "<integer> (1 - 30)"
18943 },
18944 "balloon" : {
18945 "description" : "Amount of target RAM for the VM in MiB. Using zero disables the ballon driver.",
18946 "minimum" : 0,
18947 "optional" : 1,
18948 "type" : "integer",
18949 "typetext" : "<integer> (0 - N)"
18950 },
18951 "bios" : {
18952 "default" : "seabios",
18953 "description" : "Select BIOS implementation.",
18954 "enum" : [
18955 "seabios",
18956 "ovmf"
18957 ],
18958 "optional" : 1,
18959 "type" : "string"
18960 },
18961 "boot" : {
18962 "description" : "Specify guest boot order. Use the 'order=' sub-property as usage with no key or 'legacy=' is deprecated.",
18963 "format" : "pve-qm-boot",
18964 "optional" : 1,
18965 "type" : "string",
18966 "typetext" : "[[legacy=]<[acdn]{1,4}>] [,order=<device[;device...]>]"
18967 },
18968 "bootdisk" : {
18969 "description" : "Enable booting from specified disk. Deprecated: Use 'boot: order=foo;bar' instead.",
18970 "format" : "pve-qm-bootdisk",
18971 "optional" : 1,
18972 "pattern" : "(ide|sata|scsi|virtio)\\d+",
18973 "type" : "string"
18974 },
18975 "cdrom" : {
18976 "description" : "This is an alias for option -ide2",
18977 "format" : "pve-qm-ide",
18978 "optional" : 1,
18979 "type" : "string",
18980 "typetext" : "<volume>"
18981 },
18982 "cicustom" : {
18983 "description" : "cloud-init: Specify custom files to replace the automatically generated ones at start.",
18984 "format" : "pve-qm-cicustom",
18985 "optional" : 1,
18986 "type" : "string",
18987 "typetext" : "[meta=<volume>] [,network=<volume>] [,user=<volume>] [,vendor=<volume>]"
18988 },
18989 "cipassword" : {
18990 "description" : "cloud-init: Password to assign the user. Using this is generally not recommended. Use ssh keys instead. Also note that older cloud-init versions do not support hashed passwords.",
18991 "optional" : 1,
18992 "type" : "string",
18993 "typetext" : "<string>"
18994 },
18995 "citype" : {
18996 "description" : "Specifies the cloud-init configuration format. The default depends on the configured operating system type (`ostype`. We use the `nocloud` format for Linux, and `configdrive2` for windows.",
18997 "enum" : [
18998 "configdrive2",
18999 "nocloud",
19000 "opennebula"
19001 ],
19002 "optional" : 1,
19003 "type" : "string"
19004 },
19005 "ciupgrade" : {
19006 "default" : 1,
19007 "description" : "cloud-init: do an automatic package upgrade after the first boot.",
19008 "optional" : 1,
19009 "type" : "boolean",
19010 "typetext" : "<boolean>"
19011 },
19012 "ciuser" : {
19013 "description" : "cloud-init: User name to change ssh keys and password for instead of the image's configured default user.",
19014 "optional" : 1,
19015 "type" : "string",
19016 "typetext" : "<string>"
19017 },
19018 "cores" : {
19019 "default" : 1,
19020 "description" : "The number of cores per socket.",
19021 "minimum" : 1,
19022 "optional" : 1,
19023 "type" : "integer",
19024 "typetext" : "<integer> (1 - N)"
19025 },
19026 "cpu" : {
19027 "description" : "Emulated CPU type.",
19028 "format" : "pve-vm-cpu-conf",
19029 "optional" : 1,
19030 "type" : "string",
19031 "typetext" : "[[cputype=]<string>] [,flags=<+FLAG[;-FLAG...]>] [,hidden=<1|0>] [,hv-vendor-id=<vendor-id>] [,phys-bits=<8-64|host>] [,reported-model=<enum>]"
19032 },
19033 "cpulimit" : {
19034 "default" : 0,
19035 "description" : "Limit of CPU usage.",
19036 "maximum" : 128,
19037 "minimum" : 0,
19038 "optional" : 1,
19039 "type" : "number",
19040 "typetext" : "<number> (0 - 128)",
19041 "verbose_description" : "Limit of CPU usage.\n\nNOTE: If the computer has 2 CPUs, it has total of '2' CPU time. Value '0' indicates no CPU limit."
19042 },
19043 "cpuunits" : {
19044 "default" : "cgroup v1: 1024, cgroup v2: 100",
19045 "description" : "CPU weight for a VM, will be clamped to [1, 10000] in cgroup v2.",
19046 "maximum" : 262144,
19047 "minimum" : 1,
19048 "optional" : 1,
19049 "type" : "integer",
19050 "typetext" : "<integer> (1 - 262144)",
19051 "verbose_description" : "CPU weight for a VM. Argument is used in the kernel fair scheduler. The larger the number is, the more CPU time this VM gets. Number is relative to weights of all the other running VMs."
19052 },
19053 "delete" : {
19054 "description" : "A list of settings you want to delete.",
19055 "format" : "pve-configid-list",
19056 "optional" : 1,
19057 "type" : "string",
19058 "typetext" : "<string>"
19059 },
19060 "description" : {
19061 "description" : "Description for the VM. Shown in the web-interface VM's summary. This is saved as comment inside the configuration file.",
19062 "maxLength" : 8192,
19063 "optional" : 1,
19064 "type" : "string",
19065 "typetext" : "<string>"
19066 },
19067 "digest" : {
19068 "description" : "Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.",
19069 "maxLength" : 40,
19070 "optional" : 1,
19071 "type" : "string",
19072 "typetext" : "<string>"
19073 },
19074 "efidisk0" : {
19075 "description" : "Configure a disk for storing EFI vars. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. Note that SIZE_IN_GiB is ignored here and that the default EFI vars are copied to the volume instead. Use STORAGE_ID:0 and the 'import-from' parameter to import from an existing volume.",
19076 "format" : {
19077 "efitype" : {
19078 "default" : "2m",
19079 "description" : "Size and type of the OVMF EFI vars. '4m' is newer and recommended, and required for Secure Boot. For backwards compatibility, '2m' is used if not otherwise specified. Ignored for VMs with arch=aarch64 (ARM).",
19080 "enum" : [
19081 "2m",
19082 "4m"
19083 ],
19084 "optional" : 1,
19085 "type" : "string"
19086 },
19087 "file" : {
19088 "default_key" : 1,
19089 "description" : "The drive's backing volume.",
19090 "format" : "pve-volume-id-or-qm-path",
19091 "format_description" : "volume",
19092 "type" : "string"
19093 },
19094 "format" : {
19095 "description" : "The drive's backing file's data format.",
19096 "enum" : [
19097 "raw",
19098 "cow",
19099 "qcow",
19100 "qed",
19101 "qcow2",
19102 "vmdk",
19103 "cloop"
19104 ],
19105 "optional" : 1,
19106 "type" : "string"
19107 },
19108 "import-from" : {
19109 "description" : "Create a new disk, importing from this source (volume ID or absolute path). When an absolute path is specified, it's up to you to ensure that the source is not actively used by another process during the import!",
19110 "format" : "pve-volume-id-or-absolute-path",
19111 "format_description" : "source volume",
19112 "optional" : 1,
19113 "type" : "string"
19114 },
19115 "pre-enrolled-keys" : {
19116 "default" : 0,
19117 "description" : "Use am EFI vars template with distribution-specific and Microsoft Standard keys enrolled, if used with 'efitype=4m'. Note that this will enable Secure Boot by default, though it can still be turned off from within the VM.",
19118 "optional" : 1,
19119 "type" : "boolean"
19120 },
19121 "size" : {
19122 "description" : "Disk size. This is purely informational and has no effect.",
19123 "format" : "disk-size",
19124 "format_description" : "DiskSize",
19125 "optional" : 1,
19126 "type" : "string"
19127 },
19128 "volume" : {
19129 "alias" : "file"
19130 }
19131 },
19132 "optional" : 1,
19133 "type" : "string",
19134 "typetext" : "[file=]<volume> [,efitype=<2m|4m>] [,format=<enum>] [,import-from=<source volume>] [,pre-enrolled-keys=<1|0>] [,size=<DiskSize>]"
19135 },
19136 "force" : {
19137 "description" : "Force physical removal. Without this, we simple remove the disk from the config file and create an additional configuration entry called 'unused[n]', which contains the volume ID. Unlink of unused[n] always cause physical removal.",
19138 "optional" : 1,
19139 "requires" : "delete",
19140 "type" : "boolean",
19141 "typetext" : "<boolean>"
19142 },
19143 "freeze" : {
19144 "description" : "Freeze CPU at startup (use 'c' monitor command to start execution).",
19145 "optional" : 1,
19146 "type" : "boolean",
19147 "typetext" : "<boolean>"
19148 },
19149 "hookscript" : {
19150 "description" : "Script that will be executed during various steps in the vms lifetime.",
19151 "format" : "pve-volume-id",
19152 "optional" : 1,
19153 "type" : "string",
19154 "typetext" : "<string>"
19155 },
19156 "hostpci[n]" : {
19157 "description" : "Map host PCI devices into guest.",
19158 "format" : "pve-qm-hostpci",
19159 "optional" : 1,
19160 "type" : "string",
19161 "typetext" : "[[host=]<HOSTPCIID[;HOSTPCIID2...]>] [,device-id=<hex id>] [,legacy-igd=<1|0>] [,mapping=<mapping-id>] [,mdev=<string>] [,pcie=<1|0>] [,rombar=<1|0>] [,romfile=<string>] [,sub-device-id=<hex id>] [,sub-vendor-id=<hex id>] [,vendor-id=<hex id>] [,x-vga=<1|0>]",
19162 "verbose_description" : "Map host PCI devices into guest.\n\nNOTE: This option allows direct access to host hardware. So it is no longer\npossible to migrate such machines - use with special care.\n\nCAUTION: Experimental! User reported problems with this option.\n"
19163 },
19164 "hotplug" : {
19165 "default" : "network,disk,usb",
19166 "description" : "Selectively enable hotplug features. This is a comma separated list of hotplug features: 'network', 'disk', 'cpu', 'memory', 'usb' and 'cloudinit'. Use '0' to disable hotplug completely. Using '1' as value is an alias for the default `network,disk,usb`. USB hotplugging is possible for guests with machine version >= 7.1 and ostype l26 or windows > 7.",
19167 "format" : "pve-hotplug-features",
19168 "optional" : 1,
19169 "type" : "string",
19170 "typetext" : "<string>"
19171 },
19172 "hugepages" : {
19173 "description" : "Enable/disable hugepages memory.",
19174 "enum" : [
19175 "any",
19176 "2",
19177 "1024"
19178 ],
19179 "optional" : 1,
19180 "type" : "string"
19181 },
19182 "ide[n]" : {
19183 "description" : "Use volume as IDE hard disk or CD-ROM (n is 0 to 3). Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. Use STORAGE_ID:0 and the 'import-from' parameter to import from an existing volume.",
19184 "format" : {
19185 "aio" : {
19186 "description" : "AIO type to use.",
19187 "enum" : [
19188 "native",
19189 "threads",
19190 "io_uring"
19191 ],
19192 "optional" : 1,
19193 "type" : "string"
19194 },
19195 "backup" : {
19196 "description" : "Whether the drive should be included when making backups.",
19197 "optional" : 1,
19198 "type" : "boolean"
19199 },
19200 "bps" : {
19201 "description" : "Maximum r/w speed in bytes per second.",
19202 "format_description" : "bps",
19203 "optional" : 1,
19204 "type" : "integer"
19205 },
19206 "bps_max_length" : {
19207 "description" : "Maximum length of I/O bursts in seconds.",
19208 "format_description" : "seconds",
19209 "minimum" : 1,
19210 "optional" : 1,
19211 "type" : "integer"
19212 },
19213 "bps_rd" : {
19214 "description" : "Maximum read speed in bytes per second.",
19215 "format_description" : "bps",
19216 "optional" : 1,
19217 "type" : "integer"
19218 },
19219 "bps_rd_length" : {
19220 "alias" : "bps_rd_max_length"
19221 },
19222 "bps_rd_max_length" : {
19223 "description" : "Maximum length of read I/O bursts in seconds.",
19224 "format_description" : "seconds",
19225 "minimum" : 1,
19226 "optional" : 1,
19227 "type" : "integer"
19228 },
19229 "bps_wr" : {
19230 "description" : "Maximum write speed in bytes per second.",
19231 "format_description" : "bps",
19232 "optional" : 1,
19233 "type" : "integer"
19234 },
19235 "bps_wr_length" : {
19236 "alias" : "bps_wr_max_length"
19237 },
19238 "bps_wr_max_length" : {
19239 "description" : "Maximum length of write I/O bursts in seconds.",
19240 "format_description" : "seconds",
19241 "minimum" : 1,
19242 "optional" : 1,
19243 "type" : "integer"
19244 },
19245 "cache" : {
19246 "description" : "The drive's cache mode",
19247 "enum" : [
19248 "none",
19249 "writethrough",
19250 "writeback",
19251 "unsafe",
19252 "directsync"
19253 ],
19254 "optional" : 1,
19255 "type" : "string"
19256 },
19257 "cyls" : {
19258 "description" : "Force the drive's physical geometry to have a specific cylinder count.",
19259 "optional" : 1,
19260 "type" : "integer"
19261 },
19262 "detect_zeroes" : {
19263 "description" : "Controls whether to detect and try to optimize writes of zeroes.",
19264 "optional" : 1,
19265 "type" : "boolean"
19266 },
19267 "discard" : {
19268 "description" : "Controls whether to pass discard/trim requests to the underlying storage.",
19269 "enum" : [
19270 "ignore",
19271 "on"
19272 ],
19273 "optional" : 1,
19274 "type" : "string"
19275 },
19276 "file" : {
19277 "default_key" : 1,
19278 "description" : "The drive's backing volume.",
19279 "format" : "pve-volume-id-or-qm-path",
19280 "format_description" : "volume",
19281 "type" : "string"
19282 },
19283 "format" : {
19284 "description" : "The drive's backing file's data format.",
19285 "enum" : [
19286 "raw",
19287 "cow",
19288 "qcow",
19289 "qed",
19290 "qcow2",
19291 "vmdk",
19292 "cloop"
19293 ],
19294 "optional" : 1,
19295 "type" : "string"
19296 },
19297 "heads" : {
19298 "description" : "Force the drive's physical geometry to have a specific head count.",
19299 "optional" : 1,
19300 "type" : "integer"
19301 },
19302 "import-from" : {
19303 "description" : "Create a new disk, importing from this source (volume ID or absolute path). When an absolute path is specified, it's up to you to ensure that the source is not actively used by another process during the import!",
19304 "format" : "pve-volume-id-or-absolute-path",
19305 "format_description" : "source volume",
19306 "optional" : 1,
19307 "type" : "string"
19308 },
19309 "iops" : {
19310 "description" : "Maximum r/w I/O in operations per second.",
19311 "format_description" : "iops",
19312 "optional" : 1,
19313 "type" : "integer"
19314 },
19315 "iops_max" : {
19316 "description" : "Maximum unthrottled r/w I/O pool in operations per second.",
19317 "format_description" : "iops",
19318 "optional" : 1,
19319 "type" : "integer"
19320 },
19321 "iops_max_length" : {
19322 "description" : "Maximum length of I/O bursts in seconds.",
19323 "format_description" : "seconds",
19324 "minimum" : 1,
19325 "optional" : 1,
19326 "type" : "integer"
19327 },
19328 "iops_rd" : {
19329 "description" : "Maximum read I/O in operations per second.",
19330 "format_description" : "iops",
19331 "optional" : 1,
19332 "type" : "integer"
19333 },
19334 "iops_rd_length" : {
19335 "alias" : "iops_rd_max_length"
19336 },
19337 "iops_rd_max" : {
19338 "description" : "Maximum unthrottled read I/O pool in operations per second.",
19339 "format_description" : "iops",
19340 "optional" : 1,
19341 "type" : "integer"
19342 },
19343 "iops_rd_max_length" : {
19344 "description" : "Maximum length of read I/O bursts in seconds.",
19345 "format_description" : "seconds",
19346 "minimum" : 1,
19347 "optional" : 1,
19348 "type" : "integer"
19349 },
19350 "iops_wr" : {
19351 "description" : "Maximum write I/O in operations per second.",
19352 "format_description" : "iops",
19353 "optional" : 1,
19354 "type" : "integer"
19355 },
19356 "iops_wr_length" : {
19357 "alias" : "iops_wr_max_length"
19358 },
19359 "iops_wr_max" : {
19360 "description" : "Maximum unthrottled write I/O pool in operations per second.",
19361 "format_description" : "iops",
19362 "optional" : 1,
19363 "type" : "integer"
19364 },
19365 "iops_wr_max_length" : {
19366 "description" : "Maximum length of write I/O bursts in seconds.",
19367 "format_description" : "seconds",
19368 "minimum" : 1,
19369 "optional" : 1,
19370 "type" : "integer"
19371 },
19372 "mbps" : {
19373 "description" : "Maximum r/w speed in megabytes per second.",
19374 "format_description" : "mbps",
19375 "optional" : 1,
19376 "type" : "number"
19377 },
19378 "mbps_max" : {
19379 "description" : "Maximum unthrottled r/w pool in megabytes per second.",
19380 "format_description" : "mbps",
19381 "optional" : 1,
19382 "type" : "number"
19383 },
19384 "mbps_rd" : {
19385 "description" : "Maximum read speed in megabytes per second.",
19386 "format_description" : "mbps",
19387 "optional" : 1,
19388 "type" : "number"
19389 },
19390 "mbps_rd_max" : {
19391 "description" : "Maximum unthrottled read pool in megabytes per second.",
19392 "format_description" : "mbps",
19393 "optional" : 1,
19394 "type" : "number"
19395 },
19396 "mbps_wr" : {
19397 "description" : "Maximum write speed in megabytes per second.",
19398 "format_description" : "mbps",
19399 "optional" : 1,
19400 "type" : "number"
19401 },
19402 "mbps_wr_max" : {
19403 "description" : "Maximum unthrottled write pool in megabytes per second.",
19404 "format_description" : "mbps",
19405 "optional" : 1,
19406 "type" : "number"
19407 },
19408 "media" : {
19409 "default" : "disk",
19410 "description" : "The drive's media type.",
19411 "enum" : [
19412 "cdrom",
19413 "disk"
19414 ],
19415 "optional" : 1,
19416 "type" : "string"
19417 },
19418 "model" : {
19419 "description" : "The drive's reported model name, url-encoded, up to 40 bytes long.",
19420 "format" : "urlencoded",
19421 "format_description" : "model",
19422 "maxLength" : 120,
19423 "optional" : 1,
19424 "type" : "string"
19425 },
19426 "replicate" : {
19427 "default" : 1,
19428 "description" : "Whether the drive should considered for replication jobs.",
19429 "optional" : 1,
19430 "type" : "boolean"
19431 },
19432 "rerror" : {
19433 "description" : "Read error action.",
19434 "enum" : [
19435 "ignore",
19436 "report",
19437 "stop"
19438 ],
19439 "optional" : 1,
19440 "type" : "string"
19441 },
19442 "secs" : {
19443 "description" : "Force the drive's physical geometry to have a specific sector count.",
19444 "optional" : 1,
19445 "type" : "integer"
19446 },
19447 "serial" : {
19448 "description" : "The drive's reported serial number, url-encoded, up to 20 bytes long.",
19449 "format" : "urlencoded",
19450 "format_description" : "serial",
19451 "maxLength" : 60,
19452 "optional" : 1,
19453 "type" : "string"
19454 },
19455 "shared" : {
19456 "default" : 0,
19457 "description" : "Mark this locally-managed volume as available on all nodes",
19458 "optional" : 1,
19459 "type" : "boolean",
19460 "verbose_description" : "Mark this locally-managed volume as available on all nodes.\n\nWARNING: This option does not share the volume automatically, it assumes it is shared already!"
19461 },
19462 "size" : {
19463 "description" : "Disk size. This is purely informational and has no effect.",
19464 "format" : "disk-size",
19465 "format_description" : "DiskSize",
19466 "optional" : 1,
19467 "type" : "string"
19468 },
19469 "snapshot" : {
19470 "description" : "Controls qemu's snapshot mode feature. If activated, changes made to the disk are temporary and will be discarded when the VM is shutdown.",
19471 "optional" : 1,
19472 "type" : "boolean"
19473 },
19474 "ssd" : {
19475 "description" : "Whether to expose this drive as an SSD, rather than a rotational hard disk.",
19476 "optional" : 1,
19477 "type" : "boolean"
19478 },
19479 "trans" : {
19480 "description" : "Force disk geometry bios translation mode.",
19481 "enum" : [
19482 "none",
19483 "lba",
19484 "auto"
19485 ],
19486 "optional" : 1,
19487 "type" : "string"
19488 },
19489 "volume" : {
19490 "alias" : "file"
19491 },
19492 "werror" : {
19493 "description" : "Write error action.",
19494 "enum" : [
19495 "enospc",
19496 "ignore",
19497 "report",
19498 "stop"
19499 ],
19500 "optional" : 1,
19501 "type" : "string"
19502 },
19503 "wwn" : {
19504 "description" : "The drive's worldwide name, encoded as 16 bytes hex string, prefixed by '0x'.",
19505 "format_description" : "wwn",
19506 "optional" : 1,
19507 "pattern" : "(?^:^(0x)[0-9a-fA-F]{16})",
19508 "type" : "string"
19509 }
19510 },
19511 "optional" : 1,
19512 "type" : "string",
19513 "typetext" : "[file=]<volume> [,aio=<native|threads|io_uring>] [,backup=<1|0>] [,bps=<bps>] [,bps_max_length=<seconds>] [,bps_rd=<bps>] [,bps_rd_max_length=<seconds>] [,bps_wr=<bps>] [,bps_wr_max_length=<seconds>] [,cache=<enum>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<enum>] [,heads=<integer>] [,import-from=<source volume>] [,iops=<iops>] [,iops_max=<iops>] [,iops_max_length=<seconds>] [,iops_rd=<iops>] [,iops_rd_max=<iops>] [,iops_rd_max_length=<seconds>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,iops_wr_max_length=<seconds>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,model=<model>] [,replicate=<1|0>] [,rerror=<ignore|report|stop>] [,secs=<integer>] [,serial=<serial>] [,shared=<1|0>] [,size=<DiskSize>] [,snapshot=<1|0>] [,ssd=<1|0>] [,trans=<none|lba|auto>] [,werror=<enum>] [,wwn=<wwn>]"
19514 },
19515 "ipconfig[n]" : {
19516 "description" : "cloud-init: Specify IP addresses and gateways for the corresponding interface.\n\nIP addresses use CIDR notation, gateways are optional but need an IP of the same type specified.\n\nThe special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit\ngateway should be provided.\nFor IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires\ncloud-init 19.4 or newer.\n\nIf cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using\ndhcp on IPv4.\n",
19517 "format" : "pve-qm-ipconfig",
19518 "optional" : 1,
19519 "type" : "string",
19520 "typetext" : "[gw=<GatewayIPv4>] [,gw6=<GatewayIPv6>] [,ip=<IPv4Format/CIDR>] [,ip6=<IPv6Format/CIDR>]"
19521 },
19522 "ivshmem" : {
19523 "description" : "Inter-VM shared memory. Useful for direct communication between VMs, or to the host.",
19524 "format" : {
19525 "name" : {
19526 "description" : "The name of the file. Will be prefixed with 'pve-shm-'. Default is the VMID. Will be deleted when the VM is stopped.",
19527 "format_description" : "string",
19528 "optional" : 1,
19529 "pattern" : "[a-zA-Z0-9\\-]+",
19530 "type" : "string"
19531 },
19532 "size" : {
19533 "description" : "The size of the file in MB.",
19534 "minimum" : 1,
19535 "type" : "integer"
19536 }
19537 },
19538 "optional" : 1,
19539 "type" : "string",
19540 "typetext" : "size=<integer> [,name=<string>]"
19541 },
19542 "keephugepages" : {
19543 "default" : 0,
19544 "description" : "Use together with hugepages. If enabled, hugepages will not not be deleted after VM shutdown and can be used for subsequent starts.",
19545 "optional" : 1,
19546 "type" : "boolean",
19547 "typetext" : "<boolean>"
19548 },
19549 "keyboard" : {
19550 "default" : null,
19551 "description" : "Keyboard layout for VNC server. This option is generally not required and is often better handled from within the guest OS.",
19552 "enum" : [
19553 "de",
19554 "de-ch",
19555 "da",
19556 "en-gb",
19557 "en-us",
19558 "es",
19559 "fi",
19560 "fr",
19561 "fr-be",
19562 "fr-ca",
19563 "fr-ch",
19564 "hu",
19565 "is",
19566 "it",
19567 "ja",
19568 "lt",
19569 "mk",
19570 "nl",
19571 "no",
19572 "pl",
19573 "pt",
19574 "pt-br",
19575 "sv",
19576 "sl",
19577 "tr"
19578 ],
19579 "optional" : 1,
19580 "type" : "string"
19581 },
19582 "kvm" : {
19583 "default" : 1,
19584 "description" : "Enable/disable KVM hardware virtualization.",
19585 "optional" : 1,
19586 "type" : "boolean",
19587 "typetext" : "<boolean>"
19588 },
19589 "localtime" : {
19590 "description" : "Set the real time clock (RTC) to local time. This is enabled by default if the `ostype` indicates a Microsoft Windows OS.",
19591 "optional" : 1,
19592 "type" : "boolean",
19593 "typetext" : "<boolean>"
19594 },
19595 "lock" : {
19596 "description" : "Lock/unlock the VM.",
19597 "enum" : [
19598 "backup",
19599 "clone",
19600 "create",
19601 "migrate",
19602 "rollback",
19603 "snapshot",
19604 "snapshot-delete",
19605 "suspending",
19606 "suspended"
19607 ],
19608 "optional" : 1,
19609 "type" : "string"
19610 },
19611 "machine" : {
19612 "description" : "Specify the QEMU machine.",
19613 "format" : {
19614 "type" : {
19615 "default_key" : 1,
19616 "description" : "Specifies the QEMU machine type.",
19617 "format_description" : "machine type",
19618 "maxLength" : 40,
19619 "optional" : 1,
19620 "pattern" : "(pc|pc(-i440fx)?-\\d+(\\.\\d+)+(\\+pve\\d+)?(\\.pxe)?|q35|pc-q35-\\d+(\\.\\d+)+(\\+pve\\d+)?(\\.pxe)?|virt(?:-\\d+(\\.\\d+)+)?(\\+pve\\d+)?)",
19621 "type" : "string"
19622 },
19623 "viommu" : {
19624 "description" : "Enable and set guest vIOMMU variant (Intel vIOMMU needs q35 to be set as machine type).",
19625 "enum" : [
19626 "intel",
19627 "virtio"
19628 ],
19629 "optional" : 1,
19630 "type" : "string"
19631 }
19632 },
19633 "optional" : 1,
19634 "type" : "string",
19635 "typetext" : "[[type=]<machine type>] [,viommu=<intel|virtio>]"
19636 },
19637 "memory" : {
19638 "description" : "Memory properties.",
19639 "format" : {
19640 "current" : {
19641 "default" : 512,
19642 "default_key" : 1,
19643 "description" : "Current amount of online RAM for the VM in MiB. This is the maximum available memory when you use the balloon device.",
19644 "minimum" : 16,
19645 "type" : "integer"
19646 }
19647 },
19648 "optional" : 1,
19649 "type" : "string",
19650 "typetext" : "[current=]<integer>"
19651 },
19652 "migrate_downtime" : {
19653 "default" : 0.1,
19654 "description" : "Set maximum tolerated downtime (in seconds) for migrations.",
19655 "minimum" : 0,
19656 "optional" : 1,
19657 "type" : "number",
19658 "typetext" : "<number> (0 - N)"
19659 },
19660 "migrate_speed" : {
19661 "default" : 0,
19662 "description" : "Set maximum speed (in MB/s) for migrations. Value 0 is no limit.",
19663 "minimum" : 0,
19664 "optional" : 1,
19665 "type" : "integer",
19666 "typetext" : "<integer> (0 - N)"
19667 },
19668 "name" : {
19669 "description" : "Set a name for the VM. Only used on the configuration web interface.",
19670 "format" : "dns-name",
19671 "optional" : 1,
19672 "type" : "string",
19673 "typetext" : "<string>"
19674 },
19675 "nameserver" : {
19676 "description" : "cloud-init: Sets DNS server IP address for a container. Create will automatically use the setting from the host if neither searchdomain nor nameserver are set.",
19677 "format" : "address-list",
19678 "optional" : 1,
19679 "type" : "string",
19680 "typetext" : "<string>"
19681 },
19682 "net[n]" : {
19683 "description" : "Specify network devices.",
19684 "format" : {
19685 "bridge" : {
19686 "description" : "Bridge to attach the network device to. The Proxmox VE standard bridge\nis called 'vmbr0'.\n\nIf you do not specify a bridge, we create a kvm user (NATed) network\ndevice, which provides DHCP and DNS services. The following addresses\nare used:\n\n 10.0.2.2 Gateway\n 10.0.2.3 DNS Server\n 10.0.2.4 SMB Server\n\nThe DHCP server assign addresses to the guest starting from 10.0.2.15.\n",
19687 "format" : "pve-bridge-id",
19688 "format_description" : "bridge",
19689 "optional" : 1,
19690 "type" : "string"
19691 },
19692 "e1000" : {
19693 "alias" : "macaddr",
19694 "keyAlias" : "model"
19695 },
19696 "e1000-82540em" : {
19697 "alias" : "macaddr",
19698 "keyAlias" : "model"
19699 },
19700 "e1000-82544gc" : {
19701 "alias" : "macaddr",
19702 "keyAlias" : "model"
19703 },
19704 "e1000-82545em" : {
19705 "alias" : "macaddr",
19706 "keyAlias" : "model"
19707 },
19708 "e1000e" : {
19709 "alias" : "macaddr",
19710 "keyAlias" : "model"
19711 },
19712 "firewall" : {
19713 "description" : "Whether this interface should be protected by the firewall.",
19714 "optional" : 1,
19715 "type" : "boolean"
19716 },
19717 "i82551" : {
19718 "alias" : "macaddr",
19719 "keyAlias" : "model"
19720 },
19721 "i82557b" : {
19722 "alias" : "macaddr",
19723 "keyAlias" : "model"
19724 },
19725 "i82559er" : {
19726 "alias" : "macaddr",
19727 "keyAlias" : "model"
19728 },
19729 "link_down" : {
19730 "description" : "Whether this interface should be disconnected (like pulling the plug).",
19731 "optional" : 1,
19732 "type" : "boolean"
19733 },
19734 "macaddr" : {
19735 "description" : "MAC address. That address must be unique withing your network. This is automatically generated if not specified.",
19736 "format" : "mac-addr",
19737 "format_description" : "XX:XX:XX:XX:XX:XX",
19738 "optional" : 1,
19739 "type" : "string",
19740 "verbose_description" : "A common MAC address with the I/G (Individual/Group) bit not set."
19741 },
19742 "model" : {
19743 "default_key" : 1,
19744 "description" : "Network Card Model. The 'virtio' model provides the best performance with very low CPU overhead. If your guest does not support this driver, it is usually best to use 'e1000'.",
19745 "enum" : [
19746 "e1000",
19747 "e1000-82540em",
19748 "e1000-82544gc",
19749 "e1000-82545em",
19750 "e1000e",
19751 "i82551",
19752 "i82557b",
19753 "i82559er",
19754 "ne2k_isa",
19755 "ne2k_pci",
19756 "pcnet",
19757 "rtl8139",
19758 "virtio",
19759 "vmxnet3"
19760 ],
19761 "type" : "string"
19762 },
19763 "mtu" : {
19764 "description" : "Force MTU, for VirtIO only. Set to '1' to use the bridge MTU",
19765 "maximum" : 65520,
19766 "minimum" : 1,
19767 "optional" : 1,
19768 "type" : "integer"
19769 },
19770 "ne2k_isa" : {
19771 "alias" : "macaddr",
19772 "keyAlias" : "model"
19773 },
19774 "ne2k_pci" : {
19775 "alias" : "macaddr",
19776 "keyAlias" : "model"
19777 },
19778 "pcnet" : {
19779 "alias" : "macaddr",
19780 "keyAlias" : "model"
19781 },
19782 "queues" : {
19783 "description" : "Number of packet queues to be used on the device.",
19784 "maximum" : 64,
19785 "minimum" : 0,
19786 "optional" : 1,
19787 "type" : "integer"
19788 },
19789 "rate" : {
19790 "description" : "Rate limit in mbps (megabytes per second) as floating point number.",
19791 "minimum" : 0,
19792 "optional" : 1,
19793 "type" : "number"
19794 },
19795 "rtl8139" : {
19796 "alias" : "macaddr",
19797 "keyAlias" : "model"
19798 },
19799 "tag" : {
19800 "description" : "VLAN tag to apply to packets on this interface.",
19801 "maximum" : 4094,
19802 "minimum" : 1,
19803 "optional" : 1,
19804 "type" : "integer"
19805 },
19806 "trunks" : {
19807 "description" : "VLAN trunks to pass through this interface.",
19808 "format_description" : "vlanid[;vlanid...]",
19809 "optional" : 1,
19810 "pattern" : "(?^:\\d+(?:-\\d+)?(?:;\\d+(?:-\\d+)?)*)",
19811 "type" : "string"
19812 },
19813 "virtio" : {
19814 "alias" : "macaddr",
19815 "keyAlias" : "model"
19816 },
19817 "vmxnet3" : {
19818 "alias" : "macaddr",
19819 "keyAlias" : "model"
19820 }
19821 },
19822 "optional" : 1,
19823 "type" : "string",
19824 "typetext" : "[model=]<enum> [,bridge=<bridge>] [,firewall=<1|0>] [,link_down=<1|0>] [,macaddr=<XX:XX:XX:XX:XX:XX>] [,mtu=<integer>] [,queues=<integer>] [,rate=<number>] [,tag=<integer>] [,trunks=<vlanid[;vlanid...]>] [,<model>=<macaddr>]"
19825 },
19826 "node" : {
19827 "description" : "The cluster node name.",
19828 "format" : "pve-node",
19829 "type" : "string",
19830 "typetext" : "<string>"
19831 },
19832 "numa" : {
19833 "default" : 0,
19834 "description" : "Enable/disable NUMA.",
19835 "optional" : 1,
19836 "type" : "boolean",
19837 "typetext" : "<boolean>"
19838 },
19839 "numa[n]" : {
19840 "description" : "NUMA topology.",
19841 "format" : {
19842 "cpus" : {
19843 "description" : "CPUs accessing this NUMA node.",
19844 "format_description" : "id[-id];...",
19845 "pattern" : "(?^:\\d+(?:-\\d+)?(?:;\\d+(?:-\\d+)?)*)",
19846 "type" : "string"
19847 },
19848 "hostnodes" : {
19849 "description" : "Host NUMA nodes to use.",
19850 "format_description" : "id[-id];...",
19851 "optional" : 1,
19852 "pattern" : "(?^:\\d+(?:-\\d+)?(?:;\\d+(?:-\\d+)?)*)",
19853 "type" : "string"
19854 },
19855 "memory" : {
19856 "description" : "Amount of memory this NUMA node provides.",
19857 "optional" : 1,
19858 "type" : "number"
19859 },
19860 "policy" : {
19861 "description" : "NUMA allocation policy.",
19862 "enum" : [
19863 "preferred",
19864 "bind",
19865 "interleave"
19866 ],
19867 "optional" : 1,
19868 "type" : "string"
19869 }
19870 },
19871 "optional" : 1,
19872 "type" : "string",
19873 "typetext" : "cpus=<id[-id];...> [,hostnodes=<id[-id];...>] [,memory=<number>] [,policy=<preferred|bind|interleave>]"
19874 },
19875 "onboot" : {
19876 "default" : 0,
19877 "description" : "Specifies whether a VM will be started during system bootup.",
19878 "optional" : 1,
19879 "type" : "boolean",
19880 "typetext" : "<boolean>"
19881 },
19882 "ostype" : {
19883 "description" : "Specify guest operating system.",
19884 "enum" : [
19885 "other",
19886 "wxp",
19887 "w2k",
19888 "w2k3",
19889 "w2k8",
19890 "wvista",
19891 "win7",
19892 "win8",
19893 "win10",
19894 "win11",
19895 "l24",
19896 "l26",
19897 "solaris"
19898 ],
19899 "optional" : 1,
19900 "type" : "string",
19901 "verbose_description" : "Specify guest operating system. This is used to enable special\noptimization/features for specific operating systems:\n\n[horizontal]\nother;; unspecified OS\nwxp;; Microsoft Windows XP\nw2k;; Microsoft Windows 2000\nw2k3;; Microsoft Windows 2003\nw2k8;; Microsoft Windows 2008\nwvista;; Microsoft Windows Vista\nwin7;; Microsoft Windows 7\nwin8;; Microsoft Windows 8/2012/2012r2\nwin10;; Microsoft Windows 10/2016/2019\nwin11;; Microsoft Windows 11/2022\nl24;; Linux 2.4 Kernel\nl26;; Linux 2.6 - 6.X Kernel\nsolaris;; Solaris/OpenSolaris/OpenIndiania kernel\n"
19902 },
19903 "parallel[n]" : {
19904 "description" : "Map host parallel devices (n is 0 to 2).",
19905 "optional" : 1,
19906 "pattern" : "/dev/parport\\d+|/dev/usb/lp\\d+",
19907 "type" : "string",
19908 "verbose_description" : "Map host parallel devices (n is 0 to 2).\n\nNOTE: This option allows direct access to host hardware. So it is no longer possible to migrate such\nmachines - use with special care.\n\nCAUTION: Experimental! User reported problems with this option.\n"
19909 },
19910 "protection" : {
19911 "default" : 0,
19912 "description" : "Sets the protection flag of the VM. This will disable the remove VM and remove disk operations.",
19913 "optional" : 1,
19914 "type" : "boolean",
19915 "typetext" : "<boolean>"
19916 },
19917 "reboot" : {
19918 "default" : 1,
19919 "description" : "Allow reboot. If set to '0' the VM exit on reboot.",
19920 "optional" : 1,
19921 "type" : "boolean",
19922 "typetext" : "<boolean>"
19923 },
19924 "revert" : {
19925 "description" : "Revert a pending change.",
19926 "format" : "pve-configid-list",
19927 "optional" : 1,
19928 "type" : "string",
19929 "typetext" : "<string>"
19930 },
19931 "rng0" : {
19932 "description" : "Configure a VirtIO-based Random Number Generator.",
19933 "format" : {
19934 "max_bytes" : {
19935 "default" : 1024,
19936 "description" : "Maximum bytes of entropy allowed to get injected into the guest every 'period' milliseconds. Prefer a lower value when using '/dev/random' as source. Use `0` to disable limiting (potentially dangerous!).",
19937 "optional" : 1,
19938 "type" : "integer"
19939 },
19940 "period" : {
19941 "default" : 1000,
19942 "description" : "Every 'period' milliseconds the entropy-injection quota is reset, allowing the guest to retrieve another 'max_bytes' of entropy.",
19943 "optional" : 1,
19944 "type" : "integer"
19945 },
19946 "source" : {
19947 "default_key" : 1,
19948 "description" : "The file on the host to gather entropy from. In most cases '/dev/urandom' should be preferred over '/dev/random' to avoid entropy-starvation issues on the host. Using urandom does *not* decrease security in any meaningful way, as it's still seeded from real entropy, and the bytes provided will most likely be mixed with real entropy on the guest as well. '/dev/hwrng' can be used to pass through a hardware RNG from the host.",
19949 "enum" : [
19950 "/dev/urandom",
19951 "/dev/random",
19952 "/dev/hwrng"
19953 ],
19954 "type" : "string"
19955 }
19956 },
19957 "optional" : 1,
19958 "type" : "string",
19959 "typetext" : "[source=]</dev/urandom|/dev/random|/dev/hwrng> [,max_bytes=<integer>] [,period=<integer>]"
19960 },
19961 "sata[n]" : {
19962 "description" : "Use volume as SATA hard disk or CD-ROM (n is 0 to 5). Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. Use STORAGE_ID:0 and the 'import-from' parameter to import from an existing volume.",
19963 "format" : {
19964 "aio" : {
19965 "description" : "AIO type to use.",
19966 "enum" : [
19967 "native",
19968 "threads",
19969 "io_uring"
19970 ],
19971 "optional" : 1,
19972 "type" : "string"
19973 },
19974 "backup" : {
19975 "description" : "Whether the drive should be included when making backups.",
19976 "optional" : 1,
19977 "type" : "boolean"
19978 },
19979 "bps" : {
19980 "description" : "Maximum r/w speed in bytes per second.",
19981 "format_description" : "bps",
19982 "optional" : 1,
19983 "type" : "integer"
19984 },
19985 "bps_max_length" : {
19986 "description" : "Maximum length of I/O bursts in seconds.",
19987 "format_description" : "seconds",
19988 "minimum" : 1,
19989 "optional" : 1,
19990 "type" : "integer"
19991 },
19992 "bps_rd" : {
19993 "description" : "Maximum read speed in bytes per second.",
19994 "format_description" : "bps",
19995 "optional" : 1,
19996 "type" : "integer"
19997 },
19998 "bps_rd_length" : {
19999 "alias" : "bps_rd_max_length"
20000 },
20001 "bps_rd_max_length" : {
20002 "description" : "Maximum length of read I/O bursts in seconds.",
20003 "format_description" : "seconds",
20004 "minimum" : 1,
20005 "optional" : 1,
20006 "type" : "integer"
20007 },
20008 "bps_wr" : {
20009 "description" : "Maximum write speed in bytes per second.",
20010 "format_description" : "bps",
20011 "optional" : 1,
20012 "type" : "integer"
20013 },
20014 "bps_wr_length" : {
20015 "alias" : "bps_wr_max_length"
20016 },
20017 "bps_wr_max_length" : {
20018 "description" : "Maximum length of write I/O bursts in seconds.",
20019 "format_description" : "seconds",
20020 "minimum" : 1,
20021 "optional" : 1,
20022 "type" : "integer"
20023 },
20024 "cache" : {
20025 "description" : "The drive's cache mode",
20026 "enum" : [
20027 "none",
20028 "writethrough",
20029 "writeback",
20030 "unsafe",
20031 "directsync"
20032 ],
20033 "optional" : 1,
20034 "type" : "string"
20035 },
20036 "cyls" : {
20037 "description" : "Force the drive's physical geometry to have a specific cylinder count.",
20038 "optional" : 1,
20039 "type" : "integer"
20040 },
20041 "detect_zeroes" : {
20042 "description" : "Controls whether to detect and try to optimize writes of zeroes.",
20043 "optional" : 1,
20044 "type" : "boolean"
20045 },
20046 "discard" : {
20047 "description" : "Controls whether to pass discard/trim requests to the underlying storage.",
20048 "enum" : [
20049 "ignore",
20050 "on"
20051 ],
20052 "optional" : 1,
20053 "type" : "string"
20054 },
20055 "file" : {
20056 "default_key" : 1,
20057 "description" : "The drive's backing volume.",
20058 "format" : "pve-volume-id-or-qm-path",
20059 "format_description" : "volume",
20060 "type" : "string"
20061 },
20062 "format" : {
20063 "description" : "The drive's backing file's data format.",
20064 "enum" : [
20065 "raw",
20066 "cow",
20067 "qcow",
20068 "qed",
20069 "qcow2",
20070 "vmdk",
20071 "cloop"
20072 ],
20073 "optional" : 1,
20074 "type" : "string"
20075 },
20076 "heads" : {
20077 "description" : "Force the drive's physical geometry to have a specific head count.",
20078 "optional" : 1,
20079 "type" : "integer"
20080 },
20081 "import-from" : {
20082 "description" : "Create a new disk, importing from this source (volume ID or absolute path). When an absolute path is specified, it's up to you to ensure that the source is not actively used by another process during the import!",
20083 "format" : "pve-volume-id-or-absolute-path",
20084 "format_description" : "source volume",
20085 "optional" : 1,
20086 "type" : "string"
20087 },
20088 "iops" : {
20089 "description" : "Maximum r/w I/O in operations per second.",
20090 "format_description" : "iops",
20091 "optional" : 1,
20092 "type" : "integer"
20093 },
20094 "iops_max" : {
20095 "description" : "Maximum unthrottled r/w I/O pool in operations per second.",
20096 "format_description" : "iops",
20097 "optional" : 1,
20098 "type" : "integer"
20099 },
20100 "iops_max_length" : {
20101 "description" : "Maximum length of I/O bursts in seconds.",
20102 "format_description" : "seconds",
20103 "minimum" : 1,
20104 "optional" : 1,
20105 "type" : "integer"
20106 },
20107 "iops_rd" : {
20108 "description" : "Maximum read I/O in operations per second.",
20109 "format_description" : "iops",
20110 "optional" : 1,
20111 "type" : "integer"
20112 },
20113 "iops_rd_length" : {
20114 "alias" : "iops_rd_max_length"
20115 },
20116 "iops_rd_max" : {
20117 "description" : "Maximum unthrottled read I/O pool in operations per second.",
20118 "format_description" : "iops",
20119 "optional" : 1,
20120 "type" : "integer"
20121 },
20122 "iops_rd_max_length" : {
20123 "description" : "Maximum length of read I/O bursts in seconds.",
20124 "format_description" : "seconds",
20125 "minimum" : 1,
20126 "optional" : 1,
20127 "type" : "integer"
20128 },
20129 "iops_wr" : {
20130 "description" : "Maximum write I/O in operations per second.",
20131 "format_description" : "iops",
20132 "optional" : 1,
20133 "type" : "integer"
20134 },
20135 "iops_wr_length" : {
20136 "alias" : "iops_wr_max_length"
20137 },
20138 "iops_wr_max" : {
20139 "description" : "Maximum unthrottled write I/O pool in operations per second.",
20140 "format_description" : "iops",
20141 "optional" : 1,
20142 "type" : "integer"
20143 },
20144 "iops_wr_max_length" : {
20145 "description" : "Maximum length of write I/O bursts in seconds.",
20146 "format_description" : "seconds",
20147 "minimum" : 1,
20148 "optional" : 1,
20149 "type" : "integer"
20150 },
20151 "mbps" : {
20152 "description" : "Maximum r/w speed in megabytes per second.",
20153 "format_description" : "mbps",
20154 "optional" : 1,
20155 "type" : "number"
20156 },
20157 "mbps_max" : {
20158 "description" : "Maximum unthrottled r/w pool in megabytes per second.",
20159 "format_description" : "mbps",
20160 "optional" : 1,
20161 "type" : "number"
20162 },
20163 "mbps_rd" : {
20164 "description" : "Maximum read speed in megabytes per second.",
20165 "format_description" : "mbps",
20166 "optional" : 1,
20167 "type" : "number"
20168 },
20169 "mbps_rd_max" : {
20170 "description" : "Maximum unthrottled read pool in megabytes per second.",
20171 "format_description" : "mbps",
20172 "optional" : 1,
20173 "type" : "number"
20174 },
20175 "mbps_wr" : {
20176 "description" : "Maximum write speed in megabytes per second.",
20177 "format_description" : "mbps",
20178 "optional" : 1,
20179 "type" : "number"
20180 },
20181 "mbps_wr_max" : {
20182 "description" : "Maximum unthrottled write pool in megabytes per second.",
20183 "format_description" : "mbps",
20184 "optional" : 1,
20185 "type" : "number"
20186 },
20187 "media" : {
20188 "default" : "disk",
20189 "description" : "The drive's media type.",
20190 "enum" : [
20191 "cdrom",
20192 "disk"
20193 ],
20194 "optional" : 1,
20195 "type" : "string"
20196 },
20197 "replicate" : {
20198 "default" : 1,
20199 "description" : "Whether the drive should considered for replication jobs.",
20200 "optional" : 1,
20201 "type" : "boolean"
20202 },
20203 "rerror" : {
20204 "description" : "Read error action.",
20205 "enum" : [
20206 "ignore",
20207 "report",
20208 "stop"
20209 ],
20210 "optional" : 1,
20211 "type" : "string"
20212 },
20213 "secs" : {
20214 "description" : "Force the drive's physical geometry to have a specific sector count.",
20215 "optional" : 1,
20216 "type" : "integer"
20217 },
20218 "serial" : {
20219 "description" : "The drive's reported serial number, url-encoded, up to 20 bytes long.",
20220 "format" : "urlencoded",
20221 "format_description" : "serial",
20222 "maxLength" : 60,
20223 "optional" : 1,
20224 "type" : "string"
20225 },
20226 "shared" : {
20227 "default" : 0,
20228 "description" : "Mark this locally-managed volume as available on all nodes",
20229 "optional" : 1,
20230 "type" : "boolean",
20231 "verbose_description" : "Mark this locally-managed volume as available on all nodes.\n\nWARNING: This option does not share the volume automatically, it assumes it is shared already!"
20232 },
20233 "size" : {
20234 "description" : "Disk size. This is purely informational and has no effect.",
20235 "format" : "disk-size",
20236 "format_description" : "DiskSize",
20237 "optional" : 1,
20238 "type" : "string"
20239 },
20240 "snapshot" : {
20241 "description" : "Controls qemu's snapshot mode feature. If activated, changes made to the disk are temporary and will be discarded when the VM is shutdown.",
20242 "optional" : 1,
20243 "type" : "boolean"
20244 },
20245 "ssd" : {
20246 "description" : "Whether to expose this drive as an SSD, rather than a rotational hard disk.",
20247 "optional" : 1,
20248 "type" : "boolean"
20249 },
20250 "trans" : {
20251 "description" : "Force disk geometry bios translation mode.",
20252 "enum" : [
20253 "none",
20254 "lba",
20255 "auto"
20256 ],
20257 "optional" : 1,
20258 "type" : "string"
20259 },
20260 "volume" : {
20261 "alias" : "file"
20262 },
20263 "werror" : {
20264 "description" : "Write error action.",
20265 "enum" : [
20266 "enospc",
20267 "ignore",
20268 "report",
20269 "stop"
20270 ],
20271 "optional" : 1,
20272 "type" : "string"
20273 },
20274 "wwn" : {
20275 "description" : "The drive's worldwide name, encoded as 16 bytes hex string, prefixed by '0x'.",
20276 "format_description" : "wwn",
20277 "optional" : 1,
20278 "pattern" : "(?^:^(0x)[0-9a-fA-F]{16})",
20279 "type" : "string"
20280 }
20281 },
20282 "optional" : 1,
20283 "type" : "string",
20284 "typetext" : "[file=]<volume> [,aio=<native|threads|io_uring>] [,backup=<1|0>] [,bps=<bps>] [,bps_max_length=<seconds>] [,bps_rd=<bps>] [,bps_rd_max_length=<seconds>] [,bps_wr=<bps>] [,bps_wr_max_length=<seconds>] [,cache=<enum>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<enum>] [,heads=<integer>] [,import-from=<source volume>] [,iops=<iops>] [,iops_max=<iops>] [,iops_max_length=<seconds>] [,iops_rd=<iops>] [,iops_rd_max=<iops>] [,iops_rd_max_length=<seconds>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,iops_wr_max_length=<seconds>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,replicate=<1|0>] [,rerror=<ignore|report|stop>] [,secs=<integer>] [,serial=<serial>] [,shared=<1|0>] [,size=<DiskSize>] [,snapshot=<1|0>] [,ssd=<1|0>] [,trans=<none|lba|auto>] [,werror=<enum>] [,wwn=<wwn>]"
20285 },
20286 "scsi[n]" : {
20287 "description" : "Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. Use STORAGE_ID:0 and the 'import-from' parameter to import from an existing volume.",
20288 "format" : {
20289 "aio" : {
20290 "description" : "AIO type to use.",
20291 "enum" : [
20292 "native",
20293 "threads",
20294 "io_uring"
20295 ],
20296 "optional" : 1,
20297 "type" : "string"
20298 },
20299 "backup" : {
20300 "description" : "Whether the drive should be included when making backups.",
20301 "optional" : 1,
20302 "type" : "boolean"
20303 },
20304 "bps" : {
20305 "description" : "Maximum r/w speed in bytes per second.",
20306 "format_description" : "bps",
20307 "optional" : 1,
20308 "type" : "integer"
20309 },
20310 "bps_max_length" : {
20311 "description" : "Maximum length of I/O bursts in seconds.",
20312 "format_description" : "seconds",
20313 "minimum" : 1,
20314 "optional" : 1,
20315 "type" : "integer"
20316 },
20317 "bps_rd" : {
20318 "description" : "Maximum read speed in bytes per second.",
20319 "format_description" : "bps",
20320 "optional" : 1,
20321 "type" : "integer"
20322 },
20323 "bps_rd_length" : {
20324 "alias" : "bps_rd_max_length"
20325 },
20326 "bps_rd_max_length" : {
20327 "description" : "Maximum length of read I/O bursts in seconds.",
20328 "format_description" : "seconds",
20329 "minimum" : 1,
20330 "optional" : 1,
20331 "type" : "integer"
20332 },
20333 "bps_wr" : {
20334 "description" : "Maximum write speed in bytes per second.",
20335 "format_description" : "bps",
20336 "optional" : 1,
20337 "type" : "integer"
20338 },
20339 "bps_wr_length" : {
20340 "alias" : "bps_wr_max_length"
20341 },
20342 "bps_wr_max_length" : {
20343 "description" : "Maximum length of write I/O bursts in seconds.",
20344 "format_description" : "seconds",
20345 "minimum" : 1,
20346 "optional" : 1,
20347 "type" : "integer"
20348 },
20349 "cache" : {
20350 "description" : "The drive's cache mode",
20351 "enum" : [
20352 "none",
20353 "writethrough",
20354 "writeback",
20355 "unsafe",
20356 "directsync"
20357 ],
20358 "optional" : 1,
20359 "type" : "string"
20360 },
20361 "cyls" : {
20362 "description" : "Force the drive's physical geometry to have a specific cylinder count.",
20363 "optional" : 1,
20364 "type" : "integer"
20365 },
20366 "detect_zeroes" : {
20367 "description" : "Controls whether to detect and try to optimize writes of zeroes.",
20368 "optional" : 1,
20369 "type" : "boolean"
20370 },
20371 "discard" : {
20372 "description" : "Controls whether to pass discard/trim requests to the underlying storage.",
20373 "enum" : [
20374 "ignore",
20375 "on"
20376 ],
20377 "optional" : 1,
20378 "type" : "string"
20379 },
20380 "file" : {
20381 "default_key" : 1,
20382 "description" : "The drive's backing volume.",
20383 "format" : "pve-volume-id-or-qm-path",
20384 "format_description" : "volume",
20385 "type" : "string"
20386 },
20387 "format" : {
20388 "description" : "The drive's backing file's data format.",
20389 "enum" : [
20390 "raw",
20391 "cow",
20392 "qcow",
20393 "qed",
20394 "qcow2",
20395 "vmdk",
20396 "cloop"
20397 ],
20398 "optional" : 1,
20399 "type" : "string"
20400 },
20401 "heads" : {
20402 "description" : "Force the drive's physical geometry to have a specific head count.",
20403 "optional" : 1,
20404 "type" : "integer"
20405 },
20406 "import-from" : {
20407 "description" : "Create a new disk, importing from this source (volume ID or absolute path). When an absolute path is specified, it's up to you to ensure that the source is not actively used by another process during the import!",
20408 "format" : "pve-volume-id-or-absolute-path",
20409 "format_description" : "source volume",
20410 "optional" : 1,
20411 "type" : "string"
20412 },
20413 "iops" : {
20414 "description" : "Maximum r/w I/O in operations per second.",
20415 "format_description" : "iops",
20416 "optional" : 1,
20417 "type" : "integer"
20418 },
20419 "iops_max" : {
20420 "description" : "Maximum unthrottled r/w I/O pool in operations per second.",
20421 "format_description" : "iops",
20422 "optional" : 1,
20423 "type" : "integer"
20424 },
20425 "iops_max_length" : {
20426 "description" : "Maximum length of I/O bursts in seconds.",
20427 "format_description" : "seconds",
20428 "minimum" : 1,
20429 "optional" : 1,
20430 "type" : "integer"
20431 },
20432 "iops_rd" : {
20433 "description" : "Maximum read I/O in operations per second.",
20434 "format_description" : "iops",
20435 "optional" : 1,
20436 "type" : "integer"
20437 },
20438 "iops_rd_length" : {
20439 "alias" : "iops_rd_max_length"
20440 },
20441 "iops_rd_max" : {
20442 "description" : "Maximum unthrottled read I/O pool in operations per second.",
20443 "format_description" : "iops",
20444 "optional" : 1,
20445 "type" : "integer"
20446 },
20447 "iops_rd_max_length" : {
20448 "description" : "Maximum length of read I/O bursts in seconds.",
20449 "format_description" : "seconds",
20450 "minimum" : 1,
20451 "optional" : 1,
20452 "type" : "integer"
20453 },
20454 "iops_wr" : {
20455 "description" : "Maximum write I/O in operations per second.",
20456 "format_description" : "iops",
20457 "optional" : 1,
20458 "type" : "integer"
20459 },
20460 "iops_wr_length" : {
20461 "alias" : "iops_wr_max_length"
20462 },
20463 "iops_wr_max" : {
20464 "description" : "Maximum unthrottled write I/O pool in operations per second.",
20465 "format_description" : "iops",
20466 "optional" : 1,
20467 "type" : "integer"
20468 },
20469 "iops_wr_max_length" : {
20470 "description" : "Maximum length of write I/O bursts in seconds.",
20471 "format_description" : "seconds",
20472 "minimum" : 1,
20473 "optional" : 1,
20474 "type" : "integer"
20475 },
20476 "iothread" : {
20477 "description" : "Whether to use iothreads for this drive",
20478 "optional" : 1,
20479 "type" : "boolean"
20480 },
20481 "mbps" : {
20482 "description" : "Maximum r/w speed in megabytes per second.",
20483 "format_description" : "mbps",
20484 "optional" : 1,
20485 "type" : "number"
20486 },
20487 "mbps_max" : {
20488 "description" : "Maximum unthrottled r/w pool in megabytes per second.",
20489 "format_description" : "mbps",
20490 "optional" : 1,
20491 "type" : "number"
20492 },
20493 "mbps_rd" : {
20494 "description" : "Maximum read speed in megabytes per second.",
20495 "format_description" : "mbps",
20496 "optional" : 1,
20497 "type" : "number"
20498 },
20499 "mbps_rd_max" : {
20500 "description" : "Maximum unthrottled read pool in megabytes per second.",
20501 "format_description" : "mbps",
20502 "optional" : 1,
20503 "type" : "number"
20504 },
20505 "mbps_wr" : {
20506 "description" : "Maximum write speed in megabytes per second.",
20507 "format_description" : "mbps",
20508 "optional" : 1,
20509 "type" : "number"
20510 },
20511 "mbps_wr_max" : {
20512 "description" : "Maximum unthrottled write pool in megabytes per second.",
20513 "format_description" : "mbps",
20514 "optional" : 1,
20515 "type" : "number"
20516 },
20517 "media" : {
20518 "default" : "disk",
20519 "description" : "The drive's media type.",
20520 "enum" : [
20521 "cdrom",
20522 "disk"
20523 ],
20524 "optional" : 1,
20525 "type" : "string"
20526 },
20527 "product" : {
20528 "description" : "The drive's product name, up to 16 bytes long.",
20529 "format_description" : "product",
20530 "optional" : 1,
20531 "pattern" : "[A-Za-z0-9\\-_\\s]{,16}",
20532 "type" : "string"
20533 },
20534 "queues" : {
20535 "description" : "Number of queues.",
20536 "minimum" : 2,
20537 "optional" : 1,
20538 "type" : "integer"
20539 },
20540 "replicate" : {
20541 "default" : 1,
20542 "description" : "Whether the drive should considered for replication jobs.",
20543 "optional" : 1,
20544 "type" : "boolean"
20545 },
20546 "rerror" : {
20547 "description" : "Read error action.",
20548 "enum" : [
20549 "ignore",
20550 "report",
20551 "stop"
20552 ],
20553 "optional" : 1,
20554 "type" : "string"
20555 },
20556 "ro" : {
20557 "description" : "Whether the drive is read-only.",
20558 "optional" : 1,
20559 "type" : "boolean"
20560 },
20561 "scsiblock" : {
20562 "default" : 0,
20563 "description" : "whether to use scsi-block for full passthrough of host block device\n\nWARNING: can lead to I/O errors in combination with low memory or high memory fragmentation on host",
20564 "optional" : 1,
20565 "type" : "boolean"
20566 },
20567 "secs" : {
20568 "description" : "Force the drive's physical geometry to have a specific sector count.",
20569 "optional" : 1,
20570 "type" : "integer"
20571 },
20572 "serial" : {
20573 "description" : "The drive's reported serial number, url-encoded, up to 20 bytes long.",
20574 "format" : "urlencoded",
20575 "format_description" : "serial",
20576 "maxLength" : 60,
20577 "optional" : 1,
20578 "type" : "string"
20579 },
20580 "shared" : {
20581 "default" : 0,
20582 "description" : "Mark this locally-managed volume as available on all nodes",
20583 "optional" : 1,
20584 "type" : "boolean",
20585 "verbose_description" : "Mark this locally-managed volume as available on all nodes.\n\nWARNING: This option does not share the volume automatically, it assumes it is shared already!"
20586 },
20587 "size" : {
20588 "description" : "Disk size. This is purely informational and has no effect.",
20589 "format" : "disk-size",
20590 "format_description" : "DiskSize",
20591 "optional" : 1,
20592 "type" : "string"
20593 },
20594 "snapshot" : {
20595 "description" : "Controls qemu's snapshot mode feature. If activated, changes made to the disk are temporary and will be discarded when the VM is shutdown.",
20596 "optional" : 1,
20597 "type" : "boolean"
20598 },
20599 "ssd" : {
20600 "description" : "Whether to expose this drive as an SSD, rather than a rotational hard disk.",
20601 "optional" : 1,
20602 "type" : "boolean"
20603 },
20604 "trans" : {
20605 "description" : "Force disk geometry bios translation mode.",
20606 "enum" : [
20607 "none",
20608 "lba",
20609 "auto"
20610 ],
20611 "optional" : 1,
20612 "type" : "string"
20613 },
20614 "vendor" : {
20615 "description" : "The drive's vendor name, up to 8 bytes long.",
20616 "format_description" : "vendor",
20617 "optional" : 1,
20618 "pattern" : "[A-Za-z0-9\\-_\\s]{,8}",
20619 "type" : "string"
20620 },
20621 "volume" : {
20622 "alias" : "file"
20623 },
20624 "werror" : {
20625 "description" : "Write error action.",
20626 "enum" : [
20627 "enospc",
20628 "ignore",
20629 "report",
20630 "stop"
20631 ],
20632 "optional" : 1,
20633 "type" : "string"
20634 },
20635 "wwn" : {
20636 "description" : "The drive's worldwide name, encoded as 16 bytes hex string, prefixed by '0x'.",
20637 "format_description" : "wwn",
20638 "optional" : 1,
20639 "pattern" : "(?^:^(0x)[0-9a-fA-F]{16})",
20640 "type" : "string"
20641 }
20642 },
20643 "optional" : 1,
20644 "type" : "string",
20645 "typetext" : "[file=]<volume> [,aio=<native|threads|io_uring>] [,backup=<1|0>] [,bps=<bps>] [,bps_max_length=<seconds>] [,bps_rd=<bps>] [,bps_rd_max_length=<seconds>] [,bps_wr=<bps>] [,bps_wr_max_length=<seconds>] [,cache=<enum>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<enum>] [,heads=<integer>] [,import-from=<source volume>] [,iops=<iops>] [,iops_max=<iops>] [,iops_max_length=<seconds>] [,iops_rd=<iops>] [,iops_rd_max=<iops>] [,iops_rd_max_length=<seconds>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,iops_wr_max_length=<seconds>] [,iothread=<1|0>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,product=<product>] [,queues=<integer>] [,replicate=<1|0>] [,rerror=<ignore|report|stop>] [,ro=<1|0>] [,scsiblock=<1|0>] [,secs=<integer>] [,serial=<serial>] [,shared=<1|0>] [,size=<DiskSize>] [,snapshot=<1|0>] [,ssd=<1|0>] [,trans=<none|lba|auto>] [,vendor=<vendor>] [,werror=<enum>] [,wwn=<wwn>]"
20646 },
20647 "scsihw" : {
20648 "default" : "lsi",
20649 "description" : "SCSI controller model",
20650 "enum" : [
20651 "lsi",
20652 "lsi53c810",
20653 "virtio-scsi-pci",
20654 "virtio-scsi-single",
20655 "megasas",
20656 "pvscsi"
20657 ],
20658 "optional" : 1,
20659 "type" : "string"
20660 },
20661 "searchdomain" : {
20662 "description" : "cloud-init: Sets DNS search domains for a container. Create will automatically use the setting from the host if neither searchdomain nor nameserver are set.",
20663 "optional" : 1,
20664 "type" : "string",
20665 "typetext" : "<string>"
20666 },
20667 "serial[n]" : {
20668 "description" : "Create a serial device inside the VM (n is 0 to 3)",
20669 "optional" : 1,
20670 "pattern" : "(/dev/.+|socket)",
20671 "type" : "string",
20672 "verbose_description" : "Create a serial device inside the VM (n is 0 to 3), and pass through a\nhost serial device (i.e. /dev/ttyS0), or create a unix socket on the\nhost side (use 'qm terminal' to open a terminal connection).\n\nNOTE: If you pass through a host serial device, it is no longer possible to migrate such machines -\nuse with special care.\n\nCAUTION: Experimental! User reported problems with this option.\n"
20673 },
20674 "shares" : {
20675 "default" : 1000,
20676 "description" : "Amount of memory shares for auto-ballooning. The larger the number is, the more memory this VM gets. Number is relative to weights of all other running VMs. Using zero disables auto-ballooning. Auto-ballooning is done by pvestatd.",
20677 "maximum" : 50000,
20678 "minimum" : 0,
20679 "optional" : 1,
20680 "type" : "integer",
20681 "typetext" : "<integer> (0 - 50000)"
20682 },
20683 "skiplock" : {
20684 "description" : "Ignore locks - only root is allowed to use this option.",
20685 "optional" : 1,
20686 "type" : "boolean",
20687 "typetext" : "<boolean>"
20688 },
20689 "smbios1" : {
20690 "description" : "Specify SMBIOS type 1 fields.",
20691 "format" : "pve-qm-smbios1",
20692 "maxLength" : 512,
20693 "optional" : 1,
20694 "type" : "string",
20695 "typetext" : "[base64=<1|0>] [,family=<Base64 encoded string>] [,manufacturer=<Base64 encoded string>] [,product=<Base64 encoded string>] [,serial=<Base64 encoded string>] [,sku=<Base64 encoded string>] [,uuid=<UUID>] [,version=<Base64 encoded string>]"
20696 },
20697 "smp" : {
20698 "default" : 1,
20699 "description" : "The number of CPUs. Please use option -sockets instead.",
20700 "minimum" : 1,
20701 "optional" : 1,
20702 "type" : "integer",
20703 "typetext" : "<integer> (1 - N)"
20704 },
20705 "sockets" : {
20706 "default" : 1,
20707 "description" : "The number of CPU sockets.",
20708 "minimum" : 1,
20709 "optional" : 1,
20710 "type" : "integer",
20711 "typetext" : "<integer> (1 - N)"
20712 },
20713 "spice_enhancements" : {
20714 "description" : "Configure additional enhancements for SPICE.",
20715 "format" : {
20716 "foldersharing" : {
20717 "default" : "0",
20718 "description" : "Enable folder sharing via SPICE. Needs Spice-WebDAV daemon installed in the VM.",
20719 "optional" : 1,
20720 "type" : "boolean"
20721 },
20722 "videostreaming" : {
20723 "default" : "off",
20724 "description" : "Enable video streaming. Uses compression for detected video streams.",
20725 "enum" : [
20726 "off",
20727 "all",
20728 "filter"
20729 ],
20730 "optional" : 1,
20731 "type" : "string"
20732 }
20733 },
20734 "optional" : 1,
20735 "type" : "string",
20736 "typetext" : "[foldersharing=<1|0>] [,videostreaming=<off|all|filter>]"
20737 },
20738 "sshkeys" : {
20739 "description" : "cloud-init: Setup public SSH keys (one key per line, OpenSSH format).",
20740 "format" : "urlencoded",
20741 "optional" : 1,
20742 "type" : "string",
20743 "typetext" : "<string>"
20744 },
20745 "startdate" : {
20746 "default" : "now",
20747 "description" : "Set the initial date of the real time clock. Valid format for date are:'now' or '2006-06-17T16:01:21' or '2006-06-17'.",
20748 "optional" : 1,
20749 "pattern" : "(now|\\d{4}-\\d{1,2}-\\d{1,2}(T\\d{1,2}:\\d{1,2}:\\d{1,2})?)",
20750 "type" : "string",
20751 "typetext" : "(now | YYYY-MM-DD | YYYY-MM-DDTHH:MM:SS)"
20752 },
20753 "startup" : {
20754 "description" : "Startup and shutdown behavior. Order is a non-negative number defining the general startup order. Shutdown in done with reverse ordering. Additionally you can set the 'up' or 'down' delay in seconds, which specifies a delay to wait before the next VM is started or stopped.",
20755 "format" : "pve-startup-order",
20756 "optional" : 1,
20757 "type" : "string",
20758 "typetext" : "[[order=]\\d+] [,up=\\d+] [,down=\\d+] "
20759 },
20760 "tablet" : {
20761 "default" : 1,
20762 "description" : "Enable/disable the USB tablet device.",
20763 "optional" : 1,
20764 "type" : "boolean",
20765 "typetext" : "<boolean>",
20766 "verbose_description" : "Enable/disable the USB tablet device. This device is usually needed to allow absolute mouse positioning with VNC. Else the mouse runs out of sync with normal VNC clients. If you're running lots of console-only guests on one host, you may consider disabling this to save some context switches. This is turned off by default if you use spice (`qm set <vmid> --vga qxl`)."
20767 },
20768 "tags" : {
20769 "description" : "Tags of the VM. This is only meta information.",
20770 "format" : "pve-tag-list",
20771 "optional" : 1,
20772 "type" : "string",
20773 "typetext" : "<string>"
20774 },
20775 "tdf" : {
20776 "default" : 0,
20777 "description" : "Enable/disable time drift fix.",
20778 "optional" : 1,
20779 "type" : "boolean",
20780 "typetext" : "<boolean>"
20781 },
20782 "template" : {
20783 "default" : 0,
20784 "description" : "Enable/disable Template.",
20785 "optional" : 1,
20786 "type" : "boolean",
20787 "typetext" : "<boolean>"
20788 },
20789 "tpmstate0" : {
20790 "description" : "Configure a Disk for storing TPM state. The format is fixed to 'raw'. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. Note that SIZE_IN_GiB is ignored here and 4 MiB will be used instead. Use STORAGE_ID:0 and the 'import-from' parameter to import from an existing volume.",
20791 "format" : {
20792 "file" : {
20793 "default_key" : 1,
20794 "description" : "The drive's backing volume.",
20795 "format" : "pve-volume-id-or-qm-path",
20796 "format_description" : "volume",
20797 "type" : "string"
20798 },
20799 "import-from" : {
20800 "description" : "Create a new disk, importing from this source (volume ID or absolute path). When an absolute path is specified, it's up to you to ensure that the source is not actively used by another process during the import!",
20801 "format" : "pve-volume-id-or-absolute-path",
20802 "format_description" : "source volume",
20803 "optional" : 1,
20804 "type" : "string"
20805 },
20806 "size" : {
20807 "description" : "Disk size. This is purely informational and has no effect.",
20808 "format" : "disk-size",
20809 "format_description" : "DiskSize",
20810 "optional" : 1,
20811 "type" : "string"
20812 },
20813 "version" : {
20814 "default" : "v2.0",
20815 "description" : "The TPM interface version. v2.0 is newer and should be preferred. Note that this cannot be changed later on.",
20816 "enum" : [
20817 "v1.2",
20818 "v2.0"
20819 ],
20820 "optional" : 1,
20821 "type" : "string"
20822 },
20823 "volume" : {
20824 "alias" : "file"
20825 }
20826 },
20827 "optional" : 1,
20828 "type" : "string",
20829 "typetext" : "[file=]<volume> [,import-from=<source volume>] [,size=<DiskSize>] [,version=<v1.2|v2.0>]"
20830 },
20831 "unused[n]" : {
20832 "description" : "Reference to unused volumes. This is used internally, and should not be modified manually.",
20833 "format" : {
20834 "file" : {
20835 "default_key" : 1,
20836 "description" : "The drive's backing volume.",
20837 "format" : "pve-volume-id",
20838 "format_description" : "volume",
20839 "type" : "string"
20840 },
20841 "volume" : {
20842 "alias" : "file"
20843 }
20844 },
20845 "optional" : 1,
20846 "type" : "string",
20847 "typetext" : "[file=]<volume>"
20848 },
20849 "usb[n]" : {
20850 "description" : "Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14).",
20851 "format" : {
20852 "host" : {
20853 "default_key" : 1,
20854 "description" : "The Host USB device or port or the value 'spice'. HOSTUSBDEVICE syntax is:\n\n 'bus-port(.port)*' (decimal numbers) or\n 'vendor_id:product_id' (hexadeciaml numbers) or\n 'spice'\n\nYou can use the 'lsusb -t' command to list existing usb devices.\n\nNOTE: This option allows direct access to host hardware. So it is no longer possible to migrate such\nmachines - use with special care.\n\nThe value 'spice' can be used to add a usb redirection devices for spice.\n\nEither this or the 'mapping' key must be set.\n",
20855 "format_description" : "HOSTUSBDEVICE|spice",
20856 "optional" : 1,
20857 "pattern" : "(?^:(?:(?:(?^:(0x)?([0-9A-Fa-f]{4}):(0x)?([0-9A-Fa-f]{4})))|(?:(?^:(\\d+)\\-(\\d+(\\.\\d+)*)))|[Ss][Pp][Ii][Cc][Ee]))",
20858 "type" : "string"
20859 },
20860 "mapping" : {
20861 "description" : "The ID of a cluster wide mapping. Either this or the default-key 'host' must be set.",
20862 "format" : "pve-configid",
20863 "format_description" : "mapping-id",
20864 "optional" : 1,
20865 "type" : "string"
20866 },
20867 "usb3" : {
20868 "default" : 0,
20869 "description" : "Specifies whether if given host option is a USB3 device or port. For modern guests (machine version >= 7.1 and ostype l26 and windows > 7), this flag is irrelevant (all devices are plugged into a xhci controller).",
20870 "optional" : 1,
20871 "type" : "boolean"
20872 }
20873 },
20874 "optional" : 1,
20875 "type" : "string",
20876 "typetext" : "[[host=]<HOSTUSBDEVICE|spice>] [,mapping=<mapping-id>] [,usb3=<1|0>]"
20877 },
20878 "vcpus" : {
20879 "default" : 0,
20880 "description" : "Number of hotplugged vcpus.",
20881 "minimum" : 1,
20882 "optional" : 1,
20883 "type" : "integer",
20884 "typetext" : "<integer> (1 - N)"
20885 },
20886 "vga" : {
20887 "description" : "Configure the VGA hardware.",
20888 "format" : {
20889 "clipboard" : {
20890 "description" : "Enable a specific clipboard. If not set, depending on the display type the SPICE one will be added. Migration with VNC clipboard is not yet supported!",
20891 "enum" : [
20892 "vnc"
20893 ],
20894 "optional" : 1,
20895 "type" : "string"
20896 },
20897 "memory" : {
20898 "description" : "Sets the VGA memory (in MiB). Has no effect with serial display.",
20899 "maximum" : 512,
20900 "minimum" : 4,
20901 "optional" : 1,
20902 "type" : "integer"
20903 },
20904 "type" : {
20905 "default" : "std",
20906 "default_key" : 1,
20907 "description" : "Select the VGA type.",
20908 "enum" : [
20909 "cirrus",
20910 "qxl",
20911 "qxl2",
20912 "qxl3",
20913 "qxl4",
20914 "none",
20915 "serial0",
20916 "serial1",
20917 "serial2",
20918 "serial3",
20919 "std",
20920 "virtio",
20921 "virtio-gl",
20922 "vmware"
20923 ],
20924 "optional" : 1,
20925 "type" : "string"
20926 }
20927 },
20928 "optional" : 1,
20929 "type" : "string",
20930 "typetext" : "[[type=]<enum>] [,clipboard=<vnc>] [,memory=<integer>]",
20931 "verbose_description" : "Configure the VGA Hardware. If you want to use high resolution modes (>= 1280x1024x16) you may need to increase the vga memory option. Since QEMU 2.9 the default VGA display type is 'std' for all OS types besides some Windows versions (XP and older) which use 'cirrus'. The 'qxl' option enables the SPICE display server. For win* OS you can select how many independent displays you want, Linux guests can add displays them self.\nYou can also run without any graphic card, using a serial device as terminal."
20932 },
20933 "virtio[n]" : {
20934 "description" : "Use volume as VIRTIO hard disk (n is 0 to 15). Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. Use STORAGE_ID:0 and the 'import-from' parameter to import from an existing volume.",
20935 "format" : {
20936 "aio" : {
20937 "description" : "AIO type to use.",
20938 "enum" : [
20939 "native",
20940 "threads",
20941 "io_uring"
20942 ],
20943 "optional" : 1,
20944 "type" : "string"
20945 },
20946 "backup" : {
20947 "description" : "Whether the drive should be included when making backups.",
20948 "optional" : 1,
20949 "type" : "boolean"
20950 },
20951 "bps" : {
20952 "description" : "Maximum r/w speed in bytes per second.",
20953 "format_description" : "bps",
20954 "optional" : 1,
20955 "type" : "integer"
20956 },
20957 "bps_max_length" : {
20958 "description" : "Maximum length of I/O bursts in seconds.",
20959 "format_description" : "seconds",
20960 "minimum" : 1,
20961 "optional" : 1,
20962 "type" : "integer"
20963 },
20964 "bps_rd" : {
20965 "description" : "Maximum read speed in bytes per second.",
20966 "format_description" : "bps",
20967 "optional" : 1,
20968 "type" : "integer"
20969 },
20970 "bps_rd_length" : {
20971 "alias" : "bps_rd_max_length"
20972 },
20973 "bps_rd_max_length" : {
20974 "description" : "Maximum length of read I/O bursts in seconds.",
20975 "format_description" : "seconds",
20976 "minimum" : 1,
20977 "optional" : 1,
20978 "type" : "integer"
20979 },
20980 "bps_wr" : {
20981 "description" : "Maximum write speed in bytes per second.",
20982 "format_description" : "bps",
20983 "optional" : 1,
20984 "type" : "integer"
20985 },
20986 "bps_wr_length" : {
20987 "alias" : "bps_wr_max_length"
20988 },
20989 "bps_wr_max_length" : {
20990 "description" : "Maximum length of write I/O bursts in seconds.",
20991 "format_description" : "seconds",
20992 "minimum" : 1,
20993 "optional" : 1,
20994 "type" : "integer"
20995 },
20996 "cache" : {
20997 "description" : "The drive's cache mode",
20998 "enum" : [
20999 "none",
21000 "writethrough",
21001 "writeback",
21002 "unsafe",
21003 "directsync"
21004 ],
21005 "optional" : 1,
21006 "type" : "string"
21007 },
21008 "cyls" : {
21009 "description" : "Force the drive's physical geometry to have a specific cylinder count.",
21010 "optional" : 1,
21011 "type" : "integer"
21012 },
21013 "detect_zeroes" : {
21014 "description" : "Controls whether to detect and try to optimize writes of zeroes.",
21015 "optional" : 1,
21016 "type" : "boolean"
21017 },
21018 "discard" : {
21019 "description" : "Controls whether to pass discard/trim requests to the underlying storage.",
21020 "enum" : [
21021 "ignore",
21022 "on"
21023 ],
21024 "optional" : 1,
21025 "type" : "string"
21026 },
21027 "file" : {
21028 "default_key" : 1,
21029 "description" : "The drive's backing volume.",
21030 "format" : "pve-volume-id-or-qm-path",
21031 "format_description" : "volume",
21032 "type" : "string"
21033 },
21034 "format" : {
21035 "description" : "The drive's backing file's data format.",
21036 "enum" : [
21037 "raw",
21038 "cow",
21039 "qcow",
21040 "qed",
21041 "qcow2",
21042 "vmdk",
21043 "cloop"
21044 ],
21045 "optional" : 1,
21046 "type" : "string"
21047 },
21048 "heads" : {
21049 "description" : "Force the drive's physical geometry to have a specific head count.",
21050 "optional" : 1,
21051 "type" : "integer"
21052 },
21053 "import-from" : {
21054 "description" : "Create a new disk, importing from this source (volume ID or absolute path). When an absolute path is specified, it's up to you to ensure that the source is not actively used by another process during the import!",
21055 "format" : "pve-volume-id-or-absolute-path",
21056 "format_description" : "source volume",
21057 "optional" : 1,
21058 "type" : "string"
21059 },
21060 "iops" : {
21061 "description" : "Maximum r/w I/O in operations per second.",
21062 "format_description" : "iops",
21063 "optional" : 1,
21064 "type" : "integer"
21065 },
21066 "iops_max" : {
21067 "description" : "Maximum unthrottled r/w I/O pool in operations per second.",
21068 "format_description" : "iops",
21069 "optional" : 1,
21070 "type" : "integer"
21071 },
21072 "iops_max_length" : {
21073 "description" : "Maximum length of I/O bursts in seconds.",
21074 "format_description" : "seconds",
21075 "minimum" : 1,
21076 "optional" : 1,
21077 "type" : "integer"
21078 },
21079 "iops_rd" : {
21080 "description" : "Maximum read I/O in operations per second.",
21081 "format_description" : "iops",
21082 "optional" : 1,
21083 "type" : "integer"
21084 },
21085 "iops_rd_length" : {
21086 "alias" : "iops_rd_max_length"
21087 },
21088 "iops_rd_max" : {
21089 "description" : "Maximum unthrottled read I/O pool in operations per second.",
21090 "format_description" : "iops",
21091 "optional" : 1,
21092 "type" : "integer"
21093 },
21094 "iops_rd_max_length" : {
21095 "description" : "Maximum length of read I/O bursts in seconds.",
21096 "format_description" : "seconds",
21097 "minimum" : 1,
21098 "optional" : 1,
21099 "type" : "integer"
21100 },
21101 "iops_wr" : {
21102 "description" : "Maximum write I/O in operations per second.",
21103 "format_description" : "iops",
21104 "optional" : 1,
21105 "type" : "integer"
21106 },
21107 "iops_wr_length" : {
21108 "alias" : "iops_wr_max_length"
21109 },
21110 "iops_wr_max" : {
21111 "description" : "Maximum unthrottled write I/O pool in operations per second.",
21112 "format_description" : "iops",
21113 "optional" : 1,
21114 "type" : "integer"
21115 },
21116 "iops_wr_max_length" : {
21117 "description" : "Maximum length of write I/O bursts in seconds.",
21118 "format_description" : "seconds",
21119 "minimum" : 1,
21120 "optional" : 1,
21121 "type" : "integer"
21122 },
21123 "iothread" : {
21124 "description" : "Whether to use iothreads for this drive",
21125 "optional" : 1,
21126 "type" : "boolean"
21127 },
21128 "mbps" : {
21129 "description" : "Maximum r/w speed in megabytes per second.",
21130 "format_description" : "mbps",
21131 "optional" : 1,
21132 "type" : "number"
21133 },
21134 "mbps_max" : {
21135 "description" : "Maximum unthrottled r/w pool in megabytes per second.",
21136 "format_description" : "mbps",
21137 "optional" : 1,
21138 "type" : "number"
21139 },
21140 "mbps_rd" : {
21141 "description" : "Maximum read speed in megabytes per second.",
21142 "format_description" : "mbps",
21143 "optional" : 1,
21144 "type" : "number"
21145 },
21146 "mbps_rd_max" : {
21147 "description" : "Maximum unthrottled read pool in megabytes per second.",
21148 "format_description" : "mbps",
21149 "optional" : 1,
21150 "type" : "number"
21151 },
21152 "mbps_wr" : {
21153 "description" : "Maximum write speed in megabytes per second.",
21154 "format_description" : "mbps",
21155 "optional" : 1,
21156 "type" : "number"
21157 },
21158 "mbps_wr_max" : {
21159 "description" : "Maximum unthrottled write pool in megabytes per second.",
21160 "format_description" : "mbps",
21161 "optional" : 1,
21162 "type" : "number"
21163 },
21164 "media" : {
21165 "default" : "disk",
21166 "description" : "The drive's media type.",
21167 "enum" : [
21168 "cdrom",
21169 "disk"
21170 ],
21171 "optional" : 1,
21172 "type" : "string"
21173 },
21174 "replicate" : {
21175 "default" : 1,
21176 "description" : "Whether the drive should considered for replication jobs.",
21177 "optional" : 1,
21178 "type" : "boolean"
21179 },
21180 "rerror" : {
21181 "description" : "Read error action.",
21182 "enum" : [
21183 "ignore",
21184 "report",
21185 "stop"
21186 ],
21187 "optional" : 1,
21188 "type" : "string"
21189 },
21190 "ro" : {
21191 "description" : "Whether the drive is read-only.",
21192 "optional" : 1,
21193 "type" : "boolean"
21194 },
21195 "secs" : {
21196 "description" : "Force the drive's physical geometry to have a specific sector count.",
21197 "optional" : 1,
21198 "type" : "integer"
21199 },
21200 "serial" : {
21201 "description" : "The drive's reported serial number, url-encoded, up to 20 bytes long.",
21202 "format" : "urlencoded",
21203 "format_description" : "serial",
21204 "maxLength" : 60,
21205 "optional" : 1,
21206 "type" : "string"
21207 },
21208 "shared" : {
21209 "default" : 0,
21210 "description" : "Mark this locally-managed volume as available on all nodes",
21211 "optional" : 1,
21212 "type" : "boolean",
21213 "verbose_description" : "Mark this locally-managed volume as available on all nodes.\n\nWARNING: This option does not share the volume automatically, it assumes it is shared already!"
21214 },
21215 "size" : {
21216 "description" : "Disk size. This is purely informational and has no effect.",
21217 "format" : "disk-size",
21218 "format_description" : "DiskSize",
21219 "optional" : 1,
21220 "type" : "string"
21221 },
21222 "snapshot" : {
21223 "description" : "Controls qemu's snapshot mode feature. If activated, changes made to the disk are temporary and will be discarded when the VM is shutdown.",
21224 "optional" : 1,
21225 "type" : "boolean"
21226 },
21227 "trans" : {
21228 "description" : "Force disk geometry bios translation mode.",
21229 "enum" : [
21230 "none",
21231 "lba",
21232 "auto"
21233 ],
21234 "optional" : 1,
21235 "type" : "string"
21236 },
21237 "volume" : {
21238 "alias" : "file"
21239 },
21240 "werror" : {
21241 "description" : "Write error action.",
21242 "enum" : [
21243 "enospc",
21244 "ignore",
21245 "report",
21246 "stop"
21247 ],
21248 "optional" : 1,
21249 "type" : "string"
21250 }
21251 },
21252 "optional" : 1,
21253 "type" : "string",
21254 "typetext" : "[file=]<volume> [,aio=<native|threads|io_uring>] [,backup=<1|0>] [,bps=<bps>] [,bps_max_length=<seconds>] [,bps_rd=<bps>] [,bps_rd_max_length=<seconds>] [,bps_wr=<bps>] [,bps_wr_max_length=<seconds>] [,cache=<enum>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<enum>] [,heads=<integer>] [,import-from=<source volume>] [,iops=<iops>] [,iops_max=<iops>] [,iops_max_length=<seconds>] [,iops_rd=<iops>] [,iops_rd_max=<iops>] [,iops_rd_max_length=<seconds>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,iops_wr_max_length=<seconds>] [,iothread=<1|0>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,replicate=<1|0>] [,rerror=<ignore|report|stop>] [,ro=<1|0>] [,secs=<integer>] [,serial=<serial>] [,shared=<1|0>] [,size=<DiskSize>] [,snapshot=<1|0>] [,trans=<none|lba|auto>] [,werror=<enum>]"
21255 },
21256 "vmgenid" : {
21257 "default" : "1 (autogenerated)",
21258 "description" : "Set VM Generation ID. Use '1' to autogenerate on create or update, pass '0' to disable explicitly.",
21259 "format_description" : "UUID",
21260 "optional" : 1,
21261 "pattern" : "(?:[a-fA-F0-9]{8}(?:-[a-fA-F0-9]{4}){3}-[a-fA-F0-9]{12}|[01])",
21262 "type" : "string",
21263 "verbose_description" : "The VM generation ID (vmgenid) device exposes a 128-bit integer value identifier to the guest OS. This allows to notify the guest operating system when the virtual machine is executed with a different configuration (e.g. snapshot execution or creation from a template). The guest operating system notices the change, and is then able to react as appropriate by marking its copies of distributed databases as dirty, re-initializing its random number generator, etc.\nNote that auto-creation only works when done through API/CLI create or update methods, but not when manually editing the config file."
21264 },
21265 "vmid" : {
21266 "description" : "The (unique) ID of the VM.",
21267 "format" : "pve-vmid",
21268 "maximum" : 999999999,
21269 "minimum" : 100,
21270 "type" : "integer",
21271 "typetext" : "<integer> (100 - 999999999)"
21272 },
21273 "vmstatestorage" : {
21274 "description" : "Default storage for VM state volumes/files.",
21275 "format" : "pve-storage-id",
21276 "format_description" : "storage ID",
21277 "optional" : 1,
21278 "type" : "string",
21279 "typetext" : "<storage ID>"
21280 },
21281 "watchdog" : {
21282 "description" : "Create a virtual hardware watchdog device.",
21283 "format" : "pve-qm-watchdog",
21284 "optional" : 1,
21285 "type" : "string",
21286 "typetext" : "[[model=]<i6300esb|ib700>] [,action=<enum>]",
21287 "verbose_description" : "Create a virtual hardware watchdog device. Once enabled (by a guest action), the watchdog must be periodically polled by an agent inside the guest or else the watchdog will reset the guest (or execute the respective action specified)"
21288 }
21289 }
21290 },
21291 "permissions" : {
21292 "check" : [
21293 "perm",
21294 "/vms/{vmid}",
21295 [
21296 "VM.Config.Disk",
21297 "VM.Config.CDROM",
21298 "VM.Config.CPU",
21299 "VM.Config.Memory",
21300 "VM.Config.Network",
21301 "VM.Config.HWType",
21302 "VM.Config.Options",
21303 "VM.Config.Cloudinit"
21304 ],
21305 "any",
21306 1
21307 ]
21308 },
21309 "protected" : 1,
21310 "proxyto" : "node",
21311 "returns" : {
21312 "optional" : 1,
21313 "type" : "string"
21314 }
21315 },
21316 "PUT" : {
21317 "allowtoken" : 1,
21318 "description" : "Set virtual machine options (synchrounous API) - You should consider using the POST method instead for any actions involving hotplug or storage allocation.",
21319 "method" : "PUT",
21320 "name" : "update_vm",
21321 "parameters" : {
21322 "additionalProperties" : 0,
21323 "properties" : {
21324 "acpi" : {
21325 "default" : 1,
21326 "description" : "Enable/disable ACPI.",
21327 "optional" : 1,
21328 "type" : "boolean",
21329 "typetext" : "<boolean>"
21330 },
21331 "affinity" : {
21332 "description" : "List of host cores used to execute guest processes, for example: 0,5,8-11",
21333 "format" : "pve-cpuset",
21334 "optional" : 1,
21335 "type" : "string",
21336 "typetext" : "<string>"
21337 },
21338 "agent" : {
21339 "description" : "Enable/disable communication with the QEMU Guest Agent and its properties.",
21340 "format" : {
21341 "enabled" : {
21342 "default" : 0,
21343 "default_key" : 1,
21344 "description" : "Enable/disable communication with a QEMU Guest Agent (QGA) running in the VM.",
21345 "type" : "boolean"
21346 },
21347 "freeze-fs-on-backup" : {
21348 "default" : 1,
21349 "description" : "Freeze/thaw guest filesystems on backup for consistency.",
21350 "optional" : 1,
21351 "type" : "boolean"
21352 },
21353 "fstrim_cloned_disks" : {
21354 "default" : 0,
21355 "description" : "Run fstrim after moving a disk or migrating the VM.",
21356 "optional" : 1,
21357 "type" : "boolean"
21358 },
21359 "type" : {
21360 "default" : "virtio",
21361 "description" : "Select the agent type",
21362 "enum" : [
21363 "virtio",
21364 "isa"
21365 ],
21366 "optional" : 1,
21367 "type" : "string"
21368 }
21369 },
21370 "optional" : 1,
21371 "type" : "string",
21372 "typetext" : "[enabled=]<1|0> [,freeze-fs-on-backup=<1|0>] [,fstrim_cloned_disks=<1|0>] [,type=<virtio|isa>]"
21373 },
21374 "arch" : {
21375 "description" : "Virtual processor architecture. Defaults to the host.",
21376 "enum" : [
21377 "x86_64",
21378 "aarch64"
21379 ],
21380 "optional" : 1,
21381 "type" : "string"
21382 },
21383 "args" : {
21384 "description" : "Arbitrary arguments passed to kvm.",
21385 "optional" : 1,
21386 "type" : "string",
21387 "typetext" : "<string>",
21388 "verbose_description" : "Arbitrary arguments passed to kvm, for example:\n\nargs: -no-reboot -smbios 'type=0,vendor=FOO'\n\nNOTE: this option is for experts only.\n"
21389 },
21390 "audio0" : {
21391 "description" : "Configure a audio device, useful in combination with QXL/Spice.",
21392 "format" : {
21393 "device" : {
21394 "description" : "Configure an audio device.",
21395 "enum" : [
21396 "ich9-intel-hda",
21397 "intel-hda",
21398 "AC97"
21399 ],
21400 "type" : "string"
21401 },
21402 "driver" : {
21403 "default" : "spice",
21404 "description" : "Driver backend for the audio device.",
21405 "enum" : [
21406 "spice",
21407 "none"
21408 ],
21409 "optional" : 1,
21410 "type" : "string"
21411 }
21412 },
21413 "optional" : 1,
21414 "type" : "string",
21415 "typetext" : "device=<ich9-intel-hda|intel-hda|AC97> [,driver=<spice|none>]"
21416 },
21417 "autostart" : {
21418 "default" : 0,
21419 "description" : "Automatic restart after crash (currently ignored).",
21420 "optional" : 1,
21421 "type" : "boolean",
21422 "typetext" : "<boolean>"
21423 },
21424 "balloon" : {
21425 "description" : "Amount of target RAM for the VM in MiB. Using zero disables the ballon driver.",
21426 "minimum" : 0,
21427 "optional" : 1,
21428 "type" : "integer",
21429 "typetext" : "<integer> (0 - N)"
21430 },
21431 "bios" : {
21432 "default" : "seabios",
21433 "description" : "Select BIOS implementation.",
21434 "enum" : [
21435 "seabios",
21436 "ovmf"
21437 ],
21438 "optional" : 1,
21439 "type" : "string"
21440 },
21441 "boot" : {
21442 "description" : "Specify guest boot order. Use the 'order=' sub-property as usage with no key or 'legacy=' is deprecated.",
21443 "format" : "pve-qm-boot",
21444 "optional" : 1,
21445 "type" : "string",
21446 "typetext" : "[[legacy=]<[acdn]{1,4}>] [,order=<device[;device...]>]"
21447 },
21448 "bootdisk" : {
21449 "description" : "Enable booting from specified disk. Deprecated: Use 'boot: order=foo;bar' instead.",
21450 "format" : "pve-qm-bootdisk",
21451 "optional" : 1,
21452 "pattern" : "(ide|sata|scsi|virtio)\\d+",
21453 "type" : "string"
21454 },
21455 "cdrom" : {
21456 "description" : "This is an alias for option -ide2",
21457 "format" : "pve-qm-ide",
21458 "optional" : 1,
21459 "type" : "string",
21460 "typetext" : "<volume>"
21461 },
21462 "cicustom" : {
21463 "description" : "cloud-init: Specify custom files to replace the automatically generated ones at start.",
21464 "format" : "pve-qm-cicustom",
21465 "optional" : 1,
21466 "type" : "string",
21467 "typetext" : "[meta=<volume>] [,network=<volume>] [,user=<volume>] [,vendor=<volume>]"
21468 },
21469 "cipassword" : {
21470 "description" : "cloud-init: Password to assign the user. Using this is generally not recommended. Use ssh keys instead. Also note that older cloud-init versions do not support hashed passwords.",
21471 "optional" : 1,
21472 "type" : "string",
21473 "typetext" : "<string>"
21474 },
21475 "citype" : {
21476 "description" : "Specifies the cloud-init configuration format. The default depends on the configured operating system type (`ostype`. We use the `nocloud` format for Linux, and `configdrive2` for windows.",
21477 "enum" : [
21478 "configdrive2",
21479 "nocloud",
21480 "opennebula"
21481 ],
21482 "optional" : 1,
21483 "type" : "string"
21484 },
21485 "ciupgrade" : {
21486 "default" : 1,
21487 "description" : "cloud-init: do an automatic package upgrade after the first boot.",
21488 "optional" : 1,
21489 "type" : "boolean",
21490 "typetext" : "<boolean>"
21491 },
21492 "ciuser" : {
21493 "description" : "cloud-init: User name to change ssh keys and password for instead of the image's configured default user.",
21494 "optional" : 1,
21495 "type" : "string",
21496 "typetext" : "<string>"
21497 },
21498 "cores" : {
21499 "default" : 1,
21500 "description" : "The number of cores per socket.",
21501 "minimum" : 1,
21502 "optional" : 1,
21503 "type" : "integer",
21504 "typetext" : "<integer> (1 - N)"
21505 },
21506 "cpu" : {
21507 "description" : "Emulated CPU type.",
21508 "format" : "pve-vm-cpu-conf",
21509 "optional" : 1,
21510 "type" : "string",
21511 "typetext" : "[[cputype=]<string>] [,flags=<+FLAG[;-FLAG...]>] [,hidden=<1|0>] [,hv-vendor-id=<vendor-id>] [,phys-bits=<8-64|host>] [,reported-model=<enum>]"
21512 },
21513 "cpulimit" : {
21514 "default" : 0,
21515 "description" : "Limit of CPU usage.",
21516 "maximum" : 128,
21517 "minimum" : 0,
21518 "optional" : 1,
21519 "type" : "number",
21520 "typetext" : "<number> (0 - 128)",
21521 "verbose_description" : "Limit of CPU usage.\n\nNOTE: If the computer has 2 CPUs, it has total of '2' CPU time. Value '0' indicates no CPU limit."
21522 },
21523 "cpuunits" : {
21524 "default" : "cgroup v1: 1024, cgroup v2: 100",
21525 "description" : "CPU weight for a VM, will be clamped to [1, 10000] in cgroup v2.",
21526 "maximum" : 262144,
21527 "minimum" : 1,
21528 "optional" : 1,
21529 "type" : "integer",
21530 "typetext" : "<integer> (1 - 262144)",
21531 "verbose_description" : "CPU weight for a VM. Argument is used in the kernel fair scheduler. The larger the number is, the more CPU time this VM gets. Number is relative to weights of all the other running VMs."
21532 },
21533 "delete" : {
21534 "description" : "A list of settings you want to delete.",
21535 "format" : "pve-configid-list",
21536 "optional" : 1,
21537 "type" : "string",
21538 "typetext" : "<string>"
21539 },
21540 "description" : {
21541 "description" : "Description for the VM. Shown in the web-interface VM's summary. This is saved as comment inside the configuration file.",
21542 "maxLength" : 8192,
21543 "optional" : 1,
21544 "type" : "string",
21545 "typetext" : "<string>"
21546 },
21547 "digest" : {
21548 "description" : "Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.",
21549 "maxLength" : 40,
21550 "optional" : 1,
21551 "type" : "string",
21552 "typetext" : "<string>"
21553 },
21554 "efidisk0" : {
21555 "description" : "Configure a disk for storing EFI vars. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. Note that SIZE_IN_GiB is ignored here and that the default EFI vars are copied to the volume instead. Use STORAGE_ID:0 and the 'import-from' parameter to import from an existing volume.",
21556 "format" : {
21557 "efitype" : {
21558 "default" : "2m",
21559 "description" : "Size and type of the OVMF EFI vars. '4m' is newer and recommended, and required for Secure Boot. For backwards compatibility, '2m' is used if not otherwise specified. Ignored for VMs with arch=aarch64 (ARM).",
21560 "enum" : [
21561 "2m",
21562 "4m"
21563 ],
21564 "optional" : 1,
21565 "type" : "string"
21566 },
21567 "file" : {
21568 "default_key" : 1,
21569 "description" : "The drive's backing volume.",
21570 "format" : "pve-volume-id-or-qm-path",
21571 "format_description" : "volume",
21572 "type" : "string"
21573 },
21574 "format" : {
21575 "description" : "The drive's backing file's data format.",
21576 "enum" : [
21577 "raw",
21578 "cow",
21579 "qcow",
21580 "qed",
21581 "qcow2",
21582 "vmdk",
21583 "cloop"
21584 ],
21585 "optional" : 1,
21586 "type" : "string"
21587 },
21588 "import-from" : {
21589 "description" : "Create a new disk, importing from this source (volume ID or absolute path). When an absolute path is specified, it's up to you to ensure that the source is not actively used by another process during the import!",
21590 "format" : "pve-volume-id-or-absolute-path",
21591 "format_description" : "source volume",
21592 "optional" : 1,
21593 "type" : "string"
21594 },
21595 "pre-enrolled-keys" : {
21596 "default" : 0,
21597 "description" : "Use am EFI vars template with distribution-specific and Microsoft Standard keys enrolled, if used with 'efitype=4m'. Note that this will enable Secure Boot by default, though it can still be turned off from within the VM.",
21598 "optional" : 1,
21599 "type" : "boolean"
21600 },
21601 "size" : {
21602 "description" : "Disk size. This is purely informational and has no effect.",
21603 "format" : "disk-size",
21604 "format_description" : "DiskSize",
21605 "optional" : 1,
21606 "type" : "string"
21607 },
21608 "volume" : {
21609 "alias" : "file"
21610 }
21611 },
21612 "optional" : 1,
21613 "type" : "string",
21614 "typetext" : "[file=]<volume> [,efitype=<2m|4m>] [,format=<enum>] [,import-from=<source volume>] [,pre-enrolled-keys=<1|0>] [,size=<DiskSize>]"
21615 },
21616 "force" : {
21617 "description" : "Force physical removal. Without this, we simple remove the disk from the config file and create an additional configuration entry called 'unused[n]', which contains the volume ID. Unlink of unused[n] always cause physical removal.",
21618 "optional" : 1,
21619 "requires" : "delete",
21620 "type" : "boolean",
21621 "typetext" : "<boolean>"
21622 },
21623 "freeze" : {
21624 "description" : "Freeze CPU at startup (use 'c' monitor command to start execution).",
21625 "optional" : 1,
21626 "type" : "boolean",
21627 "typetext" : "<boolean>"
21628 },
21629 "hookscript" : {
21630 "description" : "Script that will be executed during various steps in the vms lifetime.",
21631 "format" : "pve-volume-id",
21632 "optional" : 1,
21633 "type" : "string",
21634 "typetext" : "<string>"
21635 },
21636 "hostpci[n]" : {
21637 "description" : "Map host PCI devices into guest.",
21638 "format" : "pve-qm-hostpci",
21639 "optional" : 1,
21640 "type" : "string",
21641 "typetext" : "[[host=]<HOSTPCIID[;HOSTPCIID2...]>] [,device-id=<hex id>] [,legacy-igd=<1|0>] [,mapping=<mapping-id>] [,mdev=<string>] [,pcie=<1|0>] [,rombar=<1|0>] [,romfile=<string>] [,sub-device-id=<hex id>] [,sub-vendor-id=<hex id>] [,vendor-id=<hex id>] [,x-vga=<1|0>]",
21642 "verbose_description" : "Map host PCI devices into guest.\n\nNOTE: This option allows direct access to host hardware. So it is no longer\npossible to migrate such machines - use with special care.\n\nCAUTION: Experimental! User reported problems with this option.\n"
21643 },
21644 "hotplug" : {
21645 "default" : "network,disk,usb",
21646 "description" : "Selectively enable hotplug features. This is a comma separated list of hotplug features: 'network', 'disk', 'cpu', 'memory', 'usb' and 'cloudinit'. Use '0' to disable hotplug completely. Using '1' as value is an alias for the default `network,disk,usb`. USB hotplugging is possible for guests with machine version >= 7.1 and ostype l26 or windows > 7.",
21647 "format" : "pve-hotplug-features",
21648 "optional" : 1,
21649 "type" : "string",
21650 "typetext" : "<string>"
21651 },
21652 "hugepages" : {
21653 "description" : "Enable/disable hugepages memory.",
21654 "enum" : [
21655 "any",
21656 "2",
21657 "1024"
21658 ],
21659 "optional" : 1,
21660 "type" : "string"
21661 },
21662 "ide[n]" : {
21663 "description" : "Use volume as IDE hard disk or CD-ROM (n is 0 to 3). Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. Use STORAGE_ID:0 and the 'import-from' parameter to import from an existing volume.",
21664 "format" : {
21665 "aio" : {
21666 "description" : "AIO type to use.",
21667 "enum" : [
21668 "native",
21669 "threads",
21670 "io_uring"
21671 ],
21672 "optional" : 1,
21673 "type" : "string"
21674 },
21675 "backup" : {
21676 "description" : "Whether the drive should be included when making backups.",
21677 "optional" : 1,
21678 "type" : "boolean"
21679 },
21680 "bps" : {
21681 "description" : "Maximum r/w speed in bytes per second.",
21682 "format_description" : "bps",
21683 "optional" : 1,
21684 "type" : "integer"
21685 },
21686 "bps_max_length" : {
21687 "description" : "Maximum length of I/O bursts in seconds.",
21688 "format_description" : "seconds",
21689 "minimum" : 1,
21690 "optional" : 1,
21691 "type" : "integer"
21692 },
21693 "bps_rd" : {
21694 "description" : "Maximum read speed in bytes per second.",
21695 "format_description" : "bps",
21696 "optional" : 1,
21697 "type" : "integer"
21698 },
21699 "bps_rd_length" : {
21700 "alias" : "bps_rd_max_length"
21701 },
21702 "bps_rd_max_length" : {
21703 "description" : "Maximum length of read I/O bursts in seconds.",
21704 "format_description" : "seconds",
21705 "minimum" : 1,
21706 "optional" : 1,
21707 "type" : "integer"
21708 },
21709 "bps_wr" : {
21710 "description" : "Maximum write speed in bytes per second.",
21711 "format_description" : "bps",
21712 "optional" : 1,
21713 "type" : "integer"
21714 },
21715 "bps_wr_length" : {
21716 "alias" : "bps_wr_max_length"
21717 },
21718 "bps_wr_max_length" : {
21719 "description" : "Maximum length of write I/O bursts in seconds.",
21720 "format_description" : "seconds",
21721 "minimum" : 1,
21722 "optional" : 1,
21723 "type" : "integer"
21724 },
21725 "cache" : {
21726 "description" : "The drive's cache mode",
21727 "enum" : [
21728 "none",
21729 "writethrough",
21730 "writeback",
21731 "unsafe",
21732 "directsync"
21733 ],
21734 "optional" : 1,
21735 "type" : "string"
21736 },
21737 "cyls" : {
21738 "description" : "Force the drive's physical geometry to have a specific cylinder count.",
21739 "optional" : 1,
21740 "type" : "integer"
21741 },
21742 "detect_zeroes" : {
21743 "description" : "Controls whether to detect and try to optimize writes of zeroes.",
21744 "optional" : 1,
21745 "type" : "boolean"
21746 },
21747 "discard" : {
21748 "description" : "Controls whether to pass discard/trim requests to the underlying storage.",
21749 "enum" : [
21750 "ignore",
21751 "on"
21752 ],
21753 "optional" : 1,
21754 "type" : "string"
21755 },
21756 "file" : {
21757 "default_key" : 1,
21758 "description" : "The drive's backing volume.",
21759 "format" : "pve-volume-id-or-qm-path",
21760 "format_description" : "volume",
21761 "type" : "string"
21762 },
21763 "format" : {
21764 "description" : "The drive's backing file's data format.",
21765 "enum" : [
21766 "raw",
21767 "cow",
21768 "qcow",
21769 "qed",
21770 "qcow2",
21771 "vmdk",
21772 "cloop"
21773 ],
21774 "optional" : 1,
21775 "type" : "string"
21776 },
21777 "heads" : {
21778 "description" : "Force the drive's physical geometry to have a specific head count.",
21779 "optional" : 1,
21780 "type" : "integer"
21781 },
21782 "import-from" : {
21783 "description" : "Create a new disk, importing from this source (volume ID or absolute path). When an absolute path is specified, it's up to you to ensure that the source is not actively used by another process during the import!",
21784 "format" : "pve-volume-id-or-absolute-path",
21785 "format_description" : "source volume",
21786 "optional" : 1,
21787 "type" : "string"
21788 },
21789 "iops" : {
21790 "description" : "Maximum r/w I/O in operations per second.",
21791 "format_description" : "iops",
21792 "optional" : 1,
21793 "type" : "integer"
21794 },
21795 "iops_max" : {
21796 "description" : "Maximum unthrottled r/w I/O pool in operations per second.",
21797 "format_description" : "iops",
21798 "optional" : 1,
21799 "type" : "integer"
21800 },
21801 "iops_max_length" : {
21802 "description" : "Maximum length of I/O bursts in seconds.",
21803 "format_description" : "seconds",
21804 "minimum" : 1,
21805 "optional" : 1,
21806 "type" : "integer"
21807 },
21808 "iops_rd" : {
21809 "description" : "Maximum read I/O in operations per second.",
21810 "format_description" : "iops",
21811 "optional" : 1,
21812 "type" : "integer"
21813 },
21814 "iops_rd_length" : {
21815 "alias" : "iops_rd_max_length"
21816 },
21817 "iops_rd_max" : {
21818 "description" : "Maximum unthrottled read I/O pool in operations per second.",
21819 "format_description" : "iops",
21820 "optional" : 1,
21821 "type" : "integer"
21822 },
21823 "iops_rd_max_length" : {
21824 "description" : "Maximum length of read I/O bursts in seconds.",
21825 "format_description" : "seconds",
21826 "minimum" : 1,
21827 "optional" : 1,
21828 "type" : "integer"
21829 },
21830 "iops_wr" : {
21831 "description" : "Maximum write I/O in operations per second.",
21832 "format_description" : "iops",
21833 "optional" : 1,
21834 "type" : "integer"
21835 },
21836 "iops_wr_length" : {
21837 "alias" : "iops_wr_max_length"
21838 },
21839 "iops_wr_max" : {
21840 "description" : "Maximum unthrottled write I/O pool in operations per second.",
21841 "format_description" : "iops",
21842 "optional" : 1,
21843 "type" : "integer"
21844 },
21845 "iops_wr_max_length" : {
21846 "description" : "Maximum length of write I/O bursts in seconds.",
21847 "format_description" : "seconds",
21848 "minimum" : 1,
21849 "optional" : 1,
21850 "type" : "integer"
21851 },
21852 "mbps" : {
21853 "description" : "Maximum r/w speed in megabytes per second.",
21854 "format_description" : "mbps",
21855 "optional" : 1,
21856 "type" : "number"
21857 },
21858 "mbps_max" : {
21859 "description" : "Maximum unthrottled r/w pool in megabytes per second.",
21860 "format_description" : "mbps",
21861 "optional" : 1,
21862 "type" : "number"
21863 },
21864 "mbps_rd" : {
21865 "description" : "Maximum read speed in megabytes per second.",
21866 "format_description" : "mbps",
21867 "optional" : 1,
21868 "type" : "number"
21869 },
21870 "mbps_rd_max" : {
21871 "description" : "Maximum unthrottled read pool in megabytes per second.",
21872 "format_description" : "mbps",
21873 "optional" : 1,
21874 "type" : "number"
21875 },
21876 "mbps_wr" : {
21877 "description" : "Maximum write speed in megabytes per second.",
21878 "format_description" : "mbps",
21879 "optional" : 1,
21880 "type" : "number"
21881 },
21882 "mbps_wr_max" : {
21883 "description" : "Maximum unthrottled write pool in megabytes per second.",
21884 "format_description" : "mbps",
21885 "optional" : 1,
21886 "type" : "number"
21887 },
21888 "media" : {
21889 "default" : "disk",
21890 "description" : "The drive's media type.",
21891 "enum" : [
21892 "cdrom",
21893 "disk"
21894 ],
21895 "optional" : 1,
21896 "type" : "string"
21897 },
21898 "model" : {
21899 "description" : "The drive's reported model name, url-encoded, up to 40 bytes long.",
21900 "format" : "urlencoded",
21901 "format_description" : "model",
21902 "maxLength" : 120,
21903 "optional" : 1,
21904 "type" : "string"
21905 },
21906 "replicate" : {
21907 "default" : 1,
21908 "description" : "Whether the drive should considered for replication jobs.",
21909 "optional" : 1,
21910 "type" : "boolean"
21911 },
21912 "rerror" : {
21913 "description" : "Read error action.",
21914 "enum" : [
21915 "ignore",
21916 "report",
21917 "stop"
21918 ],
21919 "optional" : 1,
21920 "type" : "string"
21921 },
21922 "secs" : {
21923 "description" : "Force the drive's physical geometry to have a specific sector count.",
21924 "optional" : 1,
21925 "type" : "integer"
21926 },
21927 "serial" : {
21928 "description" : "The drive's reported serial number, url-encoded, up to 20 bytes long.",
21929 "format" : "urlencoded",
21930 "format_description" : "serial",
21931 "maxLength" : 60,
21932 "optional" : 1,
21933 "type" : "string"
21934 },
21935 "shared" : {
21936 "default" : 0,
21937 "description" : "Mark this locally-managed volume as available on all nodes",
21938 "optional" : 1,
21939 "type" : "boolean",
21940 "verbose_description" : "Mark this locally-managed volume as available on all nodes.\n\nWARNING: This option does not share the volume automatically, it assumes it is shared already!"
21941 },
21942 "size" : {
21943 "description" : "Disk size. This is purely informational and has no effect.",
21944 "format" : "disk-size",
21945 "format_description" : "DiskSize",
21946 "optional" : 1,
21947 "type" : "string"
21948 },
21949 "snapshot" : {
21950 "description" : "Controls qemu's snapshot mode feature. If activated, changes made to the disk are temporary and will be discarded when the VM is shutdown.",
21951 "optional" : 1,
21952 "type" : "boolean"
21953 },
21954 "ssd" : {
21955 "description" : "Whether to expose this drive as an SSD, rather than a rotational hard disk.",
21956 "optional" : 1,
21957 "type" : "boolean"
21958 },
21959 "trans" : {
21960 "description" : "Force disk geometry bios translation mode.",
21961 "enum" : [
21962 "none",
21963 "lba",
21964 "auto"
21965 ],
21966 "optional" : 1,
21967 "type" : "string"
21968 },
21969 "volume" : {
21970 "alias" : "file"
21971 },
21972 "werror" : {
21973 "description" : "Write error action.",
21974 "enum" : [
21975 "enospc",
21976 "ignore",
21977 "report",
21978 "stop"
21979 ],
21980 "optional" : 1,
21981 "type" : "string"
21982 },
21983 "wwn" : {
21984 "description" : "The drive's worldwide name, encoded as 16 bytes hex string, prefixed by '0x'.",
21985 "format_description" : "wwn",
21986 "optional" : 1,
21987 "pattern" : "(?^:^(0x)[0-9a-fA-F]{16})",
21988 "type" : "string"
21989 }
21990 },
21991 "optional" : 1,
21992 "type" : "string",
21993 "typetext" : "[file=]<volume> [,aio=<native|threads|io_uring>] [,backup=<1|0>] [,bps=<bps>] [,bps_max_length=<seconds>] [,bps_rd=<bps>] [,bps_rd_max_length=<seconds>] [,bps_wr=<bps>] [,bps_wr_max_length=<seconds>] [,cache=<enum>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<enum>] [,heads=<integer>] [,import-from=<source volume>] [,iops=<iops>] [,iops_max=<iops>] [,iops_max_length=<seconds>] [,iops_rd=<iops>] [,iops_rd_max=<iops>] [,iops_rd_max_length=<seconds>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,iops_wr_max_length=<seconds>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,model=<model>] [,replicate=<1|0>] [,rerror=<ignore|report|stop>] [,secs=<integer>] [,serial=<serial>] [,shared=<1|0>] [,size=<DiskSize>] [,snapshot=<1|0>] [,ssd=<1|0>] [,trans=<none|lba|auto>] [,werror=<enum>] [,wwn=<wwn>]"
21994 },
21995 "ipconfig[n]" : {
21996 "description" : "cloud-init: Specify IP addresses and gateways for the corresponding interface.\n\nIP addresses use CIDR notation, gateways are optional but need an IP of the same type specified.\n\nThe special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit\ngateway should be provided.\nFor IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires\ncloud-init 19.4 or newer.\n\nIf cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using\ndhcp on IPv4.\n",
21997 "format" : "pve-qm-ipconfig",
21998 "optional" : 1,
21999 "type" : "string",
22000 "typetext" : "[gw=<GatewayIPv4>] [,gw6=<GatewayIPv6>] [,ip=<IPv4Format/CIDR>] [,ip6=<IPv6Format/CIDR>]"
22001 },
22002 "ivshmem" : {
22003 "description" : "Inter-VM shared memory. Useful for direct communication between VMs, or to the host.",
22004 "format" : {
22005 "name" : {
22006 "description" : "The name of the file. Will be prefixed with 'pve-shm-'. Default is the VMID. Will be deleted when the VM is stopped.",
22007 "format_description" : "string",
22008 "optional" : 1,
22009 "pattern" : "[a-zA-Z0-9\\-]+",
22010 "type" : "string"
22011 },
22012 "size" : {
22013 "description" : "The size of the file in MB.",
22014 "minimum" : 1,
22015 "type" : "integer"
22016 }
22017 },
22018 "optional" : 1,
22019 "type" : "string",
22020 "typetext" : "size=<integer> [,name=<string>]"
22021 },
22022 "keephugepages" : {
22023 "default" : 0,
22024 "description" : "Use together with hugepages. If enabled, hugepages will not not be deleted after VM shutdown and can be used for subsequent starts.",
22025 "optional" : 1,
22026 "type" : "boolean",
22027 "typetext" : "<boolean>"
22028 },
22029 "keyboard" : {
22030 "default" : null,
22031 "description" : "Keyboard layout for VNC server. This option is generally not required and is often better handled from within the guest OS.",
22032 "enum" : [
22033 "de",
22034 "de-ch",
22035 "da",
22036 "en-gb",
22037 "en-us",
22038 "es",
22039 "fi",
22040 "fr",
22041 "fr-be",
22042 "fr-ca",
22043 "fr-ch",
22044 "hu",
22045 "is",
22046 "it",
22047 "ja",
22048 "lt",
22049 "mk",
22050 "nl",
22051 "no",
22052 "pl",
22053 "pt",
22054 "pt-br",
22055 "sv",
22056 "sl",
22057 "tr"
22058 ],
22059 "optional" : 1,
22060 "type" : "string"
22061 },
22062 "kvm" : {
22063 "default" : 1,
22064 "description" : "Enable/disable KVM hardware virtualization.",
22065 "optional" : 1,
22066 "type" : "boolean",
22067 "typetext" : "<boolean>"
22068 },
22069 "localtime" : {
22070 "description" : "Set the real time clock (RTC) to local time. This is enabled by default if the `ostype` indicates a Microsoft Windows OS.",
22071 "optional" : 1,
22072 "type" : "boolean",
22073 "typetext" : "<boolean>"
22074 },
22075 "lock" : {
22076 "description" : "Lock/unlock the VM.",
22077 "enum" : [
22078 "backup",
22079 "clone",
22080 "create",
22081 "migrate",
22082 "rollback",
22083 "snapshot",
22084 "snapshot-delete",
22085 "suspending",
22086 "suspended"
22087 ],
22088 "optional" : 1,
22089 "type" : "string"
22090 },
22091 "machine" : {
22092 "description" : "Specify the QEMU machine.",
22093 "format" : {
22094 "type" : {
22095 "default_key" : 1,
22096 "description" : "Specifies the QEMU machine type.",
22097 "format_description" : "machine type",
22098 "maxLength" : 40,
22099 "optional" : 1,
22100 "pattern" : "(pc|pc(-i440fx)?-\\d+(\\.\\d+)+(\\+pve\\d+)?(\\.pxe)?|q35|pc-q35-\\d+(\\.\\d+)+(\\+pve\\d+)?(\\.pxe)?|virt(?:-\\d+(\\.\\d+)+)?(\\+pve\\d+)?)",
22101 "type" : "string"
22102 },
22103 "viommu" : {
22104 "description" : "Enable and set guest vIOMMU variant (Intel vIOMMU needs q35 to be set as machine type).",
22105 "enum" : [
22106 "intel",
22107 "virtio"
22108 ],
22109 "optional" : 1,
22110 "type" : "string"
22111 }
22112 },
22113 "optional" : 1,
22114 "type" : "string",
22115 "typetext" : "[[type=]<machine type>] [,viommu=<intel|virtio>]"
22116 },
22117 "memory" : {
22118 "description" : "Memory properties.",
22119 "format" : {
22120 "current" : {
22121 "default" : 512,
22122 "default_key" : 1,
22123 "description" : "Current amount of online RAM for the VM in MiB. This is the maximum available memory when you use the balloon device.",
22124 "minimum" : 16,
22125 "type" : "integer"
22126 }
22127 },
22128 "optional" : 1,
22129 "type" : "string",
22130 "typetext" : "[current=]<integer>"
22131 },
22132 "migrate_downtime" : {
22133 "default" : 0.1,
22134 "description" : "Set maximum tolerated downtime (in seconds) for migrations.",
22135 "minimum" : 0,
22136 "optional" : 1,
22137 "type" : "number",
22138 "typetext" : "<number> (0 - N)"
22139 },
22140 "migrate_speed" : {
22141 "default" : 0,
22142 "description" : "Set maximum speed (in MB/s) for migrations. Value 0 is no limit.",
22143 "minimum" : 0,
22144 "optional" : 1,
22145 "type" : "integer",
22146 "typetext" : "<integer> (0 - N)"
22147 },
22148 "name" : {
22149 "description" : "Set a name for the VM. Only used on the configuration web interface.",
22150 "format" : "dns-name",
22151 "optional" : 1,
22152 "type" : "string",
22153 "typetext" : "<string>"
22154 },
22155 "nameserver" : {
22156 "description" : "cloud-init: Sets DNS server IP address for a container. Create will automatically use the setting from the host if neither searchdomain nor nameserver are set.",
22157 "format" : "address-list",
22158 "optional" : 1,
22159 "type" : "string",
22160 "typetext" : "<string>"
22161 },
22162 "net[n]" : {
22163 "description" : "Specify network devices.",
22164 "format" : {
22165 "bridge" : {
22166 "description" : "Bridge to attach the network device to. The Proxmox VE standard bridge\nis called 'vmbr0'.\n\nIf you do not specify a bridge, we create a kvm user (NATed) network\ndevice, which provides DHCP and DNS services. The following addresses\nare used:\n\n 10.0.2.2 Gateway\n 10.0.2.3 DNS Server\n 10.0.2.4 SMB Server\n\nThe DHCP server assign addresses to the guest starting from 10.0.2.15.\n",
22167 "format" : "pve-bridge-id",
22168 "format_description" : "bridge",
22169 "optional" : 1,
22170 "type" : "string"
22171 },
22172 "e1000" : {
22173 "alias" : "macaddr",
22174 "keyAlias" : "model"
22175 },
22176 "e1000-82540em" : {
22177 "alias" : "macaddr",
22178 "keyAlias" : "model"
22179 },
22180 "e1000-82544gc" : {
22181 "alias" : "macaddr",
22182 "keyAlias" : "model"
22183 },
22184 "e1000-82545em" : {
22185 "alias" : "macaddr",
22186 "keyAlias" : "model"
22187 },
22188 "e1000e" : {
22189 "alias" : "macaddr",
22190 "keyAlias" : "model"
22191 },
22192 "firewall" : {
22193 "description" : "Whether this interface should be protected by the firewall.",
22194 "optional" : 1,
22195 "type" : "boolean"
22196 },
22197 "i82551" : {
22198 "alias" : "macaddr",
22199 "keyAlias" : "model"
22200 },
22201 "i82557b" : {
22202 "alias" : "macaddr",
22203 "keyAlias" : "model"
22204 },
22205 "i82559er" : {
22206 "alias" : "macaddr",
22207 "keyAlias" : "model"
22208 },
22209 "link_down" : {
22210 "description" : "Whether this interface should be disconnected (like pulling the plug).",
22211 "optional" : 1,
22212 "type" : "boolean"
22213 },
22214 "macaddr" : {
22215 "description" : "MAC address. That address must be unique withing your network. This is automatically generated if not specified.",
22216 "format" : "mac-addr",
22217 "format_description" : "XX:XX:XX:XX:XX:XX",
22218 "optional" : 1,
22219 "type" : "string",
22220 "verbose_description" : "A common MAC address with the I/G (Individual/Group) bit not set."
22221 },
22222 "model" : {
22223 "default_key" : 1,
22224 "description" : "Network Card Model. The 'virtio' model provides the best performance with very low CPU overhead. If your guest does not support this driver, it is usually best to use 'e1000'.",
22225 "enum" : [
22226 "e1000",
22227 "e1000-82540em",
22228 "e1000-82544gc",
22229 "e1000-82545em",
22230 "e1000e",
22231 "i82551",
22232 "i82557b",
22233 "i82559er",
22234 "ne2k_isa",
22235 "ne2k_pci",
22236 "pcnet",
22237 "rtl8139",
22238 "virtio",
22239 "vmxnet3"
22240 ],
22241 "type" : "string"
22242 },
22243 "mtu" : {
22244 "description" : "Force MTU, for VirtIO only. Set to '1' to use the bridge MTU",
22245 "maximum" : 65520,
22246 "minimum" : 1,
22247 "optional" : 1,
22248 "type" : "integer"
22249 },
22250 "ne2k_isa" : {
22251 "alias" : "macaddr",
22252 "keyAlias" : "model"
22253 },
22254 "ne2k_pci" : {
22255 "alias" : "macaddr",
22256 "keyAlias" : "model"
22257 },
22258 "pcnet" : {
22259 "alias" : "macaddr",
22260 "keyAlias" : "model"
22261 },
22262 "queues" : {
22263 "description" : "Number of packet queues to be used on the device.",
22264 "maximum" : 64,
22265 "minimum" : 0,
22266 "optional" : 1,
22267 "type" : "integer"
22268 },
22269 "rate" : {
22270 "description" : "Rate limit in mbps (megabytes per second) as floating point number.",
22271 "minimum" : 0,
22272 "optional" : 1,
22273 "type" : "number"
22274 },
22275 "rtl8139" : {
22276 "alias" : "macaddr",
22277 "keyAlias" : "model"
22278 },
22279 "tag" : {
22280 "description" : "VLAN tag to apply to packets on this interface.",
22281 "maximum" : 4094,
22282 "minimum" : 1,
22283 "optional" : 1,
22284 "type" : "integer"
22285 },
22286 "trunks" : {
22287 "description" : "VLAN trunks to pass through this interface.",
22288 "format_description" : "vlanid[;vlanid...]",
22289 "optional" : 1,
22290 "pattern" : "(?^:\\d+(?:-\\d+)?(?:;\\d+(?:-\\d+)?)*)",
22291 "type" : "string"
22292 },
22293 "virtio" : {
22294 "alias" : "macaddr",
22295 "keyAlias" : "model"
22296 },
22297 "vmxnet3" : {
22298 "alias" : "macaddr",
22299 "keyAlias" : "model"
22300 }
22301 },
22302 "optional" : 1,
22303 "type" : "string",
22304 "typetext" : "[model=]<enum> [,bridge=<bridge>] [,firewall=<1|0>] [,link_down=<1|0>] [,macaddr=<XX:XX:XX:XX:XX:XX>] [,mtu=<integer>] [,queues=<integer>] [,rate=<number>] [,tag=<integer>] [,trunks=<vlanid[;vlanid...]>] [,<model>=<macaddr>]"
22305 },
22306 "node" : {
22307 "description" : "The cluster node name.",
22308 "format" : "pve-node",
22309 "type" : "string",
22310 "typetext" : "<string>"
22311 },
22312 "numa" : {
22313 "default" : 0,
22314 "description" : "Enable/disable NUMA.",
22315 "optional" : 1,
22316 "type" : "boolean",
22317 "typetext" : "<boolean>"
22318 },
22319 "numa[n]" : {
22320 "description" : "NUMA topology.",
22321 "format" : {
22322 "cpus" : {
22323 "description" : "CPUs accessing this NUMA node.",
22324 "format_description" : "id[-id];...",
22325 "pattern" : "(?^:\\d+(?:-\\d+)?(?:;\\d+(?:-\\d+)?)*)",
22326 "type" : "string"
22327 },
22328 "hostnodes" : {
22329 "description" : "Host NUMA nodes to use.",
22330 "format_description" : "id[-id];...",
22331 "optional" : 1,
22332 "pattern" : "(?^:\\d+(?:-\\d+)?(?:;\\d+(?:-\\d+)?)*)",
22333 "type" : "string"
22334 },
22335 "memory" : {
22336 "description" : "Amount of memory this NUMA node provides.",
22337 "optional" : 1,
22338 "type" : "number"
22339 },
22340 "policy" : {
22341 "description" : "NUMA allocation policy.",
22342 "enum" : [
22343 "preferred",
22344 "bind",
22345 "interleave"
22346 ],
22347 "optional" : 1,
22348 "type" : "string"
22349 }
22350 },
22351 "optional" : 1,
22352 "type" : "string",
22353 "typetext" : "cpus=<id[-id];...> [,hostnodes=<id[-id];...>] [,memory=<number>] [,policy=<preferred|bind|interleave>]"
22354 },
22355 "onboot" : {
22356 "default" : 0,
22357 "description" : "Specifies whether a VM will be started during system bootup.",
22358 "optional" : 1,
22359 "type" : "boolean",
22360 "typetext" : "<boolean>"
22361 },
22362 "ostype" : {
22363 "description" : "Specify guest operating system.",
22364 "enum" : [
22365 "other",
22366 "wxp",
22367 "w2k",
22368 "w2k3",
22369 "w2k8",
22370 "wvista",
22371 "win7",
22372 "win8",
22373 "win10",
22374 "win11",
22375 "l24",
22376 "l26",
22377 "solaris"
22378 ],
22379 "optional" : 1,
22380 "type" : "string",
22381 "verbose_description" : "Specify guest operating system. This is used to enable special\noptimization/features for specific operating systems:\n\n[horizontal]\nother;; unspecified OS\nwxp;; Microsoft Windows XP\nw2k;; Microsoft Windows 2000\nw2k3;; Microsoft Windows 2003\nw2k8;; Microsoft Windows 2008\nwvista;; Microsoft Windows Vista\nwin7;; Microsoft Windows 7\nwin8;; Microsoft Windows 8/2012/2012r2\nwin10;; Microsoft Windows 10/2016/2019\nwin11;; Microsoft Windows 11/2022\nl24;; Linux 2.4 Kernel\nl26;; Linux 2.6 - 6.X Kernel\nsolaris;; Solaris/OpenSolaris/OpenIndiania kernel\n"
22382 },
22383 "parallel[n]" : {
22384 "description" : "Map host parallel devices (n is 0 to 2).",
22385 "optional" : 1,
22386 "pattern" : "/dev/parport\\d+|/dev/usb/lp\\d+",
22387 "type" : "string",
22388 "verbose_description" : "Map host parallel devices (n is 0 to 2).\n\nNOTE: This option allows direct access to host hardware. So it is no longer possible to migrate such\nmachines - use with special care.\n\nCAUTION: Experimental! User reported problems with this option.\n"
22389 },
22390 "protection" : {
22391 "default" : 0,
22392 "description" : "Sets the protection flag of the VM. This will disable the remove VM and remove disk operations.",
22393 "optional" : 1,
22394 "type" : "boolean",
22395 "typetext" : "<boolean>"
22396 },
22397 "reboot" : {
22398 "default" : 1,
22399 "description" : "Allow reboot. If set to '0' the VM exit on reboot.",
22400 "optional" : 1,
22401 "type" : "boolean",
22402 "typetext" : "<boolean>"
22403 },
22404 "revert" : {
22405 "description" : "Revert a pending change.",
22406 "format" : "pve-configid-list",
22407 "optional" : 1,
22408 "type" : "string",
22409 "typetext" : "<string>"
22410 },
22411 "rng0" : {
22412 "description" : "Configure a VirtIO-based Random Number Generator.",
22413 "format" : {
22414 "max_bytes" : {
22415 "default" : 1024,
22416 "description" : "Maximum bytes of entropy allowed to get injected into the guest every 'period' milliseconds. Prefer a lower value when using '/dev/random' as source. Use `0` to disable limiting (potentially dangerous!).",
22417 "optional" : 1,
22418 "type" : "integer"
22419 },
22420 "period" : {
22421 "default" : 1000,
22422 "description" : "Every 'period' milliseconds the entropy-injection quota is reset, allowing the guest to retrieve another 'max_bytes' of entropy.",
22423 "optional" : 1,
22424 "type" : "integer"
22425 },
22426 "source" : {
22427 "default_key" : 1,
22428 "description" : "The file on the host to gather entropy from. In most cases '/dev/urandom' should be preferred over '/dev/random' to avoid entropy-starvation issues on the host. Using urandom does *not* decrease security in any meaningful way, as it's still seeded from real entropy, and the bytes provided will most likely be mixed with real entropy on the guest as well. '/dev/hwrng' can be used to pass through a hardware RNG from the host.",
22429 "enum" : [
22430 "/dev/urandom",
22431 "/dev/random",
22432 "/dev/hwrng"
22433 ],
22434 "type" : "string"
22435 }
22436 },
22437 "optional" : 1,
22438 "type" : "string",
22439 "typetext" : "[source=]</dev/urandom|/dev/random|/dev/hwrng> [,max_bytes=<integer>] [,period=<integer>]"
22440 },
22441 "sata[n]" : {
22442 "description" : "Use volume as SATA hard disk or CD-ROM (n is 0 to 5). Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. Use STORAGE_ID:0 and the 'import-from' parameter to import from an existing volume.",
22443 "format" : {
22444 "aio" : {
22445 "description" : "AIO type to use.",
22446 "enum" : [
22447 "native",
22448 "threads",
22449 "io_uring"
22450 ],
22451 "optional" : 1,
22452 "type" : "string"
22453 },
22454 "backup" : {
22455 "description" : "Whether the drive should be included when making backups.",
22456 "optional" : 1,
22457 "type" : "boolean"
22458 },
22459 "bps" : {
22460 "description" : "Maximum r/w speed in bytes per second.",
22461 "format_description" : "bps",
22462 "optional" : 1,
22463 "type" : "integer"
22464 },
22465 "bps_max_length" : {
22466 "description" : "Maximum length of I/O bursts in seconds.",
22467 "format_description" : "seconds",
22468 "minimum" : 1,
22469 "optional" : 1,
22470 "type" : "integer"
22471 },
22472 "bps_rd" : {
22473 "description" : "Maximum read speed in bytes per second.",
22474 "format_description" : "bps",
22475 "optional" : 1,
22476 "type" : "integer"
22477 },
22478 "bps_rd_length" : {
22479 "alias" : "bps_rd_max_length"
22480 },
22481 "bps_rd_max_length" : {
22482 "description" : "Maximum length of read I/O bursts in seconds.",
22483 "format_description" : "seconds",
22484 "minimum" : 1,
22485 "optional" : 1,
22486 "type" : "integer"
22487 },
22488 "bps_wr" : {
22489 "description" : "Maximum write speed in bytes per second.",
22490 "format_description" : "bps",
22491 "optional" : 1,
22492 "type" : "integer"
22493 },
22494 "bps_wr_length" : {
22495 "alias" : "bps_wr_max_length"
22496 },
22497 "bps_wr_max_length" : {
22498 "description" : "Maximum length of write I/O bursts in seconds.",
22499 "format_description" : "seconds",
22500 "minimum" : 1,
22501 "optional" : 1,
22502 "type" : "integer"
22503 },
22504 "cache" : {
22505 "description" : "The drive's cache mode",
22506 "enum" : [
22507 "none",
22508 "writethrough",
22509 "writeback",
22510 "unsafe",
22511 "directsync"
22512 ],
22513 "optional" : 1,
22514 "type" : "string"
22515 },
22516 "cyls" : {
22517 "description" : "Force the drive's physical geometry to have a specific cylinder count.",
22518 "optional" : 1,
22519 "type" : "integer"
22520 },
22521 "detect_zeroes" : {
22522 "description" : "Controls whether to detect and try to optimize writes of zeroes.",
22523 "optional" : 1,
22524 "type" : "boolean"
22525 },
22526 "discard" : {
22527 "description" : "Controls whether to pass discard/trim requests to the underlying storage.",
22528 "enum" : [
22529 "ignore",
22530 "on"
22531 ],
22532 "optional" : 1,
22533 "type" : "string"
22534 },
22535 "file" : {
22536 "default_key" : 1,
22537 "description" : "The drive's backing volume.",
22538 "format" : "pve-volume-id-or-qm-path",
22539 "format_description" : "volume",
22540 "type" : "string"
22541 },
22542 "format" : {
22543 "description" : "The drive's backing file's data format.",
22544 "enum" : [
22545 "raw",
22546 "cow",
22547 "qcow",
22548 "qed",
22549 "qcow2",
22550 "vmdk",
22551 "cloop"
22552 ],
22553 "optional" : 1,
22554 "type" : "string"
22555 },
22556 "heads" : {
22557 "description" : "Force the drive's physical geometry to have a specific head count.",
22558 "optional" : 1,
22559 "type" : "integer"
22560 },
22561 "import-from" : {
22562 "description" : "Create a new disk, importing from this source (volume ID or absolute path). When an absolute path is specified, it's up to you to ensure that the source is not actively used by another process during the import!",
22563 "format" : "pve-volume-id-or-absolute-path",
22564 "format_description" : "source volume",
22565 "optional" : 1,
22566 "type" : "string"
22567 },
22568 "iops" : {
22569 "description" : "Maximum r/w I/O in operations per second.",
22570 "format_description" : "iops",
22571 "optional" : 1,
22572 "type" : "integer"
22573 },
22574 "iops_max" : {
22575 "description" : "Maximum unthrottled r/w I/O pool in operations per second.",
22576 "format_description" : "iops",
22577 "optional" : 1,
22578 "type" : "integer"
22579 },
22580 "iops_max_length" : {
22581 "description" : "Maximum length of I/O bursts in seconds.",
22582 "format_description" : "seconds",
22583 "minimum" : 1,
22584 "optional" : 1,
22585 "type" : "integer"
22586 },
22587 "iops_rd" : {
22588 "description" : "Maximum read I/O in operations per second.",
22589 "format_description" : "iops",
22590 "optional" : 1,
22591 "type" : "integer"
22592 },
22593 "iops_rd_length" : {
22594 "alias" : "iops_rd_max_length"
22595 },
22596 "iops_rd_max" : {
22597 "description" : "Maximum unthrottled read I/O pool in operations per second.",
22598 "format_description" : "iops",
22599 "optional" : 1,
22600 "type" : "integer"
22601 },
22602 "iops_rd_max_length" : {
22603 "description" : "Maximum length of read I/O bursts in seconds.",
22604 "format_description" : "seconds",
22605 "minimum" : 1,
22606 "optional" : 1,
22607 "type" : "integer"
22608 },
22609 "iops_wr" : {
22610 "description" : "Maximum write I/O in operations per second.",
22611 "format_description" : "iops",
22612 "optional" : 1,
22613 "type" : "integer"
22614 },
22615 "iops_wr_length" : {
22616 "alias" : "iops_wr_max_length"
22617 },
22618 "iops_wr_max" : {
22619 "description" : "Maximum unthrottled write I/O pool in operations per second.",
22620 "format_description" : "iops",
22621 "optional" : 1,
22622 "type" : "integer"
22623 },
22624 "iops_wr_max_length" : {
22625 "description" : "Maximum length of write I/O bursts in seconds.",
22626 "format_description" : "seconds",
22627 "minimum" : 1,
22628 "optional" : 1,
22629 "type" : "integer"
22630 },
22631 "mbps" : {
22632 "description" : "Maximum r/w speed in megabytes per second.",
22633 "format_description" : "mbps",
22634 "optional" : 1,
22635 "type" : "number"
22636 },
22637 "mbps_max" : {
22638 "description" : "Maximum unthrottled r/w pool in megabytes per second.",
22639 "format_description" : "mbps",
22640 "optional" : 1,
22641 "type" : "number"
22642 },
22643 "mbps_rd" : {
22644 "description" : "Maximum read speed in megabytes per second.",
22645 "format_description" : "mbps",
22646 "optional" : 1,
22647 "type" : "number"
22648 },
22649 "mbps_rd_max" : {
22650 "description" : "Maximum unthrottled read pool in megabytes per second.",
22651 "format_description" : "mbps",
22652 "optional" : 1,
22653 "type" : "number"
22654 },
22655 "mbps_wr" : {
22656 "description" : "Maximum write speed in megabytes per second.",
22657 "format_description" : "mbps",
22658 "optional" : 1,
22659 "type" : "number"
22660 },
22661 "mbps_wr_max" : {
22662 "description" : "Maximum unthrottled write pool in megabytes per second.",
22663 "format_description" : "mbps",
22664 "optional" : 1,
22665 "type" : "number"
22666 },
22667 "media" : {
22668 "default" : "disk",
22669 "description" : "The drive's media type.",
22670 "enum" : [
22671 "cdrom",
22672 "disk"
22673 ],
22674 "optional" : 1,
22675 "type" : "string"
22676 },
22677 "replicate" : {
22678 "default" : 1,
22679 "description" : "Whether the drive should considered for replication jobs.",
22680 "optional" : 1,
22681 "type" : "boolean"
22682 },
22683 "rerror" : {
22684 "description" : "Read error action.",
22685 "enum" : [
22686 "ignore",
22687 "report",
22688 "stop"
22689 ],
22690 "optional" : 1,
22691 "type" : "string"
22692 },
22693 "secs" : {
22694 "description" : "Force the drive's physical geometry to have a specific sector count.",
22695 "optional" : 1,
22696 "type" : "integer"
22697 },
22698 "serial" : {
22699 "description" : "The drive's reported serial number, url-encoded, up to 20 bytes long.",
22700 "format" : "urlencoded",
22701 "format_description" : "serial",
22702 "maxLength" : 60,
22703 "optional" : 1,
22704 "type" : "string"
22705 },
22706 "shared" : {
22707 "default" : 0,
22708 "description" : "Mark this locally-managed volume as available on all nodes",
22709 "optional" : 1,
22710 "type" : "boolean",
22711 "verbose_description" : "Mark this locally-managed volume as available on all nodes.\n\nWARNING: This option does not share the volume automatically, it assumes it is shared already!"
22712 },
22713 "size" : {
22714 "description" : "Disk size. This is purely informational and has no effect.",
22715 "format" : "disk-size",
22716 "format_description" : "DiskSize",
22717 "optional" : 1,
22718 "type" : "string"
22719 },
22720 "snapshot" : {
22721 "description" : "Controls qemu's snapshot mode feature. If activated, changes made to the disk are temporary and will be discarded when the VM is shutdown.",
22722 "optional" : 1,
22723 "type" : "boolean"
22724 },
22725 "ssd" : {
22726 "description" : "Whether to expose this drive as an SSD, rather than a rotational hard disk.",
22727 "optional" : 1,
22728 "type" : "boolean"
22729 },
22730 "trans" : {
22731 "description" : "Force disk geometry bios translation mode.",
22732 "enum" : [
22733 "none",
22734 "lba",
22735 "auto"
22736 ],
22737 "optional" : 1,
22738 "type" : "string"
22739 },
22740 "volume" : {
22741 "alias" : "file"
22742 },
22743 "werror" : {
22744 "description" : "Write error action.",
22745 "enum" : [
22746 "enospc",
22747 "ignore",
22748 "report",
22749 "stop"
22750 ],
22751 "optional" : 1,
22752 "type" : "string"
22753 },
22754 "wwn" : {
22755 "description" : "The drive's worldwide name, encoded as 16 bytes hex string, prefixed by '0x'.",
22756 "format_description" : "wwn",
22757 "optional" : 1,
22758 "pattern" : "(?^:^(0x)[0-9a-fA-F]{16})",
22759 "type" : "string"
22760 }
22761 },
22762 "optional" : 1,
22763 "type" : "string",
22764 "typetext" : "[file=]<volume> [,aio=<native|threads|io_uring>] [,backup=<1|0>] [,bps=<bps>] [,bps_max_length=<seconds>] [,bps_rd=<bps>] [,bps_rd_max_length=<seconds>] [,bps_wr=<bps>] [,bps_wr_max_length=<seconds>] [,cache=<enum>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<enum>] [,heads=<integer>] [,import-from=<source volume>] [,iops=<iops>] [,iops_max=<iops>] [,iops_max_length=<seconds>] [,iops_rd=<iops>] [,iops_rd_max=<iops>] [,iops_rd_max_length=<seconds>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,iops_wr_max_length=<seconds>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,replicate=<1|0>] [,rerror=<ignore|report|stop>] [,secs=<integer>] [,serial=<serial>] [,shared=<1|0>] [,size=<DiskSize>] [,snapshot=<1|0>] [,ssd=<1|0>] [,trans=<none|lba|auto>] [,werror=<enum>] [,wwn=<wwn>]"
22765 },
22766 "scsi[n]" : {
22767 "description" : "Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. Use STORAGE_ID:0 and the 'import-from' parameter to import from an existing volume.",
22768 "format" : {
22769 "aio" : {
22770 "description" : "AIO type to use.",
22771 "enum" : [
22772 "native",
22773 "threads",
22774 "io_uring"
22775 ],
22776 "optional" : 1,
22777 "type" : "string"
22778 },
22779 "backup" : {
22780 "description" : "Whether the drive should be included when making backups.",
22781 "optional" : 1,
22782 "type" : "boolean"
22783 },
22784 "bps" : {
22785 "description" : "Maximum r/w speed in bytes per second.",
22786 "format_description" : "bps",
22787 "optional" : 1,
22788 "type" : "integer"
22789 },
22790 "bps_max_length" : {
22791 "description" : "Maximum length of I/O bursts in seconds.",
22792 "format_description" : "seconds",
22793 "minimum" : 1,
22794 "optional" : 1,
22795 "type" : "integer"
22796 },
22797 "bps_rd" : {
22798 "description" : "Maximum read speed in bytes per second.",
22799 "format_description" : "bps",
22800 "optional" : 1,
22801 "type" : "integer"
22802 },
22803 "bps_rd_length" : {
22804 "alias" : "bps_rd_max_length"
22805 },
22806 "bps_rd_max_length" : {
22807 "description" : "Maximum length of read I/O bursts in seconds.",
22808 "format_description" : "seconds",
22809 "minimum" : 1,
22810 "optional" : 1,
22811 "type" : "integer"
22812 },
22813 "bps_wr" : {
22814 "description" : "Maximum write speed in bytes per second.",
22815 "format_description" : "bps",
22816 "optional" : 1,
22817 "type" : "integer"
22818 },
22819 "bps_wr_length" : {
22820 "alias" : "bps_wr_max_length"
22821 },
22822 "bps_wr_max_length" : {
22823 "description" : "Maximum length of write I/O bursts in seconds.",
22824 "format_description" : "seconds",
22825 "minimum" : 1,
22826 "optional" : 1,
22827 "type" : "integer"
22828 },
22829 "cache" : {
22830 "description" : "The drive's cache mode",
22831 "enum" : [
22832 "none",
22833 "writethrough",
22834 "writeback",
22835 "unsafe",
22836 "directsync"
22837 ],
22838 "optional" : 1,
22839 "type" : "string"
22840 },
22841 "cyls" : {
22842 "description" : "Force the drive's physical geometry to have a specific cylinder count.",
22843 "optional" : 1,
22844 "type" : "integer"
22845 },
22846 "detect_zeroes" : {
22847 "description" : "Controls whether to detect and try to optimize writes of zeroes.",
22848 "optional" : 1,
22849 "type" : "boolean"
22850 },
22851 "discard" : {
22852 "description" : "Controls whether to pass discard/trim requests to the underlying storage.",
22853 "enum" : [
22854 "ignore",
22855 "on"
22856 ],
22857 "optional" : 1,
22858 "type" : "string"
22859 },
22860 "file" : {
22861 "default_key" : 1,
22862 "description" : "The drive's backing volume.",
22863 "format" : "pve-volume-id-or-qm-path",
22864 "format_description" : "volume",
22865 "type" : "string"
22866 },
22867 "format" : {
22868 "description" : "The drive's backing file's data format.",
22869 "enum" : [
22870 "raw",
22871 "cow",
22872 "qcow",
22873 "qed",
22874 "qcow2",
22875 "vmdk",
22876 "cloop"
22877 ],
22878 "optional" : 1,
22879 "type" : "string"
22880 },
22881 "heads" : {
22882 "description" : "Force the drive's physical geometry to have a specific head count.",
22883 "optional" : 1,
22884 "type" : "integer"
22885 },
22886 "import-from" : {
22887 "description" : "Create a new disk, importing from this source (volume ID or absolute path). When an absolute path is specified, it's up to you to ensure that the source is not actively used by another process during the import!",
22888 "format" : "pve-volume-id-or-absolute-path",
22889 "format_description" : "source volume",
22890 "optional" : 1,
22891 "type" : "string"
22892 },
22893 "iops" : {
22894 "description" : "Maximum r/w I/O in operations per second.",
22895 "format_description" : "iops",
22896 "optional" : 1,
22897 "type" : "integer"
22898 },
22899 "iops_max" : {
22900 "description" : "Maximum unthrottled r/w I/O pool in operations per second.",
22901 "format_description" : "iops",
22902 "optional" : 1,
22903 "type" : "integer"
22904 },
22905 "iops_max_length" : {
22906 "description" : "Maximum length of I/O bursts in seconds.",
22907 "format_description" : "seconds",
22908 "minimum" : 1,
22909 "optional" : 1,
22910 "type" : "integer"
22911 },
22912 "iops_rd" : {
22913 "description" : "Maximum read I/O in operations per second.",
22914 "format_description" : "iops",
22915 "optional" : 1,
22916 "type" : "integer"
22917 },
22918 "iops_rd_length" : {
22919 "alias" : "iops_rd_max_length"
22920 },
22921 "iops_rd_max" : {
22922 "description" : "Maximum unthrottled read I/O pool in operations per second.",
22923 "format_description" : "iops",
22924 "optional" : 1,
22925 "type" : "integer"
22926 },
22927 "iops_rd_max_length" : {
22928 "description" : "Maximum length of read I/O bursts in seconds.",
22929 "format_description" : "seconds",
22930 "minimum" : 1,
22931 "optional" : 1,
22932 "type" : "integer"
22933 },
22934 "iops_wr" : {
22935 "description" : "Maximum write I/O in operations per second.",
22936 "format_description" : "iops",
22937 "optional" : 1,
22938 "type" : "integer"
22939 },
22940 "iops_wr_length" : {
22941 "alias" : "iops_wr_max_length"
22942 },
22943 "iops_wr_max" : {
22944 "description" : "Maximum unthrottled write I/O pool in operations per second.",
22945 "format_description" : "iops",
22946 "optional" : 1,
22947 "type" : "integer"
22948 },
22949 "iops_wr_max_length" : {
22950 "description" : "Maximum length of write I/O bursts in seconds.",
22951 "format_description" : "seconds",
22952 "minimum" : 1,
22953 "optional" : 1,
22954 "type" : "integer"
22955 },
22956 "iothread" : {
22957 "description" : "Whether to use iothreads for this drive",
22958 "optional" : 1,
22959 "type" : "boolean"
22960 },
22961 "mbps" : {
22962 "description" : "Maximum r/w speed in megabytes per second.",
22963 "format_description" : "mbps",
22964 "optional" : 1,
22965 "type" : "number"
22966 },
22967 "mbps_max" : {
22968 "description" : "Maximum unthrottled r/w pool in megabytes per second.",
22969 "format_description" : "mbps",
22970 "optional" : 1,
22971 "type" : "number"
22972 },
22973 "mbps_rd" : {
22974 "description" : "Maximum read speed in megabytes per second.",
22975 "format_description" : "mbps",
22976 "optional" : 1,
22977 "type" : "number"
22978 },
22979 "mbps_rd_max" : {
22980 "description" : "Maximum unthrottled read pool in megabytes per second.",
22981 "format_description" : "mbps",
22982 "optional" : 1,
22983 "type" : "number"
22984 },
22985 "mbps_wr" : {
22986 "description" : "Maximum write speed in megabytes per second.",
22987 "format_description" : "mbps",
22988 "optional" : 1,
22989 "type" : "number"
22990 },
22991 "mbps_wr_max" : {
22992 "description" : "Maximum unthrottled write pool in megabytes per second.",
22993 "format_description" : "mbps",
22994 "optional" : 1,
22995 "type" : "number"
22996 },
22997 "media" : {
22998 "default" : "disk",
22999 "description" : "The drive's media type.",
23000 "enum" : [
23001 "cdrom",
23002 "disk"
23003 ],
23004 "optional" : 1,
23005 "type" : "string"
23006 },
23007 "product" : {
23008 "description" : "The drive's product name, up to 16 bytes long.",
23009 "format_description" : "product",
23010 "optional" : 1,
23011 "pattern" : "[A-Za-z0-9\\-_\\s]{,16}",
23012 "type" : "string"
23013 },
23014 "queues" : {
23015 "description" : "Number of queues.",
23016 "minimum" : 2,
23017 "optional" : 1,
23018 "type" : "integer"
23019 },
23020 "replicate" : {
23021 "default" : 1,
23022 "description" : "Whether the drive should considered for replication jobs.",
23023 "optional" : 1,
23024 "type" : "boolean"
23025 },
23026 "rerror" : {
23027 "description" : "Read error action.",
23028 "enum" : [
23029 "ignore",
23030 "report",
23031 "stop"
23032 ],
23033 "optional" : 1,
23034 "type" : "string"
23035 },
23036 "ro" : {
23037 "description" : "Whether the drive is read-only.",
23038 "optional" : 1,
23039 "type" : "boolean"
23040 },
23041 "scsiblock" : {
23042 "default" : 0,
23043 "description" : "whether to use scsi-block for full passthrough of host block device\n\nWARNING: can lead to I/O errors in combination with low memory or high memory fragmentation on host",
23044 "optional" : 1,
23045 "type" : "boolean"
23046 },
23047 "secs" : {
23048 "description" : "Force the drive's physical geometry to have a specific sector count.",
23049 "optional" : 1,
23050 "type" : "integer"
23051 },
23052 "serial" : {
23053 "description" : "The drive's reported serial number, url-encoded, up to 20 bytes long.",
23054 "format" : "urlencoded",
23055 "format_description" : "serial",
23056 "maxLength" : 60,
23057 "optional" : 1,
23058 "type" : "string"
23059 },
23060 "shared" : {
23061 "default" : 0,
23062 "description" : "Mark this locally-managed volume as available on all nodes",
23063 "optional" : 1,
23064 "type" : "boolean",
23065 "verbose_description" : "Mark this locally-managed volume as available on all nodes.\n\nWARNING: This option does not share the volume automatically, it assumes it is shared already!"
23066 },
23067 "size" : {
23068 "description" : "Disk size. This is purely informational and has no effect.",
23069 "format" : "disk-size",
23070 "format_description" : "DiskSize",
23071 "optional" : 1,
23072 "type" : "string"
23073 },
23074 "snapshot" : {
23075 "description" : "Controls qemu's snapshot mode feature. If activated, changes made to the disk are temporary and will be discarded when the VM is shutdown.",
23076 "optional" : 1,
23077 "type" : "boolean"
23078 },
23079 "ssd" : {
23080 "description" : "Whether to expose this drive as an SSD, rather than a rotational hard disk.",
23081 "optional" : 1,
23082 "type" : "boolean"
23083 },
23084 "trans" : {
23085 "description" : "Force disk geometry bios translation mode.",
23086 "enum" : [
23087 "none",
23088 "lba",
23089 "auto"
23090 ],
23091 "optional" : 1,
23092 "type" : "string"
23093 },
23094 "vendor" : {
23095 "description" : "The drive's vendor name, up to 8 bytes long.",
23096 "format_description" : "vendor",
23097 "optional" : 1,
23098 "pattern" : "[A-Za-z0-9\\-_\\s]{,8}",
23099 "type" : "string"
23100 },
23101 "volume" : {
23102 "alias" : "file"
23103 },
23104 "werror" : {
23105 "description" : "Write error action.",
23106 "enum" : [
23107 "enospc",
23108 "ignore",
23109 "report",
23110 "stop"
23111 ],
23112 "optional" : 1,
23113 "type" : "string"
23114 },
23115 "wwn" : {
23116 "description" : "The drive's worldwide name, encoded as 16 bytes hex string, prefixed by '0x'.",
23117 "format_description" : "wwn",
23118 "optional" : 1,
23119 "pattern" : "(?^:^(0x)[0-9a-fA-F]{16})",
23120 "type" : "string"
23121 }
23122 },
23123 "optional" : 1,
23124 "type" : "string",
23125 "typetext" : "[file=]<volume> [,aio=<native|threads|io_uring>] [,backup=<1|0>] [,bps=<bps>] [,bps_max_length=<seconds>] [,bps_rd=<bps>] [,bps_rd_max_length=<seconds>] [,bps_wr=<bps>] [,bps_wr_max_length=<seconds>] [,cache=<enum>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<enum>] [,heads=<integer>] [,import-from=<source volume>] [,iops=<iops>] [,iops_max=<iops>] [,iops_max_length=<seconds>] [,iops_rd=<iops>] [,iops_rd_max=<iops>] [,iops_rd_max_length=<seconds>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,iops_wr_max_length=<seconds>] [,iothread=<1|0>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,product=<product>] [,queues=<integer>] [,replicate=<1|0>] [,rerror=<ignore|report|stop>] [,ro=<1|0>] [,scsiblock=<1|0>] [,secs=<integer>] [,serial=<serial>] [,shared=<1|0>] [,size=<DiskSize>] [,snapshot=<1|0>] [,ssd=<1|0>] [,trans=<none|lba|auto>] [,vendor=<vendor>] [,werror=<enum>] [,wwn=<wwn>]"
23126 },
23127 "scsihw" : {
23128 "default" : "lsi",
23129 "description" : "SCSI controller model",
23130 "enum" : [
23131 "lsi",
23132 "lsi53c810",
23133 "virtio-scsi-pci",
23134 "virtio-scsi-single",
23135 "megasas",
23136 "pvscsi"
23137 ],
23138 "optional" : 1,
23139 "type" : "string"
23140 },
23141 "searchdomain" : {
23142 "description" : "cloud-init: Sets DNS search domains for a container. Create will automatically use the setting from the host if neither searchdomain nor nameserver are set.",
23143 "optional" : 1,
23144 "type" : "string",
23145 "typetext" : "<string>"
23146 },
23147 "serial[n]" : {
23148 "description" : "Create a serial device inside the VM (n is 0 to 3)",
23149 "optional" : 1,
23150 "pattern" : "(/dev/.+|socket)",
23151 "type" : "string",
23152 "verbose_description" : "Create a serial device inside the VM (n is 0 to 3), and pass through a\nhost serial device (i.e. /dev/ttyS0), or create a unix socket on the\nhost side (use 'qm terminal' to open a terminal connection).\n\nNOTE: If you pass through a host serial device, it is no longer possible to migrate such machines -\nuse with special care.\n\nCAUTION: Experimental! User reported problems with this option.\n"
23153 },
23154 "shares" : {
23155 "default" : 1000,
23156 "description" : "Amount of memory shares for auto-ballooning. The larger the number is, the more memory this VM gets. Number is relative to weights of all other running VMs. Using zero disables auto-ballooning. Auto-ballooning is done by pvestatd.",
23157 "maximum" : 50000,
23158 "minimum" : 0,
23159 "optional" : 1,
23160 "type" : "integer",
23161 "typetext" : "<integer> (0 - 50000)"
23162 },
23163 "skiplock" : {
23164 "description" : "Ignore locks - only root is allowed to use this option.",
23165 "optional" : 1,
23166 "type" : "boolean",
23167 "typetext" : "<boolean>"
23168 },
23169 "smbios1" : {
23170 "description" : "Specify SMBIOS type 1 fields.",
23171 "format" : "pve-qm-smbios1",
23172 "maxLength" : 512,
23173 "optional" : 1,
23174 "type" : "string",
23175 "typetext" : "[base64=<1|0>] [,family=<Base64 encoded string>] [,manufacturer=<Base64 encoded string>] [,product=<Base64 encoded string>] [,serial=<Base64 encoded string>] [,sku=<Base64 encoded string>] [,uuid=<UUID>] [,version=<Base64 encoded string>]"
23176 },
23177 "smp" : {
23178 "default" : 1,
23179 "description" : "The number of CPUs. Please use option -sockets instead.",
23180 "minimum" : 1,
23181 "optional" : 1,
23182 "type" : "integer",
23183 "typetext" : "<integer> (1 - N)"
23184 },
23185 "sockets" : {
23186 "default" : 1,
23187 "description" : "The number of CPU sockets.",
23188 "minimum" : 1,
23189 "optional" : 1,
23190 "type" : "integer",
23191 "typetext" : "<integer> (1 - N)"
23192 },
23193 "spice_enhancements" : {
23194 "description" : "Configure additional enhancements for SPICE.",
23195 "format" : {
23196 "foldersharing" : {
23197 "default" : "0",
23198 "description" : "Enable folder sharing via SPICE. Needs Spice-WebDAV daemon installed in the VM.",
23199 "optional" : 1,
23200 "type" : "boolean"
23201 },
23202 "videostreaming" : {
23203 "default" : "off",
23204 "description" : "Enable video streaming. Uses compression for detected video streams.",
23205 "enum" : [
23206 "off",
23207 "all",
23208 "filter"
23209 ],
23210 "optional" : 1,
23211 "type" : "string"
23212 }
23213 },
23214 "optional" : 1,
23215 "type" : "string",
23216 "typetext" : "[foldersharing=<1|0>] [,videostreaming=<off|all|filter>]"
23217 },
23218 "sshkeys" : {
23219 "description" : "cloud-init: Setup public SSH keys (one key per line, OpenSSH format).",
23220 "format" : "urlencoded",
23221 "optional" : 1,
23222 "type" : "string",
23223 "typetext" : "<string>"
23224 },
23225 "startdate" : {
23226 "default" : "now",
23227 "description" : "Set the initial date of the real time clock. Valid format for date are:'now' or '2006-06-17T16:01:21' or '2006-06-17'.",
23228 "optional" : 1,
23229 "pattern" : "(now|\\d{4}-\\d{1,2}-\\d{1,2}(T\\d{1,2}:\\d{1,2}:\\d{1,2})?)",
23230 "type" : "string",
23231 "typetext" : "(now | YYYY-MM-DD | YYYY-MM-DDTHH:MM:SS)"
23232 },
23233 "startup" : {
23234 "description" : "Startup and shutdown behavior. Order is a non-negative number defining the general startup order. Shutdown in done with reverse ordering. Additionally you can set the 'up' or 'down' delay in seconds, which specifies a delay to wait before the next VM is started or stopped.",
23235 "format" : "pve-startup-order",
23236 "optional" : 1,
23237 "type" : "string",
23238 "typetext" : "[[order=]\\d+] [,up=\\d+] [,down=\\d+] "
23239 },
23240 "tablet" : {
23241 "default" : 1,
23242 "description" : "Enable/disable the USB tablet device.",
23243 "optional" : 1,
23244 "type" : "boolean",
23245 "typetext" : "<boolean>",
23246 "verbose_description" : "Enable/disable the USB tablet device. This device is usually needed to allow absolute mouse positioning with VNC. Else the mouse runs out of sync with normal VNC clients. If you're running lots of console-only guests on one host, you may consider disabling this to save some context switches. This is turned off by default if you use spice (`qm set <vmid> --vga qxl`)."
23247 },
23248 "tags" : {
23249 "description" : "Tags of the VM. This is only meta information.",
23250 "format" : "pve-tag-list",
23251 "optional" : 1,
23252 "type" : "string",
23253 "typetext" : "<string>"
23254 },
23255 "tdf" : {
23256 "default" : 0,
23257 "description" : "Enable/disable time drift fix.",
23258 "optional" : 1,
23259 "type" : "boolean",
23260 "typetext" : "<boolean>"
23261 },
23262 "template" : {
23263 "default" : 0,
23264 "description" : "Enable/disable Template.",
23265 "optional" : 1,
23266 "type" : "boolean",
23267 "typetext" : "<boolean>"
23268 },
23269 "tpmstate0" : {
23270 "description" : "Configure a Disk for storing TPM state. The format is fixed to 'raw'. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. Note that SIZE_IN_GiB is ignored here and 4 MiB will be used instead. Use STORAGE_ID:0 and the 'import-from' parameter to import from an existing volume.",
23271 "format" : {
23272 "file" : {
23273 "default_key" : 1,
23274 "description" : "The drive's backing volume.",
23275 "format" : "pve-volume-id-or-qm-path",
23276 "format_description" : "volume",
23277 "type" : "string"
23278 },
23279 "import-from" : {
23280 "description" : "Create a new disk, importing from this source (volume ID or absolute path). When an absolute path is specified, it's up to you to ensure that the source is not actively used by another process during the import!",
23281 "format" : "pve-volume-id-or-absolute-path",
23282 "format_description" : "source volume",
23283 "optional" : 1,
23284 "type" : "string"
23285 },
23286 "size" : {
23287 "description" : "Disk size. This is purely informational and has no effect.",
23288 "format" : "disk-size",
23289 "format_description" : "DiskSize",
23290 "optional" : 1,
23291 "type" : "string"
23292 },
23293 "version" : {
23294 "default" : "v2.0",
23295 "description" : "The TPM interface version. v2.0 is newer and should be preferred. Note that this cannot be changed later on.",
23296 "enum" : [
23297 "v1.2",
23298 "v2.0"
23299 ],
23300 "optional" : 1,
23301 "type" : "string"
23302 },
23303 "volume" : {
23304 "alias" : "file"
23305 }
23306 },
23307 "optional" : 1,
23308 "type" : "string",
23309 "typetext" : "[file=]<volume> [,import-from=<source volume>] [,size=<DiskSize>] [,version=<v1.2|v2.0>]"
23310 },
23311 "unused[n]" : {
23312 "description" : "Reference to unused volumes. This is used internally, and should not be modified manually.",
23313 "format" : {
23314 "file" : {
23315 "default_key" : 1,
23316 "description" : "The drive's backing volume.",
23317 "format" : "pve-volume-id",
23318 "format_description" : "volume",
23319 "type" : "string"
23320 },
23321 "volume" : {
23322 "alias" : "file"
23323 }
23324 },
23325 "optional" : 1,
23326 "type" : "string",
23327 "typetext" : "[file=]<volume>"
23328 },
23329 "usb[n]" : {
23330 "description" : "Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14).",
23331 "format" : {
23332 "host" : {
23333 "default_key" : 1,
23334 "description" : "The Host USB device or port or the value 'spice'. HOSTUSBDEVICE syntax is:\n\n 'bus-port(.port)*' (decimal numbers) or\n 'vendor_id:product_id' (hexadeciaml numbers) or\n 'spice'\n\nYou can use the 'lsusb -t' command to list existing usb devices.\n\nNOTE: This option allows direct access to host hardware. So it is no longer possible to migrate such\nmachines - use with special care.\n\nThe value 'spice' can be used to add a usb redirection devices for spice.\n\nEither this or the 'mapping' key must be set.\n",
23335 "format_description" : "HOSTUSBDEVICE|spice",
23336 "optional" : 1,
23337 "pattern" : "(?^:(?:(?:(?^:(0x)?([0-9A-Fa-f]{4}):(0x)?([0-9A-Fa-f]{4})))|(?:(?^:(\\d+)\\-(\\d+(\\.\\d+)*)))|[Ss][Pp][Ii][Cc][Ee]))",
23338 "type" : "string"
23339 },
23340 "mapping" : {
23341 "description" : "The ID of a cluster wide mapping. Either this or the default-key 'host' must be set.",
23342 "format" : "pve-configid",
23343 "format_description" : "mapping-id",
23344 "optional" : 1,
23345 "type" : "string"
23346 },
23347 "usb3" : {
23348 "default" : 0,
23349 "description" : "Specifies whether if given host option is a USB3 device or port. For modern guests (machine version >= 7.1 and ostype l26 and windows > 7), this flag is irrelevant (all devices are plugged into a xhci controller).",
23350 "optional" : 1,
23351 "type" : "boolean"
23352 }
23353 },
23354 "optional" : 1,
23355 "type" : "string",
23356 "typetext" : "[[host=]<HOSTUSBDEVICE|spice>] [,mapping=<mapping-id>] [,usb3=<1|0>]"
23357 },
23358 "vcpus" : {
23359 "default" : 0,
23360 "description" : "Number of hotplugged vcpus.",
23361 "minimum" : 1,
23362 "optional" : 1,
23363 "type" : "integer",
23364 "typetext" : "<integer> (1 - N)"
23365 },
23366 "vga" : {
23367 "description" : "Configure the VGA hardware.",
23368 "format" : {
23369 "clipboard" : {
23370 "description" : "Enable a specific clipboard. If not set, depending on the display type the SPICE one will be added. Migration with VNC clipboard is not yet supported!",
23371 "enum" : [
23372 "vnc"
23373 ],
23374 "optional" : 1,
23375 "type" : "string"
23376 },
23377 "memory" : {
23378 "description" : "Sets the VGA memory (in MiB). Has no effect with serial display.",
23379 "maximum" : 512,
23380 "minimum" : 4,
23381 "optional" : 1,
23382 "type" : "integer"
23383 },
23384 "type" : {
23385 "default" : "std",
23386 "default_key" : 1,
23387 "description" : "Select the VGA type.",
23388 "enum" : [
23389 "cirrus",
23390 "qxl",
23391 "qxl2",
23392 "qxl3",
23393 "qxl4",
23394 "none",
23395 "serial0",
23396 "serial1",
23397 "serial2",
23398 "serial3",
23399 "std",
23400 "virtio",
23401 "virtio-gl",
23402 "vmware"
23403 ],
23404 "optional" : 1,
23405 "type" : "string"
23406 }
23407 },
23408 "optional" : 1,
23409 "type" : "string",
23410 "typetext" : "[[type=]<enum>] [,clipboard=<vnc>] [,memory=<integer>]",
23411 "verbose_description" : "Configure the VGA Hardware. If you want to use high resolution modes (>= 1280x1024x16) you may need to increase the vga memory option. Since QEMU 2.9 the default VGA display type is 'std' for all OS types besides some Windows versions (XP and older) which use 'cirrus'. The 'qxl' option enables the SPICE display server. For win* OS you can select how many independent displays you want, Linux guests can add displays them self.\nYou can also run without any graphic card, using a serial device as terminal."
23412 },
23413 "virtio[n]" : {
23414 "description" : "Use volume as VIRTIO hard disk (n is 0 to 15). Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. Use STORAGE_ID:0 and the 'import-from' parameter to import from an existing volume.",
23415 "format" : {
23416 "aio" : {
23417 "description" : "AIO type to use.",
23418 "enum" : [
23419 "native",
23420 "threads",
23421 "io_uring"
23422 ],
23423 "optional" : 1,
23424 "type" : "string"
23425 },
23426 "backup" : {
23427 "description" : "Whether the drive should be included when making backups.",
23428 "optional" : 1,
23429 "type" : "boolean"
23430 },
23431 "bps" : {
23432 "description" : "Maximum r/w speed in bytes per second.",
23433 "format_description" : "bps",
23434 "optional" : 1,
23435 "type" : "integer"
23436 },
23437 "bps_max_length" : {
23438 "description" : "Maximum length of I/O bursts in seconds.",
23439 "format_description" : "seconds",
23440 "minimum" : 1,
23441 "optional" : 1,
23442 "type" : "integer"
23443 },
23444 "bps_rd" : {
23445 "description" : "Maximum read speed in bytes per second.",
23446 "format_description" : "bps",
23447 "optional" : 1,
23448 "type" : "integer"
23449 },
23450 "bps_rd_length" : {
23451 "alias" : "bps_rd_max_length"
23452 },
23453 "bps_rd_max_length" : {
23454 "description" : "Maximum length of read I/O bursts in seconds.",
23455 "format_description" : "seconds",
23456 "minimum" : 1,
23457 "optional" : 1,
23458 "type" : "integer"
23459 },
23460 "bps_wr" : {
23461 "description" : "Maximum write speed in bytes per second.",
23462 "format_description" : "bps",
23463 "optional" : 1,
23464 "type" : "integer"
23465 },
23466 "bps_wr_length" : {
23467 "alias" : "bps_wr_max_length"
23468 },
23469 "bps_wr_max_length" : {
23470 "description" : "Maximum length of write I/O bursts in seconds.",
23471 "format_description" : "seconds",
23472 "minimum" : 1,
23473 "optional" : 1,
23474 "type" : "integer"
23475 },
23476 "cache" : {
23477 "description" : "The drive's cache mode",
23478 "enum" : [
23479 "none",
23480 "writethrough",
23481 "writeback",
23482 "unsafe",
23483 "directsync"
23484 ],
23485 "optional" : 1,
23486 "type" : "string"
23487 },
23488 "cyls" : {
23489 "description" : "Force the drive's physical geometry to have a specific cylinder count.",
23490 "optional" : 1,
23491 "type" : "integer"
23492 },
23493 "detect_zeroes" : {
23494 "description" : "Controls whether to detect and try to optimize writes of zeroes.",
23495 "optional" : 1,
23496 "type" : "boolean"
23497 },
23498 "discard" : {
23499 "description" : "Controls whether to pass discard/trim requests to the underlying storage.",
23500 "enum" : [
23501 "ignore",
23502 "on"
23503 ],
23504 "optional" : 1,
23505 "type" : "string"
23506 },
23507 "file" : {
23508 "default_key" : 1,
23509 "description" : "The drive's backing volume.",
23510 "format" : "pve-volume-id-or-qm-path",
23511 "format_description" : "volume",
23512 "type" : "string"
23513 },
23514 "format" : {
23515 "description" : "The drive's backing file's data format.",
23516 "enum" : [
23517 "raw",
23518 "cow",
23519 "qcow",
23520 "qed",
23521 "qcow2",
23522 "vmdk",
23523 "cloop"
23524 ],
23525 "optional" : 1,
23526 "type" : "string"
23527 },
23528 "heads" : {
23529 "description" : "Force the drive's physical geometry to have a specific head count.",
23530 "optional" : 1,
23531 "type" : "integer"
23532 },
23533 "import-from" : {
23534 "description" : "Create a new disk, importing from this source (volume ID or absolute path). When an absolute path is specified, it's up to you to ensure that the source is not actively used by another process during the import!",
23535 "format" : "pve-volume-id-or-absolute-path",
23536 "format_description" : "source volume",
23537 "optional" : 1,
23538 "type" : "string"
23539 },
23540 "iops" : {
23541 "description" : "Maximum r/w I/O in operations per second.",
23542 "format_description" : "iops",
23543 "optional" : 1,
23544 "type" : "integer"
23545 },
23546 "iops_max" : {
23547 "description" : "Maximum unthrottled r/w I/O pool in operations per second.",
23548 "format_description" : "iops",
23549 "optional" : 1,
23550 "type" : "integer"
23551 },
23552 "iops_max_length" : {
23553 "description" : "Maximum length of I/O bursts in seconds.",
23554 "format_description" : "seconds",
23555 "minimum" : 1,
23556 "optional" : 1,
23557 "type" : "integer"
23558 },
23559 "iops_rd" : {
23560 "description" : "Maximum read I/O in operations per second.",
23561 "format_description" : "iops",
23562 "optional" : 1,
23563 "type" : "integer"
23564 },
23565 "iops_rd_length" : {
23566 "alias" : "iops_rd_max_length"
23567 },
23568 "iops_rd_max" : {
23569 "description" : "Maximum unthrottled read I/O pool in operations per second.",
23570 "format_description" : "iops",
23571 "optional" : 1,
23572 "type" : "integer"
23573 },
23574 "iops_rd_max_length" : {
23575 "description" : "Maximum length of read I/O bursts in seconds.",
23576 "format_description" : "seconds",
23577 "minimum" : 1,
23578 "optional" : 1,
23579 "type" : "integer"
23580 },
23581 "iops_wr" : {
23582 "description" : "Maximum write I/O in operations per second.",
23583 "format_description" : "iops",
23584 "optional" : 1,
23585 "type" : "integer"
23586 },
23587 "iops_wr_length" : {
23588 "alias" : "iops_wr_max_length"
23589 },
23590 "iops_wr_max" : {
23591 "description" : "Maximum unthrottled write I/O pool in operations per second.",
23592 "format_description" : "iops",
23593 "optional" : 1,
23594 "type" : "integer"
23595 },
23596 "iops_wr_max_length" : {
23597 "description" : "Maximum length of write I/O bursts in seconds.",
23598 "format_description" : "seconds",
23599 "minimum" : 1,
23600 "optional" : 1,
23601 "type" : "integer"
23602 },
23603 "iothread" : {
23604 "description" : "Whether to use iothreads for this drive",
23605 "optional" : 1,
23606 "type" : "boolean"
23607 },
23608 "mbps" : {
23609 "description" : "Maximum r/w speed in megabytes per second.",
23610 "format_description" : "mbps",
23611 "optional" : 1,
23612 "type" : "number"
23613 },
23614 "mbps_max" : {
23615 "description" : "Maximum unthrottled r/w pool in megabytes per second.",
23616 "format_description" : "mbps",
23617 "optional" : 1,
23618 "type" : "number"
23619 },
23620 "mbps_rd" : {
23621 "description" : "Maximum read speed in megabytes per second.",
23622 "format_description" : "mbps",
23623 "optional" : 1,
23624 "type" : "number"
23625 },
23626 "mbps_rd_max" : {
23627 "description" : "Maximum unthrottled read pool in megabytes per second.",
23628 "format_description" : "mbps",
23629 "optional" : 1,
23630 "type" : "number"
23631 },
23632 "mbps_wr" : {
23633 "description" : "Maximum write speed in megabytes per second.",
23634 "format_description" : "mbps",
23635 "optional" : 1,
23636 "type" : "number"
23637 },
23638 "mbps_wr_max" : {
23639 "description" : "Maximum unthrottled write pool in megabytes per second.",
23640 "format_description" : "mbps",
23641 "optional" : 1,
23642 "type" : "number"
23643 },
23644 "media" : {
23645 "default" : "disk",
23646 "description" : "The drive's media type.",
23647 "enum" : [
23648 "cdrom",
23649 "disk"
23650 ],
23651 "optional" : 1,
23652 "type" : "string"
23653 },
23654 "replicate" : {
23655 "default" : 1,
23656 "description" : "Whether the drive should considered for replication jobs.",
23657 "optional" : 1,
23658 "type" : "boolean"
23659 },
23660 "rerror" : {
23661 "description" : "Read error action.",
23662 "enum" : [
23663 "ignore",
23664 "report",
23665 "stop"
23666 ],
23667 "optional" : 1,
23668 "type" : "string"
23669 },
23670 "ro" : {
23671 "description" : "Whether the drive is read-only.",
23672 "optional" : 1,
23673 "type" : "boolean"
23674 },
23675 "secs" : {
23676 "description" : "Force the drive's physical geometry to have a specific sector count.",
23677 "optional" : 1,
23678 "type" : "integer"
23679 },
23680 "serial" : {
23681 "description" : "The drive's reported serial number, url-encoded, up to 20 bytes long.",
23682 "format" : "urlencoded",
23683 "format_description" : "serial",
23684 "maxLength" : 60,
23685 "optional" : 1,
23686 "type" : "string"
23687 },
23688 "shared" : {
23689 "default" : 0,
23690 "description" : "Mark this locally-managed volume as available on all nodes",
23691 "optional" : 1,
23692 "type" : "boolean",
23693 "verbose_description" : "Mark this locally-managed volume as available on all nodes.\n\nWARNING: This option does not share the volume automatically, it assumes it is shared already!"
23694 },
23695 "size" : {
23696 "description" : "Disk size. This is purely informational and has no effect.",
23697 "format" : "disk-size",
23698 "format_description" : "DiskSize",
23699 "optional" : 1,
23700 "type" : "string"
23701 },
23702 "snapshot" : {
23703 "description" : "Controls qemu's snapshot mode feature. If activated, changes made to the disk are temporary and will be discarded when the VM is shutdown.",
23704 "optional" : 1,
23705 "type" : "boolean"
23706 },
23707 "trans" : {
23708 "description" : "Force disk geometry bios translation mode.",
23709 "enum" : [
23710 "none",
23711 "lba",
23712 "auto"
23713 ],
23714 "optional" : 1,
23715 "type" : "string"
23716 },
23717 "volume" : {
23718 "alias" : "file"
23719 },
23720 "werror" : {
23721 "description" : "Write error action.",
23722 "enum" : [
23723 "enospc",
23724 "ignore",
23725 "report",
23726 "stop"
23727 ],
23728 "optional" : 1,
23729 "type" : "string"
23730 }
23731 },
23732 "optional" : 1,
23733 "type" : "string",
23734 "typetext" : "[file=]<volume> [,aio=<native|threads|io_uring>] [,backup=<1|0>] [,bps=<bps>] [,bps_max_length=<seconds>] [,bps_rd=<bps>] [,bps_rd_max_length=<seconds>] [,bps_wr=<bps>] [,bps_wr_max_length=<seconds>] [,cache=<enum>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<enum>] [,heads=<integer>] [,import-from=<source volume>] [,iops=<iops>] [,iops_max=<iops>] [,iops_max_length=<seconds>] [,iops_rd=<iops>] [,iops_rd_max=<iops>] [,iops_rd_max_length=<seconds>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,iops_wr_max_length=<seconds>] [,iothread=<1|0>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,replicate=<1|0>] [,rerror=<ignore|report|stop>] [,ro=<1|0>] [,secs=<integer>] [,serial=<serial>] [,shared=<1|0>] [,size=<DiskSize>] [,snapshot=<1|0>] [,trans=<none|lba|auto>] [,werror=<enum>]"
23735 },
23736 "vmgenid" : {
23737 "default" : "1 (autogenerated)",
23738 "description" : "Set VM Generation ID. Use '1' to autogenerate on create or update, pass '0' to disable explicitly.",
23739 "format_description" : "UUID",
23740 "optional" : 1,
23741 "pattern" : "(?:[a-fA-F0-9]{8}(?:-[a-fA-F0-9]{4}){3}-[a-fA-F0-9]{12}|[01])",
23742 "type" : "string",
23743 "verbose_description" : "The VM generation ID (vmgenid) device exposes a 128-bit integer value identifier to the guest OS. This allows to notify the guest operating system when the virtual machine is executed with a different configuration (e.g. snapshot execution or creation from a template). The guest operating system notices the change, and is then able to react as appropriate by marking its copies of distributed databases as dirty, re-initializing its random number generator, etc.\nNote that auto-creation only works when done through API/CLI create or update methods, but not when manually editing the config file."
23744 },
23745 "vmid" : {
23746 "description" : "The (unique) ID of the VM.",
23747 "format" : "pve-vmid",
23748 "maximum" : 999999999,
23749 "minimum" : 100,
23750 "type" : "integer",
23751 "typetext" : "<integer> (100 - 999999999)"
23752 },
23753 "vmstatestorage" : {
23754 "description" : "Default storage for VM state volumes/files.",
23755 "format" : "pve-storage-id",
23756 "format_description" : "storage ID",
23757 "optional" : 1,
23758 "type" : "string",
23759 "typetext" : "<storage ID>"
23760 },
23761 "watchdog" : {
23762 "description" : "Create a virtual hardware watchdog device.",
23763 "format" : "pve-qm-watchdog",
23764 "optional" : 1,
23765 "type" : "string",
23766 "typetext" : "[[model=]<i6300esb|ib700>] [,action=<enum>]",
23767 "verbose_description" : "Create a virtual hardware watchdog device. Once enabled (by a guest action), the watchdog must be periodically polled by an agent inside the guest or else the watchdog will reset the guest (or execute the respective action specified)"
23768 }
23769 }
23770 },
23771 "permissions" : {
23772 "check" : [
23773 "perm",
23774 "/vms/{vmid}",
23775 [
23776 "VM.Config.Disk",
23777 "VM.Config.CDROM",
23778 "VM.Config.CPU",
23779 "VM.Config.Memory",
23780 "VM.Config.Network",
23781 "VM.Config.HWType",
23782 "VM.Config.Options",
23783 "VM.Config.Cloudinit"
23784 ],
23785 "any",
23786 1
23787 ]
23788 },
23789 "protected" : 1,
23790 "proxyto" : "node",
23791 "returns" : {
23792 "type" : "null"
23793 }
23794 }
23795 },
23796 "leaf" : 1,
23797 "path" : "/nodes/{node}/qemu/{vmid}/config",
23798 "text" : "config"
23799 },
23800 {
23801 "info" : {
23802 "GET" : {
23803 "allowtoken" : 1,
23804 "description" : "Get the virtual machine configuration with both current and pending values.",
23805 "method" : "GET",
23806 "name" : "vm_pending",
23807 "parameters" : {
23808 "additionalProperties" : 0,
23809 "properties" : {
23810 "node" : {
23811 "description" : "The cluster node name.",
23812 "format" : "pve-node",
23813 "type" : "string",
23814 "typetext" : "<string>"
23815 },
23816 "vmid" : {
23817 "description" : "The (unique) ID of the VM.",
23818 "format" : "pve-vmid",
23819 "maximum" : 999999999,
23820 "minimum" : 100,
23821 "type" : "integer",
23822 "typetext" : "<integer> (100 - 999999999)"
23823 }
23824 }
23825 },
23826 "permissions" : {
23827 "check" : [
23828 "perm",
23829 "/vms/{vmid}",
23830 [
23831 "VM.Audit"
23832 ]
23833 ]
23834 },
23835 "proxyto" : "node",
23836 "returns" : {
23837 "items" : {
23838 "properties" : {
23839 "delete" : {
23840 "description" : "Indicates a pending delete request if present and not 0. The value 2 indicates a force-delete request.",
23841 "maximum" : 2,
23842 "minimum" : 0,
23843 "optional" : 1,
23844 "type" : "integer"
23845 },
23846 "key" : {
23847 "description" : "Configuration option name.",
23848 "type" : "string"
23849 },
23850 "pending" : {
23851 "description" : "Pending value.",
23852 "optional" : 1,
23853 "type" : "string"
23854 },
23855 "value" : {
23856 "description" : "Current value.",
23857 "optional" : 1,
23858 "type" : "string"
23859 }
23860 },
23861 "type" : "object"
23862 },
23863 "type" : "array"
23864 }
23865 }
23866 },
23867 "leaf" : 1,
23868 "path" : "/nodes/{node}/qemu/{vmid}/pending",
23869 "text" : "pending"
23870 },
23871 {
23872 "children" : [
23873 {
23874 "info" : {
23875 "GET" : {
23876 "allowtoken" : 1,
23877 "description" : "Get automatically generated cloudinit config.",
23878 "method" : "GET",
23879 "name" : "cloudinit_generated_config_dump",
23880 "parameters" : {
23881 "additionalProperties" : 0,
23882 "properties" : {
23883 "node" : {
23884 "description" : "The cluster node name.",
23885 "format" : "pve-node",
23886 "type" : "string",
23887 "typetext" : "<string>"
23888 },
23889 "type" : {
23890 "description" : "Config type.",
23891 "enum" : [
23892 "user",
23893 "network",
23894 "meta"
23895 ],
23896 "type" : "string"
23897 },
23898 "vmid" : {
23899 "description" : "The (unique) ID of the VM.",
23900 "format" : "pve-vmid",
23901 "maximum" : 999999999,
23902 "minimum" : 100,
23903 "type" : "integer",
23904 "typetext" : "<integer> (100 - 999999999)"
23905 }
23906 }
23907 },
23908 "permissions" : {
23909 "check" : [
23910 "perm",
23911 "/vms/{vmid}",
23912 [
23913 "VM.Audit"
23914 ]
23915 ]
23916 },
23917 "proxyto" : "node",
23918 "returns" : {
23919 "type" : "string"
23920 }
23921 }
23922 },
23923 "leaf" : 1,
23924 "path" : "/nodes/{node}/qemu/{vmid}/cloudinit/dump",
23925 "text" : "dump"
23926 }
23927 ],
23928 "info" : {
23929 "GET" : {
23930 "allowtoken" : 1,
23931 "description" : "Get the cloudinit configuration with both current and pending values.",
23932 "method" : "GET",
23933 "name" : "cloudinit_pending",
23934 "parameters" : {
23935 "additionalProperties" : 0,
23936 "properties" : {
23937 "node" : {
23938 "description" : "The cluster node name.",
23939 "format" : "pve-node",
23940 "type" : "string",
23941 "typetext" : "<string>"
23942 },
23943 "vmid" : {
23944 "description" : "The (unique) ID of the VM.",
23945 "format" : "pve-vmid",
23946 "maximum" : 999999999,
23947 "minimum" : 100,
23948 "type" : "integer",
23949 "typetext" : "<integer> (100 - 999999999)"
23950 }
23951 }
23952 },
23953 "permissions" : {
23954 "check" : [
23955 "perm",
23956 "/vms/{vmid}",
23957 [
23958 "VM.Audit"
23959 ]
23960 ]
23961 },
23962 "proxyto" : "node",
23963 "returns" : {
23964 "items" : {
23965 "properties" : {
23966 "delete" : {
23967 "description" : "Indicates a pending delete request if present and not 0. ",
23968 "maximum" : 1,
23969 "minimum" : 0,
23970 "optional" : 1,
23971 "type" : "integer"
23972 },
23973 "key" : {
23974 "description" : "Configuration option name.",
23975 "type" : "string"
23976 },
23977 "pending" : {
23978 "description" : "The new pending value.",
23979 "optional" : 1,
23980 "type" : "string"
23981 },
23982 "value" : {
23983 "description" : "Value as it was used to generate the current cloudinit image.",
23984 "optional" : 1,
23985 "type" : "string"
23986 }
23987 },
23988 "type" : "object"
23989 },
23990 "type" : "array"
23991 }
23992 },
23993 "PUT" : {
23994 "allowtoken" : 1,
23995 "description" : "Regenerate and change cloudinit config drive.",
23996 "method" : "PUT",
23997 "name" : "cloudinit_update",
23998 "parameters" : {
23999 "additionalProperties" : 0,
24000 "properties" : {
24001 "node" : {
24002 "description" : "The cluster node name.",
24003 "format" : "pve-node",
24004 "type" : "string",
24005 "typetext" : "<string>"
24006 },
24007 "vmid" : {
24008 "description" : "The (unique) ID of the VM.",
24009 "format" : "pve-vmid",
24010 "maximum" : 999999999,
24011 "minimum" : 100,
24012 "type" : "integer",
24013 "typetext" : "<integer> (100 - 999999999)"
24014 }
24015 }
24016 },
24017 "permissions" : {
24018 "check" : [
24019 "perm",
24020 "/vms/{vmid}",
24021 [
24022 "VM.Config.Cloudinit"
24023 ]
24024 ]
24025 },
24026 "protected" : 1,
24027 "proxyto" : "node",
24028 "returns" : {
24029 "type" : "null"
24030 }
24031 }
24032 },
24033 "leaf" : 0,
24034 "path" : "/nodes/{node}/qemu/{vmid}/cloudinit",
24035 "text" : "cloudinit"
24036 },
24037 {
24038 "info" : {
24039 "PUT" : {
24040 "allowtoken" : 1,
24041 "description" : "Unlink/delete disk images.",
24042 "method" : "PUT",
24043 "name" : "unlink",
24044 "parameters" : {
24045 "additionalProperties" : 0,
24046 "properties" : {
24047 "force" : {
24048 "description" : "Force physical removal. Without this, we simple remove the disk from the config file and create an additional configuration entry called 'unused[n]', which contains the volume ID. Unlink of unused[n] always cause physical removal.",
24049 "optional" : 1,
24050 "type" : "boolean",
24051 "typetext" : "<boolean>"
24052 },
24053 "idlist" : {
24054 "description" : "A list of disk IDs you want to delete.",
24055 "format" : "pve-configid-list",
24056 "type" : "string",
24057 "typetext" : "<string>"
24058 },
24059 "node" : {
24060 "description" : "The cluster node name.",
24061 "format" : "pve-node",
24062 "type" : "string",
24063 "typetext" : "<string>"
24064 },
24065 "vmid" : {
24066 "description" : "The (unique) ID of the VM.",
24067 "format" : "pve-vmid",
24068 "maximum" : 999999999,
24069 "minimum" : 100,
24070 "type" : "integer",
24071 "typetext" : "<integer> (100 - 999999999)"
24072 }
24073 }
24074 },
24075 "permissions" : {
24076 "check" : [
24077 "perm",
24078 "/vms/{vmid}",
24079 [
24080 "VM.Config.Disk"
24081 ]
24082 ]
24083 },
24084 "protected" : 1,
24085 "proxyto" : "node",
24086 "returns" : {
24087 "type" : "null"
24088 }
24089 }
24090 },
24091 "leaf" : 1,
24092 "path" : "/nodes/{node}/qemu/{vmid}/unlink",
24093 "text" : "unlink"
24094 },
24095 {
24096 "info" : {
24097 "POST" : {
24098 "allowtoken" : 1,
24099 "description" : "Creates a TCP VNC proxy connections.",
24100 "method" : "POST",
24101 "name" : "vncproxy",
24102 "parameters" : {
24103 "additionalProperties" : 0,
24104 "properties" : {
24105 "generate-password" : {
24106 "default" : 0,
24107 "description" : "Generates a random password to be used as ticket instead of the API ticket.",
24108 "optional" : 1,
24109 "type" : "boolean",
24110 "typetext" : "<boolean>"
24111 },
24112 "node" : {
24113 "description" : "The cluster node name.",
24114 "format" : "pve-node",
24115 "type" : "string",
24116 "typetext" : "<string>"
24117 },
24118 "vmid" : {
24119 "description" : "The (unique) ID of the VM.",
24120 "format" : "pve-vmid",
24121 "maximum" : 999999999,
24122 "minimum" : 100,
24123 "type" : "integer",
24124 "typetext" : "<integer> (100 - 999999999)"
24125 },
24126 "websocket" : {
24127 "description" : "Prepare for websocket upgrade (only required when using serial terminal, otherwise upgrade is always possible).",
24128 "optional" : 1,
24129 "type" : "boolean",
24130 "typetext" : "<boolean>"
24131 }
24132 }
24133 },
24134 "permissions" : {
24135 "check" : [
24136 "perm",
24137 "/vms/{vmid}",
24138 [
24139 "VM.Console"
24140 ]
24141 ]
24142 },
24143 "protected" : 1,
24144 "returns" : {
24145 "additionalProperties" : 0,
24146 "properties" : {
24147 "cert" : {
24148 "type" : "string"
24149 },
24150 "password" : {
24151 "description" : "Returned if requested with 'generate-password' param. Consists of printable ASCII characters ('!' .. '~').",
24152 "optional" : 1,
24153 "type" : "string"
24154 },
24155 "port" : {
24156 "type" : "integer"
24157 },
24158 "ticket" : {
24159 "type" : "string"
24160 },
24161 "upid" : {
24162 "type" : "string"
24163 },
24164 "user" : {
24165 "type" : "string"
24166 }
24167 }
24168 }
24169 }
24170 },
24171 "leaf" : 1,
24172 "path" : "/nodes/{node}/qemu/{vmid}/vncproxy",
24173 "text" : "vncproxy"
24174 },
24175 {
24176 "info" : {
24177 "POST" : {
24178 "allowtoken" : 1,
24179 "description" : "Creates a TCP proxy connections.",
24180 "method" : "POST",
24181 "name" : "termproxy",
24182 "parameters" : {
24183 "additionalProperties" : 0,
24184 "properties" : {
24185 "node" : {
24186 "description" : "The cluster node name.",
24187 "format" : "pve-node",
24188 "type" : "string",
24189 "typetext" : "<string>"
24190 },
24191 "serial" : {
24192 "description" : "opens a serial terminal (defaults to display)",
24193 "enum" : [
24194 "serial0",
24195 "serial1",
24196 "serial2",
24197 "serial3"
24198 ],
24199 "optional" : 1,
24200 "type" : "string"
24201 },
24202 "vmid" : {
24203 "description" : "The (unique) ID of the VM.",
24204 "format" : "pve-vmid",
24205 "maximum" : 999999999,
24206 "minimum" : 100,
24207 "type" : "integer",
24208 "typetext" : "<integer> (100 - 999999999)"
24209 }
24210 }
24211 },
24212 "permissions" : {
24213 "check" : [
24214 "perm",
24215 "/vms/{vmid}",
24216 [
24217 "VM.Console"
24218 ]
24219 ]
24220 },
24221 "protected" : 1,
24222 "returns" : {
24223 "additionalProperties" : 0,
24224 "properties" : {
24225 "port" : {
24226 "type" : "integer"
24227 },
24228 "ticket" : {
24229 "type" : "string"
24230 },
24231 "upid" : {
24232 "type" : "string"
24233 },
24234 "user" : {
24235 "type" : "string"
24236 }
24237 }
24238 }
24239 }
24240 },
24241 "leaf" : 1,
24242 "path" : "/nodes/{node}/qemu/{vmid}/termproxy",
24243 "text" : "termproxy"
24244 },
24245 {
24246 "info" : {
24247 "GET" : {
24248 "allowtoken" : 1,
24249 "description" : "Opens a weksocket for VNC traffic.",
24250 "method" : "GET",
24251 "name" : "vncwebsocket",
24252 "parameters" : {
24253 "additionalProperties" : 0,
24254 "properties" : {
24255 "node" : {
24256 "description" : "The cluster node name.",
24257 "format" : "pve-node",
24258 "type" : "string",
24259 "typetext" : "<string>"
24260 },
24261 "port" : {
24262 "description" : "Port number returned by previous vncproxy call.",
24263 "maximum" : 5999,
24264 "minimum" : 5900,
24265 "type" : "integer",
24266 "typetext" : "<integer> (5900 - 5999)"
24267 },
24268 "vmid" : {
24269 "description" : "The (unique) ID of the VM.",
24270 "format" : "pve-vmid",
24271 "maximum" : 999999999,
24272 "minimum" : 100,
24273 "type" : "integer",
24274 "typetext" : "<integer> (100 - 999999999)"
24275 },
24276 "vncticket" : {
24277 "description" : "Ticket from previous call to vncproxy.",
24278 "maxLength" : 512,
24279 "type" : "string",
24280 "typetext" : "<string>"
24281 }
24282 }
24283 },
24284 "permissions" : {
24285 "check" : [
24286 "perm",
24287 "/vms/{vmid}",
24288 [
24289 "VM.Console"
24290 ]
24291 ],
24292 "description" : "You also need to pass a valid ticket (vncticket)."
24293 },
24294 "returns" : {
24295 "properties" : {
24296 "port" : {
24297 "type" : "string"
24298 }
24299 },
24300 "type" : "object"
24301 }
24302 }
24303 },
24304 "leaf" : 1,
24305 "path" : "/nodes/{node}/qemu/{vmid}/vncwebsocket",
24306 "text" : "vncwebsocket"
24307 },
24308 {
24309 "info" : {
24310 "POST" : {
24311 "allowtoken" : 1,
24312 "description" : "Returns a SPICE configuration to connect to the VM.",
24313 "method" : "POST",
24314 "name" : "spiceproxy",
24315 "parameters" : {
24316 "additionalProperties" : 0,
24317 "properties" : {
24318 "node" : {
24319 "description" : "The cluster node name.",
24320 "format" : "pve-node",
24321 "type" : "string",
24322 "typetext" : "<string>"
24323 },
24324 "proxy" : {
24325 "description" : "SPICE proxy server. This can be used by the client to specify the proxy server. All nodes in a cluster runs 'spiceproxy', so it is up to the client to choose one. By default, we return the node where the VM is currently running. As reasonable setting is to use same node you use to connect to the API (This is window.location.hostname for the JS GUI).",
24326 "format" : "address",
24327 "optional" : 1,
24328 "type" : "string",
24329 "typetext" : "<string>"
24330 },
24331 "vmid" : {
24332 "description" : "The (unique) ID of the VM.",
24333 "format" : "pve-vmid",
24334 "maximum" : 999999999,
24335 "minimum" : 100,
24336 "type" : "integer",
24337 "typetext" : "<integer> (100 - 999999999)"
24338 }
24339 }
24340 },
24341 "permissions" : {
24342 "check" : [
24343 "perm",
24344 "/vms/{vmid}",
24345 [
24346 "VM.Console"
24347 ]
24348 ]
24349 },
24350 "protected" : 1,
24351 "proxyto" : "node",
24352 "returns" : {
24353 "additionalProperties" : 1,
24354 "description" : "Returned values can be directly passed to the 'remote-viewer' application.",
24355 "properties" : {
24356 "host" : {
24357 "type" : "string"
24358 },
24359 "password" : {
24360 "type" : "string"
24361 },
24362 "proxy" : {
24363 "type" : "string"
24364 },
24365 "tls-port" : {
24366 "type" : "integer"
24367 },
24368 "type" : {
24369 "type" : "string"
24370 }
24371 }
24372 }
24373 }
24374 },
24375 "leaf" : 1,
24376 "path" : "/nodes/{node}/qemu/{vmid}/spiceproxy",
24377 "text" : "spiceproxy"
24378 },
24379 {
24380 "children" : [
24381 {
24382 "info" : {
24383 "GET" : {
24384 "allowtoken" : 1,
24385 "description" : "Get virtual machine status.",
24386 "method" : "GET",
24387 "name" : "vm_status",
24388 "parameters" : {
24389 "additionalProperties" : 0,
24390 "properties" : {
24391 "node" : {
24392 "description" : "The cluster node name.",
24393 "format" : "pve-node",
24394 "type" : "string",
24395 "typetext" : "<string>"
24396 },
24397 "vmid" : {
24398 "description" : "The (unique) ID of the VM.",
24399 "format" : "pve-vmid",
24400 "maximum" : 999999999,
24401 "minimum" : 100,
24402 "type" : "integer",
24403 "typetext" : "<integer> (100 - 999999999)"
24404 }
24405 }
24406 },
24407 "permissions" : {
24408 "check" : [
24409 "perm",
24410 "/vms/{vmid}",
24411 [
24412 "VM.Audit"
24413 ]
24414 ]
24415 },
24416 "protected" : 1,
24417 "proxyto" : "node",
24418 "returns" : {
24419 "properties" : {
24420 "agent" : {
24421 "description" : "QEMU Guest Agent is enabled in config.",
24422 "optional" : 1,
24423 "type" : "boolean"
24424 },
24425 "clipboard" : {
24426 "description" : "Enable a specific clipboard. If not set, depending on the display type the SPICE one will be added.",
24427 "enum" : [
24428 "vnc"
24429 ],
24430 "optional" : 1,
24431 "type" : "string"
24432 },
24433 "cpus" : {
24434 "description" : "Maximum usable CPUs.",
24435 "optional" : 1,
24436 "type" : "number"
24437 },
24438 "ha" : {
24439 "description" : "HA manager service status.",
24440 "type" : "object"
24441 },
24442 "lock" : {
24443 "description" : "The current config lock, if any.",
24444 "optional" : 1,
24445 "type" : "string"
24446 },
24447 "maxdisk" : {
24448 "description" : "Root disk size in bytes.",
24449 "optional" : 1,
24450 "renderer" : "bytes",
24451 "type" : "integer"
24452 },
24453 "maxmem" : {
24454 "description" : "Maximum memory in bytes.",
24455 "optional" : 1,
24456 "renderer" : "bytes",
24457 "type" : "integer"
24458 },
24459 "name" : {
24460 "description" : "VM name.",
24461 "optional" : 1,
24462 "type" : "string"
24463 },
24464 "pid" : {
24465 "description" : "PID of running qemu process.",
24466 "optional" : 1,
24467 "type" : "integer"
24468 },
24469 "qmpstatus" : {
24470 "description" : "VM run state from the 'query-status' QMP monitor command.",
24471 "optional" : 1,
24472 "type" : "string"
24473 },
24474 "running-machine" : {
24475 "description" : "The currently running machine type (if running).",
24476 "optional" : 1,
24477 "type" : "string"
24478 },
24479 "running-qemu" : {
24480 "description" : "The currently running QEMU version (if running).",
24481 "optional" : 1,
24482 "type" : "string"
24483 },
24484 "spice" : {
24485 "description" : "QEMU VGA configuration supports spice.",
24486 "optional" : 1,
24487 "type" : "boolean"
24488 },
24489 "status" : {
24490 "description" : "QEMU process status.",
24491 "enum" : [
24492 "stopped",
24493 "running"
24494 ],
24495 "type" : "string"
24496 },
24497 "tags" : {
24498 "description" : "The current configured tags, if any",
24499 "optional" : 1,
24500 "type" : "string"
24501 },
24502 "uptime" : {
24503 "description" : "Uptime.",
24504 "optional" : 1,
24505 "renderer" : "duration",
24506 "type" : "integer"
24507 },
24508 "vmid" : {
24509 "description" : "The (unique) ID of the VM.",
24510 "format" : "pve-vmid",
24511 "maximum" : 999999999,
24512 "minimum" : 100,
24513 "type" : "integer"
24514 }
24515 },
24516 "type" : "object"
24517 }
24518 }
24519 },
24520 "leaf" : 1,
24521 "path" : "/nodes/{node}/qemu/{vmid}/status/current",
24522 "text" : "current"
24523 },
24524 {
24525 "info" : {
24526 "POST" : {
24527 "allowtoken" : 1,
24528 "description" : "Start virtual machine.",
24529 "method" : "POST",
24530 "name" : "vm_start",
24531 "parameters" : {
24532 "additionalProperties" : 0,
24533 "properties" : {
24534 "force-cpu" : {
24535 "description" : "Override QEMU's -cpu argument with the given string.",
24536 "optional" : 1,
24537 "type" : "string",
24538 "typetext" : "<string>"
24539 },
24540 "machine" : {
24541 "description" : "Specify the QEMU machine.",
24542 "format" : {
24543 "type" : {
24544 "default_key" : 1,
24545 "description" : "Specifies the QEMU machine type.",
24546 "format_description" : "machine type",
24547 "maxLength" : 40,
24548 "optional" : 1,
24549 "pattern" : "(pc|pc(-i440fx)?-\\d+(\\.\\d+)+(\\+pve\\d+)?(\\.pxe)?|q35|pc-q35-\\d+(\\.\\d+)+(\\+pve\\d+)?(\\.pxe)?|virt(?:-\\d+(\\.\\d+)+)?(\\+pve\\d+)?)",
24550 "type" : "string"
24551 },
24552 "viommu" : {
24553 "description" : "Enable and set guest vIOMMU variant (Intel vIOMMU needs q35 to be set as machine type).",
24554 "enum" : [
24555 "intel",
24556 "virtio"
24557 ],
24558 "optional" : 1,
24559 "type" : "string"
24560 }
24561 },
24562 "optional" : 1,
24563 "type" : "string",
24564 "typetext" : "[[type=]<machine type>] [,viommu=<intel|virtio>]"
24565 },
24566 "migratedfrom" : {
24567 "description" : "The cluster node name.",
24568 "format" : "pve-node",
24569 "optional" : 1,
24570 "type" : "string",
24571 "typetext" : "<string>"
24572 },
24573 "migration_network" : {
24574 "description" : "CIDR of the (sub) network that is used for migration.",
24575 "format" : "CIDR",
24576 "optional" : 1,
24577 "type" : "string",
24578 "typetext" : "<string>"
24579 },
24580 "migration_type" : {
24581 "description" : "Migration traffic is encrypted using an SSH tunnel by default. On secure, completely private networks this can be disabled to increase performance.",
24582 "enum" : [
24583 "secure",
24584 "insecure"
24585 ],
24586 "optional" : 1,
24587 "type" : "string"
24588 },
24589 "node" : {
24590 "description" : "The cluster node name.",
24591 "format" : "pve-node",
24592 "type" : "string",
24593 "typetext" : "<string>"
24594 },
24595 "skiplock" : {
24596 "description" : "Ignore locks - only root is allowed to use this option.",
24597 "optional" : 1,
24598 "type" : "boolean",
24599 "typetext" : "<boolean>"
24600 },
24601 "stateuri" : {
24602 "description" : "Some command save/restore state from this location.",
24603 "maxLength" : 128,
24604 "optional" : 1,
24605 "type" : "string",
24606 "typetext" : "<string>"
24607 },
24608 "targetstorage" : {
24609 "description" : "Mapping from source to target storages. Providing only a single storage ID maps all source storages to that storage. Providing the special value '1' will map each source storage to itself.",
24610 "format" : "storage-pair-list",
24611 "optional" : 1,
24612 "type" : "string",
24613 "typetext" : "<string>"
24614 },
24615 "timeout" : {
24616 "default" : "max(30, vm memory in GiB)",
24617 "description" : "Wait maximal timeout seconds.",
24618 "minimum" : 0,
24619 "optional" : 1,
24620 "type" : "integer",
24621 "typetext" : "<integer> (0 - N)"
24622 },
24623 "vmid" : {
24624 "description" : "The (unique) ID of the VM.",
24625 "format" : "pve-vmid",
24626 "maximum" : 999999999,
24627 "minimum" : 100,
24628 "type" : "integer",
24629 "typetext" : "<integer> (100 - 999999999)"
24630 }
24631 }
24632 },
24633 "permissions" : {
24634 "check" : [
24635 "perm",
24636 "/vms/{vmid}",
24637 [
24638 "VM.PowerMgmt"
24639 ]
24640 ]
24641 },
24642 "protected" : 1,
24643 "proxyto" : "node",
24644 "returns" : {
24645 "type" : "string"
24646 }
24647 }
24648 },
24649 "leaf" : 1,
24650 "path" : "/nodes/{node}/qemu/{vmid}/status/start",
24651 "text" : "start"
24652 },
24653 {
24654 "info" : {
24655 "POST" : {
24656 "allowtoken" : 1,
24657 "description" : "Stop virtual machine. The qemu process will exit immediately. This is akin to pulling the power plug of a running computer and may damage the VM data.",
24658 "method" : "POST",
24659 "name" : "vm_stop",
24660 "parameters" : {
24661 "additionalProperties" : 0,
24662 "properties" : {
24663 "keepActive" : {
24664 "default" : 0,
24665 "description" : "Do not deactivate storage volumes.",
24666 "optional" : 1,
24667 "type" : "boolean",
24668 "typetext" : "<boolean>"
24669 },
24670 "migratedfrom" : {
24671 "description" : "The cluster node name.",
24672 "format" : "pve-node",
24673 "optional" : 1,
24674 "type" : "string",
24675 "typetext" : "<string>"
24676 },
24677 "node" : {
24678 "description" : "The cluster node name.",
24679 "format" : "pve-node",
24680 "type" : "string",
24681 "typetext" : "<string>"
24682 },
24683 "overrule-shutdown" : {
24684 "default" : 0,
24685 "description" : "Try to abort active 'qmshutdown' tasks before stopping.",
24686 "optional" : 1,
24687 "type" : "boolean",
24688 "typetext" : "<boolean>"
24689 },
24690 "skiplock" : {
24691 "description" : "Ignore locks - only root is allowed to use this option.",
24692 "optional" : 1,
24693 "type" : "boolean",
24694 "typetext" : "<boolean>"
24695 },
24696 "timeout" : {
24697 "description" : "Wait maximal timeout seconds.",
24698 "minimum" : 0,
24699 "optional" : 1,
24700 "type" : "integer",
24701 "typetext" : "<integer> (0 - N)"
24702 },
24703 "vmid" : {
24704 "description" : "The (unique) ID of the VM.",
24705 "format" : "pve-vmid",
24706 "maximum" : 999999999,
24707 "minimum" : 100,
24708 "type" : "integer",
24709 "typetext" : "<integer> (100 - 999999999)"
24710 }
24711 }
24712 },
24713 "permissions" : {
24714 "check" : [
24715 "perm",
24716 "/vms/{vmid}",
24717 [
24718 "VM.PowerMgmt"
24719 ]
24720 ]
24721 },
24722 "protected" : 1,
24723 "proxyto" : "node",
24724 "returns" : {
24725 "type" : "string"
24726 }
24727 }
24728 },
24729 "leaf" : 1,
24730 "path" : "/nodes/{node}/qemu/{vmid}/status/stop",
24731 "text" : "stop"
24732 },
24733 {
24734 "info" : {
24735 "POST" : {
24736 "allowtoken" : 1,
24737 "description" : "Reset virtual machine.",
24738 "method" : "POST",
24739 "name" : "vm_reset",
24740 "parameters" : {
24741 "additionalProperties" : 0,
24742 "properties" : {
24743 "node" : {
24744 "description" : "The cluster node name.",
24745 "format" : "pve-node",
24746 "type" : "string",
24747 "typetext" : "<string>"
24748 },
24749 "skiplock" : {
24750 "description" : "Ignore locks - only root is allowed to use this option.",
24751 "optional" : 1,
24752 "type" : "boolean",
24753 "typetext" : "<boolean>"
24754 },
24755 "vmid" : {
24756 "description" : "The (unique) ID of the VM.",
24757 "format" : "pve-vmid",
24758 "maximum" : 999999999,
24759 "minimum" : 100,
24760 "type" : "integer",
24761 "typetext" : "<integer> (100 - 999999999)"
24762 }
24763 }
24764 },
24765 "permissions" : {
24766 "check" : [
24767 "perm",
24768 "/vms/{vmid}",
24769 [
24770 "VM.PowerMgmt"
24771 ]
24772 ]
24773 },
24774 "protected" : 1,
24775 "proxyto" : "node",
24776 "returns" : {
24777 "type" : "string"
24778 }
24779 }
24780 },
24781 "leaf" : 1,
24782 "path" : "/nodes/{node}/qemu/{vmid}/status/reset",
24783 "text" : "reset"
24784 },
24785 {
24786 "info" : {
24787 "POST" : {
24788 "allowtoken" : 1,
24789 "description" : "Shutdown virtual machine. This is similar to pressing the power button on a physical machine. This will send an ACPI event for the guest OS, which should then proceed to a clean shutdown.",
24790 "method" : "POST",
24791 "name" : "vm_shutdown",
24792 "parameters" : {
24793 "additionalProperties" : 0,
24794 "properties" : {
24795 "forceStop" : {
24796 "default" : 0,
24797 "description" : "Make sure the VM stops.",
24798 "optional" : 1,
24799 "type" : "boolean",
24800 "typetext" : "<boolean>"
24801 },
24802 "keepActive" : {
24803 "default" : 0,
24804 "description" : "Do not deactivate storage volumes.",
24805 "optional" : 1,
24806 "type" : "boolean",
24807 "typetext" : "<boolean>"
24808 },
24809 "node" : {
24810 "description" : "The cluster node name.",
24811 "format" : "pve-node",
24812 "type" : "string",
24813 "typetext" : "<string>"
24814 },
24815 "skiplock" : {
24816 "description" : "Ignore locks - only root is allowed to use this option.",
24817 "optional" : 1,
24818 "type" : "boolean",
24819 "typetext" : "<boolean>"
24820 },
24821 "timeout" : {
24822 "description" : "Wait maximal timeout seconds.",
24823 "minimum" : 0,
24824 "optional" : 1,
24825 "type" : "integer",
24826 "typetext" : "<integer> (0 - N)"
24827 },
24828 "vmid" : {
24829 "description" : "The (unique) ID of the VM.",
24830 "format" : "pve-vmid",
24831 "maximum" : 999999999,
24832 "minimum" : 100,
24833 "type" : "integer",
24834 "typetext" : "<integer> (100 - 999999999)"
24835 }
24836 }
24837 },
24838 "permissions" : {
24839 "check" : [
24840 "perm",
24841 "/vms/{vmid}",
24842 [
24843 "VM.PowerMgmt"
24844 ]
24845 ]
24846 },
24847 "protected" : 1,
24848 "proxyto" : "node",
24849 "returns" : {
24850 "type" : "string"
24851 }
24852 }
24853 },
24854 "leaf" : 1,
24855 "path" : "/nodes/{node}/qemu/{vmid}/status/shutdown",
24856 "text" : "shutdown"
24857 },
24858 {
24859 "info" : {
24860 "POST" : {
24861 "allowtoken" : 1,
24862 "description" : "Reboot the VM by shutting it down, and starting it again. Applies pending changes.",
24863 "method" : "POST",
24864 "name" : "vm_reboot",
24865 "parameters" : {
24866 "additionalProperties" : 0,
24867 "properties" : {
24868 "node" : {
24869 "description" : "The cluster node name.",
24870 "format" : "pve-node",
24871 "type" : "string",
24872 "typetext" : "<string>"
24873 },
24874 "timeout" : {
24875 "description" : "Wait maximal timeout seconds for the shutdown.",
24876 "minimum" : 0,
24877 "optional" : 1,
24878 "type" : "integer",
24879 "typetext" : "<integer> (0 - N)"
24880 },
24881 "vmid" : {
24882 "description" : "The (unique) ID of the VM.",
24883 "format" : "pve-vmid",
24884 "maximum" : 999999999,
24885 "minimum" : 100,
24886 "type" : "integer",
24887 "typetext" : "<integer> (100 - 999999999)"
24888 }
24889 }
24890 },
24891 "permissions" : {
24892 "check" : [
24893 "perm",
24894 "/vms/{vmid}",
24895 [
24896 "VM.PowerMgmt"
24897 ]
24898 ]
24899 },
24900 "protected" : 1,
24901 "proxyto" : "node",
24902 "returns" : {
24903 "type" : "string"
24904 }
24905 }
24906 },
24907 "leaf" : 1,
24908 "path" : "/nodes/{node}/qemu/{vmid}/status/reboot",
24909 "text" : "reboot"
24910 },
24911 {
24912 "info" : {
24913 "POST" : {
24914 "allowtoken" : 1,
24915 "description" : "Suspend virtual machine.",
24916 "method" : "POST",
24917 "name" : "vm_suspend",
24918 "parameters" : {
24919 "additionalProperties" : 0,
24920 "properties" : {
24921 "node" : {
24922 "description" : "The cluster node name.",
24923 "format" : "pve-node",
24924 "type" : "string",
24925 "typetext" : "<string>"
24926 },
24927 "skiplock" : {
24928 "description" : "Ignore locks - only root is allowed to use this option.",
24929 "optional" : 1,
24930 "type" : "boolean",
24931 "typetext" : "<boolean>"
24932 },
24933 "statestorage" : {
24934 "description" : "The storage for the VM state",
24935 "format" : "pve-storage-id",
24936 "format_description" : "storage ID",
24937 "optional" : 1,
24938 "requires" : "todisk",
24939 "type" : "string",
24940 "typetext" : "<storage ID>"
24941 },
24942 "todisk" : {
24943 "default" : 0,
24944 "description" : "If set, suspends the VM to disk. Will be resumed on next VM start.",
24945 "optional" : 1,
24946 "type" : "boolean",
24947 "typetext" : "<boolean>"
24948 },
24949 "vmid" : {
24950 "description" : "The (unique) ID of the VM.",
24951 "format" : "pve-vmid",
24952 "maximum" : 999999999,
24953 "minimum" : 100,
24954 "type" : "integer",
24955 "typetext" : "<integer> (100 - 999999999)"
24956 }
24957 }
24958 },
24959 "permissions" : {
24960 "check" : [
24961 "perm",
24962 "/vms/{vmid}",
24963 [
24964 "VM.PowerMgmt"
24965 ]
24966 ],
24967 "description" : "You need 'VM.PowerMgmt' on /vms/{vmid}, and if you have set 'todisk', you need also 'VM.Config.Disk' on /vms/{vmid} and 'Datastore.AllocateSpace' on the storage for the vmstate."
24968 },
24969 "protected" : 1,
24970 "proxyto" : "node",
24971 "returns" : {
24972 "type" : "string"
24973 }
24974 }
24975 },
24976 "leaf" : 1,
24977 "path" : "/nodes/{node}/qemu/{vmid}/status/suspend",
24978 "text" : "suspend"
24979 },
24980 {
24981 "info" : {
24982 "POST" : {
24983 "allowtoken" : 1,
24984 "description" : "Resume virtual machine.",
24985 "method" : "POST",
24986 "name" : "vm_resume",
24987 "parameters" : {
24988 "additionalProperties" : 0,
24989 "properties" : {
24990 "nocheck" : {
24991 "optional" : 1,
24992 "type" : "boolean",
24993 "typetext" : "<boolean>"
24994 },
24995 "node" : {
24996 "description" : "The cluster node name.",
24997 "format" : "pve-node",
24998 "type" : "string",
24999 "typetext" : "<string>"
25000 },
25001 "skiplock" : {
25002 "description" : "Ignore locks - only root is allowed to use this option.",
25003 "optional" : 1,
25004 "type" : "boolean",
25005 "typetext" : "<boolean>"
25006 },
25007 "vmid" : {
25008 "description" : "The (unique) ID of the VM.",
25009 "format" : "pve-vmid",
25010 "maximum" : 999999999,
25011 "minimum" : 100,
25012 "type" : "integer",
25013 "typetext" : "<integer> (100 - 999999999)"
25014 }
25015 }
25016 },
25017 "permissions" : {
25018 "check" : [
25019 "perm",
25020 "/vms/{vmid}",
25021 [
25022 "VM.PowerMgmt"
25023 ]
25024 ]
25025 },
25026 "protected" : 1,
25027 "proxyto" : "node",
25028 "returns" : {
25029 "type" : "string"
25030 }
25031 }
25032 },
25033 "leaf" : 1,
25034 "path" : "/nodes/{node}/qemu/{vmid}/status/resume",
25035 "text" : "resume"
25036 }
25037 ],
25038 "info" : {
25039 "GET" : {
25040 "allowtoken" : 1,
25041 "description" : "Directory index",
25042 "method" : "GET",
25043 "name" : "vmcmdidx",
25044 "parameters" : {
25045 "additionalProperties" : 0,
25046 "properties" : {
25047 "node" : {
25048 "description" : "The cluster node name.",
25049 "format" : "pve-node",
25050 "type" : "string",
25051 "typetext" : "<string>"
25052 },
25053 "vmid" : {
25054 "description" : "The (unique) ID of the VM.",
25055 "format" : "pve-vmid",
25056 "maximum" : 999999999,
25057 "minimum" : 100,
25058 "type" : "integer",
25059 "typetext" : "<integer> (100 - 999999999)"
25060 }
25061 }
25062 },
25063 "permissions" : {
25064 "user" : "all"
25065 },
25066 "proxyto" : "node",
25067 "returns" : {
25068 "items" : {
25069 "properties" : {
25070 "subdir" : {
25071 "type" : "string"
25072 }
25073 },
25074 "type" : "object"
25075 },
25076 "links" : [
25077 {
25078 "href" : "{subdir}",
25079 "rel" : "child"
25080 }
25081 ],
25082 "type" : "array"
25083 }
25084 }
25085 },
25086 "leaf" : 0,
25087 "path" : "/nodes/{node}/qemu/{vmid}/status",
25088 "text" : "status"
25089 },
25090 {
25091 "info" : {
25092 "PUT" : {
25093 "allowtoken" : 1,
25094 "description" : "Send key event to virtual machine.",
25095 "method" : "PUT",
25096 "name" : "vm_sendkey",
25097 "parameters" : {
25098 "additionalProperties" : 0,
25099 "properties" : {
25100 "key" : {
25101 "description" : "The key (qemu monitor encoding).",
25102 "type" : "string",
25103 "typetext" : "<string>"
25104 },
25105 "node" : {
25106 "description" : "The cluster node name.",
25107 "format" : "pve-node",
25108 "type" : "string",
25109 "typetext" : "<string>"
25110 },
25111 "skiplock" : {
25112 "description" : "Ignore locks - only root is allowed to use this option.",
25113 "optional" : 1,
25114 "type" : "boolean",
25115 "typetext" : "<boolean>"
25116 },
25117 "vmid" : {
25118 "description" : "The (unique) ID of the VM.",
25119 "format" : "pve-vmid",
25120 "maximum" : 999999999,
25121 "minimum" : 100,
25122 "type" : "integer",
25123 "typetext" : "<integer> (100 - 999999999)"
25124 }
25125 }
25126 },
25127 "permissions" : {
25128 "check" : [
25129 "perm",
25130 "/vms/{vmid}",
25131 [
25132 "VM.Console"
25133 ]
25134 ]
25135 },
25136 "protected" : 1,
25137 "proxyto" : "node",
25138 "returns" : {
25139 "type" : "null"
25140 }
25141 }
25142 },
25143 "leaf" : 1,
25144 "path" : "/nodes/{node}/qemu/{vmid}/sendkey",
25145 "text" : "sendkey"
25146 },
25147 {
25148 "info" : {
25149 "GET" : {
25150 "allowtoken" : 1,
25151 "description" : "Check if feature for virtual machine is available.",
25152 "method" : "GET",
25153 "name" : "vm_feature",
25154 "parameters" : {
25155 "additionalProperties" : 0,
25156 "properties" : {
25157 "feature" : {
25158 "description" : "Feature to check.",
25159 "enum" : [
25160 "snapshot",
25161 "clone",
25162 "copy"
25163 ],
25164 "type" : "string"
25165 },
25166 "node" : {
25167 "description" : "The cluster node name.",
25168 "format" : "pve-node",
25169 "type" : "string",
25170 "typetext" : "<string>"
25171 },
25172 "snapname" : {
25173 "description" : "The name of the snapshot.",
25174 "format" : "pve-configid",
25175 "maxLength" : 40,
25176 "optional" : 1,
25177 "type" : "string",
25178 "typetext" : "<string>"
25179 },
25180 "vmid" : {
25181 "description" : "The (unique) ID of the VM.",
25182 "format" : "pve-vmid",
25183 "maximum" : 999999999,
25184 "minimum" : 100,
25185 "type" : "integer",
25186 "typetext" : "<integer> (100 - 999999999)"
25187 }
25188 }
25189 },
25190 "permissions" : {
25191 "check" : [
25192 "perm",
25193 "/vms/{vmid}",
25194 [
25195 "VM.Audit"
25196 ]
25197 ]
25198 },
25199 "protected" : 1,
25200 "proxyto" : "node",
25201 "returns" : {
25202 "properties" : {
25203 "hasFeature" : {
25204 "type" : "boolean"
25205 },
25206 "nodes" : {
25207 "items" : {
25208 "type" : "string"
25209 },
25210 "type" : "array"
25211 }
25212 },
25213 "type" : "object"
25214 }
25215 }
25216 },
25217 "leaf" : 1,
25218 "path" : "/nodes/{node}/qemu/{vmid}/feature",
25219 "text" : "feature"
25220 },
25221 {
25222 "info" : {
25223 "POST" : {
25224 "allowtoken" : 1,
25225 "description" : "Create a copy of virtual machine/template.",
25226 "method" : "POST",
25227 "name" : "clone_vm",
25228 "parameters" : {
25229 "additionalProperties" : 0,
25230 "properties" : {
25231 "bwlimit" : {
25232 "default" : "clone limit from datacenter or storage config",
25233 "description" : "Override I/O bandwidth limit (in KiB/s).",
25234 "minimum" : "0",
25235 "optional" : 1,
25236 "type" : "integer",
25237 "typetext" : "<integer> (0 - N)"
25238 },
25239 "description" : {
25240 "description" : "Description for the new VM.",
25241 "optional" : 1,
25242 "type" : "string",
25243 "typetext" : "<string>"
25244 },
25245 "format" : {
25246 "description" : "Target format for file storage. Only valid for full clone.",
25247 "enum" : [
25248 "raw",
25249 "qcow2",
25250 "vmdk"
25251 ],
25252 "optional" : 1,
25253 "type" : "string"
25254 },
25255 "full" : {
25256 "description" : "Create a full copy of all disks. This is always done when you clone a normal VM. For VM templates, we try to create a linked clone by default.",
25257 "optional" : 1,
25258 "type" : "boolean",
25259 "typetext" : "<boolean>"
25260 },
25261 "name" : {
25262 "description" : "Set a name for the new VM.",
25263 "format" : "dns-name",
25264 "optional" : 1,
25265 "type" : "string",
25266 "typetext" : "<string>"
25267 },
25268 "newid" : {
25269 "description" : "VMID for the clone.",
25270 "format" : "pve-vmid",
25271 "maximum" : 999999999,
25272 "minimum" : 100,
25273 "type" : "integer",
25274 "typetext" : "<integer> (100 - 999999999)"
25275 },
25276 "node" : {
25277 "description" : "The cluster node name.",
25278 "format" : "pve-node",
25279 "type" : "string",
25280 "typetext" : "<string>"
25281 },
25282 "pool" : {
25283 "description" : "Add the new VM to the specified pool.",
25284 "format" : "pve-poolid",
25285 "optional" : 1,
25286 "type" : "string",
25287 "typetext" : "<string>"
25288 },
25289 "snapname" : {
25290 "description" : "The name of the snapshot.",
25291 "format" : "pve-configid",
25292 "maxLength" : 40,
25293 "optional" : 1,
25294 "type" : "string",
25295 "typetext" : "<string>"
25296 },
25297 "storage" : {
25298 "description" : "Target storage for full clone.",
25299 "format" : "pve-storage-id",
25300 "format_description" : "storage ID",
25301 "optional" : 1,
25302 "type" : "string",
25303 "typetext" : "<storage ID>"
25304 },
25305 "target" : {
25306 "description" : "Target node. Only allowed if the original VM is on shared storage.",
25307 "format" : "pve-node",
25308 "optional" : 1,
25309 "type" : "string",
25310 "typetext" : "<string>"
25311 },
25312 "vmid" : {
25313 "description" : "The (unique) ID of the VM.",
25314 "format" : "pve-vmid",
25315 "maximum" : 999999999,
25316 "minimum" : 100,
25317 "type" : "integer",
25318 "typetext" : "<integer> (100 - 999999999)"
25319 }
25320 }
25321 },
25322 "permissions" : {
25323 "check" : [
25324 "and",
25325 [
25326 "perm",
25327 "/vms/{vmid}",
25328 [
25329 "VM.Clone"
25330 ]
25331 ],
25332 [
25333 "or",
25334 [
25335 "perm",
25336 "/vms/{newid}",
25337 [
25338 "VM.Allocate"
25339 ]
25340 ],
25341 [
25342 "perm",
25343 "/pool/{pool}",
25344 [
25345 "VM.Allocate"
25346 ],
25347 "require_param",
25348 "pool"
25349 ]
25350 ]
25351 ],
25352 "description" : "You need 'VM.Clone' permissions on /vms/{vmid}, and 'VM.Allocate' permissions on /vms/{newid} (or on the VM pool /pool/{pool}). You also need 'Datastore.AllocateSpace' on any used storage and 'SDN.Use' on any used bridge/vnet"
25353 },
25354 "protected" : 1,
25355 "proxyto" : "node",
25356 "returns" : {
25357 "type" : "string"
25358 }
25359 }
25360 },
25361 "leaf" : 1,
25362 "path" : "/nodes/{node}/qemu/{vmid}/clone",
25363 "text" : "clone"
25364 },
25365 {
25366 "info" : {
25367 "POST" : {
25368 "allowtoken" : 1,
25369 "description" : "Move volume to different storage or to a different VM.",
25370 "method" : "POST",
25371 "name" : "move_vm_disk",
25372 "parameters" : {
25373 "additionalProperties" : 0,
25374 "properties" : {
25375 "bwlimit" : {
25376 "default" : "move limit from datacenter or storage config",
25377 "description" : "Override I/O bandwidth limit (in KiB/s).",
25378 "minimum" : "0",
25379 "optional" : 1,
25380 "type" : "integer",
25381 "typetext" : "<integer> (0 - N)"
25382 },
25383 "delete" : {
25384 "default" : 0,
25385 "description" : "Delete the original disk after successful copy. By default the original disk is kept as unused disk.",
25386 "optional" : 1,
25387 "type" : "boolean",
25388 "typetext" : "<boolean>"
25389 },
25390 "digest" : {
25391 "description" : "Prevent changes if current configuration file has different SHA1\"\n\t\t .\" digest. This can be used to prevent concurrent modifications.",
25392 "maxLength" : 40,
25393 "optional" : 1,
25394 "type" : "string",
25395 "typetext" : "<string>"
25396 },
25397 "disk" : {
25398 "description" : "The disk you want to move.",
25399 "enum" : [
25400 "ide0",
25401 "ide1",
25402 "ide2",
25403 "ide3",
25404 "scsi0",
25405 "scsi1",
25406 "scsi2",
25407 "scsi3",
25408 "scsi4",
25409 "scsi5",
25410 "scsi6",
25411 "scsi7",
25412 "scsi8",
25413 "scsi9",
25414 "scsi10",
25415 "scsi11",
25416 "scsi12",
25417 "scsi13",
25418 "scsi14",
25419 "scsi15",
25420 "scsi16",
25421 "scsi17",
25422 "scsi18",
25423 "scsi19",
25424 "scsi20",
25425 "scsi21",
25426 "scsi22",
25427 "scsi23",
25428 "scsi24",
25429 "scsi25",
25430 "scsi26",
25431 "scsi27",
25432 "scsi28",
25433 "scsi29",
25434 "scsi30",
25435 "virtio0",
25436 "virtio1",
25437 "virtio2",
25438 "virtio3",
25439 "virtio4",
25440 "virtio5",
25441 "virtio6",
25442 "virtio7",
25443 "virtio8",
25444 "virtio9",
25445 "virtio10",
25446 "virtio11",
25447 "virtio12",
25448 "virtio13",
25449 "virtio14",
25450 "virtio15",
25451 "sata0",
25452 "sata1",
25453 "sata2",
25454 "sata3",
25455 "sata4",
25456 "sata5",
25457 "efidisk0",
25458 "tpmstate0",
25459 "unused0",
25460 "unused1",
25461 "unused2",
25462 "unused3",
25463 "unused4",
25464 "unused5",
25465 "unused6",
25466 "unused7",
25467 "unused8",
25468 "unused9",
25469 "unused10",
25470 "unused11",
25471 "unused12",
25472 "unused13",
25473 "unused14",
25474 "unused15",
25475 "unused16",
25476 "unused17",
25477 "unused18",
25478 "unused19",
25479 "unused20",
25480 "unused21",
25481 "unused22",
25482 "unused23",
25483 "unused24",
25484 "unused25",
25485 "unused26",
25486 "unused27",
25487 "unused28",
25488 "unused29",
25489 "unused30",
25490 "unused31",
25491 "unused32",
25492 "unused33",
25493 "unused34",
25494 "unused35",
25495 "unused36",
25496 "unused37",
25497 "unused38",
25498 "unused39",
25499 "unused40",
25500 "unused41",
25501 "unused42",
25502 "unused43",
25503 "unused44",
25504 "unused45",
25505 "unused46",
25506 "unused47",
25507 "unused48",
25508 "unused49",
25509 "unused50",
25510 "unused51",
25511 "unused52",
25512 "unused53",
25513 "unused54",
25514 "unused55",
25515 "unused56",
25516 "unused57",
25517 "unused58",
25518 "unused59",
25519 "unused60",
25520 "unused61",
25521 "unused62",
25522 "unused63",
25523 "unused64",
25524 "unused65",
25525 "unused66",
25526 "unused67",
25527 "unused68",
25528 "unused69",
25529 "unused70",
25530 "unused71",
25531 "unused72",
25532 "unused73",
25533 "unused74",
25534 "unused75",
25535 "unused76",
25536 "unused77",
25537 "unused78",
25538 "unused79",
25539 "unused80",
25540 "unused81",
25541 "unused82",
25542 "unused83",
25543 "unused84",
25544 "unused85",
25545 "unused86",
25546 "unused87",
25547 "unused88",
25548 "unused89",
25549 "unused90",
25550 "unused91",
25551 "unused92",
25552 "unused93",
25553 "unused94",
25554 "unused95",
25555 "unused96",
25556 "unused97",
25557 "unused98",
25558 "unused99",
25559 "unused100",
25560 "unused101",
25561 "unused102",
25562 "unused103",
25563 "unused104",
25564 "unused105",
25565 "unused106",
25566 "unused107",
25567 "unused108",
25568 "unused109",
25569 "unused110",
25570 "unused111",
25571 "unused112",
25572 "unused113",
25573 "unused114",
25574 "unused115",
25575 "unused116",
25576 "unused117",
25577 "unused118",
25578 "unused119",
25579 "unused120",
25580 "unused121",
25581 "unused122",
25582 "unused123",
25583 "unused124",
25584 "unused125",
25585 "unused126",
25586 "unused127",
25587 "unused128",
25588 "unused129",
25589 "unused130",
25590 "unused131",
25591 "unused132",
25592 "unused133",
25593 "unused134",
25594 "unused135",
25595 "unused136",
25596 "unused137",
25597 "unused138",
25598 "unused139",
25599 "unused140",
25600 "unused141",
25601 "unused142",
25602 "unused143",
25603 "unused144",
25604 "unused145",
25605 "unused146",
25606 "unused147",
25607 "unused148",
25608 "unused149",
25609 "unused150",
25610 "unused151",
25611 "unused152",
25612 "unused153",
25613 "unused154",
25614 "unused155",
25615 "unused156",
25616 "unused157",
25617 "unused158",
25618 "unused159",
25619 "unused160",
25620 "unused161",
25621 "unused162",
25622 "unused163",
25623 "unused164",
25624 "unused165",
25625 "unused166",
25626 "unused167",
25627 "unused168",
25628 "unused169",
25629 "unused170",
25630 "unused171",
25631 "unused172",
25632 "unused173",
25633 "unused174",
25634 "unused175",
25635 "unused176",
25636 "unused177",
25637 "unused178",
25638 "unused179",
25639 "unused180",
25640 "unused181",
25641 "unused182",
25642 "unused183",
25643 "unused184",
25644 "unused185",
25645 "unused186",
25646 "unused187",
25647 "unused188",
25648 "unused189",
25649 "unused190",
25650 "unused191",
25651 "unused192",
25652 "unused193",
25653 "unused194",
25654 "unused195",
25655 "unused196",
25656 "unused197",
25657 "unused198",
25658 "unused199",
25659 "unused200",
25660 "unused201",
25661 "unused202",
25662 "unused203",
25663 "unused204",
25664 "unused205",
25665 "unused206",
25666 "unused207",
25667 "unused208",
25668 "unused209",
25669 "unused210",
25670 "unused211",
25671 "unused212",
25672 "unused213",
25673 "unused214",
25674 "unused215",
25675 "unused216",
25676 "unused217",
25677 "unused218",
25678 "unused219",
25679 "unused220",
25680 "unused221",
25681 "unused222",
25682 "unused223",
25683 "unused224",
25684 "unused225",
25685 "unused226",
25686 "unused227",
25687 "unused228",
25688 "unused229",
25689 "unused230",
25690 "unused231",
25691 "unused232",
25692 "unused233",
25693 "unused234",
25694 "unused235",
25695 "unused236",
25696 "unused237",
25697 "unused238",
25698 "unused239",
25699 "unused240",
25700 "unused241",
25701 "unused242",
25702 "unused243",
25703 "unused244",
25704 "unused245",
25705 "unused246",
25706 "unused247",
25707 "unused248",
25708 "unused249",
25709 "unused250",
25710 "unused251",
25711 "unused252",
25712 "unused253",
25713 "unused254",
25714 "unused255"
25715 ],
25716 "type" : "string"
25717 },
25718 "format" : {
25719 "description" : "Target Format.",
25720 "enum" : [
25721 "raw",
25722 "qcow2",
25723 "vmdk"
25724 ],
25725 "optional" : 1,
25726 "type" : "string"
25727 },
25728 "node" : {
25729 "description" : "The cluster node name.",
25730 "format" : "pve-node",
25731 "type" : "string",
25732 "typetext" : "<string>"
25733 },
25734 "storage" : {
25735 "description" : "Target storage.",
25736 "format" : "pve-storage-id",
25737 "format_description" : "storage ID",
25738 "optional" : 1,
25739 "type" : "string",
25740 "typetext" : "<storage ID>"
25741 },
25742 "target-digest" : {
25743 "description" : "Prevent changes if the current config file of the target VM has a\"\n\t\t .\" different SHA1 digest. This can be used to detect concurrent modifications.",
25744 "maxLength" : 40,
25745 "optional" : 1,
25746 "type" : "string",
25747 "typetext" : "<string>"
25748 },
25749 "target-disk" : {
25750 "description" : "The config key the disk will be moved to on the target VM (for example, ide0 or scsi1). Default is the source disk key.",
25751 "enum" : [
25752 "ide0",
25753 "ide1",
25754 "ide2",
25755 "ide3",
25756 "scsi0",
25757 "scsi1",
25758 "scsi2",
25759 "scsi3",
25760 "scsi4",
25761 "scsi5",
25762 "scsi6",
25763 "scsi7",
25764 "scsi8",
25765 "scsi9",
25766 "scsi10",
25767 "scsi11",
25768 "scsi12",
25769 "scsi13",
25770 "scsi14",
25771 "scsi15",
25772 "scsi16",
25773 "scsi17",
25774 "scsi18",
25775 "scsi19",
25776 "scsi20",
25777 "scsi21",
25778 "scsi22",
25779 "scsi23",
25780 "scsi24",
25781 "scsi25",
25782 "scsi26",
25783 "scsi27",
25784 "scsi28",
25785 "scsi29",
25786 "scsi30",
25787 "virtio0",
25788 "virtio1",
25789 "virtio2",
25790 "virtio3",
25791 "virtio4",
25792 "virtio5",
25793 "virtio6",
25794 "virtio7",
25795 "virtio8",
25796 "virtio9",
25797 "virtio10",
25798 "virtio11",
25799 "virtio12",
25800 "virtio13",
25801 "virtio14",
25802 "virtio15",
25803 "sata0",
25804 "sata1",
25805 "sata2",
25806 "sata3",
25807 "sata4",
25808 "sata5",
25809 "efidisk0",
25810 "tpmstate0",
25811 "unused0",
25812 "unused1",
25813 "unused2",
25814 "unused3",
25815 "unused4",
25816 "unused5",
25817 "unused6",
25818 "unused7",
25819 "unused8",
25820 "unused9",
25821 "unused10",
25822 "unused11",
25823 "unused12",
25824 "unused13",
25825 "unused14",
25826 "unused15",
25827 "unused16",
25828 "unused17",
25829 "unused18",
25830 "unused19",
25831 "unused20",
25832 "unused21",
25833 "unused22",
25834 "unused23",
25835 "unused24",
25836 "unused25",
25837 "unused26",
25838 "unused27",
25839 "unused28",
25840 "unused29",
25841 "unused30",
25842 "unused31",
25843 "unused32",
25844 "unused33",
25845 "unused34",
25846 "unused35",
25847 "unused36",
25848 "unused37",
25849 "unused38",
25850 "unused39",
25851 "unused40",
25852 "unused41",
25853 "unused42",
25854 "unused43",
25855 "unused44",
25856 "unused45",
25857 "unused46",
25858 "unused47",
25859 "unused48",
25860 "unused49",
25861 "unused50",
25862 "unused51",
25863 "unused52",
25864 "unused53",
25865 "unused54",
25866 "unused55",
25867 "unused56",
25868 "unused57",
25869 "unused58",
25870 "unused59",
25871 "unused60",
25872 "unused61",
25873 "unused62",
25874 "unused63",
25875 "unused64",
25876 "unused65",
25877 "unused66",
25878 "unused67",
25879 "unused68",
25880 "unused69",
25881 "unused70",
25882 "unused71",
25883 "unused72",
25884 "unused73",
25885 "unused74",
25886 "unused75",
25887 "unused76",
25888 "unused77",
25889 "unused78",
25890 "unused79",
25891 "unused80",
25892 "unused81",
25893 "unused82",
25894 "unused83",
25895 "unused84",
25896 "unused85",
25897 "unused86",
25898 "unused87",
25899 "unused88",
25900 "unused89",
25901 "unused90",
25902 "unused91",
25903 "unused92",
25904 "unused93",
25905 "unused94",
25906 "unused95",
25907 "unused96",
25908 "unused97",
25909 "unused98",
25910 "unused99",
25911 "unused100",
25912 "unused101",
25913 "unused102",
25914 "unused103",
25915 "unused104",
25916 "unused105",
25917 "unused106",
25918 "unused107",
25919 "unused108",
25920 "unused109",
25921 "unused110",
25922 "unused111",
25923 "unused112",
25924 "unused113",
25925 "unused114",
25926 "unused115",
25927 "unused116",
25928 "unused117",
25929 "unused118",
25930 "unused119",
25931 "unused120",
25932 "unused121",
25933 "unused122",
25934 "unused123",
25935 "unused124",
25936 "unused125",
25937 "unused126",
25938 "unused127",
25939 "unused128",
25940 "unused129",
25941 "unused130",
25942 "unused131",
25943 "unused132",
25944 "unused133",
25945 "unused134",
25946 "unused135",
25947 "unused136",
25948 "unused137",
25949 "unused138",
25950 "unused139",
25951 "unused140",
25952 "unused141",
25953 "unused142",
25954 "unused143",
25955 "unused144",
25956 "unused145",
25957 "unused146",
25958 "unused147",
25959 "unused148",
25960 "unused149",
25961 "unused150",
25962 "unused151",
25963 "unused152",
25964 "unused153",
25965 "unused154",
25966 "unused155",
25967 "unused156",
25968 "unused157",
25969 "unused158",
25970 "unused159",
25971 "unused160",
25972 "unused161",
25973 "unused162",
25974 "unused163",
25975 "unused164",
25976 "unused165",
25977 "unused166",
25978 "unused167",
25979 "unused168",
25980 "unused169",
25981 "unused170",
25982 "unused171",
25983 "unused172",
25984 "unused173",
25985 "unused174",
25986 "unused175",
25987 "unused176",
25988 "unused177",
25989 "unused178",
25990 "unused179",
25991 "unused180",
25992 "unused181",
25993 "unused182",
25994 "unused183",
25995 "unused184",
25996 "unused185",
25997 "unused186",
25998 "unused187",
25999 "unused188",
26000 "unused189",
26001 "unused190",
26002 "unused191",
26003 "unused192",
26004 "unused193",
26005 "unused194",
26006 "unused195",
26007 "unused196",
26008 "unused197",
26009 "unused198",
26010 "unused199",
26011 "unused200",
26012 "unused201",
26013 "unused202",
26014 "unused203",
26015 "unused204",
26016 "unused205",
26017 "unused206",
26018 "unused207",
26019 "unused208",
26020 "unused209",
26021 "unused210",
26022 "unused211",
26023 "unused212",
26024 "unused213",
26025 "unused214",
26026 "unused215",
26027 "unused216",
26028 "unused217",
26029 "unused218",
26030 "unused219",
26031 "unused220",
26032 "unused221",
26033 "unused222",
26034 "unused223",
26035 "unused224",
26036 "unused225",
26037 "unused226",
26038 "unused227",
26039 "unused228",
26040 "unused229",
26041 "unused230",
26042 "unused231",
26043 "unused232",
26044 "unused233",
26045 "unused234",
26046 "unused235",
26047 "unused236",
26048 "unused237",
26049 "unused238",
26050 "unused239",
26051 "unused240",
26052 "unused241",
26053 "unused242",
26054 "unused243",
26055 "unused244",
26056 "unused245",
26057 "unused246",
26058 "unused247",
26059 "unused248",
26060 "unused249",
26061 "unused250",
26062 "unused251",
26063 "unused252",
26064 "unused253",
26065 "unused254",
26066 "unused255"
26067 ],
26068 "optional" : 1,
26069 "type" : "string"
26070 },
26071 "target-vmid" : {
26072 "description" : "The (unique) ID of the VM.",
26073 "format" : "pve-vmid",
26074 "maximum" : 999999999,
26075 "minimum" : 100,
26076 "optional" : 1,
26077 "type" : "integer",
26078 "typetext" : "<integer> (100 - 999999999)"
26079 },
26080 "vmid" : {
26081 "description" : "The (unique) ID of the VM.",
26082 "format" : "pve-vmid",
26083 "maximum" : 999999999,
26084 "minimum" : 100,
26085 "type" : "integer",
26086 "typetext" : "<integer> (100 - 999999999)"
26087 }
26088 }
26089 },
26090 "permissions" : {
26091 "check" : [
26092 "perm",
26093 "/vms/{vmid}",
26094 [
26095 "VM.Config.Disk"
26096 ]
26097 ],
26098 "description" : "You need 'VM.Config.Disk' permissions on /vms/{vmid}, and 'Datastore.AllocateSpace' permissions on the storage. To move a disk to another VM, you need the permissions on the target VM as well."
26099 },
26100 "protected" : 1,
26101 "proxyto" : "node",
26102 "returns" : {
26103 "description" : "the task ID.",
26104 "type" : "string"
26105 }
26106 }
26107 },
26108 "leaf" : 1,
26109 "path" : "/nodes/{node}/qemu/{vmid}/move_disk",
26110 "text" : "move_disk"
26111 },
26112 {
26113 "info" : {
26114 "GET" : {
26115 "allowtoken" : 1,
26116 "description" : "Get preconditions for migration.",
26117 "method" : "GET",
26118 "name" : "migrate_vm_precondition",
26119 "parameters" : {
26120 "additionalProperties" : 0,
26121 "properties" : {
26122 "node" : {
26123 "description" : "The cluster node name.",
26124 "format" : "pve-node",
26125 "type" : "string",
26126 "typetext" : "<string>"
26127 },
26128 "target" : {
26129 "description" : "Target node.",
26130 "format" : "pve-node",
26131 "optional" : 1,
26132 "type" : "string",
26133 "typetext" : "<string>"
26134 },
26135 "vmid" : {
26136 "description" : "The (unique) ID of the VM.",
26137 "format" : "pve-vmid",
26138 "maximum" : 999999999,
26139 "minimum" : 100,
26140 "type" : "integer",
26141 "typetext" : "<integer> (100 - 999999999)"
26142 }
26143 }
26144 },
26145 "permissions" : {
26146 "check" : [
26147 "perm",
26148 "/vms/{vmid}",
26149 [
26150 "VM.Migrate"
26151 ]
26152 ]
26153 },
26154 "protected" : 1,
26155 "proxyto" : "node",
26156 "returns" : {
26157 "properties" : {
26158 "allowed_nodes" : {
26159 "description" : "List nodes allowed for offline migration, only passed if VM is offline",
26160 "optional" : 1,
26161 "type" : "array"
26162 },
26163 "local_disks" : {
26164 "description" : "List local disks including CD-Rom, unsused and not referenced disks",
26165 "type" : "array"
26166 },
26167 "local_resources" : {
26168 "description" : "List local resources e.g. pci, usb",
26169 "type" : "array"
26170 },
26171 "mapped-resources" : {
26172 "description" : "List of mapped resources e.g. pci, usb",
26173 "type" : "array"
26174 },
26175 "not_allowed_nodes" : {
26176 "description" : "List not allowed nodes with additional informations, only passed if VM is offline",
26177 "optional" : 1,
26178 "type" : "object"
26179 },
26180 "running" : {
26181 "type" : "boolean"
26182 }
26183 },
26184 "type" : "object"
26185 }
26186 },
26187 "POST" : {
26188 "allowtoken" : 1,
26189 "description" : "Migrate virtual machine. Creates a new migration task.",
26190 "method" : "POST",
26191 "name" : "migrate_vm",
26192 "parameters" : {
26193 "additionalProperties" : 0,
26194 "properties" : {
26195 "bwlimit" : {
26196 "default" : "migrate limit from datacenter or storage config",
26197 "description" : "Override I/O bandwidth limit (in KiB/s).",
26198 "minimum" : "0",
26199 "optional" : 1,
26200 "type" : "integer",
26201 "typetext" : "<integer> (0 - N)"
26202 },
26203 "force" : {
26204 "description" : "Allow to migrate VMs which use local devices. Only root may use this option.",
26205 "optional" : 1,
26206 "type" : "boolean",
26207 "typetext" : "<boolean>"
26208 },
26209 "migration_network" : {
26210 "description" : "CIDR of the (sub) network that is used for migration.",
26211 "format" : "CIDR",
26212 "optional" : 1,
26213 "type" : "string",
26214 "typetext" : "<string>"
26215 },
26216 "migration_type" : {
26217 "description" : "Migration traffic is encrypted using an SSH tunnel by default. On secure, completely private networks this can be disabled to increase performance.",
26218 "enum" : [
26219 "secure",
26220 "insecure"
26221 ],
26222 "optional" : 1,
26223 "type" : "string"
26224 },
26225 "node" : {
26226 "description" : "The cluster node name.",
26227 "format" : "pve-node",
26228 "type" : "string",
26229 "typetext" : "<string>"
26230 },
26231 "online" : {
26232 "description" : "Use online/live migration if VM is running. Ignored if VM is stopped.",
26233 "optional" : 1,
26234 "type" : "boolean",
26235 "typetext" : "<boolean>"
26236 },
26237 "target" : {
26238 "description" : "Target node.",
26239 "format" : "pve-node",
26240 "type" : "string",
26241 "typetext" : "<string>"
26242 },
26243 "targetstorage" : {
26244 "description" : "Mapping from source to target storages. Providing only a single storage ID maps all source storages to that storage. Providing the special value '1' will map each source storage to itself.",
26245 "format" : "storage-pair-list",
26246 "optional" : 1,
26247 "type" : "string",
26248 "typetext" : "<string>"
26249 },
26250 "vmid" : {
26251 "description" : "The (unique) ID of the VM.",
26252 "format" : "pve-vmid",
26253 "maximum" : 999999999,
26254 "minimum" : 100,
26255 "type" : "integer",
26256 "typetext" : "<integer> (100 - 999999999)"
26257 },
26258 "with-local-disks" : {
26259 "description" : "Enable live storage migration for local disk",
26260 "optional" : 1,
26261 "type" : "boolean",
26262 "typetext" : "<boolean>"
26263 }
26264 }
26265 },
26266 "permissions" : {
26267 "check" : [
26268 "perm",
26269 "/vms/{vmid}",
26270 [
26271 "VM.Migrate"
26272 ]
26273 ]
26274 },
26275 "protected" : 1,
26276 "proxyto" : "node",
26277 "returns" : {
26278 "description" : "the task ID.",
26279 "type" : "string"
26280 }
26281 }
26282 },
26283 "leaf" : 1,
26284 "path" : "/nodes/{node}/qemu/{vmid}/migrate",
26285 "text" : "migrate"
26286 },
26287 {
26288 "info" : {
26289 "POST" : {
26290 "allowtoken" : 1,
26291 "description" : "Migrate virtual machine to a remote cluster. Creates a new migration task. EXPERIMENTAL feature!",
26292 "method" : "POST",
26293 "name" : "remote_migrate_vm",
26294 "parameters" : {
26295 "additionalProperties" : 0,
26296 "properties" : {
26297 "bwlimit" : {
26298 "default" : "migrate limit from datacenter or storage config",
26299 "description" : "Override I/O bandwidth limit (in KiB/s).",
26300 "minimum" : "0",
26301 "optional" : 1,
26302 "type" : "integer",
26303 "typetext" : "<integer> (0 - N)"
26304 },
26305 "delete" : {
26306 "default" : 0,
26307 "description" : "Delete the original VM and related data after successful migration. By default the original VM is kept on the source cluster in a stopped state.",
26308 "optional" : 1,
26309 "type" : "boolean",
26310 "typetext" : "<boolean>"
26311 },
26312 "node" : {
26313 "description" : "The cluster node name.",
26314 "format" : "pve-node",
26315 "type" : "string",
26316 "typetext" : "<string>"
26317 },
26318 "online" : {
26319 "description" : "Use online/live migration if VM is running. Ignored if VM is stopped.",
26320 "optional" : 1,
26321 "type" : "boolean",
26322 "typetext" : "<boolean>"
26323 },
26324 "target-bridge" : {
26325 "description" : "Mapping from source to target bridges. Providing only a single bridge ID maps all source bridges to that bridge. Providing the special value '1' will map each source bridge to itself.",
26326 "format" : "bridge-pair-list",
26327 "type" : "string",
26328 "typetext" : "<string>"
26329 },
26330 "target-endpoint" : {
26331 "description" : "Remote target endpoint",
26332 "format" : "proxmox-remote",
26333 "type" : "string",
26334 "typetext" : "apitoken=<PVEAPIToken=user@realm!token=SECRET> ,host=<ADDRESS> [,fingerprint=<FINGERPRINT>] [,port=<PORT>]"
26335 },
26336 "target-storage" : {
26337 "description" : "Mapping from source to target storages. Providing only a single storage ID maps all source storages to that storage. Providing the special value '1' will map each source storage to itself.",
26338 "format" : "storage-pair-list",
26339 "optional" : 0,
26340 "type" : "string",
26341 "typetext" : "<string>"
26342 },
26343 "target-vmid" : {
26344 "description" : "The (unique) ID of the VM.",
26345 "format" : "pve-vmid",
26346 "maximum" : 999999999,
26347 "minimum" : 100,
26348 "optional" : 1,
26349 "type" : "integer",
26350 "typetext" : "<integer> (100 - 999999999)"
26351 },
26352 "vmid" : {
26353 "description" : "The (unique) ID of the VM.",
26354 "format" : "pve-vmid",
26355 "maximum" : 999999999,
26356 "minimum" : 100,
26357 "type" : "integer",
26358 "typetext" : "<integer> (100 - 999999999)"
26359 }
26360 }
26361 },
26362 "permissions" : {
26363 "check" : [
26364 "perm",
26365 "/vms/{vmid}",
26366 [
26367 "VM.Migrate"
26368 ]
26369 ]
26370 },
26371 "protected" : 1,
26372 "proxyto" : "node",
26373 "returns" : {
26374 "description" : "the task ID.",
26375 "type" : "string"
26376 }
26377 }
26378 },
26379 "leaf" : 1,
26380 "path" : "/nodes/{node}/qemu/{vmid}/remote_migrate",
26381 "text" : "remote_migrate"
26382 },
26383 {
26384 "info" : {
26385 "POST" : {
26386 "allowtoken" : 1,
26387 "description" : "Execute QEMU monitor commands.",
26388 "method" : "POST",
26389 "name" : "monitor",
26390 "parameters" : {
26391 "additionalProperties" : 0,
26392 "properties" : {
26393 "command" : {
26394 "description" : "The monitor command.",
26395 "type" : "string",
26396 "typetext" : "<string>"
26397 },
26398 "node" : {
26399 "description" : "The cluster node name.",
26400 "format" : "pve-node",
26401 "type" : "string",
26402 "typetext" : "<string>"
26403 },
26404 "vmid" : {
26405 "description" : "The (unique) ID of the VM.",
26406 "format" : "pve-vmid",
26407 "maximum" : 999999999,
26408 "minimum" : 100,
26409 "type" : "integer",
26410 "typetext" : "<integer> (100 - 999999999)"
26411 }
26412 }
26413 },
26414 "permissions" : {
26415 "check" : [
26416 "perm",
26417 "/vms/{vmid}",
26418 [
26419 "VM.Monitor"
26420 ]
26421 ],
26422 "description" : "Sys.Modify is required for (sub)commands which are not read-only ('info *' and 'help')"
26423 },
26424 "protected" : 1,
26425 "proxyto" : "node",
26426 "returns" : {
26427 "type" : "string"
26428 }
26429 }
26430 },
26431 "leaf" : 1,
26432 "path" : "/nodes/{node}/qemu/{vmid}/monitor",
26433 "text" : "monitor"
26434 },
26435 {
26436 "info" : {
26437 "PUT" : {
26438 "allowtoken" : 1,
26439 "description" : "Extend volume size.",
26440 "method" : "PUT",
26441 "name" : "resize_vm",
26442 "parameters" : {
26443 "additionalProperties" : 0,
26444 "properties" : {
26445 "digest" : {
26446 "description" : "Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.",
26447 "maxLength" : 40,
26448 "optional" : 1,
26449 "type" : "string",
26450 "typetext" : "<string>"
26451 },
26452 "disk" : {
26453 "description" : "The disk you want to resize.",
26454 "enum" : [
26455 "ide0",
26456 "ide1",
26457 "ide2",
26458 "ide3",
26459 "scsi0",
26460 "scsi1",
26461 "scsi2",
26462 "scsi3",
26463 "scsi4",
26464 "scsi5",
26465 "scsi6",
26466 "scsi7",
26467 "scsi8",
26468 "scsi9",
26469 "scsi10",
26470 "scsi11",
26471 "scsi12",
26472 "scsi13",
26473 "scsi14",
26474 "scsi15",
26475 "scsi16",
26476 "scsi17",
26477 "scsi18",
26478 "scsi19",
26479 "scsi20",
26480 "scsi21",
26481 "scsi22",
26482 "scsi23",
26483 "scsi24",
26484 "scsi25",
26485 "scsi26",
26486 "scsi27",
26487 "scsi28",
26488 "scsi29",
26489 "scsi30",
26490 "virtio0",
26491 "virtio1",
26492 "virtio2",
26493 "virtio3",
26494 "virtio4",
26495 "virtio5",
26496 "virtio6",
26497 "virtio7",
26498 "virtio8",
26499 "virtio9",
26500 "virtio10",
26501 "virtio11",
26502 "virtio12",
26503 "virtio13",
26504 "virtio14",
26505 "virtio15",
26506 "sata0",
26507 "sata1",
26508 "sata2",
26509 "sata3",
26510 "sata4",
26511 "sata5",
26512 "efidisk0",
26513 "tpmstate0"
26514 ],
26515 "type" : "string"
26516 },
26517 "node" : {
26518 "description" : "The cluster node name.",
26519 "format" : "pve-node",
26520 "type" : "string",
26521 "typetext" : "<string>"
26522 },
26523 "size" : {
26524 "description" : "The new size. With the `+` sign the value is added to the actual size of the volume and without it, the value is taken as an absolute one. Shrinking disk size is not supported.",
26525 "pattern" : "\\+?\\d+(\\.\\d+)?[KMGT]?",
26526 "type" : "string"
26527 },
26528 "skiplock" : {
26529 "description" : "Ignore locks - only root is allowed to use this option.",
26530 "optional" : 1,
26531 "type" : "boolean",
26532 "typetext" : "<boolean>"
26533 },
26534 "vmid" : {
26535 "description" : "The (unique) ID of the VM.",
26536 "format" : "pve-vmid",
26537 "maximum" : 999999999,
26538 "minimum" : 100,
26539 "type" : "integer",
26540 "typetext" : "<integer> (100 - 999999999)"
26541 }
26542 }
26543 },
26544 "permissions" : {
26545 "check" : [
26546 "perm",
26547 "/vms/{vmid}",
26548 [
26549 "VM.Config.Disk"
26550 ]
26551 ]
26552 },
26553 "protected" : 1,
26554 "proxyto" : "node",
26555 "returns" : {
26556 "description" : "the task ID.",
26557 "type" : "string"
26558 }
26559 }
26560 },
26561 "leaf" : 1,
26562 "path" : "/nodes/{node}/qemu/{vmid}/resize",
26563 "text" : "resize"
26564 },
26565 {
26566 "children" : [
26567 {
26568 "children" : [
26569 {
26570 "info" : {
26571 "GET" : {
26572 "allowtoken" : 1,
26573 "description" : "Get snapshot configuration",
26574 "method" : "GET",
26575 "name" : "get_snapshot_config",
26576 "parameters" : {
26577 "additionalProperties" : 0,
26578 "properties" : {
26579 "node" : {
26580 "description" : "The cluster node name.",
26581 "format" : "pve-node",
26582 "type" : "string",
26583 "typetext" : "<string>"
26584 },
26585 "snapname" : {
26586 "description" : "The name of the snapshot.",
26587 "format" : "pve-configid",
26588 "maxLength" : 40,
26589 "type" : "string",
26590 "typetext" : "<string>"
26591 },
26592 "vmid" : {
26593 "description" : "The (unique) ID of the VM.",
26594 "format" : "pve-vmid",
26595 "maximum" : 999999999,
26596 "minimum" : 100,
26597 "type" : "integer",
26598 "typetext" : "<integer> (100 - 999999999)"
26599 }
26600 }
26601 },
26602 "permissions" : {
26603 "check" : [
26604 "perm",
26605 "/vms/{vmid}",
26606 [
26607 "VM.Snapshot",
26608 "VM.Snapshot.Rollback",
26609 "VM.Audit"
26610 ],
26611 "any",
26612 1
26613 ]
26614 },
26615 "proxyto" : "node",
26616 "returns" : {
26617 "type" : "object"
26618 }
26619 },
26620 "PUT" : {
26621 "allowtoken" : 1,
26622 "description" : "Update snapshot metadata.",
26623 "method" : "PUT",
26624 "name" : "update_snapshot_config",
26625 "parameters" : {
26626 "additionalProperties" : 0,
26627 "properties" : {
26628 "description" : {
26629 "description" : "A textual description or comment.",
26630 "optional" : 1,
26631 "type" : "string",
26632 "typetext" : "<string>"
26633 },
26634 "node" : {
26635 "description" : "The cluster node name.",
26636 "format" : "pve-node",
26637 "type" : "string",
26638 "typetext" : "<string>"
26639 },
26640 "snapname" : {
26641 "description" : "The name of the snapshot.",
26642 "format" : "pve-configid",
26643 "maxLength" : 40,
26644 "type" : "string",
26645 "typetext" : "<string>"
26646 },
26647 "vmid" : {
26648 "description" : "The (unique) ID of the VM.",
26649 "format" : "pve-vmid",
26650 "maximum" : 999999999,
26651 "minimum" : 100,
26652 "type" : "integer",
26653 "typetext" : "<integer> (100 - 999999999)"
26654 }
26655 }
26656 },
26657 "permissions" : {
26658 "check" : [
26659 "perm",
26660 "/vms/{vmid}",
26661 [
26662 "VM.Snapshot"
26663 ]
26664 ]
26665 },
26666 "protected" : 1,
26667 "proxyto" : "node",
26668 "returns" : {
26669 "type" : "null"
26670 }
26671 }
26672 },
26673 "leaf" : 1,
26674 "path" : "/nodes/{node}/qemu/{vmid}/snapshot/{snapname}/config",
26675 "text" : "config"
26676 },
26677 {
26678 "info" : {
26679 "POST" : {
26680 "allowtoken" : 1,
26681 "description" : "Rollback VM state to specified snapshot.",
26682 "method" : "POST",
26683 "name" : "rollback",
26684 "parameters" : {
26685 "additionalProperties" : 0,
26686 "properties" : {
26687 "node" : {
26688 "description" : "The cluster node name.",
26689 "format" : "pve-node",
26690 "type" : "string",
26691 "typetext" : "<string>"
26692 },
26693 "snapname" : {
26694 "description" : "The name of the snapshot.",
26695 "format" : "pve-configid",
26696 "maxLength" : 40,
26697 "type" : "string",
26698 "typetext" : "<string>"
26699 },
26700 "start" : {
26701 "default" : 0,
26702 "description" : "Whether the VM should get started after rolling back successfully. (Note: VMs will be automatically started if the snapshot includes RAM.)",
26703 "optional" : 1,
26704 "type" : "boolean",
26705 "typetext" : "<boolean>"
26706 },
26707 "vmid" : {
26708 "description" : "The (unique) ID of the VM.",
26709 "format" : "pve-vmid",
26710 "maximum" : 999999999,
26711 "minimum" : 100,
26712 "type" : "integer",
26713 "typetext" : "<integer> (100 - 999999999)"
26714 }
26715 }
26716 },
26717 "permissions" : {
26718 "check" : [
26719 "perm",
26720 "/vms/{vmid}",
26721 [
26722 "VM.Snapshot",
26723 "VM.Snapshot.Rollback"
26724 ],
26725 "any",
26726 1
26727 ]
26728 },
26729 "protected" : 1,
26730 "proxyto" : "node",
26731 "returns" : {
26732 "description" : "the task ID.",
26733 "type" : "string"
26734 }
26735 }
26736 },
26737 "leaf" : 1,
26738 "path" : "/nodes/{node}/qemu/{vmid}/snapshot/{snapname}/rollback",
26739 "text" : "rollback"
26740 }
26741 ],
26742 "info" : {
26743 "DELETE" : {
26744 "allowtoken" : 1,
26745 "description" : "Delete a VM snapshot.",
26746 "method" : "DELETE",
26747 "name" : "delsnapshot",
26748 "parameters" : {
26749 "additionalProperties" : 0,
26750 "properties" : {
26751 "force" : {
26752 "description" : "For removal from config file, even if removing disk snapshots fails.",
26753 "optional" : 1,
26754 "type" : "boolean",
26755 "typetext" : "<boolean>"
26756 },
26757 "node" : {
26758 "description" : "The cluster node name.",
26759 "format" : "pve-node",
26760 "type" : "string",
26761 "typetext" : "<string>"
26762 },
26763 "snapname" : {
26764 "description" : "The name of the snapshot.",
26765 "format" : "pve-configid",
26766 "maxLength" : 40,
26767 "type" : "string",
26768 "typetext" : "<string>"
26769 },
26770 "vmid" : {
26771 "description" : "The (unique) ID of the VM.",
26772 "format" : "pve-vmid",
26773 "maximum" : 999999999,
26774 "minimum" : 100,
26775 "type" : "integer",
26776 "typetext" : "<integer> (100 - 999999999)"
26777 }
26778 }
26779 },
26780 "permissions" : {
26781 "check" : [
26782 "perm",
26783 "/vms/{vmid}",
26784 [
26785 "VM.Snapshot"
26786 ]
26787 ]
26788 },
26789 "protected" : 1,
26790 "proxyto" : "node",
26791 "returns" : {
26792 "description" : "the task ID.",
26793 "type" : "string"
26794 }
26795 },
26796 "GET" : {
26797 "allowtoken" : 1,
26798 "description" : "",
26799 "method" : "GET",
26800 "name" : "snapshot_cmd_idx",
26801 "parameters" : {
26802 "additionalProperties" : 0,
26803 "properties" : {
26804 "node" : {
26805 "description" : "The cluster node name.",
26806 "format" : "pve-node",
26807 "type" : "string",
26808 "typetext" : "<string>"
26809 },
26810 "snapname" : {
26811 "description" : "The name of the snapshot.",
26812 "format" : "pve-configid",
26813 "maxLength" : 40,
26814 "type" : "string",
26815 "typetext" : "<string>"
26816 },
26817 "vmid" : {
26818 "description" : "The (unique) ID of the VM.",
26819 "format" : "pve-vmid",
26820 "maximum" : 999999999,
26821 "minimum" : 100,
26822 "type" : "integer",
26823 "typetext" : "<integer> (100 - 999999999)"
26824 }
26825 }
26826 },
26827 "permissions" : {
26828 "user" : "all"
26829 },
26830 "returns" : {
26831 "items" : {
26832 "properties" : {},
26833 "type" : "object"
26834 },
26835 "links" : [
26836 {
26837 "href" : "{cmd}",
26838 "rel" : "child"
26839 }
26840 ],
26841 "type" : "array"
26842 }
26843 }
26844 },
26845 "leaf" : 0,
26846 "path" : "/nodes/{node}/qemu/{vmid}/snapshot/{snapname}",
26847 "text" : "{snapname}"
26848 }
26849 ],
26850 "info" : {
26851 "GET" : {
26852 "allowtoken" : 1,
26853 "description" : "List all snapshots.",
26854 "method" : "GET",
26855 "name" : "snapshot_list",
26856 "parameters" : {
26857 "additionalProperties" : 0,
26858 "properties" : {
26859 "node" : {
26860 "description" : "The cluster node name.",
26861 "format" : "pve-node",
26862 "type" : "string",
26863 "typetext" : "<string>"
26864 },
26865 "vmid" : {
26866 "description" : "The (unique) ID of the VM.",
26867 "format" : "pve-vmid",
26868 "maximum" : 999999999,
26869 "minimum" : 100,
26870 "type" : "integer",
26871 "typetext" : "<integer> (100 - 999999999)"
26872 }
26873 }
26874 },
26875 "permissions" : {
26876 "check" : [
26877 "perm",
26878 "/vms/{vmid}",
26879 [
26880 "VM.Audit"
26881 ]
26882 ]
26883 },
26884 "protected" : 1,
26885 "proxyto" : "node",
26886 "returns" : {
26887 "items" : {
26888 "properties" : {
26889 "description" : {
26890 "description" : "Snapshot description.",
26891 "type" : "string"
26892 },
26893 "name" : {
26894 "description" : "Snapshot identifier. Value 'current' identifies the current VM.",
26895 "type" : "string"
26896 },
26897 "parent" : {
26898 "description" : "Parent snapshot identifier.",
26899 "optional" : 1,
26900 "type" : "string"
26901 },
26902 "snaptime" : {
26903 "description" : "Snapshot creation time",
26904 "optional" : 1,
26905 "renderer" : "timestamp",
26906 "type" : "integer"
26907 },
26908 "vmstate" : {
26909 "description" : "Snapshot includes RAM.",
26910 "optional" : 1,
26911 "type" : "boolean"
26912 }
26913 },
26914 "type" : "object"
26915 },
26916 "links" : [
26917 {
26918 "href" : "{name}",
26919 "rel" : "child"
26920 }
26921 ],
26922 "type" : "array"
26923 }
26924 },
26925 "POST" : {
26926 "allowtoken" : 1,
26927 "description" : "Snapshot a VM.",
26928 "method" : "POST",
26929 "name" : "snapshot",
26930 "parameters" : {
26931 "additionalProperties" : 0,
26932 "properties" : {
26933 "description" : {
26934 "description" : "A textual description or comment.",
26935 "optional" : 1,
26936 "type" : "string",
26937 "typetext" : "<string>"
26938 },
26939 "node" : {
26940 "description" : "The cluster node name.",
26941 "format" : "pve-node",
26942 "type" : "string",
26943 "typetext" : "<string>"
26944 },
26945 "snapname" : {
26946 "description" : "The name of the snapshot.",
26947 "format" : "pve-configid",
26948 "maxLength" : 40,
26949 "type" : "string",
26950 "typetext" : "<string>"
26951 },
26952 "vmid" : {
26953 "description" : "The (unique) ID of the VM.",
26954 "format" : "pve-vmid",
26955 "maximum" : 999999999,
26956 "minimum" : 100,
26957 "type" : "integer",
26958 "typetext" : "<integer> (100 - 999999999)"
26959 },
26960 "vmstate" : {
26961 "description" : "Save the vmstate",
26962 "optional" : 1,
26963 "type" : "boolean",
26964 "typetext" : "<boolean>"
26965 }
26966 }
26967 },
26968 "permissions" : {
26969 "check" : [
26970 "perm",
26971 "/vms/{vmid}",
26972 [
26973 "VM.Snapshot"
26974 ]
26975 ]
26976 },
26977 "protected" : 1,
26978 "proxyto" : "node",
26979 "returns" : {
26980 "description" : "the task ID.",
26981 "type" : "string"
26982 }
26983 }
26984 },
26985 "leaf" : 0,
26986 "path" : "/nodes/{node}/qemu/{vmid}/snapshot",
26987 "text" : "snapshot"
26988 },
26989 {
26990 "info" : {
26991 "POST" : {
26992 "allowtoken" : 1,
26993 "description" : "Create a Template.",
26994 "method" : "POST",
26995 "name" : "template",
26996 "parameters" : {
26997 "additionalProperties" : 0,
26998 "properties" : {
26999 "disk" : {
27000 "description" : "If you want to convert only 1 disk to base image.",
27001 "enum" : [
27002 "ide0",
27003 "ide1",
27004 "ide2",
27005 "ide3",
27006 "scsi0",
27007 "scsi1",
27008 "scsi2",
27009 "scsi3",
27010 "scsi4",
27011 "scsi5",
27012 "scsi6",
27013 "scsi7",
27014 "scsi8",
27015 "scsi9",
27016 "scsi10",
27017 "scsi11",
27018 "scsi12",
27019 "scsi13",
27020 "scsi14",
27021 "scsi15",
27022 "scsi16",
27023 "scsi17",
27024 "scsi18",
27025 "scsi19",
27026 "scsi20",
27027 "scsi21",
27028 "scsi22",
27029 "scsi23",
27030 "scsi24",
27031 "scsi25",
27032 "scsi26",
27033 "scsi27",
27034 "scsi28",
27035 "scsi29",
27036 "scsi30",
27037 "virtio0",
27038 "virtio1",
27039 "virtio2",
27040 "virtio3",
27041 "virtio4",
27042 "virtio5",
27043 "virtio6",
27044 "virtio7",
27045 "virtio8",
27046 "virtio9",
27047 "virtio10",
27048 "virtio11",
27049 "virtio12",
27050 "virtio13",
27051 "virtio14",
27052 "virtio15",
27053 "sata0",
27054 "sata1",
27055 "sata2",
27056 "sata3",
27057 "sata4",
27058 "sata5",
27059 "efidisk0",
27060 "tpmstate0"
27061 ],
27062 "optional" : 1,
27063 "type" : "string"
27064 },
27065 "node" : {
27066 "description" : "The cluster node name.",
27067 "format" : "pve-node",
27068 "type" : "string",
27069 "typetext" : "<string>"
27070 },
27071 "vmid" : {
27072 "description" : "The (unique) ID of the VM.",
27073 "format" : "pve-vmid",
27074 "maximum" : 999999999,
27075 "minimum" : 100,
27076 "type" : "integer",
27077 "typetext" : "<integer> (100 - 999999999)"
27078 }
27079 }
27080 },
27081 "permissions" : {
27082 "check" : [
27083 "perm",
27084 "/vms/{vmid}",
27085 [
27086 "VM.Allocate"
27087 ]
27088 ],
27089 "description" : "You need 'VM.Allocate' permissions on /vms/{vmid}"
27090 },
27091 "protected" : 1,
27092 "proxyto" : "node",
27093 "returns" : {
27094 "description" : "the task ID.",
27095 "type" : "string"
27096 }
27097 }
27098 },
27099 "leaf" : 1,
27100 "path" : "/nodes/{node}/qemu/{vmid}/template",
27101 "text" : "template"
27102 },
27103 {
27104 "info" : {
27105 "POST" : {
27106 "allowtoken" : 1,
27107 "description" : "Migration tunnel endpoint - only for internal use by VM migration.",
27108 "method" : "POST",
27109 "name" : "mtunnel",
27110 "parameters" : {
27111 "additionalProperties" : 0,
27112 "properties" : {
27113 "bridges" : {
27114 "description" : "List of network bridges to check availability. Will be checked again for actually used bridges during migration.",
27115 "format" : "pve-bridge-id-list",
27116 "optional" : 1,
27117 "type" : "string",
27118 "typetext" : "<string>"
27119 },
27120 "node" : {
27121 "description" : "The cluster node name.",
27122 "format" : "pve-node",
27123 "type" : "string",
27124 "typetext" : "<string>"
27125 },
27126 "storages" : {
27127 "description" : "List of storages to check permission and availability. Will be checked again for all actually used storages during migration.",
27128 "format" : "pve-storage-id-list",
27129 "optional" : 1,
27130 "type" : "string",
27131 "typetext" : "<string>"
27132 },
27133 "vmid" : {
27134 "description" : "The (unique) ID of the VM.",
27135 "format" : "pve-vmid",
27136 "maximum" : 999999999,
27137 "minimum" : 100,
27138 "type" : "integer",
27139 "typetext" : "<integer> (100 - 999999999)"
27140 }
27141 }
27142 },
27143 "permissions" : {
27144 "check" : [
27145 "and",
27146 [
27147 "perm",
27148 "/vms/{vmid}",
27149 [
27150 "VM.Allocate"
27151 ]
27152 ],
27153 [
27154 "perm",
27155 "/",
27156 [
27157 "Sys.Incoming"
27158 ]
27159 ]
27160 ],
27161 "description" : "You need 'VM.Allocate' permissions on '/vms/{vmid}' and Sys.Incoming on '/'. Further permission checks happen during the actual migration."
27162 },
27163 "protected" : 1,
27164 "returns" : {
27165 "additionalProperties" : 0,
27166 "properties" : {
27167 "socket" : {
27168 "type" : "string"
27169 },
27170 "ticket" : {
27171 "type" : "string"
27172 },
27173 "upid" : {
27174 "type" : "string"
27175 }
27176 }
27177 }
27178 }
27179 },
27180 "leaf" : 1,
27181 "path" : "/nodes/{node}/qemu/{vmid}/mtunnel",
27182 "text" : "mtunnel"
27183 },
27184 {
27185 "info" : {
27186 "GET" : {
27187 "allowtoken" : 1,
27188 "description" : "Migration tunnel endpoint for websocket upgrade - only for internal use by VM migration.",
27189 "method" : "GET",
27190 "name" : "mtunnelwebsocket",
27191 "parameters" : {
27192 "additionalProperties" : 0,
27193 "properties" : {
27194 "node" : {
27195 "description" : "The cluster node name.",
27196 "format" : "pve-node",
27197 "type" : "string",
27198 "typetext" : "<string>"
27199 },
27200 "socket" : {
27201 "description" : "unix socket to forward to",
27202 "type" : "string",
27203 "typetext" : "<string>"
27204 },
27205 "ticket" : {
27206 "description" : "ticket return by initial 'mtunnel' API call, or retrieved via 'ticket' tunnel command",
27207 "type" : "string",
27208 "typetext" : "<string>"
27209 },
27210 "vmid" : {
27211 "description" : "The (unique) ID of the VM.",
27212 "format" : "pve-vmid",
27213 "maximum" : 999999999,
27214 "minimum" : 100,
27215 "type" : "integer",
27216 "typetext" : "<integer> (100 - 999999999)"
27217 }
27218 }
27219 },
27220 "permissions" : {
27221 "description" : "You need to pass a ticket valid for the selected socket. Tickets can be created via the mtunnel API call, which will check permissions accordingly.",
27222 "user" : "all"
27223 },
27224 "returns" : {
27225 "properties" : {
27226 "port" : {
27227 "optional" : 1,
27228 "type" : "string"
27229 },
27230 "socket" : {
27231 "optional" : 1,
27232 "type" : "string"
27233 }
27234 },
27235 "type" : "object"
27236 }
27237 }
27238 },
27239 "leaf" : 1,
27240 "path" : "/nodes/{node}/qemu/{vmid}/mtunnelwebsocket",
27241 "text" : "mtunnelwebsocket"
27242 }
27243 ],
27244 "info" : {
27245 "DELETE" : {
27246 "allowtoken" : 1,
27247 "description" : "Destroy the VM and all used/owned volumes. Removes any VM specific permissions and firewall rules",
27248 "method" : "DELETE",
27249 "name" : "destroy_vm",
27250 "parameters" : {
27251 "additionalProperties" : 0,
27252 "properties" : {
27253 "destroy-unreferenced-disks" : {
27254 "default" : 0,
27255 "description" : "If set, destroy additionally all disks not referenced in the config but with a matching VMID from all enabled storages.",
27256 "optional" : 1,
27257 "type" : "boolean",
27258 "typetext" : "<boolean>"
27259 },
27260 "node" : {
27261 "description" : "The cluster node name.",
27262 "format" : "pve-node",
27263 "type" : "string",
27264 "typetext" : "<string>"
27265 },
27266 "purge" : {
27267 "description" : "Remove VMID from configurations, like backup & replication jobs and HA.",
27268 "optional" : 1,
27269 "type" : "boolean",
27270 "typetext" : "<boolean>"
27271 },
27272 "skiplock" : {
27273 "description" : "Ignore locks - only root is allowed to use this option.",
27274 "optional" : 1,
27275 "type" : "boolean",
27276 "typetext" : "<boolean>"
27277 },
27278 "vmid" : {
27279 "description" : "The (unique) ID of the VM.",
27280 "format" : "pve-vmid",
27281 "maximum" : 999999999,
27282 "minimum" : 100,
27283 "type" : "integer",
27284 "typetext" : "<integer> (100 - 999999999)"
27285 }
27286 }
27287 },
27288 "permissions" : {
27289 "check" : [
27290 "perm",
27291 "/vms/{vmid}",
27292 [
27293 "VM.Allocate"
27294 ]
27295 ]
27296 },
27297 "protected" : 1,
27298 "proxyto" : "node",
27299 "returns" : {
27300 "type" : "string"
27301 }
27302 },
27303 "GET" : {
27304 "allowtoken" : 1,
27305 "description" : "Directory index",
27306 "method" : "GET",
27307 "name" : "vmdiridx",
27308 "parameters" : {
27309 "additionalProperties" : 0,
27310 "properties" : {
27311 "node" : {
27312 "description" : "The cluster node name.",
27313 "format" : "pve-node",
27314 "type" : "string",
27315 "typetext" : "<string>"
27316 },
27317 "vmid" : {
27318 "description" : "The (unique) ID of the VM.",
27319 "format" : "pve-vmid",
27320 "maximum" : 999999999,
27321 "minimum" : 100,
27322 "type" : "integer",
27323 "typetext" : "<integer> (100 - 999999999)"
27324 }
27325 }
27326 },
27327 "permissions" : {
27328 "user" : "all"
27329 },
27330 "proxyto" : "node",
27331 "returns" : {
27332 "items" : {
27333 "properties" : {
27334 "subdir" : {
27335 "type" : "string"
27336 }
27337 },
27338 "type" : "object"
27339 },
27340 "links" : [
27341 {
27342 "href" : "{subdir}",
27343 "rel" : "child"
27344 }
27345 ],
27346 "type" : "array"
27347 }
27348 }
27349 },
27350 "leaf" : 0,
27351 "path" : "/nodes/{node}/qemu/{vmid}",
27352 "text" : "{vmid}"
27353 }
27354 ],
27355 "info" : {
27356 "GET" : {
27357 "allowtoken" : 1,
27358 "description" : "Virtual machine index (per node).",
27359 "method" : "GET",
27360 "name" : "vmlist",
27361 "parameters" : {
27362 "additionalProperties" : 0,
27363 "properties" : {
27364 "full" : {
27365 "description" : "Determine the full status of active VMs.",
27366 "optional" : 1,
27367 "type" : "boolean",
27368 "typetext" : "<boolean>"
27369 },
27370 "node" : {
27371 "description" : "The cluster node name.",
27372 "format" : "pve-node",
27373 "type" : "string",
27374 "typetext" : "<string>"
27375 }
27376 }
27377 },
27378 "permissions" : {
27379 "description" : "Only list VMs where you have VM.Audit permissons on /vms/<vmid>.",
27380 "user" : "all"
27381 },
27382 "protected" : 1,
27383 "proxyto" : "node",
27384 "returns" : {
27385 "items" : {
27386 "properties" : {
27387 "cpus" : {
27388 "description" : "Maximum usable CPUs.",
27389 "optional" : 1,
27390 "type" : "number"
27391 },
27392 "lock" : {
27393 "description" : "The current config lock, if any.",
27394 "optional" : 1,
27395 "type" : "string"
27396 },
27397 "maxdisk" : {
27398 "description" : "Root disk size in bytes.",
27399 "optional" : 1,
27400 "renderer" : "bytes",
27401 "type" : "integer"
27402 },
27403 "maxmem" : {
27404 "description" : "Maximum memory in bytes.",
27405 "optional" : 1,
27406 "renderer" : "bytes",
27407 "type" : "integer"
27408 },
27409 "name" : {
27410 "description" : "VM name.",
27411 "optional" : 1,
27412 "type" : "string"
27413 },
27414 "pid" : {
27415 "description" : "PID of running qemu process.",
27416 "optional" : 1,
27417 "type" : "integer"
27418 },
27419 "qmpstatus" : {
27420 "description" : "VM run state from the 'query-status' QMP monitor command.",
27421 "optional" : 1,
27422 "type" : "string"
27423 },
27424 "running-machine" : {
27425 "description" : "The currently running machine type (if running).",
27426 "optional" : 1,
27427 "type" : "string"
27428 },
27429 "running-qemu" : {
27430 "description" : "The currently running QEMU version (if running).",
27431 "optional" : 1,
27432 "type" : "string"
27433 },
27434 "status" : {
27435 "description" : "QEMU process status.",
27436 "enum" : [
27437 "stopped",
27438 "running"
27439 ],
27440 "type" : "string"
27441 },
27442 "tags" : {
27443 "description" : "The current configured tags, if any",
27444 "optional" : 1,
27445 "type" : "string"
27446 },
27447 "uptime" : {
27448 "description" : "Uptime.",
27449 "optional" : 1,
27450 "renderer" : "duration",
27451 "type" : "integer"
27452 },
27453 "vmid" : {
27454 "description" : "The (unique) ID of the VM.",
27455 "format" : "pve-vmid",
27456 "maximum" : 999999999,
27457 "minimum" : 100,
27458 "type" : "integer"
27459 }
27460 },
27461 "type" : "object"
27462 },
27463 "links" : [
27464 {
27465 "href" : "{vmid}",
27466 "rel" : "child"
27467 }
27468 ],
27469 "type" : "array"
27470 }
27471 },
27472 "POST" : {
27473 "allowtoken" : 1,
27474 "description" : "Create or restore a virtual machine.",
27475 "method" : "POST",
27476 "name" : "create_vm",
27477 "parameters" : {
27478 "additionalProperties" : 0,
27479 "properties" : {
27480 "acpi" : {
27481 "default" : 1,
27482 "description" : "Enable/disable ACPI.",
27483 "optional" : 1,
27484 "type" : "boolean",
27485 "typetext" : "<boolean>"
27486 },
27487 "affinity" : {
27488 "description" : "List of host cores used to execute guest processes, for example: 0,5,8-11",
27489 "format" : "pve-cpuset",
27490 "optional" : 1,
27491 "type" : "string",
27492 "typetext" : "<string>"
27493 },
27494 "agent" : {
27495 "description" : "Enable/disable communication with the QEMU Guest Agent and its properties.",
27496 "format" : {
27497 "enabled" : {
27498 "default" : 0,
27499 "default_key" : 1,
27500 "description" : "Enable/disable communication with a QEMU Guest Agent (QGA) running in the VM.",
27501 "type" : "boolean"
27502 },
27503 "freeze-fs-on-backup" : {
27504 "default" : 1,
27505 "description" : "Freeze/thaw guest filesystems on backup for consistency.",
27506 "optional" : 1,
27507 "type" : "boolean"
27508 },
27509 "fstrim_cloned_disks" : {
27510 "default" : 0,
27511 "description" : "Run fstrim after moving a disk or migrating the VM.",
27512 "optional" : 1,
27513 "type" : "boolean"
27514 },
27515 "type" : {
27516 "default" : "virtio",
27517 "description" : "Select the agent type",
27518 "enum" : [
27519 "virtio",
27520 "isa"
27521 ],
27522 "optional" : 1,
27523 "type" : "string"
27524 }
27525 },
27526 "optional" : 1,
27527 "type" : "string",
27528 "typetext" : "[enabled=]<1|0> [,freeze-fs-on-backup=<1|0>] [,fstrim_cloned_disks=<1|0>] [,type=<virtio|isa>]"
27529 },
27530 "arch" : {
27531 "description" : "Virtual processor architecture. Defaults to the host.",
27532 "enum" : [
27533 "x86_64",
27534 "aarch64"
27535 ],
27536 "optional" : 1,
27537 "type" : "string"
27538 },
27539 "archive" : {
27540 "description" : "The backup archive. Either the file system path to a .tar or .vma file (use '-' to pipe data from stdin) or a proxmox storage backup volume identifier.",
27541 "maxLength" : 255,
27542 "optional" : 1,
27543 "type" : "string",
27544 "typetext" : "<string>"
27545 },
27546 "args" : {
27547 "description" : "Arbitrary arguments passed to kvm.",
27548 "optional" : 1,
27549 "type" : "string",
27550 "typetext" : "<string>",
27551 "verbose_description" : "Arbitrary arguments passed to kvm, for example:\n\nargs: -no-reboot -smbios 'type=0,vendor=FOO'\n\nNOTE: this option is for experts only.\n"
27552 },
27553 "audio0" : {
27554 "description" : "Configure a audio device, useful in combination with QXL/Spice.",
27555 "format" : {
27556 "device" : {
27557 "description" : "Configure an audio device.",
27558 "enum" : [
27559 "ich9-intel-hda",
27560 "intel-hda",
27561 "AC97"
27562 ],
27563 "type" : "string"
27564 },
27565 "driver" : {
27566 "default" : "spice",
27567 "description" : "Driver backend for the audio device.",
27568 "enum" : [
27569 "spice",
27570 "none"
27571 ],
27572 "optional" : 1,
27573 "type" : "string"
27574 }
27575 },
27576 "optional" : 1,
27577 "type" : "string",
27578 "typetext" : "device=<ich9-intel-hda|intel-hda|AC97> [,driver=<spice|none>]"
27579 },
27580 "autostart" : {
27581 "default" : 0,
27582 "description" : "Automatic restart after crash (currently ignored).",
27583 "optional" : 1,
27584 "type" : "boolean",
27585 "typetext" : "<boolean>"
27586 },
27587 "balloon" : {
27588 "description" : "Amount of target RAM for the VM in MiB. Using zero disables the ballon driver.",
27589 "minimum" : 0,
27590 "optional" : 1,
27591 "type" : "integer",
27592 "typetext" : "<integer> (0 - N)"
27593 },
27594 "bios" : {
27595 "default" : "seabios",
27596 "description" : "Select BIOS implementation.",
27597 "enum" : [
27598 "seabios",
27599 "ovmf"
27600 ],
27601 "optional" : 1,
27602 "type" : "string"
27603 },
27604 "boot" : {
27605 "description" : "Specify guest boot order. Use the 'order=' sub-property as usage with no key or 'legacy=' is deprecated.",
27606 "format" : "pve-qm-boot",
27607 "optional" : 1,
27608 "type" : "string",
27609 "typetext" : "[[legacy=]<[acdn]{1,4}>] [,order=<device[;device...]>]"
27610 },
27611 "bootdisk" : {
27612 "description" : "Enable booting from specified disk. Deprecated: Use 'boot: order=foo;bar' instead.",
27613 "format" : "pve-qm-bootdisk",
27614 "optional" : 1,
27615 "pattern" : "(ide|sata|scsi|virtio)\\d+",
27616 "type" : "string"
27617 },
27618 "bwlimit" : {
27619 "default" : "restore limit from datacenter or storage config",
27620 "description" : "Override I/O bandwidth limit (in KiB/s).",
27621 "minimum" : "0",
27622 "optional" : 1,
27623 "type" : "integer",
27624 "typetext" : "<integer> (0 - N)"
27625 },
27626 "cdrom" : {
27627 "description" : "This is an alias for option -ide2",
27628 "format" : "pve-qm-ide",
27629 "optional" : 1,
27630 "type" : "string",
27631 "typetext" : "<volume>"
27632 },
27633 "cicustom" : {
27634 "description" : "cloud-init: Specify custom files to replace the automatically generated ones at start.",
27635 "format" : "pve-qm-cicustom",
27636 "optional" : 1,
27637 "type" : "string",
27638 "typetext" : "[meta=<volume>] [,network=<volume>] [,user=<volume>] [,vendor=<volume>]"
27639 },
27640 "cipassword" : {
27641 "description" : "cloud-init: Password to assign the user. Using this is generally not recommended. Use ssh keys instead. Also note that older cloud-init versions do not support hashed passwords.",
27642 "optional" : 1,
27643 "type" : "string",
27644 "typetext" : "<string>"
27645 },
27646 "citype" : {
27647 "description" : "Specifies the cloud-init configuration format. The default depends on the configured operating system type (`ostype`. We use the `nocloud` format for Linux, and `configdrive2` for windows.",
27648 "enum" : [
27649 "configdrive2",
27650 "nocloud",
27651 "opennebula"
27652 ],
27653 "optional" : 1,
27654 "type" : "string"
27655 },
27656 "ciupgrade" : {
27657 "default" : 1,
27658 "description" : "cloud-init: do an automatic package upgrade after the first boot.",
27659 "optional" : 1,
27660 "type" : "boolean",
27661 "typetext" : "<boolean>"
27662 },
27663 "ciuser" : {
27664 "description" : "cloud-init: User name to change ssh keys and password for instead of the image's configured default user.",
27665 "optional" : 1,
27666 "type" : "string",
27667 "typetext" : "<string>"
27668 },
27669 "cores" : {
27670 "default" : 1,
27671 "description" : "The number of cores per socket.",
27672 "minimum" : 1,
27673 "optional" : 1,
27674 "type" : "integer",
27675 "typetext" : "<integer> (1 - N)"
27676 },
27677 "cpu" : {
27678 "description" : "Emulated CPU type.",
27679 "format" : "pve-vm-cpu-conf",
27680 "optional" : 1,
27681 "type" : "string",
27682 "typetext" : "[[cputype=]<string>] [,flags=<+FLAG[;-FLAG...]>] [,hidden=<1|0>] [,hv-vendor-id=<vendor-id>] [,phys-bits=<8-64|host>] [,reported-model=<enum>]"
27683 },
27684 "cpulimit" : {
27685 "default" : 0,
27686 "description" : "Limit of CPU usage.",
27687 "maximum" : 128,
27688 "minimum" : 0,
27689 "optional" : 1,
27690 "type" : "number",
27691 "typetext" : "<number> (0 - 128)",
27692 "verbose_description" : "Limit of CPU usage.\n\nNOTE: If the computer has 2 CPUs, it has total of '2' CPU time. Value '0' indicates no CPU limit."
27693 },
27694 "cpuunits" : {
27695 "default" : "cgroup v1: 1024, cgroup v2: 100",
27696 "description" : "CPU weight for a VM, will be clamped to [1, 10000] in cgroup v2.",
27697 "maximum" : 262144,
27698 "minimum" : 1,
27699 "optional" : 1,
27700 "type" : "integer",
27701 "typetext" : "<integer> (1 - 262144)",
27702 "verbose_description" : "CPU weight for a VM. Argument is used in the kernel fair scheduler. The larger the number is, the more CPU time this VM gets. Number is relative to weights of all the other running VMs."
27703 },
27704 "description" : {
27705 "description" : "Description for the VM. Shown in the web-interface VM's summary. This is saved as comment inside the configuration file.",
27706 "maxLength" : 8192,
27707 "optional" : 1,
27708 "type" : "string",
27709 "typetext" : "<string>"
27710 },
27711 "efidisk0" : {
27712 "description" : "Configure a disk for storing EFI vars. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. Note that SIZE_IN_GiB is ignored here and that the default EFI vars are copied to the volume instead. Use STORAGE_ID:0 and the 'import-from' parameter to import from an existing volume.",
27713 "format" : {
27714 "efitype" : {
27715 "default" : "2m",
27716 "description" : "Size and type of the OVMF EFI vars. '4m' is newer and recommended, and required for Secure Boot. For backwards compatibility, '2m' is used if not otherwise specified. Ignored for VMs with arch=aarch64 (ARM).",
27717 "enum" : [
27718 "2m",
27719 "4m"
27720 ],
27721 "optional" : 1,
27722 "type" : "string"
27723 },
27724 "file" : {
27725 "default_key" : 1,
27726 "description" : "The drive's backing volume.",
27727 "format" : "pve-volume-id-or-qm-path",
27728 "format_description" : "volume",
27729 "type" : "string"
27730 },
27731 "format" : {
27732 "description" : "The drive's backing file's data format.",
27733 "enum" : [
27734 "raw",
27735 "cow",
27736 "qcow",
27737 "qed",
27738 "qcow2",
27739 "vmdk",
27740 "cloop"
27741 ],
27742 "optional" : 1,
27743 "type" : "string"
27744 },
27745 "import-from" : {
27746 "description" : "Create a new disk, importing from this source (volume ID or absolute path). When an absolute path is specified, it's up to you to ensure that the source is not actively used by another process during the import!",
27747 "format" : "pve-volume-id-or-absolute-path",
27748 "format_description" : "source volume",
27749 "optional" : 1,
27750 "type" : "string"
27751 },
27752 "pre-enrolled-keys" : {
27753 "default" : 0,
27754 "description" : "Use am EFI vars template with distribution-specific and Microsoft Standard keys enrolled, if used with 'efitype=4m'. Note that this will enable Secure Boot by default, though it can still be turned off from within the VM.",
27755 "optional" : 1,
27756 "type" : "boolean"
27757 },
27758 "size" : {
27759 "description" : "Disk size. This is purely informational and has no effect.",
27760 "format" : "disk-size",
27761 "format_description" : "DiskSize",
27762 "optional" : 1,
27763 "type" : "string"
27764 },
27765 "volume" : {
27766 "alias" : "file"
27767 }
27768 },
27769 "optional" : 1,
27770 "type" : "string",
27771 "typetext" : "[file=]<volume> [,efitype=<2m|4m>] [,format=<enum>] [,import-from=<source volume>] [,pre-enrolled-keys=<1|0>] [,size=<DiskSize>]"
27772 },
27773 "force" : {
27774 "description" : "Allow to overwrite existing VM.",
27775 "optional" : 1,
27776 "requires" : "archive",
27777 "type" : "boolean",
27778 "typetext" : "<boolean>"
27779 },
27780 "freeze" : {
27781 "description" : "Freeze CPU at startup (use 'c' monitor command to start execution).",
27782 "optional" : 1,
27783 "type" : "boolean",
27784 "typetext" : "<boolean>"
27785 },
27786 "hookscript" : {
27787 "description" : "Script that will be executed during various steps in the vms lifetime.",
27788 "format" : "pve-volume-id",
27789 "optional" : 1,
27790 "type" : "string",
27791 "typetext" : "<string>"
27792 },
27793 "hostpci[n]" : {
27794 "description" : "Map host PCI devices into guest.",
27795 "format" : "pve-qm-hostpci",
27796 "optional" : 1,
27797 "type" : "string",
27798 "typetext" : "[[host=]<HOSTPCIID[;HOSTPCIID2...]>] [,device-id=<hex id>] [,legacy-igd=<1|0>] [,mapping=<mapping-id>] [,mdev=<string>] [,pcie=<1|0>] [,rombar=<1|0>] [,romfile=<string>] [,sub-device-id=<hex id>] [,sub-vendor-id=<hex id>] [,vendor-id=<hex id>] [,x-vga=<1|0>]",
27799 "verbose_description" : "Map host PCI devices into guest.\n\nNOTE: This option allows direct access to host hardware. So it is no longer\npossible to migrate such machines - use with special care.\n\nCAUTION: Experimental! User reported problems with this option.\n"
27800 },
27801 "hotplug" : {
27802 "default" : "network,disk,usb",
27803 "description" : "Selectively enable hotplug features. This is a comma separated list of hotplug features: 'network', 'disk', 'cpu', 'memory', 'usb' and 'cloudinit'. Use '0' to disable hotplug completely. Using '1' as value is an alias for the default `network,disk,usb`. USB hotplugging is possible for guests with machine version >= 7.1 and ostype l26 or windows > 7.",
27804 "format" : "pve-hotplug-features",
27805 "optional" : 1,
27806 "type" : "string",
27807 "typetext" : "<string>"
27808 },
27809 "hugepages" : {
27810 "description" : "Enable/disable hugepages memory.",
27811 "enum" : [
27812 "any",
27813 "2",
27814 "1024"
27815 ],
27816 "optional" : 1,
27817 "type" : "string"
27818 },
27819 "ide[n]" : {
27820 "description" : "Use volume as IDE hard disk or CD-ROM (n is 0 to 3). Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. Use STORAGE_ID:0 and the 'import-from' parameter to import from an existing volume.",
27821 "format" : {
27822 "aio" : {
27823 "description" : "AIO type to use.",
27824 "enum" : [
27825 "native",
27826 "threads",
27827 "io_uring"
27828 ],
27829 "optional" : 1,
27830 "type" : "string"
27831 },
27832 "backup" : {
27833 "description" : "Whether the drive should be included when making backups.",
27834 "optional" : 1,
27835 "type" : "boolean"
27836 },
27837 "bps" : {
27838 "description" : "Maximum r/w speed in bytes per second.",
27839 "format_description" : "bps",
27840 "optional" : 1,
27841 "type" : "integer"
27842 },
27843 "bps_max_length" : {
27844 "description" : "Maximum length of I/O bursts in seconds.",
27845 "format_description" : "seconds",
27846 "minimum" : 1,
27847 "optional" : 1,
27848 "type" : "integer"
27849 },
27850 "bps_rd" : {
27851 "description" : "Maximum read speed in bytes per second.",
27852 "format_description" : "bps",
27853 "optional" : 1,
27854 "type" : "integer"
27855 },
27856 "bps_rd_length" : {
27857 "alias" : "bps_rd_max_length"
27858 },
27859 "bps_rd_max_length" : {
27860 "description" : "Maximum length of read I/O bursts in seconds.",
27861 "format_description" : "seconds",
27862 "minimum" : 1,
27863 "optional" : 1,
27864 "type" : "integer"
27865 },
27866 "bps_wr" : {
27867 "description" : "Maximum write speed in bytes per second.",
27868 "format_description" : "bps",
27869 "optional" : 1,
27870 "type" : "integer"
27871 },
27872 "bps_wr_length" : {
27873 "alias" : "bps_wr_max_length"
27874 },
27875 "bps_wr_max_length" : {
27876 "description" : "Maximum length of write I/O bursts in seconds.",
27877 "format_description" : "seconds",
27878 "minimum" : 1,
27879 "optional" : 1,
27880 "type" : "integer"
27881 },
27882 "cache" : {
27883 "description" : "The drive's cache mode",
27884 "enum" : [
27885 "none",
27886 "writethrough",
27887 "writeback",
27888 "unsafe",
27889 "directsync"
27890 ],
27891 "optional" : 1,
27892 "type" : "string"
27893 },
27894 "cyls" : {
27895 "description" : "Force the drive's physical geometry to have a specific cylinder count.",
27896 "optional" : 1,
27897 "type" : "integer"
27898 },
27899 "detect_zeroes" : {
27900 "description" : "Controls whether to detect and try to optimize writes of zeroes.",
27901 "optional" : 1,
27902 "type" : "boolean"
27903 },
27904 "discard" : {
27905 "description" : "Controls whether to pass discard/trim requests to the underlying storage.",
27906 "enum" : [
27907 "ignore",
27908 "on"
27909 ],
27910 "optional" : 1,
27911 "type" : "string"
27912 },
27913 "file" : {
27914 "default_key" : 1,
27915 "description" : "The drive's backing volume.",
27916 "format" : "pve-volume-id-or-qm-path",
27917 "format_description" : "volume",
27918 "type" : "string"
27919 },
27920 "format" : {
27921 "description" : "The drive's backing file's data format.",
27922 "enum" : [
27923 "raw",
27924 "cow",
27925 "qcow",
27926 "qed",
27927 "qcow2",
27928 "vmdk",
27929 "cloop"
27930 ],
27931 "optional" : 1,
27932 "type" : "string"
27933 },
27934 "heads" : {
27935 "description" : "Force the drive's physical geometry to have a specific head count.",
27936 "optional" : 1,
27937 "type" : "integer"
27938 },
27939 "import-from" : {
27940 "description" : "Create a new disk, importing from this source (volume ID or absolute path). When an absolute path is specified, it's up to you to ensure that the source is not actively used by another process during the import!",
27941 "format" : "pve-volume-id-or-absolute-path",
27942 "format_description" : "source volume",
27943 "optional" : 1,
27944 "type" : "string"
27945 },
27946 "iops" : {
27947 "description" : "Maximum r/w I/O in operations per second.",
27948 "format_description" : "iops",
27949 "optional" : 1,
27950 "type" : "integer"
27951 },
27952 "iops_max" : {
27953 "description" : "Maximum unthrottled r/w I/O pool in operations per second.",
27954 "format_description" : "iops",
27955 "optional" : 1,
27956 "type" : "integer"
27957 },
27958 "iops_max_length" : {
27959 "description" : "Maximum length of I/O bursts in seconds.",
27960 "format_description" : "seconds",
27961 "minimum" : 1,
27962 "optional" : 1,
27963 "type" : "integer"
27964 },
27965 "iops_rd" : {
27966 "description" : "Maximum read I/O in operations per second.",
27967 "format_description" : "iops",
27968 "optional" : 1,
27969 "type" : "integer"
27970 },
27971 "iops_rd_length" : {
27972 "alias" : "iops_rd_max_length"
27973 },
27974 "iops_rd_max" : {
27975 "description" : "Maximum unthrottled read I/O pool in operations per second.",
27976 "format_description" : "iops",
27977 "optional" : 1,
27978 "type" : "integer"
27979 },
27980 "iops_rd_max_length" : {
27981 "description" : "Maximum length of read I/O bursts in seconds.",
27982 "format_description" : "seconds",
27983 "minimum" : 1,
27984 "optional" : 1,
27985 "type" : "integer"
27986 },
27987 "iops_wr" : {
27988 "description" : "Maximum write I/O in operations per second.",
27989 "format_description" : "iops",
27990 "optional" : 1,
27991 "type" : "integer"
27992 },
27993 "iops_wr_length" : {
27994 "alias" : "iops_wr_max_length"
27995 },
27996 "iops_wr_max" : {
27997 "description" : "Maximum unthrottled write I/O pool in operations per second.",
27998 "format_description" : "iops",
27999 "optional" : 1,
28000 "type" : "integer"
28001 },
28002 "iops_wr_max_length" : {
28003 "description" : "Maximum length of write I/O bursts in seconds.",
28004 "format_description" : "seconds",
28005 "minimum" : 1,
28006 "optional" : 1,
28007 "type" : "integer"
28008 },
28009 "mbps" : {
28010 "description" : "Maximum r/w speed in megabytes per second.",
28011 "format_description" : "mbps",
28012 "optional" : 1,
28013 "type" : "number"
28014 },
28015 "mbps_max" : {
28016 "description" : "Maximum unthrottled r/w pool in megabytes per second.",
28017 "format_description" : "mbps",
28018 "optional" : 1,
28019 "type" : "number"
28020 },
28021 "mbps_rd" : {
28022 "description" : "Maximum read speed in megabytes per second.",
28023 "format_description" : "mbps",
28024 "optional" : 1,
28025 "type" : "number"
28026 },
28027 "mbps_rd_max" : {
28028 "description" : "Maximum unthrottled read pool in megabytes per second.",
28029 "format_description" : "mbps",
28030 "optional" : 1,
28031 "type" : "number"
28032 },
28033 "mbps_wr" : {
28034 "description" : "Maximum write speed in megabytes per second.",
28035 "format_description" : "mbps",
28036 "optional" : 1,
28037 "type" : "number"
28038 },
28039 "mbps_wr_max" : {
28040 "description" : "Maximum unthrottled write pool in megabytes per second.",
28041 "format_description" : "mbps",
28042 "optional" : 1,
28043 "type" : "number"
28044 },
28045 "media" : {
28046 "default" : "disk",
28047 "description" : "The drive's media type.",
28048 "enum" : [
28049 "cdrom",
28050 "disk"
28051 ],
28052 "optional" : 1,
28053 "type" : "string"
28054 },
28055 "model" : {
28056 "description" : "The drive's reported model name, url-encoded, up to 40 bytes long.",
28057 "format" : "urlencoded",
28058 "format_description" : "model",
28059 "maxLength" : 120,
28060 "optional" : 1,
28061 "type" : "string"
28062 },
28063 "replicate" : {
28064 "default" : 1,
28065 "description" : "Whether the drive should considered for replication jobs.",
28066 "optional" : 1,
28067 "type" : "boolean"
28068 },
28069 "rerror" : {
28070 "description" : "Read error action.",
28071 "enum" : [
28072 "ignore",
28073 "report",
28074 "stop"
28075 ],
28076 "optional" : 1,
28077 "type" : "string"
28078 },
28079 "secs" : {
28080 "description" : "Force the drive's physical geometry to have a specific sector count.",
28081 "optional" : 1,
28082 "type" : "integer"
28083 },
28084 "serial" : {
28085 "description" : "The drive's reported serial number, url-encoded, up to 20 bytes long.",
28086 "format" : "urlencoded",
28087 "format_description" : "serial",
28088 "maxLength" : 60,
28089 "optional" : 1,
28090 "type" : "string"
28091 },
28092 "shared" : {
28093 "default" : 0,
28094 "description" : "Mark this locally-managed volume as available on all nodes",
28095 "optional" : 1,
28096 "type" : "boolean",
28097 "verbose_description" : "Mark this locally-managed volume as available on all nodes.\n\nWARNING: This option does not share the volume automatically, it assumes it is shared already!"
28098 },
28099 "size" : {
28100 "description" : "Disk size. This is purely informational and has no effect.",
28101 "format" : "disk-size",
28102 "format_description" : "DiskSize",
28103 "optional" : 1,
28104 "type" : "string"
28105 },
28106 "snapshot" : {
28107 "description" : "Controls qemu's snapshot mode feature. If activated, changes made to the disk are temporary and will be discarded when the VM is shutdown.",
28108 "optional" : 1,
28109 "type" : "boolean"
28110 },
28111 "ssd" : {
28112 "description" : "Whether to expose this drive as an SSD, rather than a rotational hard disk.",
28113 "optional" : 1,
28114 "type" : "boolean"
28115 },
28116 "trans" : {
28117 "description" : "Force disk geometry bios translation mode.",
28118 "enum" : [
28119 "none",
28120 "lba",
28121 "auto"
28122 ],
28123 "optional" : 1,
28124 "type" : "string"
28125 },
28126 "volume" : {
28127 "alias" : "file"
28128 },
28129 "werror" : {
28130 "description" : "Write error action.",
28131 "enum" : [
28132 "enospc",
28133 "ignore",
28134 "report",
28135 "stop"
28136 ],
28137 "optional" : 1,
28138 "type" : "string"
28139 },
28140 "wwn" : {
28141 "description" : "The drive's worldwide name, encoded as 16 bytes hex string, prefixed by '0x'.",
28142 "format_description" : "wwn",
28143 "optional" : 1,
28144 "pattern" : "(?^:^(0x)[0-9a-fA-F]{16})",
28145 "type" : "string"
28146 }
28147 },
28148 "optional" : 1,
28149 "type" : "string",
28150 "typetext" : "[file=]<volume> [,aio=<native|threads|io_uring>] [,backup=<1|0>] [,bps=<bps>] [,bps_max_length=<seconds>] [,bps_rd=<bps>] [,bps_rd_max_length=<seconds>] [,bps_wr=<bps>] [,bps_wr_max_length=<seconds>] [,cache=<enum>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<enum>] [,heads=<integer>] [,import-from=<source volume>] [,iops=<iops>] [,iops_max=<iops>] [,iops_max_length=<seconds>] [,iops_rd=<iops>] [,iops_rd_max=<iops>] [,iops_rd_max_length=<seconds>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,iops_wr_max_length=<seconds>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,model=<model>] [,replicate=<1|0>] [,rerror=<ignore|report|stop>] [,secs=<integer>] [,serial=<serial>] [,shared=<1|0>] [,size=<DiskSize>] [,snapshot=<1|0>] [,ssd=<1|0>] [,trans=<none|lba|auto>] [,werror=<enum>] [,wwn=<wwn>]"
28151 },
28152 "ipconfig[n]" : {
28153 "description" : "cloud-init: Specify IP addresses and gateways for the corresponding interface.\n\nIP addresses use CIDR notation, gateways are optional but need an IP of the same type specified.\n\nThe special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit\ngateway should be provided.\nFor IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires\ncloud-init 19.4 or newer.\n\nIf cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using\ndhcp on IPv4.\n",
28154 "format" : "pve-qm-ipconfig",
28155 "optional" : 1,
28156 "type" : "string",
28157 "typetext" : "[gw=<GatewayIPv4>] [,gw6=<GatewayIPv6>] [,ip=<IPv4Format/CIDR>] [,ip6=<IPv6Format/CIDR>]"
28158 },
28159 "ivshmem" : {
28160 "description" : "Inter-VM shared memory. Useful for direct communication between VMs, or to the host.",
28161 "format" : {
28162 "name" : {
28163 "description" : "The name of the file. Will be prefixed with 'pve-shm-'. Default is the VMID. Will be deleted when the VM is stopped.",
28164 "format_description" : "string",
28165 "optional" : 1,
28166 "pattern" : "[a-zA-Z0-9\\-]+",
28167 "type" : "string"
28168 },
28169 "size" : {
28170 "description" : "The size of the file in MB.",
28171 "minimum" : 1,
28172 "type" : "integer"
28173 }
28174 },
28175 "optional" : 1,
28176 "type" : "string",
28177 "typetext" : "size=<integer> [,name=<string>]"
28178 },
28179 "keephugepages" : {
28180 "default" : 0,
28181 "description" : "Use together with hugepages. If enabled, hugepages will not not be deleted after VM shutdown and can be used for subsequent starts.",
28182 "optional" : 1,
28183 "type" : "boolean",
28184 "typetext" : "<boolean>"
28185 },
28186 "keyboard" : {
28187 "default" : null,
28188 "description" : "Keyboard layout for VNC server. This option is generally not required and is often better handled from within the guest OS.",
28189 "enum" : [
28190 "de",
28191 "de-ch",
28192 "da",
28193 "en-gb",
28194 "en-us",
28195 "es",
28196 "fi",
28197 "fr",
28198 "fr-be",
28199 "fr-ca",
28200 "fr-ch",
28201 "hu",
28202 "is",
28203 "it",
28204 "ja",
28205 "lt",
28206 "mk",
28207 "nl",
28208 "no",
28209 "pl",
28210 "pt",
28211 "pt-br",
28212 "sv",
28213 "sl",
28214 "tr"
28215 ],
28216 "optional" : 1,
28217 "type" : "string"
28218 },
28219 "kvm" : {
28220 "default" : 1,
28221 "description" : "Enable/disable KVM hardware virtualization.",
28222 "optional" : 1,
28223 "type" : "boolean",
28224 "typetext" : "<boolean>"
28225 },
28226 "live-restore" : {
28227 "description" : "Start the VM immediately while importing or restoring in the background.",
28228 "optional" : 1,
28229 "type" : "boolean",
28230 "typetext" : "<boolean>"
28231 },
28232 "localtime" : {
28233 "description" : "Set the real time clock (RTC) to local time. This is enabled by default if the `ostype` indicates a Microsoft Windows OS.",
28234 "optional" : 1,
28235 "type" : "boolean",
28236 "typetext" : "<boolean>"
28237 },
28238 "lock" : {
28239 "description" : "Lock/unlock the VM.",
28240 "enum" : [
28241 "backup",
28242 "clone",
28243 "create",
28244 "migrate",
28245 "rollback",
28246 "snapshot",
28247 "snapshot-delete",
28248 "suspending",
28249 "suspended"
28250 ],
28251 "optional" : 1,
28252 "type" : "string"
28253 },
28254 "machine" : {
28255 "description" : "Specify the QEMU machine.",
28256 "format" : {
28257 "type" : {
28258 "default_key" : 1,
28259 "description" : "Specifies the QEMU machine type.",
28260 "format_description" : "machine type",
28261 "maxLength" : 40,
28262 "optional" : 1,
28263 "pattern" : "(pc|pc(-i440fx)?-\\d+(\\.\\d+)+(\\+pve\\d+)?(\\.pxe)?|q35|pc-q35-\\d+(\\.\\d+)+(\\+pve\\d+)?(\\.pxe)?|virt(?:-\\d+(\\.\\d+)+)?(\\+pve\\d+)?)",
28264 "type" : "string"
28265 },
28266 "viommu" : {
28267 "description" : "Enable and set guest vIOMMU variant (Intel vIOMMU needs q35 to be set as machine type).",
28268 "enum" : [
28269 "intel",
28270 "virtio"
28271 ],
28272 "optional" : 1,
28273 "type" : "string"
28274 }
28275 },
28276 "optional" : 1,
28277 "type" : "string",
28278 "typetext" : "[[type=]<machine type>] [,viommu=<intel|virtio>]"
28279 },
28280 "memory" : {
28281 "description" : "Memory properties.",
28282 "format" : {
28283 "current" : {
28284 "default" : 512,
28285 "default_key" : 1,
28286 "description" : "Current amount of online RAM for the VM in MiB. This is the maximum available memory when you use the balloon device.",
28287 "minimum" : 16,
28288 "type" : "integer"
28289 }
28290 },
28291 "optional" : 1,
28292 "type" : "string",
28293 "typetext" : "[current=]<integer>"
28294 },
28295 "migrate_downtime" : {
28296 "default" : 0.1,
28297 "description" : "Set maximum tolerated downtime (in seconds) for migrations.",
28298 "minimum" : 0,
28299 "optional" : 1,
28300 "type" : "number",
28301 "typetext" : "<number> (0 - N)"
28302 },
28303 "migrate_speed" : {
28304 "default" : 0,
28305 "description" : "Set maximum speed (in MB/s) for migrations. Value 0 is no limit.",
28306 "minimum" : 0,
28307 "optional" : 1,
28308 "type" : "integer",
28309 "typetext" : "<integer> (0 - N)"
28310 },
28311 "name" : {
28312 "description" : "Set a name for the VM. Only used on the configuration web interface.",
28313 "format" : "dns-name",
28314 "optional" : 1,
28315 "type" : "string",
28316 "typetext" : "<string>"
28317 },
28318 "nameserver" : {
28319 "description" : "cloud-init: Sets DNS server IP address for a container. Create will automatically use the setting from the host if neither searchdomain nor nameserver are set.",
28320 "format" : "address-list",
28321 "optional" : 1,
28322 "type" : "string",
28323 "typetext" : "<string>"
28324 },
28325 "net[n]" : {
28326 "description" : "Specify network devices.",
28327 "format" : {
28328 "bridge" : {
28329 "description" : "Bridge to attach the network device to. The Proxmox VE standard bridge\nis called 'vmbr0'.\n\nIf you do not specify a bridge, we create a kvm user (NATed) network\ndevice, which provides DHCP and DNS services. The following addresses\nare used:\n\n 10.0.2.2 Gateway\n 10.0.2.3 DNS Server\n 10.0.2.4 SMB Server\n\nThe DHCP server assign addresses to the guest starting from 10.0.2.15.\n",
28330 "format" : "pve-bridge-id",
28331 "format_description" : "bridge",
28332 "optional" : 1,
28333 "type" : "string"
28334 },
28335 "e1000" : {
28336 "alias" : "macaddr",
28337 "keyAlias" : "model"
28338 },
28339 "e1000-82540em" : {
28340 "alias" : "macaddr",
28341 "keyAlias" : "model"
28342 },
28343 "e1000-82544gc" : {
28344 "alias" : "macaddr",
28345 "keyAlias" : "model"
28346 },
28347 "e1000-82545em" : {
28348 "alias" : "macaddr",
28349 "keyAlias" : "model"
28350 },
28351 "e1000e" : {
28352 "alias" : "macaddr",
28353 "keyAlias" : "model"
28354 },
28355 "firewall" : {
28356 "description" : "Whether this interface should be protected by the firewall.",
28357 "optional" : 1,
28358 "type" : "boolean"
28359 },
28360 "i82551" : {
28361 "alias" : "macaddr",
28362 "keyAlias" : "model"
28363 },
28364 "i82557b" : {
28365 "alias" : "macaddr",
28366 "keyAlias" : "model"
28367 },
28368 "i82559er" : {
28369 "alias" : "macaddr",
28370 "keyAlias" : "model"
28371 },
28372 "link_down" : {
28373 "description" : "Whether this interface should be disconnected (like pulling the plug).",
28374 "optional" : 1,
28375 "type" : "boolean"
28376 },
28377 "macaddr" : {
28378 "description" : "MAC address. That address must be unique withing your network. This is automatically generated if not specified.",
28379 "format" : "mac-addr",
28380 "format_description" : "XX:XX:XX:XX:XX:XX",
28381 "optional" : 1,
28382 "type" : "string",
28383 "verbose_description" : "A common MAC address with the I/G (Individual/Group) bit not set."
28384 },
28385 "model" : {
28386 "default_key" : 1,
28387 "description" : "Network Card Model. The 'virtio' model provides the best performance with very low CPU overhead. If your guest does not support this driver, it is usually best to use 'e1000'.",
28388 "enum" : [
28389 "e1000",
28390 "e1000-82540em",
28391 "e1000-82544gc",
28392 "e1000-82545em",
28393 "e1000e",
28394 "i82551",
28395 "i82557b",
28396 "i82559er",
28397 "ne2k_isa",
28398 "ne2k_pci",
28399 "pcnet",
28400 "rtl8139",
28401 "virtio",
28402 "vmxnet3"
28403 ],
28404 "type" : "string"
28405 },
28406 "mtu" : {
28407 "description" : "Force MTU, for VirtIO only. Set to '1' to use the bridge MTU",
28408 "maximum" : 65520,
28409 "minimum" : 1,
28410 "optional" : 1,
28411 "type" : "integer"
28412 },
28413 "ne2k_isa" : {
28414 "alias" : "macaddr",
28415 "keyAlias" : "model"
28416 },
28417 "ne2k_pci" : {
28418 "alias" : "macaddr",
28419 "keyAlias" : "model"
28420 },
28421 "pcnet" : {
28422 "alias" : "macaddr",
28423 "keyAlias" : "model"
28424 },
28425 "queues" : {
28426 "description" : "Number of packet queues to be used on the device.",
28427 "maximum" : 64,
28428 "minimum" : 0,
28429 "optional" : 1,
28430 "type" : "integer"
28431 },
28432 "rate" : {
28433 "description" : "Rate limit in mbps (megabytes per second) as floating point number.",
28434 "minimum" : 0,
28435 "optional" : 1,
28436 "type" : "number"
28437 },
28438 "rtl8139" : {
28439 "alias" : "macaddr",
28440 "keyAlias" : "model"
28441 },
28442 "tag" : {
28443 "description" : "VLAN tag to apply to packets on this interface.",
28444 "maximum" : 4094,
28445 "minimum" : 1,
28446 "optional" : 1,
28447 "type" : "integer"
28448 },
28449 "trunks" : {
28450 "description" : "VLAN trunks to pass through this interface.",
28451 "format_description" : "vlanid[;vlanid...]",
28452 "optional" : 1,
28453 "pattern" : "(?^:\\d+(?:-\\d+)?(?:;\\d+(?:-\\d+)?)*)",
28454 "type" : "string"
28455 },
28456 "virtio" : {
28457 "alias" : "macaddr",
28458 "keyAlias" : "model"
28459 },
28460 "vmxnet3" : {
28461 "alias" : "macaddr",
28462 "keyAlias" : "model"
28463 }
28464 },
28465 "optional" : 1,
28466 "type" : "string",
28467 "typetext" : "[model=]<enum> [,bridge=<bridge>] [,firewall=<1|0>] [,link_down=<1|0>] [,macaddr=<XX:XX:XX:XX:XX:XX>] [,mtu=<integer>] [,queues=<integer>] [,rate=<number>] [,tag=<integer>] [,trunks=<vlanid[;vlanid...]>] [,<model>=<macaddr>]"
28468 },
28469 "node" : {
28470 "description" : "The cluster node name.",
28471 "format" : "pve-node",
28472 "type" : "string",
28473 "typetext" : "<string>"
28474 },
28475 "numa" : {
28476 "default" : 0,
28477 "description" : "Enable/disable NUMA.",
28478 "optional" : 1,
28479 "type" : "boolean",
28480 "typetext" : "<boolean>"
28481 },
28482 "numa[n]" : {
28483 "description" : "NUMA topology.",
28484 "format" : {
28485 "cpus" : {
28486 "description" : "CPUs accessing this NUMA node.",
28487 "format_description" : "id[-id];...",
28488 "pattern" : "(?^:\\d+(?:-\\d+)?(?:;\\d+(?:-\\d+)?)*)",
28489 "type" : "string"
28490 },
28491 "hostnodes" : {
28492 "description" : "Host NUMA nodes to use.",
28493 "format_description" : "id[-id];...",
28494 "optional" : 1,
28495 "pattern" : "(?^:\\d+(?:-\\d+)?(?:;\\d+(?:-\\d+)?)*)",
28496 "type" : "string"
28497 },
28498 "memory" : {
28499 "description" : "Amount of memory this NUMA node provides.",
28500 "optional" : 1,
28501 "type" : "number"
28502 },
28503 "policy" : {
28504 "description" : "NUMA allocation policy.",
28505 "enum" : [
28506 "preferred",
28507 "bind",
28508 "interleave"
28509 ],
28510 "optional" : 1,
28511 "type" : "string"
28512 }
28513 },
28514 "optional" : 1,
28515 "type" : "string",
28516 "typetext" : "cpus=<id[-id];...> [,hostnodes=<id[-id];...>] [,memory=<number>] [,policy=<preferred|bind|interleave>]"
28517 },
28518 "onboot" : {
28519 "default" : 0,
28520 "description" : "Specifies whether a VM will be started during system bootup.",
28521 "optional" : 1,
28522 "type" : "boolean",
28523 "typetext" : "<boolean>"
28524 },
28525 "ostype" : {
28526 "description" : "Specify guest operating system.",
28527 "enum" : [
28528 "other",
28529 "wxp",
28530 "w2k",
28531 "w2k3",
28532 "w2k8",
28533 "wvista",
28534 "win7",
28535 "win8",
28536 "win10",
28537 "win11",
28538 "l24",
28539 "l26",
28540 "solaris"
28541 ],
28542 "optional" : 1,
28543 "type" : "string",
28544 "verbose_description" : "Specify guest operating system. This is used to enable special\noptimization/features for specific operating systems:\n\n[horizontal]\nother;; unspecified OS\nwxp;; Microsoft Windows XP\nw2k;; Microsoft Windows 2000\nw2k3;; Microsoft Windows 2003\nw2k8;; Microsoft Windows 2008\nwvista;; Microsoft Windows Vista\nwin7;; Microsoft Windows 7\nwin8;; Microsoft Windows 8/2012/2012r2\nwin10;; Microsoft Windows 10/2016/2019\nwin11;; Microsoft Windows 11/2022\nl24;; Linux 2.4 Kernel\nl26;; Linux 2.6 - 6.X Kernel\nsolaris;; Solaris/OpenSolaris/OpenIndiania kernel\n"
28545 },
28546 "parallel[n]" : {
28547 "description" : "Map host parallel devices (n is 0 to 2).",
28548 "optional" : 1,
28549 "pattern" : "/dev/parport\\d+|/dev/usb/lp\\d+",
28550 "type" : "string",
28551 "verbose_description" : "Map host parallel devices (n is 0 to 2).\n\nNOTE: This option allows direct access to host hardware. So it is no longer possible to migrate such\nmachines - use with special care.\n\nCAUTION: Experimental! User reported problems with this option.\n"
28552 },
28553 "pool" : {
28554 "description" : "Add the VM to the specified pool.",
28555 "format" : "pve-poolid",
28556 "optional" : 1,
28557 "type" : "string",
28558 "typetext" : "<string>"
28559 },
28560 "protection" : {
28561 "default" : 0,
28562 "description" : "Sets the protection flag of the VM. This will disable the remove VM and remove disk operations.",
28563 "optional" : 1,
28564 "type" : "boolean",
28565 "typetext" : "<boolean>"
28566 },
28567 "reboot" : {
28568 "default" : 1,
28569 "description" : "Allow reboot. If set to '0' the VM exit on reboot.",
28570 "optional" : 1,
28571 "type" : "boolean",
28572 "typetext" : "<boolean>"
28573 },
28574 "rng0" : {
28575 "description" : "Configure a VirtIO-based Random Number Generator.",
28576 "format" : {
28577 "max_bytes" : {
28578 "default" : 1024,
28579 "description" : "Maximum bytes of entropy allowed to get injected into the guest every 'period' milliseconds. Prefer a lower value when using '/dev/random' as source. Use `0` to disable limiting (potentially dangerous!).",
28580 "optional" : 1,
28581 "type" : "integer"
28582 },
28583 "period" : {
28584 "default" : 1000,
28585 "description" : "Every 'period' milliseconds the entropy-injection quota is reset, allowing the guest to retrieve another 'max_bytes' of entropy.",
28586 "optional" : 1,
28587 "type" : "integer"
28588 },
28589 "source" : {
28590 "default_key" : 1,
28591 "description" : "The file on the host to gather entropy from. In most cases '/dev/urandom' should be preferred over '/dev/random' to avoid entropy-starvation issues on the host. Using urandom does *not* decrease security in any meaningful way, as it's still seeded from real entropy, and the bytes provided will most likely be mixed with real entropy on the guest as well. '/dev/hwrng' can be used to pass through a hardware RNG from the host.",
28592 "enum" : [
28593 "/dev/urandom",
28594 "/dev/random",
28595 "/dev/hwrng"
28596 ],
28597 "type" : "string"
28598 }
28599 },
28600 "optional" : 1,
28601 "type" : "string",
28602 "typetext" : "[source=]</dev/urandom|/dev/random|/dev/hwrng> [,max_bytes=<integer>] [,period=<integer>]"
28603 },
28604 "sata[n]" : {
28605 "description" : "Use volume as SATA hard disk or CD-ROM (n is 0 to 5). Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. Use STORAGE_ID:0 and the 'import-from' parameter to import from an existing volume.",
28606 "format" : {
28607 "aio" : {
28608 "description" : "AIO type to use.",
28609 "enum" : [
28610 "native",
28611 "threads",
28612 "io_uring"
28613 ],
28614 "optional" : 1,
28615 "type" : "string"
28616 },
28617 "backup" : {
28618 "description" : "Whether the drive should be included when making backups.",
28619 "optional" : 1,
28620 "type" : "boolean"
28621 },
28622 "bps" : {
28623 "description" : "Maximum r/w speed in bytes per second.",
28624 "format_description" : "bps",
28625 "optional" : 1,
28626 "type" : "integer"
28627 },
28628 "bps_max_length" : {
28629 "description" : "Maximum length of I/O bursts in seconds.",
28630 "format_description" : "seconds",
28631 "minimum" : 1,
28632 "optional" : 1,
28633 "type" : "integer"
28634 },
28635 "bps_rd" : {
28636 "description" : "Maximum read speed in bytes per second.",
28637 "format_description" : "bps",
28638 "optional" : 1,
28639 "type" : "integer"
28640 },
28641 "bps_rd_length" : {
28642 "alias" : "bps_rd_max_length"
28643 },
28644 "bps_rd_max_length" : {
28645 "description" : "Maximum length of read I/O bursts in seconds.",
28646 "format_description" : "seconds",
28647 "minimum" : 1,
28648 "optional" : 1,
28649 "type" : "integer"
28650 },
28651 "bps_wr" : {
28652 "description" : "Maximum write speed in bytes per second.",
28653 "format_description" : "bps",
28654 "optional" : 1,
28655 "type" : "integer"
28656 },
28657 "bps_wr_length" : {
28658 "alias" : "bps_wr_max_length"
28659 },
28660 "bps_wr_max_length" : {
28661 "description" : "Maximum length of write I/O bursts in seconds.",
28662 "format_description" : "seconds",
28663 "minimum" : 1,
28664 "optional" : 1,
28665 "type" : "integer"
28666 },
28667 "cache" : {
28668 "description" : "The drive's cache mode",
28669 "enum" : [
28670 "none",
28671 "writethrough",
28672 "writeback",
28673 "unsafe",
28674 "directsync"
28675 ],
28676 "optional" : 1,
28677 "type" : "string"
28678 },
28679 "cyls" : {
28680 "description" : "Force the drive's physical geometry to have a specific cylinder count.",
28681 "optional" : 1,
28682 "type" : "integer"
28683 },
28684 "detect_zeroes" : {
28685 "description" : "Controls whether to detect and try to optimize writes of zeroes.",
28686 "optional" : 1,
28687 "type" : "boolean"
28688 },
28689 "discard" : {
28690 "description" : "Controls whether to pass discard/trim requests to the underlying storage.",
28691 "enum" : [
28692 "ignore",
28693 "on"
28694 ],
28695 "optional" : 1,
28696 "type" : "string"
28697 },
28698 "file" : {
28699 "default_key" : 1,
28700 "description" : "The drive's backing volume.",
28701 "format" : "pve-volume-id-or-qm-path",
28702 "format_description" : "volume",
28703 "type" : "string"
28704 },
28705 "format" : {
28706 "description" : "The drive's backing file's data format.",
28707 "enum" : [
28708 "raw",
28709 "cow",
28710 "qcow",
28711 "qed",
28712 "qcow2",
28713 "vmdk",
28714 "cloop"
28715 ],
28716 "optional" : 1,
28717 "type" : "string"
28718 },
28719 "heads" : {
28720 "description" : "Force the drive's physical geometry to have a specific head count.",
28721 "optional" : 1,
28722 "type" : "integer"
28723 },
28724 "import-from" : {
28725 "description" : "Create a new disk, importing from this source (volume ID or absolute path). When an absolute path is specified, it's up to you to ensure that the source is not actively used by another process during the import!",
28726 "format" : "pve-volume-id-or-absolute-path",
28727 "format_description" : "source volume",
28728 "optional" : 1,
28729 "type" : "string"
28730 },
28731 "iops" : {
28732 "description" : "Maximum r/w I/O in operations per second.",
28733 "format_description" : "iops",
28734 "optional" : 1,
28735 "type" : "integer"
28736 },
28737 "iops_max" : {
28738 "description" : "Maximum unthrottled r/w I/O pool in operations per second.",
28739 "format_description" : "iops",
28740 "optional" : 1,
28741 "type" : "integer"
28742 },
28743 "iops_max_length" : {
28744 "description" : "Maximum length of I/O bursts in seconds.",
28745 "format_description" : "seconds",
28746 "minimum" : 1,
28747 "optional" : 1,
28748 "type" : "integer"
28749 },
28750 "iops_rd" : {
28751 "description" : "Maximum read I/O in operations per second.",
28752 "format_description" : "iops",
28753 "optional" : 1,
28754 "type" : "integer"
28755 },
28756 "iops_rd_length" : {
28757 "alias" : "iops_rd_max_length"
28758 },
28759 "iops_rd_max" : {
28760 "description" : "Maximum unthrottled read I/O pool in operations per second.",
28761 "format_description" : "iops",
28762 "optional" : 1,
28763 "type" : "integer"
28764 },
28765 "iops_rd_max_length" : {
28766 "description" : "Maximum length of read I/O bursts in seconds.",
28767 "format_description" : "seconds",
28768 "minimum" : 1,
28769 "optional" : 1,
28770 "type" : "integer"
28771 },
28772 "iops_wr" : {
28773 "description" : "Maximum write I/O in operations per second.",
28774 "format_description" : "iops",
28775 "optional" : 1,
28776 "type" : "integer"
28777 },
28778 "iops_wr_length" : {
28779 "alias" : "iops_wr_max_length"
28780 },
28781 "iops_wr_max" : {
28782 "description" : "Maximum unthrottled write I/O pool in operations per second.",
28783 "format_description" : "iops",
28784 "optional" : 1,
28785 "type" : "integer"
28786 },
28787 "iops_wr_max_length" : {
28788 "description" : "Maximum length of write I/O bursts in seconds.",
28789 "format_description" : "seconds",
28790 "minimum" : 1,
28791 "optional" : 1,
28792 "type" : "integer"
28793 },
28794 "mbps" : {
28795 "description" : "Maximum r/w speed in megabytes per second.",
28796 "format_description" : "mbps",
28797 "optional" : 1,
28798 "type" : "number"
28799 },
28800 "mbps_max" : {
28801 "description" : "Maximum unthrottled r/w pool in megabytes per second.",
28802 "format_description" : "mbps",
28803 "optional" : 1,
28804 "type" : "number"
28805 },
28806 "mbps_rd" : {
28807 "description" : "Maximum read speed in megabytes per second.",
28808 "format_description" : "mbps",
28809 "optional" : 1,
28810 "type" : "number"
28811 },
28812 "mbps_rd_max" : {
28813 "description" : "Maximum unthrottled read pool in megabytes per second.",
28814 "format_description" : "mbps",
28815 "optional" : 1,
28816 "type" : "number"
28817 },
28818 "mbps_wr" : {
28819 "description" : "Maximum write speed in megabytes per second.",
28820 "format_description" : "mbps",
28821 "optional" : 1,
28822 "type" : "number"
28823 },
28824 "mbps_wr_max" : {
28825 "description" : "Maximum unthrottled write pool in megabytes per second.",
28826 "format_description" : "mbps",
28827 "optional" : 1,
28828 "type" : "number"
28829 },
28830 "media" : {
28831 "default" : "disk",
28832 "description" : "The drive's media type.",
28833 "enum" : [
28834 "cdrom",
28835 "disk"
28836 ],
28837 "optional" : 1,
28838 "type" : "string"
28839 },
28840 "replicate" : {
28841 "default" : 1,
28842 "description" : "Whether the drive should considered for replication jobs.",
28843 "optional" : 1,
28844 "type" : "boolean"
28845 },
28846 "rerror" : {
28847 "description" : "Read error action.",
28848 "enum" : [
28849 "ignore",
28850 "report",
28851 "stop"
28852 ],
28853 "optional" : 1,
28854 "type" : "string"
28855 },
28856 "secs" : {
28857 "description" : "Force the drive's physical geometry to have a specific sector count.",
28858 "optional" : 1,
28859 "type" : "integer"
28860 },
28861 "serial" : {
28862 "description" : "The drive's reported serial number, url-encoded, up to 20 bytes long.",
28863 "format" : "urlencoded",
28864 "format_description" : "serial",
28865 "maxLength" : 60,
28866 "optional" : 1,
28867 "type" : "string"
28868 },
28869 "shared" : {
28870 "default" : 0,
28871 "description" : "Mark this locally-managed volume as available on all nodes",
28872 "optional" : 1,
28873 "type" : "boolean",
28874 "verbose_description" : "Mark this locally-managed volume as available on all nodes.\n\nWARNING: This option does not share the volume automatically, it assumes it is shared already!"
28875 },
28876 "size" : {
28877 "description" : "Disk size. This is purely informational and has no effect.",
28878 "format" : "disk-size",
28879 "format_description" : "DiskSize",
28880 "optional" : 1,
28881 "type" : "string"
28882 },
28883 "snapshot" : {
28884 "description" : "Controls qemu's snapshot mode feature. If activated, changes made to the disk are temporary and will be discarded when the VM is shutdown.",
28885 "optional" : 1,
28886 "type" : "boolean"
28887 },
28888 "ssd" : {
28889 "description" : "Whether to expose this drive as an SSD, rather than a rotational hard disk.",
28890 "optional" : 1,
28891 "type" : "boolean"
28892 },
28893 "trans" : {
28894 "description" : "Force disk geometry bios translation mode.",
28895 "enum" : [
28896 "none",
28897 "lba",
28898 "auto"
28899 ],
28900 "optional" : 1,
28901 "type" : "string"
28902 },
28903 "volume" : {
28904 "alias" : "file"
28905 },
28906 "werror" : {
28907 "description" : "Write error action.",
28908 "enum" : [
28909 "enospc",
28910 "ignore",
28911 "report",
28912 "stop"
28913 ],
28914 "optional" : 1,
28915 "type" : "string"
28916 },
28917 "wwn" : {
28918 "description" : "The drive's worldwide name, encoded as 16 bytes hex string, prefixed by '0x'.",
28919 "format_description" : "wwn",
28920 "optional" : 1,
28921 "pattern" : "(?^:^(0x)[0-9a-fA-F]{16})",
28922 "type" : "string"
28923 }
28924 },
28925 "optional" : 1,
28926 "type" : "string",
28927 "typetext" : "[file=]<volume> [,aio=<native|threads|io_uring>] [,backup=<1|0>] [,bps=<bps>] [,bps_max_length=<seconds>] [,bps_rd=<bps>] [,bps_rd_max_length=<seconds>] [,bps_wr=<bps>] [,bps_wr_max_length=<seconds>] [,cache=<enum>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<enum>] [,heads=<integer>] [,import-from=<source volume>] [,iops=<iops>] [,iops_max=<iops>] [,iops_max_length=<seconds>] [,iops_rd=<iops>] [,iops_rd_max=<iops>] [,iops_rd_max_length=<seconds>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,iops_wr_max_length=<seconds>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,replicate=<1|0>] [,rerror=<ignore|report|stop>] [,secs=<integer>] [,serial=<serial>] [,shared=<1|0>] [,size=<DiskSize>] [,snapshot=<1|0>] [,ssd=<1|0>] [,trans=<none|lba|auto>] [,werror=<enum>] [,wwn=<wwn>]"
28928 },
28929 "scsi[n]" : {
28930 "description" : "Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. Use STORAGE_ID:0 and the 'import-from' parameter to import from an existing volume.",
28931 "format" : {
28932 "aio" : {
28933 "description" : "AIO type to use.",
28934 "enum" : [
28935 "native",
28936 "threads",
28937 "io_uring"
28938 ],
28939 "optional" : 1,
28940 "type" : "string"
28941 },
28942 "backup" : {
28943 "description" : "Whether the drive should be included when making backups.",
28944 "optional" : 1,
28945 "type" : "boolean"
28946 },
28947 "bps" : {
28948 "description" : "Maximum r/w speed in bytes per second.",
28949 "format_description" : "bps",
28950 "optional" : 1,
28951 "type" : "integer"
28952 },
28953 "bps_max_length" : {
28954 "description" : "Maximum length of I/O bursts in seconds.",
28955 "format_description" : "seconds",
28956 "minimum" : 1,
28957 "optional" : 1,
28958 "type" : "integer"
28959 },
28960 "bps_rd" : {
28961 "description" : "Maximum read speed in bytes per second.",
28962 "format_description" : "bps",
28963 "optional" : 1,
28964 "type" : "integer"
28965 },
28966 "bps_rd_length" : {
28967 "alias" : "bps_rd_max_length"
28968 },
28969 "bps_rd_max_length" : {
28970 "description" : "Maximum length of read I/O bursts in seconds.",
28971 "format_description" : "seconds",
28972 "minimum" : 1,
28973 "optional" : 1,
28974 "type" : "integer"
28975 },
28976 "bps_wr" : {
28977 "description" : "Maximum write speed in bytes per second.",
28978 "format_description" : "bps",
28979 "optional" : 1,
28980 "type" : "integer"
28981 },
28982 "bps_wr_length" : {
28983 "alias" : "bps_wr_max_length"
28984 },
28985 "bps_wr_max_length" : {
28986 "description" : "Maximum length of write I/O bursts in seconds.",
28987 "format_description" : "seconds",
28988 "minimum" : 1,
28989 "optional" : 1,
28990 "type" : "integer"
28991 },
28992 "cache" : {
28993 "description" : "The drive's cache mode",
28994 "enum" : [
28995 "none",
28996 "writethrough",
28997 "writeback",
28998 "unsafe",
28999 "directsync"
29000 ],
29001 "optional" : 1,
29002 "type" : "string"
29003 },
29004 "cyls" : {
29005 "description" : "Force the drive's physical geometry to have a specific cylinder count.",
29006 "optional" : 1,
29007 "type" : "integer"
29008 },
29009 "detect_zeroes" : {
29010 "description" : "Controls whether to detect and try to optimize writes of zeroes.",
29011 "optional" : 1,
29012 "type" : "boolean"
29013 },
29014 "discard" : {
29015 "description" : "Controls whether to pass discard/trim requests to the underlying storage.",
29016 "enum" : [
29017 "ignore",
29018 "on"
29019 ],
29020 "optional" : 1,
29021 "type" : "string"
29022 },
29023 "file" : {
29024 "default_key" : 1,
29025 "description" : "The drive's backing volume.",
29026 "format" : "pve-volume-id-or-qm-path",
29027 "format_description" : "volume",
29028 "type" : "string"
29029 },
29030 "format" : {
29031 "description" : "The drive's backing file's data format.",
29032 "enum" : [
29033 "raw",
29034 "cow",
29035 "qcow",
29036 "qed",
29037 "qcow2",
29038 "vmdk",
29039 "cloop"
29040 ],
29041 "optional" : 1,
29042 "type" : "string"
29043 },
29044 "heads" : {
29045 "description" : "Force the drive's physical geometry to have a specific head count.",
29046 "optional" : 1,
29047 "type" : "integer"
29048 },
29049 "import-from" : {
29050 "description" : "Create a new disk, importing from this source (volume ID or absolute path). When an absolute path is specified, it's up to you to ensure that the source is not actively used by another process during the import!",
29051 "format" : "pve-volume-id-or-absolute-path",
29052 "format_description" : "source volume",
29053 "optional" : 1,
29054 "type" : "string"
29055 },
29056 "iops" : {
29057 "description" : "Maximum r/w I/O in operations per second.",
29058 "format_description" : "iops",
29059 "optional" : 1,
29060 "type" : "integer"
29061 },
29062 "iops_max" : {
29063 "description" : "Maximum unthrottled r/w I/O pool in operations per second.",
29064 "format_description" : "iops",
29065 "optional" : 1,
29066 "type" : "integer"
29067 },
29068 "iops_max_length" : {
29069 "description" : "Maximum length of I/O bursts in seconds.",
29070 "format_description" : "seconds",
29071 "minimum" : 1,
29072 "optional" : 1,
29073 "type" : "integer"
29074 },
29075 "iops_rd" : {
29076 "description" : "Maximum read I/O in operations per second.",
29077 "format_description" : "iops",
29078 "optional" : 1,
29079 "type" : "integer"
29080 },
29081 "iops_rd_length" : {
29082 "alias" : "iops_rd_max_length"
29083 },
29084 "iops_rd_max" : {
29085 "description" : "Maximum unthrottled read I/O pool in operations per second.",
29086 "format_description" : "iops",
29087 "optional" : 1,
29088 "type" : "integer"
29089 },
29090 "iops_rd_max_length" : {
29091 "description" : "Maximum length of read I/O bursts in seconds.",
29092 "format_description" : "seconds",
29093 "minimum" : 1,
29094 "optional" : 1,
29095 "type" : "integer"
29096 },
29097 "iops_wr" : {
29098 "description" : "Maximum write I/O in operations per second.",
29099 "format_description" : "iops",
29100 "optional" : 1,
29101 "type" : "integer"
29102 },
29103 "iops_wr_length" : {
29104 "alias" : "iops_wr_max_length"
29105 },
29106 "iops_wr_max" : {
29107 "description" : "Maximum unthrottled write I/O pool in operations per second.",
29108 "format_description" : "iops",
29109 "optional" : 1,
29110 "type" : "integer"
29111 },
29112 "iops_wr_max_length" : {
29113 "description" : "Maximum length of write I/O bursts in seconds.",
29114 "format_description" : "seconds",
29115 "minimum" : 1,
29116 "optional" : 1,
29117 "type" : "integer"
29118 },
29119 "iothread" : {
29120 "description" : "Whether to use iothreads for this drive",
29121 "optional" : 1,
29122 "type" : "boolean"
29123 },
29124 "mbps" : {
29125 "description" : "Maximum r/w speed in megabytes per second.",
29126 "format_description" : "mbps",
29127 "optional" : 1,
29128 "type" : "number"
29129 },
29130 "mbps_max" : {
29131 "description" : "Maximum unthrottled r/w pool in megabytes per second.",
29132 "format_description" : "mbps",
29133 "optional" : 1,
29134 "type" : "number"
29135 },
29136 "mbps_rd" : {
29137 "description" : "Maximum read speed in megabytes per second.",
29138 "format_description" : "mbps",
29139 "optional" : 1,
29140 "type" : "number"
29141 },
29142 "mbps_rd_max" : {
29143 "description" : "Maximum unthrottled read pool in megabytes per second.",
29144 "format_description" : "mbps",
29145 "optional" : 1,
29146 "type" : "number"
29147 },
29148 "mbps_wr" : {
29149 "description" : "Maximum write speed in megabytes per second.",
29150 "format_description" : "mbps",
29151 "optional" : 1,
29152 "type" : "number"
29153 },
29154 "mbps_wr_max" : {
29155 "description" : "Maximum unthrottled write pool in megabytes per second.",
29156 "format_description" : "mbps",
29157 "optional" : 1,
29158 "type" : "number"
29159 },
29160 "media" : {
29161 "default" : "disk",
29162 "description" : "The drive's media type.",
29163 "enum" : [
29164 "cdrom",
29165 "disk"
29166 ],
29167 "optional" : 1,
29168 "type" : "string"
29169 },
29170 "product" : {
29171 "description" : "The drive's product name, up to 16 bytes long.",
29172 "format_description" : "product",
29173 "optional" : 1,
29174 "pattern" : "[A-Za-z0-9\\-_\\s]{,16}",
29175 "type" : "string"
29176 },
29177 "queues" : {
29178 "description" : "Number of queues.",
29179 "minimum" : 2,
29180 "optional" : 1,
29181 "type" : "integer"
29182 },
29183 "replicate" : {
29184 "default" : 1,
29185 "description" : "Whether the drive should considered for replication jobs.",
29186 "optional" : 1,
29187 "type" : "boolean"
29188 },
29189 "rerror" : {
29190 "description" : "Read error action.",
29191 "enum" : [
29192 "ignore",
29193 "report",
29194 "stop"
29195 ],
29196 "optional" : 1,
29197 "type" : "string"
29198 },
29199 "ro" : {
29200 "description" : "Whether the drive is read-only.",
29201 "optional" : 1,
29202 "type" : "boolean"
29203 },
29204 "scsiblock" : {
29205 "default" : 0,
29206 "description" : "whether to use scsi-block for full passthrough of host block device\n\nWARNING: can lead to I/O errors in combination with low memory or high memory fragmentation on host",
29207 "optional" : 1,
29208 "type" : "boolean"
29209 },
29210 "secs" : {
29211 "description" : "Force the drive's physical geometry to have a specific sector count.",
29212 "optional" : 1,
29213 "type" : "integer"
29214 },
29215 "serial" : {
29216 "description" : "The drive's reported serial number, url-encoded, up to 20 bytes long.",
29217 "format" : "urlencoded",
29218 "format_description" : "serial",
29219 "maxLength" : 60,
29220 "optional" : 1,
29221 "type" : "string"
29222 },
29223 "shared" : {
29224 "default" : 0,
29225 "description" : "Mark this locally-managed volume as available on all nodes",
29226 "optional" : 1,
29227 "type" : "boolean",
29228 "verbose_description" : "Mark this locally-managed volume as available on all nodes.\n\nWARNING: This option does not share the volume automatically, it assumes it is shared already!"
29229 },
29230 "size" : {
29231 "description" : "Disk size. This is purely informational and has no effect.",
29232 "format" : "disk-size",
29233 "format_description" : "DiskSize",
29234 "optional" : 1,
29235 "type" : "string"
29236 },
29237 "snapshot" : {
29238 "description" : "Controls qemu's snapshot mode feature. If activated, changes made to the disk are temporary and will be discarded when the VM is shutdown.",
29239 "optional" : 1,
29240 "type" : "boolean"
29241 },
29242 "ssd" : {
29243 "description" : "Whether to expose this drive as an SSD, rather than a rotational hard disk.",
29244 "optional" : 1,
29245 "type" : "boolean"
29246 },
29247 "trans" : {
29248 "description" : "Force disk geometry bios translation mode.",
29249 "enum" : [
29250 "none",
29251 "lba",
29252 "auto"
29253 ],
29254 "optional" : 1,
29255 "type" : "string"
29256 },
29257 "vendor" : {
29258 "description" : "The drive's vendor name, up to 8 bytes long.",
29259 "format_description" : "vendor",
29260 "optional" : 1,
29261 "pattern" : "[A-Za-z0-9\\-_\\s]{,8}",
29262 "type" : "string"
29263 },
29264 "volume" : {
29265 "alias" : "file"
29266 },
29267 "werror" : {
29268 "description" : "Write error action.",
29269 "enum" : [
29270 "enospc",
29271 "ignore",
29272 "report",
29273 "stop"
29274 ],
29275 "optional" : 1,
29276 "type" : "string"
29277 },
29278 "wwn" : {
29279 "description" : "The drive's worldwide name, encoded as 16 bytes hex string, prefixed by '0x'.",
29280 "format_description" : "wwn",
29281 "optional" : 1,
29282 "pattern" : "(?^:^(0x)[0-9a-fA-F]{16})",
29283 "type" : "string"
29284 }
29285 },
29286 "optional" : 1,
29287 "type" : "string",
29288 "typetext" : "[file=]<volume> [,aio=<native|threads|io_uring>] [,backup=<1|0>] [,bps=<bps>] [,bps_max_length=<seconds>] [,bps_rd=<bps>] [,bps_rd_max_length=<seconds>] [,bps_wr=<bps>] [,bps_wr_max_length=<seconds>] [,cache=<enum>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<enum>] [,heads=<integer>] [,import-from=<source volume>] [,iops=<iops>] [,iops_max=<iops>] [,iops_max_length=<seconds>] [,iops_rd=<iops>] [,iops_rd_max=<iops>] [,iops_rd_max_length=<seconds>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,iops_wr_max_length=<seconds>] [,iothread=<1|0>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,product=<product>] [,queues=<integer>] [,replicate=<1|0>] [,rerror=<ignore|report|stop>] [,ro=<1|0>] [,scsiblock=<1|0>] [,secs=<integer>] [,serial=<serial>] [,shared=<1|0>] [,size=<DiskSize>] [,snapshot=<1|0>] [,ssd=<1|0>] [,trans=<none|lba|auto>] [,vendor=<vendor>] [,werror=<enum>] [,wwn=<wwn>]"
29289 },
29290 "scsihw" : {
29291 "default" : "lsi",
29292 "description" : "SCSI controller model",
29293 "enum" : [
29294 "lsi",
29295 "lsi53c810",
29296 "virtio-scsi-pci",
29297 "virtio-scsi-single",
29298 "megasas",
29299 "pvscsi"
29300 ],
29301 "optional" : 1,
29302 "type" : "string"
29303 },
29304 "searchdomain" : {
29305 "description" : "cloud-init: Sets DNS search domains for a container. Create will automatically use the setting from the host if neither searchdomain nor nameserver are set.",
29306 "optional" : 1,
29307 "type" : "string",
29308 "typetext" : "<string>"
29309 },
29310 "serial[n]" : {
29311 "description" : "Create a serial device inside the VM (n is 0 to 3)",
29312 "optional" : 1,
29313 "pattern" : "(/dev/.+|socket)",
29314 "type" : "string",
29315 "verbose_description" : "Create a serial device inside the VM (n is 0 to 3), and pass through a\nhost serial device (i.e. /dev/ttyS0), or create a unix socket on the\nhost side (use 'qm terminal' to open a terminal connection).\n\nNOTE: If you pass through a host serial device, it is no longer possible to migrate such machines -\nuse with special care.\n\nCAUTION: Experimental! User reported problems with this option.\n"
29316 },
29317 "shares" : {
29318 "default" : 1000,
29319 "description" : "Amount of memory shares for auto-ballooning. The larger the number is, the more memory this VM gets. Number is relative to weights of all other running VMs. Using zero disables auto-ballooning. Auto-ballooning is done by pvestatd.",
29320 "maximum" : 50000,
29321 "minimum" : 0,
29322 "optional" : 1,
29323 "type" : "integer",
29324 "typetext" : "<integer> (0 - 50000)"
29325 },
29326 "smbios1" : {
29327 "description" : "Specify SMBIOS type 1 fields.",
29328 "format" : "pve-qm-smbios1",
29329 "maxLength" : 512,
29330 "optional" : 1,
29331 "type" : "string",
29332 "typetext" : "[base64=<1|0>] [,family=<Base64 encoded string>] [,manufacturer=<Base64 encoded string>] [,product=<Base64 encoded string>] [,serial=<Base64 encoded string>] [,sku=<Base64 encoded string>] [,uuid=<UUID>] [,version=<Base64 encoded string>]"
29333 },
29334 "smp" : {
29335 "default" : 1,
29336 "description" : "The number of CPUs. Please use option -sockets instead.",
29337 "minimum" : 1,
29338 "optional" : 1,
29339 "type" : "integer",
29340 "typetext" : "<integer> (1 - N)"
29341 },
29342 "sockets" : {
29343 "default" : 1,
29344 "description" : "The number of CPU sockets.",
29345 "minimum" : 1,
29346 "optional" : 1,
29347 "type" : "integer",
29348 "typetext" : "<integer> (1 - N)"
29349 },
29350 "spice_enhancements" : {
29351 "description" : "Configure additional enhancements for SPICE.",
29352 "format" : {
29353 "foldersharing" : {
29354 "default" : "0",
29355 "description" : "Enable folder sharing via SPICE. Needs Spice-WebDAV daemon installed in the VM.",
29356 "optional" : 1,
29357 "type" : "boolean"
29358 },
29359 "videostreaming" : {
29360 "default" : "off",
29361 "description" : "Enable video streaming. Uses compression for detected video streams.",
29362 "enum" : [
29363 "off",
29364 "all",
29365 "filter"
29366 ],
29367 "optional" : 1,
29368 "type" : "string"
29369 }
29370 },
29371 "optional" : 1,
29372 "type" : "string",
29373 "typetext" : "[foldersharing=<1|0>] [,videostreaming=<off|all|filter>]"
29374 },
29375 "sshkeys" : {
29376 "description" : "cloud-init: Setup public SSH keys (one key per line, OpenSSH format).",
29377 "format" : "urlencoded",
29378 "optional" : 1,
29379 "type" : "string",
29380 "typetext" : "<string>"
29381 },
29382 "start" : {
29383 "default" : 0,
29384 "description" : "Start VM after it was created successfully.",
29385 "optional" : 1,
29386 "type" : "boolean",
29387 "typetext" : "<boolean>"
29388 },
29389 "startdate" : {
29390 "default" : "now",
29391 "description" : "Set the initial date of the real time clock. Valid format for date are:'now' or '2006-06-17T16:01:21' or '2006-06-17'.",
29392 "optional" : 1,
29393 "pattern" : "(now|\\d{4}-\\d{1,2}-\\d{1,2}(T\\d{1,2}:\\d{1,2}:\\d{1,2})?)",
29394 "type" : "string",
29395 "typetext" : "(now | YYYY-MM-DD | YYYY-MM-DDTHH:MM:SS)"
29396 },
29397 "startup" : {
29398 "description" : "Startup and shutdown behavior. Order is a non-negative number defining the general startup order. Shutdown in done with reverse ordering. Additionally you can set the 'up' or 'down' delay in seconds, which specifies a delay to wait before the next VM is started or stopped.",
29399 "format" : "pve-startup-order",
29400 "optional" : 1,
29401 "type" : "string",
29402 "typetext" : "[[order=]\\d+] [,up=\\d+] [,down=\\d+] "
29403 },
29404 "storage" : {
29405 "description" : "Default storage.",
29406 "format" : "pve-storage-id",
29407 "format_description" : "storage ID",
29408 "optional" : 1,
29409 "type" : "string",
29410 "typetext" : "<storage ID>"
29411 },
29412 "tablet" : {
29413 "default" : 1,
29414 "description" : "Enable/disable the USB tablet device.",
29415 "optional" : 1,
29416 "type" : "boolean",
29417 "typetext" : "<boolean>",
29418 "verbose_description" : "Enable/disable the USB tablet device. This device is usually needed to allow absolute mouse positioning with VNC. Else the mouse runs out of sync with normal VNC clients. If you're running lots of console-only guests on one host, you may consider disabling this to save some context switches. This is turned off by default if you use spice (`qm set <vmid> --vga qxl`)."
29419 },
29420 "tags" : {
29421 "description" : "Tags of the VM. This is only meta information.",
29422 "format" : "pve-tag-list",
29423 "optional" : 1,
29424 "type" : "string",
29425 "typetext" : "<string>"
29426 },
29427 "tdf" : {
29428 "default" : 0,
29429 "description" : "Enable/disable time drift fix.",
29430 "optional" : 1,
29431 "type" : "boolean",
29432 "typetext" : "<boolean>"
29433 },
29434 "template" : {
29435 "default" : 0,
29436 "description" : "Enable/disable Template.",
29437 "optional" : 1,
29438 "type" : "boolean",
29439 "typetext" : "<boolean>"
29440 },
29441 "tpmstate0" : {
29442 "description" : "Configure a Disk for storing TPM state. The format is fixed to 'raw'. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. Note that SIZE_IN_GiB is ignored here and 4 MiB will be used instead. Use STORAGE_ID:0 and the 'import-from' parameter to import from an existing volume.",
29443 "format" : {
29444 "file" : {
29445 "default_key" : 1,
29446 "description" : "The drive's backing volume.",
29447 "format" : "pve-volume-id-or-qm-path",
29448 "format_description" : "volume",
29449 "type" : "string"
29450 },
29451 "import-from" : {
29452 "description" : "Create a new disk, importing from this source (volume ID or absolute path). When an absolute path is specified, it's up to you to ensure that the source is not actively used by another process during the import!",
29453 "format" : "pve-volume-id-or-absolute-path",
29454 "format_description" : "source volume",
29455 "optional" : 1,
29456 "type" : "string"
29457 },
29458 "size" : {
29459 "description" : "Disk size. This is purely informational and has no effect.",
29460 "format" : "disk-size",
29461 "format_description" : "DiskSize",
29462 "optional" : 1,
29463 "type" : "string"
29464 },
29465 "version" : {
29466 "default" : "v2.0",
29467 "description" : "The TPM interface version. v2.0 is newer and should be preferred. Note that this cannot be changed later on.",
29468 "enum" : [
29469 "v1.2",
29470 "v2.0"
29471 ],
29472 "optional" : 1,
29473 "type" : "string"
29474 },
29475 "volume" : {
29476 "alias" : "file"
29477 }
29478 },
29479 "optional" : 1,
29480 "type" : "string",
29481 "typetext" : "[file=]<volume> [,import-from=<source volume>] [,size=<DiskSize>] [,version=<v1.2|v2.0>]"
29482 },
29483 "unique" : {
29484 "description" : "Assign a unique random ethernet address.",
29485 "optional" : 1,
29486 "requires" : "archive",
29487 "type" : "boolean",
29488 "typetext" : "<boolean>"
29489 },
29490 "unused[n]" : {
29491 "description" : "Reference to unused volumes. This is used internally, and should not be modified manually.",
29492 "format" : {
29493 "file" : {
29494 "default_key" : 1,
29495 "description" : "The drive's backing volume.",
29496 "format" : "pve-volume-id",
29497 "format_description" : "volume",
29498 "type" : "string"
29499 },
29500 "volume" : {
29501 "alias" : "file"
29502 }
29503 },
29504 "optional" : 1,
29505 "type" : "string",
29506 "typetext" : "[file=]<volume>"
29507 },
29508 "usb[n]" : {
29509 "description" : "Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14).",
29510 "format" : {
29511 "host" : {
29512 "default_key" : 1,
29513 "description" : "The Host USB device or port or the value 'spice'. HOSTUSBDEVICE syntax is:\n\n 'bus-port(.port)*' (decimal numbers) or\n 'vendor_id:product_id' (hexadeciaml numbers) or\n 'spice'\n\nYou can use the 'lsusb -t' command to list existing usb devices.\n\nNOTE: This option allows direct access to host hardware. So it is no longer possible to migrate such\nmachines - use with special care.\n\nThe value 'spice' can be used to add a usb redirection devices for spice.\n\nEither this or the 'mapping' key must be set.\n",
29514 "format_description" : "HOSTUSBDEVICE|spice",
29515 "optional" : 1,
29516 "pattern" : "(?^:(?:(?:(?^:(0x)?([0-9A-Fa-f]{4}):(0x)?([0-9A-Fa-f]{4})))|(?:(?^:(\\d+)\\-(\\d+(\\.\\d+)*)))|[Ss][Pp][Ii][Cc][Ee]))",
29517 "type" : "string"
29518 },
29519 "mapping" : {
29520 "description" : "The ID of a cluster wide mapping. Either this or the default-key 'host' must be set.",
29521 "format" : "pve-configid",
29522 "format_description" : "mapping-id",
29523 "optional" : 1,
29524 "type" : "string"
29525 },
29526 "usb3" : {
29527 "default" : 0,
29528 "description" : "Specifies whether if given host option is a USB3 device or port. For modern guests (machine version >= 7.1 and ostype l26 and windows > 7), this flag is irrelevant (all devices are plugged into a xhci controller).",
29529 "optional" : 1,
29530 "type" : "boolean"
29531 }
29532 },
29533 "optional" : 1,
29534 "type" : "string",
29535 "typetext" : "[[host=]<HOSTUSBDEVICE|spice>] [,mapping=<mapping-id>] [,usb3=<1|0>]"
29536 },
29537 "vcpus" : {
29538 "default" : 0,
29539 "description" : "Number of hotplugged vcpus.",
29540 "minimum" : 1,
29541 "optional" : 1,
29542 "type" : "integer",
29543 "typetext" : "<integer> (1 - N)"
29544 },
29545 "vga" : {
29546 "description" : "Configure the VGA hardware.",
29547 "format" : {
29548 "clipboard" : {
29549 "description" : "Enable a specific clipboard. If not set, depending on the display type the SPICE one will be added. Migration with VNC clipboard is not yet supported!",
29550 "enum" : [
29551 "vnc"
29552 ],
29553 "optional" : 1,
29554 "type" : "string"
29555 },
29556 "memory" : {
29557 "description" : "Sets the VGA memory (in MiB). Has no effect with serial display.",
29558 "maximum" : 512,
29559 "minimum" : 4,
29560 "optional" : 1,
29561 "type" : "integer"
29562 },
29563 "type" : {
29564 "default" : "std",
29565 "default_key" : 1,
29566 "description" : "Select the VGA type.",
29567 "enum" : [
29568 "cirrus",
29569 "qxl",
29570 "qxl2",
29571 "qxl3",
29572 "qxl4",
29573 "none",
29574 "serial0",
29575 "serial1",
29576 "serial2",
29577 "serial3",
29578 "std",
29579 "virtio",
29580 "virtio-gl",
29581 "vmware"
29582 ],
29583 "optional" : 1,
29584 "type" : "string"
29585 }
29586 },
29587 "optional" : 1,
29588 "type" : "string",
29589 "typetext" : "[[type=]<enum>] [,clipboard=<vnc>] [,memory=<integer>]",
29590 "verbose_description" : "Configure the VGA Hardware. If you want to use high resolution modes (>= 1280x1024x16) you may need to increase the vga memory option. Since QEMU 2.9 the default VGA display type is 'std' for all OS types besides some Windows versions (XP and older) which use 'cirrus'. The 'qxl' option enables the SPICE display server. For win* OS you can select how many independent displays you want, Linux guests can add displays them self.\nYou can also run without any graphic card, using a serial device as terminal."
29591 },
29592 "virtio[n]" : {
29593 "description" : "Use volume as VIRTIO hard disk (n is 0 to 15). Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. Use STORAGE_ID:0 and the 'import-from' parameter to import from an existing volume.",
29594 "format" : {
29595 "aio" : {
29596 "description" : "AIO type to use.",
29597 "enum" : [
29598 "native",
29599 "threads",
29600 "io_uring"
29601 ],
29602 "optional" : 1,
29603 "type" : "string"
29604 },
29605 "backup" : {
29606 "description" : "Whether the drive should be included when making backups.",
29607 "optional" : 1,
29608 "type" : "boolean"
29609 },
29610 "bps" : {
29611 "description" : "Maximum r/w speed in bytes per second.",
29612 "format_description" : "bps",
29613 "optional" : 1,
29614 "type" : "integer"
29615 },
29616 "bps_max_length" : {
29617 "description" : "Maximum length of I/O bursts in seconds.",
29618 "format_description" : "seconds",
29619 "minimum" : 1,
29620 "optional" : 1,
29621 "type" : "integer"
29622 },
29623 "bps_rd" : {
29624 "description" : "Maximum read speed in bytes per second.",
29625 "format_description" : "bps",
29626 "optional" : 1,
29627 "type" : "integer"
29628 },
29629 "bps_rd_length" : {
29630 "alias" : "bps_rd_max_length"
29631 },
29632 "bps_rd_max_length" : {
29633 "description" : "Maximum length of read I/O bursts in seconds.",
29634 "format_description" : "seconds",
29635 "minimum" : 1,
29636 "optional" : 1,
29637 "type" : "integer"
29638 },
29639 "bps_wr" : {
29640 "description" : "Maximum write speed in bytes per second.",
29641 "format_description" : "bps",
29642 "optional" : 1,
29643 "type" : "integer"
29644 },
29645 "bps_wr_length" : {
29646 "alias" : "bps_wr_max_length"
29647 },
29648 "bps_wr_max_length" : {
29649 "description" : "Maximum length of write I/O bursts in seconds.",
29650 "format_description" : "seconds",
29651 "minimum" : 1,
29652 "optional" : 1,
29653 "type" : "integer"
29654 },
29655 "cache" : {
29656 "description" : "The drive's cache mode",
29657 "enum" : [
29658 "none",
29659 "writethrough",
29660 "writeback",
29661 "unsafe",
29662 "directsync"
29663 ],
29664 "optional" : 1,
29665 "type" : "string"
29666 },
29667 "cyls" : {
29668 "description" : "Force the drive's physical geometry to have a specific cylinder count.",
29669 "optional" : 1,
29670 "type" : "integer"
29671 },
29672 "detect_zeroes" : {
29673 "description" : "Controls whether to detect and try to optimize writes of zeroes.",
29674 "optional" : 1,
29675 "type" : "boolean"
29676 },
29677 "discard" : {
29678 "description" : "Controls whether to pass discard/trim requests to the underlying storage.",
29679 "enum" : [
29680 "ignore",
29681 "on"
29682 ],
29683 "optional" : 1,
29684 "type" : "string"
29685 },
29686 "file" : {
29687 "default_key" : 1,
29688 "description" : "The drive's backing volume.",
29689 "format" : "pve-volume-id-or-qm-path",
29690 "format_description" : "volume",
29691 "type" : "string"
29692 },
29693 "format" : {
29694 "description" : "The drive's backing file's data format.",
29695 "enum" : [
29696 "raw",
29697 "cow",
29698 "qcow",
29699 "qed",
29700 "qcow2",
29701 "vmdk",
29702 "cloop"
29703 ],
29704 "optional" : 1,
29705 "type" : "string"
29706 },
29707 "heads" : {
29708 "description" : "Force the drive's physical geometry to have a specific head count.",
29709 "optional" : 1,
29710 "type" : "integer"
29711 },
29712 "import-from" : {
29713 "description" : "Create a new disk, importing from this source (volume ID or absolute path). When an absolute path is specified, it's up to you to ensure that the source is not actively used by another process during the import!",
29714 "format" : "pve-volume-id-or-absolute-path",
29715 "format_description" : "source volume",
29716 "optional" : 1,
29717 "type" : "string"
29718 },
29719 "iops" : {
29720 "description" : "Maximum r/w I/O in operations per second.",
29721 "format_description" : "iops",
29722 "optional" : 1,
29723 "type" : "integer"
29724 },
29725 "iops_max" : {
29726 "description" : "Maximum unthrottled r/w I/O pool in operations per second.",
29727 "format_description" : "iops",
29728 "optional" : 1,
29729 "type" : "integer"
29730 },
29731 "iops_max_length" : {
29732 "description" : "Maximum length of I/O bursts in seconds.",
29733 "format_description" : "seconds",
29734 "minimum" : 1,
29735 "optional" : 1,
29736 "type" : "integer"
29737 },
29738 "iops_rd" : {
29739 "description" : "Maximum read I/O in operations per second.",
29740 "format_description" : "iops",
29741 "optional" : 1,
29742 "type" : "integer"
29743 },
29744 "iops_rd_length" : {
29745 "alias" : "iops_rd_max_length"
29746 },
29747 "iops_rd_max" : {
29748 "description" : "Maximum unthrottled read I/O pool in operations per second.",
29749 "format_description" : "iops",
29750 "optional" : 1,
29751 "type" : "integer"
29752 },
29753 "iops_rd_max_length" : {
29754 "description" : "Maximum length of read I/O bursts in seconds.",
29755 "format_description" : "seconds",
29756 "minimum" : 1,
29757 "optional" : 1,
29758 "type" : "integer"
29759 },
29760 "iops_wr" : {
29761 "description" : "Maximum write I/O in operations per second.",
29762 "format_description" : "iops",
29763 "optional" : 1,
29764 "type" : "integer"
29765 },
29766 "iops_wr_length" : {
29767 "alias" : "iops_wr_max_length"
29768 },
29769 "iops_wr_max" : {
29770 "description" : "Maximum unthrottled write I/O pool in operations per second.",
29771 "format_description" : "iops",
29772 "optional" : 1,
29773 "type" : "integer"
29774 },
29775 "iops_wr_max_length" : {
29776 "description" : "Maximum length of write I/O bursts in seconds.",
29777 "format_description" : "seconds",
29778 "minimum" : 1,
29779 "optional" : 1,
29780 "type" : "integer"
29781 },
29782 "iothread" : {
29783 "description" : "Whether to use iothreads for this drive",
29784 "optional" : 1,
29785 "type" : "boolean"
29786 },
29787 "mbps" : {
29788 "description" : "Maximum r/w speed in megabytes per second.",
29789 "format_description" : "mbps",
29790 "optional" : 1,
29791 "type" : "number"
29792 },
29793 "mbps_max" : {
29794 "description" : "Maximum unthrottled r/w pool in megabytes per second.",
29795 "format_description" : "mbps",
29796 "optional" : 1,
29797 "type" : "number"
29798 },
29799 "mbps_rd" : {
29800 "description" : "Maximum read speed in megabytes per second.",
29801 "format_description" : "mbps",
29802 "optional" : 1,
29803 "type" : "number"
29804 },
29805 "mbps_rd_max" : {
29806 "description" : "Maximum unthrottled read pool in megabytes per second.",
29807 "format_description" : "mbps",
29808 "optional" : 1,
29809 "type" : "number"
29810 },
29811 "mbps_wr" : {
29812 "description" : "Maximum write speed in megabytes per second.",
29813 "format_description" : "mbps",
29814 "optional" : 1,
29815 "type" : "number"
29816 },
29817 "mbps_wr_max" : {
29818 "description" : "Maximum unthrottled write pool in megabytes per second.",
29819 "format_description" : "mbps",
29820 "optional" : 1,
29821 "type" : "number"
29822 },
29823 "media" : {
29824 "default" : "disk",
29825 "description" : "The drive's media type.",
29826 "enum" : [
29827 "cdrom",
29828 "disk"
29829 ],
29830 "optional" : 1,
29831 "type" : "string"
29832 },
29833 "replicate" : {
29834 "default" : 1,
29835 "description" : "Whether the drive should considered for replication jobs.",
29836 "optional" : 1,
29837 "type" : "boolean"
29838 },
29839 "rerror" : {
29840 "description" : "Read error action.",
29841 "enum" : [
29842 "ignore",
29843 "report",
29844 "stop"
29845 ],
29846 "optional" : 1,
29847 "type" : "string"
29848 },
29849 "ro" : {
29850 "description" : "Whether the drive is read-only.",
29851 "optional" : 1,
29852 "type" : "boolean"
29853 },
29854 "secs" : {
29855 "description" : "Force the drive's physical geometry to have a specific sector count.",
29856 "optional" : 1,
29857 "type" : "integer"
29858 },
29859 "serial" : {
29860 "description" : "The drive's reported serial number, url-encoded, up to 20 bytes long.",
29861 "format" : "urlencoded",
29862 "format_description" : "serial",
29863 "maxLength" : 60,
29864 "optional" : 1,
29865 "type" : "string"
29866 },
29867 "shared" : {
29868 "default" : 0,
29869 "description" : "Mark this locally-managed volume as available on all nodes",
29870 "optional" : 1,
29871 "type" : "boolean",
29872 "verbose_description" : "Mark this locally-managed volume as available on all nodes.\n\nWARNING: This option does not share the volume automatically, it assumes it is shared already!"
29873 },
29874 "size" : {
29875 "description" : "Disk size. This is purely informational and has no effect.",
29876 "format" : "disk-size",
29877 "format_description" : "DiskSize",
29878 "optional" : 1,
29879 "type" : "string"
29880 },
29881 "snapshot" : {
29882 "description" : "Controls qemu's snapshot mode feature. If activated, changes made to the disk are temporary and will be discarded when the VM is shutdown.",
29883 "optional" : 1,
29884 "type" : "boolean"
29885 },
29886 "trans" : {
29887 "description" : "Force disk geometry bios translation mode.",
29888 "enum" : [
29889 "none",
29890 "lba",
29891 "auto"
29892 ],
29893 "optional" : 1,
29894 "type" : "string"
29895 },
29896 "volume" : {
29897 "alias" : "file"
29898 },
29899 "werror" : {
29900 "description" : "Write error action.",
29901 "enum" : [
29902 "enospc",
29903 "ignore",
29904 "report",
29905 "stop"
29906 ],
29907 "optional" : 1,
29908 "type" : "string"
29909 }
29910 },
29911 "optional" : 1,
29912 "type" : "string",
29913 "typetext" : "[file=]<volume> [,aio=<native|threads|io_uring>] [,backup=<1|0>] [,bps=<bps>] [,bps_max_length=<seconds>] [,bps_rd=<bps>] [,bps_rd_max_length=<seconds>] [,bps_wr=<bps>] [,bps_wr_max_length=<seconds>] [,cache=<enum>] [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<enum>] [,heads=<integer>] [,import-from=<source volume>] [,iops=<iops>] [,iops_max=<iops>] [,iops_max_length=<seconds>] [,iops_rd=<iops>] [,iops_rd_max=<iops>] [,iops_rd_max_length=<seconds>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,iops_wr_max_length=<seconds>] [,iothread=<1|0>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>] [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,replicate=<1|0>] [,rerror=<ignore|report|stop>] [,ro=<1|0>] [,secs=<integer>] [,serial=<serial>] [,shared=<1|0>] [,size=<DiskSize>] [,snapshot=<1|0>] [,trans=<none|lba|auto>] [,werror=<enum>]"
29914 },
29915 "vmgenid" : {
29916 "default" : "1 (autogenerated)",
29917 "description" : "Set VM Generation ID. Use '1' to autogenerate on create or update, pass '0' to disable explicitly.",
29918 "format_description" : "UUID",
29919 "optional" : 1,
29920 "pattern" : "(?:[a-fA-F0-9]{8}(?:-[a-fA-F0-9]{4}){3}-[a-fA-F0-9]{12}|[01])",
29921 "type" : "string",
29922 "verbose_description" : "The VM generation ID (vmgenid) device exposes a 128-bit integer value identifier to the guest OS. This allows to notify the guest operating system when the virtual machine is executed with a different configuration (e.g. snapshot execution or creation from a template). The guest operating system notices the change, and is then able to react as appropriate by marking its copies of distributed databases as dirty, re-initializing its random number generator, etc.\nNote that auto-creation only works when done through API/CLI create or update methods, but not when manually editing the config file."
29923 },
29924 "vmid" : {
29925 "description" : "The (unique) ID of the VM.",
29926 "format" : "pve-vmid",
29927 "maximum" : 999999999,
29928 "minimum" : 100,
29929 "type" : "integer",
29930 "typetext" : "<integer> (100 - 999999999)"
29931 },
29932 "vmstatestorage" : {
29933 "description" : "Default storage for VM state volumes/files.",
29934 "format" : "pve-storage-id",
29935 "format_description" : "storage ID",
29936 "optional" : 1,
29937 "type" : "string",
29938 "typetext" : "<storage ID>"
29939 },
29940 "watchdog" : {
29941 "description" : "Create a virtual hardware watchdog device.",
29942 "format" : "pve-qm-watchdog",
29943 "optional" : 1,
29944 "type" : "string",
29945 "typetext" : "[[model=]<i6300esb|ib700>] [,action=<enum>]",
29946 "verbose_description" : "Create a virtual hardware watchdog device. Once enabled (by a guest action), the watchdog must be periodically polled by an agent inside the guest or else the watchdog will reset the guest (or execute the respective action specified)"
29947 }
29948 }
29949 },
29950 "permissions" : {
29951 "description" : "You need 'VM.Allocate' permissions on /vms/{vmid} or on the VM pool /pool/{pool}. For restore (option 'archive'), it is enough if the user has 'VM.Backup' permission and the VM already exists. If you create disks you need 'Datastore.AllocateSpace' on any used storage.If you use a bridge/vlan, you need 'SDN.Use' on any used bridge/vlan.",
29952 "user" : "all"
29953 },
29954 "protected" : 1,
29955 "proxyto" : "node",
29956 "returns" : {
29957 "type" : "string"
29958 }
29959 }
29960 },
29961 "leaf" : 0,
29962 "path" : "/nodes/{node}/qemu",
29963 "text" : "qemu"
29964 },
29965 {
29966 "children" : [
29967 {
29968 "children" : [
29969 {
29970 "info" : {
29971 "GET" : {
29972 "allowtoken" : 1,
29973 "description" : "Get container configuration.",
29974 "method" : "GET",
29975 "name" : "vm_config",
29976 "parameters" : {
29977 "additionalProperties" : 0,
29978 "properties" : {
29979 "current" : {
29980 "default" : 0,
29981 "description" : "Get current values (instead of pending values).",
29982 "optional" : 1,
29983 "type" : "boolean",
29984 "typetext" : "<boolean>"
29985 },
29986 "node" : {
29987 "description" : "The cluster node name.",
29988 "format" : "pve-node",
29989 "type" : "string",
29990 "typetext" : "<string>"
29991 },
29992 "snapshot" : {
29993 "description" : "Fetch config values from given snapshot.",
29994 "format" : "pve-configid",
29995 "maxLength" : 40,
29996 "optional" : 1,
29997 "type" : "string",
29998 "typetext" : "<string>"
29999 },
30000 "vmid" : {
30001 "description" : "The (unique) ID of the VM.",
30002 "format" : "pve-vmid",
30003 "maximum" : 999999999,
30004 "minimum" : 100,
30005 "type" : "integer",
30006 "typetext" : "<integer> (100 - 999999999)"
30007 }
30008 }
30009 },
30010 "permissions" : {
30011 "check" : [
30012 "perm",
30013 "/vms/{vmid}",
30014 [
30015 "VM.Audit"
30016 ]
30017 ]
30018 },
30019 "proxyto" : "node",
30020 "returns" : {
30021 "properties" : {
30022 "arch" : {
30023 "default" : "amd64",
30024 "description" : "OS architecture type.",
30025 "enum" : [
30026 "amd64",
30027 "i386",
30028 "arm64",
30029 "armhf",
30030 "riscv32",
30031 "riscv64"
30032 ],
30033 "optional" : 1,
30034 "type" : "string"
30035 },
30036 "cmode" : {
30037 "default" : "tty",
30038 "description" : "Console mode. By default, the console command tries to open a connection to one of the available tty devices. By setting cmode to 'console' it tries to attach to /dev/console instead. If you set cmode to 'shell', it simply invokes a shell inside the container (no login).",
30039 "enum" : [
30040 "shell",
30041 "console",
30042 "tty"
30043 ],
30044 "optional" : 1,
30045 "type" : "string"
30046 },
30047 "console" : {
30048 "default" : 1,
30049 "description" : "Attach a console device (/dev/console) to the container.",
30050 "optional" : 1,
30051 "type" : "boolean"
30052 },
30053 "cores" : {
30054 "description" : "The number of cores assigned to the container. A container can use all available cores by default.",
30055 "maximum" : 8192,
30056 "minimum" : 1,
30057 "optional" : 1,
30058 "type" : "integer"
30059 },
30060 "cpulimit" : {
30061 "default" : 0,
30062 "description" : "Limit of CPU usage.\n\nNOTE: If the computer has 2 CPUs, it has a total of '2' CPU time. Value '0' indicates no CPU limit.",
30063 "maximum" : 8192,
30064 "minimum" : 0,
30065 "optional" : 1,
30066 "type" : "number"
30067 },
30068 "cpuunits" : {
30069 "default" : "cgroup v1: 1024, cgroup v2: 100",
30070 "description" : "CPU weight for a container, will be clamped to [1, 10000] in cgroup v2.",
30071 "maximum" : 500000,
30072 "minimum" : 0,
30073 "optional" : 1,
30074 "type" : "integer",
30075 "verbose_description" : "CPU weight for a container. Argument is used in the kernel fair scheduler. The larger the number is, the more CPU time this container gets. Number is relative to the weights of all the other running guests."
30076 },
30077 "debug" : {
30078 "default" : 0,
30079 "description" : "Try to be more verbose. For now this only enables debug log-level on start.",
30080 "optional" : 1,
30081 "type" : "boolean"
30082 },
30083 "description" : {
30084 "description" : "Description for the Container. Shown in the web-interface CT's summary. This is saved as comment inside the configuration file.",
30085 "maxLength" : 8192,
30086 "optional" : 1,
30087 "type" : "string"
30088 },
30089 "dev[n]" : {
30090 "description" : "Device to pass through to the container",
30091 "format" : {
30092 "gid" : {
30093 "description" : "Group ID to be assigned to the device node",
30094 "minimum" : 0,
30095 "optional" : 1,
30096 "type" : "integer"
30097 },
30098 "mode" : {
30099 "description" : "Access mode to be set on the device node",
30100 "format_description" : "Octal access mode",
30101 "optional" : 1,
30102 "pattern" : "0[0-7]{3}",
30103 "type" : "string"
30104 },
30105 "path" : {
30106 "default_key" : 1,
30107 "description" : "Device to pass through to the container",
30108 "format" : "pve-lxc-dev-string",
30109 "format_description" : "Path",
30110 "optional" : 1,
30111 "type" : "string",
30112 "verbose_description" : "Path to the device to pass through to the container"
30113 },
30114 "uid" : {
30115 "description" : "User ID to be assigned to the device node",
30116 "minimum" : 0,
30117 "optional" : 1,
30118 "type" : "integer"
30119 }
30120 },
30121 "optional" : 1,
30122 "type" : "string"
30123 },
30124 "digest" : {
30125 "description" : "SHA1 digest of configuration file. This can be used to prevent concurrent modifications.",
30126 "type" : "string"
30127 },
30128 "features" : {
30129 "description" : "Allow containers access to advanced features.",
30130 "format" : {
30131 "force_rw_sys" : {
30132 "default" : 0,
30133 "description" : "Mount /sys in unprivileged containers as `rw` instead of `mixed`. This can break networking under newer (>= v245) systemd-network use.",
30134 "optional" : 1,
30135 "type" : "boolean"
30136 },
30137 "fuse" : {
30138 "default" : 0,
30139 "description" : "Allow using 'fuse' file systems in a container. Note that interactions between fuse and the freezer cgroup can potentially cause I/O deadlocks.",
30140 "optional" : 1,
30141 "type" : "boolean"
30142 },
30143 "keyctl" : {
30144 "default" : 0,
30145 "description" : "For unprivileged containers only: Allow the use of the keyctl() system call. This is required to use docker inside a container. By default unprivileged containers will see this system call as non-existent. This is mostly a workaround for systemd-networkd, as it will treat it as a fatal error when some keyctl() operations are denied by the kernel due to lacking permissions. Essentially, you can choose between running systemd-networkd or docker.",
30146 "optional" : 1,
30147 "type" : "boolean"
30148 },
30149 "mknod" : {
30150 "default" : 0,
30151 "description" : "Allow unprivileged containers to use mknod() to add certain device nodes. This requires a kernel with seccomp trap to user space support (5.3 or newer). This is experimental.",
30152 "optional" : 1,
30153 "type" : "boolean"
30154 },
30155 "mount" : {
30156 "description" : "Allow mounting file systems of specific types. This should be a list of file system types as used with the mount command. Note that this can have negative effects on the container's security. With access to a loop device, mounting a file can circumvent the mknod permission of the devices cgroup, mounting an NFS file system can block the host's I/O completely and prevent it from rebooting, etc.",
30157 "format_description" : "fstype;fstype;...",
30158 "optional" : 1,
30159 "pattern" : "(?^:[a-zA-Z0-9_; ]+)",
30160 "type" : "string"
30161 },
30162 "nesting" : {
30163 "default" : 0,
30164 "description" : "Allow nesting. Best used with unprivileged containers with additional id mapping. Note that this will expose procfs and sysfs contents of the host to the guest.",
30165 "optional" : 1,
30166 "type" : "boolean"
30167 }
30168 },
30169 "optional" : 1,
30170 "type" : "string"
30171 },
30172 "hookscript" : {
30173 "description" : "Script that will be exectued during various steps in the containers lifetime.",
30174 "format" : "pve-volume-id",
30175 "optional" : 1,
30176 "type" : "string"
30177 },
30178 "hostname" : {
30179 "description" : "Set a host name for the container.",
30180 "format" : "dns-name",
30181 "maxLength" : 255,
30182 "optional" : 1,
30183 "type" : "string"
30184 },
30185 "lock" : {
30186 "description" : "Lock/unlock the container.",
30187 "enum" : [
30188 "backup",
30189 "create",
30190 "destroyed",
30191 "disk",
30192 "fstrim",
30193 "migrate",
30194 "mounted",
30195 "rollback",
30196 "snapshot",
30197 "snapshot-delete"
30198 ],
30199 "optional" : 1,
30200 "type" : "string"
30201 },
30202 "lxc" : {
30203 "description" : "Array of lxc low-level configurations ([[key1, value1], [key2, value2] ...]).",
30204 "items" : {
30205 "items" : {
30206 "type" : "string"
30207 },
30208 "type" : "array"
30209 },
30210 "optional" : 1,
30211 "type" : "array"
30212 },
30213 "memory" : {
30214 "default" : 512,
30215 "description" : "Amount of RAM for the container in MB.",
30216 "minimum" : 16,
30217 "optional" : 1,
30218 "type" : "integer"
30219 },
30220 "mp[n]" : {
30221 "description" : "Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume.",
30222 "format" : {
30223 "acl" : {
30224 "description" : "Explicitly enable or disable ACL support.",
30225 "optional" : 1,
30226 "type" : "boolean"
30227 },
30228 "backup" : {
30229 "description" : "Whether to include the mount point in backups.",
30230 "optional" : 1,
30231 "type" : "boolean",
30232 "verbose_description" : "Whether to include the mount point in backups (only used for volume mount points)."
30233 },
30234 "mountoptions" : {
30235 "description" : "Extra mount options for rootfs/mps.",
30236 "format_description" : "opt[;opt...]",
30237 "optional" : 1,
30238 "pattern" : "(?^:(?^:(noatime|lazytime|nodev|nosuid|noexec))(;(?^:(noatime|lazytime|nodev|nosuid|noexec)))*)",
30239 "type" : "string"
30240 },
30241 "mp" : {
30242 "description" : "Path to the mount point as seen from inside the container (must not contain symlinks).",
30243 "format" : "pve-lxc-mp-string",
30244 "format_description" : "Path",
30245 "type" : "string",
30246 "verbose_description" : "Path to the mount point as seen from inside the container.\n\nNOTE: Must not contain any symlinks for security reasons."
30247 },
30248 "quota" : {
30249 "description" : "Enable user quotas inside the container (not supported with zfs subvolumes)",
30250 "optional" : 1,
30251 "type" : "boolean"
30252 },
30253 "replicate" : {
30254 "default" : 1,
30255 "description" : "Will include this volume to a storage replica job.",
30256 "optional" : 1,
30257 "type" : "boolean"
30258 },
30259 "ro" : {
30260 "description" : "Read-only mount point",
30261 "optional" : 1,
30262 "type" : "boolean"
30263 },
30264 "shared" : {
30265 "default" : 0,
30266 "description" : "Mark this non-volume mount point as available on multiple nodes (see 'nodes')",
30267 "optional" : 1,
30268 "type" : "boolean",
30269 "verbose_description" : "Mark this non-volume mount point as available on all nodes.\n\nWARNING: This option does not share the mount point automatically, it assumes it is shared already!"
30270 },
30271 "size" : {
30272 "description" : "Volume size (read only value).",
30273 "format" : "disk-size",
30274 "format_description" : "DiskSize",
30275 "optional" : 1,
30276 "type" : "string"
30277 },
30278 "volume" : {
30279 "default_key" : 1,
30280 "description" : "Volume, device or directory to mount into the container.",
30281 "format" : "pve-lxc-mp-string",
30282 "format_description" : "volume",
30283 "type" : "string"
30284 }
30285 },
30286 "optional" : 1,
30287 "type" : "string"
30288 },
30289 "nameserver" : {
30290 "description" : "Sets DNS server IP address for a container. Create will automatically use the setting from the host if you neither set searchdomain nor nameserver.",
30291 "format" : "lxc-ip-with-ll-iface-list",
30292 "optional" : 1,
30293 "type" : "string"
30294 },
30295 "net[n]" : {
30296 "description" : "Specifies network interfaces for the container.",
30297 "format" : {
30298 "bridge" : {
30299 "description" : "Bridge to attach the network device to.",
30300 "format_description" : "bridge",
30301 "optional" : 1,
30302 "pattern" : "[-_.\\w\\d]+",
30303 "type" : "string"
30304 },
30305 "firewall" : {
30306 "description" : "Controls whether this interface's firewall rules should be used.",
30307 "optional" : 1,
30308 "type" : "boolean"
30309 },
30310 "gw" : {
30311 "description" : "Default gateway for IPv4 traffic.",
30312 "format" : "ipv4",
30313 "format_description" : "GatewayIPv4",
30314 "optional" : 1,
30315 "type" : "string"
30316 },
30317 "gw6" : {
30318 "description" : "Default gateway for IPv6 traffic.",
30319 "format" : "ipv6",
30320 "format_description" : "GatewayIPv6",
30321 "optional" : 1,
30322 "type" : "string"
30323 },
30324 "hwaddr" : {
30325 "description" : "The interface MAC address. This is dynamically allocated by default, but you can set that statically if needed, for example to always have the same link-local IPv6 address. (lxc.network.hwaddr)",
30326 "format" : "mac-addr",
30327 "format_description" : "XX:XX:XX:XX:XX:XX",
30328 "optional" : 1,
30329 "type" : "string",
30330 "verbose_description" : "A common MAC address with the I/G (Individual/Group) bit not set."
30331 },
30332 "ip" : {
30333 "description" : "IPv4 address in CIDR format.",
30334 "format" : "pve-ipv4-config",
30335 "format_description" : "(IPv4/CIDR|dhcp|manual)",
30336 "optional" : 1,
30337 "type" : "string"
30338 },
30339 "ip6" : {
30340 "description" : "IPv6 address in CIDR format.",
30341 "format" : "pve-ipv6-config",
30342 "format_description" : "(IPv6/CIDR|auto|dhcp|manual)",
30343 "optional" : 1,
30344 "type" : "string"
30345 },
30346 "link_down" : {
30347 "description" : "Whether this interface should be disconnected (like pulling the plug).",
30348 "optional" : 1,
30349 "type" : "boolean"
30350 },
30351 "mtu" : {
30352 "description" : "Maximum transfer unit of the interface. (lxc.network.mtu)",
30353 "maximum" : 65535,
30354 "minimum" : 64,
30355 "optional" : 1,
30356 "type" : "integer"
30357 },
30358 "name" : {
30359 "description" : "Name of the network device as seen from inside the container. (lxc.network.name)",
30360 "format_description" : "string",
30361 "pattern" : "[-_.\\w\\d]+",
30362 "type" : "string"
30363 },
30364 "rate" : {
30365 "description" : "Apply rate limiting to the interface",
30366 "format_description" : "mbps",
30367 "optional" : 1,
30368 "type" : "number"
30369 },
30370 "tag" : {
30371 "description" : "VLAN tag for this interface.",
30372 "maximum" : 4094,
30373 "minimum" : 1,
30374 "optional" : 1,
30375 "type" : "integer"
30376 },
30377 "trunks" : {
30378 "description" : "VLAN ids to pass through the interface",
30379 "format_description" : "vlanid[;vlanid...]",
30380 "optional" : 1,
30381 "pattern" : "(?^:\\d+(?:;\\d+)*)",
30382 "type" : "string"
30383 },
30384 "type" : {
30385 "description" : "Network interface type.",
30386 "enum" : [
30387 "veth"
30388 ],
30389 "optional" : 1,
30390 "type" : "string"
30391 }
30392 },
30393 "optional" : 1,
30394 "type" : "string"
30395 },
30396 "onboot" : {
30397 "default" : 0,
30398 "description" : "Specifies whether a container will be started during system bootup.",
30399 "optional" : 1,
30400 "type" : "boolean"
30401 },
30402 "ostype" : {
30403 "description" : "OS type. This is used to setup configuration inside the container, and corresponds to lxc setup scripts in /usr/share/lxc/config/<ostype>.common.conf. Value 'unmanaged' can be used to skip and OS specific setup.",
30404 "enum" : [
30405 "debian",
30406 "devuan",
30407 "ubuntu",
30408 "centos",
30409 "fedora",
30410 "opensuse",
30411 "archlinux",
30412 "alpine",
30413 "gentoo",
30414 "nixos",
30415 "unmanaged"
30416 ],
30417 "optional" : 1,
30418 "type" : "string"
30419 },
30420 "protection" : {
30421 "default" : 0,
30422 "description" : "Sets the protection flag of the container. This will prevent the CT or CT's disk remove/update operation.",
30423 "optional" : 1,
30424 "type" : "boolean"
30425 },
30426 "rootfs" : {
30427 "description" : "Use volume as container root.",
30428 "format" : {
30429 "acl" : {
30430 "description" : "Explicitly enable or disable ACL support.",
30431 "optional" : 1,
30432 "type" : "boolean"
30433 },
30434 "mountoptions" : {
30435 "description" : "Extra mount options for rootfs/mps.",
30436 "format_description" : "opt[;opt...]",
30437 "optional" : 1,
30438 "pattern" : "(?^:(?^:(noatime|lazytime|nodev|nosuid|noexec))(;(?^:(noatime|lazytime|nodev|nosuid|noexec)))*)",
30439 "type" : "string"
30440 },
30441 "quota" : {
30442 "description" : "Enable user quotas inside the container (not supported with zfs subvolumes)",
30443 "optional" : 1,
30444 "type" : "boolean"
30445 },
30446 "replicate" : {
30447 "default" : 1,
30448 "description" : "Will include this volume to a storage replica job.",
30449 "optional" : 1,
30450 "type" : "boolean"
30451 },
30452 "ro" : {
30453 "description" : "Read-only mount point",
30454 "optional" : 1,
30455 "type" : "boolean"
30456 },
30457 "shared" : {
30458 "default" : 0,
30459 "description" : "Mark this non-volume mount point as available on multiple nodes (see 'nodes')",
30460 "optional" : 1,
30461 "type" : "boolean",
30462 "verbose_description" : "Mark this non-volume mount point as available on all nodes.\n\nWARNING: This option does not share the mount point automatically, it assumes it is shared already!"
30463 },
30464 "size" : {
30465 "description" : "Volume size (read only value).",
30466 "format" : "disk-size",
30467 "format_description" : "DiskSize",
30468 "optional" : 1,
30469 "type" : "string"
30470 },
30471 "volume" : {
30472 "default_key" : 1,
30473 "description" : "Volume, device or directory to mount into the container.",
30474 "format" : "pve-lxc-mp-string",
30475 "format_description" : "volume",
30476 "type" : "string"
30477 }
30478 },
30479 "optional" : 1,
30480 "type" : "string"
30481 },
30482 "searchdomain" : {
30483 "description" : "Sets DNS search domains for a container. Create will automatically use the setting from the host if you neither set searchdomain nor nameserver.",
30484 "format" : "dns-name-list",
30485 "optional" : 1,
30486 "type" : "string"
30487 },
30488 "startup" : {
30489 "description" : "Startup and shutdown behavior. Order is a non-negative number defining the general startup order. Shutdown in done with reverse ordering. Additionally you can set the 'up' or 'down' delay in seconds, which specifies a delay to wait before the next VM is started or stopped.",
30490 "format" : "pve-startup-order",
30491 "optional" : 1,
30492 "type" : "string",
30493 "typetext" : "[[order=]\\d+] [,up=\\d+] [,down=\\d+] "
30494 },
30495 "swap" : {
30496 "default" : 512,
30497 "description" : "Amount of SWAP for the container in MB.",
30498 "minimum" : 0,
30499 "optional" : 1,
30500 "type" : "integer"
30501 },
30502 "tags" : {
30503 "description" : "Tags of the Container. This is only meta information.",
30504 "format" : "pve-tag-list",
30505 "optional" : 1,
30506 "type" : "string"
30507 },
30508 "template" : {
30509 "default" : 0,
30510 "description" : "Enable/disable Template.",
30511 "optional" : 1,
30512 "type" : "boolean"
30513 },
30514 "timezone" : {
30515 "description" : "Time zone to use in the container. If option isn't set, then nothing will be done. Can be set to 'host' to match the host time zone, or an arbitrary time zone option from /usr/share/zoneinfo/zone.tab",
30516 "format" : "pve-ct-timezone",
30517 "optional" : 1,
30518 "type" : "string"
30519 },
30520 "tty" : {
30521 "default" : 2,
30522 "description" : "Specify the number of tty available to the container",
30523 "maximum" : 6,
30524 "minimum" : 0,
30525 "optional" : 1,
30526 "type" : "integer"
30527 },
30528 "unprivileged" : {
30529 "default" : 0,
30530 "description" : "Makes the container run as unprivileged user. (Should not be modified manually.)",
30531 "optional" : 1,
30532 "type" : "boolean"
30533 },
30534 "unused[n]" : {
30535 "description" : "Reference to unused volumes. This is used internally, and should not be modified manually.",
30536 "format" : {
30537 "volume" : {
30538 "default_key" : 1,
30539 "description" : "The volume that is not used currently.",
30540 "format" : "pve-volume-id",
30541 "format_description" : "volume",
30542 "type" : "string"
30543 }
30544 },
30545 "optional" : 1,
30546 "type" : "string"
30547 }
30548 },
30549 "type" : "object"
30550 }
30551 },
30552 "PUT" : {
30553 "allowtoken" : 1,
30554 "description" : "Set container options.",
30555 "method" : "PUT",
30556 "name" : "update_vm",
30557 "parameters" : {
30558 "additionalProperties" : 0,
30559 "properties" : {
30560 "arch" : {
30561 "default" : "amd64",
30562 "description" : "OS architecture type.",
30563 "enum" : [
30564 "amd64",
30565 "i386",
30566 "arm64",
30567 "armhf",
30568 "riscv32",
30569 "riscv64"
30570 ],
30571 "optional" : 1,
30572 "type" : "string"
30573 },
30574 "cmode" : {
30575 "default" : "tty",
30576 "description" : "Console mode. By default, the console command tries to open a connection to one of the available tty devices. By setting cmode to 'console' it tries to attach to /dev/console instead. If you set cmode to 'shell', it simply invokes a shell inside the container (no login).",
30577 "enum" : [
30578 "shell",
30579 "console",
30580 "tty"
30581 ],
30582 "optional" : 1,
30583 "type" : "string"
30584 },
30585 "console" : {
30586 "default" : 1,
30587 "description" : "Attach a console device (/dev/console) to the container.",
30588 "optional" : 1,
30589 "type" : "boolean",
30590 "typetext" : "<boolean>"
30591 },
30592 "cores" : {
30593 "description" : "The number of cores assigned to the container. A container can use all available cores by default.",
30594 "maximum" : 8192,
30595 "minimum" : 1,
30596 "optional" : 1,
30597 "type" : "integer",
30598 "typetext" : "<integer> (1 - 8192)"
30599 },
30600 "cpulimit" : {
30601 "default" : 0,
30602 "description" : "Limit of CPU usage.\n\nNOTE: If the computer has 2 CPUs, it has a total of '2' CPU time. Value '0' indicates no CPU limit.",
30603 "maximum" : 8192,
30604 "minimum" : 0,
30605 "optional" : 1,
30606 "type" : "number",
30607 "typetext" : "<number> (0 - 8192)"
30608 },
30609 "cpuunits" : {
30610 "default" : "cgroup v1: 1024, cgroup v2: 100",
30611 "description" : "CPU weight for a container, will be clamped to [1, 10000] in cgroup v2.",
30612 "maximum" : 500000,
30613 "minimum" : 0,
30614 "optional" : 1,
30615 "type" : "integer",
30616 "typetext" : "<integer> (0 - 500000)",
30617 "verbose_description" : "CPU weight for a container. Argument is used in the kernel fair scheduler. The larger the number is, the more CPU time this container gets. Number is relative to the weights of all the other running guests."
30618 },
30619 "debug" : {
30620 "default" : 0,
30621 "description" : "Try to be more verbose. For now this only enables debug log-level on start.",
30622 "optional" : 1,
30623 "type" : "boolean",
30624 "typetext" : "<boolean>"
30625 },
30626 "delete" : {
30627 "description" : "A list of settings you want to delete.",
30628 "format" : "pve-configid-list",
30629 "optional" : 1,
30630 "type" : "string",
30631 "typetext" : "<string>"
30632 },
30633 "description" : {
30634 "description" : "Description for the Container. Shown in the web-interface CT's summary. This is saved as comment inside the configuration file.",
30635 "maxLength" : 8192,
30636 "optional" : 1,
30637 "type" : "string",
30638 "typetext" : "<string>"
30639 },
30640 "dev[n]" : {
30641 "description" : "Device to pass through to the container",
30642 "format" : {
30643 "gid" : {
30644 "description" : "Group ID to be assigned to the device node",
30645 "minimum" : 0,
30646 "optional" : 1,
30647 "type" : "integer"
30648 },
30649 "mode" : {
30650 "description" : "Access mode to be set on the device node",
30651 "format_description" : "Octal access mode",
30652 "optional" : 1,
30653 "pattern" : "0[0-7]{3}",
30654 "type" : "string"
30655 },
30656 "path" : {
30657 "default_key" : 1,
30658 "description" : "Device to pass through to the container",
30659 "format" : "pve-lxc-dev-string",
30660 "format_description" : "Path",
30661 "optional" : 1,
30662 "type" : "string",
30663 "verbose_description" : "Path to the device to pass through to the container"
30664 },
30665 "uid" : {
30666 "description" : "User ID to be assigned to the device node",
30667 "minimum" : 0,
30668 "optional" : 1,
30669 "type" : "integer"
30670 }
30671 },
30672 "optional" : 1,
30673 "type" : "string",
30674 "typetext" : "[[path=]<Path>] [,gid=<integer>] [,mode=<Octal access mode>] [,uid=<integer>]"
30675 },
30676 "digest" : {
30677 "description" : "Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.",
30678 "maxLength" : 40,
30679 "optional" : 1,
30680 "type" : "string",
30681 "typetext" : "<string>"
30682 },
30683 "features" : {
30684 "description" : "Allow containers access to advanced features.",
30685 "format" : {
30686 "force_rw_sys" : {
30687 "default" : 0,
30688 "description" : "Mount /sys in unprivileged containers as `rw` instead of `mixed`. This can break networking under newer (>= v245) systemd-network use.",
30689 "optional" : 1,
30690 "type" : "boolean"
30691 },
30692 "fuse" : {
30693 "default" : 0,
30694 "description" : "Allow using 'fuse' file systems in a container. Note that interactions between fuse and the freezer cgroup can potentially cause I/O deadlocks.",
30695 "optional" : 1,
30696 "type" : "boolean"
30697 },
30698 "keyctl" : {
30699 "default" : 0,
30700 "description" : "For unprivileged containers only: Allow the use of the keyctl() system call. This is required to use docker inside a container. By default unprivileged containers will see this system call as non-existent. This is mostly a workaround for systemd-networkd, as it will treat it as a fatal error when some keyctl() operations are denied by the kernel due to lacking permissions. Essentially, you can choose between running systemd-networkd or docker.",
30701 "optional" : 1,
30702 "type" : "boolean"
30703 },
30704 "mknod" : {
30705 "default" : 0,
30706 "description" : "Allow unprivileged containers to use mknod() to add certain device nodes. This requires a kernel with seccomp trap to user space support (5.3 or newer). This is experimental.",
30707 "optional" : 1,
30708 "type" : "boolean"
30709 },
30710 "mount" : {
30711 "description" : "Allow mounting file systems of specific types. This should be a list of file system types as used with the mount command. Note that this can have negative effects on the container's security. With access to a loop device, mounting a file can circumvent the mknod permission of the devices cgroup, mounting an NFS file system can block the host's I/O completely and prevent it from rebooting, etc.",
30712 "format_description" : "fstype;fstype;...",
30713 "optional" : 1,
30714 "pattern" : "(?^:[a-zA-Z0-9_; ]+)",
30715 "type" : "string"
30716 },
30717 "nesting" : {
30718 "default" : 0,
30719 "description" : "Allow nesting. Best used with unprivileged containers with additional id mapping. Note that this will expose procfs and sysfs contents of the host to the guest.",
30720 "optional" : 1,
30721 "type" : "boolean"
30722 }
30723 },
30724 "optional" : 1,
30725 "type" : "string",
30726 "typetext" : "[force_rw_sys=<1|0>] [,fuse=<1|0>] [,keyctl=<1|0>] [,mknod=<1|0>] [,mount=<fstype;fstype;...>] [,nesting=<1|0>]"
30727 },
30728 "hookscript" : {
30729 "description" : "Script that will be exectued during various steps in the containers lifetime.",
30730 "format" : "pve-volume-id",
30731 "optional" : 1,
30732 "type" : "string",
30733 "typetext" : "<string>"
30734 },
30735 "hostname" : {
30736 "description" : "Set a host name for the container.",
30737 "format" : "dns-name",
30738 "maxLength" : 255,
30739 "optional" : 1,
30740 "type" : "string",
30741 "typetext" : "<string>"
30742 },
30743 "lock" : {
30744 "description" : "Lock/unlock the container.",
30745 "enum" : [
30746 "backup",
30747 "create",
30748 "destroyed",
30749 "disk",
30750 "fstrim",
30751 "migrate",
30752 "mounted",
30753 "rollback",
30754 "snapshot",
30755 "snapshot-delete"
30756 ],
30757 "optional" : 1,
30758 "type" : "string"
30759 },
30760 "memory" : {
30761 "default" : 512,
30762 "description" : "Amount of RAM for the container in MB.",
30763 "minimum" : 16,
30764 "optional" : 1,
30765 "type" : "integer",
30766 "typetext" : "<integer> (16 - N)"
30767 },
30768 "mp[n]" : {
30769 "description" : "Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume.",
30770 "format" : {
30771 "acl" : {
30772 "description" : "Explicitly enable or disable ACL support.",
30773 "optional" : 1,
30774 "type" : "boolean"
30775 },
30776 "backup" : {
30777 "description" : "Whether to include the mount point in backups.",
30778 "optional" : 1,
30779 "type" : "boolean",
30780 "verbose_description" : "Whether to include the mount point in backups (only used for volume mount points)."
30781 },
30782 "mountoptions" : {
30783 "description" : "Extra mount options for rootfs/mps.",
30784 "format_description" : "opt[;opt...]",
30785 "optional" : 1,
30786 "pattern" : "(?^:(?^:(noatime|lazytime|nodev|nosuid|noexec))(;(?^:(noatime|lazytime|nodev|nosuid|noexec)))*)",
30787 "type" : "string"
30788 },
30789 "mp" : {
30790 "description" : "Path to the mount point as seen from inside the container (must not contain symlinks).",
30791 "format" : "pve-lxc-mp-string",
30792 "format_description" : "Path",
30793 "type" : "string",
30794 "verbose_description" : "Path to the mount point as seen from inside the container.\n\nNOTE: Must not contain any symlinks for security reasons."
30795 },
30796 "quota" : {
30797 "description" : "Enable user quotas inside the container (not supported with zfs subvolumes)",
30798 "optional" : 1,
30799 "type" : "boolean"
30800 },
30801 "replicate" : {
30802 "default" : 1,
30803 "description" : "Will include this volume to a storage replica job.",
30804 "optional" : 1,
30805 "type" : "boolean"
30806 },
30807 "ro" : {
30808 "description" : "Read-only mount point",
30809 "optional" : 1,
30810 "type" : "boolean"
30811 },
30812 "shared" : {
30813 "default" : 0,
30814 "description" : "Mark this non-volume mount point as available on multiple nodes (see 'nodes')",
30815 "optional" : 1,
30816 "type" : "boolean",
30817 "verbose_description" : "Mark this non-volume mount point as available on all nodes.\n\nWARNING: This option does not share the mount point automatically, it assumes it is shared already!"
30818 },
30819 "size" : {
30820 "description" : "Volume size (read only value).",
30821 "format" : "disk-size",
30822 "format_description" : "DiskSize",
30823 "optional" : 1,
30824 "type" : "string"
30825 },
30826 "volume" : {
30827 "default_key" : 1,
30828 "description" : "Volume, device or directory to mount into the container.",
30829 "format" : "pve-lxc-mp-string",
30830 "format_description" : "volume",
30831 "type" : "string"
30832 }
30833 },
30834 "optional" : 1,
30835 "type" : "string",
30836 "typetext" : "[volume=]<volume> ,mp=<Path> [,acl=<1|0>] [,backup=<1|0>] [,mountoptions=<opt[;opt...]>] [,quota=<1|0>] [,replicate=<1|0>] [,ro=<1|0>] [,shared=<1|0>] [,size=<DiskSize>]"
30837 },
30838 "nameserver" : {
30839 "description" : "Sets DNS server IP address for a container. Create will automatically use the setting from the host if you neither set searchdomain nor nameserver.",
30840 "format" : "lxc-ip-with-ll-iface-list",
30841 "optional" : 1,
30842 "type" : "string",
30843 "typetext" : "<string>"
30844 },
30845 "net[n]" : {
30846 "description" : "Specifies network interfaces for the container.",
30847 "format" : {
30848 "bridge" : {
30849 "description" : "Bridge to attach the network device to.",
30850 "format_description" : "bridge",
30851 "optional" : 1,
30852 "pattern" : "[-_.\\w\\d]+",
30853 "type" : "string"
30854 },
30855 "firewall" : {
30856 "description" : "Controls whether this interface's firewall rules should be used.",
30857 "optional" : 1,
30858 "type" : "boolean"
30859 },
30860 "gw" : {
30861 "description" : "Default gateway for IPv4 traffic.",
30862 "format" : "ipv4",
30863 "format_description" : "GatewayIPv4",
30864 "optional" : 1,
30865 "type" : "string"
30866 },
30867 "gw6" : {
30868 "description" : "Default gateway for IPv6 traffic.",
30869 "format" : "ipv6",
30870 "format_description" : "GatewayIPv6",
30871 "optional" : 1,
30872 "type" : "string"
30873 },
30874 "hwaddr" : {
30875 "description" : "The interface MAC address. This is dynamically allocated by default, but you can set that statically if needed, for example to always have the same link-local IPv6 address. (lxc.network.hwaddr)",
30876 "format" : "mac-addr",
30877 "format_description" : "XX:XX:XX:XX:XX:XX",
30878 "optional" : 1,
30879 "type" : "string",
30880 "verbose_description" : "A common MAC address with the I/G (Individual/Group) bit not set."
30881 },
30882 "ip" : {
30883 "description" : "IPv4 address in CIDR format.",
30884 "format" : "pve-ipv4-config",
30885 "format_description" : "(IPv4/CIDR|dhcp|manual)",
30886 "optional" : 1,
30887 "type" : "string"
30888 },
30889 "ip6" : {
30890 "description" : "IPv6 address in CIDR format.",
30891 "format" : "pve-ipv6-config",
30892 "format_description" : "(IPv6/CIDR|auto|dhcp|manual)",
30893 "optional" : 1,
30894 "type" : "string"
30895 },
30896 "link_down" : {
30897 "description" : "Whether this interface should be disconnected (like pulling the plug).",
30898 "optional" : 1,
30899 "type" : "boolean"
30900 },
30901 "mtu" : {
30902 "description" : "Maximum transfer unit of the interface. (lxc.network.mtu)",
30903 "maximum" : 65535,
30904 "minimum" : 64,
30905 "optional" : 1,
30906 "type" : "integer"
30907 },
30908 "name" : {
30909 "description" : "Name of the network device as seen from inside the container. (lxc.network.name)",
30910 "format_description" : "string",
30911 "pattern" : "[-_.\\w\\d]+",
30912 "type" : "string"
30913 },
30914 "rate" : {
30915 "description" : "Apply rate limiting to the interface",
30916 "format_description" : "mbps",
30917 "optional" : 1,
30918 "type" : "number"
30919 },
30920 "tag" : {
30921 "description" : "VLAN tag for this interface.",
30922 "maximum" : 4094,
30923 "minimum" : 1,
30924 "optional" : 1,
30925 "type" : "integer"
30926 },
30927 "trunks" : {
30928 "description" : "VLAN ids to pass through the interface",
30929 "format_description" : "vlanid[;vlanid...]",
30930 "optional" : 1,
30931 "pattern" : "(?^:\\d+(?:;\\d+)*)",
30932 "type" : "string"
30933 },
30934 "type" : {
30935 "description" : "Network interface type.",
30936 "enum" : [
30937 "veth"
30938 ],
30939 "optional" : 1,
30940 "type" : "string"
30941 }
30942 },
30943 "optional" : 1,
30944 "type" : "string",
30945 "typetext" : "name=<string> [,bridge=<bridge>] [,firewall=<1|0>] [,gw=<GatewayIPv4>] [,gw6=<GatewayIPv6>] [,hwaddr=<XX:XX:XX:XX:XX:XX>] [,ip=<(IPv4/CIDR|dhcp|manual)>] [,ip6=<(IPv6/CIDR|auto|dhcp|manual)>] [,link_down=<1|0>] [,mtu=<integer>] [,rate=<mbps>] [,tag=<integer>] [,trunks=<vlanid[;vlanid...]>] [,type=<veth>]"
30946 },
30947 "node" : {
30948 "description" : "The cluster node name.",
30949 "format" : "pve-node",
30950 "type" : "string",
30951 "typetext" : "<string>"
30952 },
30953 "onboot" : {
30954 "default" : 0,
30955 "description" : "Specifies whether a container will be started during system bootup.",
30956 "optional" : 1,
30957 "type" : "boolean",
30958 "typetext" : "<boolean>"
30959 },
30960 "ostype" : {
30961 "description" : "OS type. This is used to setup configuration inside the container, and corresponds to lxc setup scripts in /usr/share/lxc/config/<ostype>.common.conf. Value 'unmanaged' can be used to skip and OS specific setup.",
30962 "enum" : [
30963 "debian",
30964 "devuan",
30965 "ubuntu",
30966 "centos",
30967 "fedora",
30968 "opensuse",
30969 "archlinux",
30970 "alpine",
30971 "gentoo",
30972 "nixos",
30973 "unmanaged"
30974 ],
30975 "optional" : 1,
30976 "type" : "string"
30977 },
30978 "protection" : {
30979 "default" : 0,
30980 "description" : "Sets the protection flag of the container. This will prevent the CT or CT's disk remove/update operation.",
30981 "optional" : 1,
30982 "type" : "boolean",
30983 "typetext" : "<boolean>"
30984 },
30985 "revert" : {
30986 "description" : "Revert a pending change.",
30987 "format" : "pve-configid-list",
30988 "optional" : 1,
30989 "type" : "string",
30990 "typetext" : "<string>"
30991 },
30992 "rootfs" : {
30993 "description" : "Use volume as container root.",
30994 "format" : {
30995 "acl" : {
30996 "description" : "Explicitly enable or disable ACL support.",
30997 "optional" : 1,
30998 "type" : "boolean"
30999 },
31000 "mountoptions" : {
31001 "description" : "Extra mount options for rootfs/mps.",
31002 "format_description" : "opt[;opt...]",
31003 "optional" : 1,
31004 "pattern" : "(?^:(?^:(noatime|lazytime|nodev|nosuid|noexec))(;(?^:(noatime|lazytime|nodev|nosuid|noexec)))*)",
31005 "type" : "string"
31006 },
31007 "quota" : {
31008 "description" : "Enable user quotas inside the container (not supported with zfs subvolumes)",
31009 "optional" : 1,
31010 "type" : "boolean"
31011 },
31012 "replicate" : {
31013 "default" : 1,
31014 "description" : "Will include this volume to a storage replica job.",
31015 "optional" : 1,
31016 "type" : "boolean"
31017 },
31018 "ro" : {
31019 "description" : "Read-only mount point",
31020 "optional" : 1,
31021 "type" : "boolean"
31022 },
31023 "shared" : {
31024 "default" : 0,
31025 "description" : "Mark this non-volume mount point as available on multiple nodes (see 'nodes')",
31026 "optional" : 1,
31027 "type" : "boolean",
31028 "verbose_description" : "Mark this non-volume mount point as available on all nodes.\n\nWARNING: This option does not share the mount point automatically, it assumes it is shared already!"
31029 },
31030 "size" : {
31031 "description" : "Volume size (read only value).",
31032 "format" : "disk-size",
31033 "format_description" : "DiskSize",
31034 "optional" : 1,
31035 "type" : "string"
31036 },
31037 "volume" : {
31038 "default_key" : 1,
31039 "description" : "Volume, device or directory to mount into the container.",
31040 "format" : "pve-lxc-mp-string",
31041 "format_description" : "volume",
31042 "type" : "string"
31043 }
31044 },
31045 "optional" : 1,
31046 "type" : "string",
31047 "typetext" : "[volume=]<volume> [,acl=<1|0>] [,mountoptions=<opt[;opt...]>] [,quota=<1|0>] [,replicate=<1|0>] [,ro=<1|0>] [,shared=<1|0>] [,size=<DiskSize>]"
31048 },
31049 "searchdomain" : {
31050 "description" : "Sets DNS search domains for a container. Create will automatically use the setting from the host if you neither set searchdomain nor nameserver.",
31051 "format" : "dns-name-list",
31052 "optional" : 1,
31053 "type" : "string",
31054 "typetext" : "<string>"
31055 },
31056 "startup" : {
31057 "description" : "Startup and shutdown behavior. Order is a non-negative number defining the general startup order. Shutdown in done with reverse ordering. Additionally you can set the 'up' or 'down' delay in seconds, which specifies a delay to wait before the next VM is started or stopped.",
31058 "format" : "pve-startup-order",
31059 "optional" : 1,
31060 "type" : "string",
31061 "typetext" : "[[order=]\\d+] [,up=\\d+] [,down=\\d+] "
31062 },
31063 "swap" : {
31064 "default" : 512,
31065 "description" : "Amount of SWAP for the container in MB.",
31066 "minimum" : 0,
31067 "optional" : 1,
31068 "type" : "integer",
31069 "typetext" : "<integer> (0 - N)"
31070 },
31071 "tags" : {
31072 "description" : "Tags of the Container. This is only meta information.",
31073 "format" : "pve-tag-list",
31074 "optional" : 1,
31075 "type" : "string",
31076 "typetext" : "<string>"
31077 },
31078 "template" : {
31079 "default" : 0,
31080 "description" : "Enable/disable Template.",
31081 "optional" : 1,
31082 "type" : "boolean",
31083 "typetext" : "<boolean>"
31084 },
31085 "timezone" : {
31086 "description" : "Time zone to use in the container. If option isn't set, then nothing will be done. Can be set to 'host' to match the host time zone, or an arbitrary time zone option from /usr/share/zoneinfo/zone.tab",
31087 "format" : "pve-ct-timezone",
31088 "optional" : 1,
31089 "type" : "string",
31090 "typetext" : "<string>"
31091 },
31092 "tty" : {
31093 "default" : 2,
31094 "description" : "Specify the number of tty available to the container",
31095 "maximum" : 6,
31096 "minimum" : 0,
31097 "optional" : 1,
31098 "type" : "integer",
31099 "typetext" : "<integer> (0 - 6)"
31100 },
31101 "unprivileged" : {
31102 "default" : 0,
31103 "description" : "Makes the container run as unprivileged user. (Should not be modified manually.)",
31104 "optional" : 1,
31105 "type" : "boolean",
31106 "typetext" : "<boolean>"
31107 },
31108 "unused[n]" : {
31109 "description" : "Reference to unused volumes. This is used internally, and should not be modified manually.",
31110 "format" : {
31111 "volume" : {
31112 "default_key" : 1,
31113 "description" : "The volume that is not used currently.",
31114 "format" : "pve-volume-id",
31115 "format_description" : "volume",
31116 "type" : "string"
31117 }
31118 },
31119 "optional" : 1,
31120 "type" : "string",
31121 "typetext" : "[volume=]<volume>"
31122 },
31123 "vmid" : {
31124 "description" : "The (unique) ID of the VM.",
31125 "format" : "pve-vmid",
31126 "maximum" : 999999999,
31127 "minimum" : 100,
31128 "type" : "integer",
31129 "typetext" : "<integer> (100 - 999999999)"
31130 }
31131 }
31132 },
31133 "permissions" : {
31134 "check" : [
31135 "perm",
31136 "/vms/{vmid}",
31137 [
31138 "VM.Config.Disk",
31139 "VM.Config.CPU",
31140 "VM.Config.Memory",
31141 "VM.Config.Network",
31142 "VM.Config.Options"
31143 ],
31144 "any",
31145 1
31146 ],
31147 "description" : "non-volume mount points in rootfs and mp[n] are restricted to root@pam"
31148 },
31149 "protected" : 1,
31150 "proxyto" : "node",
31151 "returns" : {
31152 "type" : "null"
31153 }
31154 }
31155 },
31156 "leaf" : 1,
31157 "path" : "/nodes/{node}/lxc/{vmid}/config",
31158 "text" : "config"
31159 },
31160 {
31161 "children" : [
31162 {
31163 "info" : {
31164 "GET" : {
31165 "allowtoken" : 1,
31166 "description" : "Get virtual machine status.",
31167 "method" : "GET",
31168 "name" : "vm_status",
31169 "parameters" : {
31170 "additionalProperties" : 0,
31171 "properties" : {
31172 "node" : {
31173 "description" : "The cluster node name.",
31174 "format" : "pve-node",
31175 "type" : "string",
31176 "typetext" : "<string>"
31177 },
31178 "vmid" : {
31179 "description" : "The (unique) ID of the VM.",
31180 "format" : "pve-vmid",
31181 "maximum" : 999999999,
31182 "minimum" : 100,
31183 "type" : "integer",
31184 "typetext" : "<integer> (100 - 999999999)"
31185 }
31186 }
31187 },
31188 "permissions" : {
31189 "check" : [
31190 "perm",
31191 "/vms/{vmid}",
31192 [
31193 "VM.Audit"
31194 ]
31195 ]
31196 },
31197 "protected" : 1,
31198 "proxyto" : "node",
31199 "returns" : {
31200 "properties" : {
31201 "cpus" : {
31202 "description" : "Maximum usable CPUs.",
31203 "optional" : 1,
31204 "type" : "number"
31205 },
31206 "ha" : {
31207 "description" : "HA manager service status.",
31208 "type" : "object"
31209 },
31210 "lock" : {
31211 "description" : "The current config lock, if any.",
31212 "optional" : 1,
31213 "type" : "string"
31214 },
31215 "maxdisk" : {
31216 "description" : "Root disk size in bytes.",
31217 "optional" : 1,
31218 "renderer" : "bytes",
31219 "type" : "integer"
31220 },
31221 "maxmem" : {
31222 "description" : "Maximum memory in bytes.",
31223 "optional" : 1,
31224 "renderer" : "bytes",
31225 "type" : "integer"
31226 },
31227 "maxswap" : {
31228 "description" : "Maximum SWAP memory in bytes.",
31229 "optional" : 1,
31230 "renderer" : "bytes",
31231 "type" : "integer"
31232 },
31233 "name" : {
31234 "description" : "Container name.",
31235 "optional" : 1,
31236 "type" : "string"
31237 },
31238 "status" : {
31239 "description" : "LXC Container status.",
31240 "enum" : [
31241 "stopped",
31242 "running"
31243 ],
31244 "type" : "string"
31245 },
31246 "tags" : {
31247 "description" : "The current configured tags, if any.",
31248 "optional" : 1,
31249 "type" : "string"
31250 },
31251 "uptime" : {
31252 "description" : "Uptime.",
31253 "optional" : 1,
31254 "renderer" : "duration",
31255 "type" : "integer"
31256 },
31257 "vmid" : {
31258 "description" : "The (unique) ID of the VM.",
31259 "format" : "pve-vmid",
31260 "maximum" : 999999999,
31261 "minimum" : 100,
31262 "type" : "integer"
31263 }
31264 },
31265 "type" : "object"
31266 }
31267 }
31268 },
31269 "leaf" : 1,
31270 "path" : "/nodes/{node}/lxc/{vmid}/status/current",
31271 "text" : "current"
31272 },
31273 {
31274 "info" : {
31275 "POST" : {
31276 "allowtoken" : 1,
31277 "description" : "Start the container.",
31278 "method" : "POST",
31279 "name" : "vm_start",
31280 "parameters" : {
31281 "additionalProperties" : 0,
31282 "properties" : {
31283 "debug" : {
31284 "default" : 0,
31285 "description" : "If set, enables very verbose debug log-level on start.",
31286 "optional" : 1,
31287 "type" : "boolean",
31288 "typetext" : "<boolean>"
31289 },
31290 "node" : {
31291 "description" : "The cluster node name.",
31292 "format" : "pve-node",
31293 "type" : "string",
31294 "typetext" : "<string>"
31295 },
31296 "skiplock" : {
31297 "description" : "Ignore locks - only root is allowed to use this option.",
31298 "optional" : 1,
31299 "type" : "boolean",
31300 "typetext" : "<boolean>"
31301 },
31302 "vmid" : {
31303 "description" : "The (unique) ID of the VM.",
31304 "format" : "pve-vmid",
31305 "maximum" : 999999999,
31306 "minimum" : 100,
31307 "type" : "integer",
31308 "typetext" : "<integer> (100 - 999999999)"
31309 }
31310 }
31311 },
31312 "permissions" : {
31313 "check" : [
31314 "perm",
31315 "/vms/{vmid}",
31316 [
31317 "VM.PowerMgmt"
31318 ]
31319 ]
31320 },
31321 "protected" : 1,
31322 "proxyto" : "node",
31323 "returns" : {
31324 "type" : "string"
31325 }
31326 }
31327 },
31328 "leaf" : 1,
31329 "path" : "/nodes/{node}/lxc/{vmid}/status/start",
31330 "text" : "start"
31331 },
31332 {
31333 "info" : {
31334 "POST" : {
31335 "allowtoken" : 1,
31336 "description" : "Stop the container. This will abruptly stop all processes running in the container.",
31337 "method" : "POST",
31338 "name" : "vm_stop",
31339 "parameters" : {
31340 "additionalProperties" : 0,
31341 "properties" : {
31342 "node" : {
31343 "description" : "The cluster node name.",
31344 "format" : "pve-node",
31345 "type" : "string",
31346 "typetext" : "<string>"
31347 },
31348 "overrule-shutdown" : {
31349 "default" : 0,
31350 "description" : "Try to abort active 'vzshutdown' tasks before stopping.",
31351 "optional" : 1,
31352 "type" : "boolean",
31353 "typetext" : "<boolean>"
31354 },
31355 "skiplock" : {
31356 "description" : "Ignore locks - only root is allowed to use this option.",
31357 "optional" : 1,
31358 "type" : "boolean",
31359 "typetext" : "<boolean>"
31360 },
31361 "vmid" : {
31362 "description" : "The (unique) ID of the VM.",
31363 "format" : "pve-vmid",
31364 "maximum" : 999999999,
31365 "minimum" : 100,
31366 "type" : "integer",
31367 "typetext" : "<integer> (100 - 999999999)"
31368 }
31369 }
31370 },
31371 "permissions" : {
31372 "check" : [
31373 "perm",
31374 "/vms/{vmid}",
31375 [
31376 "VM.PowerMgmt"
31377 ]
31378 ]
31379 },
31380 "protected" : 1,
31381 "proxyto" : "node",
31382 "returns" : {
31383 "type" : "string"
31384 }
31385 }
31386 },
31387 "leaf" : 1,
31388 "path" : "/nodes/{node}/lxc/{vmid}/status/stop",
31389 "text" : "stop"
31390 },
31391 {
31392 "info" : {
31393 "POST" : {
31394 "allowtoken" : 1,
31395 "description" : "Shutdown the container. This will trigger a clean shutdown of the container, see lxc-stop(1) for details.",
31396 "method" : "POST",
31397 "name" : "vm_shutdown",
31398 "parameters" : {
31399 "additionalProperties" : 0,
31400 "properties" : {
31401 "forceStop" : {
31402 "default" : 0,
31403 "description" : "Make sure the Container stops.",
31404 "optional" : 1,
31405 "type" : "boolean",
31406 "typetext" : "<boolean>"
31407 },
31408 "node" : {
31409 "description" : "The cluster node name.",
31410 "format" : "pve-node",
31411 "type" : "string",
31412 "typetext" : "<string>"
31413 },
31414 "timeout" : {
31415 "default" : 60,
31416 "description" : "Wait maximal timeout seconds.",
31417 "minimum" : 0,
31418 "optional" : 1,
31419 "type" : "integer",
31420 "typetext" : "<integer> (0 - N)"
31421 },
31422 "vmid" : {
31423 "description" : "The (unique) ID of the VM.",
31424 "format" : "pve-vmid",
31425 "maximum" : 999999999,
31426 "minimum" : 100,
31427 "type" : "integer",
31428 "typetext" : "<integer> (100 - 999999999)"
31429 }
31430 }
31431 },
31432 "permissions" : {
31433 "check" : [
31434 "perm",
31435 "/vms/{vmid}",
31436 [
31437 "VM.PowerMgmt"
31438 ]
31439 ]
31440 },
31441 "protected" : 1,
31442 "proxyto" : "node",
31443 "returns" : {
31444 "type" : "string"
31445 }
31446 }
31447 },
31448 "leaf" : 1,
31449 "path" : "/nodes/{node}/lxc/{vmid}/status/shutdown",
31450 "text" : "shutdown"
31451 },
31452 {
31453 "info" : {
31454 "POST" : {
31455 "allowtoken" : 1,
31456 "description" : "Suspend the container. This is experimental.",
31457 "method" : "POST",
31458 "name" : "vm_suspend",
31459 "parameters" : {
31460 "additionalProperties" : 0,
31461 "properties" : {
31462 "node" : {
31463 "description" : "The cluster node name.",
31464 "format" : "pve-node",
31465 "type" : "string",
31466 "typetext" : "<string>"
31467 },
31468 "vmid" : {
31469 "description" : "The (unique) ID of the VM.",
31470 "format" : "pve-vmid",
31471 "maximum" : 999999999,
31472 "minimum" : 100,
31473 "type" : "integer",
31474 "typetext" : "<integer> (100 - 999999999)"
31475 }
31476 }
31477 },
31478 "permissions" : {
31479 "check" : [
31480 "perm",
31481 "/vms/{vmid}",
31482 [
31483 "VM.PowerMgmt"
31484 ]
31485 ]
31486 },
31487 "protected" : 1,
31488 "proxyto" : "node",
31489 "returns" : {
31490 "type" : "string"
31491 }
31492 }
31493 },
31494 "leaf" : 1,
31495 "path" : "/nodes/{node}/lxc/{vmid}/status/suspend",
31496 "text" : "suspend"
31497 },
31498 {
31499 "info" : {
31500 "POST" : {
31501 "allowtoken" : 1,
31502 "description" : "Resume the container.",
31503 "method" : "POST",
31504 "name" : "vm_resume",
31505 "parameters" : {
31506 "additionalProperties" : 0,
31507 "properties" : {
31508 "node" : {
31509 "description" : "The cluster node name.",
31510 "format" : "pve-node",
31511 "type" : "string",
31512 "typetext" : "<string>"
31513 },
31514 "vmid" : {
31515 "description" : "The (unique) ID of the VM.",
31516 "format" : "pve-vmid",
31517 "maximum" : 999999999,
31518 "minimum" : 100,
31519 "type" : "integer",
31520 "typetext" : "<integer> (100 - 999999999)"
31521 }
31522 }
31523 },
31524 "permissions" : {
31525 "check" : [
31526 "perm",
31527 "/vms/{vmid}",
31528 [
31529 "VM.PowerMgmt"
31530 ]
31531 ]
31532 },
31533 "protected" : 1,
31534 "proxyto" : "node",
31535 "returns" : {
31536 "type" : "string"
31537 }
31538 }
31539 },
31540 "leaf" : 1,
31541 "path" : "/nodes/{node}/lxc/{vmid}/status/resume",
31542 "text" : "resume"
31543 },
31544 {
31545 "info" : {
31546 "POST" : {
31547 "allowtoken" : 1,
31548 "description" : "Reboot the container by shutting it down, and starting it again. Applies pending changes.",
31549 "method" : "POST",
31550 "name" : "vm_reboot",
31551 "parameters" : {
31552 "additionalProperties" : 0,
31553 "properties" : {
31554 "node" : {
31555 "description" : "The cluster node name.",
31556 "format" : "pve-node",
31557 "type" : "string",
31558 "typetext" : "<string>"
31559 },
31560 "timeout" : {
31561 "description" : "Wait maximal timeout seconds for the shutdown.",
31562 "minimum" : 0,
31563 "optional" : 1,
31564 "type" : "integer",
31565 "typetext" : "<integer> (0 - N)"
31566 },
31567 "vmid" : {
31568 "description" : "The (unique) ID of the VM.",
31569 "format" : "pve-vmid",
31570 "maximum" : 999999999,
31571 "minimum" : 100,
31572 "type" : "integer",
31573 "typetext" : "<integer> (100 - 999999999)"
31574 }
31575 }
31576 },
31577 "permissions" : {
31578 "check" : [
31579 "perm",
31580 "/vms/{vmid}",
31581 [
31582 "VM.PowerMgmt"
31583 ]
31584 ]
31585 },
31586 "protected" : 1,
31587 "proxyto" : "node",
31588 "returns" : {
31589 "type" : "string"
31590 }
31591 }
31592 },
31593 "leaf" : 1,
31594 "path" : "/nodes/{node}/lxc/{vmid}/status/reboot",
31595 "text" : "reboot"
31596 }
31597 ],
31598 "info" : {
31599 "GET" : {
31600 "allowtoken" : 1,
31601 "description" : "Directory index",
31602 "method" : "GET",
31603 "name" : "vmcmdidx",
31604 "parameters" : {
31605 "additionalProperties" : 0,
31606 "properties" : {
31607 "node" : {
31608 "description" : "The cluster node name.",
31609 "format" : "pve-node",
31610 "type" : "string",
31611 "typetext" : "<string>"
31612 },
31613 "vmid" : {
31614 "description" : "The (unique) ID of the VM.",
31615 "format" : "pve-vmid",
31616 "maximum" : 999999999,
31617 "minimum" : 100,
31618 "type" : "integer",
31619 "typetext" : "<integer> (100 - 999999999)"
31620 }
31621 }
31622 },
31623 "permissions" : {
31624 "user" : "all"
31625 },
31626 "proxyto" : "node",
31627 "returns" : {
31628 "items" : {
31629 "properties" : {
31630 "subdir" : {
31631 "type" : "string"
31632 }
31633 },
31634 "type" : "object"
31635 },
31636 "links" : [
31637 {
31638 "href" : "{subdir}",
31639 "rel" : "child"
31640 }
31641 ],
31642 "type" : "array"
31643 }
31644 }
31645 },
31646 "leaf" : 0,
31647 "path" : "/nodes/{node}/lxc/{vmid}/status",
31648 "text" : "status"
31649 },
31650 {
31651 "children" : [
31652 {
31653 "children" : [
31654 {
31655 "info" : {
31656 "POST" : {
31657 "allowtoken" : 1,
31658 "description" : "Rollback LXC state to specified snapshot.",
31659 "method" : "POST",
31660 "name" : "rollback",
31661 "parameters" : {
31662 "additionalProperties" : 0,
31663 "properties" : {
31664 "node" : {
31665 "description" : "The cluster node name.",
31666 "format" : "pve-node",
31667 "type" : "string",
31668 "typetext" : "<string>"
31669 },
31670 "snapname" : {
31671 "description" : "The name of the snapshot.",
31672 "format" : "pve-configid",
31673 "maxLength" : 40,
31674 "type" : "string",
31675 "typetext" : "<string>"
31676 },
31677 "start" : {
31678 "default" : 0,
31679 "description" : "Whether the container should get started after rolling back successfully",
31680 "optional" : 1,
31681 "type" : "boolean",
31682 "typetext" : "<boolean>"
31683 },
31684 "vmid" : {
31685 "description" : "The (unique) ID of the VM.",
31686 "format" : "pve-vmid",
31687 "maximum" : 999999999,
31688 "minimum" : 100,
31689 "type" : "integer",
31690 "typetext" : "<integer> (100 - 999999999)"
31691 }
31692 }
31693 },
31694 "permissions" : {
31695 "check" : [
31696 "perm",
31697 "/vms/{vmid}",
31698 [
31699 "VM.Snapshot",
31700 "VM.Snapshot.Rollback"
31701 ],
31702 "any",
31703 1
31704 ]
31705 },
31706 "protected" : 1,
31707 "proxyto" : "node",
31708 "returns" : {
31709 "description" : "the task ID.",
31710 "type" : "string"
31711 }
31712 }
31713 },
31714 "leaf" : 1,
31715 "path" : "/nodes/{node}/lxc/{vmid}/snapshot/{snapname}/rollback",
31716 "text" : "rollback"
31717 },
31718 {
31719 "info" : {
31720 "GET" : {
31721 "allowtoken" : 1,
31722 "description" : "Get snapshot configuration",
31723 "method" : "GET",
31724 "name" : "get_snapshot_config",
31725 "parameters" : {
31726 "additionalProperties" : 0,
31727 "properties" : {
31728 "node" : {
31729 "description" : "The cluster node name.",
31730 "format" : "pve-node",
31731 "type" : "string",
31732 "typetext" : "<string>"
31733 },
31734 "snapname" : {
31735 "description" : "The name of the snapshot.",
31736 "format" : "pve-configid",
31737 "maxLength" : 40,
31738 "type" : "string",
31739 "typetext" : "<string>"
31740 },
31741 "vmid" : {
31742 "description" : "The (unique) ID of the VM.",
31743 "format" : "pve-vmid",
31744 "maximum" : 999999999,
31745 "minimum" : 100,
31746 "type" : "integer",
31747 "typetext" : "<integer> (100 - 999999999)"
31748 }
31749 }
31750 },
31751 "permissions" : {
31752 "check" : [
31753 "perm",
31754 "/vms/{vmid}",
31755 [
31756 "VM.Snapshot",
31757 "VM.Snapshot.Rollback",
31758 "VM.Audit"
31759 ],
31760 "any",
31761 1
31762 ]
31763 },
31764 "proxyto" : "node",
31765 "returns" : {
31766 "type" : "object"
31767 }
31768 },
31769 "PUT" : {
31770 "allowtoken" : 1,
31771 "description" : "Update snapshot metadata.",
31772 "method" : "PUT",
31773 "name" : "update_snapshot_config",
31774 "parameters" : {
31775 "additionalProperties" : 0,
31776 "properties" : {
31777 "description" : {
31778 "description" : "A textual description or comment.",
31779 "optional" : 1,
31780 "type" : "string",
31781 "typetext" : "<string>"
31782 },
31783 "node" : {
31784 "description" : "The cluster node name.",
31785 "format" : "pve-node",
31786 "type" : "string",
31787 "typetext" : "<string>"
31788 },
31789 "snapname" : {
31790 "description" : "The name of the snapshot.",
31791 "format" : "pve-configid",
31792 "maxLength" : 40,
31793 "type" : "string",
31794 "typetext" : "<string>"
31795 },
31796 "vmid" : {
31797 "description" : "The (unique) ID of the VM.",
31798 "format" : "pve-vmid",
31799 "maximum" : 999999999,
31800 "minimum" : 100,
31801 "type" : "integer",
31802 "typetext" : "<integer> (100 - 999999999)"
31803 }
31804 }
31805 },
31806 "permissions" : {
31807 "check" : [
31808 "perm",
31809 "/vms/{vmid}",
31810 [
31811 "VM.Snapshot"
31812 ]
31813 ]
31814 },
31815 "protected" : 1,
31816 "proxyto" : "node",
31817 "returns" : {
31818 "type" : "null"
31819 }
31820 }
31821 },
31822 "leaf" : 1,
31823 "path" : "/nodes/{node}/lxc/{vmid}/snapshot/{snapname}/config",
31824 "text" : "config"
31825 }
31826 ],
31827 "info" : {
31828 "DELETE" : {
31829 "allowtoken" : 1,
31830 "description" : "Delete a LXC snapshot.",
31831 "method" : "DELETE",
31832 "name" : "delsnapshot",
31833 "parameters" : {
31834 "additionalProperties" : 0,
31835 "properties" : {
31836 "force" : {
31837 "description" : "For removal from config file, even if removing disk snapshots fails.",
31838 "optional" : 1,
31839 "type" : "boolean",
31840 "typetext" : "<boolean>"
31841 },
31842 "node" : {
31843 "description" : "The cluster node name.",
31844 "format" : "pve-node",
31845 "type" : "string",
31846 "typetext" : "<string>"
31847 },
31848 "snapname" : {
31849 "description" : "The name of the snapshot.",
31850 "format" : "pve-configid",
31851 "maxLength" : 40,
31852 "type" : "string",
31853 "typetext" : "<string>"
31854 },
31855 "vmid" : {
31856 "description" : "The (unique) ID of the VM.",
31857 "format" : "pve-vmid",
31858 "maximum" : 999999999,
31859 "minimum" : 100,
31860 "type" : "integer",
31861 "typetext" : "<integer> (100 - 999999999)"
31862 }
31863 }
31864 },
31865 "permissions" : {
31866 "check" : [
31867 "perm",
31868 "/vms/{vmid}",
31869 [
31870 "VM.Snapshot"
31871 ]
31872 ]
31873 },
31874 "protected" : 1,
31875 "proxyto" : "node",
31876 "returns" : {
31877 "description" : "the task ID.",
31878 "type" : "string"
31879 }
31880 },
31881 "GET" : {
31882 "allowtoken" : 1,
31883 "description" : "",
31884 "method" : "GET",
31885 "name" : "snapshot_cmd_idx",
31886 "parameters" : {
31887 "additionalProperties" : 0,
31888 "properties" : {
31889 "node" : {
31890 "description" : "The cluster node name.",
31891 "format" : "pve-node",
31892 "type" : "string",
31893 "typetext" : "<string>"
31894 },
31895 "snapname" : {
31896 "description" : "The name of the snapshot.",
31897 "format" : "pve-configid",
31898 "maxLength" : 40,
31899 "type" : "string",
31900 "typetext" : "<string>"
31901 },
31902 "vmid" : {
31903 "description" : "The (unique) ID of the VM.",
31904 "format" : "pve-vmid",
31905 "maximum" : 999999999,
31906 "minimum" : 100,
31907 "type" : "integer",
31908 "typetext" : "<integer> (100 - 999999999)"
31909 }
31910 }
31911 },
31912 "permissions" : {
31913 "user" : "all"
31914 },
31915 "returns" : {
31916 "items" : {
31917 "properties" : {},
31918 "type" : "object"
31919 },
31920 "links" : [
31921 {
31922 "href" : "{cmd}",
31923 "rel" : "child"
31924 }
31925 ],
31926 "type" : "array"
31927 }
31928 }
31929 },
31930 "leaf" : 0,
31931 "path" : "/nodes/{node}/lxc/{vmid}/snapshot/{snapname}",
31932 "text" : "{snapname}"
31933 }
31934 ],
31935 "info" : {
31936 "GET" : {
31937 "allowtoken" : 1,
31938 "description" : "List all snapshots.",
31939 "method" : "GET",
31940 "name" : "list",
31941 "parameters" : {
31942 "additionalProperties" : 0,
31943 "properties" : {
31944 "node" : {
31945 "description" : "The cluster node name.",
31946 "format" : "pve-node",
31947 "type" : "string",
31948 "typetext" : "<string>"
31949 },
31950 "vmid" : {
31951 "description" : "The (unique) ID of the VM.",
31952 "format" : "pve-vmid",
31953 "maximum" : 999999999,
31954 "minimum" : 100,
31955 "type" : "integer",
31956 "typetext" : "<integer> (100 - 999999999)"
31957 }
31958 }
31959 },
31960 "permissions" : {
31961 "check" : [
31962 "perm",
31963 "/vms/{vmid}",
31964 [
31965 "VM.Audit"
31966 ]
31967 ]
31968 },
31969 "protected" : 1,
31970 "proxyto" : "node",
31971 "returns" : {
31972 "items" : {
31973 "properties" : {
31974 "description" : {
31975 "description" : "Snapshot description.",
31976 "type" : "string"
31977 },
31978 "name" : {
31979 "description" : "Snapshot identifier. Value 'current' identifies the current VM.",
31980 "type" : "string"
31981 },
31982 "parent" : {
31983 "description" : "Parent snapshot identifier.",
31984 "optional" : 1,
31985 "type" : "string"
31986 },
31987 "snaptime" : {
31988 "description" : "Snapshot creation time",
31989 "optional" : 1,
31990 "renderer" : "timestamp",
31991 "type" : "integer"
31992 }
31993 },
31994 "type" : "object"
31995 },
31996 "links" : [
31997 {
31998 "href" : "{name}",
31999 "rel" : "child"
32000 }
32001 ],
32002 "type" : "array"
32003 }
32004 },
32005 "POST" : {
32006 "allowtoken" : 1,
32007 "description" : "Snapshot a container.",
32008 "method" : "POST",
32009 "name" : "snapshot",
32010 "parameters" : {
32011 "additionalProperties" : 0,
32012 "properties" : {
32013 "description" : {
32014 "description" : "A textual description or comment.",
32015 "optional" : 1,
32016 "type" : "string",
32017 "typetext" : "<string>"
32018 },
32019 "node" : {
32020 "description" : "The cluster node name.",
32021 "format" : "pve-node",
32022 "type" : "string",
32023 "typetext" : "<string>"
32024 },
32025 "snapname" : {
32026 "description" : "The name of the snapshot.",
32027 "format" : "pve-configid",
32028 "maxLength" : 40,
32029 "type" : "string",
32030 "typetext" : "<string>"
32031 },
32032 "vmid" : {
32033 "description" : "The (unique) ID of the VM.",
32034 "format" : "pve-vmid",
32035 "maximum" : 999999999,
32036 "minimum" : 100,
32037 "type" : "integer",
32038 "typetext" : "<integer> (100 - 999999999)"
32039 }
32040 }
32041 },
32042 "permissions" : {
32043 "check" : [
32044 "perm",
32045 "/vms/{vmid}",
32046 [
32047 "VM.Snapshot"
32048 ]
32049 ]
32050 },
32051 "protected" : 1,
32052 "proxyto" : "node",
32053 "returns" : {
32054 "description" : "the task ID.",
32055 "type" : "string"
32056 }
32057 }
32058 },
32059 "leaf" : 0,
32060 "path" : "/nodes/{node}/lxc/{vmid}/snapshot",
32061 "text" : "snapshot"
32062 },
32063 {
32064 "children" : [
32065 {
32066 "children" : [
32067 {
32068 "info" : {
32069 "DELETE" : {
32070 "allowtoken" : 1,
32071 "description" : "Delete rule.",
32072 "method" : "DELETE",
32073 "name" : "delete_rule",
32074 "parameters" : {
32075 "additionalProperties" : 0,
32076 "properties" : {
32077 "digest" : {
32078 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
32079 "maxLength" : 64,
32080 "optional" : 1,
32081 "type" : "string",
32082 "typetext" : "<string>"
32083 },
32084 "node" : {
32085 "description" : "The cluster node name.",
32086 "format" : "pve-node",
32087 "type" : "string",
32088 "typetext" : "<string>"
32089 },
32090 "pos" : {
32091 "description" : "Update rule at position <pos>.",
32092 "minimum" : 0,
32093 "optional" : 1,
32094 "type" : "integer",
32095 "typetext" : "<integer> (0 - N)"
32096 },
32097 "vmid" : {
32098 "description" : "The (unique) ID of the VM.",
32099 "format" : "pve-vmid",
32100 "maximum" : 999999999,
32101 "minimum" : 100,
32102 "type" : "integer",
32103 "typetext" : "<integer> (100 - 999999999)"
32104 }
32105 }
32106 },
32107 "permissions" : {
32108 "check" : [
32109 "perm",
32110 "/vms/{vmid}",
32111 [
32112 "VM.Config.Network"
32113 ]
32114 ]
32115 },
32116 "protected" : 1,
32117 "proxyto" : null,
32118 "returns" : {
32119 "type" : "null"
32120 }
32121 },
32122 "GET" : {
32123 "allowtoken" : 1,
32124 "description" : "Get single rule data.",
32125 "method" : "GET",
32126 "name" : "get_rule",
32127 "parameters" : {
32128 "additionalProperties" : 0,
32129 "properties" : {
32130 "node" : {
32131 "description" : "The cluster node name.",
32132 "format" : "pve-node",
32133 "type" : "string",
32134 "typetext" : "<string>"
32135 },
32136 "pos" : {
32137 "description" : "Update rule at position <pos>.",
32138 "minimum" : 0,
32139 "optional" : 1,
32140 "type" : "integer",
32141 "typetext" : "<integer> (0 - N)"
32142 },
32143 "vmid" : {
32144 "description" : "The (unique) ID of the VM.",
32145 "format" : "pve-vmid",
32146 "maximum" : 999999999,
32147 "minimum" : 100,
32148 "type" : "integer",
32149 "typetext" : "<integer> (100 - 999999999)"
32150 }
32151 }
32152 },
32153 "permissions" : {
32154 "check" : [
32155 "perm",
32156 "/vms/{vmid}",
32157 [
32158 "VM.Audit"
32159 ]
32160 ]
32161 },
32162 "proxyto" : null,
32163 "returns" : {
32164 "properties" : {
32165 "action" : {
32166 "type" : "string"
32167 },
32168 "comment" : {
32169 "optional" : 1,
32170 "type" : "string"
32171 },
32172 "dest" : {
32173 "optional" : 1,
32174 "type" : "string"
32175 },
32176 "dport" : {
32177 "optional" : 1,
32178 "type" : "string"
32179 },
32180 "enable" : {
32181 "optional" : 1,
32182 "type" : "integer"
32183 },
32184 "icmp-type" : {
32185 "optional" : 1,
32186 "type" : "string"
32187 },
32188 "iface" : {
32189 "optional" : 1,
32190 "type" : "string"
32191 },
32192 "ipversion" : {
32193 "optional" : 1,
32194 "type" : "integer"
32195 },
32196 "log" : {
32197 "description" : "Log level for firewall rule",
32198 "enum" : [
32199 "emerg",
32200 "alert",
32201 "crit",
32202 "err",
32203 "warning",
32204 "notice",
32205 "info",
32206 "debug",
32207 "nolog"
32208 ],
32209 "optional" : 1,
32210 "type" : "string"
32211 },
32212 "macro" : {
32213 "optional" : 1,
32214 "type" : "string"
32215 },
32216 "pos" : {
32217 "type" : "integer"
32218 },
32219 "proto" : {
32220 "optional" : 1,
32221 "type" : "string"
32222 },
32223 "source" : {
32224 "optional" : 1,
32225 "type" : "string"
32226 },
32227 "sport" : {
32228 "optional" : 1,
32229 "type" : "string"
32230 },
32231 "type" : {
32232 "type" : "string"
32233 }
32234 },
32235 "type" : "object"
32236 }
32237 },
32238 "PUT" : {
32239 "allowtoken" : 1,
32240 "description" : "Modify rule data.",
32241 "method" : "PUT",
32242 "name" : "update_rule",
32243 "parameters" : {
32244 "additionalProperties" : 0,
32245 "properties" : {
32246 "action" : {
32247 "description" : "Rule action ('ACCEPT', 'DROP', 'REJECT') or security group name.",
32248 "maxLength" : 20,
32249 "minLength" : 2,
32250 "optional" : 1,
32251 "pattern" : "[A-Za-z][A-Za-z0-9\\-\\_]+",
32252 "type" : "string"
32253 },
32254 "comment" : {
32255 "description" : "Descriptive comment.",
32256 "optional" : 1,
32257 "type" : "string",
32258 "typetext" : "<string>"
32259 },
32260 "delete" : {
32261 "description" : "A list of settings you want to delete.",
32262 "format" : "pve-configid-list",
32263 "optional" : 1,
32264 "type" : "string",
32265 "typetext" : "<string>"
32266 },
32267 "dest" : {
32268 "description" : "Restrict packet destination address. This can refer to a single IP address, an IP set ('+ipsetname') or an IP alias definition. You can also specify an address range like '20.34.101.207-201.3.9.99', or a list of IP addresses and networks (entries are separated by comma). Please do not mix IPv4 and IPv6 addresses inside such lists.",
32269 "format" : "pve-fw-addr-spec",
32270 "maxLength" : 512,
32271 "optional" : 1,
32272 "type" : "string",
32273 "typetext" : "<string>"
32274 },
32275 "digest" : {
32276 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
32277 "maxLength" : 64,
32278 "optional" : 1,
32279 "type" : "string",
32280 "typetext" : "<string>"
32281 },
32282 "dport" : {
32283 "description" : "Restrict TCP/UDP destination port. You can use service names or simple numbers (0-65535), as defined in '/etc/services'. Port ranges can be specified with '\\d+:\\d+', for example '80:85', and you can use comma separated list to match several ports or ranges.",
32284 "format" : "pve-fw-dport-spec",
32285 "optional" : 1,
32286 "type" : "string",
32287 "typetext" : "<string>"
32288 },
32289 "enable" : {
32290 "description" : "Flag to enable/disable a rule.",
32291 "minimum" : 0,
32292 "optional" : 1,
32293 "type" : "integer",
32294 "typetext" : "<integer> (0 - N)"
32295 },
32296 "icmp-type" : {
32297 "description" : "Specify icmp-type. Only valid if proto equals 'icmp' or 'icmpv6'/'ipv6-icmp'.",
32298 "format" : "pve-fw-icmp-type-spec",
32299 "optional" : 1,
32300 "type" : "string",
32301 "typetext" : "<string>"
32302 },
32303 "iface" : {
32304 "description" : "Network interface name. You have to use network configuration key names for VMs and containers ('net\\d+'). Host related rules can use arbitrary strings.",
32305 "format" : "pve-iface",
32306 "maxLength" : 20,
32307 "minLength" : 2,
32308 "optional" : 1,
32309 "type" : "string",
32310 "typetext" : "<string>"
32311 },
32312 "log" : {
32313 "description" : "Log level for firewall rule.",
32314 "enum" : [
32315 "emerg",
32316 "alert",
32317 "crit",
32318 "err",
32319 "warning",
32320 "notice",
32321 "info",
32322 "debug",
32323 "nolog"
32324 ],
32325 "optional" : 1,
32326 "type" : "string"
32327 },
32328 "macro" : {
32329 "description" : "Use predefined standard macro.",
32330 "maxLength" : 128,
32331 "optional" : 1,
32332 "type" : "string",
32333 "typetext" : "<string>"
32334 },
32335 "moveto" : {
32336 "description" : "Move rule to new position <moveto>. Other arguments are ignored.",
32337 "minimum" : 0,
32338 "optional" : 1,
32339 "type" : "integer",
32340 "typetext" : "<integer> (0 - N)"
32341 },
32342 "node" : {
32343 "description" : "The cluster node name.",
32344 "format" : "pve-node",
32345 "type" : "string",
32346 "typetext" : "<string>"
32347 },
32348 "pos" : {
32349 "description" : "Update rule at position <pos>.",
32350 "minimum" : 0,
32351 "optional" : 1,
32352 "type" : "integer",
32353 "typetext" : "<integer> (0 - N)"
32354 },
32355 "proto" : {
32356 "description" : "IP protocol. You can use protocol names ('tcp'/'udp') or simple numbers, as defined in '/etc/protocols'.",
32357 "format" : "pve-fw-protocol-spec",
32358 "optional" : 1,
32359 "type" : "string",
32360 "typetext" : "<string>"
32361 },
32362 "source" : {
32363 "description" : "Restrict packet source address. This can refer to a single IP address, an IP set ('+ipsetname') or an IP alias definition. You can also specify an address range like '20.34.101.207-201.3.9.99', or a list of IP addresses and networks (entries are separated by comma). Please do not mix IPv4 and IPv6 addresses inside such lists.",
32364 "format" : "pve-fw-addr-spec",
32365 "maxLength" : 512,
32366 "optional" : 1,
32367 "type" : "string",
32368 "typetext" : "<string>"
32369 },
32370 "sport" : {
32371 "description" : "Restrict TCP/UDP source port. You can use service names or simple numbers (0-65535), as defined in '/etc/services'. Port ranges can be specified with '\\d+:\\d+', for example '80:85', and you can use comma separated list to match several ports or ranges.",
32372 "format" : "pve-fw-sport-spec",
32373 "optional" : 1,
32374 "type" : "string",
32375 "typetext" : "<string>"
32376 },
32377 "type" : {
32378 "description" : "Rule type.",
32379 "enum" : [
32380 "in",
32381 "out",
32382 "group"
32383 ],
32384 "optional" : 1,
32385 "type" : "string"
32386 },
32387 "vmid" : {
32388 "description" : "The (unique) ID of the VM.",
32389 "format" : "pve-vmid",
32390 "maximum" : 999999999,
32391 "minimum" : 100,
32392 "type" : "integer",
32393 "typetext" : "<integer> (100 - 999999999)"
32394 }
32395 }
32396 },
32397 "permissions" : {
32398 "check" : [
32399 "perm",
32400 "/vms/{vmid}",
32401 [
32402 "VM.Config.Network"
32403 ]
32404 ]
32405 },
32406 "protected" : 1,
32407 "proxyto" : null,
32408 "returns" : {
32409 "type" : "null"
32410 }
32411 }
32412 },
32413 "leaf" : 1,
32414 "path" : "/nodes/{node}/lxc/{vmid}/firewall/rules/{pos}",
32415 "text" : "{pos}"
32416 }
32417 ],
32418 "info" : {
32419 "GET" : {
32420 "allowtoken" : 1,
32421 "description" : "List rules.",
32422 "method" : "GET",
32423 "name" : "get_rules",
32424 "parameters" : {
32425 "additionalProperties" : 0,
32426 "properties" : {
32427 "node" : {
32428 "description" : "The cluster node name.",
32429 "format" : "pve-node",
32430 "type" : "string",
32431 "typetext" : "<string>"
32432 },
32433 "vmid" : {
32434 "description" : "The (unique) ID of the VM.",
32435 "format" : "pve-vmid",
32436 "maximum" : 999999999,
32437 "minimum" : 100,
32438 "type" : "integer",
32439 "typetext" : "<integer> (100 - 999999999)"
32440 }
32441 }
32442 },
32443 "permissions" : {
32444 "check" : [
32445 "perm",
32446 "/vms/{vmid}",
32447 [
32448 "VM.Audit"
32449 ]
32450 ]
32451 },
32452 "proxyto" : null,
32453 "returns" : {
32454 "items" : {
32455 "properties" : {
32456 "pos" : {
32457 "type" : "integer"
32458 }
32459 },
32460 "type" : "object"
32461 },
32462 "links" : [
32463 {
32464 "href" : "{pos}",
32465 "rel" : "child"
32466 }
32467 ],
32468 "type" : "array"
32469 }
32470 },
32471 "POST" : {
32472 "allowtoken" : 1,
32473 "description" : "Create new rule.",
32474 "method" : "POST",
32475 "name" : "create_rule",
32476 "parameters" : {
32477 "additionalProperties" : 0,
32478 "properties" : {
32479 "action" : {
32480 "description" : "Rule action ('ACCEPT', 'DROP', 'REJECT') or security group name.",
32481 "maxLength" : 20,
32482 "minLength" : 2,
32483 "optional" : 0,
32484 "pattern" : "[A-Za-z][A-Za-z0-9\\-\\_]+",
32485 "type" : "string"
32486 },
32487 "comment" : {
32488 "description" : "Descriptive comment.",
32489 "optional" : 1,
32490 "type" : "string",
32491 "typetext" : "<string>"
32492 },
32493 "dest" : {
32494 "description" : "Restrict packet destination address. This can refer to a single IP address, an IP set ('+ipsetname') or an IP alias definition. You can also specify an address range like '20.34.101.207-201.3.9.99', or a list of IP addresses and networks (entries are separated by comma). Please do not mix IPv4 and IPv6 addresses inside such lists.",
32495 "format" : "pve-fw-addr-spec",
32496 "maxLength" : 512,
32497 "optional" : 1,
32498 "type" : "string",
32499 "typetext" : "<string>"
32500 },
32501 "digest" : {
32502 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
32503 "maxLength" : 64,
32504 "optional" : 1,
32505 "type" : "string",
32506 "typetext" : "<string>"
32507 },
32508 "dport" : {
32509 "description" : "Restrict TCP/UDP destination port. You can use service names or simple numbers (0-65535), as defined in '/etc/services'. Port ranges can be specified with '\\d+:\\d+', for example '80:85', and you can use comma separated list to match several ports or ranges.",
32510 "format" : "pve-fw-dport-spec",
32511 "optional" : 1,
32512 "type" : "string",
32513 "typetext" : "<string>"
32514 },
32515 "enable" : {
32516 "description" : "Flag to enable/disable a rule.",
32517 "minimum" : 0,
32518 "optional" : 1,
32519 "type" : "integer",
32520 "typetext" : "<integer> (0 - N)"
32521 },
32522 "icmp-type" : {
32523 "description" : "Specify icmp-type. Only valid if proto equals 'icmp' or 'icmpv6'/'ipv6-icmp'.",
32524 "format" : "pve-fw-icmp-type-spec",
32525 "optional" : 1,
32526 "type" : "string",
32527 "typetext" : "<string>"
32528 },
32529 "iface" : {
32530 "description" : "Network interface name. You have to use network configuration key names for VMs and containers ('net\\d+'). Host related rules can use arbitrary strings.",
32531 "format" : "pve-iface",
32532 "maxLength" : 20,
32533 "minLength" : 2,
32534 "optional" : 1,
32535 "type" : "string",
32536 "typetext" : "<string>"
32537 },
32538 "log" : {
32539 "description" : "Log level for firewall rule.",
32540 "enum" : [
32541 "emerg",
32542 "alert",
32543 "crit",
32544 "err",
32545 "warning",
32546 "notice",
32547 "info",
32548 "debug",
32549 "nolog"
32550 ],
32551 "optional" : 1,
32552 "type" : "string"
32553 },
32554 "macro" : {
32555 "description" : "Use predefined standard macro.",
32556 "maxLength" : 128,
32557 "optional" : 1,
32558 "type" : "string",
32559 "typetext" : "<string>"
32560 },
32561 "node" : {
32562 "description" : "The cluster node name.",
32563 "format" : "pve-node",
32564 "type" : "string",
32565 "typetext" : "<string>"
32566 },
32567 "pos" : {
32568 "description" : "Update rule at position <pos>.",
32569 "minimum" : 0,
32570 "optional" : 1,
32571 "type" : "integer",
32572 "typetext" : "<integer> (0 - N)"
32573 },
32574 "proto" : {
32575 "description" : "IP protocol. You can use protocol names ('tcp'/'udp') or simple numbers, as defined in '/etc/protocols'.",
32576 "format" : "pve-fw-protocol-spec",
32577 "optional" : 1,
32578 "type" : "string",
32579 "typetext" : "<string>"
32580 },
32581 "source" : {
32582 "description" : "Restrict packet source address. This can refer to a single IP address, an IP set ('+ipsetname') or an IP alias definition. You can also specify an address range like '20.34.101.207-201.3.9.99', or a list of IP addresses and networks (entries are separated by comma). Please do not mix IPv4 and IPv6 addresses inside such lists.",
32583 "format" : "pve-fw-addr-spec",
32584 "maxLength" : 512,
32585 "optional" : 1,
32586 "type" : "string",
32587 "typetext" : "<string>"
32588 },
32589 "sport" : {
32590 "description" : "Restrict TCP/UDP source port. You can use service names or simple numbers (0-65535), as defined in '/etc/services'. Port ranges can be specified with '\\d+:\\d+', for example '80:85', and you can use comma separated list to match several ports or ranges.",
32591 "format" : "pve-fw-sport-spec",
32592 "optional" : 1,
32593 "type" : "string",
32594 "typetext" : "<string>"
32595 },
32596 "type" : {
32597 "description" : "Rule type.",
32598 "enum" : [
32599 "in",
32600 "out",
32601 "group"
32602 ],
32603 "optional" : 0,
32604 "type" : "string"
32605 },
32606 "vmid" : {
32607 "description" : "The (unique) ID of the VM.",
32608 "format" : "pve-vmid",
32609 "maximum" : 999999999,
32610 "minimum" : 100,
32611 "type" : "integer",
32612 "typetext" : "<integer> (100 - 999999999)"
32613 }
32614 }
32615 },
32616 "permissions" : {
32617 "check" : [
32618 "perm",
32619 "/vms/{vmid}",
32620 [
32621 "VM.Config.Network"
32622 ]
32623 ]
32624 },
32625 "protected" : 1,
32626 "proxyto" : null,
32627 "returns" : {
32628 "type" : "null"
32629 }
32630 }
32631 },
32632 "leaf" : 0,
32633 "path" : "/nodes/{node}/lxc/{vmid}/firewall/rules",
32634 "text" : "rules"
32635 },
32636 {
32637 "children" : [
32638 {
32639 "info" : {
32640 "DELETE" : {
32641 "allowtoken" : 1,
32642 "description" : "Remove IP or Network alias.",
32643 "method" : "DELETE",
32644 "name" : "remove_alias",
32645 "parameters" : {
32646 "additionalProperties" : 0,
32647 "properties" : {
32648 "digest" : {
32649 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
32650 "maxLength" : 64,
32651 "optional" : 1,
32652 "type" : "string",
32653 "typetext" : "<string>"
32654 },
32655 "name" : {
32656 "description" : "Alias name.",
32657 "maxLength" : 64,
32658 "minLength" : 2,
32659 "pattern" : "[A-Za-z][A-Za-z0-9\\-\\_]+",
32660 "type" : "string"
32661 },
32662 "node" : {
32663 "description" : "The cluster node name.",
32664 "format" : "pve-node",
32665 "type" : "string",
32666 "typetext" : "<string>"
32667 },
32668 "vmid" : {
32669 "description" : "The (unique) ID of the VM.",
32670 "format" : "pve-vmid",
32671 "maximum" : 999999999,
32672 "minimum" : 100,
32673 "type" : "integer",
32674 "typetext" : "<integer> (100 - 999999999)"
32675 }
32676 }
32677 },
32678 "permissions" : {
32679 "check" : [
32680 "perm",
32681 "/vms/{vmid}",
32682 [
32683 "VM.Config.Network"
32684 ]
32685 ]
32686 },
32687 "protected" : 1,
32688 "returns" : {
32689 "type" : "null"
32690 }
32691 },
32692 "GET" : {
32693 "allowtoken" : 1,
32694 "description" : "Read alias.",
32695 "method" : "GET",
32696 "name" : "read_alias",
32697 "parameters" : {
32698 "additionalProperties" : 0,
32699 "properties" : {
32700 "name" : {
32701 "description" : "Alias name.",
32702 "maxLength" : 64,
32703 "minLength" : 2,
32704 "pattern" : "[A-Za-z][A-Za-z0-9\\-\\_]+",
32705 "type" : "string"
32706 },
32707 "node" : {
32708 "description" : "The cluster node name.",
32709 "format" : "pve-node",
32710 "type" : "string",
32711 "typetext" : "<string>"
32712 },
32713 "vmid" : {
32714 "description" : "The (unique) ID of the VM.",
32715 "format" : "pve-vmid",
32716 "maximum" : 999999999,
32717 "minimum" : 100,
32718 "type" : "integer",
32719 "typetext" : "<integer> (100 - 999999999)"
32720 }
32721 }
32722 },
32723 "permissions" : {
32724 "check" : [
32725 "perm",
32726 "/vms/{vmid}",
32727 [
32728 "VM.Audit"
32729 ]
32730 ]
32731 },
32732 "returns" : {
32733 "type" : "object"
32734 }
32735 },
32736 "PUT" : {
32737 "allowtoken" : 1,
32738 "description" : "Update IP or Network alias.",
32739 "method" : "PUT",
32740 "name" : "update_alias",
32741 "parameters" : {
32742 "additionalProperties" : 0,
32743 "properties" : {
32744 "cidr" : {
32745 "description" : "Network/IP specification in CIDR format.",
32746 "format" : "IPorCIDR",
32747 "type" : "string",
32748 "typetext" : "<string>"
32749 },
32750 "comment" : {
32751 "optional" : 1,
32752 "type" : "string",
32753 "typetext" : "<string>"
32754 },
32755 "digest" : {
32756 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
32757 "maxLength" : 64,
32758 "optional" : 1,
32759 "type" : "string",
32760 "typetext" : "<string>"
32761 },
32762 "name" : {
32763 "description" : "Alias name.",
32764 "maxLength" : 64,
32765 "minLength" : 2,
32766 "pattern" : "[A-Za-z][A-Za-z0-9\\-\\_]+",
32767 "type" : "string"
32768 },
32769 "node" : {
32770 "description" : "The cluster node name.",
32771 "format" : "pve-node",
32772 "type" : "string",
32773 "typetext" : "<string>"
32774 },
32775 "rename" : {
32776 "description" : "Rename an existing alias.",
32777 "maxLength" : 64,
32778 "minLength" : 2,
32779 "optional" : 1,
32780 "pattern" : "[A-Za-z][A-Za-z0-9\\-\\_]+",
32781 "type" : "string"
32782 },
32783 "vmid" : {
32784 "description" : "The (unique) ID of the VM.",
32785 "format" : "pve-vmid",
32786 "maximum" : 999999999,
32787 "minimum" : 100,
32788 "type" : "integer",
32789 "typetext" : "<integer> (100 - 999999999)"
32790 }
32791 }
32792 },
32793 "permissions" : {
32794 "check" : [
32795 "perm",
32796 "/vms/{vmid}",
32797 [
32798 "VM.Config.Network"
32799 ]
32800 ]
32801 },
32802 "protected" : 1,
32803 "returns" : {
32804 "type" : "null"
32805 }
32806 }
32807 },
32808 "leaf" : 1,
32809 "path" : "/nodes/{node}/lxc/{vmid}/firewall/aliases/{name}",
32810 "text" : "{name}"
32811 }
32812 ],
32813 "info" : {
32814 "GET" : {
32815 "allowtoken" : 1,
32816 "description" : "List aliases",
32817 "method" : "GET",
32818 "name" : "get_aliases",
32819 "parameters" : {
32820 "additionalProperties" : 0,
32821 "properties" : {
32822 "node" : {
32823 "description" : "The cluster node name.",
32824 "format" : "pve-node",
32825 "type" : "string",
32826 "typetext" : "<string>"
32827 },
32828 "vmid" : {
32829 "description" : "The (unique) ID of the VM.",
32830 "format" : "pve-vmid",
32831 "maximum" : 999999999,
32832 "minimum" : 100,
32833 "type" : "integer",
32834 "typetext" : "<integer> (100 - 999999999)"
32835 }
32836 }
32837 },
32838 "permissions" : {
32839 "check" : [
32840 "perm",
32841 "/vms/{vmid}",
32842 [
32843 "VM.Audit"
32844 ]
32845 ]
32846 },
32847 "returns" : {
32848 "items" : {
32849 "properties" : {
32850 "cidr" : {
32851 "type" : "string"
32852 },
32853 "comment" : {
32854 "optional" : 1,
32855 "type" : "string"
32856 },
32857 "digest" : {
32858 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
32859 "maxLength" : 64,
32860 "optional" : 0,
32861 "type" : "string"
32862 },
32863 "name" : {
32864 "type" : "string"
32865 }
32866 },
32867 "type" : "object"
32868 },
32869 "links" : [
32870 {
32871 "href" : "{name}",
32872 "rel" : "child"
32873 }
32874 ],
32875 "type" : "array"
32876 }
32877 },
32878 "POST" : {
32879 "allowtoken" : 1,
32880 "description" : "Create IP or Network Alias.",
32881 "method" : "POST",
32882 "name" : "create_alias",
32883 "parameters" : {
32884 "additionalProperties" : 0,
32885 "properties" : {
32886 "cidr" : {
32887 "description" : "Network/IP specification in CIDR format.",
32888 "format" : "IPorCIDR",
32889 "type" : "string",
32890 "typetext" : "<string>"
32891 },
32892 "comment" : {
32893 "optional" : 1,
32894 "type" : "string",
32895 "typetext" : "<string>"
32896 },
32897 "name" : {
32898 "description" : "Alias name.",
32899 "maxLength" : 64,
32900 "minLength" : 2,
32901 "pattern" : "[A-Za-z][A-Za-z0-9\\-\\_]+",
32902 "type" : "string"
32903 },
32904 "node" : {
32905 "description" : "The cluster node name.",
32906 "format" : "pve-node",
32907 "type" : "string",
32908 "typetext" : "<string>"
32909 },
32910 "vmid" : {
32911 "description" : "The (unique) ID of the VM.",
32912 "format" : "pve-vmid",
32913 "maximum" : 999999999,
32914 "minimum" : 100,
32915 "type" : "integer",
32916 "typetext" : "<integer> (100 - 999999999)"
32917 }
32918 }
32919 },
32920 "permissions" : {
32921 "check" : [
32922 "perm",
32923 "/vms/{vmid}",
32924 [
32925 "VM.Config.Network"
32926 ]
32927 ]
32928 },
32929 "protected" : 1,
32930 "returns" : {
32931 "type" : "null"
32932 }
32933 }
32934 },
32935 "leaf" : 0,
32936 "path" : "/nodes/{node}/lxc/{vmid}/firewall/aliases",
32937 "text" : "aliases"
32938 },
32939 {
32940 "children" : [
32941 {
32942 "children" : [
32943 {
32944 "info" : {
32945 "DELETE" : {
32946 "allowtoken" : 1,
32947 "description" : "Remove IP or Network from IPSet.",
32948 "method" : "DELETE",
32949 "name" : "remove_ip",
32950 "parameters" : {
32951 "additionalProperties" : 0,
32952 "properties" : {
32953 "cidr" : {
32954 "description" : "Network/IP specification in CIDR format.",
32955 "format" : "IPorCIDRorAlias",
32956 "type" : "string",
32957 "typetext" : "<string>"
32958 },
32959 "digest" : {
32960 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
32961 "maxLength" : 64,
32962 "optional" : 1,
32963 "type" : "string",
32964 "typetext" : "<string>"
32965 },
32966 "name" : {
32967 "description" : "IP set name.",
32968 "maxLength" : 64,
32969 "minLength" : 2,
32970 "pattern" : "[A-Za-z][A-Za-z0-9\\-\\_]+",
32971 "type" : "string"
32972 },
32973 "node" : {
32974 "description" : "The cluster node name.",
32975 "format" : "pve-node",
32976 "type" : "string",
32977 "typetext" : "<string>"
32978 },
32979 "vmid" : {
32980 "description" : "The (unique) ID of the VM.",
32981 "format" : "pve-vmid",
32982 "maximum" : 999999999,
32983 "minimum" : 100,
32984 "type" : "integer",
32985 "typetext" : "<integer> (100 - 999999999)"
32986 }
32987 }
32988 },
32989 "permissions" : {
32990 "check" : [
32991 "perm",
32992 "/vms/{vmid}",
32993 [
32994 "VM.Config.Network"
32995 ]
32996 ]
32997 },
32998 "protected" : 1,
32999 "returns" : {
33000 "type" : "null"
33001 }
33002 },
33003 "GET" : {
33004 "allowtoken" : 1,
33005 "description" : "Read IP or Network settings from IPSet.",
33006 "method" : "GET",
33007 "name" : "read_ip",
33008 "parameters" : {
33009 "additionalProperties" : 0,
33010 "properties" : {
33011 "cidr" : {
33012 "description" : "Network/IP specification in CIDR format.",
33013 "format" : "IPorCIDRorAlias",
33014 "type" : "string",
33015 "typetext" : "<string>"
33016 },
33017 "name" : {
33018 "description" : "IP set name.",
33019 "maxLength" : 64,
33020 "minLength" : 2,
33021 "pattern" : "[A-Za-z][A-Za-z0-9\\-\\_]+",
33022 "type" : "string"
33023 },
33024 "node" : {
33025 "description" : "The cluster node name.",
33026 "format" : "pve-node",
33027 "type" : "string",
33028 "typetext" : "<string>"
33029 },
33030 "vmid" : {
33031 "description" : "The (unique) ID of the VM.",
33032 "format" : "pve-vmid",
33033 "maximum" : 999999999,
33034 "minimum" : 100,
33035 "type" : "integer",
33036 "typetext" : "<integer> (100 - 999999999)"
33037 }
33038 }
33039 },
33040 "permissions" : {
33041 "check" : [
33042 "perm",
33043 "/vms/{vmid}",
33044 [
33045 "VM.Audit"
33046 ]
33047 ]
33048 },
33049 "protected" : 1,
33050 "returns" : {
33051 "type" : "object"
33052 }
33053 },
33054 "PUT" : {
33055 "allowtoken" : 1,
33056 "description" : "Update IP or Network settings",
33057 "method" : "PUT",
33058 "name" : "update_ip",
33059 "parameters" : {
33060 "additionalProperties" : 0,
33061 "properties" : {
33062 "cidr" : {
33063 "description" : "Network/IP specification in CIDR format.",
33064 "format" : "IPorCIDRorAlias",
33065 "type" : "string",
33066 "typetext" : "<string>"
33067 },
33068 "comment" : {
33069 "optional" : 1,
33070 "type" : "string",
33071 "typetext" : "<string>"
33072 },
33073 "digest" : {
33074 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
33075 "maxLength" : 64,
33076 "optional" : 1,
33077 "type" : "string",
33078 "typetext" : "<string>"
33079 },
33080 "name" : {
33081 "description" : "IP set name.",
33082 "maxLength" : 64,
33083 "minLength" : 2,
33084 "pattern" : "[A-Za-z][A-Za-z0-9\\-\\_]+",
33085 "type" : "string"
33086 },
33087 "node" : {
33088 "description" : "The cluster node name.",
33089 "format" : "pve-node",
33090 "type" : "string",
33091 "typetext" : "<string>"
33092 },
33093 "nomatch" : {
33094 "optional" : 1,
33095 "type" : "boolean",
33096 "typetext" : "<boolean>"
33097 },
33098 "vmid" : {
33099 "description" : "The (unique) ID of the VM.",
33100 "format" : "pve-vmid",
33101 "maximum" : 999999999,
33102 "minimum" : 100,
33103 "type" : "integer",
33104 "typetext" : "<integer> (100 - 999999999)"
33105 }
33106 }
33107 },
33108 "permissions" : {
33109 "check" : [
33110 "perm",
33111 "/vms/{vmid}",
33112 [
33113 "VM.Config.Network"
33114 ]
33115 ]
33116 },
33117 "protected" : 1,
33118 "returns" : {
33119 "type" : "null"
33120 }
33121 }
33122 },
33123 "leaf" : 1,
33124 "path" : "/nodes/{node}/lxc/{vmid}/firewall/ipset/{name}/{cidr}",
33125 "text" : "{cidr}"
33126 }
33127 ],
33128 "info" : {
33129 "DELETE" : {
33130 "allowtoken" : 1,
33131 "description" : "Delete IPSet",
33132 "method" : "DELETE",
33133 "name" : "delete_ipset",
33134 "parameters" : {
33135 "additionalProperties" : 0,
33136 "properties" : {
33137 "force" : {
33138 "description" : "Delete all members of the IPSet, if there are any.",
33139 "optional" : 1,
33140 "type" : "boolean",
33141 "typetext" : "<boolean>"
33142 },
33143 "name" : {
33144 "description" : "IP set name.",
33145 "maxLength" : 64,
33146 "minLength" : 2,
33147 "pattern" : "[A-Za-z][A-Za-z0-9\\-\\_]+",
33148 "type" : "string"
33149 },
33150 "node" : {
33151 "description" : "The cluster node name.",
33152 "format" : "pve-node",
33153 "type" : "string",
33154 "typetext" : "<string>"
33155 },
33156 "vmid" : {
33157 "description" : "The (unique) ID of the VM.",
33158 "format" : "pve-vmid",
33159 "maximum" : 999999999,
33160 "minimum" : 100,
33161 "type" : "integer",
33162 "typetext" : "<integer> (100 - 999999999)"
33163 }
33164 }
33165 },
33166 "permissions" : {
33167 "check" : [
33168 "perm",
33169 "/vms/{vmid}",
33170 [
33171 "VM.Config.Network"
33172 ]
33173 ]
33174 },
33175 "protected" : 1,
33176 "returns" : {
33177 "type" : "null"
33178 }
33179 },
33180 "GET" : {
33181 "allowtoken" : 1,
33182 "description" : "List IPSet content",
33183 "method" : "GET",
33184 "name" : "get_ipset",
33185 "parameters" : {
33186 "additionalProperties" : 0,
33187 "properties" : {
33188 "name" : {
33189 "description" : "IP set name.",
33190 "maxLength" : 64,
33191 "minLength" : 2,
33192 "pattern" : "[A-Za-z][A-Za-z0-9\\-\\_]+",
33193 "type" : "string"
33194 },
33195 "node" : {
33196 "description" : "The cluster node name.",
33197 "format" : "pve-node",
33198 "type" : "string",
33199 "typetext" : "<string>"
33200 },
33201 "vmid" : {
33202 "description" : "The (unique) ID of the VM.",
33203 "format" : "pve-vmid",
33204 "maximum" : 999999999,
33205 "minimum" : 100,
33206 "type" : "integer",
33207 "typetext" : "<integer> (100 - 999999999)"
33208 }
33209 }
33210 },
33211 "permissions" : {
33212 "check" : [
33213 "perm",
33214 "/vms/{vmid}",
33215 [
33216 "VM.Audit"
33217 ]
33218 ]
33219 },
33220 "returns" : {
33221 "items" : {
33222 "properties" : {
33223 "cidr" : {
33224 "type" : "string"
33225 },
33226 "comment" : {
33227 "optional" : 1,
33228 "type" : "string"
33229 },
33230 "digest" : {
33231 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
33232 "maxLength" : 64,
33233 "optional" : 0,
33234 "type" : "string"
33235 },
33236 "nomatch" : {
33237 "optional" : 1,
33238 "type" : "boolean"
33239 }
33240 },
33241 "type" : "object"
33242 },
33243 "links" : [
33244 {
33245 "href" : "{cidr}",
33246 "rel" : "child"
33247 }
33248 ],
33249 "type" : "array"
33250 }
33251 },
33252 "POST" : {
33253 "allowtoken" : 1,
33254 "description" : "Add IP or Network to IPSet.",
33255 "method" : "POST",
33256 "name" : "create_ip",
33257 "parameters" : {
33258 "additionalProperties" : 0,
33259 "properties" : {
33260 "cidr" : {
33261 "description" : "Network/IP specification in CIDR format.",
33262 "format" : "IPorCIDRorAlias",
33263 "type" : "string",
33264 "typetext" : "<string>"
33265 },
33266 "comment" : {
33267 "optional" : 1,
33268 "type" : "string",
33269 "typetext" : "<string>"
33270 },
33271 "name" : {
33272 "description" : "IP set name.",
33273 "maxLength" : 64,
33274 "minLength" : 2,
33275 "pattern" : "[A-Za-z][A-Za-z0-9\\-\\_]+",
33276 "type" : "string"
33277 },
33278 "node" : {
33279 "description" : "The cluster node name.",
33280 "format" : "pve-node",
33281 "type" : "string",
33282 "typetext" : "<string>"
33283 },
33284 "nomatch" : {
33285 "optional" : 1,
33286 "type" : "boolean",
33287 "typetext" : "<boolean>"
33288 },
33289 "vmid" : {
33290 "description" : "The (unique) ID of the VM.",
33291 "format" : "pve-vmid",
33292 "maximum" : 999999999,
33293 "minimum" : 100,
33294 "type" : "integer",
33295 "typetext" : "<integer> (100 - 999999999)"
33296 }
33297 }
33298 },
33299 "permissions" : {
33300 "check" : [
33301 "perm",
33302 "/vms/{vmid}",
33303 [
33304 "VM.Config.Network"
33305 ]
33306 ]
33307 },
33308 "protected" : 1,
33309 "returns" : {
33310 "type" : "null"
33311 }
33312 }
33313 },
33314 "leaf" : 0,
33315 "path" : "/nodes/{node}/lxc/{vmid}/firewall/ipset/{name}",
33316 "text" : "{name}"
33317 }
33318 ],
33319 "info" : {
33320 "GET" : {
33321 "allowtoken" : 1,
33322 "description" : "List IPSets",
33323 "method" : "GET",
33324 "name" : "ipset_index",
33325 "parameters" : {
33326 "additionalProperties" : 0,
33327 "properties" : {
33328 "node" : {
33329 "description" : "The cluster node name.",
33330 "format" : "pve-node",
33331 "type" : "string",
33332 "typetext" : "<string>"
33333 },
33334 "vmid" : {
33335 "description" : "The (unique) ID of the VM.",
33336 "format" : "pve-vmid",
33337 "maximum" : 999999999,
33338 "minimum" : 100,
33339 "type" : "integer",
33340 "typetext" : "<integer> (100 - 999999999)"
33341 }
33342 }
33343 },
33344 "permissions" : {
33345 "check" : [
33346 "perm",
33347 "/vms/{vmid}",
33348 [
33349 "VM.Audit"
33350 ]
33351 ]
33352 },
33353 "returns" : {
33354 "items" : {
33355 "properties" : {
33356 "comment" : {
33357 "optional" : 1,
33358 "type" : "string"
33359 },
33360 "digest" : {
33361 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
33362 "maxLength" : 64,
33363 "optional" : 0,
33364 "type" : "string"
33365 },
33366 "name" : {
33367 "description" : "IP set name.",
33368 "maxLength" : 64,
33369 "minLength" : 2,
33370 "pattern" : "[A-Za-z][A-Za-z0-9\\-\\_]+",
33371 "type" : "string"
33372 }
33373 },
33374 "type" : "object"
33375 },
33376 "links" : [
33377 {
33378 "href" : "{name}",
33379 "rel" : "child"
33380 }
33381 ],
33382 "type" : "array"
33383 }
33384 },
33385 "POST" : {
33386 "allowtoken" : 1,
33387 "description" : "Create new IPSet",
33388 "method" : "POST",
33389 "name" : "create_ipset",
33390 "parameters" : {
33391 "additionalProperties" : 0,
33392 "properties" : {
33393 "comment" : {
33394 "optional" : 1,
33395 "type" : "string",
33396 "typetext" : "<string>"
33397 },
33398 "digest" : {
33399 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
33400 "maxLength" : 64,
33401 "optional" : 1,
33402 "type" : "string",
33403 "typetext" : "<string>"
33404 },
33405 "name" : {
33406 "description" : "IP set name.",
33407 "maxLength" : 64,
33408 "minLength" : 2,
33409 "pattern" : "[A-Za-z][A-Za-z0-9\\-\\_]+",
33410 "type" : "string"
33411 },
33412 "node" : {
33413 "description" : "The cluster node name.",
33414 "format" : "pve-node",
33415 "type" : "string",
33416 "typetext" : "<string>"
33417 },
33418 "rename" : {
33419 "description" : "Rename an existing IPSet. You can set 'rename' to the same value as 'name' to update the 'comment' of an existing IPSet.",
33420 "maxLength" : 64,
33421 "minLength" : 2,
33422 "optional" : 1,
33423 "pattern" : "[A-Za-z][A-Za-z0-9\\-\\_]+",
33424 "type" : "string"
33425 },
33426 "vmid" : {
33427 "description" : "The (unique) ID of the VM.",
33428 "format" : "pve-vmid",
33429 "maximum" : 999999999,
33430 "minimum" : 100,
33431 "type" : "integer",
33432 "typetext" : "<integer> (100 - 999999999)"
33433 }
33434 }
33435 },
33436 "permissions" : {
33437 "check" : [
33438 "perm",
33439 "/vms/{vmid}",
33440 [
33441 "VM.Config.Network"
33442 ]
33443 ]
33444 },
33445 "protected" : 1,
33446 "returns" : {
33447 "type" : "null"
33448 }
33449 }
33450 },
33451 "leaf" : 0,
33452 "path" : "/nodes/{node}/lxc/{vmid}/firewall/ipset",
33453 "text" : "ipset"
33454 },
33455 {
33456 "info" : {
33457 "GET" : {
33458 "allowtoken" : 1,
33459 "description" : "Get VM firewall options.",
33460 "method" : "GET",
33461 "name" : "get_options",
33462 "parameters" : {
33463 "additionalProperties" : 0,
33464 "properties" : {
33465 "node" : {
33466 "description" : "The cluster node name.",
33467 "format" : "pve-node",
33468 "type" : "string",
33469 "typetext" : "<string>"
33470 },
33471 "vmid" : {
33472 "description" : "The (unique) ID of the VM.",
33473 "format" : "pve-vmid",
33474 "maximum" : 999999999,
33475 "minimum" : 100,
33476 "type" : "integer",
33477 "typetext" : "<integer> (100 - 999999999)"
33478 }
33479 }
33480 },
33481 "permissions" : {
33482 "check" : [
33483 "perm",
33484 "/vms/{vmid}",
33485 [
33486 "VM.Audit"
33487 ]
33488 ]
33489 },
33490 "proxyto" : "node",
33491 "returns" : {
33492 "properties" : {
33493 "dhcp" : {
33494 "default" : 0,
33495 "description" : "Enable DHCP.",
33496 "optional" : 1,
33497 "type" : "boolean"
33498 },
33499 "enable" : {
33500 "default" : 0,
33501 "description" : "Enable/disable firewall rules.",
33502 "optional" : 1,
33503 "type" : "boolean"
33504 },
33505 "ipfilter" : {
33506 "description" : "Enable default IP filters. This is equivalent to adding an empty ipfilter-net<id> ipset for every interface. Such ipsets implicitly contain sane default restrictions such as restricting IPv6 link local addresses to the one derived from the interface's MAC address. For containers the configured IP addresses will be implicitly added.",
33507 "optional" : 1,
33508 "type" : "boolean"
33509 },
33510 "log_level_in" : {
33511 "description" : "Log level for incoming traffic.",
33512 "enum" : [
33513 "emerg",
33514 "alert",
33515 "crit",
33516 "err",
33517 "warning",
33518 "notice",
33519 "info",
33520 "debug",
33521 "nolog"
33522 ],
33523 "optional" : 1,
33524 "type" : "string"
33525 },
33526 "log_level_out" : {
33527 "description" : "Log level for outgoing traffic.",
33528 "enum" : [
33529 "emerg",
33530 "alert",
33531 "crit",
33532 "err",
33533 "warning",
33534 "notice",
33535 "info",
33536 "debug",
33537 "nolog"
33538 ],
33539 "optional" : 1,
33540 "type" : "string"
33541 },
33542 "macfilter" : {
33543 "default" : 1,
33544 "description" : "Enable/disable MAC address filter.",
33545 "optional" : 1,
33546 "type" : "boolean"
33547 },
33548 "ndp" : {
33549 "default" : 0,
33550 "description" : "Enable NDP (Neighbor Discovery Protocol).",
33551 "optional" : 1,
33552 "type" : "boolean"
33553 },
33554 "policy_in" : {
33555 "description" : "Input policy.",
33556 "enum" : [
33557 "ACCEPT",
33558 "REJECT",
33559 "DROP"
33560 ],
33561 "optional" : 1,
33562 "type" : "string"
33563 },
33564 "policy_out" : {
33565 "description" : "Output policy.",
33566 "enum" : [
33567 "ACCEPT",
33568 "REJECT",
33569 "DROP"
33570 ],
33571 "optional" : 1,
33572 "type" : "string"
33573 },
33574 "radv" : {
33575 "description" : "Allow sending Router Advertisement.",
33576 "optional" : 1,
33577 "type" : "boolean"
33578 }
33579 },
33580 "type" : "object"
33581 }
33582 },
33583 "PUT" : {
33584 "allowtoken" : 1,
33585 "description" : "Set Firewall options.",
33586 "method" : "PUT",
33587 "name" : "set_options",
33588 "parameters" : {
33589 "additionalProperties" : 0,
33590 "properties" : {
33591 "delete" : {
33592 "description" : "A list of settings you want to delete.",
33593 "format" : "pve-configid-list",
33594 "optional" : 1,
33595 "type" : "string",
33596 "typetext" : "<string>"
33597 },
33598 "dhcp" : {
33599 "default" : 0,
33600 "description" : "Enable DHCP.",
33601 "optional" : 1,
33602 "type" : "boolean",
33603 "typetext" : "<boolean>"
33604 },
33605 "digest" : {
33606 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
33607 "maxLength" : 64,
33608 "optional" : 1,
33609 "type" : "string",
33610 "typetext" : "<string>"
33611 },
33612 "enable" : {
33613 "default" : 0,
33614 "description" : "Enable/disable firewall rules.",
33615 "optional" : 1,
33616 "type" : "boolean",
33617 "typetext" : "<boolean>"
33618 },
33619 "ipfilter" : {
33620 "description" : "Enable default IP filters. This is equivalent to adding an empty ipfilter-net<id> ipset for every interface. Such ipsets implicitly contain sane default restrictions such as restricting IPv6 link local addresses to the one derived from the interface's MAC address. For containers the configured IP addresses will be implicitly added.",
33621 "optional" : 1,
33622 "type" : "boolean",
33623 "typetext" : "<boolean>"
33624 },
33625 "log_level_in" : {
33626 "description" : "Log level for incoming traffic.",
33627 "enum" : [
33628 "emerg",
33629 "alert",
33630 "crit",
33631 "err",
33632 "warning",
33633 "notice",
33634 "info",
33635 "debug",
33636 "nolog"
33637 ],
33638 "optional" : 1,
33639 "type" : "string"
33640 },
33641 "log_level_out" : {
33642 "description" : "Log level for outgoing traffic.",
33643 "enum" : [
33644 "emerg",
33645 "alert",
33646 "crit",
33647 "err",
33648 "warning",
33649 "notice",
33650 "info",
33651 "debug",
33652 "nolog"
33653 ],
33654 "optional" : 1,
33655 "type" : "string"
33656 },
33657 "macfilter" : {
33658 "default" : 1,
33659 "description" : "Enable/disable MAC address filter.",
33660 "optional" : 1,
33661 "type" : "boolean",
33662 "typetext" : "<boolean>"
33663 },
33664 "ndp" : {
33665 "default" : 0,
33666 "description" : "Enable NDP (Neighbor Discovery Protocol).",
33667 "optional" : 1,
33668 "type" : "boolean",
33669 "typetext" : "<boolean>"
33670 },
33671 "node" : {
33672 "description" : "The cluster node name.",
33673 "format" : "pve-node",
33674 "type" : "string",
33675 "typetext" : "<string>"
33676 },
33677 "policy_in" : {
33678 "description" : "Input policy.",
33679 "enum" : [
33680 "ACCEPT",
33681 "REJECT",
33682 "DROP"
33683 ],
33684 "optional" : 1,
33685 "type" : "string"
33686 },
33687 "policy_out" : {
33688 "description" : "Output policy.",
33689 "enum" : [
33690 "ACCEPT",
33691 "REJECT",
33692 "DROP"
33693 ],
33694 "optional" : 1,
33695 "type" : "string"
33696 },
33697 "radv" : {
33698 "description" : "Allow sending Router Advertisement.",
33699 "optional" : 1,
33700 "type" : "boolean",
33701 "typetext" : "<boolean>"
33702 },
33703 "vmid" : {
33704 "description" : "The (unique) ID of the VM.",
33705 "format" : "pve-vmid",
33706 "maximum" : 999999999,
33707 "minimum" : 100,
33708 "type" : "integer",
33709 "typetext" : "<integer> (100 - 999999999)"
33710 }
33711 }
33712 },
33713 "permissions" : {
33714 "check" : [
33715 "perm",
33716 "/vms/{vmid}",
33717 [
33718 "VM.Config.Network"
33719 ]
33720 ]
33721 },
33722 "protected" : 1,
33723 "proxyto" : "node",
33724 "returns" : {
33725 "type" : "null"
33726 }
33727 }
33728 },
33729 "leaf" : 1,
33730 "path" : "/nodes/{node}/lxc/{vmid}/firewall/options",
33731 "text" : "options"
33732 },
33733 {
33734 "info" : {
33735 "GET" : {
33736 "allowtoken" : 1,
33737 "description" : "Read firewall log",
33738 "method" : "GET",
33739 "name" : "log",
33740 "parameters" : {
33741 "additionalProperties" : 0,
33742 "properties" : {
33743 "limit" : {
33744 "minimum" : 0,
33745 "optional" : 1,
33746 "type" : "integer",
33747 "typetext" : "<integer> (0 - N)"
33748 },
33749 "node" : {
33750 "description" : "The cluster node name.",
33751 "format" : "pve-node",
33752 "type" : "string",
33753 "typetext" : "<string>"
33754 },
33755 "since" : {
33756 "description" : "Display log since this UNIX epoch.",
33757 "minimum" : 0,
33758 "optional" : 1,
33759 "type" : "integer",
33760 "typetext" : "<integer> (0 - N)"
33761 },
33762 "start" : {
33763 "minimum" : 0,
33764 "optional" : 1,
33765 "type" : "integer",
33766 "typetext" : "<integer> (0 - N)"
33767 },
33768 "until" : {
33769 "description" : "Display log until this UNIX epoch.",
33770 "minimum" : 0,
33771 "optional" : 1,
33772 "type" : "integer",
33773 "typetext" : "<integer> (0 - N)"
33774 },
33775 "vmid" : {
33776 "description" : "The (unique) ID of the VM.",
33777 "format" : "pve-vmid",
33778 "maximum" : 999999999,
33779 "minimum" : 100,
33780 "type" : "integer",
33781 "typetext" : "<integer> (100 - 999999999)"
33782 }
33783 }
33784 },
33785 "permissions" : {
33786 "check" : [
33787 "perm",
33788 "/vms/{vmid}",
33789 [
33790 "VM.Console"
33791 ]
33792 ]
33793 },
33794 "protected" : 1,
33795 "proxyto" : "node",
33796 "returns" : {
33797 "items" : {
33798 "properties" : {
33799 "n" : {
33800 "description" : "Line number",
33801 "type" : "integer"
33802 },
33803 "t" : {
33804 "description" : "Line text",
33805 "type" : "string"
33806 }
33807 },
33808 "type" : "object"
33809 },
33810 "type" : "array"
33811 }
33812 }
33813 },
33814 "leaf" : 1,
33815 "path" : "/nodes/{node}/lxc/{vmid}/firewall/log",
33816 "text" : "log"
33817 },
33818 {
33819 "info" : {
33820 "GET" : {
33821 "allowtoken" : 1,
33822 "description" : "Lists possible IPSet/Alias reference which are allowed in source/dest properties.",
33823 "method" : "GET",
33824 "name" : "refs",
33825 "parameters" : {
33826 "additionalProperties" : 0,
33827 "properties" : {
33828 "node" : {
33829 "description" : "The cluster node name.",
33830 "format" : "pve-node",
33831 "type" : "string",
33832 "typetext" : "<string>"
33833 },
33834 "type" : {
33835 "description" : "Only list references of specified type.",
33836 "enum" : [
33837 "alias",
33838 "ipset"
33839 ],
33840 "optional" : 1,
33841 "type" : "string"
33842 },
33843 "vmid" : {
33844 "description" : "The (unique) ID of the VM.",
33845 "format" : "pve-vmid",
33846 "maximum" : 999999999,
33847 "minimum" : 100,
33848 "type" : "integer",
33849 "typetext" : "<integer> (100 - 999999999)"
33850 }
33851 }
33852 },
33853 "permissions" : {
33854 "check" : [
33855 "perm",
33856 "/vms/{vmid}",
33857 [
33858 "VM.Audit"
33859 ]
33860 ]
33861 },
33862 "returns" : {
33863 "items" : {
33864 "properties" : {
33865 "comment" : {
33866 "optional" : 1,
33867 "type" : "string"
33868 },
33869 "name" : {
33870 "type" : "string"
33871 },
33872 "ref" : {
33873 "type" : "string"
33874 },
33875 "scope" : {
33876 "type" : "string"
33877 },
33878 "type" : {
33879 "enum" : [
33880 "alias",
33881 "ipset"
33882 ],
33883 "type" : "string"
33884 }
33885 },
33886 "type" : "object"
33887 },
33888 "type" : "array"
33889 }
33890 }
33891 },
33892 "leaf" : 1,
33893 "path" : "/nodes/{node}/lxc/{vmid}/firewall/refs",
33894 "text" : "refs"
33895 }
33896 ],
33897 "info" : {
33898 "GET" : {
33899 "allowtoken" : 1,
33900 "description" : "Directory index.",
33901 "method" : "GET",
33902 "name" : "index",
33903 "parameters" : {
33904 "additionalProperties" : 0,
33905 "properties" : {
33906 "node" : {
33907 "description" : "The cluster node name.",
33908 "format" : "pve-node",
33909 "type" : "string",
33910 "typetext" : "<string>"
33911 },
33912 "vmid" : {
33913 "description" : "The (unique) ID of the VM.",
33914 "format" : "pve-vmid",
33915 "maximum" : 999999999,
33916 "minimum" : 100,
33917 "type" : "integer",
33918 "typetext" : "<integer> (100 - 999999999)"
33919 }
33920 }
33921 },
33922 "permissions" : {
33923 "user" : "all"
33924 },
33925 "returns" : {
33926 "items" : {
33927 "properties" : {},
33928 "type" : "object"
33929 },
33930 "links" : [
33931 {
33932 "href" : "{name}",
33933 "rel" : "child"
33934 }
33935 ],
33936 "type" : "array"
33937 }
33938 }
33939 },
33940 "leaf" : 0,
33941 "path" : "/nodes/{node}/lxc/{vmid}/firewall",
33942 "text" : "firewall"
33943 },
33944 {
33945 "info" : {
33946 "GET" : {
33947 "allowtoken" : 1,
33948 "description" : "Read VM RRD statistics (returns PNG)",
33949 "method" : "GET",
33950 "name" : "rrd",
33951 "parameters" : {
33952 "additionalProperties" : 0,
33953 "properties" : {
33954 "cf" : {
33955 "description" : "The RRD consolidation function",
33956 "enum" : [
33957 "AVERAGE",
33958 "MAX"
33959 ],
33960 "optional" : 1,
33961 "type" : "string"
33962 },
33963 "ds" : {
33964 "description" : "The list of datasources you want to display.",
33965 "format" : "pve-configid-list",
33966 "type" : "string",
33967 "typetext" : "<string>"
33968 },
33969 "node" : {
33970 "description" : "The cluster node name.",
33971 "format" : "pve-node",
33972 "type" : "string",
33973 "typetext" : "<string>"
33974 },
33975 "timeframe" : {
33976 "description" : "Specify the time frame you are interested in.",
33977 "enum" : [
33978 "hour",
33979 "day",
33980 "week",
33981 "month",
33982 "year"
33983 ],
33984 "type" : "string"
33985 },
33986 "vmid" : {
33987 "description" : "The (unique) ID of the VM.",
33988 "format" : "pve-vmid",
33989 "maximum" : 999999999,
33990 "minimum" : 100,
33991 "type" : "integer",
33992 "typetext" : "<integer> (100 - 999999999)"
33993 }
33994 }
33995 },
33996 "permissions" : {
33997 "check" : [
33998 "perm",
33999 "/vms/{vmid}",
34000 [
34001 "VM.Audit"
34002 ]
34003 ]
34004 },
34005 "protected" : 1,
34006 "returns" : {
34007 "properties" : {
34008 "filename" : {
34009 "type" : "string"
34010 }
34011 },
34012 "type" : "object"
34013 }
34014 }
34015 },
34016 "leaf" : 1,
34017 "path" : "/nodes/{node}/lxc/{vmid}/rrd",
34018 "text" : "rrd"
34019 },
34020 {
34021 "info" : {
34022 "GET" : {
34023 "allowtoken" : 1,
34024 "description" : "Read VM RRD statistics",
34025 "method" : "GET",
34026 "name" : "rrddata",
34027 "parameters" : {
34028 "additionalProperties" : 0,
34029 "properties" : {
34030 "cf" : {
34031 "description" : "The RRD consolidation function",
34032 "enum" : [
34033 "AVERAGE",
34034 "MAX"
34035 ],
34036 "optional" : 1,
34037 "type" : "string"
34038 },
34039 "node" : {
34040 "description" : "The cluster node name.",
34041 "format" : "pve-node",
34042 "type" : "string",
34043 "typetext" : "<string>"
34044 },
34045 "timeframe" : {
34046 "description" : "Specify the time frame you are interested in.",
34047 "enum" : [
34048 "hour",
34049 "day",
34050 "week",
34051 "month",
34052 "year"
34053 ],
34054 "type" : "string"
34055 },
34056 "vmid" : {
34057 "description" : "The (unique) ID of the VM.",
34058 "format" : "pve-vmid",
34059 "maximum" : 999999999,
34060 "minimum" : 100,
34061 "type" : "integer",
34062 "typetext" : "<integer> (100 - 999999999)"
34063 }
34064 }
34065 },
34066 "permissions" : {
34067 "check" : [
34068 "perm",
34069 "/vms/{vmid}",
34070 [
34071 "VM.Audit"
34072 ]
34073 ]
34074 },
34075 "protected" : 1,
34076 "returns" : {
34077 "items" : {
34078 "properties" : {},
34079 "type" : "object"
34080 },
34081 "type" : "array"
34082 }
34083 }
34084 },
34085 "leaf" : 1,
34086 "path" : "/nodes/{node}/lxc/{vmid}/rrddata",
34087 "text" : "rrddata"
34088 },
34089 {
34090 "info" : {
34091 "POST" : {
34092 "allowtoken" : 1,
34093 "description" : "Creates a TCP VNC proxy connections.",
34094 "method" : "POST",
34095 "name" : "vncproxy",
34096 "parameters" : {
34097 "additionalProperties" : 0,
34098 "properties" : {
34099 "height" : {
34100 "description" : "sets the height of the console in pixels.",
34101 "maximum" : 2160,
34102 "minimum" : 16,
34103 "optional" : 1,
34104 "type" : "integer",
34105 "typetext" : "<integer> (16 - 2160)"
34106 },
34107 "node" : {
34108 "description" : "The cluster node name.",
34109 "format" : "pve-node",
34110 "type" : "string",
34111 "typetext" : "<string>"
34112 },
34113 "vmid" : {
34114 "description" : "The (unique) ID of the VM.",
34115 "format" : "pve-vmid",
34116 "maximum" : 999999999,
34117 "minimum" : 100,
34118 "type" : "integer",
34119 "typetext" : "<integer> (100 - 999999999)"
34120 },
34121 "websocket" : {
34122 "description" : "use websocket instead of standard VNC.",
34123 "optional" : 1,
34124 "type" : "boolean",
34125 "typetext" : "<boolean>"
34126 },
34127 "width" : {
34128 "description" : "sets the width of the console in pixels.",
34129 "maximum" : 4096,
34130 "minimum" : 16,
34131 "optional" : 1,
34132 "type" : "integer",
34133 "typetext" : "<integer> (16 - 4096)"
34134 }
34135 }
34136 },
34137 "permissions" : {
34138 "check" : [
34139 "perm",
34140 "/vms/{vmid}",
34141 [
34142 "VM.Console"
34143 ]
34144 ]
34145 },
34146 "protected" : 1,
34147 "returns" : {
34148 "additionalProperties" : 0,
34149 "properties" : {
34150 "cert" : {
34151 "type" : "string"
34152 },
34153 "port" : {
34154 "type" : "integer"
34155 },
34156 "ticket" : {
34157 "type" : "string"
34158 },
34159 "upid" : {
34160 "type" : "string"
34161 },
34162 "user" : {
34163 "type" : "string"
34164 }
34165 }
34166 }
34167 }
34168 },
34169 "leaf" : 1,
34170 "path" : "/nodes/{node}/lxc/{vmid}/vncproxy",
34171 "text" : "vncproxy"
34172 },
34173 {
34174 "info" : {
34175 "POST" : {
34176 "allowtoken" : 1,
34177 "description" : "Creates a TCP proxy connection.",
34178 "method" : "POST",
34179 "name" : "termproxy",
34180 "parameters" : {
34181 "additionalProperties" : 0,
34182 "properties" : {
34183 "node" : {
34184 "description" : "The cluster node name.",
34185 "format" : "pve-node",
34186 "type" : "string",
34187 "typetext" : "<string>"
34188 },
34189 "vmid" : {
34190 "description" : "The (unique) ID of the VM.",
34191 "format" : "pve-vmid",
34192 "maximum" : 999999999,
34193 "minimum" : 100,
34194 "type" : "integer",
34195 "typetext" : "<integer> (100 - 999999999)"
34196 }
34197 }
34198 },
34199 "permissions" : {
34200 "check" : [
34201 "perm",
34202 "/vms/{vmid}",
34203 [
34204 "VM.Console"
34205 ]
34206 ]
34207 },
34208 "protected" : 1,
34209 "returns" : {
34210 "additionalProperties" : 0,
34211 "properties" : {
34212 "port" : {
34213 "type" : "integer"
34214 },
34215 "ticket" : {
34216 "type" : "string"
34217 },
34218 "upid" : {
34219 "type" : "string"
34220 },
34221 "user" : {
34222 "type" : "string"
34223 }
34224 }
34225 }
34226 }
34227 },
34228 "leaf" : 1,
34229 "path" : "/nodes/{node}/lxc/{vmid}/termproxy",
34230 "text" : "termproxy"
34231 },
34232 {
34233 "info" : {
34234 "GET" : {
34235 "allowtoken" : 1,
34236 "description" : "Opens a weksocket for VNC traffic.",
34237 "method" : "GET",
34238 "name" : "vncwebsocket",
34239 "parameters" : {
34240 "additionalProperties" : 0,
34241 "properties" : {
34242 "node" : {
34243 "description" : "The cluster node name.",
34244 "format" : "pve-node",
34245 "type" : "string",
34246 "typetext" : "<string>"
34247 },
34248 "port" : {
34249 "description" : "Port number returned by previous vncproxy call.",
34250 "maximum" : 5999,
34251 "minimum" : 5900,
34252 "type" : "integer",
34253 "typetext" : "<integer> (5900 - 5999)"
34254 },
34255 "vmid" : {
34256 "description" : "The (unique) ID of the VM.",
34257 "format" : "pve-vmid",
34258 "maximum" : 999999999,
34259 "minimum" : 100,
34260 "type" : "integer",
34261 "typetext" : "<integer> (100 - 999999999)"
34262 },
34263 "vncticket" : {
34264 "description" : "Ticket from previous call to vncproxy.",
34265 "maxLength" : 512,
34266 "type" : "string",
34267 "typetext" : "<string>"
34268 }
34269 }
34270 },
34271 "permissions" : {
34272 "check" : [
34273 "perm",
34274 "/vms/{vmid}",
34275 [
34276 "VM.Console"
34277 ]
34278 ],
34279 "description" : "You also need to pass a valid ticket (vncticket)."
34280 },
34281 "returns" : {
34282 "properties" : {
34283 "port" : {
34284 "type" : "string"
34285 }
34286 },
34287 "type" : "object"
34288 }
34289 }
34290 },
34291 "leaf" : 1,
34292 "path" : "/nodes/{node}/lxc/{vmid}/vncwebsocket",
34293 "text" : "vncwebsocket"
34294 },
34295 {
34296 "info" : {
34297 "POST" : {
34298 "allowtoken" : 1,
34299 "description" : "Returns a SPICE configuration to connect to the CT.",
34300 "method" : "POST",
34301 "name" : "spiceproxy",
34302 "parameters" : {
34303 "additionalProperties" : 0,
34304 "properties" : {
34305 "node" : {
34306 "description" : "The cluster node name.",
34307 "format" : "pve-node",
34308 "type" : "string",
34309 "typetext" : "<string>"
34310 },
34311 "proxy" : {
34312 "description" : "SPICE proxy server. This can be used by the client to specify the proxy server. All nodes in a cluster runs 'spiceproxy', so it is up to the client to choose one. By default, we return the node where the VM is currently running. As reasonable setting is to use same node you use to connect to the API (This is window.location.hostname for the JS GUI).",
34313 "format" : "address",
34314 "optional" : 1,
34315 "type" : "string",
34316 "typetext" : "<string>"
34317 },
34318 "vmid" : {
34319 "description" : "The (unique) ID of the VM.",
34320 "format" : "pve-vmid",
34321 "maximum" : 999999999,
34322 "minimum" : 100,
34323 "type" : "integer",
34324 "typetext" : "<integer> (100 - 999999999)"
34325 }
34326 }
34327 },
34328 "permissions" : {
34329 "check" : [
34330 "perm",
34331 "/vms/{vmid}",
34332 [
34333 "VM.Console"
34334 ]
34335 ]
34336 },
34337 "protected" : 1,
34338 "proxyto" : "node",
34339 "returns" : {
34340 "additionalProperties" : 1,
34341 "description" : "Returned values can be directly passed to the 'remote-viewer' application.",
34342 "properties" : {
34343 "host" : {
34344 "type" : "string"
34345 },
34346 "password" : {
34347 "type" : "string"
34348 },
34349 "proxy" : {
34350 "type" : "string"
34351 },
34352 "tls-port" : {
34353 "type" : "integer"
34354 },
34355 "type" : {
34356 "type" : "string"
34357 }
34358 }
34359 }
34360 }
34361 },
34362 "leaf" : 1,
34363 "path" : "/nodes/{node}/lxc/{vmid}/spiceproxy",
34364 "text" : "spiceproxy"
34365 },
34366 {
34367 "info" : {
34368 "POST" : {
34369 "allowtoken" : 1,
34370 "description" : "Migrate the container to another cluster. Creates a new migration task. EXPERIMENTAL feature!",
34371 "method" : "POST",
34372 "name" : "remote_migrate_vm",
34373 "parameters" : {
34374 "additionalProperties" : 0,
34375 "properties" : {
34376 "bwlimit" : {
34377 "default" : "migrate limit from datacenter or storage config",
34378 "description" : "Override I/O bandwidth limit (in KiB/s).",
34379 "minimum" : "0",
34380 "optional" : 1,
34381 "type" : "number",
34382 "typetext" : "<number> (0 - N)"
34383 },
34384 "delete" : {
34385 "default" : 0,
34386 "description" : "Delete the original CT and related data after successful migration. By default the original CT is kept on the source cluster in a stopped state.",
34387 "optional" : 1,
34388 "type" : "boolean",
34389 "typetext" : "<boolean>"
34390 },
34391 "node" : {
34392 "description" : "The cluster node name.",
34393 "format" : "pve-node",
34394 "type" : "string",
34395 "typetext" : "<string>"
34396 },
34397 "online" : {
34398 "description" : "Use online/live migration.",
34399 "optional" : 1,
34400 "type" : "boolean",
34401 "typetext" : "<boolean>"
34402 },
34403 "restart" : {
34404 "description" : "Use restart migration",
34405 "optional" : 1,
34406 "type" : "boolean",
34407 "typetext" : "<boolean>"
34408 },
34409 "target-bridge" : {
34410 "description" : "Mapping from source to target bridges. Providing only a single bridge ID maps all source bridges to that bridge. Providing the special value '1' will map each source bridge to itself.",
34411 "format" : "bridge-pair-list",
34412 "type" : "string",
34413 "typetext" : "<string>"
34414 },
34415 "target-endpoint" : {
34416 "description" : "Remote target endpoint",
34417 "format" : "proxmox-remote",
34418 "type" : "string",
34419 "typetext" : "apitoken=<PVEAPIToken=user@realm!token=SECRET> ,host=<ADDRESS> [,fingerprint=<FINGERPRINT>] [,port=<PORT>]"
34420 },
34421 "target-storage" : {
34422 "description" : "Mapping from source to target storages. Providing only a single storage ID maps all source storages to that storage. Providing the special value '1' will map each source storage to itself.",
34423 "format" : "storage-pair-list",
34424 "optional" : 0,
34425 "type" : "string",
34426 "typetext" : "<string>"
34427 },
34428 "target-vmid" : {
34429 "description" : "The (unique) ID of the VM.",
34430 "format" : "pve-vmid",
34431 "maximum" : 999999999,
34432 "minimum" : 100,
34433 "optional" : 1,
34434 "type" : "integer",
34435 "typetext" : "<integer> (100 - 999999999)"
34436 },
34437 "timeout" : {
34438 "default" : 180,
34439 "description" : "Timeout in seconds for shutdown for restart migration",
34440 "optional" : 1,
34441 "type" : "integer",
34442 "typetext" : "<integer>"
34443 },
34444 "vmid" : {
34445 "description" : "The (unique) ID of the VM.",
34446 "format" : "pve-vmid",
34447 "maximum" : 999999999,
34448 "minimum" : 100,
34449 "type" : "integer",
34450 "typetext" : "<integer> (100 - 999999999)"
34451 }
34452 }
34453 },
34454 "permissions" : {
34455 "check" : [
34456 "perm",
34457 "/vms/{vmid}",
34458 [
34459 "VM.Migrate"
34460 ]
34461 ]
34462 },
34463 "protected" : 1,
34464 "proxyto" : "node",
34465 "returns" : {
34466 "description" : "the task ID.",
34467 "type" : "string"
34468 }
34469 }
34470 },
34471 "leaf" : 1,
34472 "path" : "/nodes/{node}/lxc/{vmid}/remote_migrate",
34473 "text" : "remote_migrate"
34474 },
34475 {
34476 "info" : {
34477 "POST" : {
34478 "allowtoken" : 1,
34479 "description" : "Migrate the container to another node. Creates a new migration task.",
34480 "method" : "POST",
34481 "name" : "migrate_vm",
34482 "parameters" : {
34483 "additionalProperties" : 0,
34484 "properties" : {
34485 "bwlimit" : {
34486 "default" : "migrate limit from datacenter or storage config",
34487 "description" : "Override I/O bandwidth limit (in KiB/s).",
34488 "minimum" : "0",
34489 "optional" : 1,
34490 "type" : "number",
34491 "typetext" : "<number> (0 - N)"
34492 },
34493 "node" : {
34494 "description" : "The cluster node name.",
34495 "format" : "pve-node",
34496 "type" : "string",
34497 "typetext" : "<string>"
34498 },
34499 "online" : {
34500 "description" : "Use online/live migration.",
34501 "optional" : 1,
34502 "type" : "boolean",
34503 "typetext" : "<boolean>"
34504 },
34505 "restart" : {
34506 "description" : "Use restart migration",
34507 "optional" : 1,
34508 "type" : "boolean",
34509 "typetext" : "<boolean>"
34510 },
34511 "target" : {
34512 "description" : "Target node.",
34513 "format" : "pve-node",
34514 "type" : "string",
34515 "typetext" : "<string>"
34516 },
34517 "target-storage" : {
34518 "description" : "Mapping from source to target storages. Providing only a single storage ID maps all source storages to that storage. Providing the special value '1' will map each source storage to itself.",
34519 "format" : "storage-pair-list",
34520 "optional" : 1,
34521 "type" : "string",
34522 "typetext" : "<string>"
34523 },
34524 "timeout" : {
34525 "default" : 180,
34526 "description" : "Timeout in seconds for shutdown for restart migration",
34527 "optional" : 1,
34528 "type" : "integer",
34529 "typetext" : "<integer>"
34530 },
34531 "vmid" : {
34532 "description" : "The (unique) ID of the VM.",
34533 "format" : "pve-vmid",
34534 "maximum" : 999999999,
34535 "minimum" : 100,
34536 "type" : "integer",
34537 "typetext" : "<integer> (100 - 999999999)"
34538 }
34539 }
34540 },
34541 "permissions" : {
34542 "check" : [
34543 "perm",
34544 "/vms/{vmid}",
34545 [
34546 "VM.Migrate"
34547 ]
34548 ]
34549 },
34550 "protected" : 1,
34551 "proxyto" : "node",
34552 "returns" : {
34553 "description" : "the task ID.",
34554 "type" : "string"
34555 }
34556 }
34557 },
34558 "leaf" : 1,
34559 "path" : "/nodes/{node}/lxc/{vmid}/migrate",
34560 "text" : "migrate"
34561 },
34562 {
34563 "info" : {
34564 "GET" : {
34565 "allowtoken" : 1,
34566 "description" : "Check if feature for virtual machine is available.",
34567 "method" : "GET",
34568 "name" : "vm_feature",
34569 "parameters" : {
34570 "additionalProperties" : 0,
34571 "properties" : {
34572 "feature" : {
34573 "description" : "Feature to check.",
34574 "enum" : [
34575 "snapshot",
34576 "clone",
34577 "copy"
34578 ],
34579 "type" : "string"
34580 },
34581 "node" : {
34582 "description" : "The cluster node name.",
34583 "format" : "pve-node",
34584 "type" : "string",
34585 "typetext" : "<string>"
34586 },
34587 "snapname" : {
34588 "description" : "The name of the snapshot.",
34589 "format" : "pve-configid",
34590 "maxLength" : 40,
34591 "optional" : 1,
34592 "type" : "string",
34593 "typetext" : "<string>"
34594 },
34595 "vmid" : {
34596 "description" : "The (unique) ID of the VM.",
34597 "format" : "pve-vmid",
34598 "maximum" : 999999999,
34599 "minimum" : 100,
34600 "type" : "integer",
34601 "typetext" : "<integer> (100 - 999999999)"
34602 }
34603 }
34604 },
34605 "permissions" : {
34606 "check" : [
34607 "perm",
34608 "/vms/{vmid}",
34609 [
34610 "VM.Audit"
34611 ]
34612 ]
34613 },
34614 "protected" : 1,
34615 "proxyto" : "node",
34616 "returns" : {
34617 "properties" : {
34618 "hasFeature" : {
34619 "type" : "boolean"
34620 }
34621 },
34622 "type" : "object"
34623 }
34624 }
34625 },
34626 "leaf" : 1,
34627 "path" : "/nodes/{node}/lxc/{vmid}/feature",
34628 "text" : "feature"
34629 },
34630 {
34631 "info" : {
34632 "POST" : {
34633 "allowtoken" : 1,
34634 "description" : "Create a Template.",
34635 "method" : "POST",
34636 "name" : "template",
34637 "parameters" : {
34638 "additionalProperties" : 0,
34639 "properties" : {
34640 "node" : {
34641 "description" : "The cluster node name.",
34642 "format" : "pve-node",
34643 "type" : "string",
34644 "typetext" : "<string>"
34645 },
34646 "vmid" : {
34647 "description" : "The (unique) ID of the VM.",
34648 "format" : "pve-vmid",
34649 "maximum" : 999999999,
34650 "minimum" : 100,
34651 "type" : "integer",
34652 "typetext" : "<integer> (100 - 999999999)"
34653 }
34654 }
34655 },
34656 "permissions" : {
34657 "check" : [
34658 "perm",
34659 "/vms/{vmid}",
34660 [
34661 "VM.Allocate"
34662 ]
34663 ],
34664 "description" : "You need 'VM.Allocate' permissions on /vms/{vmid}"
34665 },
34666 "protected" : 1,
34667 "proxyto" : "node",
34668 "returns" : {
34669 "type" : "null"
34670 }
34671 }
34672 },
34673 "leaf" : 1,
34674 "path" : "/nodes/{node}/lxc/{vmid}/template",
34675 "text" : "template"
34676 },
34677 {
34678 "info" : {
34679 "POST" : {
34680 "allowtoken" : 1,
34681 "description" : "Create a container clone/copy",
34682 "method" : "POST",
34683 "name" : "clone_vm",
34684 "parameters" : {
34685 "additionalProperties" : 0,
34686 "properties" : {
34687 "bwlimit" : {
34688 "default" : "clone limit from datacenter or storage config",
34689 "description" : "Override I/O bandwidth limit (in KiB/s).",
34690 "minimum" : "0",
34691 "optional" : 1,
34692 "type" : "number",
34693 "typetext" : "<number> (0 - N)"
34694 },
34695 "description" : {
34696 "description" : "Description for the new CT.",
34697 "optional" : 1,
34698 "type" : "string",
34699 "typetext" : "<string>"
34700 },
34701 "full" : {
34702 "description" : "Create a full copy of all disks. This is always done when you clone a normal CT. For CT templates, we try to create a linked clone by default.",
34703 "optional" : 1,
34704 "type" : "boolean",
34705 "typetext" : "<boolean>"
34706 },
34707 "hostname" : {
34708 "description" : "Set a hostname for the new CT.",
34709 "format" : "dns-name",
34710 "optional" : 1,
34711 "type" : "string",
34712 "typetext" : "<string>"
34713 },
34714 "newid" : {
34715 "description" : "VMID for the clone.",
34716 "format" : "pve-vmid",
34717 "maximum" : 999999999,
34718 "minimum" : 100,
34719 "type" : "integer",
34720 "typetext" : "<integer> (100 - 999999999)"
34721 },
34722 "node" : {
34723 "description" : "The cluster node name.",
34724 "format" : "pve-node",
34725 "type" : "string",
34726 "typetext" : "<string>"
34727 },
34728 "pool" : {
34729 "description" : "Add the new CT to the specified pool.",
34730 "format" : "pve-poolid",
34731 "optional" : 1,
34732 "type" : "string",
34733 "typetext" : "<string>"
34734 },
34735 "snapname" : {
34736 "description" : "The name of the snapshot.",
34737 "format" : "pve-configid",
34738 "maxLength" : 40,
34739 "optional" : 1,
34740 "type" : "string",
34741 "typetext" : "<string>"
34742 },
34743 "storage" : {
34744 "description" : "Target storage for full clone.",
34745 "format" : "pve-storage-id",
34746 "format_description" : "storage ID",
34747 "optional" : 1,
34748 "type" : "string",
34749 "typetext" : "<storage ID>"
34750 },
34751 "target" : {
34752 "description" : "Target node. Only allowed if the original VM is on shared storage.",
34753 "format" : "pve-node",
34754 "optional" : 1,
34755 "type" : "string",
34756 "typetext" : "<string>"
34757 },
34758 "vmid" : {
34759 "description" : "The (unique) ID of the VM.",
34760 "format" : "pve-vmid",
34761 "maximum" : 999999999,
34762 "minimum" : 100,
34763 "type" : "integer",
34764 "typetext" : "<integer> (100 - 999999999)"
34765 }
34766 }
34767 },
34768 "permissions" : {
34769 "check" : [
34770 "and",
34771 [
34772 "perm",
34773 "/vms/{vmid}",
34774 [
34775 "VM.Clone"
34776 ]
34777 ],
34778 [
34779 "or",
34780 [
34781 "perm",
34782 "/vms/{newid}",
34783 [
34784 "VM.Allocate"
34785 ]
34786 ],
34787 [
34788 "perm",
34789 "/pool/{pool}",
34790 [
34791 "VM.Allocate"
34792 ],
34793 "require_param",
34794 "pool"
34795 ]
34796 ]
34797 ],
34798 "description" : "You need 'VM.Clone' permissions on /vms/{vmid}, and 'VM.Allocate' permissions on /vms/{newid} (or on the VM pool /pool/{pool}). You also need 'Datastore.AllocateSpace' on any used storage, and 'SDN.Use' on any bridge."
34799 },
34800 "protected" : 1,
34801 "proxyto" : "node",
34802 "returns" : {
34803 "type" : "string"
34804 }
34805 }
34806 },
34807 "leaf" : 1,
34808 "path" : "/nodes/{node}/lxc/{vmid}/clone",
34809 "text" : "clone"
34810 },
34811 {
34812 "info" : {
34813 "PUT" : {
34814 "allowtoken" : 1,
34815 "description" : "Resize a container mount point.",
34816 "method" : "PUT",
34817 "name" : "resize_vm",
34818 "parameters" : {
34819 "additionalProperties" : 0,
34820 "properties" : {
34821 "digest" : {
34822 "description" : "Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.",
34823 "maxLength" : 40,
34824 "optional" : 1,
34825 "type" : "string",
34826 "typetext" : "<string>"
34827 },
34828 "disk" : {
34829 "description" : "The disk you want to resize.",
34830 "enum" : [
34831 "rootfs",
34832 "mp0",
34833 "mp1",
34834 "mp2",
34835 "mp3",
34836 "mp4",
34837 "mp5",
34838 "mp6",
34839 "mp7",
34840 "mp8",
34841 "mp9",
34842 "mp10",
34843 "mp11",
34844 "mp12",
34845 "mp13",
34846 "mp14",
34847 "mp15",
34848 "mp16",
34849 "mp17",
34850 "mp18",
34851 "mp19",
34852 "mp20",
34853 "mp21",
34854 "mp22",
34855 "mp23",
34856 "mp24",
34857 "mp25",
34858 "mp26",
34859 "mp27",
34860 "mp28",
34861 "mp29",
34862 "mp30",
34863 "mp31",
34864 "mp32",
34865 "mp33",
34866 "mp34",
34867 "mp35",
34868 "mp36",
34869 "mp37",
34870 "mp38",
34871 "mp39",
34872 "mp40",
34873 "mp41",
34874 "mp42",
34875 "mp43",
34876 "mp44",
34877 "mp45",
34878 "mp46",
34879 "mp47",
34880 "mp48",
34881 "mp49",
34882 "mp50",
34883 "mp51",
34884 "mp52",
34885 "mp53",
34886 "mp54",
34887 "mp55",
34888 "mp56",
34889 "mp57",
34890 "mp58",
34891 "mp59",
34892 "mp60",
34893 "mp61",
34894 "mp62",
34895 "mp63",
34896 "mp64",
34897 "mp65",
34898 "mp66",
34899 "mp67",
34900 "mp68",
34901 "mp69",
34902 "mp70",
34903 "mp71",
34904 "mp72",
34905 "mp73",
34906 "mp74",
34907 "mp75",
34908 "mp76",
34909 "mp77",
34910 "mp78",
34911 "mp79",
34912 "mp80",
34913 "mp81",
34914 "mp82",
34915 "mp83",
34916 "mp84",
34917 "mp85",
34918 "mp86",
34919 "mp87",
34920 "mp88",
34921 "mp89",
34922 "mp90",
34923 "mp91",
34924 "mp92",
34925 "mp93",
34926 "mp94",
34927 "mp95",
34928 "mp96",
34929 "mp97",
34930 "mp98",
34931 "mp99",
34932 "mp100",
34933 "mp101",
34934 "mp102",
34935 "mp103",
34936 "mp104",
34937 "mp105",
34938 "mp106",
34939 "mp107",
34940 "mp108",
34941 "mp109",
34942 "mp110",
34943 "mp111",
34944 "mp112",
34945 "mp113",
34946 "mp114",
34947 "mp115",
34948 "mp116",
34949 "mp117",
34950 "mp118",
34951 "mp119",
34952 "mp120",
34953 "mp121",
34954 "mp122",
34955 "mp123",
34956 "mp124",
34957 "mp125",
34958 "mp126",
34959 "mp127",
34960 "mp128",
34961 "mp129",
34962 "mp130",
34963 "mp131",
34964 "mp132",
34965 "mp133",
34966 "mp134",
34967 "mp135",
34968 "mp136",
34969 "mp137",
34970 "mp138",
34971 "mp139",
34972 "mp140",
34973 "mp141",
34974 "mp142",
34975 "mp143",
34976 "mp144",
34977 "mp145",
34978 "mp146",
34979 "mp147",
34980 "mp148",
34981 "mp149",
34982 "mp150",
34983 "mp151",
34984 "mp152",
34985 "mp153",
34986 "mp154",
34987 "mp155",
34988 "mp156",
34989 "mp157",
34990 "mp158",
34991 "mp159",
34992 "mp160",
34993 "mp161",
34994 "mp162",
34995 "mp163",
34996 "mp164",
34997 "mp165",
34998 "mp166",
34999 "mp167",
35000 "mp168",
35001 "mp169",
35002 "mp170",
35003 "mp171",
35004 "mp172",
35005 "mp173",
35006 "mp174",
35007 "mp175",
35008 "mp176",
35009 "mp177",
35010 "mp178",
35011 "mp179",
35012 "mp180",
35013 "mp181",
35014 "mp182",
35015 "mp183",
35016 "mp184",
35017 "mp185",
35018 "mp186",
35019 "mp187",
35020 "mp188",
35021 "mp189",
35022 "mp190",
35023 "mp191",
35024 "mp192",
35025 "mp193",
35026 "mp194",
35027 "mp195",
35028 "mp196",
35029 "mp197",
35030 "mp198",
35031 "mp199",
35032 "mp200",
35033 "mp201",
35034 "mp202",
35035 "mp203",
35036 "mp204",
35037 "mp205",
35038 "mp206",
35039 "mp207",
35040 "mp208",
35041 "mp209",
35042 "mp210",
35043 "mp211",
35044 "mp212",
35045 "mp213",
35046 "mp214",
35047 "mp215",
35048 "mp216",
35049 "mp217",
35050 "mp218",
35051 "mp219",
35052 "mp220",
35053 "mp221",
35054 "mp222",
35055 "mp223",
35056 "mp224",
35057 "mp225",
35058 "mp226",
35059 "mp227",
35060 "mp228",
35061 "mp229",
35062 "mp230",
35063 "mp231",
35064 "mp232",
35065 "mp233",
35066 "mp234",
35067 "mp235",
35068 "mp236",
35069 "mp237",
35070 "mp238",
35071 "mp239",
35072 "mp240",
35073 "mp241",
35074 "mp242",
35075 "mp243",
35076 "mp244",
35077 "mp245",
35078 "mp246",
35079 "mp247",
35080 "mp248",
35081 "mp249",
35082 "mp250",
35083 "mp251",
35084 "mp252",
35085 "mp253",
35086 "mp254",
35087 "mp255"
35088 ],
35089 "type" : "string"
35090 },
35091 "node" : {
35092 "description" : "The cluster node name.",
35093 "format" : "pve-node",
35094 "type" : "string",
35095 "typetext" : "<string>"
35096 },
35097 "size" : {
35098 "description" : "The new size. With the '+' sign the value is added to the actual size of the volume and without it, the value is taken as an absolute one. Shrinking disk size is not supported.",
35099 "pattern" : "\\+?\\d+(\\.\\d+)?[KMGT]?",
35100 "type" : "string"
35101 },
35102 "vmid" : {
35103 "description" : "The (unique) ID of the VM.",
35104 "format" : "pve-vmid",
35105 "maximum" : 999999999,
35106 "minimum" : 100,
35107 "type" : "integer",
35108 "typetext" : "<integer> (100 - 999999999)"
35109 }
35110 }
35111 },
35112 "permissions" : {
35113 "check" : [
35114 "perm",
35115 "/vms/{vmid}",
35116 [
35117 "VM.Config.Disk"
35118 ],
35119 "any",
35120 1
35121 ]
35122 },
35123 "protected" : 1,
35124 "proxyto" : "node",
35125 "returns" : {
35126 "description" : "the task ID.",
35127 "type" : "string"
35128 }
35129 }
35130 },
35131 "leaf" : 1,
35132 "path" : "/nodes/{node}/lxc/{vmid}/resize",
35133 "text" : "resize"
35134 },
35135 {
35136 "info" : {
35137 "POST" : {
35138 "allowtoken" : 1,
35139 "description" : "Move a rootfs-/mp-volume to a different storage or to a different container.",
35140 "method" : "POST",
35141 "name" : "move_volume",
35142 "parameters" : {
35143 "additionalProperties" : 0,
35144 "properties" : {
35145 "bwlimit" : {
35146 "default" : "clone limit from datacenter or storage config",
35147 "description" : "Override I/O bandwidth limit (in KiB/s).",
35148 "minimum" : "0",
35149 "optional" : 1,
35150 "type" : "number",
35151 "typetext" : "<number> (0 - N)"
35152 },
35153 "delete" : {
35154 "default" : 0,
35155 "description" : "Delete the original volume after successful copy. By default the original is kept as an unused volume entry.",
35156 "optional" : 1,
35157 "type" : "boolean",
35158 "typetext" : "<boolean>"
35159 },
35160 "digest" : {
35161 "description" : "Prevent changes if current configuration file has different SHA1 \" .\n\t\t \"digest. This can be used to prevent concurrent modifications.",
35162 "maxLength" : 40,
35163 "optional" : 1,
35164 "type" : "string",
35165 "typetext" : "<string>"
35166 },
35167 "node" : {
35168 "description" : "The cluster node name.",
35169 "format" : "pve-node",
35170 "type" : "string",
35171 "typetext" : "<string>"
35172 },
35173 "storage" : {
35174 "description" : "Target Storage.",
35175 "format" : "pve-storage-id",
35176 "format_description" : "storage ID",
35177 "optional" : 1,
35178 "type" : "string",
35179 "typetext" : "<storage ID>"
35180 },
35181 "target-digest" : {
35182 "description" : "Prevent changes if current configuration file of the target \" .\n\t\t \"container has a different SHA1 digest. This can be used to prevent \" .\n\t\t \"concurrent modifications.",
35183 "maxLength" : 40,
35184 "optional" : 1,
35185 "type" : "string",
35186 "typetext" : "<string>"
35187 },
35188 "target-vmid" : {
35189 "description" : "The (unique) ID of the VM.",
35190 "format" : "pve-vmid",
35191 "maximum" : 999999999,
35192 "minimum" : 100,
35193 "optional" : 1,
35194 "type" : "integer",
35195 "typetext" : "<integer> (100 - 999999999)"
35196 },
35197 "target-volume" : {
35198 "description" : "The config key the volume will be moved to. Default is the source volume key.",
35199 "enum" : [
35200 "rootfs",
35201 "mp0",
35202 "mp1",
35203 "mp2",
35204 "mp3",
35205 "mp4",
35206 "mp5",
35207 "mp6",
35208 "mp7",
35209 "mp8",
35210 "mp9",
35211 "mp10",
35212 "mp11",
35213 "mp12",
35214 "mp13",
35215 "mp14",
35216 "mp15",
35217 "mp16",
35218 "mp17",
35219 "mp18",
35220 "mp19",
35221 "mp20",
35222 "mp21",
35223 "mp22",
35224 "mp23",
35225 "mp24",
35226 "mp25",
35227 "mp26",
35228 "mp27",
35229 "mp28",
35230 "mp29",
35231 "mp30",
35232 "mp31",
35233 "mp32",
35234 "mp33",
35235 "mp34",
35236 "mp35",
35237 "mp36",
35238 "mp37",
35239 "mp38",
35240 "mp39",
35241 "mp40",
35242 "mp41",
35243 "mp42",
35244 "mp43",
35245 "mp44",
35246 "mp45",
35247 "mp46",
35248 "mp47",
35249 "mp48",
35250 "mp49",
35251 "mp50",
35252 "mp51",
35253 "mp52",
35254 "mp53",
35255 "mp54",
35256 "mp55",
35257 "mp56",
35258 "mp57",
35259 "mp58",
35260 "mp59",
35261 "mp60",
35262 "mp61",
35263 "mp62",
35264 "mp63",
35265 "mp64",
35266 "mp65",
35267 "mp66",
35268 "mp67",
35269 "mp68",
35270 "mp69",
35271 "mp70",
35272 "mp71",
35273 "mp72",
35274 "mp73",
35275 "mp74",
35276 "mp75",
35277 "mp76",
35278 "mp77",
35279 "mp78",
35280 "mp79",
35281 "mp80",
35282 "mp81",
35283 "mp82",
35284 "mp83",
35285 "mp84",
35286 "mp85",
35287 "mp86",
35288 "mp87",
35289 "mp88",
35290 "mp89",
35291 "mp90",
35292 "mp91",
35293 "mp92",
35294 "mp93",
35295 "mp94",
35296 "mp95",
35297 "mp96",
35298 "mp97",
35299 "mp98",
35300 "mp99",
35301 "mp100",
35302 "mp101",
35303 "mp102",
35304 "mp103",
35305 "mp104",
35306 "mp105",
35307 "mp106",
35308 "mp107",
35309 "mp108",
35310 "mp109",
35311 "mp110",
35312 "mp111",
35313 "mp112",
35314 "mp113",
35315 "mp114",
35316 "mp115",
35317 "mp116",
35318 "mp117",
35319 "mp118",
35320 "mp119",
35321 "mp120",
35322 "mp121",
35323 "mp122",
35324 "mp123",
35325 "mp124",
35326 "mp125",
35327 "mp126",
35328 "mp127",
35329 "mp128",
35330 "mp129",
35331 "mp130",
35332 "mp131",
35333 "mp132",
35334 "mp133",
35335 "mp134",
35336 "mp135",
35337 "mp136",
35338 "mp137",
35339 "mp138",
35340 "mp139",
35341 "mp140",
35342 "mp141",
35343 "mp142",
35344 "mp143",
35345 "mp144",
35346 "mp145",
35347 "mp146",
35348 "mp147",
35349 "mp148",
35350 "mp149",
35351 "mp150",
35352 "mp151",
35353 "mp152",
35354 "mp153",
35355 "mp154",
35356 "mp155",
35357 "mp156",
35358 "mp157",
35359 "mp158",
35360 "mp159",
35361 "mp160",
35362 "mp161",
35363 "mp162",
35364 "mp163",
35365 "mp164",
35366 "mp165",
35367 "mp166",
35368 "mp167",
35369 "mp168",
35370 "mp169",
35371 "mp170",
35372 "mp171",
35373 "mp172",
35374 "mp173",
35375 "mp174",
35376 "mp175",
35377 "mp176",
35378 "mp177",
35379 "mp178",
35380 "mp179",
35381 "mp180",
35382 "mp181",
35383 "mp182",
35384 "mp183",
35385 "mp184",
35386 "mp185",
35387 "mp186",
35388 "mp187",
35389 "mp188",
35390 "mp189",
35391 "mp190",
35392 "mp191",
35393 "mp192",
35394 "mp193",
35395 "mp194",
35396 "mp195",
35397 "mp196",
35398 "mp197",
35399 "mp198",
35400 "mp199",
35401 "mp200",
35402 "mp201",
35403 "mp202",
35404 "mp203",
35405 "mp204",
35406 "mp205",
35407 "mp206",
35408 "mp207",
35409 "mp208",
35410 "mp209",
35411 "mp210",
35412 "mp211",
35413 "mp212",
35414 "mp213",
35415 "mp214",
35416 "mp215",
35417 "mp216",
35418 "mp217",
35419 "mp218",
35420 "mp219",
35421 "mp220",
35422 "mp221",
35423 "mp222",
35424 "mp223",
35425 "mp224",
35426 "mp225",
35427 "mp226",
35428 "mp227",
35429 "mp228",
35430 "mp229",
35431 "mp230",
35432 "mp231",
35433 "mp232",
35434 "mp233",
35435 "mp234",
35436 "mp235",
35437 "mp236",
35438 "mp237",
35439 "mp238",
35440 "mp239",
35441 "mp240",
35442 "mp241",
35443 "mp242",
35444 "mp243",
35445 "mp244",
35446 "mp245",
35447 "mp246",
35448 "mp247",
35449 "mp248",
35450 "mp249",
35451 "mp250",
35452 "mp251",
35453 "mp252",
35454 "mp253",
35455 "mp254",
35456 "mp255",
35457 "unused0",
35458 "unused1",
35459 "unused2",
35460 "unused3",
35461 "unused4",
35462 "unused5",
35463 "unused6",
35464 "unused7",
35465 "unused8",
35466 "unused9",
35467 "unused10",
35468 "unused11",
35469 "unused12",
35470 "unused13",
35471 "unused14",
35472 "unused15",
35473 "unused16",
35474 "unused17",
35475 "unused18",
35476 "unused19",
35477 "unused20",
35478 "unused21",
35479 "unused22",
35480 "unused23",
35481 "unused24",
35482 "unused25",
35483 "unused26",
35484 "unused27",
35485 "unused28",
35486 "unused29",
35487 "unused30",
35488 "unused31",
35489 "unused32",
35490 "unused33",
35491 "unused34",
35492 "unused35",
35493 "unused36",
35494 "unused37",
35495 "unused38",
35496 "unused39",
35497 "unused40",
35498 "unused41",
35499 "unused42",
35500 "unused43",
35501 "unused44",
35502 "unused45",
35503 "unused46",
35504 "unused47",
35505 "unused48",
35506 "unused49",
35507 "unused50",
35508 "unused51",
35509 "unused52",
35510 "unused53",
35511 "unused54",
35512 "unused55",
35513 "unused56",
35514 "unused57",
35515 "unused58",
35516 "unused59",
35517 "unused60",
35518 "unused61",
35519 "unused62",
35520 "unused63",
35521 "unused64",
35522 "unused65",
35523 "unused66",
35524 "unused67",
35525 "unused68",
35526 "unused69",
35527 "unused70",
35528 "unused71",
35529 "unused72",
35530 "unused73",
35531 "unused74",
35532 "unused75",
35533 "unused76",
35534 "unused77",
35535 "unused78",
35536 "unused79",
35537 "unused80",
35538 "unused81",
35539 "unused82",
35540 "unused83",
35541 "unused84",
35542 "unused85",
35543 "unused86",
35544 "unused87",
35545 "unused88",
35546 "unused89",
35547 "unused90",
35548 "unused91",
35549 "unused92",
35550 "unused93",
35551 "unused94",
35552 "unused95",
35553 "unused96",
35554 "unused97",
35555 "unused98",
35556 "unused99",
35557 "unused100",
35558 "unused101",
35559 "unused102",
35560 "unused103",
35561 "unused104",
35562 "unused105",
35563 "unused106",
35564 "unused107",
35565 "unused108",
35566 "unused109",
35567 "unused110",
35568 "unused111",
35569 "unused112",
35570 "unused113",
35571 "unused114",
35572 "unused115",
35573 "unused116",
35574 "unused117",
35575 "unused118",
35576 "unused119",
35577 "unused120",
35578 "unused121",
35579 "unused122",
35580 "unused123",
35581 "unused124",
35582 "unused125",
35583 "unused126",
35584 "unused127",
35585 "unused128",
35586 "unused129",
35587 "unused130",
35588 "unused131",
35589 "unused132",
35590 "unused133",
35591 "unused134",
35592 "unused135",
35593 "unused136",
35594 "unused137",
35595 "unused138",
35596 "unused139",
35597 "unused140",
35598 "unused141",
35599 "unused142",
35600 "unused143",
35601 "unused144",
35602 "unused145",
35603 "unused146",
35604 "unused147",
35605 "unused148",
35606 "unused149",
35607 "unused150",
35608 "unused151",
35609 "unused152",
35610 "unused153",
35611 "unused154",
35612 "unused155",
35613 "unused156",
35614 "unused157",
35615 "unused158",
35616 "unused159",
35617 "unused160",
35618 "unused161",
35619 "unused162",
35620 "unused163",
35621 "unused164",
35622 "unused165",
35623 "unused166",
35624 "unused167",
35625 "unused168",
35626 "unused169",
35627 "unused170",
35628 "unused171",
35629 "unused172",
35630 "unused173",
35631 "unused174",
35632 "unused175",
35633 "unused176",
35634 "unused177",
35635 "unused178",
35636 "unused179",
35637 "unused180",
35638 "unused181",
35639 "unused182",
35640 "unused183",
35641 "unused184",
35642 "unused185",
35643 "unused186",
35644 "unused187",
35645 "unused188",
35646 "unused189",
35647 "unused190",
35648 "unused191",
35649 "unused192",
35650 "unused193",
35651 "unused194",
35652 "unused195",
35653 "unused196",
35654 "unused197",
35655 "unused198",
35656 "unused199",
35657 "unused200",
35658 "unused201",
35659 "unused202",
35660 "unused203",
35661 "unused204",
35662 "unused205",
35663 "unused206",
35664 "unused207",
35665 "unused208",
35666 "unused209",
35667 "unused210",
35668 "unused211",
35669 "unused212",
35670 "unused213",
35671 "unused214",
35672 "unused215",
35673 "unused216",
35674 "unused217",
35675 "unused218",
35676 "unused219",
35677 "unused220",
35678 "unused221",
35679 "unused222",
35680 "unused223",
35681 "unused224",
35682 "unused225",
35683 "unused226",
35684 "unused227",
35685 "unused228",
35686 "unused229",
35687 "unused230",
35688 "unused231",
35689 "unused232",
35690 "unused233",
35691 "unused234",
35692 "unused235",
35693 "unused236",
35694 "unused237",
35695 "unused238",
35696 "unused239",
35697 "unused240",
35698 "unused241",
35699 "unused242",
35700 "unused243",
35701 "unused244",
35702 "unused245",
35703 "unused246",
35704 "unused247",
35705 "unused248",
35706 "unused249",
35707 "unused250",
35708 "unused251",
35709 "unused252",
35710 "unused253",
35711 "unused254",
35712 "unused255"
35713 ],
35714 "optional" : 1,
35715 "type" : "string"
35716 },
35717 "vmid" : {
35718 "description" : "The (unique) ID of the VM.",
35719 "format" : "pve-vmid",
35720 "maximum" : 999999999,
35721 "minimum" : 100,
35722 "type" : "integer",
35723 "typetext" : "<integer> (100 - 999999999)"
35724 },
35725 "volume" : {
35726 "description" : "Volume which will be moved.",
35727 "enum" : [
35728 "rootfs",
35729 "mp0",
35730 "mp1",
35731 "mp2",
35732 "mp3",
35733 "mp4",
35734 "mp5",
35735 "mp6",
35736 "mp7",
35737 "mp8",
35738 "mp9",
35739 "mp10",
35740 "mp11",
35741 "mp12",
35742 "mp13",
35743 "mp14",
35744 "mp15",
35745 "mp16",
35746 "mp17",
35747 "mp18",
35748 "mp19",
35749 "mp20",
35750 "mp21",
35751 "mp22",
35752 "mp23",
35753 "mp24",
35754 "mp25",
35755 "mp26",
35756 "mp27",
35757 "mp28",
35758 "mp29",
35759 "mp30",
35760 "mp31",
35761 "mp32",
35762 "mp33",
35763 "mp34",
35764 "mp35",
35765 "mp36",
35766 "mp37",
35767 "mp38",
35768 "mp39",
35769 "mp40",
35770 "mp41",
35771 "mp42",
35772 "mp43",
35773 "mp44",
35774 "mp45",
35775 "mp46",
35776 "mp47",
35777 "mp48",
35778 "mp49",
35779 "mp50",
35780 "mp51",
35781 "mp52",
35782 "mp53",
35783 "mp54",
35784 "mp55",
35785 "mp56",
35786 "mp57",
35787 "mp58",
35788 "mp59",
35789 "mp60",
35790 "mp61",
35791 "mp62",
35792 "mp63",
35793 "mp64",
35794 "mp65",
35795 "mp66",
35796 "mp67",
35797 "mp68",
35798 "mp69",
35799 "mp70",
35800 "mp71",
35801 "mp72",
35802 "mp73",
35803 "mp74",
35804 "mp75",
35805 "mp76",
35806 "mp77",
35807 "mp78",
35808 "mp79",
35809 "mp80",
35810 "mp81",
35811 "mp82",
35812 "mp83",
35813 "mp84",
35814 "mp85",
35815 "mp86",
35816 "mp87",
35817 "mp88",
35818 "mp89",
35819 "mp90",
35820 "mp91",
35821 "mp92",
35822 "mp93",
35823 "mp94",
35824 "mp95",
35825 "mp96",
35826 "mp97",
35827 "mp98",
35828 "mp99",
35829 "mp100",
35830 "mp101",
35831 "mp102",
35832 "mp103",
35833 "mp104",
35834 "mp105",
35835 "mp106",
35836 "mp107",
35837 "mp108",
35838 "mp109",
35839 "mp110",
35840 "mp111",
35841 "mp112",
35842 "mp113",
35843 "mp114",
35844 "mp115",
35845 "mp116",
35846 "mp117",
35847 "mp118",
35848 "mp119",
35849 "mp120",
35850 "mp121",
35851 "mp122",
35852 "mp123",
35853 "mp124",
35854 "mp125",
35855 "mp126",
35856 "mp127",
35857 "mp128",
35858 "mp129",
35859 "mp130",
35860 "mp131",
35861 "mp132",
35862 "mp133",
35863 "mp134",
35864 "mp135",
35865 "mp136",
35866 "mp137",
35867 "mp138",
35868 "mp139",
35869 "mp140",
35870 "mp141",
35871 "mp142",
35872 "mp143",
35873 "mp144",
35874 "mp145",
35875 "mp146",
35876 "mp147",
35877 "mp148",
35878 "mp149",
35879 "mp150",
35880 "mp151",
35881 "mp152",
35882 "mp153",
35883 "mp154",
35884 "mp155",
35885 "mp156",
35886 "mp157",
35887 "mp158",
35888 "mp159",
35889 "mp160",
35890 "mp161",
35891 "mp162",
35892 "mp163",
35893 "mp164",
35894 "mp165",
35895 "mp166",
35896 "mp167",
35897 "mp168",
35898 "mp169",
35899 "mp170",
35900 "mp171",
35901 "mp172",
35902 "mp173",
35903 "mp174",
35904 "mp175",
35905 "mp176",
35906 "mp177",
35907 "mp178",
35908 "mp179",
35909 "mp180",
35910 "mp181",
35911 "mp182",
35912 "mp183",
35913 "mp184",
35914 "mp185",
35915 "mp186",
35916 "mp187",
35917 "mp188",
35918 "mp189",
35919 "mp190",
35920 "mp191",
35921 "mp192",
35922 "mp193",
35923 "mp194",
35924 "mp195",
35925 "mp196",
35926 "mp197",
35927 "mp198",
35928 "mp199",
35929 "mp200",
35930 "mp201",
35931 "mp202",
35932 "mp203",
35933 "mp204",
35934 "mp205",
35935 "mp206",
35936 "mp207",
35937 "mp208",
35938 "mp209",
35939 "mp210",
35940 "mp211",
35941 "mp212",
35942 "mp213",
35943 "mp214",
35944 "mp215",
35945 "mp216",
35946 "mp217",
35947 "mp218",
35948 "mp219",
35949 "mp220",
35950 "mp221",
35951 "mp222",
35952 "mp223",
35953 "mp224",
35954 "mp225",
35955 "mp226",
35956 "mp227",
35957 "mp228",
35958 "mp229",
35959 "mp230",
35960 "mp231",
35961 "mp232",
35962 "mp233",
35963 "mp234",
35964 "mp235",
35965 "mp236",
35966 "mp237",
35967 "mp238",
35968 "mp239",
35969 "mp240",
35970 "mp241",
35971 "mp242",
35972 "mp243",
35973 "mp244",
35974 "mp245",
35975 "mp246",
35976 "mp247",
35977 "mp248",
35978 "mp249",
35979 "mp250",
35980 "mp251",
35981 "mp252",
35982 "mp253",
35983 "mp254",
35984 "mp255",
35985 "unused0",
35986 "unused1",
35987 "unused2",
35988 "unused3",
35989 "unused4",
35990 "unused5",
35991 "unused6",
35992 "unused7",
35993 "unused8",
35994 "unused9",
35995 "unused10",
35996 "unused11",
35997 "unused12",
35998 "unused13",
35999 "unused14",
36000 "unused15",
36001 "unused16",
36002 "unused17",
36003 "unused18",
36004 "unused19",
36005 "unused20",
36006 "unused21",
36007 "unused22",
36008 "unused23",
36009 "unused24",
36010 "unused25",
36011 "unused26",
36012 "unused27",
36013 "unused28",
36014 "unused29",
36015 "unused30",
36016 "unused31",
36017 "unused32",
36018 "unused33",
36019 "unused34",
36020 "unused35",
36021 "unused36",
36022 "unused37",
36023 "unused38",
36024 "unused39",
36025 "unused40",
36026 "unused41",
36027 "unused42",
36028 "unused43",
36029 "unused44",
36030 "unused45",
36031 "unused46",
36032 "unused47",
36033 "unused48",
36034 "unused49",
36035 "unused50",
36036 "unused51",
36037 "unused52",
36038 "unused53",
36039 "unused54",
36040 "unused55",
36041 "unused56",
36042 "unused57",
36043 "unused58",
36044 "unused59",
36045 "unused60",
36046 "unused61",
36047 "unused62",
36048 "unused63",
36049 "unused64",
36050 "unused65",
36051 "unused66",
36052 "unused67",
36053 "unused68",
36054 "unused69",
36055 "unused70",
36056 "unused71",
36057 "unused72",
36058 "unused73",
36059 "unused74",
36060 "unused75",
36061 "unused76",
36062 "unused77",
36063 "unused78",
36064 "unused79",
36065 "unused80",
36066 "unused81",
36067 "unused82",
36068 "unused83",
36069 "unused84",
36070 "unused85",
36071 "unused86",
36072 "unused87",
36073 "unused88",
36074 "unused89",
36075 "unused90",
36076 "unused91",
36077 "unused92",
36078 "unused93",
36079 "unused94",
36080 "unused95",
36081 "unused96",
36082 "unused97",
36083 "unused98",
36084 "unused99",
36085 "unused100",
36086 "unused101",
36087 "unused102",
36088 "unused103",
36089 "unused104",
36090 "unused105",
36091 "unused106",
36092 "unused107",
36093 "unused108",
36094 "unused109",
36095 "unused110",
36096 "unused111",
36097 "unused112",
36098 "unused113",
36099 "unused114",
36100 "unused115",
36101 "unused116",
36102 "unused117",
36103 "unused118",
36104 "unused119",
36105 "unused120",
36106 "unused121",
36107 "unused122",
36108 "unused123",
36109 "unused124",
36110 "unused125",
36111 "unused126",
36112 "unused127",
36113 "unused128",
36114 "unused129",
36115 "unused130",
36116 "unused131",
36117 "unused132",
36118 "unused133",
36119 "unused134",
36120 "unused135",
36121 "unused136",
36122 "unused137",
36123 "unused138",
36124 "unused139",
36125 "unused140",
36126 "unused141",
36127 "unused142",
36128 "unused143",
36129 "unused144",
36130 "unused145",
36131 "unused146",
36132 "unused147",
36133 "unused148",
36134 "unused149",
36135 "unused150",
36136 "unused151",
36137 "unused152",
36138 "unused153",
36139 "unused154",
36140 "unused155",
36141 "unused156",
36142 "unused157",
36143 "unused158",
36144 "unused159",
36145 "unused160",
36146 "unused161",
36147 "unused162",
36148 "unused163",
36149 "unused164",
36150 "unused165",
36151 "unused166",
36152 "unused167",
36153 "unused168",
36154 "unused169",
36155 "unused170",
36156 "unused171",
36157 "unused172",
36158 "unused173",
36159 "unused174",
36160 "unused175",
36161 "unused176",
36162 "unused177",
36163 "unused178",
36164 "unused179",
36165 "unused180",
36166 "unused181",
36167 "unused182",
36168 "unused183",
36169 "unused184",
36170 "unused185",
36171 "unused186",
36172 "unused187",
36173 "unused188",
36174 "unused189",
36175 "unused190",
36176 "unused191",
36177 "unused192",
36178 "unused193",
36179 "unused194",
36180 "unused195",
36181 "unused196",
36182 "unused197",
36183 "unused198",
36184 "unused199",
36185 "unused200",
36186 "unused201",
36187 "unused202",
36188 "unused203",
36189 "unused204",
36190 "unused205",
36191 "unused206",
36192 "unused207",
36193 "unused208",
36194 "unused209",
36195 "unused210",
36196 "unused211",
36197 "unused212",
36198 "unused213",
36199 "unused214",
36200 "unused215",
36201 "unused216",
36202 "unused217",
36203 "unused218",
36204 "unused219",
36205 "unused220",
36206 "unused221",
36207 "unused222",
36208 "unused223",
36209 "unused224",
36210 "unused225",
36211 "unused226",
36212 "unused227",
36213 "unused228",
36214 "unused229",
36215 "unused230",
36216 "unused231",
36217 "unused232",
36218 "unused233",
36219 "unused234",
36220 "unused235",
36221 "unused236",
36222 "unused237",
36223 "unused238",
36224 "unused239",
36225 "unused240",
36226 "unused241",
36227 "unused242",
36228 "unused243",
36229 "unused244",
36230 "unused245",
36231 "unused246",
36232 "unused247",
36233 "unused248",
36234 "unused249",
36235 "unused250",
36236 "unused251",
36237 "unused252",
36238 "unused253",
36239 "unused254",
36240 "unused255"
36241 ],
36242 "type" : "string"
36243 }
36244 }
36245 },
36246 "permissions" : {
36247 "check" : [
36248 "perm",
36249 "/vms/{vmid}",
36250 [
36251 "VM.Config.Disk"
36252 ]
36253 ],
36254 "description" : "You need 'VM.Config.Disk' permissions on /vms/{vmid}, and 'Datastore.AllocateSpace' permissions on the storage. To move a volume to another container, you need the permissions on the target container as well."
36255 },
36256 "protected" : 1,
36257 "proxyto" : "node",
36258 "returns" : {
36259 "type" : "string"
36260 }
36261 }
36262 },
36263 "leaf" : 1,
36264 "path" : "/nodes/{node}/lxc/{vmid}/move_volume",
36265 "text" : "move_volume"
36266 },
36267 {
36268 "info" : {
36269 "GET" : {
36270 "allowtoken" : 1,
36271 "description" : "Get container configuration, including pending changes.",
36272 "method" : "GET",
36273 "name" : "vm_pending",
36274 "parameters" : {
36275 "additionalProperties" : 0,
36276 "properties" : {
36277 "node" : {
36278 "description" : "The cluster node name.",
36279 "format" : "pve-node",
36280 "type" : "string",
36281 "typetext" : "<string>"
36282 },
36283 "vmid" : {
36284 "description" : "The (unique) ID of the VM.",
36285 "format" : "pve-vmid",
36286 "maximum" : 999999999,
36287 "minimum" : 100,
36288 "type" : "integer",
36289 "typetext" : "<integer> (100 - 999999999)"
36290 }
36291 }
36292 },
36293 "permissions" : {
36294 "check" : [
36295 "perm",
36296 "/vms/{vmid}",
36297 [
36298 "VM.Audit"
36299 ]
36300 ]
36301 },
36302 "proxyto" : "node",
36303 "returns" : {
36304 "items" : {
36305 "properties" : {
36306 "delete" : {
36307 "description" : "Indicates a pending delete request if present and not 0.",
36308 "maximum" : 2,
36309 "minimum" : 0,
36310 "optional" : 1,
36311 "type" : "integer"
36312 },
36313 "key" : {
36314 "description" : "Configuration option name.",
36315 "type" : "string"
36316 },
36317 "pending" : {
36318 "description" : "Pending value.",
36319 "optional" : 1,
36320 "type" : "string"
36321 },
36322 "value" : {
36323 "description" : "Current value.",
36324 "optional" : 1,
36325 "type" : "string"
36326 }
36327 },
36328 "type" : "object"
36329 },
36330 "type" : "array"
36331 }
36332 }
36333 },
36334 "leaf" : 1,
36335 "path" : "/nodes/{node}/lxc/{vmid}/pending",
36336 "text" : "pending"
36337 },
36338 {
36339 "info" : {
36340 "GET" : {
36341 "allowtoken" : 1,
36342 "description" : "Get IP addresses of the specified container interface.",
36343 "method" : "GET",
36344 "name" : "ip",
36345 "parameters" : {
36346 "additionalProperties" : 0,
36347 "properties" : {
36348 "node" : {
36349 "description" : "The cluster node name.",
36350 "format" : "pve-node",
36351 "type" : "string",
36352 "typetext" : "<string>"
36353 },
36354 "vmid" : {
36355 "description" : "The (unique) ID of the VM.",
36356 "format" : "pve-vmid",
36357 "maximum" : 999999999,
36358 "minimum" : 100,
36359 "type" : "integer",
36360 "typetext" : "<integer> (100 - 999999999)"
36361 }
36362 }
36363 },
36364 "permissions" : {
36365 "check" : [
36366 "perm",
36367 "/vms/{vmid}",
36368 [
36369 "VM.Audit"
36370 ]
36371 ]
36372 },
36373 "protected" : 1,
36374 "returns" : {
36375 "items" : {
36376 "properties" : {
36377 "hwaddr" : {
36378 "description" : "The MAC address of the interface",
36379 "optional" : 0,
36380 "type" : "string"
36381 },
36382 "inet" : {
36383 "description" : "The IPv4 address of the interface",
36384 "optional" : 1,
36385 "type" : "string"
36386 },
36387 "inet6" : {
36388 "description" : "The IPv6 address of the interface",
36389 "optional" : 1,
36390 "type" : "string"
36391 },
36392 "name" : {
36393 "description" : "The name of the interface",
36394 "optional" : 0,
36395 "type" : "string"
36396 }
36397 },
36398 "type" : "object"
36399 },
36400 "type" : "array"
36401 }
36402 }
36403 },
36404 "leaf" : 1,
36405 "path" : "/nodes/{node}/lxc/{vmid}/interfaces",
36406 "text" : "interfaces"
36407 },
36408 {
36409 "info" : {
36410 "POST" : {
36411 "allowtoken" : 1,
36412 "description" : "Migration tunnel endpoint - only for internal use by CT migration.",
36413 "method" : "POST",
36414 "name" : "mtunnel",
36415 "parameters" : {
36416 "additionalProperties" : 0,
36417 "properties" : {
36418 "bridges" : {
36419 "description" : "List of network bridges to check availability. Will be checked again for actually used bridges during migration.",
36420 "format" : "pve-bridge-id-list",
36421 "optional" : 1,
36422 "type" : "string",
36423 "typetext" : "<string>"
36424 },
36425 "node" : {
36426 "description" : "The cluster node name.",
36427 "format" : "pve-node",
36428 "type" : "string",
36429 "typetext" : "<string>"
36430 },
36431 "storages" : {
36432 "description" : "List of storages to check permission and availability. Will be checked again for all actually used storages during migration.",
36433 "format" : "pve-storage-id-list",
36434 "optional" : 1,
36435 "type" : "string",
36436 "typetext" : "<string>"
36437 },
36438 "vmid" : {
36439 "description" : "The (unique) ID of the VM.",
36440 "format" : "pve-vmid",
36441 "maximum" : 999999999,
36442 "minimum" : 100,
36443 "type" : "integer",
36444 "typetext" : "<integer> (100 - 999999999)"
36445 }
36446 }
36447 },
36448 "permissions" : {
36449 "check" : [
36450 "and",
36451 [
36452 "perm",
36453 "/vms/{vmid}",
36454 [
36455 "VM.Allocate"
36456 ]
36457 ],
36458 [
36459 "perm",
36460 "/",
36461 [
36462 "Sys.Incoming"
36463 ]
36464 ]
36465 ],
36466 "description" : "You need 'VM.Allocate' permissions on '/vms/{vmid}' and Sys.Incoming on '/'. Further permission checks happen during the actual migration."
36467 },
36468 "protected" : 1,
36469 "returns" : {
36470 "additionalProperties" : 0,
36471 "properties" : {
36472 "socket" : {
36473 "type" : "string"
36474 },
36475 "ticket" : {
36476 "type" : "string"
36477 },
36478 "upid" : {
36479 "type" : "string"
36480 }
36481 }
36482 }
36483 }
36484 },
36485 "leaf" : 1,
36486 "path" : "/nodes/{node}/lxc/{vmid}/mtunnel",
36487 "text" : "mtunnel"
36488 },
36489 {
36490 "info" : {
36491 "GET" : {
36492 "allowtoken" : 1,
36493 "description" : "Migration tunnel endpoint for websocket upgrade - only for internal use by VM migration.",
36494 "method" : "GET",
36495 "name" : "mtunnelwebsocket",
36496 "parameters" : {
36497 "additionalProperties" : 0,
36498 "properties" : {
36499 "node" : {
36500 "description" : "The cluster node name.",
36501 "format" : "pve-node",
36502 "type" : "string",
36503 "typetext" : "<string>"
36504 },
36505 "socket" : {
36506 "description" : "unix socket to forward to",
36507 "type" : "string",
36508 "typetext" : "<string>"
36509 },
36510 "ticket" : {
36511 "description" : "ticket return by initial 'mtunnel' API call, or retrieved via 'ticket' tunnel command",
36512 "type" : "string",
36513 "typetext" : "<string>"
36514 },
36515 "vmid" : {
36516 "description" : "The (unique) ID of the VM.",
36517 "format" : "pve-vmid",
36518 "maximum" : 999999999,
36519 "minimum" : 100,
36520 "type" : "integer",
36521 "typetext" : "<integer> (100 - 999999999)"
36522 }
36523 }
36524 },
36525 "permissions" : {
36526 "description" : "You need to pass a ticket valid for the selected socket. Tickets can be created via the mtunnel API call, which will check permissions accordingly.",
36527 "user" : "all"
36528 },
36529 "returns" : {
36530 "properties" : {
36531 "port" : {
36532 "optional" : 1,
36533 "type" : "string"
36534 },
36535 "socket" : {
36536 "optional" : 1,
36537 "type" : "string"
36538 }
36539 },
36540 "type" : "object"
36541 }
36542 }
36543 },
36544 "leaf" : 1,
36545 "path" : "/nodes/{node}/lxc/{vmid}/mtunnelwebsocket",
36546 "text" : "mtunnelwebsocket"
36547 }
36548 ],
36549 "info" : {
36550 "DELETE" : {
36551 "allowtoken" : 1,
36552 "description" : "Destroy the container (also delete all uses files).",
36553 "method" : "DELETE",
36554 "name" : "destroy_vm",
36555 "parameters" : {
36556 "additionalProperties" : 0,
36557 "properties" : {
36558 "destroy-unreferenced-disks" : {
36559 "description" : "If set, destroy additionally all disks with the VMID from all enabled storages which are not referenced in the config.",
36560 "optional" : 1,
36561 "type" : "boolean",
36562 "typetext" : "<boolean>"
36563 },
36564 "force" : {
36565 "default" : 0,
36566 "description" : "Force destroy, even if running.",
36567 "optional" : 1,
36568 "type" : "boolean",
36569 "typetext" : "<boolean>"
36570 },
36571 "node" : {
36572 "description" : "The cluster node name.",
36573 "format" : "pve-node",
36574 "type" : "string",
36575 "typetext" : "<string>"
36576 },
36577 "purge" : {
36578 "default" : 0,
36579 "description" : "Remove container from all related configurations. For example, backup jobs, replication jobs or HA. Related ACLs and Firewall entries will *always* be removed.",
36580 "optional" : 1,
36581 "type" : "boolean",
36582 "typetext" : "<boolean>"
36583 },
36584 "vmid" : {
36585 "description" : "The (unique) ID of the VM.",
36586 "format" : "pve-vmid",
36587 "maximum" : 999999999,
36588 "minimum" : 100,
36589 "type" : "integer",
36590 "typetext" : "<integer> (100 - 999999999)"
36591 }
36592 }
36593 },
36594 "permissions" : {
36595 "check" : [
36596 "perm",
36597 "/vms/{vmid}",
36598 [
36599 "VM.Allocate"
36600 ]
36601 ]
36602 },
36603 "protected" : 1,
36604 "proxyto" : "node",
36605 "returns" : {
36606 "type" : "string"
36607 }
36608 },
36609 "GET" : {
36610 "allowtoken" : 1,
36611 "description" : "Directory index",
36612 "method" : "GET",
36613 "name" : "vmdiridx",
36614 "parameters" : {
36615 "additionalProperties" : 0,
36616 "properties" : {
36617 "node" : {
36618 "description" : "The cluster node name.",
36619 "format" : "pve-node",
36620 "type" : "string",
36621 "typetext" : "<string>"
36622 },
36623 "vmid" : {
36624 "description" : "The (unique) ID of the VM.",
36625 "format" : "pve-vmid",
36626 "maximum" : 999999999,
36627 "minimum" : 100,
36628 "type" : "integer",
36629 "typetext" : "<integer> (100 - 999999999)"
36630 }
36631 }
36632 },
36633 "permissions" : {
36634 "user" : "all"
36635 },
36636 "proxyto" : "node",
36637 "returns" : {
36638 "items" : {
36639 "properties" : {
36640 "subdir" : {
36641 "type" : "string"
36642 }
36643 },
36644 "type" : "object"
36645 },
36646 "links" : [
36647 {
36648 "href" : "{subdir}",
36649 "rel" : "child"
36650 }
36651 ],
36652 "type" : "array"
36653 }
36654 }
36655 },
36656 "leaf" : 0,
36657 "path" : "/nodes/{node}/lxc/{vmid}",
36658 "text" : "{vmid}"
36659 }
36660 ],
36661 "info" : {
36662 "GET" : {
36663 "allowtoken" : 1,
36664 "description" : "LXC container index (per node).",
36665 "method" : "GET",
36666 "name" : "vmlist",
36667 "parameters" : {
36668 "additionalProperties" : 0,
36669 "properties" : {
36670 "node" : {
36671 "description" : "The cluster node name.",
36672 "format" : "pve-node",
36673 "type" : "string",
36674 "typetext" : "<string>"
36675 }
36676 }
36677 },
36678 "permissions" : {
36679 "description" : "Only list CTs where you have VM.Audit permissons on /vms/<vmid>.",
36680 "user" : "all"
36681 },
36682 "protected" : 1,
36683 "proxyto" : "node",
36684 "returns" : {
36685 "items" : {
36686 "properties" : {
36687 "cpus" : {
36688 "description" : "Maximum usable CPUs.",
36689 "optional" : 1,
36690 "type" : "number"
36691 },
36692 "lock" : {
36693 "description" : "The current config lock, if any.",
36694 "optional" : 1,
36695 "type" : "string"
36696 },
36697 "maxdisk" : {
36698 "description" : "Root disk size in bytes.",
36699 "optional" : 1,
36700 "renderer" : "bytes",
36701 "type" : "integer"
36702 },
36703 "maxmem" : {
36704 "description" : "Maximum memory in bytes.",
36705 "optional" : 1,
36706 "renderer" : "bytes",
36707 "type" : "integer"
36708 },
36709 "maxswap" : {
36710 "description" : "Maximum SWAP memory in bytes.",
36711 "optional" : 1,
36712 "renderer" : "bytes",
36713 "type" : "integer"
36714 },
36715 "name" : {
36716 "description" : "Container name.",
36717 "optional" : 1,
36718 "type" : "string"
36719 },
36720 "status" : {
36721 "description" : "LXC Container status.",
36722 "enum" : [
36723 "stopped",
36724 "running"
36725 ],
36726 "type" : "string"
36727 },
36728 "tags" : {
36729 "description" : "The current configured tags, if any.",
36730 "optional" : 1,
36731 "type" : "string"
36732 },
36733 "uptime" : {
36734 "description" : "Uptime.",
36735 "optional" : 1,
36736 "renderer" : "duration",
36737 "type" : "integer"
36738 },
36739 "vmid" : {
36740 "description" : "The (unique) ID of the VM.",
36741 "format" : "pve-vmid",
36742 "maximum" : 999999999,
36743 "minimum" : 100,
36744 "type" : "integer"
36745 }
36746 },
36747 "type" : "object"
36748 },
36749 "links" : [
36750 {
36751 "href" : "{vmid}",
36752 "rel" : "child"
36753 }
36754 ],
36755 "type" : "array"
36756 }
36757 },
36758 "POST" : {
36759 "allowtoken" : 1,
36760 "description" : "Create or restore a container.",
36761 "method" : "POST",
36762 "name" : "create_vm",
36763 "parameters" : {
36764 "additionalProperties" : 0,
36765 "properties" : {
36766 "arch" : {
36767 "default" : "amd64",
36768 "description" : "OS architecture type.",
36769 "enum" : [
36770 "amd64",
36771 "i386",
36772 "arm64",
36773 "armhf",
36774 "riscv32",
36775 "riscv64"
36776 ],
36777 "optional" : 1,
36778 "type" : "string"
36779 },
36780 "bwlimit" : {
36781 "default" : "restore limit from datacenter or storage config",
36782 "description" : "Override I/O bandwidth limit (in KiB/s).",
36783 "minimum" : "0",
36784 "optional" : 1,
36785 "type" : "number",
36786 "typetext" : "<number> (0 - N)"
36787 },
36788 "cmode" : {
36789 "default" : "tty",
36790 "description" : "Console mode. By default, the console command tries to open a connection to one of the available tty devices. By setting cmode to 'console' it tries to attach to /dev/console instead. If you set cmode to 'shell', it simply invokes a shell inside the container (no login).",
36791 "enum" : [
36792 "shell",
36793 "console",
36794 "tty"
36795 ],
36796 "optional" : 1,
36797 "type" : "string"
36798 },
36799 "console" : {
36800 "default" : 1,
36801 "description" : "Attach a console device (/dev/console) to the container.",
36802 "optional" : 1,
36803 "type" : "boolean",
36804 "typetext" : "<boolean>"
36805 },
36806 "cores" : {
36807 "description" : "The number of cores assigned to the container. A container can use all available cores by default.",
36808 "maximum" : 8192,
36809 "minimum" : 1,
36810 "optional" : 1,
36811 "type" : "integer",
36812 "typetext" : "<integer> (1 - 8192)"
36813 },
36814 "cpulimit" : {
36815 "default" : 0,
36816 "description" : "Limit of CPU usage.\n\nNOTE: If the computer has 2 CPUs, it has a total of '2' CPU time. Value '0' indicates no CPU limit.",
36817 "maximum" : 8192,
36818 "minimum" : 0,
36819 "optional" : 1,
36820 "type" : "number",
36821 "typetext" : "<number> (0 - 8192)"
36822 },
36823 "cpuunits" : {
36824 "default" : "cgroup v1: 1024, cgroup v2: 100",
36825 "description" : "CPU weight for a container, will be clamped to [1, 10000] in cgroup v2.",
36826 "maximum" : 500000,
36827 "minimum" : 0,
36828 "optional" : 1,
36829 "type" : "integer",
36830 "typetext" : "<integer> (0 - 500000)",
36831 "verbose_description" : "CPU weight for a container. Argument is used in the kernel fair scheduler. The larger the number is, the more CPU time this container gets. Number is relative to the weights of all the other running guests."
36832 },
36833 "debug" : {
36834 "default" : 0,
36835 "description" : "Try to be more verbose. For now this only enables debug log-level on start.",
36836 "optional" : 1,
36837 "type" : "boolean",
36838 "typetext" : "<boolean>"
36839 },
36840 "description" : {
36841 "description" : "Description for the Container. Shown in the web-interface CT's summary. This is saved as comment inside the configuration file.",
36842 "maxLength" : 8192,
36843 "optional" : 1,
36844 "type" : "string",
36845 "typetext" : "<string>"
36846 },
36847 "dev[n]" : {
36848 "description" : "Device to pass through to the container",
36849 "format" : {
36850 "gid" : {
36851 "description" : "Group ID to be assigned to the device node",
36852 "minimum" : 0,
36853 "optional" : 1,
36854 "type" : "integer"
36855 },
36856 "mode" : {
36857 "description" : "Access mode to be set on the device node",
36858 "format_description" : "Octal access mode",
36859 "optional" : 1,
36860 "pattern" : "0[0-7]{3}",
36861 "type" : "string"
36862 },
36863 "path" : {
36864 "default_key" : 1,
36865 "description" : "Device to pass through to the container",
36866 "format" : "pve-lxc-dev-string",
36867 "format_description" : "Path",
36868 "optional" : 1,
36869 "type" : "string",
36870 "verbose_description" : "Path to the device to pass through to the container"
36871 },
36872 "uid" : {
36873 "description" : "User ID to be assigned to the device node",
36874 "minimum" : 0,
36875 "optional" : 1,
36876 "type" : "integer"
36877 }
36878 },
36879 "optional" : 1,
36880 "type" : "string",
36881 "typetext" : "[[path=]<Path>] [,gid=<integer>] [,mode=<Octal access mode>] [,uid=<integer>]"
36882 },
36883 "features" : {
36884 "description" : "Allow containers access to advanced features.",
36885 "format" : {
36886 "force_rw_sys" : {
36887 "default" : 0,
36888 "description" : "Mount /sys in unprivileged containers as `rw` instead of `mixed`. This can break networking under newer (>= v245) systemd-network use.",
36889 "optional" : 1,
36890 "type" : "boolean"
36891 },
36892 "fuse" : {
36893 "default" : 0,
36894 "description" : "Allow using 'fuse' file systems in a container. Note that interactions between fuse and the freezer cgroup can potentially cause I/O deadlocks.",
36895 "optional" : 1,
36896 "type" : "boolean"
36897 },
36898 "keyctl" : {
36899 "default" : 0,
36900 "description" : "For unprivileged containers only: Allow the use of the keyctl() system call. This is required to use docker inside a container. By default unprivileged containers will see this system call as non-existent. This is mostly a workaround for systemd-networkd, as it will treat it as a fatal error when some keyctl() operations are denied by the kernel due to lacking permissions. Essentially, you can choose between running systemd-networkd or docker.",
36901 "optional" : 1,
36902 "type" : "boolean"
36903 },
36904 "mknod" : {
36905 "default" : 0,
36906 "description" : "Allow unprivileged containers to use mknod() to add certain device nodes. This requires a kernel with seccomp trap to user space support (5.3 or newer). This is experimental.",
36907 "optional" : 1,
36908 "type" : "boolean"
36909 },
36910 "mount" : {
36911 "description" : "Allow mounting file systems of specific types. This should be a list of file system types as used with the mount command. Note that this can have negative effects on the container's security. With access to a loop device, mounting a file can circumvent the mknod permission of the devices cgroup, mounting an NFS file system can block the host's I/O completely and prevent it from rebooting, etc.",
36912 "format_description" : "fstype;fstype;...",
36913 "optional" : 1,
36914 "pattern" : "(?^:[a-zA-Z0-9_; ]+)",
36915 "type" : "string"
36916 },
36917 "nesting" : {
36918 "default" : 0,
36919 "description" : "Allow nesting. Best used with unprivileged containers with additional id mapping. Note that this will expose procfs and sysfs contents of the host to the guest.",
36920 "optional" : 1,
36921 "type" : "boolean"
36922 }
36923 },
36924 "optional" : 1,
36925 "type" : "string",
36926 "typetext" : "[force_rw_sys=<1|0>] [,fuse=<1|0>] [,keyctl=<1|0>] [,mknod=<1|0>] [,mount=<fstype;fstype;...>] [,nesting=<1|0>]"
36927 },
36928 "force" : {
36929 "description" : "Allow to overwrite existing container.",
36930 "optional" : 1,
36931 "type" : "boolean",
36932 "typetext" : "<boolean>"
36933 },
36934 "hookscript" : {
36935 "description" : "Script that will be exectued during various steps in the containers lifetime.",
36936 "format" : "pve-volume-id",
36937 "optional" : 1,
36938 "type" : "string",
36939 "typetext" : "<string>"
36940 },
36941 "hostname" : {
36942 "description" : "Set a host name for the container.",
36943 "format" : "dns-name",
36944 "maxLength" : 255,
36945 "optional" : 1,
36946 "type" : "string",
36947 "typetext" : "<string>"
36948 },
36949 "ignore-unpack-errors" : {
36950 "description" : "Ignore errors when extracting the template.",
36951 "optional" : 1,
36952 "type" : "boolean",
36953 "typetext" : "<boolean>"
36954 },
36955 "lock" : {
36956 "description" : "Lock/unlock the container.",
36957 "enum" : [
36958 "backup",
36959 "create",
36960 "destroyed",
36961 "disk",
36962 "fstrim",
36963 "migrate",
36964 "mounted",
36965 "rollback",
36966 "snapshot",
36967 "snapshot-delete"
36968 ],
36969 "optional" : 1,
36970 "type" : "string"
36971 },
36972 "memory" : {
36973 "default" : 512,
36974 "description" : "Amount of RAM for the container in MB.",
36975 "minimum" : 16,
36976 "optional" : 1,
36977 "type" : "integer",
36978 "typetext" : "<integer> (16 - N)"
36979 },
36980 "mp[n]" : {
36981 "description" : "Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume.",
36982 "format" : {
36983 "acl" : {
36984 "description" : "Explicitly enable or disable ACL support.",
36985 "optional" : 1,
36986 "type" : "boolean"
36987 },
36988 "backup" : {
36989 "description" : "Whether to include the mount point in backups.",
36990 "optional" : 1,
36991 "type" : "boolean",
36992 "verbose_description" : "Whether to include the mount point in backups (only used for volume mount points)."
36993 },
36994 "mountoptions" : {
36995 "description" : "Extra mount options for rootfs/mps.",
36996 "format_description" : "opt[;opt...]",
36997 "optional" : 1,
36998 "pattern" : "(?^:(?^:(noatime|lazytime|nodev|nosuid|noexec))(;(?^:(noatime|lazytime|nodev|nosuid|noexec)))*)",
36999 "type" : "string"
37000 },
37001 "mp" : {
37002 "description" : "Path to the mount point as seen from inside the container (must not contain symlinks).",
37003 "format" : "pve-lxc-mp-string",
37004 "format_description" : "Path",
37005 "type" : "string",
37006 "verbose_description" : "Path to the mount point as seen from inside the container.\n\nNOTE: Must not contain any symlinks for security reasons."
37007 },
37008 "quota" : {
37009 "description" : "Enable user quotas inside the container (not supported with zfs subvolumes)",
37010 "optional" : 1,
37011 "type" : "boolean"
37012 },
37013 "replicate" : {
37014 "default" : 1,
37015 "description" : "Will include this volume to a storage replica job.",
37016 "optional" : 1,
37017 "type" : "boolean"
37018 },
37019 "ro" : {
37020 "description" : "Read-only mount point",
37021 "optional" : 1,
37022 "type" : "boolean"
37023 },
37024 "shared" : {
37025 "default" : 0,
37026 "description" : "Mark this non-volume mount point as available on multiple nodes (see 'nodes')",
37027 "optional" : 1,
37028 "type" : "boolean",
37029 "verbose_description" : "Mark this non-volume mount point as available on all nodes.\n\nWARNING: This option does not share the mount point automatically, it assumes it is shared already!"
37030 },
37031 "size" : {
37032 "description" : "Volume size (read only value).",
37033 "format" : "disk-size",
37034 "format_description" : "DiskSize",
37035 "optional" : 1,
37036 "type" : "string"
37037 },
37038 "volume" : {
37039 "default_key" : 1,
37040 "description" : "Volume, device or directory to mount into the container.",
37041 "format" : "pve-lxc-mp-string",
37042 "format_description" : "volume",
37043 "type" : "string"
37044 }
37045 },
37046 "optional" : 1,
37047 "type" : "string",
37048 "typetext" : "[volume=]<volume> ,mp=<Path> [,acl=<1|0>] [,backup=<1|0>] [,mountoptions=<opt[;opt...]>] [,quota=<1|0>] [,replicate=<1|0>] [,ro=<1|0>] [,shared=<1|0>] [,size=<DiskSize>]"
37049 },
37050 "nameserver" : {
37051 "description" : "Sets DNS server IP address for a container. Create will automatically use the setting from the host if you neither set searchdomain nor nameserver.",
37052 "format" : "lxc-ip-with-ll-iface-list",
37053 "optional" : 1,
37054 "type" : "string",
37055 "typetext" : "<string>"
37056 },
37057 "net[n]" : {
37058 "description" : "Specifies network interfaces for the container.",
37059 "format" : {
37060 "bridge" : {
37061 "description" : "Bridge to attach the network device to.",
37062 "format_description" : "bridge",
37063 "optional" : 1,
37064 "pattern" : "[-_.\\w\\d]+",
37065 "type" : "string"
37066 },
37067 "firewall" : {
37068 "description" : "Controls whether this interface's firewall rules should be used.",
37069 "optional" : 1,
37070 "type" : "boolean"
37071 },
37072 "gw" : {
37073 "description" : "Default gateway for IPv4 traffic.",
37074 "format" : "ipv4",
37075 "format_description" : "GatewayIPv4",
37076 "optional" : 1,
37077 "type" : "string"
37078 },
37079 "gw6" : {
37080 "description" : "Default gateway for IPv6 traffic.",
37081 "format" : "ipv6",
37082 "format_description" : "GatewayIPv6",
37083 "optional" : 1,
37084 "type" : "string"
37085 },
37086 "hwaddr" : {
37087 "description" : "The interface MAC address. This is dynamically allocated by default, but you can set that statically if needed, for example to always have the same link-local IPv6 address. (lxc.network.hwaddr)",
37088 "format" : "mac-addr",
37089 "format_description" : "XX:XX:XX:XX:XX:XX",
37090 "optional" : 1,
37091 "type" : "string",
37092 "verbose_description" : "A common MAC address with the I/G (Individual/Group) bit not set."
37093 },
37094 "ip" : {
37095 "description" : "IPv4 address in CIDR format.",
37096 "format" : "pve-ipv4-config",
37097 "format_description" : "(IPv4/CIDR|dhcp|manual)",
37098 "optional" : 1,
37099 "type" : "string"
37100 },
37101 "ip6" : {
37102 "description" : "IPv6 address in CIDR format.",
37103 "format" : "pve-ipv6-config",
37104 "format_description" : "(IPv6/CIDR|auto|dhcp|manual)",
37105 "optional" : 1,
37106 "type" : "string"
37107 },
37108 "link_down" : {
37109 "description" : "Whether this interface should be disconnected (like pulling the plug).",
37110 "optional" : 1,
37111 "type" : "boolean"
37112 },
37113 "mtu" : {
37114 "description" : "Maximum transfer unit of the interface. (lxc.network.mtu)",
37115 "maximum" : 65535,
37116 "minimum" : 64,
37117 "optional" : 1,
37118 "type" : "integer"
37119 },
37120 "name" : {
37121 "description" : "Name of the network device as seen from inside the container. (lxc.network.name)",
37122 "format_description" : "string",
37123 "pattern" : "[-_.\\w\\d]+",
37124 "type" : "string"
37125 },
37126 "rate" : {
37127 "description" : "Apply rate limiting to the interface",
37128 "format_description" : "mbps",
37129 "optional" : 1,
37130 "type" : "number"
37131 },
37132 "tag" : {
37133 "description" : "VLAN tag for this interface.",
37134 "maximum" : 4094,
37135 "minimum" : 1,
37136 "optional" : 1,
37137 "type" : "integer"
37138 },
37139 "trunks" : {
37140 "description" : "VLAN ids to pass through the interface",
37141 "format_description" : "vlanid[;vlanid...]",
37142 "optional" : 1,
37143 "pattern" : "(?^:\\d+(?:;\\d+)*)",
37144 "type" : "string"
37145 },
37146 "type" : {
37147 "description" : "Network interface type.",
37148 "enum" : [
37149 "veth"
37150 ],
37151 "optional" : 1,
37152 "type" : "string"
37153 }
37154 },
37155 "optional" : 1,
37156 "type" : "string",
37157 "typetext" : "name=<string> [,bridge=<bridge>] [,firewall=<1|0>] [,gw=<GatewayIPv4>] [,gw6=<GatewayIPv6>] [,hwaddr=<XX:XX:XX:XX:XX:XX>] [,ip=<(IPv4/CIDR|dhcp|manual)>] [,ip6=<(IPv6/CIDR|auto|dhcp|manual)>] [,link_down=<1|0>] [,mtu=<integer>] [,rate=<mbps>] [,tag=<integer>] [,trunks=<vlanid[;vlanid...]>] [,type=<veth>]"
37158 },
37159 "node" : {
37160 "description" : "The cluster node name.",
37161 "format" : "pve-node",
37162 "type" : "string",
37163 "typetext" : "<string>"
37164 },
37165 "onboot" : {
37166 "default" : 0,
37167 "description" : "Specifies whether a container will be started during system bootup.",
37168 "optional" : 1,
37169 "type" : "boolean",
37170 "typetext" : "<boolean>"
37171 },
37172 "ostemplate" : {
37173 "description" : "The OS template or backup file.",
37174 "maxLength" : 255,
37175 "type" : "string",
37176 "typetext" : "<string>"
37177 },
37178 "ostype" : {
37179 "description" : "OS type. This is used to setup configuration inside the container, and corresponds to lxc setup scripts in /usr/share/lxc/config/<ostype>.common.conf. Value 'unmanaged' can be used to skip and OS specific setup.",
37180 "enum" : [
37181 "debian",
37182 "devuan",
37183 "ubuntu",
37184 "centos",
37185 "fedora",
37186 "opensuse",
37187 "archlinux",
37188 "alpine",
37189 "gentoo",
37190 "nixos",
37191 "unmanaged"
37192 ],
37193 "optional" : 1,
37194 "type" : "string"
37195 },
37196 "password" : {
37197 "description" : "Sets root password inside container.",
37198 "minLength" : 5,
37199 "optional" : 1,
37200 "type" : "string",
37201 "typetext" : "<string>"
37202 },
37203 "pool" : {
37204 "description" : "Add the VM to the specified pool.",
37205 "format" : "pve-poolid",
37206 "optional" : 1,
37207 "type" : "string",
37208 "typetext" : "<string>"
37209 },
37210 "protection" : {
37211 "default" : 0,
37212 "description" : "Sets the protection flag of the container. This will prevent the CT or CT's disk remove/update operation.",
37213 "optional" : 1,
37214 "type" : "boolean",
37215 "typetext" : "<boolean>"
37216 },
37217 "restore" : {
37218 "description" : "Mark this as restore task.",
37219 "optional" : 1,
37220 "type" : "boolean",
37221 "typetext" : "<boolean>"
37222 },
37223 "rootfs" : {
37224 "description" : "Use volume as container root.",
37225 "format" : {
37226 "acl" : {
37227 "description" : "Explicitly enable or disable ACL support.",
37228 "optional" : 1,
37229 "type" : "boolean"
37230 },
37231 "mountoptions" : {
37232 "description" : "Extra mount options for rootfs/mps.",
37233 "format_description" : "opt[;opt...]",
37234 "optional" : 1,
37235 "pattern" : "(?^:(?^:(noatime|lazytime|nodev|nosuid|noexec))(;(?^:(noatime|lazytime|nodev|nosuid|noexec)))*)",
37236 "type" : "string"
37237 },
37238 "quota" : {
37239 "description" : "Enable user quotas inside the container (not supported with zfs subvolumes)",
37240 "optional" : 1,
37241 "type" : "boolean"
37242 },
37243 "replicate" : {
37244 "default" : 1,
37245 "description" : "Will include this volume to a storage replica job.",
37246 "optional" : 1,
37247 "type" : "boolean"
37248 },
37249 "ro" : {
37250 "description" : "Read-only mount point",
37251 "optional" : 1,
37252 "type" : "boolean"
37253 },
37254 "shared" : {
37255 "default" : 0,
37256 "description" : "Mark this non-volume mount point as available on multiple nodes (see 'nodes')",
37257 "optional" : 1,
37258 "type" : "boolean",
37259 "verbose_description" : "Mark this non-volume mount point as available on all nodes.\n\nWARNING: This option does not share the mount point automatically, it assumes it is shared already!"
37260 },
37261 "size" : {
37262 "description" : "Volume size (read only value).",
37263 "format" : "disk-size",
37264 "format_description" : "DiskSize",
37265 "optional" : 1,
37266 "type" : "string"
37267 },
37268 "volume" : {
37269 "default_key" : 1,
37270 "description" : "Volume, device or directory to mount into the container.",
37271 "format" : "pve-lxc-mp-string",
37272 "format_description" : "volume",
37273 "type" : "string"
37274 }
37275 },
37276 "optional" : 1,
37277 "type" : "string",
37278 "typetext" : "[volume=]<volume> [,acl=<1|0>] [,mountoptions=<opt[;opt...]>] [,quota=<1|0>] [,replicate=<1|0>] [,ro=<1|0>] [,shared=<1|0>] [,size=<DiskSize>]"
37279 },
37280 "searchdomain" : {
37281 "description" : "Sets DNS search domains for a container. Create will automatically use the setting from the host if you neither set searchdomain nor nameserver.",
37282 "format" : "dns-name-list",
37283 "optional" : 1,
37284 "type" : "string",
37285 "typetext" : "<string>"
37286 },
37287 "ssh-public-keys" : {
37288 "description" : "Setup public SSH keys (one key per line, OpenSSH format).",
37289 "optional" : 1,
37290 "type" : "string",
37291 "typetext" : "<string>"
37292 },
37293 "start" : {
37294 "default" : 0,
37295 "description" : "Start the CT after its creation finished successfully.",
37296 "optional" : 1,
37297 "type" : "boolean",
37298 "typetext" : "<boolean>"
37299 },
37300 "startup" : {
37301 "description" : "Startup and shutdown behavior. Order is a non-negative number defining the general startup order. Shutdown in done with reverse ordering. Additionally you can set the 'up' or 'down' delay in seconds, which specifies a delay to wait before the next VM is started or stopped.",
37302 "format" : "pve-startup-order",
37303 "optional" : 1,
37304 "type" : "string",
37305 "typetext" : "[[order=]\\d+] [,up=\\d+] [,down=\\d+] "
37306 },
37307 "storage" : {
37308 "default" : "local",
37309 "description" : "Default Storage.",
37310 "format" : "pve-storage-id",
37311 "format_description" : "storage ID",
37312 "optional" : 1,
37313 "type" : "string",
37314 "typetext" : "<storage ID>"
37315 },
37316 "swap" : {
37317 "default" : 512,
37318 "description" : "Amount of SWAP for the container in MB.",
37319 "minimum" : 0,
37320 "optional" : 1,
37321 "type" : "integer",
37322 "typetext" : "<integer> (0 - N)"
37323 },
37324 "tags" : {
37325 "description" : "Tags of the Container. This is only meta information.",
37326 "format" : "pve-tag-list",
37327 "optional" : 1,
37328 "type" : "string",
37329 "typetext" : "<string>"
37330 },
37331 "template" : {
37332 "default" : 0,
37333 "description" : "Enable/disable Template.",
37334 "optional" : 1,
37335 "type" : "boolean",
37336 "typetext" : "<boolean>"
37337 },
37338 "timezone" : {
37339 "description" : "Time zone to use in the container. If option isn't set, then nothing will be done. Can be set to 'host' to match the host time zone, or an arbitrary time zone option from /usr/share/zoneinfo/zone.tab",
37340 "format" : "pve-ct-timezone",
37341 "optional" : 1,
37342 "type" : "string",
37343 "typetext" : "<string>"
37344 },
37345 "tty" : {
37346 "default" : 2,
37347 "description" : "Specify the number of tty available to the container",
37348 "maximum" : 6,
37349 "minimum" : 0,
37350 "optional" : 1,
37351 "type" : "integer",
37352 "typetext" : "<integer> (0 - 6)"
37353 },
37354 "unique" : {
37355 "description" : "Assign a unique random ethernet address.",
37356 "optional" : 1,
37357 "requires" : "restore",
37358 "type" : "boolean",
37359 "typetext" : "<boolean>"
37360 },
37361 "unprivileged" : {
37362 "default" : 0,
37363 "description" : "Makes the container run as unprivileged user. (Should not be modified manually.)",
37364 "optional" : 1,
37365 "type" : "boolean",
37366 "typetext" : "<boolean>"
37367 },
37368 "unused[n]" : {
37369 "description" : "Reference to unused volumes. This is used internally, and should not be modified manually.",
37370 "format" : {
37371 "volume" : {
37372 "default_key" : 1,
37373 "description" : "The volume that is not used currently.",
37374 "format" : "pve-volume-id",
37375 "format_description" : "volume",
37376 "type" : "string"
37377 }
37378 },
37379 "optional" : 1,
37380 "type" : "string",
37381 "typetext" : "[volume=]<volume>"
37382 },
37383 "vmid" : {
37384 "description" : "The (unique) ID of the VM.",
37385 "format" : "pve-vmid",
37386 "maximum" : 999999999,
37387 "minimum" : 100,
37388 "type" : "integer",
37389 "typetext" : "<integer> (100 - 999999999)"
37390 }
37391 }
37392 },
37393 "permissions" : {
37394 "description" : "You need 'VM.Allocate' permissions on /vms/{vmid} or on the VM pool /pool/{pool}. For restore, it is enough if the user has 'VM.Backup' permission and the VM already exists. You also need 'Datastore.AllocateSpace' permissions on the storage.",
37395 "user" : "all"
37396 },
37397 "protected" : 1,
37398 "proxyto" : "node",
37399 "returns" : {
37400 "type" : "string"
37401 }
37402 }
37403 },
37404 "leaf" : 0,
37405 "path" : "/nodes/{node}/lxc",
37406 "text" : "lxc"
37407 },
37408 {
37409 "children" : [
37410 {
37411 "children" : [
37412 {
37413 "info" : {
37414 "GET" : {
37415 "allowtoken" : 1,
37416 "description" : "Get the Ceph configuration file.",
37417 "method" : "GET",
37418 "name" : "raw",
37419 "parameters" : {
37420 "additionalProperties" : 0,
37421 "properties" : {
37422 "node" : {
37423 "description" : "The cluster node name.",
37424 "format" : "pve-node",
37425 "type" : "string",
37426 "typetext" : "<string>"
37427 }
37428 }
37429 },
37430 "permissions" : {
37431 "check" : [
37432 "perm",
37433 "/",
37434 [
37435 "Sys.Audit",
37436 "Datastore.Audit"
37437 ],
37438 "any",
37439 1
37440 ]
37441 },
37442 "proxyto" : "node",
37443 "returns" : {
37444 "type" : "string"
37445 }
37446 }
37447 },
37448 "leaf" : 1,
37449 "path" : "/nodes/{node}/ceph/cfg/raw",
37450 "text" : "raw"
37451 },
37452 {
37453 "info" : {
37454 "GET" : {
37455 "allowtoken" : 1,
37456 "description" : "Get the Ceph configuration database.",
37457 "method" : "GET",
37458 "name" : "db",
37459 "parameters" : {
37460 "additionalProperties" : 0,
37461 "properties" : {
37462 "node" : {
37463 "description" : "The cluster node name.",
37464 "format" : "pve-node",
37465 "type" : "string",
37466 "typetext" : "<string>"
37467 }
37468 }
37469 },
37470 "permissions" : {
37471 "check" : [
37472 "perm",
37473 "/",
37474 [
37475 "Sys.Audit",
37476 "Datastore.Audit"
37477 ],
37478 "any",
37479 1
37480 ]
37481 },
37482 "protected" : 1,
37483 "proxyto" : "node",
37484 "returns" : {
37485 "items" : {
37486 "properties" : {
37487 "can_update_at_runtime" : {
37488 "type" : "boolean"
37489 },
37490 "level" : {
37491 "type" : "string"
37492 },
37493 "mask" : {
37494 "type" : "string"
37495 },
37496 "name" : {
37497 "type" : "string"
37498 },
37499 "section" : {
37500 "type" : "string"
37501 },
37502 "value" : {
37503 "type" : "string"
37504 }
37505 },
37506 "type" : "object"
37507 },
37508 "type" : "array"
37509 }
37510 }
37511 },
37512 "leaf" : 1,
37513 "path" : "/nodes/{node}/ceph/cfg/db",
37514 "text" : "db"
37515 },
37516 {
37517 "info" : {
37518 "GET" : {
37519 "allowtoken" : 1,
37520 "description" : "Get configured values from either the config file or config DB.",
37521 "method" : "GET",
37522 "name" : "value",
37523 "parameters" : {
37524 "additionalProperties" : 0,
37525 "properties" : {
37526 "config-keys" : {
37527 "description" : "List of <section>:<config key> items.",
37528 "pattern" : "(?^:^(:?(?^i:[0-9a-z\\-_\\.]+:[0-9a-zA-Z\\-_]+))(:?[;, ](?^i:[0-9a-z\\-_\\.]+:[0-9a-zA-Z\\-_]+))*$)",
37529 "type" : "string",
37530 "typetext" : "<section>:<config key>[;<section>:<config key>]"
37531 },
37532 "node" : {
37533 "description" : "The cluster node name.",
37534 "format" : "pve-node",
37535 "type" : "string",
37536 "typetext" : "<string>"
37537 }
37538 }
37539 },
37540 "permissions" : {
37541 "check" : [
37542 "perm",
37543 "/",
37544 [
37545 "Sys.Audit"
37546 ]
37547 ]
37548 },
37549 "protected" : 1,
37550 "proxyto" : "node",
37551 "returns" : {
37552 "description" : "Contains {section}->{key} children with the values",
37553 "type" : "object"
37554 }
37555 }
37556 },
37557 "leaf" : 1,
37558 "path" : "/nodes/{node}/ceph/cfg/value",
37559 "text" : "value"
37560 }
37561 ],
37562 "info" : {
37563 "GET" : {
37564 "allowtoken" : 1,
37565 "description" : "Directory index.",
37566 "method" : "GET",
37567 "name" : "index",
37568 "parameters" : {
37569 "additionalProperties" : 0,
37570 "properties" : {
37571 "node" : {
37572 "description" : "The cluster node name.",
37573 "format" : "pve-node",
37574 "type" : "string",
37575 "typetext" : "<string>"
37576 }
37577 }
37578 },
37579 "permissions" : {
37580 "user" : "all"
37581 },
37582 "returns" : {
37583 "items" : {
37584 "properties" : {},
37585 "type" : "object"
37586 },
37587 "links" : [
37588 {
37589 "href" : "{name}",
37590 "rel" : "child"
37591 }
37592 ],
37593 "type" : "array"
37594 }
37595 }
37596 },
37597 "leaf" : 0,
37598 "path" : "/nodes/{node}/ceph/cfg",
37599 "text" : "cfg"
37600 },
37601 {
37602 "children" : [
37603 {
37604 "children" : [
37605 {
37606 "info" : {
37607 "GET" : {
37608 "allowtoken" : 1,
37609 "description" : "Get OSD details",
37610 "method" : "GET",
37611 "name" : "osddetails",
37612 "parameters" : {
37613 "additionalProperties" : 0,
37614 "properties" : {
37615 "node" : {
37616 "description" : "The cluster node name.",
37617 "format" : "pve-node",
37618 "type" : "string",
37619 "typetext" : "<string>"
37620 },
37621 "osdid" : {
37622 "description" : "OSD ID",
37623 "type" : "integer",
37624 "typetext" : "<integer>"
37625 }
37626 }
37627 },
37628 "permissions" : {
37629 "check" : [
37630 "perm",
37631 "/",
37632 [
37633 "Sys.Audit"
37634 ],
37635 "any",
37636 1
37637 ]
37638 },
37639 "protected" : 1,
37640 "proxyto" : "node",
37641 "returns" : {
37642 "properties" : {
37643 "devices" : {
37644 "description" : "Array containing data about devices",
37645 "items" : {
37646 "properties" : {
37647 "dev_node" : {
37648 "description" : "Device node",
37649 "type" : "string"
37650 },
37651 "device" : {
37652 "description" : "Kind of OSD device",
37653 "enum" : [
37654 "block",
37655 "db",
37656 "wal"
37657 ],
37658 "type" : "string"
37659 },
37660 "devices" : {
37661 "description" : "Physical disks used",
37662 "type" : "string"
37663 },
37664 "size" : {
37665 "description" : "Size in bytes",
37666 "type" : "integer"
37667 },
37668 "support_discard" : {
37669 "description" : "Discard support of the physical device",
37670 "type" : "boolean"
37671 },
37672 "type" : {
37673 "description" : "Type of device. For example, hdd or ssd",
37674 "type" : "string"
37675 }
37676 },
37677 "type" : "object"
37678 },
37679 "type" : "array"
37680 },
37681 "osd" : {
37682 "description" : "General information about the OSD",
37683 "properties" : {
37684 "back_addr" : {
37685 "description" : "Address and port used to talk to other OSDs.",
37686 "type" : "string"
37687 },
37688 "front_addr" : {
37689 "description" : "Address and port used to talk to clients and monitors.",
37690 "type" : "string"
37691 },
37692 "hb_back_addr" : {
37693 "description" : "Heartbeat address and port for other OSDs.",
37694 "type" : "string"
37695 },
37696 "hb_front_addr" : {
37697 "description" : "Heartbeat address and port for clients and monitors.",
37698 "type" : "string"
37699 },
37700 "hostname" : {
37701 "description" : "Name of the host containing the OSD.",
37702 "type" : "string"
37703 },
37704 "id" : {
37705 "description" : "ID of the OSD.",
37706 "type" : "integer"
37707 },
37708 "mem_usage" : {
37709 "description" : "Memory usage of the OSD service.",
37710 "type" : "integer"
37711 },
37712 "osd_data" : {
37713 "description" : "Path to the OSD's data directory.",
37714 "type" : "string"
37715 },
37716 "osd_objectstore" : {
37717 "description" : "The type of object store used.",
37718 "type" : "string"
37719 },
37720 "pid" : {
37721 "description" : "OSD process ID.",
37722 "type" : "integer"
37723 },
37724 "version" : {
37725 "description" : "Ceph version of the OSD service.",
37726 "type" : "string"
37727 }
37728 },
37729 "type" : "object"
37730 }
37731 },
37732 "type" : "object"
37733 }
37734 }
37735 },
37736 "leaf" : 1,
37737 "path" : "/nodes/{node}/ceph/osd/{osdid}/metadata",
37738 "text" : "metadata"
37739 },
37740 {
37741 "info" : {
37742 "GET" : {
37743 "allowtoken" : 1,
37744 "description" : "Get OSD volume details",
37745 "method" : "GET",
37746 "name" : "osdvolume",
37747 "parameters" : {
37748 "additionalProperties" : 0,
37749 "properties" : {
37750 "node" : {
37751 "description" : "The cluster node name.",
37752 "format" : "pve-node",
37753 "type" : "string",
37754 "typetext" : "<string>"
37755 },
37756 "osdid" : {
37757 "description" : "OSD ID",
37758 "type" : "integer",
37759 "typetext" : "<integer>"
37760 },
37761 "type" : {
37762 "default" : "block",
37763 "description" : "OSD device type",
37764 "enum" : [
37765 "block",
37766 "db",
37767 "wal"
37768 ],
37769 "optional" : 1,
37770 "type" : "string"
37771 }
37772 }
37773 },
37774 "permissions" : {
37775 "check" : [
37776 "perm",
37777 "/",
37778 [
37779 "Sys.Audit"
37780 ],
37781 "any",
37782 1
37783 ]
37784 },
37785 "protected" : 1,
37786 "proxyto" : "node",
37787 "returns" : {
37788 "properties" : {
37789 "creation_time" : {
37790 "description" : "Creation time as reported by `lvs`.",
37791 "type" : "string"
37792 },
37793 "lv_name" : {
37794 "description" : "Name of the logical volume (LV).",
37795 "type" : "string"
37796 },
37797 "lv_path" : {
37798 "description" : "Path to the logical volume (LV).",
37799 "type" : "string"
37800 },
37801 "lv_size" : {
37802 "description" : "Size of the logical volume (LV).",
37803 "type" : "integer"
37804 },
37805 "lv_uuid" : {
37806 "description" : "UUID of the logical volume (LV).",
37807 "type" : "string"
37808 },
37809 "vg_name" : {
37810 "description" : "Name of the volume group (VG).",
37811 "type" : "string"
37812 }
37813 },
37814 "type" : "object"
37815 }
37816 }
37817 },
37818 "leaf" : 1,
37819 "path" : "/nodes/{node}/ceph/osd/{osdid}/lv-info",
37820 "text" : "lv-info"
37821 },
37822 {
37823 "info" : {
37824 "POST" : {
37825 "allowtoken" : 1,
37826 "description" : "ceph osd in",
37827 "method" : "POST",
37828 "name" : "in",
37829 "parameters" : {
37830 "additionalProperties" : 0,
37831 "properties" : {
37832 "node" : {
37833 "description" : "The cluster node name.",
37834 "format" : "pve-node",
37835 "type" : "string",
37836 "typetext" : "<string>"
37837 },
37838 "osdid" : {
37839 "description" : "OSD ID",
37840 "type" : "integer",
37841 "typetext" : "<integer>"
37842 }
37843 }
37844 },
37845 "permissions" : {
37846 "check" : [
37847 "perm",
37848 "/",
37849 [
37850 "Sys.Modify"
37851 ]
37852 ]
37853 },
37854 "protected" : 1,
37855 "proxyto" : "node",
37856 "returns" : {
37857 "type" : "null"
37858 }
37859 }
37860 },
37861 "leaf" : 1,
37862 "path" : "/nodes/{node}/ceph/osd/{osdid}/in",
37863 "text" : "in"
37864 },
37865 {
37866 "info" : {
37867 "POST" : {
37868 "allowtoken" : 1,
37869 "description" : "ceph osd out",
37870 "method" : "POST",
37871 "name" : "out",
37872 "parameters" : {
37873 "additionalProperties" : 0,
37874 "properties" : {
37875 "node" : {
37876 "description" : "The cluster node name.",
37877 "format" : "pve-node",
37878 "type" : "string",
37879 "typetext" : "<string>"
37880 },
37881 "osdid" : {
37882 "description" : "OSD ID",
37883 "type" : "integer",
37884 "typetext" : "<integer>"
37885 }
37886 }
37887 },
37888 "permissions" : {
37889 "check" : [
37890 "perm",
37891 "/",
37892 [
37893 "Sys.Modify"
37894 ]
37895 ]
37896 },
37897 "protected" : 1,
37898 "proxyto" : "node",
37899 "returns" : {
37900 "type" : "null"
37901 }
37902 }
37903 },
37904 "leaf" : 1,
37905 "path" : "/nodes/{node}/ceph/osd/{osdid}/out",
37906 "text" : "out"
37907 },
37908 {
37909 "info" : {
37910 "POST" : {
37911 "allowtoken" : 1,
37912 "description" : "Instruct the OSD to scrub.",
37913 "method" : "POST",
37914 "name" : "scrub",
37915 "parameters" : {
37916 "additionalProperties" : 0,
37917 "properties" : {
37918 "deep" : {
37919 "default" : 0,
37920 "description" : "If set, instructs a deep scrub instead of a normal one.",
37921 "optional" : 1,
37922 "type" : "boolean",
37923 "typetext" : "<boolean>"
37924 },
37925 "node" : {
37926 "description" : "The cluster node name.",
37927 "format" : "pve-node",
37928 "type" : "string",
37929 "typetext" : "<string>"
37930 },
37931 "osdid" : {
37932 "description" : "OSD ID",
37933 "type" : "integer",
37934 "typetext" : "<integer>"
37935 }
37936 }
37937 },
37938 "permissions" : {
37939 "check" : [
37940 "perm",
37941 "/",
37942 [
37943 "Sys.Modify"
37944 ]
37945 ]
37946 },
37947 "protected" : 1,
37948 "proxyto" : "node",
37949 "returns" : {
37950 "type" : "null"
37951 }
37952 }
37953 },
37954 "leaf" : 1,
37955 "path" : "/nodes/{node}/ceph/osd/{osdid}/scrub",
37956 "text" : "scrub"
37957 }
37958 ],
37959 "info" : {
37960 "DELETE" : {
37961 "allowtoken" : 1,
37962 "description" : "Destroy OSD",
37963 "method" : "DELETE",
37964 "name" : "destroyosd",
37965 "parameters" : {
37966 "additionalProperties" : 0,
37967 "properties" : {
37968 "cleanup" : {
37969 "default" : 0,
37970 "description" : "If set, we remove partition table entries.",
37971 "optional" : 1,
37972 "type" : "boolean",
37973 "typetext" : "<boolean>"
37974 },
37975 "node" : {
37976 "description" : "The cluster node name.",
37977 "format" : "pve-node",
37978 "type" : "string",
37979 "typetext" : "<string>"
37980 },
37981 "osdid" : {
37982 "description" : "OSD ID",
37983 "type" : "integer",
37984 "typetext" : "<integer>"
37985 }
37986 }
37987 },
37988 "protected" : 1,
37989 "proxyto" : "node",
37990 "returns" : {
37991 "type" : "string"
37992 }
37993 },
37994 "GET" : {
37995 "allowtoken" : 1,
37996 "description" : "OSD index.",
37997 "method" : "GET",
37998 "name" : "osdindex",
37999 "parameters" : {
38000 "additionalProperties" : 0,
38001 "properties" : {
38002 "node" : {
38003 "description" : "The cluster node name.",
38004 "format" : "pve-node",
38005 "type" : "string",
38006 "typetext" : "<string>"
38007 },
38008 "osdid" : {
38009 "description" : "OSD ID",
38010 "type" : "integer",
38011 "typetext" : "<integer>"
38012 }
38013 }
38014 },
38015 "permissions" : {
38016 "user" : "all"
38017 },
38018 "returns" : {
38019 "items" : {
38020 "properties" : {},
38021 "type" : "object"
38022 },
38023 "links" : [
38024 {
38025 "href" : "{name}",
38026 "rel" : "child"
38027 }
38028 ],
38029 "type" : "array"
38030 }
38031 }
38032 },
38033 "leaf" : 0,
38034 "path" : "/nodes/{node}/ceph/osd/{osdid}",
38035 "text" : "{osdid}"
38036 }
38037 ],
38038 "info" : {
38039 "GET" : {
38040 "allowtoken" : 1,
38041 "description" : "Get Ceph osd list/tree.",
38042 "method" : "GET",
38043 "name" : "index",
38044 "parameters" : {
38045 "additionalProperties" : 0,
38046 "properties" : {
38047 "node" : {
38048 "description" : "The cluster node name.",
38049 "format" : "pve-node",
38050 "type" : "string",
38051 "typetext" : "<string>"
38052 }
38053 }
38054 },
38055 "permissions" : {
38056 "check" : [
38057 "perm",
38058 "/",
38059 [
38060 "Sys.Audit",
38061 "Datastore.Audit"
38062 ],
38063 "any",
38064 1
38065 ]
38066 },
38067 "protected" : 1,
38068 "proxyto" : "node",
38069 "returns" : {
38070 "items" : {
38071 "properties" : {
38072 "flags" : {
38073 "type" : "string"
38074 },
38075 "root" : {
38076 "description" : "Tree with OSDs in the CRUSH map structure.",
38077 "type" : "object"
38078 }
38079 },
38080 "type" : "object"
38081 },
38082 "type" : "object"
38083 }
38084 },
38085 "POST" : {
38086 "allowtoken" : 1,
38087 "description" : "Create OSD",
38088 "method" : "POST",
38089 "name" : "createosd",
38090 "parameters" : {
38091 "additionalProperties" : 0,
38092 "properties" : {
38093 "crush-device-class" : {
38094 "description" : "Set the device class of the OSD in crush.",
38095 "optional" : 1,
38096 "type" : "string",
38097 "typetext" : "<string>"
38098 },
38099 "db_dev" : {
38100 "description" : "Block device name for block.db.",
38101 "optional" : 1,
38102 "type" : "string",
38103 "typetext" : "<string>"
38104 },
38105 "db_dev_size" : {
38106 "default" : "bluestore_block_db_size or 10% of OSD size",
38107 "description" : "Size in GiB for block.db.",
38108 "minimum" : 1,
38109 "optional" : 1,
38110 "requires" : "db_dev",
38111 "type" : "number",
38112 "typetext" : "<number> (1 - N)",
38113 "verbose_description" : "If a block.db is requested but the size is not given, will be automatically selected by: bluestore_block_db_size from the ceph database (osd or global section) or config (osd or global section) in that order. If this is not available, it will be sized 10% of the size of the OSD device. Fails if the available size is not enough."
38114 },
38115 "dev" : {
38116 "description" : "Block device name.",
38117 "type" : "string",
38118 "typetext" : "<string>"
38119 },
38120 "encrypted" : {
38121 "default" : 0,
38122 "description" : "Enables encryption of the OSD.",
38123 "optional" : 1,
38124 "type" : "boolean",
38125 "typetext" : "<boolean>"
38126 },
38127 "node" : {
38128 "description" : "The cluster node name.",
38129 "format" : "pve-node",
38130 "type" : "string",
38131 "typetext" : "<string>"
38132 },
38133 "osds-per-device" : {
38134 "description" : "OSD services per physical device. Only useful for fast NVMe devices\"\n\t\t .\" to utilize their performance better.",
38135 "minimum" : "1",
38136 "optional" : 1,
38137 "type" : "integer",
38138 "typetext" : "<integer> (1 - N)"
38139 },
38140 "wal_dev" : {
38141 "description" : "Block device name for block.wal.",
38142 "optional" : 1,
38143 "type" : "string",
38144 "typetext" : "<string>"
38145 },
38146 "wal_dev_size" : {
38147 "default" : "bluestore_block_wal_size or 1% of OSD size",
38148 "description" : "Size in GiB for block.wal.",
38149 "minimum" : 0.5,
38150 "optional" : 1,
38151 "requires" : "wal_dev",
38152 "type" : "number",
38153 "typetext" : "<number> (0.5 - N)",
38154 "verbose_description" : "If a block.wal is requested but the size is not given, will be automatically selected by: bluestore_block_wal_size from the ceph database (osd or global section) or config (osd or global section) in that order. If this is not available, it will be sized 1% of the size of the OSD device. Fails if the available size is not enough."
38155 }
38156 }
38157 },
38158 "protected" : 1,
38159 "proxyto" : "node",
38160 "returns" : {
38161 "type" : "string"
38162 }
38163 }
38164 },
38165 "leaf" : 0,
38166 "path" : "/nodes/{node}/ceph/osd",
38167 "text" : "osd"
38168 },
38169 {
38170 "children" : [
38171 {
38172 "info" : {
38173 "DELETE" : {
38174 "allowtoken" : 1,
38175 "description" : "Destroy Ceph Metadata Server",
38176 "method" : "DELETE",
38177 "name" : "destroymds",
38178 "parameters" : {
38179 "additionalProperties" : 0,
38180 "properties" : {
38181 "name" : {
38182 "description" : "The name (ID) of the mds",
38183 "pattern" : "[a-zA-Z0-9]([a-zA-Z0-9\\-]*[a-zA-Z0-9])?",
38184 "type" : "string"
38185 },
38186 "node" : {
38187 "description" : "The cluster node name.",
38188 "format" : "pve-node",
38189 "type" : "string",
38190 "typetext" : "<string>"
38191 }
38192 }
38193 },
38194 "permissions" : {
38195 "check" : [
38196 "perm",
38197 "/",
38198 [
38199 "Sys.Modify"
38200 ]
38201 ]
38202 },
38203 "protected" : 1,
38204 "proxyto" : "node",
38205 "returns" : {
38206 "type" : "string"
38207 }
38208 },
38209 "POST" : {
38210 "allowtoken" : 1,
38211 "description" : "Create Ceph Metadata Server (MDS)",
38212 "method" : "POST",
38213 "name" : "createmds",
38214 "parameters" : {
38215 "additionalProperties" : 0,
38216 "properties" : {
38217 "hotstandby" : {
38218 "default" : "0",
38219 "description" : "Determines whether a ceph-mds daemon should poll and replay the log of an active MDS. Faster switch on MDS failure, but needs more idle resources.",
38220 "optional" : 1,
38221 "type" : "boolean",
38222 "typetext" : "<boolean>"
38223 },
38224 "name" : {
38225 "default" : "nodename",
38226 "description" : "The ID for the mds, when omitted the same as the nodename",
38227 "maxLength" : 200,
38228 "optional" : 1,
38229 "pattern" : "[a-zA-Z0-9]([a-zA-Z0-9\\-]*[a-zA-Z0-9])?",
38230 "type" : "string"
38231 },
38232 "node" : {
38233 "description" : "The cluster node name.",
38234 "format" : "pve-node",
38235 "type" : "string",
38236 "typetext" : "<string>"
38237 }
38238 }
38239 },
38240 "permissions" : {
38241 "check" : [
38242 "perm",
38243 "/",
38244 [
38245 "Sys.Modify"
38246 ]
38247 ]
38248 },
38249 "protected" : 1,
38250 "proxyto" : "node",
38251 "returns" : {
38252 "type" : "string"
38253 }
38254 }
38255 },
38256 "leaf" : 1,
38257 "path" : "/nodes/{node}/ceph/mds/{name}",
38258 "text" : "{name}"
38259 }
38260 ],
38261 "info" : {
38262 "GET" : {
38263 "allowtoken" : 1,
38264 "description" : "MDS directory index.",
38265 "method" : "GET",
38266 "name" : "index",
38267 "parameters" : {
38268 "additionalProperties" : 0,
38269 "properties" : {
38270 "node" : {
38271 "description" : "The cluster node name.",
38272 "format" : "pve-node",
38273 "type" : "string",
38274 "typetext" : "<string>"
38275 }
38276 }
38277 },
38278 "permissions" : {
38279 "check" : [
38280 "perm",
38281 "/",
38282 [
38283 "Sys.Audit",
38284 "Datastore.Audit"
38285 ],
38286 "any",
38287 1
38288 ]
38289 },
38290 "protected" : 1,
38291 "proxyto" : "node",
38292 "returns" : {
38293 "items" : {
38294 "properties" : {
38295 "addr" : {
38296 "optional" : 1,
38297 "type" : "string"
38298 },
38299 "host" : {
38300 "optional" : 1,
38301 "type" : "string"
38302 },
38303 "name" : {
38304 "description" : "The name (ID) for the MDS"
38305 },
38306 "rank" : {
38307 "optional" : 1,
38308 "type" : "integer"
38309 },
38310 "standby_replay" : {
38311 "description" : "If true, the standby MDS is polling the active MDS for faster recovery (hot standby).",
38312 "optional" : 1,
38313 "type" : "boolean"
38314 },
38315 "state" : {
38316 "description" : "State of the MDS",
38317 "type" : "string"
38318 }
38319 },
38320 "type" : "object"
38321 },
38322 "links" : [
38323 {
38324 "href" : "{name}",
38325 "rel" : "child"
38326 }
38327 ],
38328 "type" : "array"
38329 }
38330 }
38331 },
38332 "leaf" : 0,
38333 "path" : "/nodes/{node}/ceph/mds",
38334 "text" : "mds"
38335 },
38336 {
38337 "children" : [
38338 {
38339 "info" : {
38340 "DELETE" : {
38341 "allowtoken" : 1,
38342 "description" : "Destroy Ceph Manager.",
38343 "method" : "DELETE",
38344 "name" : "destroymgr",
38345 "parameters" : {
38346 "additionalProperties" : 0,
38347 "properties" : {
38348 "id" : {
38349 "description" : "The ID of the manager",
38350 "pattern" : "[a-zA-Z0-9]([a-zA-Z0-9\\-]*[a-zA-Z0-9])?",
38351 "type" : "string"
38352 },
38353 "node" : {
38354 "description" : "The cluster node name.",
38355 "format" : "pve-node",
38356 "type" : "string",
38357 "typetext" : "<string>"
38358 }
38359 }
38360 },
38361 "permissions" : {
38362 "check" : [
38363 "perm",
38364 "/",
38365 [
38366 "Sys.Modify"
38367 ]
38368 ]
38369 },
38370 "protected" : 1,
38371 "proxyto" : "node",
38372 "returns" : {
38373 "type" : "string"
38374 }
38375 },
38376 "POST" : {
38377 "allowtoken" : 1,
38378 "description" : "Create Ceph Manager",
38379 "method" : "POST",
38380 "name" : "createmgr",
38381 "parameters" : {
38382 "additionalProperties" : 0,
38383 "properties" : {
38384 "id" : {
38385 "description" : "The ID for the manager, when omitted the same as the nodename",
38386 "maxLength" : 200,
38387 "optional" : 1,
38388 "pattern" : "[a-zA-Z0-9]([a-zA-Z0-9\\-]*[a-zA-Z0-9])?",
38389 "type" : "string"
38390 },
38391 "node" : {
38392 "description" : "The cluster node name.",
38393 "format" : "pve-node",
38394 "type" : "string",
38395 "typetext" : "<string>"
38396 }
38397 }
38398 },
38399 "permissions" : {
38400 "check" : [
38401 "perm",
38402 "/",
38403 [
38404 "Sys.Modify"
38405 ]
38406 ]
38407 },
38408 "protected" : 1,
38409 "proxyto" : "node",
38410 "returns" : {
38411 "type" : "string"
38412 }
38413 }
38414 },
38415 "leaf" : 1,
38416 "path" : "/nodes/{node}/ceph/mgr/{id}",
38417 "text" : "{id}"
38418 }
38419 ],
38420 "info" : {
38421 "GET" : {
38422 "allowtoken" : 1,
38423 "description" : "MGR directory index.",
38424 "method" : "GET",
38425 "name" : "index",
38426 "parameters" : {
38427 "additionalProperties" : 0,
38428 "properties" : {
38429 "node" : {
38430 "description" : "The cluster node name.",
38431 "format" : "pve-node",
38432 "type" : "string",
38433 "typetext" : "<string>"
38434 }
38435 }
38436 },
38437 "permissions" : {
38438 "check" : [
38439 "perm",
38440 "/",
38441 [
38442 "Sys.Audit",
38443 "Datastore.Audit"
38444 ],
38445 "any",
38446 1
38447 ]
38448 },
38449 "protected" : 1,
38450 "proxyto" : "node",
38451 "returns" : {
38452 "items" : {
38453 "properties" : {
38454 "addr" : {
38455 "optional" : 1,
38456 "type" : "string"
38457 },
38458 "host" : {
38459 "optional" : 1,
38460 "type" : "string"
38461 },
38462 "name" : {
38463 "description" : "The name (ID) for the MGR"
38464 },
38465 "state" : {
38466 "description" : "State of the MGR",
38467 "type" : "string"
38468 }
38469 },
38470 "type" : "object"
38471 },
38472 "links" : [
38473 {
38474 "href" : "{name}",
38475 "rel" : "child"
38476 }
38477 ],
38478 "type" : "array"
38479 }
38480 }
38481 },
38482 "leaf" : 0,
38483 "path" : "/nodes/{node}/ceph/mgr",
38484 "text" : "mgr"
38485 },
38486 {
38487 "children" : [
38488 {
38489 "info" : {
38490 "DELETE" : {
38491 "allowtoken" : 1,
38492 "description" : "Destroy Ceph Monitor and Manager.",
38493 "method" : "DELETE",
38494 "name" : "destroymon",
38495 "parameters" : {
38496 "additionalProperties" : 0,
38497 "properties" : {
38498 "monid" : {
38499 "description" : "Monitor ID",
38500 "pattern" : "[a-zA-Z0-9]([a-zA-Z0-9\\-]*[a-zA-Z0-9])?",
38501 "type" : "string"
38502 },
38503 "node" : {
38504 "description" : "The cluster node name.",
38505 "format" : "pve-node",
38506 "type" : "string",
38507 "typetext" : "<string>"
38508 }
38509 }
38510 },
38511 "permissions" : {
38512 "check" : [
38513 "perm",
38514 "/",
38515 [
38516 "Sys.Modify"
38517 ]
38518 ]
38519 },
38520 "protected" : 1,
38521 "proxyto" : "node",
38522 "returns" : {
38523 "type" : "string"
38524 }
38525 },
38526 "POST" : {
38527 "allowtoken" : 1,
38528 "description" : "Create Ceph Monitor and Manager",
38529 "method" : "POST",
38530 "name" : "createmon",
38531 "parameters" : {
38532 "additionalProperties" : 0,
38533 "properties" : {
38534 "mon-address" : {
38535 "description" : "Overwrites autodetected monitor IP address(es). Must be in the public network(s) of Ceph.",
38536 "format" : "ip-list",
38537 "optional" : 1,
38538 "type" : "string",
38539 "typetext" : "<string>"
38540 },
38541 "monid" : {
38542 "description" : "The ID for the monitor, when omitted the same as the nodename",
38543 "maxLength" : 200,
38544 "optional" : 1,
38545 "pattern" : "[a-zA-Z0-9]([a-zA-Z0-9\\-]*[a-zA-Z0-9])?",
38546 "type" : "string"
38547 },
38548 "node" : {
38549 "description" : "The cluster node name.",
38550 "format" : "pve-node",
38551 "type" : "string",
38552 "typetext" : "<string>"
38553 }
38554 }
38555 },
38556 "permissions" : {
38557 "check" : [
38558 "perm",
38559 "/",
38560 [
38561 "Sys.Modify"
38562 ]
38563 ]
38564 },
38565 "protected" : 1,
38566 "proxyto" : "node",
38567 "returns" : {
38568 "type" : "string"
38569 }
38570 }
38571 },
38572 "leaf" : 1,
38573 "path" : "/nodes/{node}/ceph/mon/{monid}",
38574 "text" : "{monid}"
38575 }
38576 ],
38577 "info" : {
38578 "GET" : {
38579 "allowtoken" : 1,
38580 "description" : "Get Ceph monitor list.",
38581 "method" : "GET",
38582 "name" : "listmon",
38583 "parameters" : {
38584 "additionalProperties" : 0,
38585 "properties" : {
38586 "node" : {
38587 "description" : "The cluster node name.",
38588 "format" : "pve-node",
38589 "type" : "string",
38590 "typetext" : "<string>"
38591 }
38592 }
38593 },
38594 "permissions" : {
38595 "check" : [
38596 "perm",
38597 "/",
38598 [
38599 "Sys.Audit",
38600 "Datastore.Audit"
38601 ],
38602 "any",
38603 1
38604 ]
38605 },
38606 "protected" : 1,
38607 "proxyto" : "node",
38608 "returns" : {
38609 "items" : {
38610 "properties" : {
38611 "addr" : {
38612 "optional" : 1,
38613 "type" : "string"
38614 },
38615 "ceph_version" : {
38616 "optional" : 1,
38617 "type" : "string"
38618 },
38619 "ceph_version_short" : {
38620 "optional" : 1,
38621 "type" : "string"
38622 },
38623 "direxists" : {
38624 "optional" : 1,
38625 "type" : "string"
38626 },
38627 "host" : {
38628 "optional" : 1,
38629 "type" : "boolean"
38630 },
38631 "name" : {
38632 "type" : "string"
38633 },
38634 "quorum" : {
38635 "optional" : 1,
38636 "type" : "boolean"
38637 },
38638 "rank" : {
38639 "optional" : 1,
38640 "type" : "integer"
38641 },
38642 "service" : {
38643 "optional" : 1,
38644 "type" : "integer"
38645 },
38646 "state" : {
38647 "optional" : 1,
38648 "type" : "string"
38649 }
38650 },
38651 "type" : "object"
38652 },
38653 "links" : [
38654 {
38655 "href" : "{name}",
38656 "rel" : "child"
38657 }
38658 ],
38659 "type" : "array"
38660 }
38661 }
38662 },
38663 "leaf" : 0,
38664 "path" : "/nodes/{node}/ceph/mon",
38665 "text" : "mon"
38666 },
38667 {
38668 "children" : [
38669 {
38670 "info" : {
38671 "POST" : {
38672 "allowtoken" : 1,
38673 "description" : "Create a Ceph filesystem",
38674 "method" : "POST",
38675 "name" : "createfs",
38676 "parameters" : {
38677 "additionalProperties" : 0,
38678 "properties" : {
38679 "add-storage" : {
38680 "default" : 0,
38681 "description" : "Configure the created CephFS as storage for this cluster.",
38682 "optional" : 1,
38683 "type" : "boolean",
38684 "typetext" : "<boolean>"
38685 },
38686 "name" : {
38687 "default" : "cephfs",
38688 "description" : "The ceph filesystem name.",
38689 "optional" : 1,
38690 "type" : "string",
38691 "typetext" : "<string>"
38692 },
38693 "node" : {
38694 "description" : "The cluster node name.",
38695 "format" : "pve-node",
38696 "type" : "string",
38697 "typetext" : "<string>"
38698 },
38699 "pg_num" : {
38700 "default" : 128,
38701 "description" : "Number of placement groups for the backing data pool. The metadata pool will use a quarter of this.",
38702 "maximum" : 32768,
38703 "minimum" : 8,
38704 "optional" : 1,
38705 "type" : "integer",
38706 "typetext" : "<integer> (8 - 32768)"
38707 }
38708 }
38709 },
38710 "permissions" : {
38711 "check" : [
38712 "perm",
38713 "/",
38714 [
38715 "Sys.Modify"
38716 ]
38717 ]
38718 },
38719 "protected" : 1,
38720 "proxyto" : "node",
38721 "returns" : {
38722 "type" : "string"
38723 }
38724 }
38725 },
38726 "leaf" : 1,
38727 "path" : "/nodes/{node}/ceph/fs/{name}",
38728 "text" : "{name}"
38729 }
38730 ],
38731 "info" : {
38732 "GET" : {
38733 "allowtoken" : 1,
38734 "description" : "Directory index.",
38735 "method" : "GET",
38736 "name" : "index",
38737 "parameters" : {
38738 "additionalProperties" : 0,
38739 "properties" : {
38740 "node" : {
38741 "description" : "The cluster node name.",
38742 "format" : "pve-node",
38743 "type" : "string",
38744 "typetext" : "<string>"
38745 }
38746 }
38747 },
38748 "permissions" : {
38749 "check" : [
38750 "perm",
38751 "/",
38752 [
38753 "Sys.Audit",
38754 "Datastore.Audit"
38755 ],
38756 "any",
38757 1
38758 ]
38759 },
38760 "protected" : 1,
38761 "proxyto" : "node",
38762 "returns" : {
38763 "items" : {
38764 "properties" : {
38765 "data_pool" : {
38766 "description" : "The name of the data pool.",
38767 "type" : "string"
38768 },
38769 "metadata_pool" : {
38770 "description" : "The name of the metadata pool.",
38771 "type" : "string"
38772 },
38773 "name" : {
38774 "description" : "The ceph filesystem name.",
38775 "type" : "string"
38776 }
38777 },
38778 "type" : "object"
38779 },
38780 "links" : [
38781 {
38782 "href" : "{name}",
38783 "rel" : "child"
38784 }
38785 ],
38786 "type" : "array"
38787 }
38788 }
38789 },
38790 "leaf" : 0,
38791 "path" : "/nodes/{node}/ceph/fs",
38792 "text" : "fs"
38793 },
38794 {
38795 "children" : [
38796 {
38797 "children" : [
38798 {
38799 "info" : {
38800 "GET" : {
38801 "allowtoken" : 1,
38802 "description" : "Show the current pool status.",
38803 "method" : "GET",
38804 "name" : "getpool",
38805 "parameters" : {
38806 "additionalProperties" : 0,
38807 "properties" : {
38808 "name" : {
38809 "description" : "The name of the pool. It must be unique.",
38810 "type" : "string",
38811 "typetext" : "<string>"
38812 },
38813 "node" : {
38814 "description" : "The cluster node name.",
38815 "format" : "pve-node",
38816 "type" : "string",
38817 "typetext" : "<string>"
38818 },
38819 "verbose" : {
38820 "default" : 0,
38821 "description" : "If enabled, will display additional data(eg. statistics).",
38822 "optional" : 1,
38823 "type" : "boolean",
38824 "typetext" : "<boolean>"
38825 }
38826 }
38827 },
38828 "permissions" : {
38829 "check" : [
38830 "perm",
38831 "/",
38832 [
38833 "Sys.Audit",
38834 "Datastore.Audit"
38835 ],
38836 "any",
38837 1
38838 ]
38839 },
38840 "protected" : 1,
38841 "proxyto" : "node",
38842 "returns" : {
38843 "properties" : {
38844 "application" : {
38845 "default" : "rbd",
38846 "description" : "The application of the pool.",
38847 "enum" : [
38848 "rbd",
38849 "cephfs",
38850 "rgw"
38851 ],
38852 "optional" : 1,
38853 "title" : "Application",
38854 "type" : "string"
38855 },
38856 "application_list" : {
38857 "optional" : 1,
38858 "title" : "Application",
38859 "type" : "array"
38860 },
38861 "autoscale_status" : {
38862 "optional" : 1,
38863 "title" : "Autoscale Status",
38864 "type" : "object"
38865 },
38866 "crush_rule" : {
38867 "description" : "The rule to use for mapping object placement in the cluster.",
38868 "optional" : 1,
38869 "title" : "Crush Rule Name",
38870 "type" : "string"
38871 },
38872 "fast_read" : {
38873 "title" : "Fast Read",
38874 "type" : "boolean"
38875 },
38876 "hashpspool" : {
38877 "title" : "hashpspool",
38878 "type" : "boolean"
38879 },
38880 "id" : {
38881 "title" : "ID",
38882 "type" : "integer"
38883 },
38884 "min_size" : {
38885 "default" : 2,
38886 "description" : "Minimum number of replicas per object",
38887 "maximum" : 7,
38888 "minimum" : 1,
38889 "optional" : 1,
38890 "title" : "Min Size",
38891 "type" : "integer"
38892 },
38893 "name" : {
38894 "description" : "The name of the pool. It must be unique.",
38895 "title" : "Name",
38896 "type" : "string"
38897 },
38898 "nodeep-scrub" : {
38899 "title" : "nodeep-scrub",
38900 "type" : "boolean"
38901 },
38902 "nodelete" : {
38903 "title" : "nodelete",
38904 "type" : "boolean"
38905 },
38906 "nopgchange" : {
38907 "title" : "nopgchange",
38908 "type" : "boolean"
38909 },
38910 "noscrub" : {
38911 "title" : "noscrub",
38912 "type" : "boolean"
38913 },
38914 "nosizechange" : {
38915 "title" : "nosizechange",
38916 "type" : "boolean"
38917 },
38918 "pg_autoscale_mode" : {
38919 "default" : "warn",
38920 "description" : "The automatic PG scaling mode of the pool.",
38921 "enum" : [
38922 "on",
38923 "off",
38924 "warn"
38925 ],
38926 "optional" : 1,
38927 "title" : "PG Autoscale Mode",
38928 "type" : "string"
38929 },
38930 "pg_num" : {
38931 "default" : 128,
38932 "description" : "Number of placement groups.",
38933 "maximum" : 32768,
38934 "minimum" : 1,
38935 "optional" : 1,
38936 "title" : "PG Num",
38937 "type" : "integer"
38938 },
38939 "pg_num_min" : {
38940 "description" : "Minimal number of placement groups.",
38941 "maximum" : 32768,
38942 "optional" : 1,
38943 "title" : "min. PG Num",
38944 "type" : "integer"
38945 },
38946 "pgp_num" : {
38947 "title" : "PGP num",
38948 "type" : "integer"
38949 },
38950 "size" : {
38951 "default" : 3,
38952 "description" : "Number of replicas per object",
38953 "maximum" : 7,
38954 "minimum" : 1,
38955 "optional" : 1,
38956 "title" : "Size",
38957 "type" : "integer"
38958 },
38959 "statistics" : {
38960 "optional" : 1,
38961 "title" : "Statistics",
38962 "type" : "object"
38963 },
38964 "target_size" : {
38965 "description" : "The estimated target size of the pool for the PG autoscaler.",
38966 "optional" : 1,
38967 "pattern" : "^(\\d+(\\.\\d+)?)([KMGT])?$",
38968 "title" : "PG Autoscale Target Size",
38969 "type" : "string"
38970 },
38971 "target_size_ratio" : {
38972 "description" : "The estimated target ratio of the pool for the PG autoscaler.",
38973 "optional" : 1,
38974 "title" : "PG Autoscale Target Ratio",
38975 "type" : "number"
38976 },
38977 "use_gmt_hitset" : {
38978 "title" : "use_gmt_hitset",
38979 "type" : "boolean"
38980 },
38981 "write_fadvise_dontneed" : {
38982 "title" : "write_fadvise_dontneed",
38983 "type" : "boolean"
38984 }
38985 },
38986 "type" : "object"
38987 }
38988 }
38989 },
38990 "leaf" : 1,
38991 "path" : "/nodes/{node}/ceph/pool/{name}/status",
38992 "text" : "status"
38993 }
38994 ],
38995 "info" : {
38996 "DELETE" : {
38997 "allowtoken" : 1,
38998 "description" : "Destroy pool",
38999 "method" : "DELETE",
39000 "name" : "destroypool",
39001 "parameters" : {
39002 "additionalProperties" : 0,
39003 "properties" : {
39004 "force" : {
39005 "default" : 0,
39006 "description" : "If true, destroys pool even if in use",
39007 "optional" : 1,
39008 "type" : "boolean",
39009 "typetext" : "<boolean>"
39010 },
39011 "name" : {
39012 "description" : "The name of the pool. It must be unique.",
39013 "type" : "string",
39014 "typetext" : "<string>"
39015 },
39016 "node" : {
39017 "description" : "The cluster node name.",
39018 "format" : "pve-node",
39019 "type" : "string",
39020 "typetext" : "<string>"
39021 },
39022 "remove_ecprofile" : {
39023 "default" : 1,
39024 "description" : "Remove the erasure code profile. Defaults to true, if applicable.",
39025 "optional" : 1,
39026 "type" : "boolean",
39027 "typetext" : "<boolean>"
39028 },
39029 "remove_storages" : {
39030 "default" : 0,
39031 "description" : "Remove all pveceph-managed storages configured for this pool",
39032 "optional" : 1,
39033 "type" : "boolean",
39034 "typetext" : "<boolean>"
39035 }
39036 }
39037 },
39038 "permissions" : {
39039 "check" : [
39040 "perm",
39041 "/",
39042 [
39043 "Sys.Modify"
39044 ]
39045 ]
39046 },
39047 "protected" : 1,
39048 "proxyto" : "node",
39049 "returns" : {
39050 "type" : "string"
39051 }
39052 },
39053 "GET" : {
39054 "allowtoken" : 1,
39055 "description" : "Pool index.",
39056 "method" : "GET",
39057 "name" : "poolindex",
39058 "parameters" : {
39059 "additionalProperties" : 0,
39060 "properties" : {
39061 "name" : {
39062 "description" : "The name of the pool.",
39063 "type" : "string",
39064 "typetext" : "<string>"
39065 },
39066 "node" : {
39067 "description" : "The cluster node name.",
39068 "format" : "pve-node",
39069 "type" : "string",
39070 "typetext" : "<string>"
39071 }
39072 }
39073 },
39074 "permissions" : {
39075 "check" : [
39076 "perm",
39077 "/",
39078 [
39079 "Sys.Audit",
39080 "Datastore.Audit"
39081 ],
39082 "any",
39083 1
39084 ]
39085 },
39086 "returns" : {
39087 "items" : {
39088 "properties" : {},
39089 "type" : "object"
39090 },
39091 "links" : [
39092 {
39093 "href" : "{name}",
39094 "rel" : "child"
39095 }
39096 ],
39097 "type" : "array"
39098 }
39099 },
39100 "PUT" : {
39101 "allowtoken" : 1,
39102 "description" : "Change POOL settings",
39103 "method" : "PUT",
39104 "name" : "setpool",
39105 "parameters" : {
39106 "additionalProperties" : 0,
39107 "properties" : {
39108 "application" : {
39109 "description" : "The application of the pool.",
39110 "enum" : [
39111 "rbd",
39112 "cephfs",
39113 "rgw"
39114 ],
39115 "optional" : 1,
39116 "title" : "Application",
39117 "type" : "string"
39118 },
39119 "crush_rule" : {
39120 "description" : "The rule to use for mapping object placement in the cluster.",
39121 "optional" : 1,
39122 "title" : "Crush Rule Name",
39123 "type" : "string",
39124 "typetext" : "<string>"
39125 },
39126 "min_size" : {
39127 "description" : "Minimum number of replicas per object",
39128 "maximum" : 7,
39129 "minimum" : 1,
39130 "optional" : 1,
39131 "title" : "Min Size",
39132 "type" : "integer",
39133 "typetext" : "<integer> (1 - 7)"
39134 },
39135 "name" : {
39136 "description" : "The name of the pool. It must be unique.",
39137 "title" : "Name",
39138 "type" : "string",
39139 "typetext" : "<string>"
39140 },
39141 "node" : {
39142 "description" : "The cluster node name.",
39143 "format" : "pve-node",
39144 "type" : "string",
39145 "typetext" : "<string>"
39146 },
39147 "pg_autoscale_mode" : {
39148 "description" : "The automatic PG scaling mode of the pool.",
39149 "enum" : [
39150 "on",
39151 "off",
39152 "warn"
39153 ],
39154 "optional" : 1,
39155 "title" : "PG Autoscale Mode",
39156 "type" : "string"
39157 },
39158 "pg_num" : {
39159 "description" : "Number of placement groups.",
39160 "maximum" : 32768,
39161 "minimum" : 1,
39162 "optional" : 1,
39163 "title" : "PG Num",
39164 "type" : "integer",
39165 "typetext" : "<integer> (1 - 32768)"
39166 },
39167 "pg_num_min" : {
39168 "description" : "Minimal number of placement groups.",
39169 "maximum" : 32768,
39170 "optional" : 1,
39171 "title" : "min. PG Num",
39172 "type" : "integer",
39173 "typetext" : "<integer> (-N - 32768)"
39174 },
39175 "size" : {
39176 "description" : "Number of replicas per object",
39177 "maximum" : 7,
39178 "minimum" : 1,
39179 "optional" : 1,
39180 "title" : "Size",
39181 "type" : "integer",
39182 "typetext" : "<integer> (1 - 7)"
39183 },
39184 "target_size" : {
39185 "description" : "The estimated target size of the pool for the PG autoscaler.",
39186 "optional" : 1,
39187 "pattern" : "^(\\d+(\\.\\d+)?)([KMGT])?$",
39188 "title" : "PG Autoscale Target Size",
39189 "type" : "string"
39190 },
39191 "target_size_ratio" : {
39192 "description" : "The estimated target ratio of the pool for the PG autoscaler.",
39193 "optional" : 1,
39194 "title" : "PG Autoscale Target Ratio",
39195 "type" : "number",
39196 "typetext" : "<number>"
39197 }
39198 }
39199 },
39200 "permissions" : {
39201 "check" : [
39202 "perm",
39203 "/",
39204 [
39205 "Sys.Modify"
39206 ]
39207 ]
39208 },
39209 "protected" : 1,
39210 "proxyto" : "node",
39211 "returns" : {
39212 "type" : "string"
39213 }
39214 }
39215 },
39216 "leaf" : 0,
39217 "path" : "/nodes/{node}/ceph/pool/{name}",
39218 "text" : "{name}"
39219 }
39220 ],
39221 "info" : {
39222 "GET" : {
39223 "allowtoken" : 1,
39224 "description" : "List all pools and their settings (which are settable by the POST/PUT endpoints).",
39225 "method" : "GET",
39226 "name" : "lspools",
39227 "parameters" : {
39228 "additionalProperties" : 0,
39229 "properties" : {
39230 "node" : {
39231 "description" : "The cluster node name.",
39232 "format" : "pve-node",
39233 "type" : "string",
39234 "typetext" : "<string>"
39235 }
39236 }
39237 },
39238 "permissions" : {
39239 "check" : [
39240 "perm",
39241 "/",
39242 [
39243 "Sys.Audit",
39244 "Datastore.Audit"
39245 ],
39246 "any",
39247 1
39248 ]
39249 },
39250 "protected" : 1,
39251 "proxyto" : "node",
39252 "returns" : {
39253 "items" : {
39254 "properties" : {
39255 "application_metadata" : {
39256 "optional" : 1,
39257 "title" : "Associated Applications",
39258 "type" : "object"
39259 },
39260 "autoscale_status" : {
39261 "optional" : 1,
39262 "title" : "Autoscale Status",
39263 "type" : "object"
39264 },
39265 "bytes_used" : {
39266 "title" : "Used",
39267 "type" : "integer"
39268 },
39269 "crush_rule" : {
39270 "title" : "Crush Rule",
39271 "type" : "integer"
39272 },
39273 "crush_rule_name" : {
39274 "title" : "Crush Rule Name",
39275 "type" : "string"
39276 },
39277 "min_size" : {
39278 "title" : "Min Size",
39279 "type" : "integer"
39280 },
39281 "percent_used" : {
39282 "title" : "%-Used",
39283 "type" : "number"
39284 },
39285 "pg_autoscale_mode" : {
39286 "optional" : 1,
39287 "title" : "PG Autoscale Mode",
39288 "type" : "string"
39289 },
39290 "pg_num" : {
39291 "title" : "PG Num",
39292 "type" : "integer"
39293 },
39294 "pg_num_final" : {
39295 "optional" : 1,
39296 "title" : "Optimal PG Num",
39297 "type" : "integer"
39298 },
39299 "pg_num_min" : {
39300 "optional" : 1,
39301 "title" : "min. PG Num",
39302 "type" : "integer"
39303 },
39304 "pool" : {
39305 "title" : "ID",
39306 "type" : "integer"
39307 },
39308 "pool_name" : {
39309 "title" : "Name",
39310 "type" : "string"
39311 },
39312 "size" : {
39313 "title" : "Size",
39314 "type" : "integer"
39315 },
39316 "target_size" : {
39317 "optional" : 1,
39318 "title" : "PG Autoscale Target Size",
39319 "type" : "integer"
39320 },
39321 "target_size_ratio" : {
39322 "optional" : 1,
39323 "title" : "PG Autoscale Target Ratio",
39324 "type" : "number"
39325 },
39326 "type" : {
39327 "enum" : [
39328 "replicated",
39329 "erasure",
39330 "unknown"
39331 ],
39332 "title" : "Type",
39333 "type" : "string"
39334 }
39335 },
39336 "type" : "object"
39337 },
39338 "links" : [
39339 {
39340 "href" : "{pool_name}",
39341 "rel" : "child"
39342 }
39343 ],
39344 "type" : "array"
39345 }
39346 },
39347 "POST" : {
39348 "allowtoken" : 1,
39349 "description" : "Create Ceph pool",
39350 "method" : "POST",
39351 "name" : "createpool",
39352 "parameters" : {
39353 "additionalProperties" : 0,
39354 "properties" : {
39355 "add_storages" : {
39356 "default" : "0; for erasure coded pools: 1",
39357 "description" : "Configure VM and CT storage using the new pool.",
39358 "optional" : 1,
39359 "type" : "boolean",
39360 "typetext" : "<boolean>"
39361 },
39362 "application" : {
39363 "default" : "rbd",
39364 "description" : "The application of the pool.",
39365 "enum" : [
39366 "rbd",
39367 "cephfs",
39368 "rgw"
39369 ],
39370 "optional" : 1,
39371 "title" : "Application",
39372 "type" : "string"
39373 },
39374 "crush_rule" : {
39375 "description" : "The rule to use for mapping object placement in the cluster.",
39376 "optional" : 1,
39377 "title" : "Crush Rule Name",
39378 "type" : "string",
39379 "typetext" : "<string>"
39380 },
39381 "erasure-coding" : {
39382 "description" : "Create an erasure coded pool for RBD with an accompaning replicated pool for metadata storage. With EC, the common ceph options 'size', 'min_size' and 'crush_rule' parameters will be applied to the metadata pool.",
39383 "format" : {
39384 "device-class" : {
39385 "description" : "CRUSH device class. Will create an erasure coded pool plus a replicated pool for metadata.",
39386 "format_description" : "class",
39387 "optional" : 1,
39388 "type" : "string"
39389 },
39390 "failure-domain" : {
39391 "default" : "host",
39392 "description" : "CRUSH failure domain. Default is 'host'. Will create an erasure coded pool plus a replicated pool for metadata.",
39393 "format_description" : "domain",
39394 "optional" : 1,
39395 "type" : "string"
39396 },
39397 "k" : {
39398 "description" : "Number of data chunks. Will create an erasure coded pool plus a replicated pool for metadata.",
39399 "minimum" : 2,
39400 "type" : "integer"
39401 },
39402 "m" : {
39403 "description" : "Number of coding chunks. Will create an erasure coded pool plus a replicated pool for metadata.",
39404 "minimum" : 1,
39405 "type" : "integer"
39406 },
39407 "profile" : {
39408 "description" : "Override the erasure code (EC) profile to use. Will create an erasure coded pool plus a replicated pool for metadata.",
39409 "format_description" : "profile",
39410 "optional" : 1,
39411 "type" : "string"
39412 }
39413 },
39414 "optional" : 1,
39415 "type" : "string",
39416 "typetext" : "k=<integer> ,m=<integer> [,device-class=<class>] [,failure-domain=<domain>] [,profile=<profile>]"
39417 },
39418 "min_size" : {
39419 "default" : 2,
39420 "description" : "Minimum number of replicas per object",
39421 "maximum" : 7,
39422 "minimum" : 1,
39423 "optional" : 1,
39424 "title" : "Min Size",
39425 "type" : "integer",
39426 "typetext" : "<integer> (1 - 7)"
39427 },
39428 "name" : {
39429 "description" : "The name of the pool. It must be unique.",
39430 "title" : "Name",
39431 "type" : "string",
39432 "typetext" : "<string>"
39433 },
39434 "node" : {
39435 "description" : "The cluster node name.",
39436 "format" : "pve-node",
39437 "type" : "string",
39438 "typetext" : "<string>"
39439 },
39440 "pg_autoscale_mode" : {
39441 "default" : "warn",
39442 "description" : "The automatic PG scaling mode of the pool.",
39443 "enum" : [
39444 "on",
39445 "off",
39446 "warn"
39447 ],
39448 "optional" : 1,
39449 "title" : "PG Autoscale Mode",
39450 "type" : "string"
39451 },
39452 "pg_num" : {
39453 "default" : 128,
39454 "description" : "Number of placement groups.",
39455 "maximum" : 32768,
39456 "minimum" : 1,
39457 "optional" : 1,
39458 "title" : "PG Num",
39459 "type" : "integer",
39460 "typetext" : "<integer> (1 - 32768)"
39461 },
39462 "pg_num_min" : {
39463 "description" : "Minimal number of placement groups.",
39464 "maximum" : 32768,
39465 "optional" : 1,
39466 "title" : "min. PG Num",
39467 "type" : "integer",
39468 "typetext" : "<integer> (-N - 32768)"
39469 },
39470 "size" : {
39471 "default" : 3,
39472 "description" : "Number of replicas per object",
39473 "maximum" : 7,
39474 "minimum" : 1,
39475 "optional" : 1,
39476 "title" : "Size",
39477 "type" : "integer",
39478 "typetext" : "<integer> (1 - 7)"
39479 },
39480 "target_size" : {
39481 "description" : "The estimated target size of the pool for the PG autoscaler.",
39482 "optional" : 1,
39483 "pattern" : "^(\\d+(\\.\\d+)?)([KMGT])?$",
39484 "title" : "PG Autoscale Target Size",
39485 "type" : "string"
39486 },
39487 "target_size_ratio" : {
39488 "description" : "The estimated target ratio of the pool for the PG autoscaler.",
39489 "optional" : 1,
39490 "title" : "PG Autoscale Target Ratio",
39491 "type" : "number",
39492 "typetext" : "<number>"
39493 }
39494 }
39495 },
39496 "permissions" : {
39497 "check" : [
39498 "perm",
39499 "/",
39500 [
39501 "Sys.Modify"
39502 ]
39503 ]
39504 },
39505 "protected" : 1,
39506 "proxyto" : "node",
39507 "returns" : {
39508 "type" : "string"
39509 }
39510 }
39511 },
39512 "leaf" : 0,
39513 "path" : "/nodes/{node}/ceph/pool",
39514 "text" : "pool"
39515 },
39516 {
39517 "info" : {
39518 "POST" : {
39519 "allowtoken" : 1,
39520 "description" : "Create initial ceph default configuration and setup symlinks.",
39521 "method" : "POST",
39522 "name" : "init",
39523 "parameters" : {
39524 "additionalProperties" : 0,
39525 "properties" : {
39526 "cluster-network" : {
39527 "description" : "Declare a separate cluster network, OSDs will routeheartbeat, object replication and recovery traffic over it",
39528 "format" : "CIDR",
39529 "maxLength" : 128,
39530 "optional" : 1,
39531 "requires" : "network",
39532 "type" : "string",
39533 "typetext" : "<string>"
39534 },
39535 "disable_cephx" : {
39536 "default" : 0,
39537 "description" : "Disable cephx authentication.\n\nWARNING: cephx is a security feature protecting against man-in-the-middle attacks. Only consider disabling cephx if your network is private!",
39538 "optional" : 1,
39539 "type" : "boolean",
39540 "typetext" : "<boolean>"
39541 },
39542 "min_size" : {
39543 "default" : 2,
39544 "description" : "Minimum number of available replicas per object to allow I/O",
39545 "maximum" : 7,
39546 "minimum" : 1,
39547 "optional" : 1,
39548 "type" : "integer",
39549 "typetext" : "<integer> (1 - 7)"
39550 },
39551 "network" : {
39552 "description" : "Use specific network for all ceph related traffic",
39553 "format" : "CIDR",
39554 "maxLength" : 128,
39555 "optional" : 1,
39556 "type" : "string",
39557 "typetext" : "<string>"
39558 },
39559 "node" : {
39560 "description" : "The cluster node name.",
39561 "format" : "pve-node",
39562 "type" : "string",
39563 "typetext" : "<string>"
39564 },
39565 "pg_bits" : {
39566 "default" : 6,
39567 "description" : "Placement group bits, used to specify the default number of placement groups.\n\nDepreacted. This setting was deprecated in recent Ceph versions.",
39568 "maximum" : 14,
39569 "minimum" : 6,
39570 "optional" : 1,
39571 "type" : "integer",
39572 "typetext" : "<integer> (6 - 14)"
39573 },
39574 "size" : {
39575 "default" : 3,
39576 "description" : "Targeted number of replicas per object",
39577 "maximum" : 7,
39578 "minimum" : 1,
39579 "optional" : 1,
39580 "type" : "integer",
39581 "typetext" : "<integer> (1 - 7)"
39582 }
39583 }
39584 },
39585 "permissions" : {
39586 "check" : [
39587 "perm",
39588 "/",
39589 [
39590 "Sys.Modify"
39591 ]
39592 ]
39593 },
39594 "protected" : 1,
39595 "proxyto" : "node",
39596 "returns" : {
39597 "type" : "null"
39598 }
39599 }
39600 },
39601 "leaf" : 1,
39602 "path" : "/nodes/{node}/ceph/init",
39603 "text" : "init"
39604 },
39605 {
39606 "info" : {
39607 "POST" : {
39608 "allowtoken" : 1,
39609 "description" : "Stop ceph services.",
39610 "method" : "POST",
39611 "name" : "stop",
39612 "parameters" : {
39613 "additionalProperties" : 0,
39614 "properties" : {
39615 "node" : {
39616 "description" : "The cluster node name.",
39617 "format" : "pve-node",
39618 "type" : "string",
39619 "typetext" : "<string>"
39620 },
39621 "service" : {
39622 "default" : "ceph.target",
39623 "description" : "Ceph service name.",
39624 "optional" : 1,
39625 "pattern" : "(ceph|mon|mds|osd|mgr)(\\.[a-zA-Z0-9]([a-zA-Z0-9\\-]*[a-zA-Z0-9])?)?",
39626 "type" : "string"
39627 }
39628 }
39629 },
39630 "permissions" : {
39631 "check" : [
39632 "perm",
39633 "/",
39634 [
39635 "Sys.Modify"
39636 ]
39637 ]
39638 },
39639 "protected" : 1,
39640 "proxyto" : "node",
39641 "returns" : {
39642 "type" : "string"
39643 }
39644 }
39645 },
39646 "leaf" : 1,
39647 "path" : "/nodes/{node}/ceph/stop",
39648 "text" : "stop"
39649 },
39650 {
39651 "info" : {
39652 "POST" : {
39653 "allowtoken" : 1,
39654 "description" : "Start ceph services.",
39655 "method" : "POST",
39656 "name" : "start",
39657 "parameters" : {
39658 "additionalProperties" : 0,
39659 "properties" : {
39660 "node" : {
39661 "description" : "The cluster node name.",
39662 "format" : "pve-node",
39663 "type" : "string",
39664 "typetext" : "<string>"
39665 },
39666 "service" : {
39667 "default" : "ceph.target",
39668 "description" : "Ceph service name.",
39669 "optional" : 1,
39670 "pattern" : "(ceph|mon|mds|osd|mgr)(\\.[a-zA-Z0-9]([a-zA-Z0-9\\-]*[a-zA-Z0-9])?)?",
39671 "type" : "string"
39672 }
39673 }
39674 },
39675 "permissions" : {
39676 "check" : [
39677 "perm",
39678 "/",
39679 [
39680 "Sys.Modify"
39681 ]
39682 ]
39683 },
39684 "protected" : 1,
39685 "proxyto" : "node",
39686 "returns" : {
39687 "type" : "string"
39688 }
39689 }
39690 },
39691 "leaf" : 1,
39692 "path" : "/nodes/{node}/ceph/start",
39693 "text" : "start"
39694 },
39695 {
39696 "info" : {
39697 "POST" : {
39698 "allowtoken" : 1,
39699 "description" : "Restart ceph services.",
39700 "method" : "POST",
39701 "name" : "restart",
39702 "parameters" : {
39703 "additionalProperties" : 0,
39704 "properties" : {
39705 "node" : {
39706 "description" : "The cluster node name.",
39707 "format" : "pve-node",
39708 "type" : "string",
39709 "typetext" : "<string>"
39710 },
39711 "service" : {
39712 "default" : "ceph.target",
39713 "description" : "Ceph service name.",
39714 "optional" : 1,
39715 "pattern" : "(mon|mds|osd|mgr)(\\.[a-zA-Z0-9]([a-zA-Z0-9\\-]*[a-zA-Z0-9])?)?",
39716 "type" : "string"
39717 }
39718 }
39719 },
39720 "permissions" : {
39721 "check" : [
39722 "perm",
39723 "/",
39724 [
39725 "Sys.Modify"
39726 ]
39727 ]
39728 },
39729 "protected" : 1,
39730 "proxyto" : "node",
39731 "returns" : {
39732 "type" : "string"
39733 }
39734 }
39735 },
39736 "leaf" : 1,
39737 "path" : "/nodes/{node}/ceph/restart",
39738 "text" : "restart"
39739 },
39740 {
39741 "info" : {
39742 "GET" : {
39743 "allowtoken" : 1,
39744 "description" : "Get ceph status.",
39745 "method" : "GET",
39746 "name" : "status",
39747 "parameters" : {
39748 "additionalProperties" : 0,
39749 "properties" : {
39750 "node" : {
39751 "description" : "The cluster node name.",
39752 "format" : "pve-node",
39753 "type" : "string",
39754 "typetext" : "<string>"
39755 }
39756 }
39757 },
39758 "permissions" : {
39759 "check" : [
39760 "perm",
39761 "/",
39762 [
39763 "Sys.Audit",
39764 "Datastore.Audit"
39765 ],
39766 "any",
39767 1
39768 ]
39769 },
39770 "protected" : 1,
39771 "proxyto" : "node",
39772 "returns" : {
39773 "type" : "object"
39774 }
39775 }
39776 },
39777 "leaf" : 1,
39778 "path" : "/nodes/{node}/ceph/status",
39779 "text" : "status"
39780 },
39781 {
39782 "info" : {
39783 "GET" : {
39784 "allowtoken" : 1,
39785 "description" : "Get OSD crush map",
39786 "method" : "GET",
39787 "name" : "crush",
39788 "parameters" : {
39789 "additionalProperties" : 0,
39790 "properties" : {
39791 "node" : {
39792 "description" : "The cluster node name.",
39793 "format" : "pve-node",
39794 "type" : "string",
39795 "typetext" : "<string>"
39796 }
39797 }
39798 },
39799 "permissions" : {
39800 "check" : [
39801 "perm",
39802 "/",
39803 [
39804 "Sys.Audit",
39805 "Datastore.Audit"
39806 ],
39807 "any",
39808 1
39809 ]
39810 },
39811 "protected" : 1,
39812 "proxyto" : "node",
39813 "returns" : {
39814 "type" : "string"
39815 }
39816 }
39817 },
39818 "leaf" : 1,
39819 "path" : "/nodes/{node}/ceph/crush",
39820 "text" : "crush"
39821 },
39822 {
39823 "info" : {
39824 "GET" : {
39825 "allowtoken" : 1,
39826 "description" : "Read ceph log",
39827 "method" : "GET",
39828 "name" : "log",
39829 "parameters" : {
39830 "additionalProperties" : 0,
39831 "properties" : {
39832 "limit" : {
39833 "minimum" : 0,
39834 "optional" : 1,
39835 "type" : "integer",
39836 "typetext" : "<integer> (0 - N)"
39837 },
39838 "node" : {
39839 "description" : "The cluster node name.",
39840 "format" : "pve-node",
39841 "type" : "string",
39842 "typetext" : "<string>"
39843 },
39844 "start" : {
39845 "minimum" : 0,
39846 "optional" : 1,
39847 "type" : "integer",
39848 "typetext" : "<integer> (0 - N)"
39849 }
39850 }
39851 },
39852 "permissions" : {
39853 "check" : [
39854 "perm",
39855 "/nodes/{node}",
39856 [
39857 "Sys.Syslog"
39858 ]
39859 ]
39860 },
39861 "protected" : 1,
39862 "proxyto" : "node",
39863 "returns" : {
39864 "items" : {
39865 "properties" : {
39866 "n" : {
39867 "description" : "Line number",
39868 "type" : "integer"
39869 },
39870 "t" : {
39871 "description" : "Line text",
39872 "type" : "string"
39873 }
39874 },
39875 "type" : "object"
39876 },
39877 "type" : "array"
39878 }
39879 }
39880 },
39881 "leaf" : 1,
39882 "path" : "/nodes/{node}/ceph/log",
39883 "text" : "log"
39884 },
39885 {
39886 "info" : {
39887 "GET" : {
39888 "allowtoken" : 1,
39889 "description" : "List ceph rules.",
39890 "method" : "GET",
39891 "name" : "rules",
39892 "parameters" : {
39893 "additionalProperties" : 0,
39894 "properties" : {
39895 "node" : {
39896 "description" : "The cluster node name.",
39897 "format" : "pve-node",
39898 "type" : "string",
39899 "typetext" : "<string>"
39900 }
39901 }
39902 },
39903 "permissions" : {
39904 "check" : [
39905 "perm",
39906 "/",
39907 [
39908 "Sys.Audit",
39909 "Datastore.Audit"
39910 ],
39911 "any",
39912 1
39913 ]
39914 },
39915 "protected" : 1,
39916 "proxyto" : "node",
39917 "returns" : {
39918 "items" : {
39919 "properties" : {
39920 "name" : {
39921 "description" : "Name of the CRUSH rule.",
39922 "type" : "string"
39923 }
39924 },
39925 "type" : "object"
39926 },
39927 "links" : [
39928 {
39929 "href" : "{name}",
39930 "rel" : "child"
39931 }
39932 ],
39933 "type" : "array"
39934 }
39935 }
39936 },
39937 "leaf" : 1,
39938 "path" : "/nodes/{node}/ceph/rules",
39939 "text" : "rules"
39940 },
39941 {
39942 "info" : {
39943 "GET" : {
39944 "allowtoken" : 1,
39945 "description" : "Heuristical check if it is safe to perform an action.",
39946 "method" : "GET",
39947 "name" : "cmd_safety",
39948 "parameters" : {
39949 "additionalProperties" : 0,
39950 "properties" : {
39951 "action" : {
39952 "description" : "Action to check",
39953 "enum" : [
39954 "stop",
39955 "destroy"
39956 ],
39957 "type" : "string"
39958 },
39959 "id" : {
39960 "description" : "ID of the service",
39961 "type" : "string",
39962 "typetext" : "<string>"
39963 },
39964 "node" : {
39965 "description" : "The cluster node name.",
39966 "format" : "pve-node",
39967 "type" : "string",
39968 "typetext" : "<string>"
39969 },
39970 "service" : {
39971 "description" : "Service type",
39972 "enum" : [
39973 "osd",
39974 "mon",
39975 "mds"
39976 ],
39977 "type" : "string"
39978 }
39979 }
39980 },
39981 "permissions" : {
39982 "check" : [
39983 "perm",
39984 "/",
39985 [
39986 "Sys.Audit"
39987 ]
39988 ]
39989 },
39990 "protected" : 1,
39991 "proxyto" : "node",
39992 "returns" : {
39993 "properties" : {
39994 "safe" : {
39995 "description" : "If it is safe to run the command.",
39996 "type" : "boolean"
39997 },
39998 "status" : {
39999 "description" : "Status message given by Ceph.",
40000 "optional" : 1,
40001 "type" : "string"
40002 }
40003 },
40004 "type" : "object"
40005 }
40006 }
40007 },
40008 "leaf" : 1,
40009 "path" : "/nodes/{node}/ceph/cmd-safety",
40010 "text" : "cmd-safety"
40011 }
40012 ],
40013 "info" : {
40014 "GET" : {
40015 "allowtoken" : 1,
40016 "description" : "Directory index.",
40017 "method" : "GET",
40018 "name" : "index",
40019 "parameters" : {
40020 "additionalProperties" : 0,
40021 "properties" : {
40022 "node" : {
40023 "description" : "The cluster node name.",
40024 "format" : "pve-node",
40025 "type" : "string",
40026 "typetext" : "<string>"
40027 }
40028 }
40029 },
40030 "permissions" : {
40031 "check" : [
40032 "perm",
40033 "/",
40034 [
40035 "Sys.Audit",
40036 "Datastore.Audit"
40037 ],
40038 "any",
40039 1
40040 ]
40041 },
40042 "returns" : {
40043 "items" : {
40044 "properties" : {},
40045 "type" : "object"
40046 },
40047 "links" : [
40048 {
40049 "href" : "{name}",
40050 "rel" : "child"
40051 }
40052 ],
40053 "type" : "array"
40054 }
40055 }
40056 },
40057 "leaf" : 0,
40058 "path" : "/nodes/{node}/ceph",
40059 "text" : "ceph"
40060 },
40061 {
40062 "children" : [
40063 {
40064 "info" : {
40065 "GET" : {
40066 "allowtoken" : 1,
40067 "description" : "Get the currently configured vzdump defaults.",
40068 "method" : "GET",
40069 "name" : "defaults",
40070 "parameters" : {
40071 "additionalProperties" : 0,
40072 "properties" : {
40073 "node" : {
40074 "description" : "The cluster node name.",
40075 "format" : "pve-node",
40076 "type" : "string",
40077 "typetext" : "<string>"
40078 },
40079 "storage" : {
40080 "description" : "The storage identifier.",
40081 "format" : "pve-storage-id",
40082 "format_description" : "storage ID",
40083 "optional" : 1,
40084 "type" : "string",
40085 "typetext" : "<storage ID>"
40086 }
40087 }
40088 },
40089 "permissions" : {
40090 "description" : "The user needs 'Datastore.Audit' or 'Datastore.AllocateSpace' permissions for the specified storage (or default storage if none specified). Some properties are only returned when the user has 'Sys.Audit' permissions for the node.",
40091 "user" : "all"
40092 },
40093 "proxyto" : "node",
40094 "returns" : {
40095 "additionalProperties" : 0,
40096 "properties" : {
40097 "all" : {
40098 "default" : 0,
40099 "description" : "Backup all known guest systems on this host.",
40100 "optional" : 1,
40101 "type" : "boolean"
40102 },
40103 "bwlimit" : {
40104 "default" : 0,
40105 "description" : "Limit I/O bandwidth (in KiB/s).",
40106 "minimum" : 0,
40107 "optional" : 1,
40108 "type" : "integer"
40109 },
40110 "compress" : {
40111 "default" : "0",
40112 "description" : "Compress dump file.",
40113 "enum" : [
40114 "0",
40115 "1",
40116 "gzip",
40117 "lzo",
40118 "zstd"
40119 ],
40120 "optional" : 1,
40121 "type" : "string"
40122 },
40123 "dumpdir" : {
40124 "description" : "Store resulting files to specified directory.",
40125 "optional" : 1,
40126 "type" : "string"
40127 },
40128 "exclude" : {
40129 "description" : "Exclude specified guest systems (assumes --all)",
40130 "format" : "pve-vmid-list",
40131 "optional" : 1,
40132 "type" : "string"
40133 },
40134 "exclude-path" : {
40135 "description" : "Exclude certain files/directories (shell globs). Paths starting with '/' are anchored to the container's root, other paths match relative to each subdirectory.",
40136 "items" : {
40137 "type" : "string"
40138 },
40139 "optional" : 1,
40140 "type" : "array"
40141 },
40142 "fleecing" : {
40143 "description" : "Options for backup fleecing (VM only).",
40144 "format" : "backup-fleecing",
40145 "optional" : 1,
40146 "type" : "string"
40147 },
40148 "ionice" : {
40149 "default" : 7,
40150 "description" : "Set IO priority when using the BFQ scheduler. For snapshot and suspend mode backups of VMs, this only affects the compressor. A value of 8 means the idle priority is used, otherwise the best-effort priority is used with the specified value.",
40151 "maximum" : 8,
40152 "minimum" : 0,
40153 "optional" : 1,
40154 "type" : "integer"
40155 },
40156 "lockwait" : {
40157 "default" : 180,
40158 "description" : "Maximal time to wait for the global lock (minutes).",
40159 "minimum" : 0,
40160 "optional" : 1,
40161 "type" : "integer"
40162 },
40163 "mailnotification" : {
40164 "default" : "always",
40165 "description" : "Deprecated: use notification targets/matchers instead. Specify when to send a notification mail",
40166 "enum" : [
40167 "always",
40168 "failure"
40169 ],
40170 "optional" : 1,
40171 "type" : "string"
40172 },
40173 "mailto" : {
40174 "description" : "Deprecated: Use notification targets/matchers instead. Comma-separated list of email addresses or users that should receive email notifications.",
40175 "format" : "email-or-username-list",
40176 "optional" : 1,
40177 "type" : "string"
40178 },
40179 "maxfiles" : {
40180 "description" : "Deprecated: use 'prune-backups' instead. Maximal number of backup files per guest system.",
40181 "minimum" : 1,
40182 "optional" : 1,
40183 "type" : "integer"
40184 },
40185 "mode" : {
40186 "default" : "snapshot",
40187 "description" : "Backup mode.",
40188 "enum" : [
40189 "snapshot",
40190 "suspend",
40191 "stop"
40192 ],
40193 "optional" : 1,
40194 "type" : "string"
40195 },
40196 "node" : {
40197 "description" : "Only run if executed on this node.",
40198 "format" : "pve-node",
40199 "optional" : 1,
40200 "type" : "string"
40201 },
40202 "notes-template" : {
40203 "description" : "Template string for generating notes for the backup(s). It can contain variables which will be replaced by their values. Currently supported are {{cluster}}, {{guestname}}, {{node}}, and {{vmid}}, but more might be added in the future. Needs to be a single line, newline and backslash need to be escaped as '\\n' and '\\\\' respectively.",
40204 "maxLength" : 1024,
40205 "optional" : 1,
40206 "requires" : "storage",
40207 "type" : "string"
40208 },
40209 "notification-mode" : {
40210 "default" : "auto",
40211 "description" : "Determine which notification system to use. If set to 'legacy-sendmail', vzdump will consider the mailto/mailnotification parameters and send emails to the specified address(es) via the 'sendmail' command. If set to 'notification-system', a notification will be sent via PVE's notification system, and the mailto and mailnotification will be ignored. If set to 'auto' (default setting), an email will be sent if mailto is set, and the notification system will be used if not.",
40212 "enum" : [
40213 "auto",
40214 "legacy-sendmail",
40215 "notification-system"
40216 ],
40217 "optional" : 1,
40218 "type" : "string"
40219 },
40220 "notification-policy" : {
40221 "default" : "always",
40222 "description" : "Deprecated: Do not use",
40223 "enum" : [
40224 "always",
40225 "failure",
40226 "never"
40227 ],
40228 "optional" : 1,
40229 "type" : "string"
40230 },
40231 "notification-target" : {
40232 "description" : "Deprecated: Do not use",
40233 "format" : "pve-configid",
40234 "optional" : 1,
40235 "type" : "string"
40236 },
40237 "performance" : {
40238 "description" : "Other performance-related settings.",
40239 "format" : "backup-performance",
40240 "optional" : 1,
40241 "type" : "string"
40242 },
40243 "pigz" : {
40244 "default" : 0,
40245 "description" : "Use pigz instead of gzip when N>0. N=1 uses half of cores, N>1 uses N as thread count.",
40246 "optional" : 1,
40247 "type" : "integer"
40248 },
40249 "pool" : {
40250 "description" : "Backup all known guest systems included in the specified pool.",
40251 "optional" : 1,
40252 "type" : "string"
40253 },
40254 "protected" : {
40255 "description" : "If true, mark backup(s) as protected.",
40256 "optional" : 1,
40257 "requires" : "storage",
40258 "type" : "boolean"
40259 },
40260 "prune-backups" : {
40261 "default" : "keep-all=1",
40262 "description" : "Use these retention options instead of those from the storage configuration.",
40263 "format" : "prune-backups",
40264 "optional" : 1,
40265 "type" : "string"
40266 },
40267 "quiet" : {
40268 "default" : 0,
40269 "description" : "Be quiet.",
40270 "optional" : 1,
40271 "type" : "boolean"
40272 },
40273 "remove" : {
40274 "default" : 1,
40275 "description" : "Prune older backups according to 'prune-backups'.",
40276 "optional" : 1,
40277 "type" : "boolean"
40278 },
40279 "script" : {
40280 "description" : "Use specified hook script.",
40281 "optional" : 1,
40282 "type" : "string"
40283 },
40284 "stdexcludes" : {
40285 "default" : 1,
40286 "description" : "Exclude temporary files and logs.",
40287 "optional" : 1,
40288 "type" : "boolean"
40289 },
40290 "stop" : {
40291 "default" : 0,
40292 "description" : "Stop running backup jobs on this host.",
40293 "optional" : 1,
40294 "type" : "boolean"
40295 },
40296 "stopwait" : {
40297 "default" : 10,
40298 "description" : "Maximal time to wait until a guest system is stopped (minutes).",
40299 "minimum" : 0,
40300 "optional" : 1,
40301 "type" : "integer"
40302 },
40303 "storage" : {
40304 "description" : "Store resulting file to this storage.",
40305 "format" : "pve-storage-id",
40306 "format_description" : "storage ID",
40307 "optional" : 1,
40308 "type" : "string"
40309 },
40310 "tmpdir" : {
40311 "description" : "Store temporary files to specified directory.",
40312 "optional" : 1,
40313 "type" : "string"
40314 },
40315 "vmid" : {
40316 "description" : "The ID of the guest system you want to backup.",
40317 "format" : "pve-vmid-list",
40318 "optional" : 1,
40319 "type" : "string"
40320 },
40321 "zstd" : {
40322 "default" : 1,
40323 "description" : "Zstd threads. N=0 uses half of the available cores, if N is set to a value bigger than 0, N is used as thread count.",
40324 "optional" : 1,
40325 "type" : "integer"
40326 }
40327 },
40328 "type" : "object"
40329 }
40330 }
40331 },
40332 "leaf" : 1,
40333 "path" : "/nodes/{node}/vzdump/defaults",
40334 "text" : "defaults"
40335 },
40336 {
40337 "info" : {
40338 "GET" : {
40339 "allowtoken" : 1,
40340 "description" : "Extract configuration from vzdump backup archive.",
40341 "method" : "GET",
40342 "name" : "extractconfig",
40343 "parameters" : {
40344 "additionalProperties" : 0,
40345 "properties" : {
40346 "node" : {
40347 "description" : "The cluster node name.",
40348 "format" : "pve-node",
40349 "type" : "string",
40350 "typetext" : "<string>"
40351 },
40352 "volume" : {
40353 "description" : "Volume identifier",
40354 "type" : "string",
40355 "typetext" : "<string>"
40356 }
40357 }
40358 },
40359 "permissions" : {
40360 "description" : "The user needs 'VM.Backup' permissions on the backed up guest ID, and 'Datastore.AllocateSpace' on the backup storage.",
40361 "user" : "all"
40362 },
40363 "protected" : 1,
40364 "proxyto" : "node",
40365 "returns" : {
40366 "type" : "string"
40367 }
40368 }
40369 },
40370 "leaf" : 1,
40371 "path" : "/nodes/{node}/vzdump/extractconfig",
40372 "text" : "extractconfig"
40373 }
40374 ],
40375 "info" : {
40376 "POST" : {
40377 "allowtoken" : 1,
40378 "description" : "Create backup.",
40379 "method" : "POST",
40380 "name" : "vzdump",
40381 "parameters" : {
40382 "additionalProperties" : 0,
40383 "properties" : {
40384 "all" : {
40385 "default" : 0,
40386 "description" : "Backup all known guest systems on this host.",
40387 "optional" : 1,
40388 "type" : "boolean",
40389 "typetext" : "<boolean>"
40390 },
40391 "bwlimit" : {
40392 "default" : 0,
40393 "description" : "Limit I/O bandwidth (in KiB/s).",
40394 "minimum" : 0,
40395 "optional" : 1,
40396 "type" : "integer",
40397 "typetext" : "<integer> (0 - N)"
40398 },
40399 "compress" : {
40400 "default" : "0",
40401 "description" : "Compress dump file.",
40402 "enum" : [
40403 "0",
40404 "1",
40405 "gzip",
40406 "lzo",
40407 "zstd"
40408 ],
40409 "optional" : 1,
40410 "type" : "string"
40411 },
40412 "dumpdir" : {
40413 "description" : "Store resulting files to specified directory.",
40414 "optional" : 1,
40415 "type" : "string",
40416 "typetext" : "<string>"
40417 },
40418 "exclude" : {
40419 "description" : "Exclude specified guest systems (assumes --all)",
40420 "format" : "pve-vmid-list",
40421 "optional" : 1,
40422 "type" : "string",
40423 "typetext" : "<string>"
40424 },
40425 "exclude-path" : {
40426 "description" : "Exclude certain files/directories (shell globs). Paths starting with '/' are anchored to the container's root, other paths match relative to each subdirectory.",
40427 "items" : {
40428 "type" : "string"
40429 },
40430 "optional" : 1,
40431 "type" : "array",
40432 "typetext" : "<array>"
40433 },
40434 "fleecing" : {
40435 "description" : "Options for backup fleecing (VM only).",
40436 "format" : "backup-fleecing",
40437 "optional" : 1,
40438 "type" : "string",
40439 "typetext" : "[[enabled=]<1|0>] [,storage=<storage ID>]"
40440 },
40441 "ionice" : {
40442 "default" : 7,
40443 "description" : "Set IO priority when using the BFQ scheduler. For snapshot and suspend mode backups of VMs, this only affects the compressor. A value of 8 means the idle priority is used, otherwise the best-effort priority is used with the specified value.",
40444 "maximum" : 8,
40445 "minimum" : 0,
40446 "optional" : 1,
40447 "type" : "integer",
40448 "typetext" : "<integer> (0 - 8)"
40449 },
40450 "lockwait" : {
40451 "default" : 180,
40452 "description" : "Maximal time to wait for the global lock (minutes).",
40453 "minimum" : 0,
40454 "optional" : 1,
40455 "type" : "integer",
40456 "typetext" : "<integer> (0 - N)"
40457 },
40458 "mailnotification" : {
40459 "default" : "always",
40460 "description" : "Deprecated: use notification targets/matchers instead. Specify when to send a notification mail",
40461 "enum" : [
40462 "always",
40463 "failure"
40464 ],
40465 "optional" : 1,
40466 "type" : "string"
40467 },
40468 "mailto" : {
40469 "description" : "Deprecated: Use notification targets/matchers instead. Comma-separated list of email addresses or users that should receive email notifications.",
40470 "format" : "email-or-username-list",
40471 "optional" : 1,
40472 "type" : "string",
40473 "typetext" : "<string>"
40474 },
40475 "maxfiles" : {
40476 "description" : "Deprecated: use 'prune-backups' instead. Maximal number of backup files per guest system.",
40477 "minimum" : 1,
40478 "optional" : 1,
40479 "type" : "integer",
40480 "typetext" : "<integer> (1 - N)"
40481 },
40482 "mode" : {
40483 "default" : "snapshot",
40484 "description" : "Backup mode.",
40485 "enum" : [
40486 "snapshot",
40487 "suspend",
40488 "stop"
40489 ],
40490 "optional" : 1,
40491 "type" : "string"
40492 },
40493 "node" : {
40494 "description" : "Only run if executed on this node.",
40495 "format" : "pve-node",
40496 "optional" : 1,
40497 "type" : "string",
40498 "typetext" : "<string>"
40499 },
40500 "notes-template" : {
40501 "description" : "Template string for generating notes for the backup(s). It can contain variables which will be replaced by their values. Currently supported are {{cluster}}, {{guestname}}, {{node}}, and {{vmid}}, but more might be added in the future. Needs to be a single line, newline and backslash need to be escaped as '\\n' and '\\\\' respectively.",
40502 "maxLength" : 1024,
40503 "optional" : 1,
40504 "requires" : "storage",
40505 "type" : "string",
40506 "typetext" : "<string>"
40507 },
40508 "notification-mode" : {
40509 "default" : "auto",
40510 "description" : "Determine which notification system to use. If set to 'legacy-sendmail', vzdump will consider the mailto/mailnotification parameters and send emails to the specified address(es) via the 'sendmail' command. If set to 'notification-system', a notification will be sent via PVE's notification system, and the mailto and mailnotification will be ignored. If set to 'auto' (default setting), an email will be sent if mailto is set, and the notification system will be used if not.",
40511 "enum" : [
40512 "auto",
40513 "legacy-sendmail",
40514 "notification-system"
40515 ],
40516 "optional" : 1,
40517 "type" : "string"
40518 },
40519 "notification-policy" : {
40520 "default" : "always",
40521 "description" : "Deprecated: Do not use",
40522 "enum" : [
40523 "always",
40524 "failure",
40525 "never"
40526 ],
40527 "optional" : 1,
40528 "type" : "string"
40529 },
40530 "notification-target" : {
40531 "description" : "Deprecated: Do not use",
40532 "format" : "pve-configid",
40533 "optional" : 1,
40534 "type" : "string",
40535 "typetext" : "<string>"
40536 },
40537 "performance" : {
40538 "description" : "Other performance-related settings.",
40539 "format" : "backup-performance",
40540 "optional" : 1,
40541 "type" : "string",
40542 "typetext" : "[max-workers=<integer>] [,pbs-entries-max=<integer>]"
40543 },
40544 "pigz" : {
40545 "default" : 0,
40546 "description" : "Use pigz instead of gzip when N>0. N=1 uses half of cores, N>1 uses N as thread count.",
40547 "optional" : 1,
40548 "type" : "integer",
40549 "typetext" : "<integer>"
40550 },
40551 "pool" : {
40552 "description" : "Backup all known guest systems included in the specified pool.",
40553 "optional" : 1,
40554 "type" : "string",
40555 "typetext" : "<string>"
40556 },
40557 "protected" : {
40558 "description" : "If true, mark backup(s) as protected.",
40559 "optional" : 1,
40560 "requires" : "storage",
40561 "type" : "boolean",
40562 "typetext" : "<boolean>"
40563 },
40564 "prune-backups" : {
40565 "default" : "keep-all=1",
40566 "description" : "Use these retention options instead of those from the storage configuration.",
40567 "format" : "prune-backups",
40568 "optional" : 1,
40569 "type" : "string",
40570 "typetext" : "[keep-all=<1|0>] [,keep-daily=<N>] [,keep-hourly=<N>] [,keep-last=<N>] [,keep-monthly=<N>] [,keep-weekly=<N>] [,keep-yearly=<N>]"
40571 },
40572 "quiet" : {
40573 "default" : 0,
40574 "description" : "Be quiet.",
40575 "optional" : 1,
40576 "type" : "boolean",
40577 "typetext" : "<boolean>"
40578 },
40579 "remove" : {
40580 "default" : 1,
40581 "description" : "Prune older backups according to 'prune-backups'.",
40582 "optional" : 1,
40583 "type" : "boolean",
40584 "typetext" : "<boolean>"
40585 },
40586 "script" : {
40587 "description" : "Use specified hook script.",
40588 "optional" : 1,
40589 "type" : "string",
40590 "typetext" : "<string>"
40591 },
40592 "stdexcludes" : {
40593 "default" : 1,
40594 "description" : "Exclude temporary files and logs.",
40595 "optional" : 1,
40596 "type" : "boolean",
40597 "typetext" : "<boolean>"
40598 },
40599 "stdout" : {
40600 "description" : "Write tar to stdout, not to a file.",
40601 "optional" : 1,
40602 "type" : "boolean",
40603 "typetext" : "<boolean>"
40604 },
40605 "stop" : {
40606 "default" : 0,
40607 "description" : "Stop running backup jobs on this host.",
40608 "optional" : 1,
40609 "type" : "boolean",
40610 "typetext" : "<boolean>"
40611 },
40612 "stopwait" : {
40613 "default" : 10,
40614 "description" : "Maximal time to wait until a guest system is stopped (minutes).",
40615 "minimum" : 0,
40616 "optional" : 1,
40617 "type" : "integer",
40618 "typetext" : "<integer> (0 - N)"
40619 },
40620 "storage" : {
40621 "description" : "Store resulting file to this storage.",
40622 "format" : "pve-storage-id",
40623 "format_description" : "storage ID",
40624 "optional" : 1,
40625 "type" : "string",
40626 "typetext" : "<storage ID>"
40627 },
40628 "tmpdir" : {
40629 "description" : "Store temporary files to specified directory.",
40630 "optional" : 1,
40631 "type" : "string",
40632 "typetext" : "<string>"
40633 },
40634 "vmid" : {
40635 "description" : "The ID of the guest system you want to backup.",
40636 "format" : "pve-vmid-list",
40637 "optional" : 1,
40638 "type" : "string",
40639 "typetext" : "<string>"
40640 },
40641 "zstd" : {
40642 "default" : 1,
40643 "description" : "Zstd threads. N=0 uses half of the available cores, if N is set to a value bigger than 0, N is used as thread count.",
40644 "optional" : 1,
40645 "type" : "integer",
40646 "typetext" : "<integer>"
40647 }
40648 }
40649 },
40650 "permissions" : {
40651 "description" : "The user needs 'VM.Backup' permissions on any VM, and 'Datastore.AllocateSpace' on the backup storage (and fleecing storage when fleecing is used). The 'tmpdir', 'dumpdir' and 'script' parameters are restricted to the 'root@pam' user. The 'maxfiles' and 'prune-backups' settings require 'Datastore.Allocate' on the backup storage. The 'bwlimit', 'performance' and 'ionice' parameters require 'Sys.Modify' on '/'.",
40652 "user" : "all"
40653 },
40654 "protected" : 1,
40655 "proxyto" : "node",
40656 "returns" : {
40657 "type" : "string"
40658 }
40659 }
40660 },
40661 "leaf" : 0,
40662 "path" : "/nodes/{node}/vzdump",
40663 "text" : "vzdump"
40664 },
40665 {
40666 "children" : [
40667 {
40668 "children" : [
40669 {
40670 "info" : {
40671 "GET" : {
40672 "allowtoken" : 1,
40673 "description" : "Read service properties",
40674 "method" : "GET",
40675 "name" : "service_state",
40676 "parameters" : {
40677 "additionalProperties" : 0,
40678 "properties" : {
40679 "node" : {
40680 "description" : "The cluster node name.",
40681 "format" : "pve-node",
40682 "type" : "string",
40683 "typetext" : "<string>"
40684 },
40685 "service" : {
40686 "description" : "Service ID",
40687 "enum" : [
40688 "chrony",
40689 "corosync",
40690 "cron",
40691 "ksmtuned",
40692 "postfix",
40693 "pve-cluster",
40694 "pve-firewall",
40695 "pve-ha-crm",
40696 "pve-ha-lrm",
40697 "pvedaemon",
40698 "pvefw-logger",
40699 "pveproxy",
40700 "pvescheduler",
40701 "pvestatd",
40702 "spiceproxy",
40703 "sshd",
40704 "syslog",
40705 "systemd-journald",
40706 "systemd-timesyncd"
40707 ],
40708 "type" : "string"
40709 }
40710 }
40711 },
40712 "permissions" : {
40713 "check" : [
40714 "perm",
40715 "/nodes/{node}",
40716 [
40717 "Sys.Audit"
40718 ]
40719 ]
40720 },
40721 "protected" : 1,
40722 "proxyto" : "node",
40723 "returns" : {
40724 "type" : "object"
40725 }
40726 }
40727 },
40728 "leaf" : 1,
40729 "path" : "/nodes/{node}/services/{service}/state",
40730 "text" : "state"
40731 },
40732 {
40733 "info" : {
40734 "POST" : {
40735 "allowtoken" : 1,
40736 "description" : "Start service.",
40737 "method" : "POST",
40738 "name" : "service_start",
40739 "parameters" : {
40740 "additionalProperties" : 0,
40741 "properties" : {
40742 "node" : {
40743 "description" : "The cluster node name.",
40744 "format" : "pve-node",
40745 "type" : "string",
40746 "typetext" : "<string>"
40747 },
40748 "service" : {
40749 "description" : "Service ID",
40750 "enum" : [
40751 "chrony",
40752 "corosync",
40753 "cron",
40754 "ksmtuned",
40755 "postfix",
40756 "pve-cluster",
40757 "pve-firewall",
40758 "pve-ha-crm",
40759 "pve-ha-lrm",
40760 "pvedaemon",
40761 "pvefw-logger",
40762 "pveproxy",
40763 "pvescheduler",
40764 "pvestatd",
40765 "spiceproxy",
40766 "sshd",
40767 "syslog",
40768 "systemd-journald",
40769 "systemd-timesyncd"
40770 ],
40771 "type" : "string"
40772 }
40773 }
40774 },
40775 "permissions" : {
40776 "check" : [
40777 "perm",
40778 "/nodes/{node}",
40779 [
40780 "Sys.Modify"
40781 ]
40782 ]
40783 },
40784 "protected" : 1,
40785 "proxyto" : "node",
40786 "returns" : {
40787 "type" : "string"
40788 }
40789 }
40790 },
40791 "leaf" : 1,
40792 "path" : "/nodes/{node}/services/{service}/start",
40793 "text" : "start"
40794 },
40795 {
40796 "info" : {
40797 "POST" : {
40798 "allowtoken" : 1,
40799 "description" : "Stop service.",
40800 "method" : "POST",
40801 "name" : "service_stop",
40802 "parameters" : {
40803 "additionalProperties" : 0,
40804 "properties" : {
40805 "node" : {
40806 "description" : "The cluster node name.",
40807 "format" : "pve-node",
40808 "type" : "string",
40809 "typetext" : "<string>"
40810 },
40811 "service" : {
40812 "description" : "Service ID",
40813 "enum" : [
40814 "chrony",
40815 "corosync",
40816 "cron",
40817 "ksmtuned",
40818 "postfix",
40819 "pve-cluster",
40820 "pve-firewall",
40821 "pve-ha-crm",
40822 "pve-ha-lrm",
40823 "pvedaemon",
40824 "pvefw-logger",
40825 "pveproxy",
40826 "pvescheduler",
40827 "pvestatd",
40828 "spiceproxy",
40829 "sshd",
40830 "syslog",
40831 "systemd-journald",
40832 "systemd-timesyncd"
40833 ],
40834 "type" : "string"
40835 }
40836 }
40837 },
40838 "permissions" : {
40839 "check" : [
40840 "perm",
40841 "/nodes/{node}",
40842 [
40843 "Sys.Modify"
40844 ]
40845 ]
40846 },
40847 "protected" : 1,
40848 "proxyto" : "node",
40849 "returns" : {
40850 "type" : "string"
40851 }
40852 }
40853 },
40854 "leaf" : 1,
40855 "path" : "/nodes/{node}/services/{service}/stop",
40856 "text" : "stop"
40857 },
40858 {
40859 "info" : {
40860 "POST" : {
40861 "allowtoken" : 1,
40862 "description" : "Hard restart service. Use reload if you want to reduce interruptions.",
40863 "method" : "POST",
40864 "name" : "service_restart",
40865 "parameters" : {
40866 "additionalProperties" : 0,
40867 "properties" : {
40868 "node" : {
40869 "description" : "The cluster node name.",
40870 "format" : "pve-node",
40871 "type" : "string",
40872 "typetext" : "<string>"
40873 },
40874 "service" : {
40875 "description" : "Service ID",
40876 "enum" : [
40877 "chrony",
40878 "corosync",
40879 "cron",
40880 "ksmtuned",
40881 "postfix",
40882 "pve-cluster",
40883 "pve-firewall",
40884 "pve-ha-crm",
40885 "pve-ha-lrm",
40886 "pvedaemon",
40887 "pvefw-logger",
40888 "pveproxy",
40889 "pvescheduler",
40890 "pvestatd",
40891 "spiceproxy",
40892 "sshd",
40893 "syslog",
40894 "systemd-journald",
40895 "systemd-timesyncd"
40896 ],
40897 "type" : "string"
40898 }
40899 }
40900 },
40901 "permissions" : {
40902 "check" : [
40903 "perm",
40904 "/nodes/{node}",
40905 [
40906 "Sys.Modify"
40907 ]
40908 ]
40909 },
40910 "protected" : 1,
40911 "proxyto" : "node",
40912 "returns" : {
40913 "type" : "string"
40914 }
40915 }
40916 },
40917 "leaf" : 1,
40918 "path" : "/nodes/{node}/services/{service}/restart",
40919 "text" : "restart"
40920 },
40921 {
40922 "info" : {
40923 "POST" : {
40924 "allowtoken" : 1,
40925 "description" : "Reload service. Falls back to restart if service cannot be reloaded.",
40926 "method" : "POST",
40927 "name" : "service_reload",
40928 "parameters" : {
40929 "additionalProperties" : 0,
40930 "properties" : {
40931 "node" : {
40932 "description" : "The cluster node name.",
40933 "format" : "pve-node",
40934 "type" : "string",
40935 "typetext" : "<string>"
40936 },
40937 "service" : {
40938 "description" : "Service ID",
40939 "enum" : [
40940 "chrony",
40941 "corosync",
40942 "cron",
40943 "ksmtuned",
40944 "postfix",
40945 "pve-cluster",
40946 "pve-firewall",
40947 "pve-ha-crm",
40948 "pve-ha-lrm",
40949 "pvedaemon",
40950 "pvefw-logger",
40951 "pveproxy",
40952 "pvescheduler",
40953 "pvestatd",
40954 "spiceproxy",
40955 "sshd",
40956 "syslog",
40957 "systemd-journald",
40958 "systemd-timesyncd"
40959 ],
40960 "type" : "string"
40961 }
40962 }
40963 },
40964 "permissions" : {
40965 "check" : [
40966 "perm",
40967 "/nodes/{node}",
40968 [
40969 "Sys.Modify"
40970 ]
40971 ]
40972 },
40973 "protected" : 1,
40974 "proxyto" : "node",
40975 "returns" : {
40976 "type" : "string"
40977 }
40978 }
40979 },
40980 "leaf" : 1,
40981 "path" : "/nodes/{node}/services/{service}/reload",
40982 "text" : "reload"
40983 }
40984 ],
40985 "info" : {
40986 "GET" : {
40987 "allowtoken" : 1,
40988 "description" : "Directory index",
40989 "method" : "GET",
40990 "name" : "srvcmdidx",
40991 "parameters" : {
40992 "additionalProperties" : 0,
40993 "properties" : {
40994 "node" : {
40995 "description" : "The cluster node name.",
40996 "format" : "pve-node",
40997 "type" : "string",
40998 "typetext" : "<string>"
40999 },
41000 "service" : {
41001 "description" : "Service ID",
41002 "enum" : [
41003 "chrony",
41004 "corosync",
41005 "cron",
41006 "ksmtuned",
41007 "postfix",
41008 "pve-cluster",
41009 "pve-firewall",
41010 "pve-ha-crm",
41011 "pve-ha-lrm",
41012 "pvedaemon",
41013 "pvefw-logger",
41014 "pveproxy",
41015 "pvescheduler",
41016 "pvestatd",
41017 "spiceproxy",
41018 "sshd",
41019 "syslog",
41020 "systemd-journald",
41021 "systemd-timesyncd"
41022 ],
41023 "type" : "string"
41024 }
41025 }
41026 },
41027 "permissions" : {
41028 "check" : [
41029 "perm",
41030 "/nodes/{node}",
41031 [
41032 "Sys.Audit"
41033 ]
41034 ]
41035 },
41036 "returns" : {
41037 "items" : {
41038 "properties" : {
41039 "subdir" : {
41040 "type" : "string"
41041 }
41042 },
41043 "type" : "object"
41044 },
41045 "links" : [
41046 {
41047 "href" : "{subdir}",
41048 "rel" : "child"
41049 }
41050 ],
41051 "type" : "array"
41052 }
41053 }
41054 },
41055 "leaf" : 0,
41056 "path" : "/nodes/{node}/services/{service}",
41057 "text" : "{service}"
41058 }
41059 ],
41060 "info" : {
41061 "GET" : {
41062 "allowtoken" : 1,
41063 "description" : "Service list.",
41064 "method" : "GET",
41065 "name" : "index",
41066 "parameters" : {
41067 "additionalProperties" : 0,
41068 "properties" : {
41069 "node" : {
41070 "description" : "The cluster node name.",
41071 "format" : "pve-node",
41072 "type" : "string",
41073 "typetext" : "<string>"
41074 }
41075 }
41076 },
41077 "permissions" : {
41078 "check" : [
41079 "perm",
41080 "/nodes/{node}",
41081 [
41082 "Sys.Audit"
41083 ]
41084 ]
41085 },
41086 "protected" : 1,
41087 "proxyto" : "node",
41088 "returns" : {
41089 "items" : {
41090 "properties" : {},
41091 "type" : "object"
41092 },
41093 "links" : [
41094 {
41095 "href" : "{service}",
41096 "rel" : "child"
41097 }
41098 ],
41099 "type" : "array"
41100 }
41101 }
41102 },
41103 "leaf" : 0,
41104 "path" : "/nodes/{node}/services",
41105 "text" : "services"
41106 },
41107 {
41108 "info" : {
41109 "DELETE" : {
41110 "allowtoken" : 1,
41111 "description" : "Delete subscription key of this node.",
41112 "method" : "DELETE",
41113 "name" : "delete",
41114 "parameters" : {
41115 "additionalProperties" : 0,
41116 "properties" : {
41117 "node" : {
41118 "description" : "The cluster node name.",
41119 "format" : "pve-node",
41120 "type" : "string",
41121 "typetext" : "<string>"
41122 }
41123 }
41124 },
41125 "permissions" : {
41126 "check" : [
41127 "perm",
41128 "/nodes/{node}",
41129 [
41130 "Sys.Modify"
41131 ]
41132 ]
41133 },
41134 "protected" : 1,
41135 "proxyto" : "node",
41136 "returns" : {
41137 "type" : "null"
41138 }
41139 },
41140 "GET" : {
41141 "allowtoken" : 1,
41142 "description" : "Read subscription info.",
41143 "method" : "GET",
41144 "name" : "get",
41145 "parameters" : {
41146 "additionalProperties" : 0,
41147 "properties" : {
41148 "node" : {
41149 "description" : "The cluster node name.",
41150 "format" : "pve-node",
41151 "type" : "string",
41152 "typetext" : "<string>"
41153 }
41154 }
41155 },
41156 "permissions" : {
41157 "user" : "all"
41158 },
41159 "proxyto" : "node",
41160 "returns" : {
41161 "type" : "object"
41162 }
41163 },
41164 "POST" : {
41165 "allowtoken" : 1,
41166 "description" : "Update subscription info.",
41167 "method" : "POST",
41168 "name" : "update",
41169 "parameters" : {
41170 "additionalProperties" : 0,
41171 "properties" : {
41172 "force" : {
41173 "default" : 0,
41174 "description" : "Always connect to server, even if local cache is still valid.",
41175 "optional" : 1,
41176 "type" : "boolean",
41177 "typetext" : "<boolean>"
41178 },
41179 "node" : {
41180 "description" : "The cluster node name.",
41181 "format" : "pve-node",
41182 "type" : "string",
41183 "typetext" : "<string>"
41184 }
41185 }
41186 },
41187 "permissions" : {
41188 "check" : [
41189 "perm",
41190 "/nodes/{node}",
41191 [
41192 "Sys.Modify"
41193 ]
41194 ]
41195 },
41196 "protected" : 1,
41197 "proxyto" : "node",
41198 "returns" : {
41199 "type" : "null"
41200 }
41201 },
41202 "PUT" : {
41203 "allowtoken" : 1,
41204 "description" : "Set subscription key.",
41205 "method" : "PUT",
41206 "name" : "set",
41207 "parameters" : {
41208 "additionalProperties" : 0,
41209 "properties" : {
41210 "key" : {
41211 "description" : "Proxmox VE subscription key",
41212 "maxLength" : 32,
41213 "pattern" : "\\s*pve([1248])([cbsp])-[0-9a-f]{10}\\s*",
41214 "type" : "string"
41215 },
41216 "node" : {
41217 "description" : "The cluster node name.",
41218 "format" : "pve-node",
41219 "type" : "string",
41220 "typetext" : "<string>"
41221 }
41222 }
41223 },
41224 "permissions" : {
41225 "check" : [
41226 "perm",
41227 "/nodes/{node}",
41228 [
41229 "Sys.Modify"
41230 ]
41231 ]
41232 },
41233 "protected" : 1,
41234 "proxyto" : "node",
41235 "returns" : {
41236 "type" : "null"
41237 }
41238 }
41239 },
41240 "leaf" : 1,
41241 "path" : "/nodes/{node}/subscription",
41242 "text" : "subscription"
41243 },
41244 {
41245 "children" : [
41246 {
41247 "info" : {
41248 "DELETE" : {
41249 "allowtoken" : 1,
41250 "description" : "Delete network device configuration",
41251 "method" : "DELETE",
41252 "name" : "delete_network",
41253 "parameters" : {
41254 "additionalProperties" : 0,
41255 "properties" : {
41256 "iface" : {
41257 "description" : "Network interface name.",
41258 "format" : "pve-iface",
41259 "maxLength" : 20,
41260 "minLength" : 2,
41261 "type" : "string",
41262 "typetext" : "<string>"
41263 },
41264 "node" : {
41265 "description" : "The cluster node name.",
41266 "format" : "pve-node",
41267 "type" : "string",
41268 "typetext" : "<string>"
41269 }
41270 }
41271 },
41272 "permissions" : {
41273 "check" : [
41274 "perm",
41275 "/nodes/{node}",
41276 [
41277 "Sys.Modify"
41278 ]
41279 ]
41280 },
41281 "protected" : 1,
41282 "proxyto" : "node",
41283 "returns" : {
41284 "type" : "null"
41285 }
41286 },
41287 "GET" : {
41288 "allowtoken" : 1,
41289 "description" : "Read network device configuration",
41290 "method" : "GET",
41291 "name" : "network_config",
41292 "parameters" : {
41293 "additionalProperties" : 0,
41294 "properties" : {
41295 "iface" : {
41296 "description" : "Network interface name.",
41297 "format" : "pve-iface",
41298 "maxLength" : 20,
41299 "minLength" : 2,
41300 "type" : "string",
41301 "typetext" : "<string>"
41302 },
41303 "node" : {
41304 "description" : "The cluster node name.",
41305 "format" : "pve-node",
41306 "type" : "string",
41307 "typetext" : "<string>"
41308 }
41309 }
41310 },
41311 "permissions" : {
41312 "check" : [
41313 "perm",
41314 "/nodes/{node}",
41315 [
41316 "Sys.Audit"
41317 ]
41318 ]
41319 },
41320 "proxyto" : "node",
41321 "returns" : {
41322 "properties" : {
41323 "method" : {
41324 "type" : "string"
41325 },
41326 "type" : {
41327 "type" : "string"
41328 }
41329 },
41330 "type" : "object"
41331 }
41332 },
41333 "PUT" : {
41334 "allowtoken" : 1,
41335 "description" : "Update network device configuration",
41336 "method" : "PUT",
41337 "name" : "update_network",
41338 "parameters" : {
41339 "additionalProperties" : 0,
41340 "properties" : {
41341 "address" : {
41342 "description" : "IP address.",
41343 "format" : "ipv4",
41344 "optional" : 1,
41345 "requires" : "netmask",
41346 "type" : "string",
41347 "typetext" : "<string>"
41348 },
41349 "address6" : {
41350 "description" : "IP address.",
41351 "format" : "ipv6",
41352 "optional" : 1,
41353 "requires" : "netmask6",
41354 "type" : "string",
41355 "typetext" : "<string>"
41356 },
41357 "autostart" : {
41358 "description" : "Automatically start interface on boot.",
41359 "optional" : 1,
41360 "type" : "boolean",
41361 "typetext" : "<boolean>"
41362 },
41363 "bond-primary" : {
41364 "description" : "Specify the primary interface for active-backup bond.",
41365 "format" : "pve-iface",
41366 "optional" : 1,
41367 "type" : "string",
41368 "typetext" : "<string>"
41369 },
41370 "bond_mode" : {
41371 "description" : "Bonding mode.",
41372 "enum" : [
41373 "balance-rr",
41374 "active-backup",
41375 "balance-xor",
41376 "broadcast",
41377 "802.3ad",
41378 "balance-tlb",
41379 "balance-alb",
41380 "balance-slb",
41381 "lacp-balance-slb",
41382 "lacp-balance-tcp"
41383 ],
41384 "optional" : 1,
41385 "type" : "string"
41386 },
41387 "bond_xmit_hash_policy" : {
41388 "description" : "Selects the transmit hash policy to use for slave selection in balance-xor and 802.3ad modes.",
41389 "enum" : [
41390 "layer2",
41391 "layer2+3",
41392 "layer3+4"
41393 ],
41394 "optional" : 1,
41395 "type" : "string"
41396 },
41397 "bridge_ports" : {
41398 "description" : "Specify the interfaces you want to add to your bridge.",
41399 "format" : "pve-iface-list",
41400 "optional" : 1,
41401 "type" : "string",
41402 "typetext" : "<string>"
41403 },
41404 "bridge_vlan_aware" : {
41405 "description" : "Enable bridge vlan support.",
41406 "optional" : 1,
41407 "type" : "boolean",
41408 "typetext" : "<boolean>"
41409 },
41410 "cidr" : {
41411 "description" : "IPv4 CIDR.",
41412 "format" : "CIDRv4",
41413 "optional" : 1,
41414 "type" : "string",
41415 "typetext" : "<string>"
41416 },
41417 "cidr6" : {
41418 "description" : "IPv6 CIDR.",
41419 "format" : "CIDRv6",
41420 "optional" : 1,
41421 "type" : "string",
41422 "typetext" : "<string>"
41423 },
41424 "comments" : {
41425 "description" : "Comments",
41426 "optional" : 1,
41427 "type" : "string",
41428 "typetext" : "<string>"
41429 },
41430 "comments6" : {
41431 "description" : "Comments",
41432 "optional" : 1,
41433 "type" : "string",
41434 "typetext" : "<string>"
41435 },
41436 "delete" : {
41437 "description" : "A list of settings you want to delete.",
41438 "format" : "pve-configid-list",
41439 "optional" : 1,
41440 "type" : "string",
41441 "typetext" : "<string>"
41442 },
41443 "gateway" : {
41444 "description" : "Default gateway address.",
41445 "format" : "ipv4",
41446 "optional" : 1,
41447 "type" : "string",
41448 "typetext" : "<string>"
41449 },
41450 "gateway6" : {
41451 "description" : "Default ipv6 gateway address.",
41452 "format" : "ipv6",
41453 "optional" : 1,
41454 "type" : "string",
41455 "typetext" : "<string>"
41456 },
41457 "iface" : {
41458 "description" : "Network interface name.",
41459 "format" : "pve-iface",
41460 "maxLength" : 20,
41461 "minLength" : 2,
41462 "type" : "string",
41463 "typetext" : "<string>"
41464 },
41465 "mtu" : {
41466 "description" : "MTU.",
41467 "maximum" : 65520,
41468 "minimum" : 1280,
41469 "optional" : 1,
41470 "type" : "integer",
41471 "typetext" : "<integer> (1280 - 65520)"
41472 },
41473 "netmask" : {
41474 "description" : "Network mask.",
41475 "format" : "ipv4mask",
41476 "optional" : 1,
41477 "requires" : "address",
41478 "type" : "string",
41479 "typetext" : "<string>"
41480 },
41481 "netmask6" : {
41482 "description" : "Network mask.",
41483 "maximum" : 128,
41484 "minimum" : 0,
41485 "optional" : 1,
41486 "requires" : "address6",
41487 "type" : "integer",
41488 "typetext" : "<integer> (0 - 128)"
41489 },
41490 "node" : {
41491 "description" : "The cluster node name.",
41492 "format" : "pve-node",
41493 "type" : "string",
41494 "typetext" : "<string>"
41495 },
41496 "ovs_bonds" : {
41497 "description" : "Specify the interfaces used by the bonding device.",
41498 "format" : "pve-iface-list",
41499 "optional" : 1,
41500 "type" : "string",
41501 "typetext" : "<string>"
41502 },
41503 "ovs_bridge" : {
41504 "description" : "The OVS bridge associated with a OVS port. This is required when you create an OVS port.",
41505 "format" : "pve-iface",
41506 "optional" : 1,
41507 "type" : "string",
41508 "typetext" : "<string>"
41509 },
41510 "ovs_options" : {
41511 "description" : "OVS interface options.",
41512 "maxLength" : 1024,
41513 "optional" : 1,
41514 "type" : "string",
41515 "typetext" : "<string>"
41516 },
41517 "ovs_ports" : {
41518 "description" : "Specify the interfaces you want to add to your bridge.",
41519 "format" : "pve-iface-list",
41520 "optional" : 1,
41521 "type" : "string",
41522 "typetext" : "<string>"
41523 },
41524 "ovs_tag" : {
41525 "description" : "Specify a VLan tag (used by OVSPort, OVSIntPort, OVSBond)",
41526 "maximum" : 4094,
41527 "minimum" : 1,
41528 "optional" : 1,
41529 "type" : "integer",
41530 "typetext" : "<integer> (1 - 4094)"
41531 },
41532 "slaves" : {
41533 "description" : "Specify the interfaces used by the bonding device.",
41534 "format" : "pve-iface-list",
41535 "optional" : 1,
41536 "type" : "string",
41537 "typetext" : "<string>"
41538 },
41539 "type" : {
41540 "description" : "Network interface type",
41541 "enum" : [
41542 "bridge",
41543 "bond",
41544 "eth",
41545 "alias",
41546 "vlan",
41547 "OVSBridge",
41548 "OVSBond",
41549 "OVSPort",
41550 "OVSIntPort",
41551 "unknown"
41552 ],
41553 "type" : "string"
41554 },
41555 "vlan-id" : {
41556 "description" : "vlan-id for a custom named vlan interface (ifupdown2 only).",
41557 "maximum" : 4094,
41558 "minimum" : 1,
41559 "optional" : 1,
41560 "type" : "integer",
41561 "typetext" : "<integer> (1 - 4094)"
41562 },
41563 "vlan-raw-device" : {
41564 "description" : "Specify the raw interface for the vlan interface.",
41565 "format" : "pve-iface",
41566 "optional" : 1,
41567 "type" : "string",
41568 "typetext" : "<string>"
41569 }
41570 }
41571 },
41572 "permissions" : {
41573 "check" : [
41574 "perm",
41575 "/nodes/{node}",
41576 [
41577 "Sys.Modify"
41578 ]
41579 ]
41580 },
41581 "protected" : 1,
41582 "proxyto" : "node",
41583 "returns" : {
41584 "type" : "null"
41585 }
41586 }
41587 },
41588 "leaf" : 1,
41589 "path" : "/nodes/{node}/network/{iface}",
41590 "text" : "{iface}"
41591 }
41592 ],
41593 "info" : {
41594 "DELETE" : {
41595 "allowtoken" : 1,
41596 "description" : "Revert network configuration changes.",
41597 "method" : "DELETE",
41598 "name" : "revert_network_changes",
41599 "parameters" : {
41600 "additionalProperties" : 0,
41601 "properties" : {
41602 "node" : {
41603 "description" : "The cluster node name.",
41604 "format" : "pve-node",
41605 "type" : "string",
41606 "typetext" : "<string>"
41607 }
41608 }
41609 },
41610 "permissions" : {
41611 "check" : [
41612 "perm",
41613 "/nodes/{node}",
41614 [
41615 "Sys.Modify"
41616 ]
41617 ]
41618 },
41619 "protected" : 1,
41620 "proxyto" : "node",
41621 "returns" : {
41622 "type" : "null"
41623 }
41624 },
41625 "GET" : {
41626 "allowtoken" : 1,
41627 "description" : "List available networks",
41628 "method" : "GET",
41629 "name" : "index",
41630 "parameters" : {
41631 "additionalProperties" : 0,
41632 "properties" : {
41633 "node" : {
41634 "description" : "The cluster node name.",
41635 "format" : "pve-node",
41636 "type" : "string",
41637 "typetext" : "<string>"
41638 },
41639 "type" : {
41640 "description" : "Only list specific interface types.",
41641 "enum" : [
41642 "bridge",
41643 "bond",
41644 "eth",
41645 "alias",
41646 "vlan",
41647 "OVSBridge",
41648 "OVSBond",
41649 "OVSPort",
41650 "OVSIntPort",
41651 "any_bridge",
41652 "any_local_bridge"
41653 ],
41654 "optional" : 1,
41655 "type" : "string"
41656 }
41657 }
41658 },
41659 "permissions" : {
41660 "user" : "all"
41661 },
41662 "proxyto" : "node",
41663 "returns" : {
41664 "items" : {
41665 "properties" : {},
41666 "type" : "object"
41667 },
41668 "links" : [
41669 {
41670 "href" : "{iface}",
41671 "rel" : "child"
41672 }
41673 ],
41674 "type" : "array"
41675 }
41676 },
41677 "POST" : {
41678 "allowtoken" : 1,
41679 "description" : "Create network device configuration",
41680 "method" : "POST",
41681 "name" : "create_network",
41682 "parameters" : {
41683 "additionalProperties" : 0,
41684 "properties" : {
41685 "address" : {
41686 "description" : "IP address.",
41687 "format" : "ipv4",
41688 "optional" : 1,
41689 "requires" : "netmask",
41690 "type" : "string",
41691 "typetext" : "<string>"
41692 },
41693 "address6" : {
41694 "description" : "IP address.",
41695 "format" : "ipv6",
41696 "optional" : 1,
41697 "requires" : "netmask6",
41698 "type" : "string",
41699 "typetext" : "<string>"
41700 },
41701 "autostart" : {
41702 "description" : "Automatically start interface on boot.",
41703 "optional" : 1,
41704 "type" : "boolean",
41705 "typetext" : "<boolean>"
41706 },
41707 "bond-primary" : {
41708 "description" : "Specify the primary interface for active-backup bond.",
41709 "format" : "pve-iface",
41710 "optional" : 1,
41711 "type" : "string",
41712 "typetext" : "<string>"
41713 },
41714 "bond_mode" : {
41715 "description" : "Bonding mode.",
41716 "enum" : [
41717 "balance-rr",
41718 "active-backup",
41719 "balance-xor",
41720 "broadcast",
41721 "802.3ad",
41722 "balance-tlb",
41723 "balance-alb",
41724 "balance-slb",
41725 "lacp-balance-slb",
41726 "lacp-balance-tcp"
41727 ],
41728 "optional" : 1,
41729 "type" : "string"
41730 },
41731 "bond_xmit_hash_policy" : {
41732 "description" : "Selects the transmit hash policy to use for slave selection in balance-xor and 802.3ad modes.",
41733 "enum" : [
41734 "layer2",
41735 "layer2+3",
41736 "layer3+4"
41737 ],
41738 "optional" : 1,
41739 "type" : "string"
41740 },
41741 "bridge_ports" : {
41742 "description" : "Specify the interfaces you want to add to your bridge.",
41743 "format" : "pve-iface-list",
41744 "optional" : 1,
41745 "type" : "string",
41746 "typetext" : "<string>"
41747 },
41748 "bridge_vlan_aware" : {
41749 "description" : "Enable bridge vlan support.",
41750 "optional" : 1,
41751 "type" : "boolean",
41752 "typetext" : "<boolean>"
41753 },
41754 "cidr" : {
41755 "description" : "IPv4 CIDR.",
41756 "format" : "CIDRv4",
41757 "optional" : 1,
41758 "type" : "string",
41759 "typetext" : "<string>"
41760 },
41761 "cidr6" : {
41762 "description" : "IPv6 CIDR.",
41763 "format" : "CIDRv6",
41764 "optional" : 1,
41765 "type" : "string",
41766 "typetext" : "<string>"
41767 },
41768 "comments" : {
41769 "description" : "Comments",
41770 "optional" : 1,
41771 "type" : "string",
41772 "typetext" : "<string>"
41773 },
41774 "comments6" : {
41775 "description" : "Comments",
41776 "optional" : 1,
41777 "type" : "string",
41778 "typetext" : "<string>"
41779 },
41780 "gateway" : {
41781 "description" : "Default gateway address.",
41782 "format" : "ipv4",
41783 "optional" : 1,
41784 "type" : "string",
41785 "typetext" : "<string>"
41786 },
41787 "gateway6" : {
41788 "description" : "Default ipv6 gateway address.",
41789 "format" : "ipv6",
41790 "optional" : 1,
41791 "type" : "string",
41792 "typetext" : "<string>"
41793 },
41794 "iface" : {
41795 "description" : "Network interface name.",
41796 "format" : "pve-iface",
41797 "maxLength" : 20,
41798 "minLength" : 2,
41799 "type" : "string",
41800 "typetext" : "<string>"
41801 },
41802 "mtu" : {
41803 "description" : "MTU.",
41804 "maximum" : 65520,
41805 "minimum" : 1280,
41806 "optional" : 1,
41807 "type" : "integer",
41808 "typetext" : "<integer> (1280 - 65520)"
41809 },
41810 "netmask" : {
41811 "description" : "Network mask.",
41812 "format" : "ipv4mask",
41813 "optional" : 1,
41814 "requires" : "address",
41815 "type" : "string",
41816 "typetext" : "<string>"
41817 },
41818 "netmask6" : {
41819 "description" : "Network mask.",
41820 "maximum" : 128,
41821 "minimum" : 0,
41822 "optional" : 1,
41823 "requires" : "address6",
41824 "type" : "integer",
41825 "typetext" : "<integer> (0 - 128)"
41826 },
41827 "node" : {
41828 "description" : "The cluster node name.",
41829 "format" : "pve-node",
41830 "type" : "string",
41831 "typetext" : "<string>"
41832 },
41833 "ovs_bonds" : {
41834 "description" : "Specify the interfaces used by the bonding device.",
41835 "format" : "pve-iface-list",
41836 "optional" : 1,
41837 "type" : "string",
41838 "typetext" : "<string>"
41839 },
41840 "ovs_bridge" : {
41841 "description" : "The OVS bridge associated with a OVS port. This is required when you create an OVS port.",
41842 "format" : "pve-iface",
41843 "optional" : 1,
41844 "type" : "string",
41845 "typetext" : "<string>"
41846 },
41847 "ovs_options" : {
41848 "description" : "OVS interface options.",
41849 "maxLength" : 1024,
41850 "optional" : 1,
41851 "type" : "string",
41852 "typetext" : "<string>"
41853 },
41854 "ovs_ports" : {
41855 "description" : "Specify the interfaces you want to add to your bridge.",
41856 "format" : "pve-iface-list",
41857 "optional" : 1,
41858 "type" : "string",
41859 "typetext" : "<string>"
41860 },
41861 "ovs_tag" : {
41862 "description" : "Specify a VLan tag (used by OVSPort, OVSIntPort, OVSBond)",
41863 "maximum" : 4094,
41864 "minimum" : 1,
41865 "optional" : 1,
41866 "type" : "integer",
41867 "typetext" : "<integer> (1 - 4094)"
41868 },
41869 "slaves" : {
41870 "description" : "Specify the interfaces used by the bonding device.",
41871 "format" : "pve-iface-list",
41872 "optional" : 1,
41873 "type" : "string",
41874 "typetext" : "<string>"
41875 },
41876 "type" : {
41877 "description" : "Network interface type",
41878 "enum" : [
41879 "bridge",
41880 "bond",
41881 "eth",
41882 "alias",
41883 "vlan",
41884 "OVSBridge",
41885 "OVSBond",
41886 "OVSPort",
41887 "OVSIntPort",
41888 "unknown"
41889 ],
41890 "type" : "string"
41891 },
41892 "vlan-id" : {
41893 "description" : "vlan-id for a custom named vlan interface (ifupdown2 only).",
41894 "maximum" : 4094,
41895 "minimum" : 1,
41896 "optional" : 1,
41897 "type" : "integer",
41898 "typetext" : "<integer> (1 - 4094)"
41899 },
41900 "vlan-raw-device" : {
41901 "description" : "Specify the raw interface for the vlan interface.",
41902 "format" : "pve-iface",
41903 "optional" : 1,
41904 "type" : "string",
41905 "typetext" : "<string>"
41906 }
41907 }
41908 },
41909 "permissions" : {
41910 "check" : [
41911 "perm",
41912 "/nodes/{node}",
41913 [
41914 "Sys.Modify"
41915 ]
41916 ]
41917 },
41918 "protected" : 1,
41919 "proxyto" : "node",
41920 "returns" : {
41921 "type" : "null"
41922 }
41923 },
41924 "PUT" : {
41925 "allowtoken" : 1,
41926 "description" : "Reload network configuration",
41927 "method" : "PUT",
41928 "name" : "reload_network_config",
41929 "parameters" : {
41930 "additionalProperties" : 0,
41931 "properties" : {
41932 "node" : {
41933 "description" : "The cluster node name.",
41934 "format" : "pve-node",
41935 "type" : "string",
41936 "typetext" : "<string>"
41937 }
41938 }
41939 },
41940 "permissions" : {
41941 "check" : [
41942 "perm",
41943 "/nodes/{node}",
41944 [
41945 "Sys.Modify"
41946 ]
41947 ]
41948 },
41949 "protected" : 1,
41950 "proxyto" : "node",
41951 "returns" : {
41952 "type" : "string"
41953 }
41954 }
41955 },
41956 "leaf" : 0,
41957 "path" : "/nodes/{node}/network",
41958 "text" : "network"
41959 },
41960 {
41961 "children" : [
41962 {
41963 "children" : [
41964 {
41965 "info" : {
41966 "GET" : {
41967 "allowtoken" : 1,
41968 "description" : "Read task log.",
41969 "method" : "GET",
41970 "name" : "read_task_log",
41971 "parameters" : {
41972 "additionalProperties" : 0,
41973 "properties" : {
41974 "download" : {
41975 "description" : "Whether the tasklog file should be downloaded. This parameter can't be used in conjunction with other parameters",
41976 "optional" : 1,
41977 "type" : "boolean",
41978 "typetext" : "<boolean>"
41979 },
41980 "limit" : {
41981 "default" : 50,
41982 "description" : "The amount of lines to read from the tasklog.",
41983 "minimum" : 0,
41984 "optional" : 1,
41985 "type" : "integer",
41986 "typetext" : "<integer> (0 - N)"
41987 },
41988 "node" : {
41989 "description" : "The cluster node name.",
41990 "format" : "pve-node",
41991 "type" : "string",
41992 "typetext" : "<string>"
41993 },
41994 "start" : {
41995 "default" : 0,
41996 "description" : "Start at this line when reading the tasklog",
41997 "minimum" : 0,
41998 "optional" : 1,
41999 "type" : "integer",
42000 "typetext" : "<integer> (0 - N)"
42001 },
42002 "upid" : {
42003 "description" : "The task's unique ID.",
42004 "type" : "string",
42005 "typetext" : "<string>"
42006 }
42007 }
42008 },
42009 "permissions" : {
42010 "description" : "The user needs 'Sys.Audit' permissions on '/nodes/<node>' if they aren't the owner of the task.",
42011 "user" : "all"
42012 },
42013 "protected" : 1,
42014 "proxyto" : "node",
42015 "returns" : {
42016 "items" : {
42017 "properties" : {
42018 "n" : {
42019 "description" : "Line number",
42020 "type" : "integer"
42021 },
42022 "t" : {
42023 "description" : "Line text",
42024 "type" : "string"
42025 }
42026 },
42027 "type" : "object"
42028 },
42029 "type" : "array"
42030 }
42031 }
42032 },
42033 "leaf" : 1,
42034 "path" : "/nodes/{node}/tasks/{upid}/log",
42035 "text" : "log"
42036 },
42037 {
42038 "info" : {
42039 "GET" : {
42040 "allowtoken" : 1,
42041 "description" : "Read task status.",
42042 "method" : "GET",
42043 "name" : "read_task_status",
42044 "parameters" : {
42045 "additionalProperties" : 0,
42046 "properties" : {
42047 "node" : {
42048 "description" : "The cluster node name.",
42049 "format" : "pve-node",
42050 "type" : "string",
42051 "typetext" : "<string>"
42052 },
42053 "upid" : {
42054 "description" : "The task's unique ID.",
42055 "type" : "string",
42056 "typetext" : "<string>"
42057 }
42058 }
42059 },
42060 "permissions" : {
42061 "description" : "The user needs 'Sys.Audit' permissions on '/nodes/<node>' if they are not the owner of the task.",
42062 "user" : "all"
42063 },
42064 "protected" : 1,
42065 "proxyto" : "node",
42066 "returns" : {
42067 "properties" : {
42068 "exitstatus" : {
42069 "optional" : 1,
42070 "type" : "string"
42071 },
42072 "id" : {
42073 "type" : "string"
42074 },
42075 "node" : {
42076 "type" : "string"
42077 },
42078 "pid" : {
42079 "type" : "integer"
42080 },
42081 "starttime" : {
42082 "type" : "number"
42083 },
42084 "status" : {
42085 "enum" : [
42086 "running",
42087 "stopped"
42088 ],
42089 "type" : "string"
42090 },
42091 "type" : {
42092 "type" : "string"
42093 },
42094 "upid" : {
42095 "type" : "string"
42096 },
42097 "user" : {
42098 "type" : "string"
42099 }
42100 },
42101 "type" : "object"
42102 }
42103 }
42104 },
42105 "leaf" : 1,
42106 "path" : "/nodes/{node}/tasks/{upid}/status",
42107 "text" : "status"
42108 }
42109 ],
42110 "info" : {
42111 "DELETE" : {
42112 "allowtoken" : 1,
42113 "description" : "Stop a task.",
42114 "method" : "DELETE",
42115 "name" : "stop_task",
42116 "parameters" : {
42117 "additionalProperties" : 0,
42118 "properties" : {
42119 "node" : {
42120 "description" : "The cluster node name.",
42121 "format" : "pve-node",
42122 "type" : "string",
42123 "typetext" : "<string>"
42124 },
42125 "upid" : {
42126 "type" : "string",
42127 "typetext" : "<string>"
42128 }
42129 }
42130 },
42131 "permissions" : {
42132 "description" : "The user needs 'Sys.Modify' permissions on '/nodes/<node>' if they aren't the owner of the task.",
42133 "user" : "all"
42134 },
42135 "protected" : 1,
42136 "proxyto" : "node",
42137 "returns" : {
42138 "type" : "null"
42139 }
42140 },
42141 "GET" : {
42142 "allowtoken" : 1,
42143 "description" : "",
42144 "method" : "GET",
42145 "name" : "upid_index",
42146 "parameters" : {
42147 "additionalProperties" : 0,
42148 "properties" : {
42149 "node" : {
42150 "description" : "The cluster node name.",
42151 "format" : "pve-node",
42152 "type" : "string",
42153 "typetext" : "<string>"
42154 },
42155 "upid" : {
42156 "type" : "string",
42157 "typetext" : "<string>"
42158 }
42159 }
42160 },
42161 "permissions" : {
42162 "user" : "all"
42163 },
42164 "returns" : {
42165 "items" : {
42166 "properties" : {},
42167 "type" : "object"
42168 },
42169 "links" : [
42170 {
42171 "href" : "{name}",
42172 "rel" : "child"
42173 }
42174 ],
42175 "type" : "array"
42176 }
42177 }
42178 },
42179 "leaf" : 0,
42180 "path" : "/nodes/{node}/tasks/{upid}",
42181 "text" : "{upid}"
42182 }
42183 ],
42184 "info" : {
42185 "GET" : {
42186 "allowtoken" : 1,
42187 "description" : "Read task list for one node (finished tasks).",
42188 "method" : "GET",
42189 "name" : "node_tasks",
42190 "parameters" : {
42191 "additionalProperties" : 0,
42192 "properties" : {
42193 "errors" : {
42194 "default" : 0,
42195 "description" : "Only list tasks with a status of ERROR.",
42196 "optional" : 1,
42197 "type" : "boolean",
42198 "typetext" : "<boolean>"
42199 },
42200 "limit" : {
42201 "default" : 50,
42202 "description" : "Only list this amount of tasks.",
42203 "minimum" : 0,
42204 "optional" : 1,
42205 "type" : "integer",
42206 "typetext" : "<integer> (0 - N)"
42207 },
42208 "node" : {
42209 "description" : "The cluster node name.",
42210 "format" : "pve-node",
42211 "type" : "string",
42212 "typetext" : "<string>"
42213 },
42214 "since" : {
42215 "description" : "Only list tasks since this UNIX epoch.",
42216 "optional" : 1,
42217 "type" : "integer",
42218 "typetext" : "<integer>"
42219 },
42220 "source" : {
42221 "default" : "archive",
42222 "description" : "List archived, active or all tasks.",
42223 "enum" : [
42224 "archive",
42225 "active",
42226 "all"
42227 ],
42228 "optional" : 1,
42229 "type" : "string"
42230 },
42231 "start" : {
42232 "default" : 0,
42233 "description" : "List tasks beginning from this offset.",
42234 "minimum" : 0,
42235 "optional" : 1,
42236 "type" : "integer",
42237 "typetext" : "<integer> (0 - N)"
42238 },
42239 "statusfilter" : {
42240 "description" : "List of Task States that should be returned.",
42241 "format" : "pve-task-status-type-list",
42242 "optional" : 1,
42243 "type" : "string",
42244 "typetext" : "<string>"
42245 },
42246 "typefilter" : {
42247 "description" : "Only list tasks of this type (e.g., vzstart, vzdump).",
42248 "optional" : 1,
42249 "type" : "string",
42250 "typetext" : "<string>"
42251 },
42252 "until" : {
42253 "description" : "Only list tasks until this UNIX epoch.",
42254 "optional" : 1,
42255 "type" : "integer",
42256 "typetext" : "<integer>"
42257 },
42258 "userfilter" : {
42259 "description" : "Only list tasks from this user.",
42260 "optional" : 1,
42261 "type" : "string",
42262 "typetext" : "<string>"
42263 },
42264 "vmid" : {
42265 "description" : "Only list tasks for this VM.",
42266 "format" : "pve-vmid",
42267 "maximum" : 999999999,
42268 "minimum" : 100,
42269 "optional" : 1,
42270 "type" : "integer",
42271 "typetext" : "<integer> (100 - 999999999)"
42272 }
42273 }
42274 },
42275 "permissions" : {
42276 "description" : "List task associated with the current user, or all task the user has 'Sys.Audit' permissions on /nodes/<node> (the <node> the task runs on).",
42277 "user" : "all"
42278 },
42279 "proxyto" : "node",
42280 "returns" : {
42281 "items" : {
42282 "properties" : {
42283 "endtime" : {
42284 "optional" : 1,
42285 "title" : "Endtime",
42286 "type" : "integer"
42287 },
42288 "id" : {
42289 "title" : "ID",
42290 "type" : "string"
42291 },
42292 "node" : {
42293 "title" : "Node",
42294 "type" : "string"
42295 },
42296 "pid" : {
42297 "title" : "PID",
42298 "type" : "integer"
42299 },
42300 "pstart" : {
42301 "type" : "integer"
42302 },
42303 "starttime" : {
42304 "title" : "Starttime",
42305 "type" : "integer"
42306 },
42307 "status" : {
42308 "optional" : 1,
42309 "title" : "Status",
42310 "type" : "string"
42311 },
42312 "type" : {
42313 "title" : "Type",
42314 "type" : "string"
42315 },
42316 "upid" : {
42317 "title" : "UPID",
42318 "type" : "string"
42319 },
42320 "user" : {
42321 "title" : "User",
42322 "type" : "string"
42323 }
42324 },
42325 "type" : "object"
42326 },
42327 "links" : [
42328 {
42329 "href" : "{upid}",
42330 "rel" : "child"
42331 }
42332 ],
42333 "type" : "array"
42334 }
42335 }
42336 },
42337 "leaf" : 0,
42338 "path" : "/nodes/{node}/tasks",
42339 "text" : "tasks"
42340 },
42341 {
42342 "children" : [
42343 {
42344 "info" : {
42345 "GET" : {
42346 "allowtoken" : 1,
42347 "description" : "Scan remote NFS server.",
42348 "method" : "GET",
42349 "name" : "nfsscan",
42350 "parameters" : {
42351 "additionalProperties" : 0,
42352 "properties" : {
42353 "node" : {
42354 "description" : "The cluster node name.",
42355 "format" : "pve-node",
42356 "type" : "string",
42357 "typetext" : "<string>"
42358 },
42359 "server" : {
42360 "description" : "The server address (name or IP).",
42361 "format" : "pve-storage-server",
42362 "type" : "string",
42363 "typetext" : "<string>"
42364 }
42365 }
42366 },
42367 "permissions" : {
42368 "check" : [
42369 "perm",
42370 "/storage",
42371 [
42372 "Datastore.Allocate"
42373 ]
42374 ]
42375 },
42376 "protected" : 1,
42377 "proxyto" : "node",
42378 "returns" : {
42379 "items" : {
42380 "properties" : {
42381 "options" : {
42382 "description" : "NFS export options.",
42383 "type" : "string"
42384 },
42385 "path" : {
42386 "description" : "The exported path.",
42387 "type" : "string"
42388 }
42389 },
42390 "type" : "object"
42391 },
42392 "type" : "array"
42393 }
42394 }
42395 },
42396 "leaf" : 1,
42397 "path" : "/nodes/{node}/scan/nfs",
42398 "text" : "nfs"
42399 },
42400 {
42401 "info" : {
42402 "GET" : {
42403 "allowtoken" : 1,
42404 "description" : "Scan remote CIFS server.",
42405 "method" : "GET",
42406 "name" : "cifsscan",
42407 "parameters" : {
42408 "additionalProperties" : 0,
42409 "properties" : {
42410 "domain" : {
42411 "description" : "SMB domain (Workgroup).",
42412 "optional" : 1,
42413 "type" : "string",
42414 "typetext" : "<string>"
42415 },
42416 "node" : {
42417 "description" : "The cluster node name.",
42418 "format" : "pve-node",
42419 "type" : "string",
42420 "typetext" : "<string>"
42421 },
42422 "password" : {
42423 "description" : "User password.",
42424 "optional" : 1,
42425 "type" : "string",
42426 "typetext" : "<string>"
42427 },
42428 "server" : {
42429 "description" : "The server address (name or IP).",
42430 "format" : "pve-storage-server",
42431 "type" : "string",
42432 "typetext" : "<string>"
42433 },
42434 "username" : {
42435 "description" : "User name.",
42436 "optional" : 1,
42437 "type" : "string",
42438 "typetext" : "<string>"
42439 }
42440 }
42441 },
42442 "permissions" : {
42443 "check" : [
42444 "perm",
42445 "/storage",
42446 [
42447 "Datastore.Allocate"
42448 ]
42449 ]
42450 },
42451 "protected" : 1,
42452 "proxyto" : "node",
42453 "returns" : {
42454 "items" : {
42455 "properties" : {
42456 "description" : {
42457 "description" : "Descriptive text from server.",
42458 "type" : "string"
42459 },
42460 "share" : {
42461 "description" : "The cifs share name.",
42462 "type" : "string"
42463 }
42464 },
42465 "type" : "object"
42466 },
42467 "type" : "array"
42468 }
42469 }
42470 },
42471 "leaf" : 1,
42472 "path" : "/nodes/{node}/scan/cifs",
42473 "text" : "cifs"
42474 },
42475 {
42476 "info" : {
42477 "GET" : {
42478 "allowtoken" : 1,
42479 "description" : "Scan remote Proxmox Backup Server.",
42480 "method" : "GET",
42481 "name" : "pbsscan",
42482 "parameters" : {
42483 "additionalProperties" : 0,
42484 "properties" : {
42485 "fingerprint" : {
42486 "description" : "Certificate SHA 256 fingerprint.",
42487 "optional" : 1,
42488 "pattern" : "([A-Fa-f0-9]{2}:){31}[A-Fa-f0-9]{2}",
42489 "type" : "string"
42490 },
42491 "node" : {
42492 "description" : "The cluster node name.",
42493 "format" : "pve-node",
42494 "type" : "string",
42495 "typetext" : "<string>"
42496 },
42497 "password" : {
42498 "description" : "User password or API token secret.",
42499 "type" : "string",
42500 "typetext" : "<string>"
42501 },
42502 "port" : {
42503 "default" : 8007,
42504 "description" : "Optional port.",
42505 "maximum" : 65535,
42506 "minimum" : 1,
42507 "optional" : 1,
42508 "type" : "integer",
42509 "typetext" : "<integer> (1 - 65535)"
42510 },
42511 "server" : {
42512 "description" : "The server address (name or IP).",
42513 "format" : "pve-storage-server",
42514 "type" : "string",
42515 "typetext" : "<string>"
42516 },
42517 "username" : {
42518 "description" : "User-name or API token-ID.",
42519 "type" : "string",
42520 "typetext" : "<string>"
42521 }
42522 }
42523 },
42524 "permissions" : {
42525 "check" : [
42526 "perm",
42527 "/storage",
42528 [
42529 "Datastore.Allocate"
42530 ]
42531 ]
42532 },
42533 "protected" : 1,
42534 "proxyto" : "node",
42535 "returns" : {
42536 "items" : {
42537 "properties" : {
42538 "comment" : {
42539 "description" : "Comment from server.",
42540 "optional" : 1,
42541 "type" : "string"
42542 },
42543 "store" : {
42544 "description" : "The datastore name.",
42545 "type" : "string"
42546 }
42547 },
42548 "type" : "object"
42549 },
42550 "type" : "array"
42551 }
42552 }
42553 },
42554 "leaf" : 1,
42555 "path" : "/nodes/{node}/scan/pbs",
42556 "text" : "pbs"
42557 },
42558 {
42559 "info" : {
42560 "GET" : {
42561 "allowtoken" : 1,
42562 "description" : "Scan remote GlusterFS server.",
42563 "method" : "GET",
42564 "name" : "glusterfsscan",
42565 "parameters" : {
42566 "additionalProperties" : 0,
42567 "properties" : {
42568 "node" : {
42569 "description" : "The cluster node name.",
42570 "format" : "pve-node",
42571 "type" : "string",
42572 "typetext" : "<string>"
42573 },
42574 "server" : {
42575 "description" : "The server address (name or IP).",
42576 "format" : "pve-storage-server",
42577 "type" : "string",
42578 "typetext" : "<string>"
42579 }
42580 }
42581 },
42582 "permissions" : {
42583 "check" : [
42584 "perm",
42585 "/storage",
42586 [
42587 "Datastore.Allocate"
42588 ]
42589 ]
42590 },
42591 "protected" : 1,
42592 "proxyto" : "node",
42593 "returns" : {
42594 "items" : {
42595 "properties" : {
42596 "volname" : {
42597 "description" : "The volume name.",
42598 "type" : "string"
42599 }
42600 },
42601 "type" : "object"
42602 },
42603 "type" : "array"
42604 }
42605 }
42606 },
42607 "leaf" : 1,
42608 "path" : "/nodes/{node}/scan/glusterfs",
42609 "text" : "glusterfs"
42610 },
42611 {
42612 "info" : {
42613 "GET" : {
42614 "allowtoken" : 1,
42615 "description" : "Scan remote iSCSI server.",
42616 "method" : "GET",
42617 "name" : "iscsiscan",
42618 "parameters" : {
42619 "additionalProperties" : 0,
42620 "properties" : {
42621 "node" : {
42622 "description" : "The cluster node name.",
42623 "format" : "pve-node",
42624 "type" : "string",
42625 "typetext" : "<string>"
42626 },
42627 "portal" : {
42628 "description" : "The iSCSI portal (IP or DNS name with optional port).",
42629 "format" : "pve-storage-portal-dns",
42630 "type" : "string",
42631 "typetext" : "<string>"
42632 }
42633 }
42634 },
42635 "permissions" : {
42636 "check" : [
42637 "perm",
42638 "/storage",
42639 [
42640 "Datastore.Allocate"
42641 ]
42642 ]
42643 },
42644 "protected" : 1,
42645 "proxyto" : "node",
42646 "returns" : {
42647 "items" : {
42648 "properties" : {
42649 "portal" : {
42650 "description" : "The iSCSI portal name.",
42651 "type" : "string"
42652 },
42653 "target" : {
42654 "description" : "The iSCSI target name.",
42655 "type" : "string"
42656 }
42657 },
42658 "type" : "object"
42659 },
42660 "type" : "array"
42661 }
42662 }
42663 },
42664 "leaf" : 1,
42665 "path" : "/nodes/{node}/scan/iscsi",
42666 "text" : "iscsi"
42667 },
42668 {
42669 "info" : {
42670 "GET" : {
42671 "allowtoken" : 1,
42672 "description" : "List local LVM volume groups.",
42673 "method" : "GET",
42674 "name" : "lvmscan",
42675 "parameters" : {
42676 "additionalProperties" : 0,
42677 "properties" : {
42678 "node" : {
42679 "description" : "The cluster node name.",
42680 "format" : "pve-node",
42681 "type" : "string",
42682 "typetext" : "<string>"
42683 }
42684 }
42685 },
42686 "permissions" : {
42687 "check" : [
42688 "perm",
42689 "/storage",
42690 [
42691 "Datastore.Allocate"
42692 ]
42693 ]
42694 },
42695 "protected" : 1,
42696 "proxyto" : "node",
42697 "returns" : {
42698 "items" : {
42699 "properties" : {
42700 "vg" : {
42701 "description" : "The LVM logical volume group name.",
42702 "type" : "string"
42703 }
42704 },
42705 "type" : "object"
42706 },
42707 "type" : "array"
42708 }
42709 }
42710 },
42711 "leaf" : 1,
42712 "path" : "/nodes/{node}/scan/lvm",
42713 "text" : "lvm"
42714 },
42715 {
42716 "info" : {
42717 "GET" : {
42718 "allowtoken" : 1,
42719 "description" : "List local LVM Thin Pools.",
42720 "method" : "GET",
42721 "name" : "lvmthinscan",
42722 "parameters" : {
42723 "additionalProperties" : 0,
42724 "properties" : {
42725 "node" : {
42726 "description" : "The cluster node name.",
42727 "format" : "pve-node",
42728 "type" : "string",
42729 "typetext" : "<string>"
42730 },
42731 "vg" : {
42732 "maxLength" : 100,
42733 "pattern" : "[a-zA-Z0-9\\.\\+\\_][a-zA-Z0-9\\.\\+\\_\\-]+",
42734 "type" : "string"
42735 }
42736 }
42737 },
42738 "permissions" : {
42739 "check" : [
42740 "perm",
42741 "/storage",
42742 [
42743 "Datastore.Allocate"
42744 ]
42745 ]
42746 },
42747 "protected" : 1,
42748 "proxyto" : "node",
42749 "returns" : {
42750 "items" : {
42751 "properties" : {
42752 "lv" : {
42753 "description" : "The LVM Thin Pool name (LVM logical volume).",
42754 "type" : "string"
42755 }
42756 },
42757 "type" : "object"
42758 },
42759 "type" : "array"
42760 }
42761 }
42762 },
42763 "leaf" : 1,
42764 "path" : "/nodes/{node}/scan/lvmthin",
42765 "text" : "lvmthin"
42766 },
42767 {
42768 "info" : {
42769 "GET" : {
42770 "allowtoken" : 1,
42771 "description" : "Scan zfs pool list on local node.",
42772 "method" : "GET",
42773 "name" : "zfsscan",
42774 "parameters" : {
42775 "additionalProperties" : 0,
42776 "properties" : {
42777 "node" : {
42778 "description" : "The cluster node name.",
42779 "format" : "pve-node",
42780 "type" : "string",
42781 "typetext" : "<string>"
42782 }
42783 }
42784 },
42785 "permissions" : {
42786 "check" : [
42787 "perm",
42788 "/storage",
42789 [
42790 "Datastore.Allocate"
42791 ]
42792 ]
42793 },
42794 "protected" : 1,
42795 "proxyto" : "node",
42796 "returns" : {
42797 "items" : {
42798 "properties" : {
42799 "pool" : {
42800 "description" : "ZFS pool name.",
42801 "type" : "string"
42802 }
42803 },
42804 "type" : "object"
42805 },
42806 "type" : "array"
42807 }
42808 }
42809 },
42810 "leaf" : 1,
42811 "path" : "/nodes/{node}/scan/zfs",
42812 "text" : "zfs"
42813 }
42814 ],
42815 "info" : {
42816 "GET" : {
42817 "allowtoken" : 1,
42818 "description" : "Index of available scan methods",
42819 "method" : "GET",
42820 "name" : "index",
42821 "parameters" : {
42822 "additionalProperties" : 0,
42823 "properties" : {
42824 "node" : {
42825 "description" : "The cluster node name.",
42826 "format" : "pve-node",
42827 "type" : "string",
42828 "typetext" : "<string>"
42829 }
42830 }
42831 },
42832 "permissions" : {
42833 "user" : "all"
42834 },
42835 "returns" : {
42836 "items" : {
42837 "properties" : {
42838 "method" : {
42839 "type" : "string"
42840 }
42841 },
42842 "type" : "object"
42843 },
42844 "links" : [
42845 {
42846 "href" : "{method}",
42847 "rel" : "child"
42848 }
42849 ],
42850 "type" : "array"
42851 }
42852 }
42853 },
42854 "leaf" : 0,
42855 "path" : "/nodes/{node}/scan",
42856 "text" : "scan"
42857 },
42858 {
42859 "children" : [
42860 {
42861 "children" : [
42862 {
42863 "children" : [
42864 {
42865 "info" : {
42866 "GET" : {
42867 "allowtoken" : 1,
42868 "description" : "List mediated device types for given PCI device.",
42869 "method" : "GET",
42870 "name" : "mdevscan",
42871 "parameters" : {
42872 "additionalProperties" : 0,
42873 "properties" : {
42874 "node" : {
42875 "description" : "The cluster node name.",
42876 "format" : "pve-node",
42877 "type" : "string",
42878 "typetext" : "<string>"
42879 },
42880 "pciid" : {
42881 "description" : "The PCI ID to list the mdev types for.",
42882 "pattern" : "(?:[0-9a-fA-F]{4}:)?[0-9a-fA-F]{2}:[0-9a-fA-F]{2}\\.[0-9a-fA-F]",
42883 "type" : "string"
42884 }
42885 }
42886 },
42887 "permissions" : {
42888 "check" : [
42889 "perm",
42890 "/",
42891 [
42892 "Sys.Audit",
42893 "Sys.Modify"
42894 ],
42895 "any",
42896 1
42897 ]
42898 },
42899 "protected" : 1,
42900 "proxyto" : "node",
42901 "returns" : {
42902 "items" : {
42903 "properties" : {
42904 "available" : {
42905 "description" : "The number of still available instances of this type.",
42906 "type" : "integer"
42907 },
42908 "description" : {
42909 "type" : "string"
42910 },
42911 "type" : {
42912 "description" : "The name of the mdev type.",
42913 "type" : "string"
42914 }
42915 },
42916 "type" : "object"
42917 },
42918 "type" : "array"
42919 }
42920 }
42921 },
42922 "leaf" : 1,
42923 "path" : "/nodes/{node}/hardware/pci/{pciid}/mdev",
42924 "text" : "mdev"
42925 }
42926 ],
42927 "info" : {
42928 "GET" : {
42929 "allowtoken" : 1,
42930 "description" : "Index of available pci methods",
42931 "method" : "GET",
42932 "name" : "pciindex",
42933 "parameters" : {
42934 "additionalProperties" : 0,
42935 "properties" : {
42936 "node" : {
42937 "description" : "The cluster node name.",
42938 "format" : "pve-node",
42939 "type" : "string",
42940 "typetext" : "<string>"
42941 },
42942 "pciid" : {
42943 "pattern" : "(?:[0-9a-fA-F]{4}:)?[0-9a-fA-F]{2}:[0-9a-fA-F]{2}\\.[0-9a-fA-F]",
42944 "type" : "string"
42945 }
42946 }
42947 },
42948 "permissions" : {
42949 "user" : "all"
42950 },
42951 "returns" : {
42952 "items" : {
42953 "properties" : {
42954 "method" : {
42955 "type" : "string"
42956 }
42957 },
42958 "type" : "object"
42959 },
42960 "links" : [
42961 {
42962 "href" : "{method}",
42963 "rel" : "child"
42964 }
42965 ],
42966 "type" : "array"
42967 }
42968 }
42969 },
42970 "leaf" : 0,
42971 "path" : "/nodes/{node}/hardware/pci/{pciid}",
42972 "text" : "{pciid}"
42973 }
42974 ],
42975 "info" : {
42976 "GET" : {
42977 "allowtoken" : 1,
42978 "description" : "List local PCI devices.",
42979 "method" : "GET",
42980 "name" : "pciscan",
42981 "parameters" : {
42982 "additionalProperties" : 0,
42983 "properties" : {
42984 "node" : {
42985 "description" : "The cluster node name.",
42986 "format" : "pve-node",
42987 "type" : "string",
42988 "typetext" : "<string>"
42989 },
42990 "pci-class-blacklist" : {
42991 "default" : "05;06;0b",
42992 "description" : "A list of blacklisted PCI classes, which will not be returned. Following are filtered by default: Memory Controller (05), Bridge (06) and Processor (0b).",
42993 "format" : "string-list",
42994 "optional" : 1,
42995 "type" : "string",
42996 "typetext" : "<string>"
42997 },
42998 "verbose" : {
42999 "default" : 1,
43000 "description" : "If disabled, does only print the PCI IDs. Otherwise, additional information like vendor and device will be returned.",
43001 "optional" : 1,
43002 "type" : "boolean",
43003 "typetext" : "<boolean>"
43004 }
43005 }
43006 },
43007 "permissions" : {
43008 "check" : [
43009 "perm",
43010 "/",
43011 [
43012 "Sys.Audit",
43013 "Sys.Modify"
43014 ],
43015 "any",
43016 1
43017 ]
43018 },
43019 "protected" : 1,
43020 "proxyto" : "node",
43021 "returns" : {
43022 "items" : {
43023 "properties" : {
43024 "class" : {
43025 "description" : "The PCI Class of the device.",
43026 "type" : "string"
43027 },
43028 "device" : {
43029 "description" : "The Device ID.",
43030 "type" : "string"
43031 },
43032 "device_name" : {
43033 "optional" : 1,
43034 "type" : "string"
43035 },
43036 "id" : {
43037 "description" : "The PCI ID.",
43038 "type" : "string"
43039 },
43040 "iommugroup" : {
43041 "description" : "The IOMMU group in which the device is in. If no IOMMU group is detected, it is set to -1.",
43042 "type" : "integer"
43043 },
43044 "mdev" : {
43045 "description" : "If set, marks that the device is capable of creating mediated devices.",
43046 "optional" : 1,
43047 "type" : "boolean"
43048 },
43049 "subsystem_device" : {
43050 "description" : "The Subsystem Device ID.",
43051 "optional" : 1,
43052 "type" : "string"
43053 },
43054 "subsystem_device_name" : {
43055 "optional" : 1,
43056 "type" : "string"
43057 },
43058 "subsystem_vendor" : {
43059 "description" : "The Subsystem Vendor ID.",
43060 "optional" : 1,
43061 "type" : "string"
43062 },
43063 "subsystem_vendor_name" : {
43064 "optional" : 1,
43065 "type" : "string"
43066 },
43067 "vendor" : {
43068 "description" : "The Vendor ID.",
43069 "type" : "string"
43070 },
43071 "vendor_name" : {
43072 "optional" : 1,
43073 "type" : "string"
43074 }
43075 },
43076 "type" : "object"
43077 },
43078 "links" : [
43079 {
43080 "href" : "{id}",
43081 "rel" : "child"
43082 }
43083 ],
43084 "type" : "array"
43085 }
43086 }
43087 },
43088 "leaf" : 0,
43089 "path" : "/nodes/{node}/hardware/pci",
43090 "text" : "pci"
43091 },
43092 {
43093 "info" : {
43094 "GET" : {
43095 "allowtoken" : 1,
43096 "description" : "List local USB devices.",
43097 "method" : "GET",
43098 "name" : "usbscan",
43099 "parameters" : {
43100 "additionalProperties" : 0,
43101 "properties" : {
43102 "node" : {
43103 "description" : "The cluster node name.",
43104 "format" : "pve-node",
43105 "type" : "string",
43106 "typetext" : "<string>"
43107 }
43108 }
43109 },
43110 "permissions" : {
43111 "check" : [
43112 "perm",
43113 "/",
43114 [
43115 "Sys.Modify"
43116 ]
43117 ]
43118 },
43119 "protected" : 1,
43120 "proxyto" : "node",
43121 "returns" : {
43122 "items" : {
43123 "properties" : {
43124 "busnum" : {
43125 "type" : "integer"
43126 },
43127 "class" : {
43128 "type" : "integer"
43129 },
43130 "devnum" : {
43131 "type" : "integer"
43132 },
43133 "level" : {
43134 "type" : "integer"
43135 },
43136 "manufacturer" : {
43137 "optional" : 1,
43138 "type" : "string"
43139 },
43140 "port" : {
43141 "type" : "integer"
43142 },
43143 "prodid" : {
43144 "type" : "string"
43145 },
43146 "product" : {
43147 "optional" : 1,
43148 "type" : "string"
43149 },
43150 "serial" : {
43151 "optional" : 1,
43152 "type" : "string"
43153 },
43154 "speed" : {
43155 "type" : "string"
43156 },
43157 "usbpath" : {
43158 "optional" : 1,
43159 "type" : "string"
43160 },
43161 "vendid" : {
43162 "type" : "string"
43163 }
43164 },
43165 "type" : "object"
43166 },
43167 "type" : "array"
43168 }
43169 }
43170 },
43171 "leaf" : 1,
43172 "path" : "/nodes/{node}/hardware/usb",
43173 "text" : "usb"
43174 }
43175 ],
43176 "info" : {
43177 "GET" : {
43178 "allowtoken" : 1,
43179 "description" : "Index of hardware types",
43180 "method" : "GET",
43181 "name" : "index",
43182 "parameters" : {
43183 "additionalProperties" : 0,
43184 "properties" : {
43185 "node" : {
43186 "description" : "The cluster node name.",
43187 "format" : "pve-node",
43188 "type" : "string",
43189 "typetext" : "<string>"
43190 }
43191 }
43192 },
43193 "permissions" : {
43194 "user" : "all"
43195 },
43196 "returns" : {
43197 "items" : {
43198 "properties" : {
43199 "type" : {
43200 "type" : "string"
43201 }
43202 },
43203 "type" : "object"
43204 },
43205 "links" : [
43206 {
43207 "href" : "{type}",
43208 "rel" : "child"
43209 }
43210 ],
43211 "type" : "array"
43212 }
43213 }
43214 },
43215 "leaf" : 0,
43216 "path" : "/nodes/{node}/hardware",
43217 "text" : "hardware"
43218 },
43219 {
43220 "children" : [
43221 {
43222 "children" : [
43223 {
43224 "info" : {
43225 "GET" : {
43226 "allowtoken" : 1,
43227 "description" : "List all custom and default CPU models.",
43228 "method" : "GET",
43229 "name" : "index",
43230 "parameters" : {
43231 "additionalProperties" : 0,
43232 "properties" : {
43233 "node" : {
43234 "description" : "The cluster node name.",
43235 "format" : "pve-node",
43236 "type" : "string",
43237 "typetext" : "<string>"
43238 }
43239 }
43240 },
43241 "permissions" : {
43242 "description" : "Only returns custom models when the current user has Sys.Audit on /nodes.",
43243 "user" : "all"
43244 },
43245 "returns" : {
43246 "items" : {
43247 "properties" : {
43248 "custom" : {
43249 "description" : "True if this is a custom CPU model.",
43250 "type" : "boolean"
43251 },
43252 "name" : {
43253 "description" : "Name of the CPU model. Identifies it for subsequent API calls. Prefixed with 'custom-' for custom models.",
43254 "type" : "string"
43255 },
43256 "vendor" : {
43257 "description" : "CPU vendor visible to the guest when this model is selected. Vendor of 'reported-model' in case of custom models.",
43258 "type" : "string"
43259 }
43260 },
43261 "type" : "object"
43262 },
43263 "links" : [
43264 {
43265 "href" : "{name}",
43266 "rel" : "child"
43267 }
43268 ],
43269 "type" : "array"
43270 }
43271 }
43272 },
43273 "leaf" : 1,
43274 "path" : "/nodes/{node}/capabilities/qemu/cpu",
43275 "text" : "cpu"
43276 },
43277 {
43278 "info" : {
43279 "GET" : {
43280 "allowtoken" : 1,
43281 "description" : "Get available QEMU/KVM machine types.",
43282 "method" : "GET",
43283 "name" : "types",
43284 "parameters" : {
43285 "additionalProperties" : 0,
43286 "properties" : {
43287 "node" : {
43288 "description" : "The cluster node name.",
43289 "format" : "pve-node",
43290 "type" : "string",
43291 "typetext" : "<string>"
43292 }
43293 }
43294 },
43295 "permissions" : {
43296 "user" : "all"
43297 },
43298 "proxyto" : "node",
43299 "returns" : {
43300 "items" : {
43301 "additionalProperties" : 1,
43302 "properties" : {
43303 "id" : {
43304 "description" : "Full name of machine type and version.",
43305 "type" : "string"
43306 },
43307 "type" : {
43308 "description" : "The machine type.",
43309 "enum" : [
43310 "q35",
43311 "i440fx"
43312 ],
43313 "type" : "string"
43314 },
43315 "version" : {
43316 "description" : "The machine version.",
43317 "type" : "string"
43318 }
43319 },
43320 "type" : "object"
43321 },
43322 "type" : "array"
43323 }
43324 }
43325 },
43326 "leaf" : 1,
43327 "path" : "/nodes/{node}/capabilities/qemu/machines",
43328 "text" : "machines"
43329 }
43330 ],
43331 "info" : {
43332 "GET" : {
43333 "allowtoken" : 1,
43334 "description" : "QEMU capabilities index.",
43335 "method" : "GET",
43336 "name" : "qemu_caps_index",
43337 "parameters" : {
43338 "additionalProperties" : 0,
43339 "properties" : {
43340 "node" : {
43341 "description" : "The cluster node name.",
43342 "format" : "pve-node",
43343 "type" : "string",
43344 "typetext" : "<string>"
43345 }
43346 }
43347 },
43348 "permissions" : {
43349 "user" : "all"
43350 },
43351 "returns" : {
43352 "items" : {
43353 "properties" : {},
43354 "type" : "object"
43355 },
43356 "links" : [
43357 {
43358 "href" : "{name}",
43359 "rel" : "child"
43360 }
43361 ],
43362 "type" : "array"
43363 }
43364 }
43365 },
43366 "leaf" : 0,
43367 "path" : "/nodes/{node}/capabilities/qemu",
43368 "text" : "qemu"
43369 }
43370 ],
43371 "info" : {
43372 "GET" : {
43373 "allowtoken" : 1,
43374 "description" : "Node capabilities index.",
43375 "method" : "GET",
43376 "name" : "index",
43377 "parameters" : {
43378 "additionalProperties" : 0,
43379 "properties" : {
43380 "node" : {
43381 "description" : "The cluster node name.",
43382 "format" : "pve-node",
43383 "type" : "string",
43384 "typetext" : "<string>"
43385 }
43386 }
43387 },
43388 "permissions" : {
43389 "user" : "all"
43390 },
43391 "returns" : {
43392 "items" : {
43393 "properties" : {},
43394 "type" : "object"
43395 },
43396 "links" : [
43397 {
43398 "href" : "{name}",
43399 "rel" : "child"
43400 }
43401 ],
43402 "type" : "array"
43403 }
43404 }
43405 },
43406 "leaf" : 0,
43407 "path" : "/nodes/{node}/capabilities",
43408 "text" : "capabilities"
43409 },
43410 {
43411 "children" : [
43412 {
43413 "children" : [
43414 {
43415 "info" : {
43416 "DELETE" : {
43417 "allowtoken" : 1,
43418 "description" : "Prune backups. Only those using the standard naming scheme are considered.",
43419 "method" : "DELETE",
43420 "name" : "delete",
43421 "parameters" : {
43422 "additionalProperties" : 0,
43423 "properties" : {
43424 "node" : {
43425 "description" : "The cluster node name.",
43426 "format" : "pve-node",
43427 "type" : "string",
43428 "typetext" : "<string>"
43429 },
43430 "prune-backups" : {
43431 "description" : "Use these retention options instead of those from the storage configuration.",
43432 "format" : "prune-backups",
43433 "optional" : 1,
43434 "type" : "string",
43435 "typetext" : "[keep-all=<1|0>] [,keep-daily=<N>] [,keep-hourly=<N>] [,keep-last=<N>] [,keep-monthly=<N>] [,keep-weekly=<N>] [,keep-yearly=<N>]"
43436 },
43437 "storage" : {
43438 "description" : "The storage identifier.",
43439 "format" : "pve-storage-id",
43440 "format_description" : "storage ID",
43441 "type" : "string",
43442 "typetext" : "<storage ID>"
43443 },
43444 "type" : {
43445 "description" : "Either 'qemu' or 'lxc'. Only consider backups for guests of this type.",
43446 "enum" : [
43447 "qemu",
43448 "lxc"
43449 ],
43450 "optional" : 1,
43451 "type" : "string"
43452 },
43453 "vmid" : {
43454 "description" : "Only prune backups for this VM.",
43455 "format" : "pve-vmid",
43456 "maximum" : 999999999,
43457 "minimum" : 100,
43458 "optional" : 1,
43459 "type" : "integer",
43460 "typetext" : "<integer> (100 - 999999999)"
43461 }
43462 }
43463 },
43464 "permissions" : {
43465 "description" : "You need the 'Datastore.Allocate' privilege on the storage (or if a VM ID is specified, 'Datastore.AllocateSpace' and 'VM.Backup' for the VM).",
43466 "user" : "all"
43467 },
43468 "protected" : 1,
43469 "proxyto" : "node",
43470 "returns" : {
43471 "type" : "string"
43472 }
43473 },
43474 "GET" : {
43475 "allowtoken" : 1,
43476 "description" : "Get prune information for backups. NOTE: this is only a preview and might not be what a subsequent prune call does if backups are removed/added in the meantime.",
43477 "method" : "GET",
43478 "name" : "dryrun",
43479 "parameters" : {
43480 "additionalProperties" : 0,
43481 "properties" : {
43482 "node" : {
43483 "description" : "The cluster node name.",
43484 "format" : "pve-node",
43485 "type" : "string",
43486 "typetext" : "<string>"
43487 },
43488 "prune-backups" : {
43489 "description" : "Use these retention options instead of those from the storage configuration.",
43490 "format" : "prune-backups",
43491 "optional" : 1,
43492 "type" : "string",
43493 "typetext" : "[keep-all=<1|0>] [,keep-daily=<N>] [,keep-hourly=<N>] [,keep-last=<N>] [,keep-monthly=<N>] [,keep-weekly=<N>] [,keep-yearly=<N>]"
43494 },
43495 "storage" : {
43496 "description" : "The storage identifier.",
43497 "format" : "pve-storage-id",
43498 "format_description" : "storage ID",
43499 "type" : "string",
43500 "typetext" : "<storage ID>"
43501 },
43502 "type" : {
43503 "description" : "Either 'qemu' or 'lxc'. Only consider backups for guests of this type.",
43504 "enum" : [
43505 "qemu",
43506 "lxc"
43507 ],
43508 "optional" : 1,
43509 "type" : "string"
43510 },
43511 "vmid" : {
43512 "description" : "Only consider backups for this guest.",
43513 "format" : "pve-vmid",
43514 "maximum" : 999999999,
43515 "minimum" : 100,
43516 "optional" : 1,
43517 "type" : "integer",
43518 "typetext" : "<integer> (100 - 999999999)"
43519 }
43520 }
43521 },
43522 "permissions" : {
43523 "check" : [
43524 "perm",
43525 "/storage/{storage}",
43526 [
43527 "Datastore.Audit",
43528 "Datastore.AllocateSpace"
43529 ],
43530 "any",
43531 1
43532 ]
43533 },
43534 "protected" : 1,
43535 "proxyto" : "node",
43536 "returns" : {
43537 "items" : {
43538 "properties" : {
43539 "ctime" : {
43540 "description" : "Creation time of the backup (seconds since the UNIX epoch).",
43541 "type" : "integer"
43542 },
43543 "mark" : {
43544 "description" : "Whether the backup would be kept or removed. Backups that are protected or don't use the standard naming scheme are not removed.",
43545 "enum" : [
43546 "keep",
43547 "remove",
43548 "protected",
43549 "renamed"
43550 ],
43551 "type" : "string"
43552 },
43553 "type" : {
43554 "description" : "One of 'qemu', 'lxc', 'openvz' or 'unknown'.",
43555 "type" : "string"
43556 },
43557 "vmid" : {
43558 "description" : "The VM the backup belongs to.",
43559 "optional" : 1,
43560 "type" : "integer"
43561 },
43562 "volid" : {
43563 "description" : "Backup volume ID.",
43564 "type" : "string"
43565 }
43566 },
43567 "type" : "object"
43568 },
43569 "type" : "array"
43570 }
43571 }
43572 },
43573 "leaf" : 1,
43574 "path" : "/nodes/{node}/storage/{storage}/prunebackups",
43575 "text" : "prunebackups"
43576 },
43577 {
43578 "children" : [
43579 {
43580 "info" : {
43581 "DELETE" : {
43582 "allowtoken" : 1,
43583 "description" : "Delete volume",
43584 "method" : "DELETE",
43585 "name" : "delete",
43586 "parameters" : {
43587 "additionalProperties" : 0,
43588 "properties" : {
43589 "delay" : {
43590 "description" : "Time to wait for the task to finish. We return 'null' if the task finish within that time.",
43591 "maximum" : 30,
43592 "minimum" : 1,
43593 "optional" : 1,
43594 "type" : "integer",
43595 "typetext" : "<integer> (1 - 30)"
43596 },
43597 "node" : {
43598 "description" : "The cluster node name.",
43599 "format" : "pve-node",
43600 "type" : "string",
43601 "typetext" : "<string>"
43602 },
43603 "storage" : {
43604 "description" : "The storage identifier.",
43605 "format" : "pve-storage-id",
43606 "format_description" : "storage ID",
43607 "optional" : 1,
43608 "type" : "string",
43609 "typetext" : "<storage ID>"
43610 },
43611 "volume" : {
43612 "description" : "Volume identifier",
43613 "type" : "string",
43614 "typetext" : "<string>"
43615 }
43616 }
43617 },
43618 "permissions" : {
43619 "description" : "You need 'Datastore.Allocate' privilege on the storage (or 'Datastore.AllocateSpace' for backup volumes if you have VM.Backup privilege on the VM).",
43620 "user" : "all"
43621 },
43622 "protected" : 1,
43623 "proxyto" : "node",
43624 "returns" : {
43625 "optional" : 1,
43626 "type" : "string"
43627 }
43628 },
43629 "GET" : {
43630 "allowtoken" : 1,
43631 "description" : "Get volume attributes",
43632 "method" : "GET",
43633 "name" : "info",
43634 "parameters" : {
43635 "additionalProperties" : 0,
43636 "properties" : {
43637 "node" : {
43638 "description" : "The cluster node name.",
43639 "format" : "pve-node",
43640 "type" : "string",
43641 "typetext" : "<string>"
43642 },
43643 "storage" : {
43644 "description" : "The storage identifier.",
43645 "format" : "pve-storage-id",
43646 "format_description" : "storage ID",
43647 "optional" : 1,
43648 "type" : "string",
43649 "typetext" : "<storage ID>"
43650 },
43651 "volume" : {
43652 "description" : "Volume identifier",
43653 "type" : "string",
43654 "typetext" : "<string>"
43655 }
43656 }
43657 },
43658 "permissions" : {
43659 "description" : "You need read access for the volume.",
43660 "user" : "all"
43661 },
43662 "protected" : 1,
43663 "proxyto" : "node",
43664 "returns" : {
43665 "properties" : {
43666 "format" : {
43667 "description" : "Format identifier ('raw', 'qcow2', 'subvol', 'iso', 'tgz' ...)",
43668 "type" : "string"
43669 },
43670 "notes" : {
43671 "description" : "Optional notes.",
43672 "optional" : 1,
43673 "type" : "string"
43674 },
43675 "path" : {
43676 "description" : "The Path",
43677 "type" : "string"
43678 },
43679 "protected" : {
43680 "description" : "Protection status. Currently only supported for backups.",
43681 "optional" : 1,
43682 "type" : "boolean"
43683 },
43684 "size" : {
43685 "description" : "Volume size in bytes.",
43686 "renderer" : "bytes",
43687 "type" : "integer"
43688 },
43689 "used" : {
43690 "description" : "Used space. Please note that most storage plugins do not report anything useful here.",
43691 "renderer" : "bytes",
43692 "type" : "integer"
43693 }
43694 },
43695 "type" : "object"
43696 }
43697 },
43698 "POST" : {
43699 "allowtoken" : 1,
43700 "description" : "Copy a volume. This is experimental code - do not use.",
43701 "method" : "POST",
43702 "name" : "copy",
43703 "parameters" : {
43704 "additionalProperties" : 0,
43705 "properties" : {
43706 "node" : {
43707 "description" : "The cluster node name.",
43708 "format" : "pve-node",
43709 "type" : "string",
43710 "typetext" : "<string>"
43711 },
43712 "storage" : {
43713 "description" : "The storage identifier.",
43714 "format" : "pve-storage-id",
43715 "format_description" : "storage ID",
43716 "optional" : 1,
43717 "type" : "string",
43718 "typetext" : "<storage ID>"
43719 },
43720 "target" : {
43721 "description" : "Target volume identifier",
43722 "type" : "string",
43723 "typetext" : "<string>"
43724 },
43725 "target_node" : {
43726 "description" : "Target node. Default is local node.",
43727 "format" : "pve-node",
43728 "optional" : 1,
43729 "type" : "string",
43730 "typetext" : "<string>"
43731 },
43732 "volume" : {
43733 "description" : "Source volume identifier",
43734 "type" : "string",
43735 "typetext" : "<string>"
43736 }
43737 }
43738 },
43739 "protected" : 1,
43740 "proxyto" : "node",
43741 "returns" : {
43742 "type" : "string"
43743 }
43744 },
43745 "PUT" : {
43746 "allowtoken" : 1,
43747 "description" : "Update volume attributes",
43748 "method" : "PUT",
43749 "name" : "updateattributes",
43750 "parameters" : {
43751 "additionalProperties" : 0,
43752 "properties" : {
43753 "node" : {
43754 "description" : "The cluster node name.",
43755 "format" : "pve-node",
43756 "type" : "string",
43757 "typetext" : "<string>"
43758 },
43759 "notes" : {
43760 "description" : "The new notes.",
43761 "optional" : 1,
43762 "type" : "string",
43763 "typetext" : "<string>"
43764 },
43765 "protected" : {
43766 "description" : "Protection status. Currently only supported for backups.",
43767 "optional" : 1,
43768 "type" : "boolean",
43769 "typetext" : "<boolean>"
43770 },
43771 "storage" : {
43772 "description" : "The storage identifier.",
43773 "format" : "pve-storage-id",
43774 "format_description" : "storage ID",
43775 "optional" : 1,
43776 "type" : "string",
43777 "typetext" : "<storage ID>"
43778 },
43779 "volume" : {
43780 "description" : "Volume identifier",
43781 "type" : "string",
43782 "typetext" : "<string>"
43783 }
43784 }
43785 },
43786 "permissions" : {
43787 "description" : "You need read access for the volume.",
43788 "user" : "all"
43789 },
43790 "protected" : 1,
43791 "proxyto" : "node",
43792 "returns" : {
43793 "type" : "null"
43794 }
43795 }
43796 },
43797 "leaf" : 1,
43798 "path" : "/nodes/{node}/storage/{storage}/content/{volume}",
43799 "text" : "{volume}"
43800 }
43801 ],
43802 "info" : {
43803 "GET" : {
43804 "allowtoken" : 1,
43805 "description" : "List storage content.",
43806 "method" : "GET",
43807 "name" : "index",
43808 "parameters" : {
43809 "additionalProperties" : 0,
43810 "properties" : {
43811 "content" : {
43812 "description" : "Only list content of this type.",
43813 "format" : "pve-storage-content",
43814 "optional" : 1,
43815 "type" : "string",
43816 "typetext" : "<string>"
43817 },
43818 "node" : {
43819 "description" : "The cluster node name.",
43820 "format" : "pve-node",
43821 "type" : "string",
43822 "typetext" : "<string>"
43823 },
43824 "storage" : {
43825 "description" : "The storage identifier.",
43826 "format" : "pve-storage-id",
43827 "format_description" : "storage ID",
43828 "type" : "string",
43829 "typetext" : "<storage ID>"
43830 },
43831 "vmid" : {
43832 "description" : "Only list images for this VM",
43833 "format" : "pve-vmid",
43834 "maximum" : 999999999,
43835 "minimum" : 100,
43836 "optional" : 1,
43837 "type" : "integer",
43838 "typetext" : "<integer> (100 - 999999999)"
43839 }
43840 }
43841 },
43842 "permissions" : {
43843 "check" : [
43844 "perm",
43845 "/storage/{storage}",
43846 [
43847 "Datastore.Audit",
43848 "Datastore.AllocateSpace"
43849 ],
43850 "any",
43851 1
43852 ]
43853 },
43854 "protected" : 1,
43855 "proxyto" : "node",
43856 "returns" : {
43857 "items" : {
43858 "properties" : {
43859 "ctime" : {
43860 "description" : "Creation time (seconds since the UNIX Epoch).",
43861 "minimum" : 0,
43862 "optional" : 1,
43863 "type" : "integer"
43864 },
43865 "encrypted" : {
43866 "description" : "If whole backup is encrypted, value is the fingerprint or '1' if encrypted. Only useful for the Proxmox Backup Server storage type.",
43867 "optional" : 1,
43868 "type" : "string"
43869 },
43870 "format" : {
43871 "description" : "Format identifier ('raw', 'qcow2', 'subvol', 'iso', 'tgz' ...)",
43872 "type" : "string"
43873 },
43874 "notes" : {
43875 "description" : "Optional notes. If they contain multiple lines, only the first one is returned here.",
43876 "optional" : 1,
43877 "type" : "string"
43878 },
43879 "parent" : {
43880 "description" : "Volume identifier of parent (for linked cloned).",
43881 "optional" : 1,
43882 "type" : "string"
43883 },
43884 "protected" : {
43885 "description" : "Protection status. Currently only supported for backups.",
43886 "optional" : 1,
43887 "type" : "boolean"
43888 },
43889 "size" : {
43890 "description" : "Volume size in bytes.",
43891 "renderer" : "bytes",
43892 "type" : "integer"
43893 },
43894 "used" : {
43895 "description" : "Used space. Please note that most storage plugins do not report anything useful here.",
43896 "optional" : 1,
43897 "renderer" : "bytes",
43898 "type" : "integer"
43899 },
43900 "verification" : {
43901 "description" : "Last backup verification result, only useful for PBS storages.",
43902 "optional" : 1,
43903 "properties" : {
43904 "state" : {
43905 "description" : "Last backup verification state.",
43906 "type" : "string"
43907 },
43908 "upid" : {
43909 "description" : "Last backup verification UPID.",
43910 "type" : "string"
43911 }
43912 },
43913 "type" : "object"
43914 },
43915 "vmid" : {
43916 "description" : "Associated Owner VMID.",
43917 "optional" : 1,
43918 "type" : "integer"
43919 },
43920 "volid" : {
43921 "description" : "Volume identifier.",
43922 "type" : "string"
43923 }
43924 },
43925 "type" : "object"
43926 },
43927 "links" : [
43928 {
43929 "href" : "{volid}",
43930 "rel" : "child"
43931 }
43932 ],
43933 "type" : "array"
43934 }
43935 },
43936 "POST" : {
43937 "allowtoken" : 1,
43938 "description" : "Allocate disk images.",
43939 "method" : "POST",
43940 "name" : "create",
43941 "parameters" : {
43942 "additionalProperties" : 0,
43943 "properties" : {
43944 "filename" : {
43945 "description" : "The name of the file to create.",
43946 "type" : "string",
43947 "typetext" : "<string>"
43948 },
43949 "format" : {
43950 "enum" : [
43951 "raw",
43952 "qcow2",
43953 "subvol"
43954 ],
43955 "optional" : 1,
43956 "requires" : "size",
43957 "type" : "string"
43958 },
43959 "node" : {
43960 "description" : "The cluster node name.",
43961 "format" : "pve-node",
43962 "type" : "string",
43963 "typetext" : "<string>"
43964 },
43965 "size" : {
43966 "description" : "Size in kilobyte (1024 bytes). Optional suffixes 'M' (megabyte, 1024K) and 'G' (gigabyte, 1024M)",
43967 "pattern" : "\\d+[MG]?",
43968 "type" : "string"
43969 },
43970 "storage" : {
43971 "description" : "The storage identifier.",
43972 "format" : "pve-storage-id",
43973 "format_description" : "storage ID",
43974 "type" : "string",
43975 "typetext" : "<storage ID>"
43976 },
43977 "vmid" : {
43978 "description" : "Specify owner VM",
43979 "format" : "pve-vmid",
43980 "maximum" : 999999999,
43981 "minimum" : 100,
43982 "type" : "integer",
43983 "typetext" : "<integer> (100 - 999999999)"
43984 }
43985 }
43986 },
43987 "permissions" : {
43988 "check" : [
43989 "perm",
43990 "/storage/{storage}",
43991 [
43992 "Datastore.AllocateSpace"
43993 ]
43994 ]
43995 },
43996 "protected" : 1,
43997 "proxyto" : "node",
43998 "returns" : {
43999 "description" : "Volume identifier",
44000 "type" : "string"
44001 }
44002 }
44003 },
44004 "leaf" : 0,
44005 "path" : "/nodes/{node}/storage/{storage}/content",
44006 "text" : "content"
44007 },
44008 {
44009 "children" : [
44010 {
44011 "info" : {
44012 "GET" : {
44013 "allowtoken" : 1,
44014 "description" : "List files and directories for single file restore under the given path.",
44015 "method" : "GET",
44016 "name" : "list",
44017 "parameters" : {
44018 "additionalProperties" : 0,
44019 "properties" : {
44020 "filepath" : {
44021 "description" : "base64-path to the directory or file being listed, or \"/\".",
44022 "type" : "string",
44023 "typetext" : "<string>"
44024 },
44025 "node" : {
44026 "description" : "The cluster node name.",
44027 "format" : "pve-node",
44028 "type" : "string",
44029 "typetext" : "<string>"
44030 },
44031 "storage" : {
44032 "description" : "The storage identifier.",
44033 "format" : "pve-storage-id",
44034 "format_description" : "storage ID",
44035 "type" : "string",
44036 "typetext" : "<storage ID>"
44037 },
44038 "volume" : {
44039 "description" : "Backup volume ID or name. Currently only PBS snapshots are supported.",
44040 "type" : "string",
44041 "typetext" : "<string>"
44042 }
44043 }
44044 },
44045 "permissions" : {
44046 "description" : "You need read access for the volume.",
44047 "user" : "all"
44048 },
44049 "protected" : 1,
44050 "proxyto" : "node",
44051 "returns" : {
44052 "items" : {
44053 "properties" : {
44054 "filepath" : {
44055 "description" : "base64 path of the current entry",
44056 "type" : "string"
44057 },
44058 "leaf" : {
44059 "description" : "If this entry is a leaf in the directory graph.",
44060 "type" : "boolean"
44061 },
44062 "mtime" : {
44063 "description" : "Entry last-modified time (unix timestamp).",
44064 "optional" : 1,
44065 "type" : "integer"
44066 },
44067 "size" : {
44068 "description" : "Entry file size.",
44069 "optional" : 1,
44070 "type" : "integer"
44071 },
44072 "text" : {
44073 "description" : "Entry display text.",
44074 "type" : "string"
44075 },
44076 "type" : {
44077 "description" : "Entry type.",
44078 "type" : "string"
44079 }
44080 },
44081 "type" : "object"
44082 },
44083 "type" : "array"
44084 }
44085 }
44086 },
44087 "leaf" : 1,
44088 "path" : "/nodes/{node}/storage/{storage}/file-restore/list",
44089 "text" : "list"
44090 },
44091 {
44092 "info" : {
44093 "GET" : {
44094 "allowtoken" : 1,
44095 "description" : "Extract a file or directory (as zip archive) from a PBS backup.",
44096 "method" : "GET",
44097 "name" : "download",
44098 "parameters" : {
44099 "additionalProperties" : 0,
44100 "properties" : {
44101 "filepath" : {
44102 "description" : "base64-path to the directory or file to download.",
44103 "type" : "string",
44104 "typetext" : "<string>"
44105 },
44106 "node" : {
44107 "description" : "The cluster node name.",
44108 "format" : "pve-node",
44109 "type" : "string",
44110 "typetext" : "<string>"
44111 },
44112 "storage" : {
44113 "description" : "The storage identifier.",
44114 "format" : "pve-storage-id",
44115 "format_description" : "storage ID",
44116 "type" : "string",
44117 "typetext" : "<storage ID>"
44118 },
44119 "tar" : {
44120 "default" : 0,
44121 "description" : "Download dirs as 'tar.zst' instead of 'zip'.",
44122 "optional" : 1,
44123 "type" : "boolean",
44124 "typetext" : "<boolean>"
44125 },
44126 "volume" : {
44127 "description" : "Backup volume ID or name. Currently only PBS snapshots are supported.",
44128 "type" : "string",
44129 "typetext" : "<string>"
44130 }
44131 }
44132 },
44133 "permissions" : {
44134 "description" : "You need read access for the volume.",
44135 "user" : "all"
44136 },
44137 "protected" : 1,
44138 "proxyto" : "node",
44139 "returns" : {
44140 "type" : "any"
44141 }
44142 }
44143 },
44144 "leaf" : 1,
44145 "path" : "/nodes/{node}/storage/{storage}/file-restore/download",
44146 "text" : "download"
44147 }
44148 ],
44149 "leaf" : 0,
44150 "path" : "/nodes/{node}/storage/{storage}/file-restore",
44151 "text" : "file-restore"
44152 },
44153 {
44154 "info" : {
44155 "GET" : {
44156 "allowtoken" : 1,
44157 "description" : "Read storage status.",
44158 "method" : "GET",
44159 "name" : "read_status",
44160 "parameters" : {
44161 "additionalProperties" : 0,
44162 "properties" : {
44163 "node" : {
44164 "description" : "The cluster node name.",
44165 "format" : "pve-node",
44166 "type" : "string",
44167 "typetext" : "<string>"
44168 },
44169 "storage" : {
44170 "description" : "The storage identifier.",
44171 "format" : "pve-storage-id",
44172 "format_description" : "storage ID",
44173 "type" : "string",
44174 "typetext" : "<storage ID>"
44175 }
44176 }
44177 },
44178 "permissions" : {
44179 "check" : [
44180 "perm",
44181 "/storage/{storage}",
44182 [
44183 "Datastore.Audit",
44184 "Datastore.AllocateSpace"
44185 ],
44186 "any",
44187 1
44188 ]
44189 },
44190 "protected" : 1,
44191 "proxyto" : "node",
44192 "returns" : {
44193 "type" : "object"
44194 }
44195 }
44196 },
44197 "leaf" : 1,
44198 "path" : "/nodes/{node}/storage/{storage}/status",
44199 "text" : "status"
44200 },
44201 {
44202 "info" : {
44203 "GET" : {
44204 "allowtoken" : 1,
44205 "description" : "Read storage RRD statistics (returns PNG).",
44206 "method" : "GET",
44207 "name" : "rrd",
44208 "parameters" : {
44209 "additionalProperties" : 0,
44210 "properties" : {
44211 "cf" : {
44212 "description" : "The RRD consolidation function",
44213 "enum" : [
44214 "AVERAGE",
44215 "MAX"
44216 ],
44217 "optional" : 1,
44218 "type" : "string"
44219 },
44220 "ds" : {
44221 "description" : "The list of datasources you want to display.",
44222 "format" : "pve-configid-list",
44223 "type" : "string",
44224 "typetext" : "<string>"
44225 },
44226 "node" : {
44227 "description" : "The cluster node name.",
44228 "format" : "pve-node",
44229 "type" : "string",
44230 "typetext" : "<string>"
44231 },
44232 "storage" : {
44233 "description" : "The storage identifier.",
44234 "format" : "pve-storage-id",
44235 "format_description" : "storage ID",
44236 "type" : "string",
44237 "typetext" : "<storage ID>"
44238 },
44239 "timeframe" : {
44240 "description" : "Specify the time frame you are interested in.",
44241 "enum" : [
44242 "hour",
44243 "day",
44244 "week",
44245 "month",
44246 "year"
44247 ],
44248 "type" : "string"
44249 }
44250 }
44251 },
44252 "permissions" : {
44253 "check" : [
44254 "perm",
44255 "/storage/{storage}",
44256 [
44257 "Datastore.Audit",
44258 "Datastore.AllocateSpace"
44259 ],
44260 "any",
44261 1
44262 ]
44263 },
44264 "protected" : 1,
44265 "proxyto" : "node",
44266 "returns" : {
44267 "properties" : {
44268 "filename" : {
44269 "type" : "string"
44270 }
44271 },
44272 "type" : "object"
44273 }
44274 }
44275 },
44276 "leaf" : 1,
44277 "path" : "/nodes/{node}/storage/{storage}/rrd",
44278 "text" : "rrd"
44279 },
44280 {
44281 "info" : {
44282 "GET" : {
44283 "allowtoken" : 1,
44284 "description" : "Read storage RRD statistics.",
44285 "method" : "GET",
44286 "name" : "rrddata",
44287 "parameters" : {
44288 "additionalProperties" : 0,
44289 "properties" : {
44290 "cf" : {
44291 "description" : "The RRD consolidation function",
44292 "enum" : [
44293 "AVERAGE",
44294 "MAX"
44295 ],
44296 "optional" : 1,
44297 "type" : "string"
44298 },
44299 "node" : {
44300 "description" : "The cluster node name.",
44301 "format" : "pve-node",
44302 "type" : "string",
44303 "typetext" : "<string>"
44304 },
44305 "storage" : {
44306 "description" : "The storage identifier.",
44307 "format" : "pve-storage-id",
44308 "format_description" : "storage ID",
44309 "type" : "string",
44310 "typetext" : "<storage ID>"
44311 },
44312 "timeframe" : {
44313 "description" : "Specify the time frame you are interested in.",
44314 "enum" : [
44315 "hour",
44316 "day",
44317 "week",
44318 "month",
44319 "year"
44320 ],
44321 "type" : "string"
44322 }
44323 }
44324 },
44325 "permissions" : {
44326 "check" : [
44327 "perm",
44328 "/storage/{storage}",
44329 [
44330 "Datastore.Audit",
44331 "Datastore.AllocateSpace"
44332 ],
44333 "any",
44334 1
44335 ]
44336 },
44337 "protected" : 1,
44338 "proxyto" : "node",
44339 "returns" : {
44340 "items" : {
44341 "properties" : {},
44342 "type" : "object"
44343 },
44344 "type" : "array"
44345 }
44346 }
44347 },
44348 "leaf" : 1,
44349 "path" : "/nodes/{node}/storage/{storage}/rrddata",
44350 "text" : "rrddata"
44351 },
44352 {
44353 "info" : {
44354 "POST" : {
44355 "allowtoken" : 1,
44356 "description" : "Upload templates and ISO images.",
44357 "method" : "POST",
44358 "name" : "upload",
44359 "parameters" : {
44360 "additionalProperties" : 0,
44361 "properties" : {
44362 "checksum" : {
44363 "description" : "The expected checksum of the file.",
44364 "optional" : 1,
44365 "requires" : "checksum-algorithm",
44366 "type" : "string",
44367 "typetext" : "<string>"
44368 },
44369 "checksum-algorithm" : {
44370 "description" : "The algorithm to calculate the checksum of the file.",
44371 "enum" : [
44372 "md5",
44373 "sha1",
44374 "sha224",
44375 "sha256",
44376 "sha384",
44377 "sha512"
44378 ],
44379 "optional" : 1,
44380 "requires" : "checksum",
44381 "type" : "string"
44382 },
44383 "content" : {
44384 "description" : "Content type.",
44385 "enum" : [
44386 "iso",
44387 "vztmpl"
44388 ],
44389 "format" : "pve-storage-content",
44390 "type" : "string"
44391 },
44392 "filename" : {
44393 "description" : "The name of the file to create. Caution: This will be normalized!",
44394 "maxLength" : 255,
44395 "type" : "string",
44396 "typetext" : "<string>"
44397 },
44398 "node" : {
44399 "description" : "The cluster node name.",
44400 "format" : "pve-node",
44401 "type" : "string",
44402 "typetext" : "<string>"
44403 },
44404 "storage" : {
44405 "description" : "The storage identifier.",
44406 "format" : "pve-storage-id",
44407 "format_description" : "storage ID",
44408 "type" : "string",
44409 "typetext" : "<storage ID>"
44410 },
44411 "tmpfilename" : {
44412 "description" : "The source file name. This parameter is usually set by the REST handler. You can only overwrite it when connecting to the trusted port on localhost.",
44413 "optional" : 1,
44414 "pattern" : "/var/tmp/pveupload-[0-9a-f]+",
44415 "type" : "string"
44416 }
44417 }
44418 },
44419 "permissions" : {
44420 "check" : [
44421 "perm",
44422 "/storage/{storage}",
44423 [
44424 "Datastore.AllocateTemplate"
44425 ]
44426 ]
44427 },
44428 "protected" : 1,
44429 "returns" : {
44430 "type" : "string"
44431 }
44432 }
44433 },
44434 "leaf" : 1,
44435 "path" : "/nodes/{node}/storage/{storage}/upload",
44436 "text" : "upload"
44437 },
44438 {
44439 "info" : {
44440 "POST" : {
44441 "allowtoken" : 1,
44442 "description" : "Download templates and ISO images by using an URL.",
44443 "method" : "POST",
44444 "name" : "download_url",
44445 "parameters" : {
44446 "additionalProperties" : 0,
44447 "properties" : {
44448 "checksum" : {
44449 "description" : "The expected checksum of the file.",
44450 "optional" : 1,
44451 "requires" : "checksum-algorithm",
44452 "type" : "string",
44453 "typetext" : "<string>"
44454 },
44455 "checksum-algorithm" : {
44456 "description" : "The algorithm to calculate the checksum of the file.",
44457 "enum" : [
44458 "md5",
44459 "sha1",
44460 "sha224",
44461 "sha256",
44462 "sha384",
44463 "sha512"
44464 ],
44465 "optional" : 1,
44466 "requires" : "checksum",
44467 "type" : "string"
44468 },
44469 "compression" : {
44470 "description" : "Decompress the downloaded file using the specified compression algorithm.",
44471 "enum" : null,
44472 "optional" : 1,
44473 "type" : "string",
44474 "typetext" : "<string>"
44475 },
44476 "content" : {
44477 "description" : "Content type.",
44478 "enum" : [
44479 "iso",
44480 "vztmpl"
44481 ],
44482 "format" : "pve-storage-content",
44483 "type" : "string"
44484 },
44485 "filename" : {
44486 "description" : "The name of the file to create. Caution: This will be normalized!",
44487 "maxLength" : 255,
44488 "type" : "string",
44489 "typetext" : "<string>"
44490 },
44491 "node" : {
44492 "description" : "The cluster node name.",
44493 "format" : "pve-node",
44494 "type" : "string",
44495 "typetext" : "<string>"
44496 },
44497 "storage" : {
44498 "description" : "The storage identifier.",
44499 "format" : "pve-storage-id",
44500 "format_description" : "storage ID",
44501 "type" : "string",
44502 "typetext" : "<storage ID>"
44503 },
44504 "url" : {
44505 "description" : "The URL to download the file from.",
44506 "pattern" : "https?://.*",
44507 "type" : "string"
44508 },
44509 "verify-certificates" : {
44510 "default" : 1,
44511 "description" : "If false, no SSL/TLS certificates will be verified.",
44512 "optional" : 1,
44513 "type" : "boolean",
44514 "typetext" : "<boolean>"
44515 }
44516 }
44517 },
44518 "permissions" : {
44519 "check" : [
44520 "and",
44521 [
44522 "perm",
44523 "/storage/{storage}",
44524 [
44525 "Datastore.AllocateTemplate"
44526 ]
44527 ],
44528 [
44529 "or",
44530 [
44531 "perm",
44532 "/",
44533 [
44534 "Sys.Audit",
44535 "Sys.Modify"
44536 ]
44537 ],
44538 [
44539 "perm",
44540 "/nodes/{node}",
44541 [
44542 "Sys.AccessNetwork"
44543 ]
44544 ]
44545 ]
44546 ],
44547 "description" : "Requires allocation access on the storage and as this allows one to probe the (local!) host network indirectly it also requires one of Sys.Modify on / (for backwards compatibility) or the newer Sys.AccessNetwork privilege on the node."
44548 },
44549 "protected" : 1,
44550 "proxyto" : "node",
44551 "returns" : {
44552 "type" : "string"
44553 }
44554 }
44555 },
44556 "leaf" : 1,
44557 "path" : "/nodes/{node}/storage/{storage}/download-url",
44558 "text" : "download-url"
44559 },
44560 {
44561 "info" : {
44562 "GET" : {
44563 "allowtoken" : 1,
44564 "description" : "Get the base parameters for creating a guest which imports data from a foreign importable guest, like an ESXi VM",
44565 "method" : "GET",
44566 "name" : "get_import_metadata",
44567 "parameters" : {
44568 "additionalProperties" : 0,
44569 "properties" : {
44570 "node" : {
44571 "description" : "The cluster node name.",
44572 "format" : "pve-node",
44573 "type" : "string",
44574 "typetext" : "<string>"
44575 },
44576 "storage" : {
44577 "description" : "The storage identifier.",
44578 "format" : "pve-storage-id",
44579 "format_description" : "storage ID",
44580 "type" : "string",
44581 "typetext" : "<storage ID>"
44582 },
44583 "volume" : {
44584 "description" : "Volume identifier for the guest archive/entry.",
44585 "type" : "string",
44586 "typetext" : "<string>"
44587 }
44588 }
44589 },
44590 "permissions" : {
44591 "description" : "You need read access for the volume.",
44592 "user" : "all"
44593 },
44594 "protected" : 1,
44595 "proxyto" : "node",
44596 "returns" : {
44597 "additionalProperties" : 0,
44598 "description" : "Information about how to import a guest.",
44599 "properties" : {
44600 "create-args" : {
44601 "additionalProperties" : 1,
44602 "description" : "Parameters which can be used in a call to create a VM or container.",
44603 "type" : "object"
44604 },
44605 "disks" : {
44606 "additionalProperties" : 1,
44607 "description" : "Recognised disk volumes as `$bus$id` => `$storeid:$path` map.",
44608 "optional" : 1,
44609 "type" : "object"
44610 },
44611 "net" : {
44612 "additionalProperties" : 1,
44613 "description" : "Recognised network interfaces as `net$id` => { ...params } object.",
44614 "optional" : 1,
44615 "type" : "object"
44616 },
44617 "source" : {
44618 "description" : "The type of the import-source of this guest volume.",
44619 "enum" : [
44620 "esxi"
44621 ],
44622 "type" : "string"
44623 },
44624 "type" : {
44625 "description" : "The type of guest this is going to produce.",
44626 "enum" : [
44627 "vm"
44628 ],
44629 "type" : "string"
44630 },
44631 "warnings" : {
44632 "description" : "List of known issues that can affect the import of a guest. Note that lack of warning does not imply that there cannot be any problems.",
44633 "items" : {
44634 "additionalProperties" : 1,
44635 "properties" : {
44636 "key" : {
44637 "description" : "Related subject (config) key of warning.",
44638 "optional" : 1,
44639 "type" : "string"
44640 },
44641 "type" : {
44642 "description" : "What this warning is about.",
44643 "enum" : [
44644 "cdrom-image-ignored",
44645 "efi-state-lost",
44646 "guest-is-running",
44647 "nvme-unsupported",
44648 "ovmf-with-lsi-unsupported",
44649 "serial-port-socket-only"
44650 ],
44651 "type" : "string"
44652 },
44653 "value" : {
44654 "description" : "Related subject (config) value of warning.",
44655 "optional" : 1,
44656 "type" : "string"
44657 }
44658 },
44659 "type" : "object"
44660 },
44661 "optional" : 1,
44662 "type" : "array"
44663 }
44664 },
44665 "type" : "object"
44666 }
44667 }
44668 },
44669 "leaf" : 1,
44670 "path" : "/nodes/{node}/storage/{storage}/import-metadata",
44671 "text" : "import-metadata"
44672 }
44673 ],
44674 "info" : {
44675 "GET" : {
44676 "allowtoken" : 1,
44677 "description" : "",
44678 "method" : "GET",
44679 "name" : "diridx",
44680 "parameters" : {
44681 "additionalProperties" : 0,
44682 "properties" : {
44683 "node" : {
44684 "description" : "The cluster node name.",
44685 "format" : "pve-node",
44686 "type" : "string",
44687 "typetext" : "<string>"
44688 },
44689 "storage" : {
44690 "description" : "The storage identifier.",
44691 "format" : "pve-storage-id",
44692 "format_description" : "storage ID",
44693 "type" : "string",
44694 "typetext" : "<storage ID>"
44695 }
44696 }
44697 },
44698 "permissions" : {
44699 "check" : [
44700 "perm",
44701 "/storage/{storage}",
44702 [
44703 "Datastore.Audit",
44704 "Datastore.AllocateSpace"
44705 ],
44706 "any",
44707 1
44708 ]
44709 },
44710 "returns" : {
44711 "items" : {
44712 "properties" : {
44713 "subdir" : {
44714 "type" : "string"
44715 }
44716 },
44717 "type" : "object"
44718 },
44719 "links" : [
44720 {
44721 "href" : "{subdir}",
44722 "rel" : "child"
44723 }
44724 ],
44725 "type" : "array"
44726 }
44727 }
44728 },
44729 "leaf" : 0,
44730 "path" : "/nodes/{node}/storage/{storage}",
44731 "text" : "{storage}"
44732 }
44733 ],
44734 "info" : {
44735 "GET" : {
44736 "allowtoken" : 1,
44737 "description" : "Get status for all datastores.",
44738 "method" : "GET",
44739 "name" : "index",
44740 "parameters" : {
44741 "additionalProperties" : 0,
44742 "properties" : {
44743 "content" : {
44744 "description" : "Only list stores which support this content type.",
44745 "format" : "pve-storage-content-list",
44746 "optional" : 1,
44747 "type" : "string",
44748 "typetext" : "<string>"
44749 },
44750 "enabled" : {
44751 "default" : 0,
44752 "description" : "Only list stores which are enabled (not disabled in config).",
44753 "optional" : 1,
44754 "type" : "boolean",
44755 "typetext" : "<boolean>"
44756 },
44757 "format" : {
44758 "default" : 0,
44759 "description" : "Include information about formats",
44760 "optional" : 1,
44761 "type" : "boolean",
44762 "typetext" : "<boolean>"
44763 },
44764 "node" : {
44765 "description" : "The cluster node name.",
44766 "format" : "pve-node",
44767 "type" : "string",
44768 "typetext" : "<string>"
44769 },
44770 "storage" : {
44771 "description" : "Only list status for specified storage",
44772 "format" : "pve-storage-id",
44773 "format_description" : "storage ID",
44774 "optional" : 1,
44775 "type" : "string",
44776 "typetext" : "<storage ID>"
44777 },
44778 "target" : {
44779 "description" : "If target is different to 'node', we only lists shared storages which content is accessible on this 'node' and the specified 'target' node.",
44780 "format" : "pve-node",
44781 "optional" : 1,
44782 "type" : "string",
44783 "typetext" : "<string>"
44784 }
44785 }
44786 },
44787 "permissions" : {
44788 "description" : "Only list entries where you have 'Datastore.Audit' or 'Datastore.AllocateSpace' permissions on '/storage/<storage>'",
44789 "user" : "all"
44790 },
44791 "protected" : 1,
44792 "proxyto" : "node",
44793 "returns" : {
44794 "items" : {
44795 "properties" : {
44796 "active" : {
44797 "description" : "Set when storage is accessible.",
44798 "optional" : 1,
44799 "type" : "boolean"
44800 },
44801 "avail" : {
44802 "description" : "Available storage space in bytes.",
44803 "optional" : 1,
44804 "renderer" : "bytes",
44805 "type" : "integer"
44806 },
44807 "content" : {
44808 "description" : "Allowed storage content types.",
44809 "format" : "pve-storage-content-list",
44810 "type" : "string"
44811 },
44812 "enabled" : {
44813 "description" : "Set when storage is enabled (not disabled).",
44814 "optional" : 1,
44815 "type" : "boolean"
44816 },
44817 "shared" : {
44818 "description" : "Shared flag from storage configuration.",
44819 "optional" : 1,
44820 "type" : "boolean"
44821 },
44822 "storage" : {
44823 "description" : "The storage identifier.",
44824 "format" : "pve-storage-id",
44825 "format_description" : "storage ID",
44826 "type" : "string"
44827 },
44828 "total" : {
44829 "description" : "Total storage space in bytes.",
44830 "optional" : 1,
44831 "renderer" : "bytes",
44832 "type" : "integer"
44833 },
44834 "type" : {
44835 "description" : "Storage type.",
44836 "type" : "string"
44837 },
44838 "used" : {
44839 "description" : "Used storage space in bytes.",
44840 "optional" : 1,
44841 "renderer" : "bytes",
44842 "type" : "integer"
44843 },
44844 "used_fraction" : {
44845 "description" : "Used fraction (used/total).",
44846 "optional" : 1,
44847 "renderer" : "fraction_as_percentage",
44848 "type" : "number"
44849 }
44850 },
44851 "type" : "object"
44852 },
44853 "links" : [
44854 {
44855 "href" : "{storage}",
44856 "rel" : "child"
44857 }
44858 ],
44859 "type" : "array"
44860 }
44861 }
44862 },
44863 "leaf" : 0,
44864 "path" : "/nodes/{node}/storage",
44865 "text" : "storage"
44866 },
44867 {
44868 "children" : [
44869 {
44870 "children" : [
44871 {
44872 "info" : {
44873 "DELETE" : {
44874 "allowtoken" : 1,
44875 "description" : "Remove an LVM Volume Group.",
44876 "method" : "DELETE",
44877 "name" : "delete",
44878 "parameters" : {
44879 "additionalProperties" : 0,
44880 "properties" : {
44881 "cleanup-config" : {
44882 "default" : 0,
44883 "description" : "Marks associated storage(s) as not available on this node anymore or removes them from the configuration (if configured for this node only).",
44884 "optional" : 1,
44885 "type" : "boolean",
44886 "typetext" : "<boolean>"
44887 },
44888 "cleanup-disks" : {
44889 "default" : 0,
44890 "description" : "Also wipe disks so they can be repurposed afterwards.",
44891 "optional" : 1,
44892 "type" : "boolean",
44893 "typetext" : "<boolean>"
44894 },
44895 "name" : {
44896 "description" : "The storage identifier.",
44897 "format" : "pve-storage-id",
44898 "format_description" : "storage ID",
44899 "type" : "string",
44900 "typetext" : "<storage ID>"
44901 },
44902 "node" : {
44903 "description" : "The cluster node name.",
44904 "format" : "pve-node",
44905 "type" : "string",
44906 "typetext" : "<string>"
44907 }
44908 }
44909 },
44910 "permissions" : {
44911 "check" : [
44912 "perm",
44913 "/",
44914 [
44915 "Sys.Modify"
44916 ]
44917 ],
44918 "description" : "Requires additionally 'Datastore.Allocate' on /storage when setting 'cleanup-config'"
44919 },
44920 "protected" : 1,
44921 "proxyto" : "node",
44922 "returns" : {
44923 "type" : "string"
44924 }
44925 }
44926 },
44927 "leaf" : 1,
44928 "path" : "/nodes/{node}/disks/lvm/{name}",
44929 "text" : "{name}"
44930 }
44931 ],
44932 "info" : {
44933 "GET" : {
44934 "allowtoken" : 1,
44935 "description" : "List LVM Volume Groups",
44936 "method" : "GET",
44937 "name" : "index",
44938 "parameters" : {
44939 "additionalProperties" : 0,
44940 "properties" : {
44941 "node" : {
44942 "description" : "The cluster node name.",
44943 "format" : "pve-node",
44944 "type" : "string",
44945 "typetext" : "<string>"
44946 }
44947 }
44948 },
44949 "permissions" : {
44950 "check" : [
44951 "perm",
44952 "/",
44953 [
44954 "Sys.Audit"
44955 ]
44956 ]
44957 },
44958 "protected" : 1,
44959 "proxyto" : "node",
44960 "returns" : {
44961 "properties" : {
44962 "children" : {
44963 "items" : {
44964 "properties" : {
44965 "children" : {
44966 "description" : "The underlying physical volumes",
44967 "items" : {
44968 "properties" : {
44969 "free" : {
44970 "description" : "The free bytes in the physical volume",
44971 "type" : "integer"
44972 },
44973 "leaf" : {
44974 "type" : "boolean"
44975 },
44976 "name" : {
44977 "description" : "The name of the physical volume",
44978 "type" : "string"
44979 },
44980 "size" : {
44981 "description" : "The size of the physical volume in bytes",
44982 "type" : "integer"
44983 }
44984 },
44985 "type" : "object"
44986 },
44987 "optional" : 1,
44988 "type" : "array"
44989 },
44990 "free" : {
44991 "description" : "The free bytes in the volume group",
44992 "type" : "integer"
44993 },
44994 "leaf" : {
44995 "type" : "boolean"
44996 },
44997 "name" : {
44998 "description" : "The name of the volume group",
44999 "type" : "string"
45000 },
45001 "size" : {
45002 "description" : "The size of the volume group in bytes",
45003 "type" : "integer"
45004 }
45005 },
45006 "type" : "object"
45007 },
45008 "type" : "array"
45009 },
45010 "leaf" : {
45011 "type" : "boolean"
45012 }
45013 },
45014 "type" : "object"
45015 }
45016 },
45017 "POST" : {
45018 "allowtoken" : 1,
45019 "description" : "Create an LVM Volume Group",
45020 "method" : "POST",
45021 "name" : "create",
45022 "parameters" : {
45023 "additionalProperties" : 0,
45024 "properties" : {
45025 "add_storage" : {
45026 "default" : 0,
45027 "description" : "Configure storage using the Volume Group",
45028 "optional" : 1,
45029 "type" : "boolean",
45030 "typetext" : "<boolean>"
45031 },
45032 "device" : {
45033 "description" : "The block device you want to create the volume group on",
45034 "type" : "string",
45035 "typetext" : "<string>"
45036 },
45037 "name" : {
45038 "description" : "The storage identifier.",
45039 "format" : "pve-storage-id",
45040 "format_description" : "storage ID",
45041 "type" : "string",
45042 "typetext" : "<storage ID>"
45043 },
45044 "node" : {
45045 "description" : "The cluster node name.",
45046 "format" : "pve-node",
45047 "type" : "string",
45048 "typetext" : "<string>"
45049 }
45050 }
45051 },
45052 "permissions" : {
45053 "check" : [
45054 "perm",
45055 "/",
45056 [
45057 "Sys.Modify"
45058 ]
45059 ],
45060 "description" : "Requires additionally 'Datastore.Allocate' on /storage when setting 'add_storage'"
45061 },
45062 "protected" : 1,
45063 "proxyto" : "node",
45064 "returns" : {
45065 "type" : "string"
45066 }
45067 }
45068 },
45069 "leaf" : 0,
45070 "path" : "/nodes/{node}/disks/lvm",
45071 "text" : "lvm"
45072 },
45073 {
45074 "children" : [
45075 {
45076 "info" : {
45077 "DELETE" : {
45078 "allowtoken" : 1,
45079 "description" : "Remove an LVM thin pool.",
45080 "method" : "DELETE",
45081 "name" : "delete",
45082 "parameters" : {
45083 "additionalProperties" : 0,
45084 "properties" : {
45085 "cleanup-config" : {
45086 "default" : 0,
45087 "description" : "Marks associated storage(s) as not available on this node anymore or removes them from the configuration (if configured for this node only).",
45088 "optional" : 1,
45089 "type" : "boolean",
45090 "typetext" : "<boolean>"
45091 },
45092 "cleanup-disks" : {
45093 "default" : 0,
45094 "description" : "Also wipe disks so they can be repurposed afterwards.",
45095 "optional" : 1,
45096 "type" : "boolean",
45097 "typetext" : "<boolean>"
45098 },
45099 "name" : {
45100 "description" : "The storage identifier.",
45101 "format" : "pve-storage-id",
45102 "format_description" : "storage ID",
45103 "type" : "string",
45104 "typetext" : "<storage ID>"
45105 },
45106 "node" : {
45107 "description" : "The cluster node name.",
45108 "format" : "pve-node",
45109 "type" : "string",
45110 "typetext" : "<string>"
45111 },
45112 "volume-group" : {
45113 "description" : "The storage identifier.",
45114 "format" : "pve-storage-id",
45115 "format_description" : "storage ID",
45116 "type" : "string",
45117 "typetext" : "<storage ID>"
45118 }
45119 }
45120 },
45121 "permissions" : {
45122 "check" : [
45123 "perm",
45124 "/",
45125 [
45126 "Sys.Modify"
45127 ]
45128 ],
45129 "description" : "Requires additionally 'Datastore.Allocate' on /storage when setting 'cleanup-config'"
45130 },
45131 "protected" : 1,
45132 "proxyto" : "node",
45133 "returns" : {
45134 "type" : "string"
45135 }
45136 }
45137 },
45138 "leaf" : 1,
45139 "path" : "/nodes/{node}/disks/lvmthin/{name}",
45140 "text" : "{name}"
45141 }
45142 ],
45143 "info" : {
45144 "GET" : {
45145 "allowtoken" : 1,
45146 "description" : "List LVM thinpools",
45147 "method" : "GET",
45148 "name" : "index",
45149 "parameters" : {
45150 "additionalProperties" : 0,
45151 "properties" : {
45152 "node" : {
45153 "description" : "The cluster node name.",
45154 "format" : "pve-node",
45155 "type" : "string",
45156 "typetext" : "<string>"
45157 }
45158 }
45159 },
45160 "permissions" : {
45161 "check" : [
45162 "perm",
45163 "/",
45164 [
45165 "Sys.Audit"
45166 ]
45167 ]
45168 },
45169 "protected" : 1,
45170 "proxyto" : "node",
45171 "returns" : {
45172 "items" : {
45173 "properties" : {
45174 "lv" : {
45175 "description" : "The name of the thinpool.",
45176 "type" : "string"
45177 },
45178 "lv_size" : {
45179 "description" : "The size of the thinpool in bytes.",
45180 "type" : "integer"
45181 },
45182 "metadata_size" : {
45183 "description" : "The size of the metadata lv in bytes.",
45184 "type" : "integer"
45185 },
45186 "metadata_used" : {
45187 "description" : "The used bytes of the metadata lv.",
45188 "type" : "integer"
45189 },
45190 "used" : {
45191 "description" : "The used bytes of the thinpool.",
45192 "type" : "integer"
45193 },
45194 "vg" : {
45195 "description" : "The associated volume group.",
45196 "type" : "string"
45197 }
45198 },
45199 "type" : "object"
45200 },
45201 "type" : "array"
45202 }
45203 },
45204 "POST" : {
45205 "allowtoken" : 1,
45206 "description" : "Create an LVM thinpool",
45207 "method" : "POST",
45208 "name" : "create",
45209 "parameters" : {
45210 "additionalProperties" : 0,
45211 "properties" : {
45212 "add_storage" : {
45213 "default" : 0,
45214 "description" : "Configure storage using the thinpool.",
45215 "optional" : 1,
45216 "type" : "boolean",
45217 "typetext" : "<boolean>"
45218 },
45219 "device" : {
45220 "description" : "The block device you want to create the thinpool on.",
45221 "type" : "string",
45222 "typetext" : "<string>"
45223 },
45224 "name" : {
45225 "description" : "The storage identifier.",
45226 "format" : "pve-storage-id",
45227 "format_description" : "storage ID",
45228 "type" : "string",
45229 "typetext" : "<storage ID>"
45230 },
45231 "node" : {
45232 "description" : "The cluster node name.",
45233 "format" : "pve-node",
45234 "type" : "string",
45235 "typetext" : "<string>"
45236 }
45237 }
45238 },
45239 "permissions" : {
45240 "check" : [
45241 "perm",
45242 "/",
45243 [
45244 "Sys.Modify"
45245 ]
45246 ],
45247 "description" : "Requires additionally 'Datastore.Allocate' on /storage when setting 'add_storage'"
45248 },
45249 "protected" : 1,
45250 "proxyto" : "node",
45251 "returns" : {
45252 "type" : "string"
45253 }
45254 }
45255 },
45256 "leaf" : 0,
45257 "path" : "/nodes/{node}/disks/lvmthin",
45258 "text" : "lvmthin"
45259 },
45260 {
45261 "children" : [
45262 {
45263 "info" : {
45264 "DELETE" : {
45265 "allowtoken" : 1,
45266 "description" : "Unmounts the storage and removes the mount unit.",
45267 "method" : "DELETE",
45268 "name" : "delete",
45269 "parameters" : {
45270 "additionalProperties" : 0,
45271 "properties" : {
45272 "cleanup-config" : {
45273 "default" : 0,
45274 "description" : "Marks associated storage(s) as not available on this node anymore or removes them from the configuration (if configured for this node only).",
45275 "optional" : 1,
45276 "type" : "boolean",
45277 "typetext" : "<boolean>"
45278 },
45279 "cleanup-disks" : {
45280 "default" : 0,
45281 "description" : "Also wipe disk so it can be repurposed afterwards.",
45282 "optional" : 1,
45283 "type" : "boolean",
45284 "typetext" : "<boolean>"
45285 },
45286 "name" : {
45287 "description" : "The storage identifier.",
45288 "format" : "pve-storage-id",
45289 "format_description" : "storage ID",
45290 "type" : "string",
45291 "typetext" : "<storage ID>"
45292 },
45293 "node" : {
45294 "description" : "The cluster node name.",
45295 "format" : "pve-node",
45296 "type" : "string",
45297 "typetext" : "<string>"
45298 }
45299 }
45300 },
45301 "permissions" : {
45302 "check" : [
45303 "perm",
45304 "/",
45305 [
45306 "Sys.Modify"
45307 ]
45308 ],
45309 "description" : "Requires additionally 'Datastore.Allocate' on /storage when setting 'cleanup-config'"
45310 },
45311 "protected" : 1,
45312 "proxyto" : "node",
45313 "returns" : {
45314 "type" : "string"
45315 }
45316 }
45317 },
45318 "leaf" : 1,
45319 "path" : "/nodes/{node}/disks/directory/{name}",
45320 "text" : "{name}"
45321 }
45322 ],
45323 "info" : {
45324 "GET" : {
45325 "allowtoken" : 1,
45326 "description" : "PVE Managed Directory storages.",
45327 "method" : "GET",
45328 "name" : "index",
45329 "parameters" : {
45330 "additionalProperties" : 0,
45331 "properties" : {
45332 "node" : {
45333 "description" : "The cluster node name.",
45334 "format" : "pve-node",
45335 "type" : "string",
45336 "typetext" : "<string>"
45337 }
45338 }
45339 },
45340 "permissions" : {
45341 "check" : [
45342 "perm",
45343 "/",
45344 [
45345 "Sys.Audit"
45346 ]
45347 ]
45348 },
45349 "protected" : 1,
45350 "proxyto" : "node",
45351 "returns" : {
45352 "items" : {
45353 "properties" : {
45354 "device" : {
45355 "description" : "The mounted device.",
45356 "type" : "string"
45357 },
45358 "options" : {
45359 "description" : "The mount options.",
45360 "type" : "string"
45361 },
45362 "path" : {
45363 "description" : "The mount path.",
45364 "type" : "string"
45365 },
45366 "type" : {
45367 "description" : "The filesystem type.",
45368 "type" : "string"
45369 },
45370 "unitfile" : {
45371 "description" : "The path of the mount unit.",
45372 "type" : "string"
45373 }
45374 },
45375 "type" : "object"
45376 },
45377 "type" : "array"
45378 }
45379 },
45380 "POST" : {
45381 "allowtoken" : 1,
45382 "description" : "Create a Filesystem on an unused disk. Will be mounted under '/mnt/pve/NAME'.",
45383 "method" : "POST",
45384 "name" : "create",
45385 "parameters" : {
45386 "additionalProperties" : 0,
45387 "properties" : {
45388 "add_storage" : {
45389 "default" : 0,
45390 "description" : "Configure storage using the directory.",
45391 "optional" : 1,
45392 "type" : "boolean",
45393 "typetext" : "<boolean>"
45394 },
45395 "device" : {
45396 "description" : "The block device you want to create the filesystem on.",
45397 "type" : "string",
45398 "typetext" : "<string>"
45399 },
45400 "filesystem" : {
45401 "default" : "ext4",
45402 "description" : "The desired filesystem.",
45403 "enum" : [
45404 "ext4",
45405 "xfs"
45406 ],
45407 "optional" : 1,
45408 "type" : "string"
45409 },
45410 "name" : {
45411 "description" : "The storage identifier.",
45412 "format" : "pve-storage-id",
45413 "format_description" : "storage ID",
45414 "type" : "string",
45415 "typetext" : "<storage ID>"
45416 },
45417 "node" : {
45418 "description" : "The cluster node name.",
45419 "format" : "pve-node",
45420 "type" : "string",
45421 "typetext" : "<string>"
45422 }
45423 }
45424 },
45425 "permissions" : {
45426 "check" : [
45427 "perm",
45428 "/",
45429 [
45430 "Sys.Modify"
45431 ]
45432 ],
45433 "description" : "Requires additionally 'Datastore.Allocate' on /storage when setting 'add_storage'"
45434 },
45435 "protected" : 1,
45436 "proxyto" : "node",
45437 "returns" : {
45438 "type" : "string"
45439 }
45440 }
45441 },
45442 "leaf" : 0,
45443 "path" : "/nodes/{node}/disks/directory",
45444 "text" : "directory"
45445 },
45446 {
45447 "children" : [
45448 {
45449 "info" : {
45450 "DELETE" : {
45451 "allowtoken" : 1,
45452 "description" : "Destroy a ZFS pool.",
45453 "method" : "DELETE",
45454 "name" : "delete",
45455 "parameters" : {
45456 "additionalProperties" : 0,
45457 "properties" : {
45458 "cleanup-config" : {
45459 "default" : 0,
45460 "description" : "Marks associated storage(s) as not available on this node anymore or removes them from the configuration (if configured for this node only).",
45461 "optional" : 1,
45462 "type" : "boolean",
45463 "typetext" : "<boolean>"
45464 },
45465 "cleanup-disks" : {
45466 "default" : 0,
45467 "description" : "Also wipe disks so they can be repurposed afterwards.",
45468 "optional" : 1,
45469 "type" : "boolean",
45470 "typetext" : "<boolean>"
45471 },
45472 "name" : {
45473 "description" : "The storage identifier.",
45474 "format" : "pve-storage-id",
45475 "format_description" : "storage ID",
45476 "type" : "string",
45477 "typetext" : "<storage ID>"
45478 },
45479 "node" : {
45480 "description" : "The cluster node name.",
45481 "format" : "pve-node",
45482 "type" : "string",
45483 "typetext" : "<string>"
45484 }
45485 }
45486 },
45487 "permissions" : {
45488 "check" : [
45489 "perm",
45490 "/",
45491 [
45492 "Sys.Modify"
45493 ]
45494 ],
45495 "description" : "Requires additionally 'Datastore.Allocate' on /storage when setting 'cleanup-config'"
45496 },
45497 "protected" : 1,
45498 "proxyto" : "node",
45499 "returns" : {
45500 "type" : "string"
45501 }
45502 },
45503 "GET" : {
45504 "allowtoken" : 1,
45505 "description" : "Get details about a zpool.",
45506 "method" : "GET",
45507 "name" : "detail",
45508 "parameters" : {
45509 "additionalProperties" : 0,
45510 "properties" : {
45511 "name" : {
45512 "description" : "The storage identifier.",
45513 "format" : "pve-storage-id",
45514 "format_description" : "storage ID",
45515 "type" : "string",
45516 "typetext" : "<storage ID>"
45517 },
45518 "node" : {
45519 "description" : "The cluster node name.",
45520 "format" : "pve-node",
45521 "type" : "string",
45522 "typetext" : "<string>"
45523 }
45524 }
45525 },
45526 "permissions" : {
45527 "check" : [
45528 "perm",
45529 "/",
45530 [
45531 "Sys.Audit"
45532 ]
45533 ]
45534 },
45535 "protected" : 1,
45536 "proxyto" : "node",
45537 "returns" : {
45538 "properties" : {
45539 "action" : {
45540 "description" : "Information about the recommended action to fix the state.",
45541 "optional" : 1,
45542 "type" : "string"
45543 },
45544 "children" : {
45545 "description" : "The pool configuration information, including the vdevs for each section (e.g. spares, cache), may be nested.",
45546 "items" : {
45547 "properties" : {
45548 "cksum" : {
45549 "optional" : 1,
45550 "type" : "number"
45551 },
45552 "msg" : {
45553 "description" : "An optional message about the vdev.",
45554 "type" : "string"
45555 },
45556 "name" : {
45557 "description" : "The name of the vdev or section.",
45558 "type" : "string"
45559 },
45560 "read" : {
45561 "optional" : 1,
45562 "type" : "number"
45563 },
45564 "state" : {
45565 "description" : "The state of the vdev.",
45566 "optional" : 1,
45567 "type" : "string"
45568 },
45569 "write" : {
45570 "optional" : 1,
45571 "type" : "number"
45572 }
45573 },
45574 "type" : "object"
45575 },
45576 "type" : "array"
45577 },
45578 "errors" : {
45579 "description" : "Information about the errors on the zpool.",
45580 "type" : "string"
45581 },
45582 "name" : {
45583 "description" : "The name of the zpool.",
45584 "type" : "string"
45585 },
45586 "scan" : {
45587 "description" : "Information about the last/current scrub.",
45588 "optional" : 1,
45589 "type" : "string"
45590 },
45591 "state" : {
45592 "description" : "The state of the zpool.",
45593 "type" : "string"
45594 },
45595 "status" : {
45596 "description" : "Information about the state of the zpool.",
45597 "optional" : 1,
45598 "type" : "string"
45599 }
45600 },
45601 "type" : "object"
45602 }
45603 }
45604 },
45605 "leaf" : 1,
45606 "path" : "/nodes/{node}/disks/zfs/{name}",
45607 "text" : "{name}"
45608 }
45609 ],
45610 "info" : {
45611 "GET" : {
45612 "allowtoken" : 1,
45613 "description" : "List Zpools.",
45614 "method" : "GET",
45615 "name" : "index",
45616 "parameters" : {
45617 "additionalProperties" : 0,
45618 "properties" : {
45619 "node" : {
45620 "description" : "The cluster node name.",
45621 "format" : "pve-node",
45622 "type" : "string",
45623 "typetext" : "<string>"
45624 }
45625 }
45626 },
45627 "permissions" : {
45628 "check" : [
45629 "perm",
45630 "/",
45631 [
45632 "Sys.Audit"
45633 ]
45634 ]
45635 },
45636 "protected" : 1,
45637 "proxyto" : "node",
45638 "returns" : {
45639 "items" : {
45640 "properties" : {
45641 "alloc" : {
45642 "description" : "",
45643 "type" : "integer"
45644 },
45645 "dedup" : {
45646 "description" : "",
45647 "type" : "number"
45648 },
45649 "frag" : {
45650 "description" : "",
45651 "type" : "integer"
45652 },
45653 "free" : {
45654 "description" : "",
45655 "type" : "integer"
45656 },
45657 "health" : {
45658 "description" : "",
45659 "type" : "string"
45660 },
45661 "name" : {
45662 "description" : "",
45663 "type" : "string"
45664 },
45665 "size" : {
45666 "description" : "",
45667 "type" : "integer"
45668 }
45669 },
45670 "type" : "object"
45671 },
45672 "links" : [
45673 {
45674 "href" : "{name}",
45675 "rel" : "child"
45676 }
45677 ],
45678 "type" : "array"
45679 }
45680 },
45681 "POST" : {
45682 "allowtoken" : 1,
45683 "description" : "Create a ZFS pool.",
45684 "method" : "POST",
45685 "name" : "create",
45686 "parameters" : {
45687 "additionalProperties" : 0,
45688 "properties" : {
45689 "add_storage" : {
45690 "default" : 0,
45691 "description" : "Configure storage using the zpool.",
45692 "optional" : 1,
45693 "type" : "boolean",
45694 "typetext" : "<boolean>"
45695 },
45696 "ashift" : {
45697 "default" : 12,
45698 "description" : "Pool sector size exponent.",
45699 "maximum" : 16,
45700 "minimum" : 9,
45701 "optional" : 1,
45702 "type" : "integer",
45703 "typetext" : "<integer> (9 - 16)"
45704 },
45705 "compression" : {
45706 "default" : "on",
45707 "description" : "The compression algorithm to use.",
45708 "enum" : [
45709 "on",
45710 "off",
45711 "gzip",
45712 "lz4",
45713 "lzjb",
45714 "zle",
45715 "zstd"
45716 ],
45717 "optional" : 1,
45718 "type" : "string"
45719 },
45720 "devices" : {
45721 "description" : "The block devices you want to create the zpool on.",
45722 "format" : "string-list",
45723 "type" : "string",
45724 "typetext" : "<string>"
45725 },
45726 "draid-config" : {
45727 "format" : {
45728 "data" : {
45729 "description" : "The number of data devices per redundancy group. (dRAID)",
45730 "minimum" : 1,
45731 "type" : "integer"
45732 },
45733 "spares" : {
45734 "description" : "Number of dRAID spares.",
45735 "minimum" : 0,
45736 "type" : "integer"
45737 }
45738 },
45739 "optional" : 1,
45740 "type" : "string",
45741 "typetext" : "data=<integer> ,spares=<integer>"
45742 },
45743 "name" : {
45744 "description" : "The storage identifier.",
45745 "format" : "pve-storage-id",
45746 "format_description" : "storage ID",
45747 "type" : "string",
45748 "typetext" : "<storage ID>"
45749 },
45750 "node" : {
45751 "description" : "The cluster node name.",
45752 "format" : "pve-node",
45753 "type" : "string",
45754 "typetext" : "<string>"
45755 },
45756 "raidlevel" : {
45757 "description" : "The RAID level to use.",
45758 "enum" : [
45759 "single",
45760 "mirror",
45761 "raid10",
45762 "raidz",
45763 "raidz2",
45764 "raidz3",
45765 "draid",
45766 "draid2",
45767 "draid3"
45768 ],
45769 "type" : "string"
45770 }
45771 }
45772 },
45773 "permissions" : {
45774 "check" : [
45775 "perm",
45776 "/",
45777 [
45778 "Sys.Modify"
45779 ]
45780 ],
45781 "description" : "Requires additionally 'Datastore.Allocate' on /storage when setting 'add_storage'"
45782 },
45783 "protected" : 1,
45784 "proxyto" : "node",
45785 "returns" : {
45786 "type" : "string"
45787 }
45788 }
45789 },
45790 "leaf" : 0,
45791 "path" : "/nodes/{node}/disks/zfs",
45792 "text" : "zfs"
45793 },
45794 {
45795 "info" : {
45796 "GET" : {
45797 "allowtoken" : 1,
45798 "description" : "List local disks.",
45799 "method" : "GET",
45800 "name" : "list",
45801 "parameters" : {
45802 "additionalProperties" : 0,
45803 "properties" : {
45804 "include-partitions" : {
45805 "default" : 0,
45806 "description" : "Also include partitions.",
45807 "optional" : 1,
45808 "type" : "boolean",
45809 "typetext" : "<boolean>"
45810 },
45811 "node" : {
45812 "description" : "The cluster node name.",
45813 "format" : "pve-node",
45814 "type" : "string",
45815 "typetext" : "<string>"
45816 },
45817 "skipsmart" : {
45818 "default" : 0,
45819 "description" : "Skip smart checks.",
45820 "optional" : 1,
45821 "type" : "boolean",
45822 "typetext" : "<boolean>"
45823 },
45824 "type" : {
45825 "description" : "Only list specific types of disks.",
45826 "enum" : [
45827 "unused",
45828 "journal_disks"
45829 ],
45830 "optional" : 1,
45831 "type" : "string"
45832 }
45833 }
45834 },
45835 "permissions" : {
45836 "check" : [
45837 "or",
45838 [
45839 "perm",
45840 "/",
45841 [
45842 "Sys.Audit"
45843 ]
45844 ],
45845 [
45846 "perm",
45847 "/nodes/{node}",
45848 [
45849 "Sys.Audit"
45850 ]
45851 ]
45852 ]
45853 },
45854 "protected" : 1,
45855 "proxyto" : "node",
45856 "returns" : {
45857 "items" : {
45858 "properties" : {
45859 "devpath" : {
45860 "description" : "The device path",
45861 "type" : "string"
45862 },
45863 "gpt" : {
45864 "type" : "boolean"
45865 },
45866 "health" : {
45867 "optional" : 1,
45868 "type" : "string"
45869 },
45870 "model" : {
45871 "optional" : 1,
45872 "type" : "string"
45873 },
45874 "mounted" : {
45875 "type" : "boolean"
45876 },
45877 "osdid" : {
45878 "type" : "integer"
45879 },
45880 "osdid-list" : {
45881 "items" : {
45882 "type" : "integer"
45883 },
45884 "type" : "array"
45885 },
45886 "parent" : {
45887 "description" : "For partitions only. The device path of the disk the partition resides on.",
45888 "optional" : 1,
45889 "type" : "string"
45890 },
45891 "serial" : {
45892 "optional" : 1,
45893 "type" : "string"
45894 },
45895 "size" : {
45896 "type" : "integer"
45897 },
45898 "used" : {
45899 "optional" : 1,
45900 "type" : "string"
45901 },
45902 "vendor" : {
45903 "optional" : 1,
45904 "type" : "string"
45905 },
45906 "wwn" : {
45907 "optional" : 1,
45908 "type" : "string"
45909 }
45910 },
45911 "type" : "object"
45912 },
45913 "type" : "array"
45914 }
45915 }
45916 },
45917 "leaf" : 1,
45918 "path" : "/nodes/{node}/disks/list",
45919 "text" : "list"
45920 },
45921 {
45922 "info" : {
45923 "GET" : {
45924 "allowtoken" : 1,
45925 "description" : "Get SMART Health of a disk.",
45926 "method" : "GET",
45927 "name" : "smart",
45928 "parameters" : {
45929 "additionalProperties" : 0,
45930 "properties" : {
45931 "disk" : {
45932 "description" : "Block device name",
45933 "pattern" : "^/dev/[a-zA-Z0-9\\/]+$",
45934 "type" : "string"
45935 },
45936 "healthonly" : {
45937 "description" : "If true returns only the health status",
45938 "optional" : 1,
45939 "type" : "boolean",
45940 "typetext" : "<boolean>"
45941 },
45942 "node" : {
45943 "description" : "The cluster node name.",
45944 "format" : "pve-node",
45945 "type" : "string",
45946 "typetext" : "<string>"
45947 }
45948 }
45949 },
45950 "permissions" : {
45951 "check" : [
45952 "perm",
45953 "/",
45954 [
45955 "Sys.Audit"
45956 ]
45957 ]
45958 },
45959 "protected" : 1,
45960 "proxyto" : "node",
45961 "returns" : {
45962 "properties" : {
45963 "attributes" : {
45964 "optional" : 1,
45965 "type" : "array"
45966 },
45967 "health" : {
45968 "type" : "string"
45969 },
45970 "text" : {
45971 "optional" : 1,
45972 "type" : "string"
45973 },
45974 "type" : {
45975 "optional" : 1,
45976 "type" : "string"
45977 }
45978 },
45979 "type" : "object"
45980 }
45981 }
45982 },
45983 "leaf" : 1,
45984 "path" : "/nodes/{node}/disks/smart",
45985 "text" : "smart"
45986 },
45987 {
45988 "info" : {
45989 "POST" : {
45990 "allowtoken" : 1,
45991 "description" : "Initialize Disk with GPT",
45992 "method" : "POST",
45993 "name" : "initgpt",
45994 "parameters" : {
45995 "additionalProperties" : 0,
45996 "properties" : {
45997 "disk" : {
45998 "description" : "Block device name",
45999 "pattern" : "^/dev/[a-zA-Z0-9\\/]+$",
46000 "type" : "string"
46001 },
46002 "node" : {
46003 "description" : "The cluster node name.",
46004 "format" : "pve-node",
46005 "type" : "string",
46006 "typetext" : "<string>"
46007 },
46008 "uuid" : {
46009 "description" : "UUID for the GPT table",
46010 "maxLength" : 36,
46011 "optional" : 1,
46012 "pattern" : "[a-fA-F0-9\\-]+",
46013 "type" : "string"
46014 }
46015 }
46016 },
46017 "permissions" : {
46018 "check" : [
46019 "perm",
46020 "/",
46021 [
46022 "Sys.Modify"
46023 ]
46024 ]
46025 },
46026 "protected" : 1,
46027 "proxyto" : "node",
46028 "returns" : {
46029 "type" : "string"
46030 }
46031 }
46032 },
46033 "leaf" : 1,
46034 "path" : "/nodes/{node}/disks/initgpt",
46035 "text" : "initgpt"
46036 },
46037 {
46038 "info" : {
46039 "PUT" : {
46040 "allowtoken" : 1,
46041 "description" : "Wipe a disk or partition.",
46042 "method" : "PUT",
46043 "name" : "wipe_disk",
46044 "parameters" : {
46045 "additionalProperties" : 0,
46046 "properties" : {
46047 "disk" : {
46048 "description" : "Block device name",
46049 "pattern" : "^/dev/[a-zA-Z0-9\\/]+$",
46050 "type" : "string"
46051 },
46052 "node" : {
46053 "description" : "The cluster node name.",
46054 "format" : "pve-node",
46055 "type" : "string",
46056 "typetext" : "<string>"
46057 }
46058 }
46059 },
46060 "protected" : 1,
46061 "proxyto" : "node",
46062 "returns" : {
46063 "type" : "string"
46064 }
46065 }
46066 },
46067 "leaf" : 1,
46068 "path" : "/nodes/{node}/disks/wipedisk",
46069 "text" : "wipedisk"
46070 }
46071 ],
46072 "info" : {
46073 "GET" : {
46074 "allowtoken" : 1,
46075 "description" : "Node index.",
46076 "method" : "GET",
46077 "name" : "index",
46078 "parameters" : {
46079 "additionalProperties" : 0,
46080 "properties" : {
46081 "node" : {
46082 "description" : "The cluster node name.",
46083 "format" : "pve-node",
46084 "type" : "string",
46085 "typetext" : "<string>"
46086 }
46087 }
46088 },
46089 "permissions" : {
46090 "user" : "all"
46091 },
46092 "proxyto" : "node",
46093 "returns" : {
46094 "items" : {
46095 "properties" : {},
46096 "type" : "object"
46097 },
46098 "links" : [
46099 {
46100 "href" : "{name}",
46101 "rel" : "child"
46102 }
46103 ],
46104 "type" : "array"
46105 }
46106 }
46107 },
46108 "leaf" : 0,
46109 "path" : "/nodes/{node}/disks",
46110 "text" : "disks"
46111 },
46112 {
46113 "children" : [
46114 {
46115 "info" : {
46116 "GET" : {
46117 "allowtoken" : 1,
46118 "description" : "List available updates.",
46119 "method" : "GET",
46120 "name" : "list_updates",
46121 "parameters" : {
46122 "additionalProperties" : 0,
46123 "properties" : {
46124 "node" : {
46125 "description" : "The cluster node name.",
46126 "format" : "pve-node",
46127 "type" : "string",
46128 "typetext" : "<string>"
46129 }
46130 }
46131 },
46132 "permissions" : {
46133 "check" : [
46134 "perm",
46135 "/nodes/{node}",
46136 [
46137 "Sys.Modify"
46138 ]
46139 ]
46140 },
46141 "protected" : 1,
46142 "proxyto" : "node",
46143 "returns" : {
46144 "items" : {
46145 "properties" : {},
46146 "type" : "object"
46147 },
46148 "type" : "array"
46149 }
46150 },
46151 "POST" : {
46152 "allowtoken" : 1,
46153 "description" : "This is used to resynchronize the package index files from their sources (apt-get update).",
46154 "method" : "POST",
46155 "name" : "update_database",
46156 "parameters" : {
46157 "additionalProperties" : 0,
46158 "properties" : {
46159 "node" : {
46160 "description" : "The cluster node name.",
46161 "format" : "pve-node",
46162 "type" : "string",
46163 "typetext" : "<string>"
46164 },
46165 "notify" : {
46166 "default" : 0,
46167 "description" : "Send notification about new packages.",
46168 "optional" : 1,
46169 "type" : "boolean",
46170 "typetext" : "<boolean>"
46171 },
46172 "quiet" : {
46173 "default" : 0,
46174 "description" : "Only produces output suitable for logging, omitting progress indicators.",
46175 "optional" : 1,
46176 "type" : "boolean",
46177 "typetext" : "<boolean>"
46178 }
46179 }
46180 },
46181 "permissions" : {
46182 "check" : [
46183 "perm",
46184 "/nodes/{node}",
46185 [
46186 "Sys.Modify"
46187 ]
46188 ]
46189 },
46190 "protected" : 1,
46191 "proxyto" : "node",
46192 "returns" : {
46193 "type" : "string"
46194 }
46195 }
46196 },
46197 "leaf" : 1,
46198 "path" : "/nodes/{node}/apt/update",
46199 "text" : "update"
46200 },
46201 {
46202 "info" : {
46203 "GET" : {
46204 "allowtoken" : 1,
46205 "description" : "Get package changelogs.",
46206 "method" : "GET",
46207 "name" : "changelog",
46208 "parameters" : {
46209 "additionalProperties" : 0,
46210 "properties" : {
46211 "name" : {
46212 "description" : "Package name.",
46213 "type" : "string",
46214 "typetext" : "<string>"
46215 },
46216 "node" : {
46217 "description" : "The cluster node name.",
46218 "format" : "pve-node",
46219 "type" : "string",
46220 "typetext" : "<string>"
46221 },
46222 "version" : {
46223 "description" : "Package version.",
46224 "optional" : 1,
46225 "type" : "string",
46226 "typetext" : "<string>"
46227 }
46228 }
46229 },
46230 "permissions" : {
46231 "check" : [
46232 "perm",
46233 "/nodes/{node}",
46234 [
46235 "Sys.Modify"
46236 ]
46237 ]
46238 },
46239 "proxyto" : "node",
46240 "returns" : {
46241 "type" : "string"
46242 }
46243 }
46244 },
46245 "leaf" : 1,
46246 "path" : "/nodes/{node}/apt/changelog",
46247 "text" : "changelog"
46248 },
46249 {
46250 "info" : {
46251 "GET" : {
46252 "allowtoken" : 1,
46253 "description" : "Get APT repository information.",
46254 "method" : "GET",
46255 "name" : "repositories",
46256 "parameters" : {
46257 "additionalProperties" : 0,
46258 "properties" : {
46259 "node" : {
46260 "description" : "The cluster node name.",
46261 "format" : "pve-node",
46262 "type" : "string",
46263 "typetext" : "<string>"
46264 }
46265 }
46266 },
46267 "permissions" : {
46268 "check" : [
46269 "perm",
46270 "/nodes/{node}",
46271 [
46272 "Sys.Audit"
46273 ]
46274 ]
46275 },
46276 "proxyto" : "node",
46277 "returns" : {
46278 "description" : "Result from parsing the APT repository files in /etc/apt/.",
46279 "properties" : {
46280 "digest" : {
46281 "description" : "Common digest of all files.",
46282 "type" : "string"
46283 },
46284 "errors" : {
46285 "description" : "List of problematic repository files.",
46286 "items" : {
46287 "properties" : {
46288 "error" : {
46289 "description" : "The error message",
46290 "type" : "string"
46291 },
46292 "path" : {
46293 "description" : "Path to the problematic file.",
46294 "type" : "string"
46295 }
46296 },
46297 "type" : "object"
46298 },
46299 "type" : "array"
46300 },
46301 "files" : {
46302 "description" : "List of parsed repository files.",
46303 "items" : {
46304 "properties" : {
46305 "digest" : {
46306 "description" : "Digest of the file as bytes.",
46307 "items" : {
46308 "type" : "integer"
46309 },
46310 "type" : "array"
46311 },
46312 "file-type" : {
46313 "description" : "Format of the file.",
46314 "enum" : [
46315 "list",
46316 "sources"
46317 ],
46318 "type" : "string"
46319 },
46320 "path" : {
46321 "description" : "Path to the problematic file.",
46322 "type" : "string"
46323 },
46324 "repositories" : {
46325 "description" : "The parsed repositories.",
46326 "items" : {
46327 "properties" : {
46328 "Comment" : {
46329 "description" : "Associated comment",
46330 "optional" : 1,
46331 "type" : "string"
46332 },
46333 "Components" : {
46334 "description" : "List of repository components",
46335 "items" : {
46336 "type" : "string"
46337 },
46338 "optional" : 1,
46339 "type" : "array"
46340 },
46341 "Enabled" : {
46342 "description" : "Whether the repository is enabled or not",
46343 "type" : "boolean"
46344 },
46345 "FileType" : {
46346 "description" : "Format of the defining file.",
46347 "enum" : [
46348 "list",
46349 "sources"
46350 ],
46351 "type" : "string"
46352 },
46353 "Options" : {
46354 "description" : "Additional options",
46355 "items" : {
46356 "properties" : {
46357 "Key" : {
46358 "type" : "string"
46359 },
46360 "Values" : {
46361 "items" : {
46362 "type" : "string"
46363 },
46364 "type" : "array"
46365 }
46366 },
46367 "type" : "object"
46368 },
46369 "optional" : 1,
46370 "type" : "array"
46371 },
46372 "Suites" : {
46373 "description" : "List of package distribuitions",
46374 "items" : {
46375 "type" : "string"
46376 },
46377 "type" : "array"
46378 },
46379 "Types" : {
46380 "description" : "List of package types.",
46381 "items" : {
46382 "enum" : [
46383 "deb",
46384 "deb-src"
46385 ],
46386 "type" : "string"
46387 },
46388 "type" : "array"
46389 },
46390 "URIs" : {
46391 "description" : "List of repository URIs.",
46392 "items" : {
46393 "type" : "string"
46394 },
46395 "type" : "array"
46396 }
46397 },
46398 "type" : "object"
46399 },
46400 "type" : "array"
46401 }
46402 },
46403 "type" : "object"
46404 },
46405 "type" : "array"
46406 },
46407 "infos" : {
46408 "description" : "Additional information/warnings for APT repositories.",
46409 "items" : {
46410 "properties" : {
46411 "index" : {
46412 "description" : "Index of the associated repository within the file.",
46413 "type" : "string"
46414 },
46415 "kind" : {
46416 "description" : "Kind of the information (e.g. warning).",
46417 "type" : "string"
46418 },
46419 "message" : {
46420 "description" : "Information message.",
46421 "type" : "string"
46422 },
46423 "path" : {
46424 "description" : "Path to the associated file.",
46425 "type" : "string"
46426 },
46427 "property" : {
46428 "description" : "Property from which the info originates.",
46429 "optional" : 1,
46430 "type" : "string"
46431 }
46432 },
46433 "type" : "object"
46434 },
46435 "type" : "array"
46436 },
46437 "standard-repos" : {
46438 "description" : "List of standard repositories and their configuration status",
46439 "items" : {
46440 "properties" : {
46441 "handle" : {
46442 "description" : "Handle to identify the repository.",
46443 "type" : "string"
46444 },
46445 "name" : {
46446 "description" : "Full name of the repository.",
46447 "type" : "string"
46448 },
46449 "status" : {
46450 "description" : "Indicating enabled/disabled status, if the repository is configured.",
46451 "optional" : 1,
46452 "type" : "boolean"
46453 }
46454 },
46455 "type" : "object"
46456 },
46457 "type" : "array"
46458 }
46459 },
46460 "type" : "object"
46461 }
46462 },
46463 "POST" : {
46464 "allowtoken" : 1,
46465 "description" : "Change the properties of a repository. Currently only allows enabling/disabling.",
46466 "method" : "POST",
46467 "name" : "change_repository",
46468 "parameters" : {
46469 "additionalProperties" : 0,
46470 "properties" : {
46471 "digest" : {
46472 "description" : "Digest to detect modifications.",
46473 "maxLength" : 80,
46474 "optional" : 1,
46475 "type" : "string",
46476 "typetext" : "<string>"
46477 },
46478 "enabled" : {
46479 "description" : "Whether the repository should be enabled or not.",
46480 "optional" : 1,
46481 "type" : "boolean",
46482 "typetext" : "<boolean>"
46483 },
46484 "index" : {
46485 "description" : "Index within the file (starting from 0).",
46486 "type" : "integer",
46487 "typetext" : "<integer>"
46488 },
46489 "node" : {
46490 "description" : "The cluster node name.",
46491 "format" : "pve-node",
46492 "type" : "string",
46493 "typetext" : "<string>"
46494 },
46495 "path" : {
46496 "description" : "Path to the containing file.",
46497 "type" : "string",
46498 "typetext" : "<string>"
46499 }
46500 }
46501 },
46502 "permissions" : {
46503 "check" : [
46504 "perm",
46505 "/nodes/{node}",
46506 [
46507 "Sys.Modify"
46508 ]
46509 ]
46510 },
46511 "protected" : 1,
46512 "proxyto" : "node",
46513 "returns" : {
46514 "type" : "null"
46515 }
46516 },
46517 "PUT" : {
46518 "allowtoken" : 1,
46519 "description" : "Add a standard repository to the configuration",
46520 "method" : "PUT",
46521 "name" : "add_repository",
46522 "parameters" : {
46523 "additionalProperties" : 0,
46524 "properties" : {
46525 "digest" : {
46526 "description" : "Digest to detect modifications.",
46527 "maxLength" : 80,
46528 "optional" : 1,
46529 "type" : "string",
46530 "typetext" : "<string>"
46531 },
46532 "handle" : {
46533 "description" : "Handle that identifies a repository.",
46534 "type" : "string",
46535 "typetext" : "<string>"
46536 },
46537 "node" : {
46538 "description" : "The cluster node name.",
46539 "format" : "pve-node",
46540 "type" : "string",
46541 "typetext" : "<string>"
46542 }
46543 }
46544 },
46545 "permissions" : {
46546 "check" : [
46547 "perm",
46548 "/nodes/{node}",
46549 [
46550 "Sys.Modify"
46551 ]
46552 ]
46553 },
46554 "protected" : 1,
46555 "proxyto" : "node",
46556 "returns" : {
46557 "type" : "null"
46558 }
46559 }
46560 },
46561 "leaf" : 1,
46562 "path" : "/nodes/{node}/apt/repositories",
46563 "text" : "repositories"
46564 },
46565 {
46566 "info" : {
46567 "GET" : {
46568 "allowtoken" : 1,
46569 "description" : "Get package information for important Proxmox packages.",
46570 "method" : "GET",
46571 "name" : "versions",
46572 "parameters" : {
46573 "additionalProperties" : 0,
46574 "properties" : {
46575 "node" : {
46576 "description" : "The cluster node name.",
46577 "format" : "pve-node",
46578 "type" : "string",
46579 "typetext" : "<string>"
46580 }
46581 }
46582 },
46583 "permissions" : {
46584 "check" : [
46585 "perm",
46586 "/nodes/{node}",
46587 [
46588 "Sys.Audit"
46589 ]
46590 ]
46591 },
46592 "proxyto" : "node",
46593 "returns" : {
46594 "items" : {
46595 "properties" : {},
46596 "type" : "object"
46597 },
46598 "type" : "array"
46599 }
46600 }
46601 },
46602 "leaf" : 1,
46603 "path" : "/nodes/{node}/apt/versions",
46604 "text" : "versions"
46605 }
46606 ],
46607 "info" : {
46608 "GET" : {
46609 "allowtoken" : 1,
46610 "description" : "Directory index for apt (Advanced Package Tool).",
46611 "method" : "GET",
46612 "name" : "index",
46613 "parameters" : {
46614 "additionalProperties" : 0,
46615 "properties" : {
46616 "node" : {
46617 "description" : "The cluster node name.",
46618 "format" : "pve-node",
46619 "type" : "string",
46620 "typetext" : "<string>"
46621 }
46622 }
46623 },
46624 "permissions" : {
46625 "user" : "all"
46626 },
46627 "returns" : {
46628 "items" : {
46629 "properties" : {
46630 "id" : {
46631 "type" : "string"
46632 }
46633 },
46634 "type" : "object"
46635 },
46636 "links" : [
46637 {
46638 "href" : "{id}",
46639 "rel" : "child"
46640 }
46641 ],
46642 "type" : "array"
46643 }
46644 }
46645 },
46646 "leaf" : 0,
46647 "path" : "/nodes/{node}/apt",
46648 "text" : "apt"
46649 },
46650 {
46651 "children" : [
46652 {
46653 "children" : [
46654 {
46655 "info" : {
46656 "DELETE" : {
46657 "allowtoken" : 1,
46658 "description" : "Delete rule.",
46659 "method" : "DELETE",
46660 "name" : "delete_rule",
46661 "parameters" : {
46662 "additionalProperties" : 0,
46663 "properties" : {
46664 "digest" : {
46665 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
46666 "maxLength" : 64,
46667 "optional" : 1,
46668 "type" : "string",
46669 "typetext" : "<string>"
46670 },
46671 "node" : {
46672 "description" : "The cluster node name.",
46673 "format" : "pve-node",
46674 "type" : "string",
46675 "typetext" : "<string>"
46676 },
46677 "pos" : {
46678 "description" : "Update rule at position <pos>.",
46679 "minimum" : 0,
46680 "optional" : 1,
46681 "type" : "integer",
46682 "typetext" : "<integer> (0 - N)"
46683 }
46684 }
46685 },
46686 "permissions" : {
46687 "check" : [
46688 "perm",
46689 "/nodes/{node}",
46690 [
46691 "Sys.Modify"
46692 ]
46693 ]
46694 },
46695 "protected" : 1,
46696 "proxyto" : "node",
46697 "returns" : {
46698 "type" : "null"
46699 }
46700 },
46701 "GET" : {
46702 "allowtoken" : 1,
46703 "description" : "Get single rule data.",
46704 "method" : "GET",
46705 "name" : "get_rule",
46706 "parameters" : {
46707 "additionalProperties" : 0,
46708 "properties" : {
46709 "node" : {
46710 "description" : "The cluster node name.",
46711 "format" : "pve-node",
46712 "type" : "string",
46713 "typetext" : "<string>"
46714 },
46715 "pos" : {
46716 "description" : "Update rule at position <pos>.",
46717 "minimum" : 0,
46718 "optional" : 1,
46719 "type" : "integer",
46720 "typetext" : "<integer> (0 - N)"
46721 }
46722 }
46723 },
46724 "permissions" : {
46725 "check" : [
46726 "perm",
46727 "/nodes/{node}",
46728 [
46729 "Sys.Audit"
46730 ]
46731 ]
46732 },
46733 "proxyto" : "node",
46734 "returns" : {
46735 "properties" : {
46736 "action" : {
46737 "type" : "string"
46738 },
46739 "comment" : {
46740 "optional" : 1,
46741 "type" : "string"
46742 },
46743 "dest" : {
46744 "optional" : 1,
46745 "type" : "string"
46746 },
46747 "dport" : {
46748 "optional" : 1,
46749 "type" : "string"
46750 },
46751 "enable" : {
46752 "optional" : 1,
46753 "type" : "integer"
46754 },
46755 "icmp-type" : {
46756 "optional" : 1,
46757 "type" : "string"
46758 },
46759 "iface" : {
46760 "optional" : 1,
46761 "type" : "string"
46762 },
46763 "ipversion" : {
46764 "optional" : 1,
46765 "type" : "integer"
46766 },
46767 "log" : {
46768 "description" : "Log level for firewall rule",
46769 "enum" : [
46770 "emerg",
46771 "alert",
46772 "crit",
46773 "err",
46774 "warning",
46775 "notice",
46776 "info",
46777 "debug",
46778 "nolog"
46779 ],
46780 "optional" : 1,
46781 "type" : "string"
46782 },
46783 "macro" : {
46784 "optional" : 1,
46785 "type" : "string"
46786 },
46787 "pos" : {
46788 "type" : "integer"
46789 },
46790 "proto" : {
46791 "optional" : 1,
46792 "type" : "string"
46793 },
46794 "source" : {
46795 "optional" : 1,
46796 "type" : "string"
46797 },
46798 "sport" : {
46799 "optional" : 1,
46800 "type" : "string"
46801 },
46802 "type" : {
46803 "type" : "string"
46804 }
46805 },
46806 "type" : "object"
46807 }
46808 },
46809 "PUT" : {
46810 "allowtoken" : 1,
46811 "description" : "Modify rule data.",
46812 "method" : "PUT",
46813 "name" : "update_rule",
46814 "parameters" : {
46815 "additionalProperties" : 0,
46816 "properties" : {
46817 "action" : {
46818 "description" : "Rule action ('ACCEPT', 'DROP', 'REJECT') or security group name.",
46819 "maxLength" : 20,
46820 "minLength" : 2,
46821 "optional" : 1,
46822 "pattern" : "[A-Za-z][A-Za-z0-9\\-\\_]+",
46823 "type" : "string"
46824 },
46825 "comment" : {
46826 "description" : "Descriptive comment.",
46827 "optional" : 1,
46828 "type" : "string",
46829 "typetext" : "<string>"
46830 },
46831 "delete" : {
46832 "description" : "A list of settings you want to delete.",
46833 "format" : "pve-configid-list",
46834 "optional" : 1,
46835 "type" : "string",
46836 "typetext" : "<string>"
46837 },
46838 "dest" : {
46839 "description" : "Restrict packet destination address. This can refer to a single IP address, an IP set ('+ipsetname') or an IP alias definition. You can also specify an address range like '20.34.101.207-201.3.9.99', or a list of IP addresses and networks (entries are separated by comma). Please do not mix IPv4 and IPv6 addresses inside such lists.",
46840 "format" : "pve-fw-addr-spec",
46841 "maxLength" : 512,
46842 "optional" : 1,
46843 "type" : "string",
46844 "typetext" : "<string>"
46845 },
46846 "digest" : {
46847 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
46848 "maxLength" : 64,
46849 "optional" : 1,
46850 "type" : "string",
46851 "typetext" : "<string>"
46852 },
46853 "dport" : {
46854 "description" : "Restrict TCP/UDP destination port. You can use service names or simple numbers (0-65535), as defined in '/etc/services'. Port ranges can be specified with '\\d+:\\d+', for example '80:85', and you can use comma separated list to match several ports or ranges.",
46855 "format" : "pve-fw-dport-spec",
46856 "optional" : 1,
46857 "type" : "string",
46858 "typetext" : "<string>"
46859 },
46860 "enable" : {
46861 "description" : "Flag to enable/disable a rule.",
46862 "minimum" : 0,
46863 "optional" : 1,
46864 "type" : "integer",
46865 "typetext" : "<integer> (0 - N)"
46866 },
46867 "icmp-type" : {
46868 "description" : "Specify icmp-type. Only valid if proto equals 'icmp' or 'icmpv6'/'ipv6-icmp'.",
46869 "format" : "pve-fw-icmp-type-spec",
46870 "optional" : 1,
46871 "type" : "string",
46872 "typetext" : "<string>"
46873 },
46874 "iface" : {
46875 "description" : "Network interface name. You have to use network configuration key names for VMs and containers ('net\\d+'). Host related rules can use arbitrary strings.",
46876 "format" : "pve-iface",
46877 "maxLength" : 20,
46878 "minLength" : 2,
46879 "optional" : 1,
46880 "type" : "string",
46881 "typetext" : "<string>"
46882 },
46883 "log" : {
46884 "description" : "Log level for firewall rule.",
46885 "enum" : [
46886 "emerg",
46887 "alert",
46888 "crit",
46889 "err",
46890 "warning",
46891 "notice",
46892 "info",
46893 "debug",
46894 "nolog"
46895 ],
46896 "optional" : 1,
46897 "type" : "string"
46898 },
46899 "macro" : {
46900 "description" : "Use predefined standard macro.",
46901 "maxLength" : 128,
46902 "optional" : 1,
46903 "type" : "string",
46904 "typetext" : "<string>"
46905 },
46906 "moveto" : {
46907 "description" : "Move rule to new position <moveto>. Other arguments are ignored.",
46908 "minimum" : 0,
46909 "optional" : 1,
46910 "type" : "integer",
46911 "typetext" : "<integer> (0 - N)"
46912 },
46913 "node" : {
46914 "description" : "The cluster node name.",
46915 "format" : "pve-node",
46916 "type" : "string",
46917 "typetext" : "<string>"
46918 },
46919 "pos" : {
46920 "description" : "Update rule at position <pos>.",
46921 "minimum" : 0,
46922 "optional" : 1,
46923 "type" : "integer",
46924 "typetext" : "<integer> (0 - N)"
46925 },
46926 "proto" : {
46927 "description" : "IP protocol. You can use protocol names ('tcp'/'udp') or simple numbers, as defined in '/etc/protocols'.",
46928 "format" : "pve-fw-protocol-spec",
46929 "optional" : 1,
46930 "type" : "string",
46931 "typetext" : "<string>"
46932 },
46933 "source" : {
46934 "description" : "Restrict packet source address. This can refer to a single IP address, an IP set ('+ipsetname') or an IP alias definition. You can also specify an address range like '20.34.101.207-201.3.9.99', or a list of IP addresses and networks (entries are separated by comma). Please do not mix IPv4 and IPv6 addresses inside such lists.",
46935 "format" : "pve-fw-addr-spec",
46936 "maxLength" : 512,
46937 "optional" : 1,
46938 "type" : "string",
46939 "typetext" : "<string>"
46940 },
46941 "sport" : {
46942 "description" : "Restrict TCP/UDP source port. You can use service names or simple numbers (0-65535), as defined in '/etc/services'. Port ranges can be specified with '\\d+:\\d+', for example '80:85', and you can use comma separated list to match several ports or ranges.",
46943 "format" : "pve-fw-sport-spec",
46944 "optional" : 1,
46945 "type" : "string",
46946 "typetext" : "<string>"
46947 },
46948 "type" : {
46949 "description" : "Rule type.",
46950 "enum" : [
46951 "in",
46952 "out",
46953 "group"
46954 ],
46955 "optional" : 1,
46956 "type" : "string"
46957 }
46958 }
46959 },
46960 "permissions" : {
46961 "check" : [
46962 "perm",
46963 "/nodes/{node}",
46964 [
46965 "Sys.Modify"
46966 ]
46967 ]
46968 },
46969 "protected" : 1,
46970 "proxyto" : "node",
46971 "returns" : {
46972 "type" : "null"
46973 }
46974 }
46975 },
46976 "leaf" : 1,
46977 "path" : "/nodes/{node}/firewall/rules/{pos}",
46978 "text" : "{pos}"
46979 }
46980 ],
46981 "info" : {
46982 "GET" : {
46983 "allowtoken" : 1,
46984 "description" : "List rules.",
46985 "method" : "GET",
46986 "name" : "get_rules",
46987 "parameters" : {
46988 "additionalProperties" : 0,
46989 "properties" : {
46990 "node" : {
46991 "description" : "The cluster node name.",
46992 "format" : "pve-node",
46993 "type" : "string",
46994 "typetext" : "<string>"
46995 }
46996 }
46997 },
46998 "permissions" : {
46999 "check" : [
47000 "perm",
47001 "/nodes/{node}",
47002 [
47003 "Sys.Audit"
47004 ]
47005 ]
47006 },
47007 "proxyto" : "node",
47008 "returns" : {
47009 "items" : {
47010 "properties" : {
47011 "pos" : {
47012 "type" : "integer"
47013 }
47014 },
47015 "type" : "object"
47016 },
47017 "links" : [
47018 {
47019 "href" : "{pos}",
47020 "rel" : "child"
47021 }
47022 ],
47023 "type" : "array"
47024 }
47025 },
47026 "POST" : {
47027 "allowtoken" : 1,
47028 "description" : "Create new rule.",
47029 "method" : "POST",
47030 "name" : "create_rule",
47031 "parameters" : {
47032 "additionalProperties" : 0,
47033 "properties" : {
47034 "action" : {
47035 "description" : "Rule action ('ACCEPT', 'DROP', 'REJECT') or security group name.",
47036 "maxLength" : 20,
47037 "minLength" : 2,
47038 "optional" : 0,
47039 "pattern" : "[A-Za-z][A-Za-z0-9\\-\\_]+",
47040 "type" : "string"
47041 },
47042 "comment" : {
47043 "description" : "Descriptive comment.",
47044 "optional" : 1,
47045 "type" : "string",
47046 "typetext" : "<string>"
47047 },
47048 "dest" : {
47049 "description" : "Restrict packet destination address. This can refer to a single IP address, an IP set ('+ipsetname') or an IP alias definition. You can also specify an address range like '20.34.101.207-201.3.9.99', or a list of IP addresses and networks (entries are separated by comma). Please do not mix IPv4 and IPv6 addresses inside such lists.",
47050 "format" : "pve-fw-addr-spec",
47051 "maxLength" : 512,
47052 "optional" : 1,
47053 "type" : "string",
47054 "typetext" : "<string>"
47055 },
47056 "digest" : {
47057 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
47058 "maxLength" : 64,
47059 "optional" : 1,
47060 "type" : "string",
47061 "typetext" : "<string>"
47062 },
47063 "dport" : {
47064 "description" : "Restrict TCP/UDP destination port. You can use service names or simple numbers (0-65535), as defined in '/etc/services'. Port ranges can be specified with '\\d+:\\d+', for example '80:85', and you can use comma separated list to match several ports or ranges.",
47065 "format" : "pve-fw-dport-spec",
47066 "optional" : 1,
47067 "type" : "string",
47068 "typetext" : "<string>"
47069 },
47070 "enable" : {
47071 "description" : "Flag to enable/disable a rule.",
47072 "minimum" : 0,
47073 "optional" : 1,
47074 "type" : "integer",
47075 "typetext" : "<integer> (0 - N)"
47076 },
47077 "icmp-type" : {
47078 "description" : "Specify icmp-type. Only valid if proto equals 'icmp' or 'icmpv6'/'ipv6-icmp'.",
47079 "format" : "pve-fw-icmp-type-spec",
47080 "optional" : 1,
47081 "type" : "string",
47082 "typetext" : "<string>"
47083 },
47084 "iface" : {
47085 "description" : "Network interface name. You have to use network configuration key names for VMs and containers ('net\\d+'). Host related rules can use arbitrary strings.",
47086 "format" : "pve-iface",
47087 "maxLength" : 20,
47088 "minLength" : 2,
47089 "optional" : 1,
47090 "type" : "string",
47091 "typetext" : "<string>"
47092 },
47093 "log" : {
47094 "description" : "Log level for firewall rule.",
47095 "enum" : [
47096 "emerg",
47097 "alert",
47098 "crit",
47099 "err",
47100 "warning",
47101 "notice",
47102 "info",
47103 "debug",
47104 "nolog"
47105 ],
47106 "optional" : 1,
47107 "type" : "string"
47108 },
47109 "macro" : {
47110 "description" : "Use predefined standard macro.",
47111 "maxLength" : 128,
47112 "optional" : 1,
47113 "type" : "string",
47114 "typetext" : "<string>"
47115 },
47116 "node" : {
47117 "description" : "The cluster node name.",
47118 "format" : "pve-node",
47119 "type" : "string",
47120 "typetext" : "<string>"
47121 },
47122 "pos" : {
47123 "description" : "Update rule at position <pos>.",
47124 "minimum" : 0,
47125 "optional" : 1,
47126 "type" : "integer",
47127 "typetext" : "<integer> (0 - N)"
47128 },
47129 "proto" : {
47130 "description" : "IP protocol. You can use protocol names ('tcp'/'udp') or simple numbers, as defined in '/etc/protocols'.",
47131 "format" : "pve-fw-protocol-spec",
47132 "optional" : 1,
47133 "type" : "string",
47134 "typetext" : "<string>"
47135 },
47136 "source" : {
47137 "description" : "Restrict packet source address. This can refer to a single IP address, an IP set ('+ipsetname') or an IP alias definition. You can also specify an address range like '20.34.101.207-201.3.9.99', or a list of IP addresses and networks (entries are separated by comma). Please do not mix IPv4 and IPv6 addresses inside such lists.",
47138 "format" : "pve-fw-addr-spec",
47139 "maxLength" : 512,
47140 "optional" : 1,
47141 "type" : "string",
47142 "typetext" : "<string>"
47143 },
47144 "sport" : {
47145 "description" : "Restrict TCP/UDP source port. You can use service names or simple numbers (0-65535), as defined in '/etc/services'. Port ranges can be specified with '\\d+:\\d+', for example '80:85', and you can use comma separated list to match several ports or ranges.",
47146 "format" : "pve-fw-sport-spec",
47147 "optional" : 1,
47148 "type" : "string",
47149 "typetext" : "<string>"
47150 },
47151 "type" : {
47152 "description" : "Rule type.",
47153 "enum" : [
47154 "in",
47155 "out",
47156 "group"
47157 ],
47158 "optional" : 0,
47159 "type" : "string"
47160 }
47161 }
47162 },
47163 "permissions" : {
47164 "check" : [
47165 "perm",
47166 "/nodes/{node}",
47167 [
47168 "Sys.Modify"
47169 ]
47170 ]
47171 },
47172 "protected" : 1,
47173 "proxyto" : "node",
47174 "returns" : {
47175 "type" : "null"
47176 }
47177 }
47178 },
47179 "leaf" : 0,
47180 "path" : "/nodes/{node}/firewall/rules",
47181 "text" : "rules"
47182 },
47183 {
47184 "info" : {
47185 "GET" : {
47186 "allowtoken" : 1,
47187 "description" : "Get host firewall options.",
47188 "method" : "GET",
47189 "name" : "get_options",
47190 "parameters" : {
47191 "additionalProperties" : 0,
47192 "properties" : {
47193 "node" : {
47194 "description" : "The cluster node name.",
47195 "format" : "pve-node",
47196 "type" : "string",
47197 "typetext" : "<string>"
47198 }
47199 }
47200 },
47201 "permissions" : {
47202 "check" : [
47203 "perm",
47204 "/nodes/{node}",
47205 [
47206 "Sys.Audit"
47207 ]
47208 ]
47209 },
47210 "proxyto" : "node",
47211 "returns" : {
47212 "properties" : {
47213 "enable" : {
47214 "description" : "Enable host firewall rules.",
47215 "optional" : 1,
47216 "type" : "boolean"
47217 },
47218 "log_level_in" : {
47219 "description" : "Log level for incoming traffic.",
47220 "enum" : [
47221 "emerg",
47222 "alert",
47223 "crit",
47224 "err",
47225 "warning",
47226 "notice",
47227 "info",
47228 "debug",
47229 "nolog"
47230 ],
47231 "optional" : 1,
47232 "type" : "string"
47233 },
47234 "log_level_out" : {
47235 "description" : "Log level for outgoing traffic.",
47236 "enum" : [
47237 "emerg",
47238 "alert",
47239 "crit",
47240 "err",
47241 "warning",
47242 "notice",
47243 "info",
47244 "debug",
47245 "nolog"
47246 ],
47247 "optional" : 1,
47248 "type" : "string"
47249 },
47250 "log_nf_conntrack" : {
47251 "default" : 0,
47252 "description" : "Enable logging of conntrack information.",
47253 "optional" : 1,
47254 "type" : "boolean"
47255 },
47256 "ndp" : {
47257 "default" : 0,
47258 "description" : "Enable NDP (Neighbor Discovery Protocol).",
47259 "optional" : 1,
47260 "type" : "boolean"
47261 },
47262 "nf_conntrack_allow_invalid" : {
47263 "default" : 0,
47264 "description" : "Allow invalid packets on connection tracking.",
47265 "optional" : 1,
47266 "type" : "boolean"
47267 },
47268 "nf_conntrack_helpers" : {
47269 "default" : "",
47270 "description" : "Enable conntrack helpers for specific protocols. Supported protocols: amanda, ftp, irc, netbios-ns, pptp, sane, sip, snmp, tftp",
47271 "format" : "pve-fw-conntrack-helper",
47272 "optional" : 1,
47273 "type" : "string"
47274 },
47275 "nf_conntrack_max" : {
47276 "default" : 262144,
47277 "description" : "Maximum number of tracked connections.",
47278 "minimum" : 32768,
47279 "optional" : 1,
47280 "type" : "integer"
47281 },
47282 "nf_conntrack_tcp_timeout_established" : {
47283 "default" : 432000,
47284 "description" : "Conntrack established timeout.",
47285 "minimum" : 7875,
47286 "optional" : 1,
47287 "type" : "integer"
47288 },
47289 "nf_conntrack_tcp_timeout_syn_recv" : {
47290 "default" : 60,
47291 "description" : "Conntrack syn recv timeout.",
47292 "maximum" : 60,
47293 "minimum" : 30,
47294 "optional" : 1,
47295 "type" : "integer"
47296 },
47297 "nftables" : {
47298 "default" : 0,
47299 "description" : "Enable nftables based firewall (tech preview)",
47300 "optional" : 1,
47301 "type" : "boolean"
47302 },
47303 "nosmurfs" : {
47304 "description" : "Enable SMURFS filter.",
47305 "optional" : 1,
47306 "type" : "boolean"
47307 },
47308 "protection_synflood" : {
47309 "default" : 0,
47310 "description" : "Enable synflood protection",
47311 "optional" : 1,
47312 "type" : "boolean"
47313 },
47314 "protection_synflood_burst" : {
47315 "default" : 1000,
47316 "description" : "Synflood protection rate burst by ip src.",
47317 "optional" : 1,
47318 "type" : "integer"
47319 },
47320 "protection_synflood_rate" : {
47321 "default" : 200,
47322 "description" : "Synflood protection rate syn/sec by ip src.",
47323 "optional" : 1,
47324 "type" : "integer"
47325 },
47326 "smurf_log_level" : {
47327 "description" : "Log level for SMURFS filter.",
47328 "enum" : [
47329 "emerg",
47330 "alert",
47331 "crit",
47332 "err",
47333 "warning",
47334 "notice",
47335 "info",
47336 "debug",
47337 "nolog"
47338 ],
47339 "optional" : 1,
47340 "type" : "string"
47341 },
47342 "tcp_flags_log_level" : {
47343 "description" : "Log level for illegal tcp flags filter.",
47344 "enum" : [
47345 "emerg",
47346 "alert",
47347 "crit",
47348 "err",
47349 "warning",
47350 "notice",
47351 "info",
47352 "debug",
47353 "nolog"
47354 ],
47355 "optional" : 1,
47356 "type" : "string"
47357 },
47358 "tcpflags" : {
47359 "default" : 0,
47360 "description" : "Filter illegal combinations of TCP flags.",
47361 "optional" : 1,
47362 "type" : "boolean"
47363 }
47364 },
47365 "type" : "object"
47366 }
47367 },
47368 "PUT" : {
47369 "allowtoken" : 1,
47370 "description" : "Set Firewall options.",
47371 "method" : "PUT",
47372 "name" : "set_options",
47373 "parameters" : {
47374 "additionalProperties" : 0,
47375 "properties" : {
47376 "delete" : {
47377 "description" : "A list of settings you want to delete.",
47378 "format" : "pve-configid-list",
47379 "optional" : 1,
47380 "type" : "string",
47381 "typetext" : "<string>"
47382 },
47383 "digest" : {
47384 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
47385 "maxLength" : 64,
47386 "optional" : 1,
47387 "type" : "string",
47388 "typetext" : "<string>"
47389 },
47390 "enable" : {
47391 "description" : "Enable host firewall rules.",
47392 "optional" : 1,
47393 "type" : "boolean",
47394 "typetext" : "<boolean>"
47395 },
47396 "log_level_in" : {
47397 "description" : "Log level for incoming traffic.",
47398 "enum" : [
47399 "emerg",
47400 "alert",
47401 "crit",
47402 "err",
47403 "warning",
47404 "notice",
47405 "info",
47406 "debug",
47407 "nolog"
47408 ],
47409 "optional" : 1,
47410 "type" : "string"
47411 },
47412 "log_level_out" : {
47413 "description" : "Log level for outgoing traffic.",
47414 "enum" : [
47415 "emerg",
47416 "alert",
47417 "crit",
47418 "err",
47419 "warning",
47420 "notice",
47421 "info",
47422 "debug",
47423 "nolog"
47424 ],
47425 "optional" : 1,
47426 "type" : "string"
47427 },
47428 "log_nf_conntrack" : {
47429 "default" : 0,
47430 "description" : "Enable logging of conntrack information.",
47431 "optional" : 1,
47432 "type" : "boolean",
47433 "typetext" : "<boolean>"
47434 },
47435 "ndp" : {
47436 "default" : 0,
47437 "description" : "Enable NDP (Neighbor Discovery Protocol).",
47438 "optional" : 1,
47439 "type" : "boolean",
47440 "typetext" : "<boolean>"
47441 },
47442 "nf_conntrack_allow_invalid" : {
47443 "default" : 0,
47444 "description" : "Allow invalid packets on connection tracking.",
47445 "optional" : 1,
47446 "type" : "boolean",
47447 "typetext" : "<boolean>"
47448 },
47449 "nf_conntrack_helpers" : {
47450 "default" : "",
47451 "description" : "Enable conntrack helpers for specific protocols. Supported protocols: amanda, ftp, irc, netbios-ns, pptp, sane, sip, snmp, tftp",
47452 "format" : "pve-fw-conntrack-helper",
47453 "optional" : 1,
47454 "type" : "string",
47455 "typetext" : "<string>"
47456 },
47457 "nf_conntrack_max" : {
47458 "default" : 262144,
47459 "description" : "Maximum number of tracked connections.",
47460 "minimum" : 32768,
47461 "optional" : 1,
47462 "type" : "integer",
47463 "typetext" : "<integer> (32768 - N)"
47464 },
47465 "nf_conntrack_tcp_timeout_established" : {
47466 "default" : 432000,
47467 "description" : "Conntrack established timeout.",
47468 "minimum" : 7875,
47469 "optional" : 1,
47470 "type" : "integer",
47471 "typetext" : "<integer> (7875 - N)"
47472 },
47473 "nf_conntrack_tcp_timeout_syn_recv" : {
47474 "default" : 60,
47475 "description" : "Conntrack syn recv timeout.",
47476 "maximum" : 60,
47477 "minimum" : 30,
47478 "optional" : 1,
47479 "type" : "integer",
47480 "typetext" : "<integer> (30 - 60)"
47481 },
47482 "nftables" : {
47483 "default" : 0,
47484 "description" : "Enable nftables based firewall (tech preview)",
47485 "optional" : 1,
47486 "type" : "boolean",
47487 "typetext" : "<boolean>"
47488 },
47489 "node" : {
47490 "description" : "The cluster node name.",
47491 "format" : "pve-node",
47492 "type" : "string",
47493 "typetext" : "<string>"
47494 },
47495 "nosmurfs" : {
47496 "description" : "Enable SMURFS filter.",
47497 "optional" : 1,
47498 "type" : "boolean",
47499 "typetext" : "<boolean>"
47500 },
47501 "protection_synflood" : {
47502 "default" : 0,
47503 "description" : "Enable synflood protection",
47504 "optional" : 1,
47505 "type" : "boolean",
47506 "typetext" : "<boolean>"
47507 },
47508 "protection_synflood_burst" : {
47509 "default" : 1000,
47510 "description" : "Synflood protection rate burst by ip src.",
47511 "optional" : 1,
47512 "type" : "integer",
47513 "typetext" : "<integer>"
47514 },
47515 "protection_synflood_rate" : {
47516 "default" : 200,
47517 "description" : "Synflood protection rate syn/sec by ip src.",
47518 "optional" : 1,
47519 "type" : "integer",
47520 "typetext" : "<integer>"
47521 },
47522 "smurf_log_level" : {
47523 "description" : "Log level for SMURFS filter.",
47524 "enum" : [
47525 "emerg",
47526 "alert",
47527 "crit",
47528 "err",
47529 "warning",
47530 "notice",
47531 "info",
47532 "debug",
47533 "nolog"
47534 ],
47535 "optional" : 1,
47536 "type" : "string"
47537 },
47538 "tcp_flags_log_level" : {
47539 "description" : "Log level for illegal tcp flags filter.",
47540 "enum" : [
47541 "emerg",
47542 "alert",
47543 "crit",
47544 "err",
47545 "warning",
47546 "notice",
47547 "info",
47548 "debug",
47549 "nolog"
47550 ],
47551 "optional" : 1,
47552 "type" : "string"
47553 },
47554 "tcpflags" : {
47555 "default" : 0,
47556 "description" : "Filter illegal combinations of TCP flags.",
47557 "optional" : 1,
47558 "type" : "boolean",
47559 "typetext" : "<boolean>"
47560 }
47561 }
47562 },
47563 "permissions" : {
47564 "check" : [
47565 "perm",
47566 "/nodes/{node}",
47567 [
47568 "Sys.Modify"
47569 ]
47570 ]
47571 },
47572 "protected" : 1,
47573 "proxyto" : "node",
47574 "returns" : {
47575 "type" : "null"
47576 }
47577 }
47578 },
47579 "leaf" : 1,
47580 "path" : "/nodes/{node}/firewall/options",
47581 "text" : "options"
47582 },
47583 {
47584 "info" : {
47585 "GET" : {
47586 "allowtoken" : 1,
47587 "description" : "Read firewall log",
47588 "method" : "GET",
47589 "name" : "log",
47590 "parameters" : {
47591 "additionalProperties" : 0,
47592 "properties" : {
47593 "limit" : {
47594 "minimum" : 0,
47595 "optional" : 1,
47596 "type" : "integer",
47597 "typetext" : "<integer> (0 - N)"
47598 },
47599 "node" : {
47600 "description" : "The cluster node name.",
47601 "format" : "pve-node",
47602 "type" : "string",
47603 "typetext" : "<string>"
47604 },
47605 "since" : {
47606 "description" : "Display log since this UNIX epoch.",
47607 "minimum" : 0,
47608 "optional" : 1,
47609 "type" : "integer",
47610 "typetext" : "<integer> (0 - N)"
47611 },
47612 "start" : {
47613 "minimum" : 0,
47614 "optional" : 1,
47615 "type" : "integer",
47616 "typetext" : "<integer> (0 - N)"
47617 },
47618 "until" : {
47619 "description" : "Display log until this UNIX epoch.",
47620 "minimum" : 0,
47621 "optional" : 1,
47622 "type" : "integer",
47623 "typetext" : "<integer> (0 - N)"
47624 }
47625 }
47626 },
47627 "permissions" : {
47628 "check" : [
47629 "perm",
47630 "/nodes/{node}",
47631 [
47632 "Sys.Syslog"
47633 ]
47634 ]
47635 },
47636 "protected" : 1,
47637 "proxyto" : "node",
47638 "returns" : {
47639 "items" : {
47640 "properties" : {
47641 "n" : {
47642 "description" : "Line number",
47643 "type" : "integer"
47644 },
47645 "t" : {
47646 "description" : "Line text",
47647 "type" : "string"
47648 }
47649 },
47650 "type" : "object"
47651 },
47652 "type" : "array"
47653 }
47654 }
47655 },
47656 "leaf" : 1,
47657 "path" : "/nodes/{node}/firewall/log",
47658 "text" : "log"
47659 }
47660 ],
47661 "info" : {
47662 "GET" : {
47663 "allowtoken" : 1,
47664 "description" : "Directory index.",
47665 "method" : "GET",
47666 "name" : "index",
47667 "parameters" : {
47668 "additionalProperties" : 0,
47669 "properties" : {
47670 "node" : {
47671 "description" : "The cluster node name.",
47672 "format" : "pve-node",
47673 "type" : "string",
47674 "typetext" : "<string>"
47675 }
47676 }
47677 },
47678 "permissions" : {
47679 "user" : "all"
47680 },
47681 "returns" : {
47682 "items" : {
47683 "properties" : {},
47684 "type" : "object"
47685 },
47686 "links" : [
47687 {
47688 "href" : "{name}",
47689 "rel" : "child"
47690 }
47691 ],
47692 "type" : "array"
47693 }
47694 }
47695 },
47696 "leaf" : 0,
47697 "path" : "/nodes/{node}/firewall",
47698 "text" : "firewall"
47699 },
47700 {
47701 "children" : [
47702 {
47703 "children" : [
47704 {
47705 "info" : {
47706 "GET" : {
47707 "allowtoken" : 1,
47708 "description" : "Get replication job status.",
47709 "method" : "GET",
47710 "name" : "job_status",
47711 "parameters" : {
47712 "additionalProperties" : 0,
47713 "properties" : {
47714 "id" : {
47715 "description" : "Replication Job ID. The ID is composed of a Guest ID and a job number, separated by a hyphen, i.e. '<GUEST>-<JOBNUM>'.",
47716 "format" : "pve-replication-job-id",
47717 "pattern" : "[1-9][0-9]{2,8}-\\d{1,9}",
47718 "type" : "string"
47719 },
47720 "node" : {
47721 "description" : "The cluster node name.",
47722 "format" : "pve-node",
47723 "type" : "string",
47724 "typetext" : "<string>"
47725 }
47726 }
47727 },
47728 "permissions" : {
47729 "description" : "Requires the VM.Audit permission on /vms/<vmid>.",
47730 "user" : "all"
47731 },
47732 "protected" : 1,
47733 "proxyto" : "node",
47734 "returns" : {
47735 "type" : "object"
47736 }
47737 }
47738 },
47739 "leaf" : 1,
47740 "path" : "/nodes/{node}/replication/{id}/status",
47741 "text" : "status"
47742 },
47743 {
47744 "info" : {
47745 "GET" : {
47746 "allowtoken" : 1,
47747 "description" : "Read replication job log.",
47748 "method" : "GET",
47749 "name" : "read_job_log",
47750 "parameters" : {
47751 "additionalProperties" : 0,
47752 "properties" : {
47753 "id" : {
47754 "description" : "Replication Job ID. The ID is composed of a Guest ID and a job number, separated by a hyphen, i.e. '<GUEST>-<JOBNUM>'.",
47755 "format" : "pve-replication-job-id",
47756 "pattern" : "[1-9][0-9]{2,8}-\\d{1,9}",
47757 "type" : "string"
47758 },
47759 "limit" : {
47760 "minimum" : 0,
47761 "optional" : 1,
47762 "type" : "integer",
47763 "typetext" : "<integer> (0 - N)"
47764 },
47765 "node" : {
47766 "description" : "The cluster node name.",
47767 "format" : "pve-node",
47768 "type" : "string",
47769 "typetext" : "<string>"
47770 },
47771 "start" : {
47772 "minimum" : 0,
47773 "optional" : 1,
47774 "type" : "integer",
47775 "typetext" : "<integer> (0 - N)"
47776 }
47777 }
47778 },
47779 "permissions" : {
47780 "description" : "Requires the VM.Audit permission on /vms/<vmid>, or 'Sys.Audit' on '/nodes/<node>'",
47781 "user" : "all"
47782 },
47783 "protected" : 1,
47784 "proxyto" : "node",
47785 "returns" : {
47786 "items" : {
47787 "properties" : {
47788 "n" : {
47789 "description" : "Line number",
47790 "type" : "integer"
47791 },
47792 "t" : {
47793 "description" : "Line text",
47794 "type" : "string"
47795 }
47796 },
47797 "type" : "object"
47798 },
47799 "type" : "array"
47800 }
47801 }
47802 },
47803 "leaf" : 1,
47804 "path" : "/nodes/{node}/replication/{id}/log",
47805 "text" : "log"
47806 },
47807 {
47808 "info" : {
47809 "POST" : {
47810 "allowtoken" : 1,
47811 "description" : "Schedule replication job to start as soon as possible.",
47812 "method" : "POST",
47813 "name" : "schedule_now",
47814 "parameters" : {
47815 "additionalProperties" : 0,
47816 "properties" : {
47817 "id" : {
47818 "description" : "Replication Job ID. The ID is composed of a Guest ID and a job number, separated by a hyphen, i.e. '<GUEST>-<JOBNUM>'.",
47819 "format" : "pve-replication-job-id",
47820 "pattern" : "[1-9][0-9]{2,8}-\\d{1,9}",
47821 "type" : "string"
47822 },
47823 "node" : {
47824 "description" : "The cluster node name.",
47825 "format" : "pve-node",
47826 "type" : "string",
47827 "typetext" : "<string>"
47828 }
47829 }
47830 },
47831 "permissions" : {
47832 "check" : [
47833 "perm",
47834 "/storage",
47835 [
47836 "Datastore.Allocate"
47837 ]
47838 ]
47839 },
47840 "protected" : 1,
47841 "proxyto" : "node",
47842 "returns" : {
47843 "type" : "string"
47844 }
47845 }
47846 },
47847 "leaf" : 1,
47848 "path" : "/nodes/{node}/replication/{id}/schedule_now",
47849 "text" : "schedule_now"
47850 }
47851 ],
47852 "info" : {
47853 "GET" : {
47854 "allowtoken" : 1,
47855 "description" : "Directory index.",
47856 "method" : "GET",
47857 "name" : "index",
47858 "parameters" : {
47859 "additionalProperties" : 0,
47860 "properties" : {
47861 "id" : {
47862 "description" : "Replication Job ID. The ID is composed of a Guest ID and a job number, separated by a hyphen, i.e. '<GUEST>-<JOBNUM>'.",
47863 "format" : "pve-replication-job-id",
47864 "pattern" : "[1-9][0-9]{2,8}-\\d{1,9}",
47865 "type" : "string"
47866 },
47867 "node" : {
47868 "description" : "The cluster node name.",
47869 "format" : "pve-node",
47870 "type" : "string",
47871 "typetext" : "<string>"
47872 }
47873 }
47874 },
47875 "permissions" : {
47876 "user" : "all"
47877 },
47878 "returns" : {
47879 "items" : {
47880 "properties" : {},
47881 "type" : "object"
47882 },
47883 "links" : [
47884 {
47885 "href" : "{name}",
47886 "rel" : "child"
47887 }
47888 ],
47889 "type" : "array"
47890 }
47891 }
47892 },
47893 "leaf" : 0,
47894 "path" : "/nodes/{node}/replication/{id}",
47895 "text" : "{id}"
47896 }
47897 ],
47898 "info" : {
47899 "GET" : {
47900 "allowtoken" : 1,
47901 "description" : "List status of all replication jobs on this node.",
47902 "method" : "GET",
47903 "name" : "status",
47904 "parameters" : {
47905 "additionalProperties" : 0,
47906 "properties" : {
47907 "guest" : {
47908 "description" : "Only list replication jobs for this guest.",
47909 "format" : "pve-vmid",
47910 "maximum" : 999999999,
47911 "minimum" : 100,
47912 "optional" : 1,
47913 "type" : "integer",
47914 "typetext" : "<integer> (100 - 999999999)"
47915 },
47916 "node" : {
47917 "description" : "The cluster node name.",
47918 "format" : "pve-node",
47919 "type" : "string",
47920 "typetext" : "<string>"
47921 }
47922 }
47923 },
47924 "permissions" : {
47925 "description" : "Requires the VM.Audit permission on /vms/<vmid>.",
47926 "user" : "all"
47927 },
47928 "protected" : 1,
47929 "proxyto" : "node",
47930 "returns" : {
47931 "items" : {
47932 "properties" : {
47933 "id" : {
47934 "type" : "string"
47935 }
47936 },
47937 "type" : "object"
47938 },
47939 "links" : [
47940 {
47941 "href" : "{id}",
47942 "rel" : "child"
47943 }
47944 ],
47945 "type" : "array"
47946 }
47947 }
47948 },
47949 "leaf" : 0,
47950 "path" : "/nodes/{node}/replication",
47951 "text" : "replication"
47952 },
47953 {
47954 "children" : [
47955 {
47956 "children" : [
47957 {
47958 "info" : {
47959 "DELETE" : {
47960 "allowtoken" : 1,
47961 "description" : "Revoke existing certificate from CA.",
47962 "method" : "DELETE",
47963 "name" : "revoke_certificate",
47964 "parameters" : {
47965 "additionalProperties" : 0,
47966 "properties" : {
47967 "node" : {
47968 "description" : "The cluster node name.",
47969 "format" : "pve-node",
47970 "type" : "string",
47971 "typetext" : "<string>"
47972 }
47973 }
47974 },
47975 "permissions" : {
47976 "check" : [
47977 "perm",
47978 "/nodes/{node}",
47979 [
47980 "Sys.Modify"
47981 ]
47982 ]
47983 },
47984 "protected" : 1,
47985 "proxyto" : "node",
47986 "returns" : {
47987 "type" : "string"
47988 }
47989 },
47990 "POST" : {
47991 "allowtoken" : 1,
47992 "description" : "Order a new certificate from ACME-compatible CA.",
47993 "method" : "POST",
47994 "name" : "new_certificate",
47995 "parameters" : {
47996 "additionalProperties" : 0,
47997 "properties" : {
47998 "force" : {
47999 "default" : 0,
48000 "description" : "Overwrite existing custom certificate.",
48001 "optional" : 1,
48002 "type" : "boolean",
48003 "typetext" : "<boolean>"
48004 },
48005 "node" : {
48006 "description" : "The cluster node name.",
48007 "format" : "pve-node",
48008 "type" : "string",
48009 "typetext" : "<string>"
48010 }
48011 }
48012 },
48013 "permissions" : {
48014 "check" : [
48015 "perm",
48016 "/nodes/{node}",
48017 [
48018 "Sys.Modify"
48019 ]
48020 ]
48021 },
48022 "protected" : 1,
48023 "proxyto" : "node",
48024 "returns" : {
48025 "type" : "string"
48026 }
48027 },
48028 "PUT" : {
48029 "allowtoken" : 1,
48030 "description" : "Renew existing certificate from CA.",
48031 "method" : "PUT",
48032 "name" : "renew_certificate",
48033 "parameters" : {
48034 "additionalProperties" : 0,
48035 "properties" : {
48036 "force" : {
48037 "default" : 0,
48038 "description" : "Force renewal even if expiry is more than 30 days away.",
48039 "optional" : 1,
48040 "type" : "boolean",
48041 "typetext" : "<boolean>"
48042 },
48043 "node" : {
48044 "description" : "The cluster node name.",
48045 "format" : "pve-node",
48046 "type" : "string",
48047 "typetext" : "<string>"
48048 }
48049 }
48050 },
48051 "permissions" : {
48052 "check" : [
48053 "perm",
48054 "/nodes/{node}",
48055 [
48056 "Sys.Modify"
48057 ]
48058 ]
48059 },
48060 "protected" : 1,
48061 "proxyto" : "node",
48062 "returns" : {
48063 "type" : "string"
48064 }
48065 }
48066 },
48067 "leaf" : 1,
48068 "path" : "/nodes/{node}/certificates/acme/certificate",
48069 "text" : "certificate"
48070 }
48071 ],
48072 "info" : {
48073 "GET" : {
48074 "allowtoken" : 1,
48075 "description" : "ACME index.",
48076 "method" : "GET",
48077 "name" : "index",
48078 "parameters" : {
48079 "additionalProperties" : 0,
48080 "properties" : {
48081 "node" : {
48082 "description" : "The cluster node name.",
48083 "format" : "pve-node",
48084 "type" : "string",
48085 "typetext" : "<string>"
48086 }
48087 }
48088 },
48089 "permissions" : {
48090 "user" : "all"
48091 },
48092 "returns" : {
48093 "items" : {
48094 "properties" : {},
48095 "type" : "object"
48096 },
48097 "links" : [
48098 {
48099 "href" : "{name}",
48100 "rel" : "child"
48101 }
48102 ],
48103 "type" : "array"
48104 }
48105 }
48106 },
48107 "leaf" : 0,
48108 "path" : "/nodes/{node}/certificates/acme",
48109 "text" : "acme"
48110 },
48111 {
48112 "info" : {
48113 "GET" : {
48114 "allowtoken" : 1,
48115 "description" : "Get information about node's certificates.",
48116 "method" : "GET",
48117 "name" : "info",
48118 "parameters" : {
48119 "additionalProperties" : 0,
48120 "properties" : {
48121 "node" : {
48122 "description" : "The cluster node name.",
48123 "format" : "pve-node",
48124 "type" : "string",
48125 "typetext" : "<string>"
48126 }
48127 }
48128 },
48129 "permissions" : {
48130 "user" : "all"
48131 },
48132 "proxyto" : "node",
48133 "returns" : {
48134 "items" : {
48135 "properties" : {
48136 "filename" : {
48137 "optional" : 1,
48138 "type" : "string"
48139 },
48140 "fingerprint" : {
48141 "description" : "Certificate SHA 256 fingerprint.",
48142 "optional" : 1,
48143 "pattern" : "([A-Fa-f0-9]{2}:){31}[A-Fa-f0-9]{2}",
48144 "type" : "string"
48145 },
48146 "issuer" : {
48147 "description" : "Certificate issuer name.",
48148 "optional" : 1,
48149 "type" : "string"
48150 },
48151 "notafter" : {
48152 "description" : "Certificate's notAfter timestamp (UNIX epoch).",
48153 "optional" : 1,
48154 "renderer" : "timestamp",
48155 "type" : "integer"
48156 },
48157 "notbefore" : {
48158 "description" : "Certificate's notBefore timestamp (UNIX epoch).",
48159 "optional" : 1,
48160 "renderer" : "timestamp",
48161 "type" : "integer"
48162 },
48163 "pem" : {
48164 "description" : "Certificate in PEM format",
48165 "format" : "pem-certificate",
48166 "optional" : 1,
48167 "type" : "string"
48168 },
48169 "public-key-bits" : {
48170 "description" : "Certificate's public key size",
48171 "optional" : 1,
48172 "type" : "integer"
48173 },
48174 "public-key-type" : {
48175 "description" : "Certificate's public key algorithm",
48176 "optional" : 1,
48177 "type" : "string"
48178 },
48179 "san" : {
48180 "description" : "List of Certificate's SubjectAlternativeName entries.",
48181 "items" : {
48182 "type" : "string"
48183 },
48184 "optional" : 1,
48185 "renderer" : "yaml",
48186 "type" : "array"
48187 },
48188 "subject" : {
48189 "description" : "Certificate subject name.",
48190 "optional" : 1,
48191 "type" : "string"
48192 }
48193 },
48194 "type" : "object"
48195 },
48196 "type" : "array"
48197 }
48198 }
48199 },
48200 "leaf" : 1,
48201 "path" : "/nodes/{node}/certificates/info",
48202 "text" : "info"
48203 },
48204 {
48205 "info" : {
48206 "DELETE" : {
48207 "allowtoken" : 1,
48208 "description" : "DELETE custom certificate chain and key.",
48209 "method" : "DELETE",
48210 "name" : "remove_custom_cert",
48211 "parameters" : {
48212 "additionalProperties" : 0,
48213 "properties" : {
48214 "node" : {
48215 "description" : "The cluster node name.",
48216 "format" : "pve-node",
48217 "type" : "string",
48218 "typetext" : "<string>"
48219 },
48220 "restart" : {
48221 "default" : 0,
48222 "description" : "Restart pveproxy.",
48223 "optional" : 1,
48224 "type" : "boolean",
48225 "typetext" : "<boolean>"
48226 }
48227 }
48228 },
48229 "permissions" : {
48230 "check" : [
48231 "perm",
48232 "/nodes/{node}",
48233 [
48234 "Sys.Modify"
48235 ]
48236 ]
48237 },
48238 "protected" : 1,
48239 "proxyto" : "node",
48240 "returns" : {
48241 "type" : "null"
48242 }
48243 },
48244 "POST" : {
48245 "allowtoken" : 1,
48246 "description" : "Upload or update custom certificate chain and key.",
48247 "method" : "POST",
48248 "name" : "upload_custom_cert",
48249 "parameters" : {
48250 "additionalProperties" : 0,
48251 "properties" : {
48252 "certificates" : {
48253 "description" : "PEM encoded certificate (chain).",
48254 "format" : "pem-certificate-chain",
48255 "type" : "string",
48256 "typetext" : "<string>"
48257 },
48258 "force" : {
48259 "default" : 0,
48260 "description" : "Overwrite existing custom or ACME certificate files.",
48261 "optional" : 1,
48262 "type" : "boolean",
48263 "typetext" : "<boolean>"
48264 },
48265 "key" : {
48266 "description" : "PEM encoded private key.",
48267 "format" : "pem-string",
48268 "optional" : 1,
48269 "type" : "string",
48270 "typetext" : "<string>"
48271 },
48272 "node" : {
48273 "description" : "The cluster node name.",
48274 "format" : "pve-node",
48275 "type" : "string",
48276 "typetext" : "<string>"
48277 },
48278 "restart" : {
48279 "default" : 0,
48280 "description" : "Restart pveproxy.",
48281 "optional" : 1,
48282 "type" : "boolean",
48283 "typetext" : "<boolean>"
48284 }
48285 }
48286 },
48287 "permissions" : {
48288 "check" : [
48289 "perm",
48290 "/nodes/{node}",
48291 [
48292 "Sys.Modify"
48293 ]
48294 ]
48295 },
48296 "protected" : 1,
48297 "proxyto" : "node",
48298 "returns" : {
48299 "properties" : {
48300 "filename" : {
48301 "optional" : 1,
48302 "type" : "string"
48303 },
48304 "fingerprint" : {
48305 "description" : "Certificate SHA 256 fingerprint.",
48306 "optional" : 1,
48307 "pattern" : "([A-Fa-f0-9]{2}:){31}[A-Fa-f0-9]{2}",
48308 "type" : "string"
48309 },
48310 "issuer" : {
48311 "description" : "Certificate issuer name.",
48312 "optional" : 1,
48313 "type" : "string"
48314 },
48315 "notafter" : {
48316 "description" : "Certificate's notAfter timestamp (UNIX epoch).",
48317 "optional" : 1,
48318 "renderer" : "timestamp",
48319 "type" : "integer"
48320 },
48321 "notbefore" : {
48322 "description" : "Certificate's notBefore timestamp (UNIX epoch).",
48323 "optional" : 1,
48324 "renderer" : "timestamp",
48325 "type" : "integer"
48326 },
48327 "pem" : {
48328 "description" : "Certificate in PEM format",
48329 "format" : "pem-certificate",
48330 "optional" : 1,
48331 "type" : "string"
48332 },
48333 "public-key-bits" : {
48334 "description" : "Certificate's public key size",
48335 "optional" : 1,
48336 "type" : "integer"
48337 },
48338 "public-key-type" : {
48339 "description" : "Certificate's public key algorithm",
48340 "optional" : 1,
48341 "type" : "string"
48342 },
48343 "san" : {
48344 "description" : "List of Certificate's SubjectAlternativeName entries.",
48345 "items" : {
48346 "type" : "string"
48347 },
48348 "optional" : 1,
48349 "renderer" : "yaml",
48350 "type" : "array"
48351 },
48352 "subject" : {
48353 "description" : "Certificate subject name.",
48354 "optional" : 1,
48355 "type" : "string"
48356 }
48357 },
48358 "type" : "object"
48359 }
48360 }
48361 },
48362 "leaf" : 1,
48363 "path" : "/nodes/{node}/certificates/custom",
48364 "text" : "custom"
48365 }
48366 ],
48367 "info" : {
48368 "GET" : {
48369 "allowtoken" : 1,
48370 "description" : "Node index.",
48371 "method" : "GET",
48372 "name" : "index",
48373 "parameters" : {
48374 "additionalProperties" : 0,
48375 "properties" : {
48376 "node" : {
48377 "description" : "The cluster node name.",
48378 "format" : "pve-node",
48379 "type" : "string",
48380 "typetext" : "<string>"
48381 }
48382 }
48383 },
48384 "permissions" : {
48385 "user" : "all"
48386 },
48387 "returns" : {
48388 "items" : {
48389 "properties" : {},
48390 "type" : "object"
48391 },
48392 "links" : [
48393 {
48394 "href" : "{name}",
48395 "rel" : "child"
48396 }
48397 ],
48398 "type" : "array"
48399 }
48400 }
48401 },
48402 "leaf" : 0,
48403 "path" : "/nodes/{node}/certificates",
48404 "text" : "certificates"
48405 },
48406 {
48407 "info" : {
48408 "GET" : {
48409 "allowtoken" : 1,
48410 "description" : "Get node configuration options.",
48411 "method" : "GET",
48412 "name" : "get_config",
48413 "parameters" : {
48414 "additionalProperties" : 0,
48415 "properties" : {
48416 "node" : {
48417 "description" : "The cluster node name.",
48418 "format" : "pve-node",
48419 "type" : "string",
48420 "typetext" : "<string>"
48421 },
48422 "property" : {
48423 "default" : "all",
48424 "description" : "Return only a specific property from the node configuration.",
48425 "enum" : [
48426 "acme",
48427 "acmedomain0",
48428 "acmedomain1",
48429 "acmedomain2",
48430 "acmedomain3",
48431 "acmedomain4",
48432 "acmedomain5",
48433 "description",
48434 "startall-onboot-delay",
48435 "wakeonlan"
48436 ],
48437 "optional" : 1,
48438 "type" : "string"
48439 }
48440 }
48441 },
48442 "permissions" : {
48443 "check" : [
48444 "perm",
48445 "/",
48446 [
48447 "Sys.Audit"
48448 ]
48449 ]
48450 },
48451 "proxyto" : "node",
48452 "returns" : {
48453 "properties" : {
48454 "acme" : {
48455 "description" : "Node specific ACME settings.",
48456 "format" : {
48457 "account" : {
48458 "default" : "default",
48459 "description" : "ACME account config file name.",
48460 "format" : "pve-configid",
48461 "format_description" : "name",
48462 "optional" : 1,
48463 "type" : "string"
48464 },
48465 "domains" : {
48466 "description" : "List of domains for this node's ACME certificate",
48467 "format" : "pve-acme-domain-list",
48468 "format_description" : "domain[;domain;...]",
48469 "optional" : 1,
48470 "type" : "string"
48471 }
48472 },
48473 "optional" : 1,
48474 "type" : "string"
48475 },
48476 "acmedomain[n]" : {
48477 "description" : "ACME domain and validation plugin",
48478 "format" : {
48479 "alias" : {
48480 "description" : "Alias for the Domain to verify ACME Challenge over DNS",
48481 "format" : "pve-acme-alias",
48482 "format_description" : "domain",
48483 "optional" : 1,
48484 "type" : "string"
48485 },
48486 "domain" : {
48487 "default_key" : 1,
48488 "description" : "domain for this node's ACME certificate",
48489 "format" : "pve-acme-domain",
48490 "format_description" : "domain",
48491 "type" : "string"
48492 },
48493 "plugin" : {
48494 "default" : "standalone",
48495 "description" : "The ACME plugin ID",
48496 "format" : "pve-configid",
48497 "format_description" : "name of the plugin configuration",
48498 "optional" : 1,
48499 "type" : "string"
48500 }
48501 },
48502 "optional" : 1,
48503 "type" : "string"
48504 },
48505 "description" : {
48506 "description" : "Description for the Node. Shown in the web-interface node notes panel. This is saved as comment inside the configuration file.",
48507 "maxLength" : 65536,
48508 "optional" : 1,
48509 "type" : "string"
48510 },
48511 "digest" : {
48512 "description" : "Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.",
48513 "maxLength" : 40,
48514 "optional" : 1,
48515 "type" : "string"
48516 },
48517 "startall-onboot-delay" : {
48518 "default" : 0,
48519 "description" : "Initial delay in seconds, before starting all the Virtual Guests with on-boot enabled.",
48520 "maximum" : 300,
48521 "minimum" : 0,
48522 "optional" : 1,
48523 "type" : "integer"
48524 },
48525 "wakeonlan" : {
48526 "description" : "Node specific wake on LAN settings.",
48527 "format" : {
48528 "bind-interface" : {
48529 "default" : "The interface carrying the default route",
48530 "description" : "Bind to this interface when sending wake on LAN packet",
48531 "format" : "pve-iface",
48532 "format_description" : "bind interface",
48533 "optional" : 1,
48534 "type" : "string"
48535 },
48536 "broadcast-address" : {
48537 "default" : "255.255.255.255",
48538 "description" : "IPv4 broadcast address to use when sending wake on LAN packet",
48539 "format" : "ipv4",
48540 "format_description" : "IPv4 broadcast address",
48541 "optional" : 1,
48542 "type" : "string"
48543 },
48544 "mac" : {
48545 "default_key" : 1,
48546 "description" : "MAC address for wake on LAN",
48547 "format" : "mac-addr",
48548 "format_description" : "MAC address",
48549 "type" : "string"
48550 }
48551 },
48552 "optional" : 1,
48553 "type" : "string"
48554 }
48555 },
48556 "type" : "object"
48557 }
48558 },
48559 "PUT" : {
48560 "allowtoken" : 1,
48561 "description" : "Set node configuration options.",
48562 "method" : "PUT",
48563 "name" : "set_options",
48564 "parameters" : {
48565 "additionalProperties" : 0,
48566 "properties" : {
48567 "acme" : {
48568 "description" : "Node specific ACME settings.",
48569 "format" : {
48570 "account" : {
48571 "default" : "default",
48572 "description" : "ACME account config file name.",
48573 "format" : "pve-configid",
48574 "format_description" : "name",
48575 "optional" : 1,
48576 "type" : "string"
48577 },
48578 "domains" : {
48579 "description" : "List of domains for this node's ACME certificate",
48580 "format" : "pve-acme-domain-list",
48581 "format_description" : "domain[;domain;...]",
48582 "optional" : 1,
48583 "type" : "string"
48584 }
48585 },
48586 "optional" : 1,
48587 "type" : "string",
48588 "typetext" : "[account=<name>] [,domains=<domain[;domain;...]>]"
48589 },
48590 "acmedomain[n]" : {
48591 "description" : "ACME domain and validation plugin",
48592 "format" : {
48593 "alias" : {
48594 "description" : "Alias for the Domain to verify ACME Challenge over DNS",
48595 "format" : "pve-acme-alias",
48596 "format_description" : "domain",
48597 "optional" : 1,
48598 "type" : "string"
48599 },
48600 "domain" : {
48601 "default_key" : 1,
48602 "description" : "domain for this node's ACME certificate",
48603 "format" : "pve-acme-domain",
48604 "format_description" : "domain",
48605 "type" : "string"
48606 },
48607 "plugin" : {
48608 "default" : "standalone",
48609 "description" : "The ACME plugin ID",
48610 "format" : "pve-configid",
48611 "format_description" : "name of the plugin configuration",
48612 "optional" : 1,
48613 "type" : "string"
48614 }
48615 },
48616 "optional" : 1,
48617 "type" : "string",
48618 "typetext" : "[domain=]<domain> [,alias=<domain>] [,plugin=<name of the plugin configuration>]"
48619 },
48620 "delete" : {
48621 "description" : "A list of settings you want to delete.",
48622 "format" : "pve-configid-list",
48623 "optional" : 1,
48624 "type" : "string",
48625 "typetext" : "<string>"
48626 },
48627 "description" : {
48628 "description" : "Description for the Node. Shown in the web-interface node notes panel. This is saved as comment inside the configuration file.",
48629 "maxLength" : 65536,
48630 "optional" : 1,
48631 "type" : "string",
48632 "typetext" : "<string>"
48633 },
48634 "digest" : {
48635 "description" : "Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.",
48636 "maxLength" : 40,
48637 "optional" : 1,
48638 "type" : "string",
48639 "typetext" : "<string>"
48640 },
48641 "node" : {
48642 "description" : "The cluster node name.",
48643 "format" : "pve-node",
48644 "type" : "string",
48645 "typetext" : "<string>"
48646 },
48647 "startall-onboot-delay" : {
48648 "default" : 0,
48649 "description" : "Initial delay in seconds, before starting all the Virtual Guests with on-boot enabled.",
48650 "maximum" : 300,
48651 "minimum" : 0,
48652 "optional" : 1,
48653 "type" : "integer",
48654 "typetext" : "<integer> (0 - 300)"
48655 },
48656 "wakeonlan" : {
48657 "description" : "Node specific wake on LAN settings.",
48658 "format" : {
48659 "bind-interface" : {
48660 "default" : "The interface carrying the default route",
48661 "description" : "Bind to this interface when sending wake on LAN packet",
48662 "format" : "pve-iface",
48663 "format_description" : "bind interface",
48664 "optional" : 1,
48665 "type" : "string"
48666 },
48667 "broadcast-address" : {
48668 "default" : "255.255.255.255",
48669 "description" : "IPv4 broadcast address to use when sending wake on LAN packet",
48670 "format" : "ipv4",
48671 "format_description" : "IPv4 broadcast address",
48672 "optional" : 1,
48673 "type" : "string"
48674 },
48675 "mac" : {
48676 "default_key" : 1,
48677 "description" : "MAC address for wake on LAN",
48678 "format" : "mac-addr",
48679 "format_description" : "MAC address",
48680 "type" : "string"
48681 }
48682 },
48683 "optional" : 1,
48684 "type" : "string",
48685 "typetext" : "[mac=]<MAC address> [,bind-interface=<bind interface>] [,broadcast-address=<IPv4 broadcast address>]"
48686 }
48687 }
48688 },
48689 "permissions" : {
48690 "check" : [
48691 "perm",
48692 "/",
48693 [
48694 "Sys.Modify"
48695 ]
48696 ]
48697 },
48698 "protected" : 1,
48699 "proxyto" : "node",
48700 "returns" : {
48701 "type" : "null"
48702 }
48703 }
48704 },
48705 "leaf" : 1,
48706 "path" : "/nodes/{node}/config",
48707 "text" : "config"
48708 },
48709 {
48710 "children" : [
48711 {
48712 "children" : [
48713 {
48714 "children" : [
48715 {
48716 "info" : {
48717 "GET" : {
48718 "allowtoken" : 1,
48719 "description" : "List zone content.",
48720 "method" : "GET",
48721 "name" : "index",
48722 "parameters" : {
48723 "additionalProperties" : 0,
48724 "properties" : {
48725 "node" : {
48726 "description" : "The cluster node name.",
48727 "format" : "pve-node",
48728 "type" : "string",
48729 "typetext" : "<string>"
48730 },
48731 "zone" : {
48732 "description" : "The SDN zone object identifier.",
48733 "format" : "pve-sdn-zone-id",
48734 "type" : "string",
48735 "typetext" : "<string>"
48736 }
48737 }
48738 },
48739 "permissions" : {
48740 "check" : [
48741 "perm",
48742 "/sdn/zones/{zone}",
48743 [
48744 "SDN.Audit"
48745 ],
48746 "any",
48747 1
48748 ]
48749 },
48750 "protected" : 1,
48751 "proxyto" : "node",
48752 "returns" : {
48753 "items" : {
48754 "properties" : {
48755 "status" : {
48756 "description" : "Status.",
48757 "optional" : 1,
48758 "type" : "string"
48759 },
48760 "statusmsg" : {
48761 "description" : "Status details",
48762 "optional" : 1,
48763 "type" : "string"
48764 },
48765 "vnet" : {
48766 "description" : "Vnet identifier.",
48767 "type" : "string"
48768 }
48769 },
48770 "type" : "object"
48771 },
48772 "links" : [
48773 {
48774 "href" : "{vnet}",
48775 "rel" : "child"
48776 }
48777 ],
48778 "type" : "array"
48779 }
48780 }
48781 },
48782 "leaf" : 1,
48783 "path" : "/nodes/{node}/sdn/zones/{zone}/content",
48784 "text" : "content"
48785 }
48786 ],
48787 "info" : {
48788 "GET" : {
48789 "allowtoken" : 1,
48790 "description" : "",
48791 "method" : "GET",
48792 "name" : "diridx",
48793 "parameters" : {
48794 "additionalProperties" : 0,
48795 "properties" : {
48796 "node" : {
48797 "description" : "The cluster node name.",
48798 "format" : "pve-node",
48799 "type" : "string",
48800 "typetext" : "<string>"
48801 },
48802 "zone" : {
48803 "description" : "The SDN zone object identifier.",
48804 "format" : "pve-sdn-zone-id",
48805 "type" : "string",
48806 "typetext" : "<string>"
48807 }
48808 }
48809 },
48810 "permissions" : {
48811 "check" : [
48812 "perm",
48813 "/sdn/zones/{zone}",
48814 [
48815 "SDN.Audit"
48816 ],
48817 "any",
48818 1
48819 ]
48820 },
48821 "returns" : {
48822 "items" : {
48823 "properties" : {
48824 "subdir" : {
48825 "type" : "string"
48826 }
48827 },
48828 "type" : "object"
48829 },
48830 "links" : [
48831 {
48832 "href" : "{subdir}",
48833 "rel" : "child"
48834 }
48835 ],
48836 "type" : "array"
48837 }
48838 }
48839 },
48840 "leaf" : 0,
48841 "path" : "/nodes/{node}/sdn/zones/{zone}",
48842 "text" : "{zone}"
48843 }
48844 ],
48845 "info" : {
48846 "GET" : {
48847 "allowtoken" : 1,
48848 "description" : "Get status for all zones.",
48849 "method" : "GET",
48850 "name" : "index",
48851 "parameters" : {
48852 "additionalProperties" : 0,
48853 "properties" : {
48854 "node" : {
48855 "description" : "The cluster node name.",
48856 "format" : "pve-node",
48857 "type" : "string",
48858 "typetext" : "<string>"
48859 }
48860 }
48861 },
48862 "permissions" : {
48863 "description" : "Only list entries where you have 'SDN.Audit'",
48864 "user" : "all"
48865 },
48866 "protected" : 1,
48867 "proxyto" : "node",
48868 "returns" : {
48869 "items" : {
48870 "properties" : {
48871 "status" : {
48872 "description" : "Status of zone",
48873 "enum" : [
48874 "available",
48875 "pending",
48876 "error"
48877 ],
48878 "type" : "string"
48879 },
48880 "zone" : {
48881 "description" : "The SDN zone object identifier.",
48882 "format" : "pve-sdn-zone-id",
48883 "type" : "string"
48884 }
48885 },
48886 "type" : "object"
48887 },
48888 "links" : [
48889 {
48890 "href" : "{zone}",
48891 "rel" : "child"
48892 }
48893 ],
48894 "type" : "array"
48895 }
48896 }
48897 },
48898 "leaf" : 0,
48899 "path" : "/nodes/{node}/sdn/zones",
48900 "text" : "zones"
48901 }
48902 ],
48903 "info" : {
48904 "GET" : {
48905 "allowtoken" : 1,
48906 "description" : "SDN index.",
48907 "method" : "GET",
48908 "name" : "sdnindex",
48909 "parameters" : {
48910 "additionalProperties" : 0,
48911 "properties" : {
48912 "node" : {
48913 "description" : "The cluster node name.",
48914 "format" : "pve-node",
48915 "type" : "string",
48916 "typetext" : "<string>"
48917 }
48918 }
48919 },
48920 "permissions" : {
48921 "user" : "all"
48922 },
48923 "returns" : {
48924 "items" : {
48925 "properties" : {},
48926 "type" : "object"
48927 },
48928 "links" : [
48929 {
48930 "href" : "{name}",
48931 "rel" : "child"
48932 }
48933 ],
48934 "type" : "array"
48935 }
48936 }
48937 },
48938 "leaf" : 0,
48939 "path" : "/nodes/{node}/sdn",
48940 "text" : "sdn"
48941 },
48942 {
48943 "info" : {
48944 "GET" : {
48945 "allowtoken" : 1,
48946 "description" : "API version details",
48947 "method" : "GET",
48948 "name" : "version",
48949 "parameters" : {
48950 "additionalProperties" : 0,
48951 "properties" : {
48952 "node" : {
48953 "description" : "The cluster node name.",
48954 "format" : "pve-node",
48955 "type" : "string",
48956 "typetext" : "<string>"
48957 }
48958 }
48959 },
48960 "permissions" : {
48961 "user" : "all"
48962 },
48963 "proxyto" : "node",
48964 "returns" : {
48965 "properties" : {
48966 "release" : {
48967 "description" : "The current installed Proxmox VE Release",
48968 "type" : "string"
48969 },
48970 "repoid" : {
48971 "description" : "The short git commit hash ID from which this version was build",
48972 "type" : "string"
48973 },
48974 "version" : {
48975 "description" : "The current installed pve-manager package version",
48976 "type" : "string"
48977 }
48978 },
48979 "type" : "object"
48980 }
48981 }
48982 },
48983 "leaf" : 1,
48984 "path" : "/nodes/{node}/version",
48985 "text" : "version"
48986 },
48987 {
48988 "info" : {
48989 "GET" : {
48990 "allowtoken" : 1,
48991 "description" : "Read node status",
48992 "method" : "GET",
48993 "name" : "status",
48994 "parameters" : {
48995 "additionalProperties" : 0,
48996 "properties" : {
48997 "node" : {
48998 "description" : "The cluster node name.",
48999 "format" : "pve-node",
49000 "type" : "string",
49001 "typetext" : "<string>"
49002 }
49003 }
49004 },
49005 "permissions" : {
49006 "check" : [
49007 "perm",
49008 "/nodes/{node}",
49009 [
49010 "Sys.Audit"
49011 ]
49012 ]
49013 },
49014 "proxyto" : "node",
49015 "returns" : {
49016 "additionalProperties" : 1,
49017 "properties" : {
49018 "boot-info" : {
49019 "description" : "Meta-information about the boot mode.",
49020 "properties" : {
49021 "mode" : {
49022 "description" : "Through which firmware the system got booted.",
49023 "enum" : [
49024 "efi",
49025 "legacy-bios"
49026 ],
49027 "type" : "string"
49028 },
49029 "secureboot" : {
49030 "description" : "System is booted in secure mode, only applicable for the \"efi\" mode.",
49031 "optional" : 1,
49032 "type" : "boolean"
49033 }
49034 },
49035 "type" : "object"
49036 },
49037 "current-kernel" : {
49038 "description" : "The uptime of the system in seconds.",
49039 "properties" : {
49040 "machine" : {
49041 "description" : "Hardware (architecture) type",
49042 "type" : "string"
49043 },
49044 "release" : {
49045 "description" : "OS kernel release (e.g., \"6.8.0\")",
49046 "type" : "string"
49047 },
49048 "sysname" : {
49049 "description" : "OS kernel name (e.g., \"Linux\")",
49050 "type" : "string"
49051 },
49052 "version" : {
49053 "description" : "OS kernel version with build info",
49054 "type" : "string"
49055 }
49056 },
49057 "type" : "object"
49058 }
49059 },
49060 "type" : "object"
49061 }
49062 },
49063 "POST" : {
49064 "allowtoken" : 1,
49065 "description" : "Reboot or shutdown a node.",
49066 "method" : "POST",
49067 "name" : "node_cmd",
49068 "parameters" : {
49069 "additionalProperties" : 0,
49070 "properties" : {
49071 "command" : {
49072 "description" : "Specify the command.",
49073 "enum" : [
49074 "reboot",
49075 "shutdown"
49076 ],
49077 "type" : "string"
49078 },
49079 "node" : {
49080 "description" : "The cluster node name.",
49081 "format" : "pve-node",
49082 "type" : "string",
49083 "typetext" : "<string>"
49084 }
49085 }
49086 },
49087 "permissions" : {
49088 "check" : [
49089 "perm",
49090 "/nodes/{node}",
49091 [
49092 "Sys.PowerMgmt"
49093 ]
49094 ]
49095 },
49096 "protected" : 1,
49097 "proxyto" : "node",
49098 "returns" : {
49099 "type" : "null"
49100 }
49101 }
49102 },
49103 "leaf" : 1,
49104 "path" : "/nodes/{node}/status",
49105 "text" : "status"
49106 },
49107 {
49108 "info" : {
49109 "GET" : {
49110 "allowtoken" : 1,
49111 "description" : "Read tap/vm network device interface counters",
49112 "method" : "GET",
49113 "name" : "netstat",
49114 "parameters" : {
49115 "additionalProperties" : 0,
49116 "properties" : {
49117 "node" : {
49118 "description" : "The cluster node name.",
49119 "format" : "pve-node",
49120 "type" : "string",
49121 "typetext" : "<string>"
49122 }
49123 }
49124 },
49125 "permissions" : {
49126 "check" : [
49127 "perm",
49128 "/nodes/{node}",
49129 [
49130 "Sys.Audit"
49131 ]
49132 ]
49133 },
49134 "proxyto" : "node",
49135 "returns" : {
49136 "items" : {
49137 "properties" : {},
49138 "type" : "object"
49139 },
49140 "type" : "array"
49141 }
49142 }
49143 },
49144 "leaf" : 1,
49145 "path" : "/nodes/{node}/netstat",
49146 "text" : "netstat"
49147 },
49148 {
49149 "info" : {
49150 "POST" : {
49151 "allowtoken" : 1,
49152 "description" : "Execute multiple commands in order, root only.",
49153 "method" : "POST",
49154 "name" : "execute",
49155 "parameters" : {
49156 "additionalProperties" : 0,
49157 "properties" : {
49158 "commands" : {
49159 "description" : "JSON encoded array of commands.",
49160 "format" : "pve-command-batch",
49161 "type" : "string",
49162 "typetext" : "<string>",
49163 "verbose_description" : "JSON encoded array of commands, where each command is an object with the following properties:\n args: <object>\n\t A set of parameter names and their values.\n\n method: (GET|POST|PUT|DELETE)\n\t A method related to the API endpoint (GET, POST etc.).\n\n path: <string>\n\t A relative path to an API endpoint on this node.\n\n"
49164 },
49165 "node" : {
49166 "description" : "The cluster node name.",
49167 "format" : "pve-node",
49168 "type" : "string",
49169 "typetext" : "<string>"
49170 }
49171 }
49172 },
49173 "protected" : 1,
49174 "proxyto" : "node",
49175 "returns" : {
49176 "items" : {
49177 "properties" : {},
49178 "type" : "object"
49179 },
49180 "type" : "array"
49181 }
49182 }
49183 },
49184 "leaf" : 1,
49185 "path" : "/nodes/{node}/execute",
49186 "text" : "execute"
49187 },
49188 {
49189 "info" : {
49190 "POST" : {
49191 "allowtoken" : 1,
49192 "description" : "Try to wake a node via 'wake on LAN' network packet.",
49193 "method" : "POST",
49194 "name" : "wakeonlan",
49195 "parameters" : {
49196 "additionalProperties" : 0,
49197 "properties" : {
49198 "node" : {
49199 "description" : "target node for wake on LAN packet",
49200 "format" : "pve-node",
49201 "type" : "string",
49202 "typetext" : "<string>"
49203 }
49204 }
49205 },
49206 "permissions" : {
49207 "check" : [
49208 "perm",
49209 "/nodes/{node}",
49210 [
49211 "Sys.PowerMgmt"
49212 ]
49213 ]
49214 },
49215 "protected" : 1,
49216 "returns" : {
49217 "description" : "MAC address used to assemble the WoL magic packet.",
49218 "format" : "mac-addr",
49219 "type" : "string"
49220 }
49221 }
49222 },
49223 "leaf" : 1,
49224 "path" : "/nodes/{node}/wakeonlan",
49225 "text" : "wakeonlan"
49226 },
49227 {
49228 "info" : {
49229 "GET" : {
49230 "allowtoken" : 1,
49231 "description" : "Read node RRD statistics (returns PNG)",
49232 "method" : "GET",
49233 "name" : "rrd",
49234 "parameters" : {
49235 "additionalProperties" : 0,
49236 "properties" : {
49237 "cf" : {
49238 "description" : "The RRD consolidation function",
49239 "enum" : [
49240 "AVERAGE",
49241 "MAX"
49242 ],
49243 "optional" : 1,
49244 "type" : "string"
49245 },
49246 "ds" : {
49247 "description" : "The list of datasources you want to display.",
49248 "format" : "pve-configid-list",
49249 "type" : "string",
49250 "typetext" : "<string>"
49251 },
49252 "node" : {
49253 "description" : "The cluster node name.",
49254 "format" : "pve-node",
49255 "type" : "string",
49256 "typetext" : "<string>"
49257 },
49258 "timeframe" : {
49259 "description" : "Specify the time frame you are interested in.",
49260 "enum" : [
49261 "hour",
49262 "day",
49263 "week",
49264 "month",
49265 "year"
49266 ],
49267 "type" : "string"
49268 }
49269 }
49270 },
49271 "permissions" : {
49272 "check" : [
49273 "perm",
49274 "/nodes/{node}",
49275 [
49276 "Sys.Audit"
49277 ]
49278 ]
49279 },
49280 "protected" : 1,
49281 "returns" : {
49282 "properties" : {
49283 "filename" : {
49284 "type" : "string"
49285 }
49286 },
49287 "type" : "object"
49288 }
49289 }
49290 },
49291 "leaf" : 1,
49292 "path" : "/nodes/{node}/rrd",
49293 "text" : "rrd"
49294 },
49295 {
49296 "info" : {
49297 "GET" : {
49298 "allowtoken" : 1,
49299 "description" : "Read node RRD statistics",
49300 "method" : "GET",
49301 "name" : "rrddata",
49302 "parameters" : {
49303 "additionalProperties" : 0,
49304 "properties" : {
49305 "cf" : {
49306 "description" : "The RRD consolidation function",
49307 "enum" : [
49308 "AVERAGE",
49309 "MAX"
49310 ],
49311 "optional" : 1,
49312 "type" : "string"
49313 },
49314 "node" : {
49315 "description" : "The cluster node name.",
49316 "format" : "pve-node",
49317 "type" : "string",
49318 "typetext" : "<string>"
49319 },
49320 "timeframe" : {
49321 "description" : "Specify the time frame you are interested in.",
49322 "enum" : [
49323 "hour",
49324 "day",
49325 "week",
49326 "month",
49327 "year"
49328 ],
49329 "type" : "string"
49330 }
49331 }
49332 },
49333 "permissions" : {
49334 "check" : [
49335 "perm",
49336 "/nodes/{node}",
49337 [
49338 "Sys.Audit"
49339 ]
49340 ]
49341 },
49342 "protected" : 1,
49343 "returns" : {
49344 "items" : {
49345 "properties" : {},
49346 "type" : "object"
49347 },
49348 "type" : "array"
49349 }
49350 }
49351 },
49352 "leaf" : 1,
49353 "path" : "/nodes/{node}/rrddata",
49354 "text" : "rrddata"
49355 },
49356 {
49357 "info" : {
49358 "GET" : {
49359 "allowtoken" : 1,
49360 "description" : "Read system log",
49361 "method" : "GET",
49362 "name" : "syslog",
49363 "parameters" : {
49364 "additionalProperties" : 0,
49365 "properties" : {
49366 "limit" : {
49367 "minimum" : 0,
49368 "optional" : 1,
49369 "type" : "integer",
49370 "typetext" : "<integer> (0 - N)"
49371 },
49372 "node" : {
49373 "description" : "The cluster node name.",
49374 "format" : "pve-node",
49375 "type" : "string",
49376 "typetext" : "<string>"
49377 },
49378 "service" : {
49379 "description" : "Service ID",
49380 "maxLength" : 128,
49381 "optional" : 1,
49382 "type" : "string",
49383 "typetext" : "<string>"
49384 },
49385 "since" : {
49386 "description" : "Display all log since this date-time string.",
49387 "optional" : 1,
49388 "pattern" : "^\\d{4}-\\d{2}-\\d{2}( \\d{2}:\\d{2}(:\\d{2})?)?$",
49389 "type" : "string"
49390 },
49391 "start" : {
49392 "minimum" : 0,
49393 "optional" : 1,
49394 "type" : "integer",
49395 "typetext" : "<integer> (0 - N)"
49396 },
49397 "until" : {
49398 "description" : "Display all log until this date-time string.",
49399 "optional" : 1,
49400 "pattern" : "^\\d{4}-\\d{2}-\\d{2}( \\d{2}:\\d{2}(:\\d{2})?)?$",
49401 "type" : "string"
49402 }
49403 }
49404 },
49405 "permissions" : {
49406 "check" : [
49407 "perm",
49408 "/nodes/{node}",
49409 [
49410 "Sys.Syslog"
49411 ]
49412 ]
49413 },
49414 "protected" : 1,
49415 "proxyto" : "node",
49416 "returns" : {
49417 "items" : {
49418 "properties" : {
49419 "n" : {
49420 "description" : "Line number",
49421 "type" : "integer"
49422 },
49423 "t" : {
49424 "description" : "Line text",
49425 "type" : "string"
49426 }
49427 },
49428 "type" : "object"
49429 },
49430 "type" : "array"
49431 }
49432 }
49433 },
49434 "leaf" : 1,
49435 "path" : "/nodes/{node}/syslog",
49436 "text" : "syslog"
49437 },
49438 {
49439 "info" : {
49440 "GET" : {
49441 "allowtoken" : 1,
49442 "description" : "Read Journal",
49443 "method" : "GET",
49444 "name" : "journal",
49445 "parameters" : {
49446 "additionalProperties" : 0,
49447 "properties" : {
49448 "endcursor" : {
49449 "description" : "End before the given Cursor. Conflicts with 'until'",
49450 "optional" : 1,
49451 "type" : "string",
49452 "typetext" : "<string>"
49453 },
49454 "lastentries" : {
49455 "description" : "Limit to the last X lines. Conflicts with a range.",
49456 "minimum" : 0,
49457 "optional" : 1,
49458 "type" : "integer",
49459 "typetext" : "<integer> (0 - N)"
49460 },
49461 "node" : {
49462 "description" : "The cluster node name.",
49463 "format" : "pve-node",
49464 "type" : "string",
49465 "typetext" : "<string>"
49466 },
49467 "since" : {
49468 "description" : "Display all log since this UNIX epoch. Conflicts with 'startcursor'.",
49469 "minimum" : 0,
49470 "optional" : 1,
49471 "type" : "integer",
49472 "typetext" : "<integer> (0 - N)"
49473 },
49474 "startcursor" : {
49475 "description" : "Start after the given Cursor. Conflicts with 'since'",
49476 "optional" : 1,
49477 "type" : "string",
49478 "typetext" : "<string>"
49479 },
49480 "until" : {
49481 "description" : "Display all log until this UNIX epoch. Conflicts with 'endcursor'.",
49482 "minimum" : 0,
49483 "optional" : 1,
49484 "type" : "integer",
49485 "typetext" : "<integer> (0 - N)"
49486 }
49487 }
49488 },
49489 "permissions" : {
49490 "check" : [
49491 "perm",
49492 "/nodes/{node}",
49493 [
49494 "Sys.Syslog"
49495 ]
49496 ]
49497 },
49498 "protected" : 1,
49499 "proxyto" : "node",
49500 "returns" : {
49501 "items" : {
49502 "type" : "string"
49503 },
49504 "type" : "array"
49505 }
49506 }
49507 },
49508 "leaf" : 1,
49509 "path" : "/nodes/{node}/journal",
49510 "text" : "journal"
49511 },
49512 {
49513 "info" : {
49514 "POST" : {
49515 "allowtoken" : 1,
49516 "description" : "Creates a VNC Shell proxy.",
49517 "method" : "POST",
49518 "name" : "vncshell",
49519 "parameters" : {
49520 "additionalProperties" : 0,
49521 "properties" : {
49522 "cmd" : {
49523 "default" : "login",
49524 "description" : "Run specific command or default to login (requires 'root@pam')",
49525 "enum" : [
49526 "login",
49527 "upgrade",
49528 "ceph_install"
49529 ],
49530 "optional" : 1,
49531 "type" : "string"
49532 },
49533 "cmd-opts" : {
49534 "default" : "",
49535 "description" : "Add parameters to a command. Encoded as null terminated strings.",
49536 "optional" : 1,
49537 "requires" : "cmd",
49538 "type" : "string",
49539 "typetext" : "<string>"
49540 },
49541 "height" : {
49542 "description" : "sets the height of the console in pixels.",
49543 "maximum" : 2160,
49544 "minimum" : 16,
49545 "optional" : 1,
49546 "type" : "integer",
49547 "typetext" : "<integer> (16 - 2160)"
49548 },
49549 "node" : {
49550 "description" : "The cluster node name.",
49551 "format" : "pve-node",
49552 "type" : "string",
49553 "typetext" : "<string>"
49554 },
49555 "websocket" : {
49556 "description" : "use websocket instead of standard vnc.",
49557 "optional" : 1,
49558 "type" : "boolean",
49559 "typetext" : "<boolean>"
49560 },
49561 "width" : {
49562 "description" : "sets the width of the console in pixels.",
49563 "maximum" : 4096,
49564 "minimum" : 16,
49565 "optional" : 1,
49566 "type" : "integer",
49567 "typetext" : "<integer> (16 - 4096)"
49568 }
49569 }
49570 },
49571 "permissions" : {
49572 "check" : [
49573 "perm",
49574 "/nodes/{node}",
49575 [
49576 "Sys.Console"
49577 ]
49578 ]
49579 },
49580 "protected" : 1,
49581 "returns" : {
49582 "additionalProperties" : 0,
49583 "properties" : {
49584 "cert" : {
49585 "type" : "string"
49586 },
49587 "port" : {
49588 "type" : "integer"
49589 },
49590 "ticket" : {
49591 "type" : "string"
49592 },
49593 "upid" : {
49594 "type" : "string"
49595 },
49596 "user" : {
49597 "type" : "string"
49598 }
49599 }
49600 }
49601 }
49602 },
49603 "leaf" : 1,
49604 "path" : "/nodes/{node}/vncshell",
49605 "text" : "vncshell"
49606 },
49607 {
49608 "info" : {
49609 "POST" : {
49610 "allowtoken" : 1,
49611 "description" : "Creates a VNC Shell proxy.",
49612 "method" : "POST",
49613 "name" : "termproxy",
49614 "parameters" : {
49615 "additionalProperties" : 0,
49616 "properties" : {
49617 "cmd" : {
49618 "default" : "login",
49619 "description" : "Run specific command or default to login (requires 'root@pam')",
49620 "enum" : [
49621 "login",
49622 "upgrade",
49623 "ceph_install"
49624 ],
49625 "optional" : 1,
49626 "type" : "string"
49627 },
49628 "cmd-opts" : {
49629 "default" : "",
49630 "description" : "Add parameters to a command. Encoded as null terminated strings.",
49631 "optional" : 1,
49632 "requires" : "cmd",
49633 "type" : "string",
49634 "typetext" : "<string>"
49635 },
49636 "node" : {
49637 "description" : "The cluster node name.",
49638 "format" : "pve-node",
49639 "type" : "string",
49640 "typetext" : "<string>"
49641 }
49642 }
49643 },
49644 "permissions" : {
49645 "check" : [
49646 "perm",
49647 "/nodes/{node}",
49648 [
49649 "Sys.Console"
49650 ]
49651 ]
49652 },
49653 "protected" : 1,
49654 "returns" : {
49655 "additionalProperties" : 0,
49656 "properties" : {
49657 "port" : {
49658 "type" : "integer"
49659 },
49660 "ticket" : {
49661 "type" : "string"
49662 },
49663 "upid" : {
49664 "type" : "string"
49665 },
49666 "user" : {
49667 "type" : "string"
49668 }
49669 }
49670 }
49671 }
49672 },
49673 "leaf" : 1,
49674 "path" : "/nodes/{node}/termproxy",
49675 "text" : "termproxy"
49676 },
49677 {
49678 "info" : {
49679 "GET" : {
49680 "allowtoken" : 1,
49681 "description" : "Opens a websocket for VNC traffic.",
49682 "method" : "GET",
49683 "name" : "vncwebsocket",
49684 "parameters" : {
49685 "additionalProperties" : 0,
49686 "properties" : {
49687 "node" : {
49688 "description" : "The cluster node name.",
49689 "format" : "pve-node",
49690 "type" : "string",
49691 "typetext" : "<string>"
49692 },
49693 "port" : {
49694 "description" : "Port number returned by previous vncproxy call.",
49695 "maximum" : 5999,
49696 "minimum" : 5900,
49697 "type" : "integer",
49698 "typetext" : "<integer> (5900 - 5999)"
49699 },
49700 "vncticket" : {
49701 "description" : "Ticket from previous call to vncproxy.",
49702 "maxLength" : 512,
49703 "type" : "string",
49704 "typetext" : "<string>"
49705 }
49706 }
49707 },
49708 "permissions" : {
49709 "check" : [
49710 "perm",
49711 "/nodes/{node}",
49712 [
49713 "Sys.Console"
49714 ]
49715 ],
49716 "description" : "You also need to pass a valid ticket (vncticket)."
49717 },
49718 "returns" : {
49719 "properties" : {
49720 "port" : {
49721 "type" : "string"
49722 }
49723 },
49724 "type" : "object"
49725 }
49726 }
49727 },
49728 "leaf" : 1,
49729 "path" : "/nodes/{node}/vncwebsocket",
49730 "text" : "vncwebsocket"
49731 },
49732 {
49733 "info" : {
49734 "POST" : {
49735 "allowtoken" : 1,
49736 "description" : "Creates a SPICE shell.",
49737 "method" : "POST",
49738 "name" : "spiceshell",
49739 "parameters" : {
49740 "additionalProperties" : 0,
49741 "properties" : {
49742 "cmd" : {
49743 "default" : "login",
49744 "description" : "Run specific command or default to login (requires 'root@pam')",
49745 "enum" : [
49746 "login",
49747 "upgrade",
49748 "ceph_install"
49749 ],
49750 "optional" : 1,
49751 "type" : "string"
49752 },
49753 "cmd-opts" : {
49754 "default" : "",
49755 "description" : "Add parameters to a command. Encoded as null terminated strings.",
49756 "optional" : 1,
49757 "requires" : "cmd",
49758 "type" : "string",
49759 "typetext" : "<string>"
49760 },
49761 "node" : {
49762 "description" : "The cluster node name.",
49763 "format" : "pve-node",
49764 "type" : "string",
49765 "typetext" : "<string>"
49766 },
49767 "proxy" : {
49768 "description" : "SPICE proxy server. This can be used by the client to specify the proxy server. All nodes in a cluster runs 'spiceproxy', so it is up to the client to choose one. By default, we return the node where the VM is currently running. As reasonable setting is to use same node you use to connect to the API (This is window.location.hostname for the JS GUI).",
49769 "format" : "address",
49770 "optional" : 1,
49771 "type" : "string",
49772 "typetext" : "<string>"
49773 }
49774 }
49775 },
49776 "permissions" : {
49777 "check" : [
49778 "perm",
49779 "/nodes/{node}",
49780 [
49781 "Sys.Console"
49782 ]
49783 ]
49784 },
49785 "protected" : 1,
49786 "proxyto" : "node",
49787 "returns" : {
49788 "additionalProperties" : 1,
49789 "description" : "Returned values can be directly passed to the 'remote-viewer' application.",
49790 "properties" : {
49791 "host" : {
49792 "type" : "string"
49793 },
49794 "password" : {
49795 "type" : "string"
49796 },
49797 "proxy" : {
49798 "type" : "string"
49799 },
49800 "tls-port" : {
49801 "type" : "integer"
49802 },
49803 "type" : {
49804 "type" : "string"
49805 }
49806 }
49807 }
49808 }
49809 },
49810 "leaf" : 1,
49811 "path" : "/nodes/{node}/spiceshell",
49812 "text" : "spiceshell"
49813 },
49814 {
49815 "info" : {
49816 "GET" : {
49817 "allowtoken" : 1,
49818 "description" : "Read DNS settings.",
49819 "method" : "GET",
49820 "name" : "dns",
49821 "parameters" : {
49822 "additionalProperties" : 0,
49823 "properties" : {
49824 "node" : {
49825 "description" : "The cluster node name.",
49826 "format" : "pve-node",
49827 "type" : "string",
49828 "typetext" : "<string>"
49829 }
49830 }
49831 },
49832 "permissions" : {
49833 "check" : [
49834 "perm",
49835 "/nodes/{node}",
49836 [
49837 "Sys.Audit"
49838 ]
49839 ]
49840 },
49841 "proxyto" : "node",
49842 "returns" : {
49843 "additionalProperties" : 0,
49844 "properties" : {
49845 "dns1" : {
49846 "description" : "First name server IP address.",
49847 "optional" : 1,
49848 "type" : "string"
49849 },
49850 "dns2" : {
49851 "description" : "Second name server IP address.",
49852 "optional" : 1,
49853 "type" : "string"
49854 },
49855 "dns3" : {
49856 "description" : "Third name server IP address.",
49857 "optional" : 1,
49858 "type" : "string"
49859 },
49860 "search" : {
49861 "description" : "Search domain for host-name lookup.",
49862 "optional" : 1,
49863 "type" : "string"
49864 }
49865 },
49866 "type" : "object"
49867 }
49868 },
49869 "PUT" : {
49870 "allowtoken" : 1,
49871 "description" : "Write DNS settings.",
49872 "method" : "PUT",
49873 "name" : "update_dns",
49874 "parameters" : {
49875 "additionalProperties" : 0,
49876 "properties" : {
49877 "dns1" : {
49878 "description" : "First name server IP address.",
49879 "format" : "ip",
49880 "optional" : 1,
49881 "type" : "string",
49882 "typetext" : "<string>"
49883 },
49884 "dns2" : {
49885 "description" : "Second name server IP address.",
49886 "format" : "ip",
49887 "optional" : 1,
49888 "type" : "string",
49889 "typetext" : "<string>"
49890 },
49891 "dns3" : {
49892 "description" : "Third name server IP address.",
49893 "format" : "ip",
49894 "optional" : 1,
49895 "type" : "string",
49896 "typetext" : "<string>"
49897 },
49898 "node" : {
49899 "description" : "The cluster node name.",
49900 "format" : "pve-node",
49901 "type" : "string",
49902 "typetext" : "<string>"
49903 },
49904 "search" : {
49905 "description" : "Search domain for host-name lookup.",
49906 "type" : "string",
49907 "typetext" : "<string>"
49908 }
49909 }
49910 },
49911 "permissions" : {
49912 "check" : [
49913 "perm",
49914 "/nodes/{node}",
49915 [
49916 "Sys.Modify"
49917 ]
49918 ]
49919 },
49920 "protected" : 1,
49921 "proxyto" : "node",
49922 "returns" : {
49923 "type" : "null"
49924 }
49925 }
49926 },
49927 "leaf" : 1,
49928 "path" : "/nodes/{node}/dns",
49929 "text" : "dns"
49930 },
49931 {
49932 "info" : {
49933 "GET" : {
49934 "allowtoken" : 1,
49935 "description" : "Read server time and time zone settings.",
49936 "method" : "GET",
49937 "name" : "time",
49938 "parameters" : {
49939 "additionalProperties" : 0,
49940 "properties" : {
49941 "node" : {
49942 "description" : "The cluster node name.",
49943 "format" : "pve-node",
49944 "type" : "string",
49945 "typetext" : "<string>"
49946 }
49947 }
49948 },
49949 "permissions" : {
49950 "check" : [
49951 "perm",
49952 "/nodes/{node}",
49953 [
49954 "Sys.Audit"
49955 ]
49956 ]
49957 },
49958 "proxyto" : "node",
49959 "returns" : {
49960 "additionalProperties" : 0,
49961 "properties" : {
49962 "localtime" : {
49963 "description" : "Seconds since 1970-01-01 00:00:00 (local time)",
49964 "minimum" : 1297163644,
49965 "renderer" : "timestamp_gmt",
49966 "type" : "integer"
49967 },
49968 "time" : {
49969 "description" : "Seconds since 1970-01-01 00:00:00 UTC.",
49970 "minimum" : 1297163644,
49971 "renderer" : "timestamp",
49972 "type" : "integer"
49973 },
49974 "timezone" : {
49975 "description" : "Time zone",
49976 "type" : "string"
49977 }
49978 },
49979 "type" : "object"
49980 }
49981 },
49982 "PUT" : {
49983 "allowtoken" : 1,
49984 "description" : "Set time zone.",
49985 "method" : "PUT",
49986 "name" : "set_timezone",
49987 "parameters" : {
49988 "additionalProperties" : 0,
49989 "properties" : {
49990 "node" : {
49991 "description" : "The cluster node name.",
49992 "format" : "pve-node",
49993 "type" : "string",
49994 "typetext" : "<string>"
49995 },
49996 "timezone" : {
49997 "description" : "Time zone. The file '/usr/share/zoneinfo/zone.tab' contains the list of valid names.",
49998 "type" : "string",
49999 "typetext" : "<string>"
50000 }
50001 }
50002 },
50003 "permissions" : {
50004 "check" : [
50005 "perm",
50006 "/nodes/{node}",
50007 [
50008 "Sys.Modify"
50009 ]
50010 ]
50011 },
50012 "protected" : 1,
50013 "proxyto" : "node",
50014 "returns" : {
50015 "type" : "null"
50016 }
50017 }
50018 },
50019 "leaf" : 1,
50020 "path" : "/nodes/{node}/time",
50021 "text" : "time"
50022 },
50023 {
50024 "info" : {
50025 "GET" : {
50026 "allowtoken" : 1,
50027 "description" : "Get list of appliances.",
50028 "method" : "GET",
50029 "name" : "aplinfo",
50030 "parameters" : {
50031 "additionalProperties" : 0,
50032 "properties" : {
50033 "node" : {
50034 "description" : "The cluster node name.",
50035 "format" : "pve-node",
50036 "type" : "string",
50037 "typetext" : "<string>"
50038 }
50039 }
50040 },
50041 "permissions" : {
50042 "user" : "all"
50043 },
50044 "proxyto" : "node",
50045 "returns" : {
50046 "items" : {
50047 "properties" : {},
50048 "type" : "object"
50049 },
50050 "type" : "array"
50051 }
50052 },
50053 "POST" : {
50054 "allowtoken" : 1,
50055 "description" : "Download appliance templates.",
50056 "method" : "POST",
50057 "name" : "apl_download",
50058 "parameters" : {
50059 "additionalProperties" : 0,
50060 "properties" : {
50061 "node" : {
50062 "description" : "The cluster node name.",
50063 "format" : "pve-node",
50064 "type" : "string",
50065 "typetext" : "<string>"
50066 },
50067 "storage" : {
50068 "description" : "The storage where the template will be stored",
50069 "format" : "pve-storage-id",
50070 "format_description" : "storage ID",
50071 "type" : "string",
50072 "typetext" : "<storage ID>"
50073 },
50074 "template" : {
50075 "description" : "The template which will downloaded",
50076 "maxLength" : 255,
50077 "type" : "string",
50078 "typetext" : "<string>"
50079 }
50080 }
50081 },
50082 "permissions" : {
50083 "check" : [
50084 "perm",
50085 "/storage/{storage}",
50086 [
50087 "Datastore.AllocateTemplate"
50088 ]
50089 ]
50090 },
50091 "protected" : 1,
50092 "proxyto" : "node",
50093 "returns" : {
50094 "type" : "string"
50095 }
50096 }
50097 },
50098 "leaf" : 1,
50099 "path" : "/nodes/{node}/aplinfo",
50100 "text" : "aplinfo"
50101 },
50102 {
50103 "info" : {
50104 "GET" : {
50105 "allowtoken" : 1,
50106 "description" : "Query metadata of an URL: file size, file name and mime type.",
50107 "method" : "GET",
50108 "name" : "query_url_metadata",
50109 "parameters" : {
50110 "additionalProperties" : 0,
50111 "properties" : {
50112 "node" : {
50113 "description" : "The cluster node name.",
50114 "format" : "pve-node",
50115 "type" : "string",
50116 "typetext" : "<string>"
50117 },
50118 "url" : {
50119 "description" : "The URL to query the metadata from.",
50120 "pattern" : "https?://.*",
50121 "type" : "string"
50122 },
50123 "verify-certificates" : {
50124 "default" : 1,
50125 "description" : "If false, no SSL/TLS certificates will be verified.",
50126 "optional" : 1,
50127 "type" : "boolean",
50128 "typetext" : "<boolean>"
50129 }
50130 }
50131 },
50132 "permissions" : {
50133 "check" : [
50134 "or",
50135 [
50136 "perm",
50137 "/",
50138 [
50139 "Sys.Audit",
50140 "Sys.Modify"
50141 ]
50142 ],
50143 [
50144 "perm",
50145 "/nodes/{node}",
50146 [
50147 "Sys.AccessNetwork"
50148 ]
50149 ]
50150 ]
50151 },
50152 "proxyto" : "node",
50153 "returns" : {
50154 "properties" : {
50155 "filename" : {
50156 "optional" : 1,
50157 "type" : "string"
50158 },
50159 "mimetype" : {
50160 "optional" : 1,
50161 "type" : "string"
50162 },
50163 "size" : {
50164 "optional" : 1,
50165 "renderer" : "bytes",
50166 "type" : "integer"
50167 }
50168 },
50169 "type" : "object"
50170 }
50171 }
50172 },
50173 "leaf" : 1,
50174 "path" : "/nodes/{node}/query-url-metadata",
50175 "text" : "query-url-metadata"
50176 },
50177 {
50178 "info" : {
50179 "GET" : {
50180 "allowtoken" : 1,
50181 "description" : "Gather various systems information about a node",
50182 "method" : "GET",
50183 "name" : "report",
50184 "parameters" : {
50185 "additionalProperties" : 0,
50186 "properties" : {
50187 "node" : {
50188 "description" : "The cluster node name.",
50189 "format" : "pve-node",
50190 "type" : "string",
50191 "typetext" : "<string>"
50192 }
50193 }
50194 },
50195 "permissions" : {
50196 "check" : [
50197 "perm",
50198 "/nodes/{node}",
50199 [
50200 "Sys.Audit"
50201 ]
50202 ]
50203 },
50204 "protected" : 1,
50205 "proxyto" : "node",
50206 "returns" : {
50207 "type" : "string"
50208 }
50209 }
50210 },
50211 "leaf" : 1,
50212 "path" : "/nodes/{node}/report",
50213 "text" : "report"
50214 },
50215 {
50216 "info" : {
50217 "POST" : {
50218 "allowtoken" : 1,
50219 "description" : "Start all VMs and containers located on this node (by default only those with onboot=1).",
50220 "method" : "POST",
50221 "name" : "startall",
50222 "parameters" : {
50223 "additionalProperties" : 0,
50224 "properties" : {
50225 "force" : {
50226 "default" : "off",
50227 "description" : "Issue start command even if virtual guest have 'onboot' not set or set to off.",
50228 "optional" : 1,
50229 "type" : "boolean",
50230 "typetext" : "<boolean>"
50231 },
50232 "node" : {
50233 "description" : "The cluster node name.",
50234 "format" : "pve-node",
50235 "type" : "string",
50236 "typetext" : "<string>"
50237 },
50238 "vms" : {
50239 "description" : "Only consider guests from this comma separated list of VMIDs.",
50240 "format" : "pve-vmid-list",
50241 "optional" : 1,
50242 "type" : "string",
50243 "typetext" : "<string>"
50244 }
50245 }
50246 },
50247 "permissions" : {
50248 "description" : "The 'VM.PowerMgmt' permission is required on '/' or on '/vms/<ID>' for each ID passed via the 'vms' parameter.",
50249 "user" : "all"
50250 },
50251 "protected" : 1,
50252 "proxyto" : "node",
50253 "returns" : {
50254 "type" : "string"
50255 }
50256 }
50257 },
50258 "leaf" : 1,
50259 "path" : "/nodes/{node}/startall",
50260 "text" : "startall"
50261 },
50262 {
50263 "info" : {
50264 "POST" : {
50265 "allowtoken" : 1,
50266 "description" : "Stop all VMs and Containers.",
50267 "method" : "POST",
50268 "name" : "stopall",
50269 "parameters" : {
50270 "additionalProperties" : 0,
50271 "properties" : {
50272 "force-stop" : {
50273 "default" : 1,
50274 "description" : "Force a hard-stop after the timeout.",
50275 "optional" : 1,
50276 "type" : "boolean",
50277 "typetext" : "<boolean>"
50278 },
50279 "node" : {
50280 "description" : "The cluster node name.",
50281 "format" : "pve-node",
50282 "type" : "string",
50283 "typetext" : "<string>"
50284 },
50285 "timeout" : {
50286 "default" : 180,
50287 "description" : "Timeout for each guest shutdown task. Depending on `force-stop`, the shutdown gets then simply aborted or a hard-stop is forced.",
50288 "maximum" : 7200,
50289 "minimum" : 0,
50290 "optional" : 1,
50291 "type" : "integer",
50292 "typetext" : "<integer> (0 - 7200)"
50293 },
50294 "vms" : {
50295 "description" : "Only consider Guests with these IDs.",
50296 "format" : "pve-vmid-list",
50297 "optional" : 1,
50298 "type" : "string",
50299 "typetext" : "<string>"
50300 }
50301 }
50302 },
50303 "permissions" : {
50304 "description" : "The 'VM.PowerMgmt' permission is required on '/' or on '/vms/<ID>' for each ID passed via the 'vms' parameter.",
50305 "user" : "all"
50306 },
50307 "protected" : 1,
50308 "proxyto" : "node",
50309 "returns" : {
50310 "type" : "string"
50311 }
50312 }
50313 },
50314 "leaf" : 1,
50315 "path" : "/nodes/{node}/stopall",
50316 "text" : "stopall"
50317 },
50318 {
50319 "info" : {
50320 "POST" : {
50321 "allowtoken" : 1,
50322 "description" : "Suspend all VMs.",
50323 "method" : "POST",
50324 "name" : "suspendall",
50325 "parameters" : {
50326 "additionalProperties" : 0,
50327 "properties" : {
50328 "node" : {
50329 "description" : "The cluster node name.",
50330 "format" : "pve-node",
50331 "type" : "string",
50332 "typetext" : "<string>"
50333 },
50334 "vms" : {
50335 "description" : "Only consider Guests with these IDs.",
50336 "format" : "pve-vmid-list",
50337 "optional" : 1,
50338 "type" : "string",
50339 "typetext" : "<string>"
50340 }
50341 }
50342 },
50343 "permissions" : {
50344 "description" : "The 'VM.PowerMgmt' permission is required on '/' or on '/vms/<ID>' for each ID passed via the 'vms' parameter. Additionally, you need 'VM.Config.Disk' on the '/vms/{vmid}' path and 'Datastore.AllocateSpace' for the configured state-storage(s)",
50345 "user" : "all"
50346 },
50347 "protected" : 1,
50348 "proxyto" : "node",
50349 "returns" : {
50350 "type" : "string"
50351 }
50352 }
50353 },
50354 "leaf" : 1,
50355 "path" : "/nodes/{node}/suspendall",
50356 "text" : "suspendall"
50357 },
50358 {
50359 "info" : {
50360 "POST" : {
50361 "allowtoken" : 1,
50362 "description" : "Migrate all VMs and Containers.",
50363 "method" : "POST",
50364 "name" : "migrateall",
50365 "parameters" : {
50366 "additionalProperties" : 0,
50367 "properties" : {
50368 "maxworkers" : {
50369 "description" : "Maximal number of parallel migration job. If not set, uses'max_workers' from datacenter.cfg. One of both must be set!",
50370 "minimum" : 1,
50371 "optional" : 1,
50372 "type" : "integer",
50373 "typetext" : "<integer> (1 - N)"
50374 },
50375 "node" : {
50376 "description" : "The cluster node name.",
50377 "format" : "pve-node",
50378 "type" : "string",
50379 "typetext" : "<string>"
50380 },
50381 "target" : {
50382 "description" : "Target node.",
50383 "format" : "pve-node",
50384 "type" : "string",
50385 "typetext" : "<string>"
50386 },
50387 "vms" : {
50388 "description" : "Only consider Guests with these IDs.",
50389 "format" : "pve-vmid-list",
50390 "optional" : 1,
50391 "type" : "string",
50392 "typetext" : "<string>"
50393 },
50394 "with-local-disks" : {
50395 "description" : "Enable live storage migration for local disk",
50396 "optional" : 1,
50397 "type" : "boolean",
50398 "typetext" : "<boolean>"
50399 }
50400 }
50401 },
50402 "permissions" : {
50403 "description" : "The 'VM.Migrate' permission is required on '/' or on '/vms/<ID>' for each ID passed via the 'vms' parameter.",
50404 "user" : "all"
50405 },
50406 "protected" : 1,
50407 "proxyto" : "node",
50408 "returns" : {
50409 "type" : "string"
50410 }
50411 }
50412 },
50413 "leaf" : 1,
50414 "path" : "/nodes/{node}/migrateall",
50415 "text" : "migrateall"
50416 },
50417 {
50418 "info" : {
50419 "GET" : {
50420 "allowtoken" : 1,
50421 "description" : "Get the content of /etc/hosts.",
50422 "method" : "GET",
50423 "name" : "get_etc_hosts",
50424 "parameters" : {
50425 "additionalProperties" : 0,
50426 "properties" : {
50427 "node" : {
50428 "description" : "The cluster node name.",
50429 "format" : "pve-node",
50430 "type" : "string",
50431 "typetext" : "<string>"
50432 }
50433 }
50434 },
50435 "permissions" : {
50436 "check" : [
50437 "perm",
50438 "/",
50439 [
50440 "Sys.Audit"
50441 ]
50442 ]
50443 },
50444 "protected" : 1,
50445 "proxyto" : "node",
50446 "returns" : {
50447 "properties" : {
50448 "data" : {
50449 "description" : "The content of /etc/hosts.",
50450 "type" : "string"
50451 },
50452 "digest" : {
50453 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
50454 "maxLength" : 64,
50455 "optional" : 1,
50456 "type" : "string"
50457 }
50458 },
50459 "type" : "object"
50460 }
50461 },
50462 "POST" : {
50463 "allowtoken" : 1,
50464 "description" : "Write /etc/hosts.",
50465 "method" : "POST",
50466 "name" : "write_etc_hosts",
50467 "parameters" : {
50468 "additionalProperties" : 0,
50469 "properties" : {
50470 "data" : {
50471 "description" : "The target content of /etc/hosts.",
50472 "type" : "string",
50473 "typetext" : "<string>"
50474 },
50475 "digest" : {
50476 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
50477 "maxLength" : 64,
50478 "optional" : 1,
50479 "type" : "string",
50480 "typetext" : "<string>"
50481 },
50482 "node" : {
50483 "description" : "The cluster node name.",
50484 "format" : "pve-node",
50485 "type" : "string",
50486 "typetext" : "<string>"
50487 }
50488 }
50489 },
50490 "permissions" : {
50491 "check" : [
50492 "perm",
50493 "/nodes/{node}",
50494 [
50495 "Sys.Modify"
50496 ]
50497 ]
50498 },
50499 "protected" : 1,
50500 "proxyto" : "node",
50501 "returns" : {
50502 "type" : "null"
50503 }
50504 }
50505 },
50506 "leaf" : 1,
50507 "path" : "/nodes/{node}/hosts",
50508 "text" : "hosts"
50509 }
50510 ],
50511 "info" : {
50512 "GET" : {
50513 "allowtoken" : 1,
50514 "description" : "Node index.",
50515 "method" : "GET",
50516 "name" : "index",
50517 "parameters" : {
50518 "additionalProperties" : 0,
50519 "properties" : {
50520 "node" : {
50521 "description" : "The cluster node name.",
50522 "format" : "pve-node",
50523 "type" : "string",
50524 "typetext" : "<string>"
50525 }
50526 }
50527 },
50528 "permissions" : {
50529 "user" : "all"
50530 },
50531 "returns" : {
50532 "items" : {
50533 "properties" : {},
50534 "type" : "object"
50535 },
50536 "links" : [
50537 {
50538 "href" : "{name}",
50539 "rel" : "child"
50540 }
50541 ],
50542 "type" : "array"
50543 }
50544 }
50545 },
50546 "leaf" : 0,
50547 "path" : "/nodes/{node}",
50548 "text" : "{node}"
50549 }
50550 ],
50551 "info" : {
50552 "GET" : {
50553 "allowtoken" : 1,
50554 "description" : "Cluster node index.",
50555 "method" : "GET",
50556 "name" : "index",
50557 "parameters" : {
50558 "additionalProperties" : 0
50559 },
50560 "permissions" : {
50561 "user" : "all"
50562 },
50563 "returns" : {
50564 "items" : {
50565 "properties" : {
50566 "cpu" : {
50567 "description" : "CPU utilization.",
50568 "optional" : 1,
50569 "renderer" : "fraction_as_percentage",
50570 "type" : "number"
50571 },
50572 "level" : {
50573 "description" : "Support level.",
50574 "optional" : 1,
50575 "type" : "string"
50576 },
50577 "maxcpu" : {
50578 "description" : "Number of available CPUs.",
50579 "optional" : 1,
50580 "type" : "integer"
50581 },
50582 "maxmem" : {
50583 "description" : "Number of available memory in bytes.",
50584 "optional" : 1,
50585 "renderer" : "bytes",
50586 "type" : "integer"
50587 },
50588 "mem" : {
50589 "description" : "Used memory in bytes.",
50590 "optional" : 1,
50591 "renderer" : "bytes",
50592 "type" : "integer"
50593 },
50594 "node" : {
50595 "description" : "The cluster node name.",
50596 "format" : "pve-node",
50597 "type" : "string"
50598 },
50599 "ssl_fingerprint" : {
50600 "description" : "The SSL fingerprint for the node certificate.",
50601 "optional" : 1,
50602 "type" : "string"
50603 },
50604 "status" : {
50605 "description" : "Node status.",
50606 "enum" : [
50607 "unknown",
50608 "online",
50609 "offline"
50610 ],
50611 "type" : "string"
50612 },
50613 "uptime" : {
50614 "description" : "Node uptime in seconds.",
50615 "optional" : 1,
50616 "renderer" : "duration",
50617 "type" : "integer"
50618 }
50619 },
50620 "type" : "object"
50621 },
50622 "links" : [
50623 {
50624 "href" : "{node}",
50625 "rel" : "child"
50626 }
50627 ],
50628 "type" : "array"
50629 }
50630 }
50631 },
50632 "leaf" : 0,
50633 "path" : "/nodes",
50634 "text" : "nodes"
50635 },
50636 {
50637 "children" : [
50638 {
50639 "info" : {
50640 "DELETE" : {
50641 "allowtoken" : 1,
50642 "description" : "Delete storage configuration.",
50643 "method" : "DELETE",
50644 "name" : "delete",
50645 "parameters" : {
50646 "additionalProperties" : 0,
50647 "properties" : {
50648 "storage" : {
50649 "description" : "The storage identifier.",
50650 "format" : "pve-storage-id",
50651 "format_description" : "storage ID",
50652 "type" : "string",
50653 "typetext" : "<storage ID>"
50654 }
50655 }
50656 },
50657 "permissions" : {
50658 "check" : [
50659 "perm",
50660 "/storage",
50661 [
50662 "Datastore.Allocate"
50663 ]
50664 ]
50665 },
50666 "protected" : 1,
50667 "returns" : {
50668 "type" : "null"
50669 }
50670 },
50671 "GET" : {
50672 "allowtoken" : 1,
50673 "description" : "Read storage configuration.",
50674 "method" : "GET",
50675 "name" : "read",
50676 "parameters" : {
50677 "additionalProperties" : 0,
50678 "properties" : {
50679 "storage" : {
50680 "description" : "The storage identifier.",
50681 "format" : "pve-storage-id",
50682 "format_description" : "storage ID",
50683 "type" : "string",
50684 "typetext" : "<storage ID>"
50685 }
50686 }
50687 },
50688 "permissions" : {
50689 "check" : [
50690 "perm",
50691 "/storage/{storage}",
50692 [
50693 "Datastore.Allocate"
50694 ]
50695 ]
50696 },
50697 "returns" : {
50698 "type" : "object"
50699 }
50700 },
50701 "PUT" : {
50702 "allowtoken" : 1,
50703 "description" : "Update storage configuration.",
50704 "method" : "PUT",
50705 "name" : "update",
50706 "parameters" : {
50707 "additionalProperties" : 0,
50708 "properties" : {
50709 "blocksize" : {
50710 "description" : "block size",
50711 "optional" : 1,
50712 "type" : "string",
50713 "typetext" : "<string>"
50714 },
50715 "bwlimit" : {
50716 "description" : "Set I/O bandwidth limit for various operations (in KiB/s).",
50717 "format" : {
50718 "clone" : {
50719 "description" : "bandwidth limit in KiB/s for cloning disks",
50720 "format_description" : "LIMIT",
50721 "minimum" : "0",
50722 "optional" : 1,
50723 "type" : "number"
50724 },
50725 "default" : {
50726 "description" : "default bandwidth limit in KiB/s",
50727 "format_description" : "LIMIT",
50728 "minimum" : "0",
50729 "optional" : 1,
50730 "type" : "number"
50731 },
50732 "migration" : {
50733 "description" : "bandwidth limit in KiB/s for migrating guests (including moving local disks)",
50734 "format_description" : "LIMIT",
50735 "minimum" : "0",
50736 "optional" : 1,
50737 "type" : "number"
50738 },
50739 "move" : {
50740 "description" : "bandwidth limit in KiB/s for moving disks",
50741 "format_description" : "LIMIT",
50742 "minimum" : "0",
50743 "optional" : 1,
50744 "type" : "number"
50745 },
50746 "restore" : {
50747 "description" : "bandwidth limit in KiB/s for restoring guests from backups",
50748 "format_description" : "LIMIT",
50749 "minimum" : "0",
50750 "optional" : 1,
50751 "type" : "number"
50752 }
50753 },
50754 "optional" : 1,
50755 "type" : "string",
50756 "typetext" : "[clone=<LIMIT>] [,default=<LIMIT>] [,migration=<LIMIT>] [,move=<LIMIT>] [,restore=<LIMIT>]"
50757 },
50758 "comstar_hg" : {
50759 "description" : "host group for comstar views",
50760 "optional" : 1,
50761 "type" : "string",
50762 "typetext" : "<string>"
50763 },
50764 "comstar_tg" : {
50765 "description" : "target group for comstar views",
50766 "optional" : 1,
50767 "type" : "string",
50768 "typetext" : "<string>"
50769 },
50770 "content" : {
50771 "description" : "Allowed content types.\n\nNOTE: the value 'rootdir' is used for Containers, and value 'images' for VMs.\n",
50772 "format" : "pve-storage-content-list",
50773 "optional" : 1,
50774 "type" : "string",
50775 "typetext" : "<string>"
50776 },
50777 "content-dirs" : {
50778 "description" : "Overrides for default content type directories.",
50779 "format" : "pve-dir-override-list",
50780 "optional" : 1,
50781 "type" : "string",
50782 "typetext" : "<string>"
50783 },
50784 "create-base-path" : {
50785 "default" : "yes",
50786 "description" : "Create the base directory if it doesn't exist.",
50787 "optional" : 1,
50788 "type" : "boolean",
50789 "typetext" : "<boolean>"
50790 },
50791 "create-subdirs" : {
50792 "default" : "yes",
50793 "description" : "Populate the directory with the default structure.",
50794 "optional" : 1,
50795 "type" : "boolean",
50796 "typetext" : "<boolean>"
50797 },
50798 "data-pool" : {
50799 "description" : "Data Pool (for erasure coding only)",
50800 "optional" : 1,
50801 "type" : "string",
50802 "typetext" : "<string>"
50803 },
50804 "delete" : {
50805 "description" : "A list of settings you want to delete.",
50806 "format" : "pve-configid-list",
50807 "maxLength" : 4096,
50808 "optional" : 1,
50809 "type" : "string",
50810 "typetext" : "<string>"
50811 },
50812 "digest" : {
50813 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
50814 "maxLength" : 64,
50815 "optional" : 1,
50816 "type" : "string",
50817 "typetext" : "<string>"
50818 },
50819 "disable" : {
50820 "description" : "Flag to disable the storage.",
50821 "optional" : 1,
50822 "type" : "boolean",
50823 "typetext" : "<boolean>"
50824 },
50825 "domain" : {
50826 "description" : "CIFS domain.",
50827 "maxLength" : 256,
50828 "optional" : 1,
50829 "type" : "string",
50830 "typetext" : "<string>"
50831 },
50832 "encryption-key" : {
50833 "description" : "Encryption key. Use 'autogen' to generate one automatically without passphrase.",
50834 "optional" : 1,
50835 "type" : "string",
50836 "typetext" : "<string>"
50837 },
50838 "fingerprint" : {
50839 "description" : "Certificate SHA 256 fingerprint.",
50840 "optional" : 1,
50841 "pattern" : "([A-Fa-f0-9]{2}:){31}[A-Fa-f0-9]{2}",
50842 "type" : "string"
50843 },
50844 "format" : {
50845 "description" : "Default image format.",
50846 "format" : "pve-storage-format",
50847 "optional" : 1,
50848 "type" : "string",
50849 "typetext" : "<string>"
50850 },
50851 "fs-name" : {
50852 "description" : "The Ceph filesystem name.",
50853 "format" : "pve-configid",
50854 "optional" : 1,
50855 "type" : "string",
50856 "typetext" : "<string>"
50857 },
50858 "fuse" : {
50859 "description" : "Mount CephFS through FUSE.",
50860 "optional" : 1,
50861 "type" : "boolean",
50862 "typetext" : "<boolean>"
50863 },
50864 "is_mountpoint" : {
50865 "default" : "no",
50866 "description" : "Assume the given path is an externally managed mountpoint and consider the storage offline if it is not mounted. Using a boolean (yes/no) value serves as a shortcut to using the target path in this field.",
50867 "optional" : 1,
50868 "type" : "string",
50869 "typetext" : "<string>"
50870 },
50871 "keyring" : {
50872 "description" : "Client keyring contents (for external clusters).",
50873 "optional" : 1,
50874 "type" : "string",
50875 "typetext" : "<string>"
50876 },
50877 "krbd" : {
50878 "description" : "Always access rbd through krbd kernel module.",
50879 "optional" : 1,
50880 "type" : "boolean",
50881 "typetext" : "<boolean>"
50882 },
50883 "lio_tpg" : {
50884 "description" : "target portal group for Linux LIO targets",
50885 "optional" : 1,
50886 "type" : "string",
50887 "typetext" : "<string>"
50888 },
50889 "master-pubkey" : {
50890 "description" : "Base64-encoded, PEM-formatted public RSA key. Used to encrypt a copy of the encryption-key which will be added to each encrypted backup.",
50891 "optional" : 1,
50892 "type" : "string",
50893 "typetext" : "<string>"
50894 },
50895 "max-protected-backups" : {
50896 "default" : "Unlimited for users with Datastore.Allocate privilege, 5 for other users",
50897 "description" : "Maximal number of protected backups per guest. Use '-1' for unlimited.",
50898 "minimum" : -1,
50899 "optional" : 1,
50900 "type" : "integer",
50901 "typetext" : "<integer> (-1 - N)"
50902 },
50903 "maxfiles" : {
50904 "description" : "Deprecated: use 'prune-backups' instead. Maximal number of backup files per VM. Use '0' for unlimited.",
50905 "minimum" : 0,
50906 "optional" : 1,
50907 "type" : "integer",
50908 "typetext" : "<integer> (0 - N)"
50909 },
50910 "mkdir" : {
50911 "default" : "yes",
50912 "description" : "Create the directory if it doesn't exist and populate it with default sub-dirs. NOTE: Deprecated, use the 'create-base-path' and 'create-subdirs' options instead.",
50913 "optional" : 1,
50914 "type" : "boolean",
50915 "typetext" : "<boolean>"
50916 },
50917 "monhost" : {
50918 "description" : "IP addresses of monitors (for external clusters).",
50919 "format" : "pve-storage-portal-dns-list",
50920 "optional" : 1,
50921 "type" : "string",
50922 "typetext" : "<string>"
50923 },
50924 "mountpoint" : {
50925 "description" : "mount point",
50926 "format" : "pve-storage-path",
50927 "optional" : 1,
50928 "type" : "string",
50929 "typetext" : "<string>"
50930 },
50931 "namespace" : {
50932 "description" : "Namespace.",
50933 "optional" : 1,
50934 "type" : "string",
50935 "typetext" : "<string>"
50936 },
50937 "nocow" : {
50938 "default" : 0,
50939 "description" : "Set the NOCOW flag on files. Disables data checksumming and causes data errors to be unrecoverable from while allowing direct I/O. Only use this if data does not need to be any more safe than on a single ext4 formatted disk with no underlying raid system.",
50940 "optional" : 1,
50941 "type" : "boolean",
50942 "typetext" : "<boolean>"
50943 },
50944 "nodes" : {
50945 "description" : "List of nodes for which the storage configuration applies.",
50946 "format" : "pve-node-list",
50947 "optional" : 1,
50948 "type" : "string",
50949 "typetext" : "<string>"
50950 },
50951 "nowritecache" : {
50952 "description" : "disable write caching on the target",
50953 "optional" : 1,
50954 "type" : "boolean",
50955 "typetext" : "<boolean>"
50956 },
50957 "options" : {
50958 "description" : "NFS/CIFS mount options (see 'man nfs' or 'man mount.cifs')",
50959 "format" : "pve-storage-options",
50960 "optional" : 1,
50961 "type" : "string",
50962 "typetext" : "<string>"
50963 },
50964 "password" : {
50965 "description" : "Password for accessing the share/datastore.",
50966 "maxLength" : 256,
50967 "optional" : 1,
50968 "type" : "string",
50969 "typetext" : "<string>"
50970 },
50971 "pool" : {
50972 "description" : "Pool.",
50973 "optional" : 1,
50974 "type" : "string",
50975 "typetext" : "<string>"
50976 },
50977 "port" : {
50978 "description" : "For non default port.",
50979 "maximum" : 65535,
50980 "minimum" : 1,
50981 "optional" : 1,
50982 "type" : "integer",
50983 "typetext" : "<integer> (1 - 65535)"
50984 },
50985 "preallocation" : {
50986 "default" : "metadata",
50987 "description" : "Preallocation mode for raw and qcow2 images. Using 'metadata' on raw images results in preallocation=off.",
50988 "enum" : [
50989 "off",
50990 "metadata",
50991 "falloc",
50992 "full"
50993 ],
50994 "optional" : 1,
50995 "type" : "string"
50996 },
50997 "prune-backups" : {
50998 "description" : "The retention options with shorter intervals are processed first with --keep-last being the very first one. Each option covers a specific period of time. We say that backups within this period are covered by this option. The next option does not take care of already covered backups and only considers older backups.",
50999 "format" : "prune-backups",
51000 "optional" : 1,
51001 "type" : "string",
51002 "typetext" : "[keep-all=<1|0>] [,keep-daily=<N>] [,keep-hourly=<N>] [,keep-last=<N>] [,keep-monthly=<N>] [,keep-weekly=<N>] [,keep-yearly=<N>]"
51003 },
51004 "saferemove" : {
51005 "description" : "Zero-out data when removing LVs.",
51006 "optional" : 1,
51007 "type" : "boolean",
51008 "typetext" : "<boolean>"
51009 },
51010 "saferemove_throughput" : {
51011 "description" : "Wipe throughput (cstream -t parameter value).",
51012 "optional" : 1,
51013 "type" : "string",
51014 "typetext" : "<string>"
51015 },
51016 "server" : {
51017 "description" : "Server IP or DNS name.",
51018 "format" : "pve-storage-server",
51019 "optional" : 1,
51020 "type" : "string",
51021 "typetext" : "<string>"
51022 },
51023 "server2" : {
51024 "description" : "Backup volfile server IP or DNS name.",
51025 "format" : "pve-storage-server",
51026 "optional" : 1,
51027 "requires" : "server",
51028 "type" : "string",
51029 "typetext" : "<string>"
51030 },
51031 "shared" : {
51032 "description" : "Indicate that this is a single storage with the same contents on all nodes (or all listed in the 'nodes' option). It will not make the contents of a local storage automatically accessible to other nodes, it just marks an already shared storage as such!",
51033 "optional" : 1,
51034 "type" : "boolean",
51035 "typetext" : "<boolean>"
51036 },
51037 "skip-cert-verification" : {
51038 "default" : "false",
51039 "description" : "Disable TLS certificate verification, only enable on fully trusted networks!",
51040 "optional" : 1,
51041 "type" : "boolean",
51042 "typetext" : "<boolean>"
51043 },
51044 "smbversion" : {
51045 "default" : "default",
51046 "description" : "SMB protocol version. 'default' if not set, negotiates the highest SMB2+ version supported by both the client and server.",
51047 "enum" : [
51048 "default",
51049 "2.0",
51050 "2.1",
51051 "3",
51052 "3.0",
51053 "3.11"
51054 ],
51055 "optional" : 1,
51056 "type" : "string"
51057 },
51058 "sparse" : {
51059 "description" : "use sparse volumes",
51060 "optional" : 1,
51061 "type" : "boolean",
51062 "typetext" : "<boolean>"
51063 },
51064 "storage" : {
51065 "description" : "The storage identifier.",
51066 "format" : "pve-storage-id",
51067 "format_description" : "storage ID",
51068 "type" : "string",
51069 "typetext" : "<storage ID>"
51070 },
51071 "subdir" : {
51072 "description" : "Subdir to mount.",
51073 "format" : "pve-storage-path",
51074 "optional" : 1,
51075 "type" : "string",
51076 "typetext" : "<string>"
51077 },
51078 "tagged_only" : {
51079 "description" : "Only use logical volumes tagged with 'pve-vm-ID'.",
51080 "optional" : 1,
51081 "type" : "boolean",
51082 "typetext" : "<boolean>"
51083 },
51084 "transport" : {
51085 "description" : "Gluster transport: tcp or rdma",
51086 "enum" : [
51087 "tcp",
51088 "rdma",
51089 "unix"
51090 ],
51091 "optional" : 1,
51092 "type" : "string"
51093 },
51094 "username" : {
51095 "description" : "RBD Id.",
51096 "optional" : 1,
51097 "type" : "string",
51098 "typetext" : "<string>"
51099 }
51100 },
51101 "type" : "object"
51102 },
51103 "permissions" : {
51104 "check" : [
51105 "perm",
51106 "/storage",
51107 [
51108 "Datastore.Allocate"
51109 ]
51110 ]
51111 },
51112 "protected" : 1,
51113 "returns" : {
51114 "properties" : {
51115 "config" : {
51116 "additionalProperties" : 1,
51117 "description" : "Partial, possible server generated, configuration properties.",
51118 "optional" : 1,
51119 "properties" : {
51120 "encryption-key" : {
51121 "description" : "The, possible auto-generated, encryption-key.",
51122 "optional" : 1,
51123 "type" : "string"
51124 }
51125 },
51126 "type" : "object"
51127 },
51128 "storage" : {
51129 "description" : "The ID of the created storage.",
51130 "type" : "string"
51131 },
51132 "type" : {
51133 "description" : "The type of the created storage.",
51134 "enum" : [
51135 "btrfs",
51136 "cephfs",
51137 "cifs",
51138 "dir",
51139 "esxi",
51140 "glusterfs",
51141 "iscsi",
51142 "iscsidirect",
51143 "lvm",
51144 "lvmthin",
51145 "nfs",
51146 "pbs",
51147 "rbd",
51148 "zfs",
51149 "zfspool"
51150 ],
51151 "type" : "string"
51152 }
51153 },
51154 "type" : "object"
51155 }
51156 }
51157 },
51158 "leaf" : 1,
51159 "path" : "/storage/{storage}",
51160 "text" : "{storage}"
51161 }
51162 ],
51163 "info" : {
51164 "GET" : {
51165 "allowtoken" : 1,
51166 "description" : "Storage index.",
51167 "method" : "GET",
51168 "name" : "index",
51169 "parameters" : {
51170 "additionalProperties" : 0,
51171 "properties" : {
51172 "type" : {
51173 "description" : "Only list storage of specific type",
51174 "enum" : [
51175 "btrfs",
51176 "cephfs",
51177 "cifs",
51178 "dir",
51179 "esxi",
51180 "glusterfs",
51181 "iscsi",
51182 "iscsidirect",
51183 "lvm",
51184 "lvmthin",
51185 "nfs",
51186 "pbs",
51187 "rbd",
51188 "zfs",
51189 "zfspool"
51190 ],
51191 "optional" : 1,
51192 "type" : "string"
51193 }
51194 }
51195 },
51196 "permissions" : {
51197 "description" : "Only list entries where you have 'Datastore.Audit' or 'Datastore.AllocateSpace' permissions on '/storage/<storage>'",
51198 "user" : "all"
51199 },
51200 "returns" : {
51201 "items" : {
51202 "properties" : {
51203 "storage" : {
51204 "type" : "string"
51205 }
51206 },
51207 "type" : "object"
51208 },
51209 "links" : [
51210 {
51211 "href" : "{storage}",
51212 "rel" : "child"
51213 }
51214 ],
51215 "type" : "array"
51216 }
51217 },
51218 "POST" : {
51219 "allowtoken" : 1,
51220 "description" : "Create a new storage.",
51221 "method" : "POST",
51222 "name" : "create",
51223 "parameters" : {
51224 "additionalProperties" : 0,
51225 "properties" : {
51226 "authsupported" : {
51227 "description" : "Authsupported.",
51228 "optional" : 1,
51229 "type" : "string",
51230 "typetext" : "<string>"
51231 },
51232 "base" : {
51233 "description" : "Base volume. This volume is automatically activated.",
51234 "format" : "pve-volume-id",
51235 "optional" : 1,
51236 "type" : "string",
51237 "typetext" : "<string>"
51238 },
51239 "blocksize" : {
51240 "description" : "block size",
51241 "optional" : 1,
51242 "type" : "string",
51243 "typetext" : "<string>"
51244 },
51245 "bwlimit" : {
51246 "description" : "Set I/O bandwidth limit for various operations (in KiB/s).",
51247 "format" : {
51248 "clone" : {
51249 "description" : "bandwidth limit in KiB/s for cloning disks",
51250 "format_description" : "LIMIT",
51251 "minimum" : "0",
51252 "optional" : 1,
51253 "type" : "number"
51254 },
51255 "default" : {
51256 "description" : "default bandwidth limit in KiB/s",
51257 "format_description" : "LIMIT",
51258 "minimum" : "0",
51259 "optional" : 1,
51260 "type" : "number"
51261 },
51262 "migration" : {
51263 "description" : "bandwidth limit in KiB/s for migrating guests (including moving local disks)",
51264 "format_description" : "LIMIT",
51265 "minimum" : "0",
51266 "optional" : 1,
51267 "type" : "number"
51268 },
51269 "move" : {
51270 "description" : "bandwidth limit in KiB/s for moving disks",
51271 "format_description" : "LIMIT",
51272 "minimum" : "0",
51273 "optional" : 1,
51274 "type" : "number"
51275 },
51276 "restore" : {
51277 "description" : "bandwidth limit in KiB/s for restoring guests from backups",
51278 "format_description" : "LIMIT",
51279 "minimum" : "0",
51280 "optional" : 1,
51281 "type" : "number"
51282 }
51283 },
51284 "optional" : 1,
51285 "type" : "string",
51286 "typetext" : "[clone=<LIMIT>] [,default=<LIMIT>] [,migration=<LIMIT>] [,move=<LIMIT>] [,restore=<LIMIT>]"
51287 },
51288 "comstar_hg" : {
51289 "description" : "host group for comstar views",
51290 "optional" : 1,
51291 "type" : "string",
51292 "typetext" : "<string>"
51293 },
51294 "comstar_tg" : {
51295 "description" : "target group for comstar views",
51296 "optional" : 1,
51297 "type" : "string",
51298 "typetext" : "<string>"
51299 },
51300 "content" : {
51301 "description" : "Allowed content types.\n\nNOTE: the value 'rootdir' is used for Containers, and value 'images' for VMs.\n",
51302 "format" : "pve-storage-content-list",
51303 "optional" : 1,
51304 "type" : "string",
51305 "typetext" : "<string>"
51306 },
51307 "content-dirs" : {
51308 "description" : "Overrides for default content type directories.",
51309 "format" : "pve-dir-override-list",
51310 "optional" : 1,
51311 "type" : "string",
51312 "typetext" : "<string>"
51313 },
51314 "create-base-path" : {
51315 "default" : "yes",
51316 "description" : "Create the base directory if it doesn't exist.",
51317 "optional" : 1,
51318 "type" : "boolean",
51319 "typetext" : "<boolean>"
51320 },
51321 "create-subdirs" : {
51322 "default" : "yes",
51323 "description" : "Populate the directory with the default structure.",
51324 "optional" : 1,
51325 "type" : "boolean",
51326 "typetext" : "<boolean>"
51327 },
51328 "data-pool" : {
51329 "description" : "Data Pool (for erasure coding only)",
51330 "optional" : 1,
51331 "type" : "string",
51332 "typetext" : "<string>"
51333 },
51334 "datastore" : {
51335 "description" : "Proxmox Backup Server datastore name.",
51336 "optional" : 1,
51337 "type" : "string",
51338 "typetext" : "<string>"
51339 },
51340 "disable" : {
51341 "description" : "Flag to disable the storage.",
51342 "optional" : 1,
51343 "type" : "boolean",
51344 "typetext" : "<boolean>"
51345 },
51346 "domain" : {
51347 "description" : "CIFS domain.",
51348 "maxLength" : 256,
51349 "optional" : 1,
51350 "type" : "string",
51351 "typetext" : "<string>"
51352 },
51353 "encryption-key" : {
51354 "description" : "Encryption key. Use 'autogen' to generate one automatically without passphrase.",
51355 "optional" : 1,
51356 "type" : "string",
51357 "typetext" : "<string>"
51358 },
51359 "export" : {
51360 "description" : "NFS export path.",
51361 "format" : "pve-storage-path",
51362 "optional" : 1,
51363 "type" : "string",
51364 "typetext" : "<string>"
51365 },
51366 "fingerprint" : {
51367 "description" : "Certificate SHA 256 fingerprint.",
51368 "optional" : 1,
51369 "pattern" : "([A-Fa-f0-9]{2}:){31}[A-Fa-f0-9]{2}",
51370 "type" : "string"
51371 },
51372 "format" : {
51373 "description" : "Default image format.",
51374 "format" : "pve-storage-format",
51375 "optional" : 1,
51376 "type" : "string",
51377 "typetext" : "<string>"
51378 },
51379 "fs-name" : {
51380 "description" : "The Ceph filesystem name.",
51381 "format" : "pve-configid",
51382 "optional" : 1,
51383 "type" : "string",
51384 "typetext" : "<string>"
51385 },
51386 "fuse" : {
51387 "description" : "Mount CephFS through FUSE.",
51388 "optional" : 1,
51389 "type" : "boolean",
51390 "typetext" : "<boolean>"
51391 },
51392 "is_mountpoint" : {
51393 "default" : "no",
51394 "description" : "Assume the given path is an externally managed mountpoint and consider the storage offline if it is not mounted. Using a boolean (yes/no) value serves as a shortcut to using the target path in this field.",
51395 "optional" : 1,
51396 "type" : "string",
51397 "typetext" : "<string>"
51398 },
51399 "iscsiprovider" : {
51400 "description" : "iscsi provider",
51401 "optional" : 1,
51402 "type" : "string",
51403 "typetext" : "<string>"
51404 },
51405 "keyring" : {
51406 "description" : "Client keyring contents (for external clusters).",
51407 "optional" : 1,
51408 "type" : "string",
51409 "typetext" : "<string>"
51410 },
51411 "krbd" : {
51412 "description" : "Always access rbd through krbd kernel module.",
51413 "optional" : 1,
51414 "type" : "boolean",
51415 "typetext" : "<boolean>"
51416 },
51417 "lio_tpg" : {
51418 "description" : "target portal group for Linux LIO targets",
51419 "optional" : 1,
51420 "type" : "string",
51421 "typetext" : "<string>"
51422 },
51423 "master-pubkey" : {
51424 "description" : "Base64-encoded, PEM-formatted public RSA key. Used to encrypt a copy of the encryption-key which will be added to each encrypted backup.",
51425 "optional" : 1,
51426 "type" : "string",
51427 "typetext" : "<string>"
51428 },
51429 "max-protected-backups" : {
51430 "default" : "Unlimited for users with Datastore.Allocate privilege, 5 for other users",
51431 "description" : "Maximal number of protected backups per guest. Use '-1' for unlimited.",
51432 "minimum" : -1,
51433 "optional" : 1,
51434 "type" : "integer",
51435 "typetext" : "<integer> (-1 - N)"
51436 },
51437 "maxfiles" : {
51438 "description" : "Deprecated: use 'prune-backups' instead. Maximal number of backup files per VM. Use '0' for unlimited.",
51439 "minimum" : 0,
51440 "optional" : 1,
51441 "type" : "integer",
51442 "typetext" : "<integer> (0 - N)"
51443 },
51444 "mkdir" : {
51445 "default" : "yes",
51446 "description" : "Create the directory if it doesn't exist and populate it with default sub-dirs. NOTE: Deprecated, use the 'create-base-path' and 'create-subdirs' options instead.",
51447 "optional" : 1,
51448 "type" : "boolean",
51449 "typetext" : "<boolean>"
51450 },
51451 "monhost" : {
51452 "description" : "IP addresses of monitors (for external clusters).",
51453 "format" : "pve-storage-portal-dns-list",
51454 "optional" : 1,
51455 "type" : "string",
51456 "typetext" : "<string>"
51457 },
51458 "mountpoint" : {
51459 "description" : "mount point",
51460 "format" : "pve-storage-path",
51461 "optional" : 1,
51462 "type" : "string",
51463 "typetext" : "<string>"
51464 },
51465 "namespace" : {
51466 "description" : "Namespace.",
51467 "optional" : 1,
51468 "type" : "string",
51469 "typetext" : "<string>"
51470 },
51471 "nocow" : {
51472 "default" : 0,
51473 "description" : "Set the NOCOW flag on files. Disables data checksumming and causes data errors to be unrecoverable from while allowing direct I/O. Only use this if data does not need to be any more safe than on a single ext4 formatted disk with no underlying raid system.",
51474 "optional" : 1,
51475 "type" : "boolean",
51476 "typetext" : "<boolean>"
51477 },
51478 "nodes" : {
51479 "description" : "List of nodes for which the storage configuration applies.",
51480 "format" : "pve-node-list",
51481 "optional" : 1,
51482 "type" : "string",
51483 "typetext" : "<string>"
51484 },
51485 "nowritecache" : {
51486 "description" : "disable write caching on the target",
51487 "optional" : 1,
51488 "type" : "boolean",
51489 "typetext" : "<boolean>"
51490 },
51491 "options" : {
51492 "description" : "NFS/CIFS mount options (see 'man nfs' or 'man mount.cifs')",
51493 "format" : "pve-storage-options",
51494 "optional" : 1,
51495 "type" : "string",
51496 "typetext" : "<string>"
51497 },
51498 "password" : {
51499 "description" : "Password for accessing the share/datastore.",
51500 "maxLength" : 256,
51501 "optional" : 1,
51502 "type" : "string",
51503 "typetext" : "<string>"
51504 },
51505 "path" : {
51506 "description" : "File system path.",
51507 "format" : "pve-storage-path",
51508 "optional" : 1,
51509 "type" : "string",
51510 "typetext" : "<string>"
51511 },
51512 "pool" : {
51513 "description" : "Pool.",
51514 "optional" : 1,
51515 "type" : "string",
51516 "typetext" : "<string>"
51517 },
51518 "port" : {
51519 "description" : "For non default port.",
51520 "maximum" : 65535,
51521 "minimum" : 1,
51522 "optional" : 1,
51523 "type" : "integer",
51524 "typetext" : "<integer> (1 - 65535)"
51525 },
51526 "portal" : {
51527 "description" : "iSCSI portal (IP or DNS name with optional port).",
51528 "format" : "pve-storage-portal-dns",
51529 "optional" : 1,
51530 "type" : "string",
51531 "typetext" : "<string>"
51532 },
51533 "preallocation" : {
51534 "default" : "metadata",
51535 "description" : "Preallocation mode for raw and qcow2 images. Using 'metadata' on raw images results in preallocation=off.",
51536 "enum" : [
51537 "off",
51538 "metadata",
51539 "falloc",
51540 "full"
51541 ],
51542 "optional" : 1,
51543 "type" : "string"
51544 },
51545 "prune-backups" : {
51546 "description" : "The retention options with shorter intervals are processed first with --keep-last being the very first one. Each option covers a specific period of time. We say that backups within this period are covered by this option. The next option does not take care of already covered backups and only considers older backups.",
51547 "format" : "prune-backups",
51548 "optional" : 1,
51549 "type" : "string",
51550 "typetext" : "[keep-all=<1|0>] [,keep-daily=<N>] [,keep-hourly=<N>] [,keep-last=<N>] [,keep-monthly=<N>] [,keep-weekly=<N>] [,keep-yearly=<N>]"
51551 },
51552 "saferemove" : {
51553 "description" : "Zero-out data when removing LVs.",
51554 "optional" : 1,
51555 "type" : "boolean",
51556 "typetext" : "<boolean>"
51557 },
51558 "saferemove_throughput" : {
51559 "description" : "Wipe throughput (cstream -t parameter value).",
51560 "optional" : 1,
51561 "type" : "string",
51562 "typetext" : "<string>"
51563 },
51564 "server" : {
51565 "description" : "Server IP or DNS name.",
51566 "format" : "pve-storage-server",
51567 "optional" : 1,
51568 "type" : "string",
51569 "typetext" : "<string>"
51570 },
51571 "server2" : {
51572 "description" : "Backup volfile server IP or DNS name.",
51573 "format" : "pve-storage-server",
51574 "optional" : 1,
51575 "requires" : "server",
51576 "type" : "string",
51577 "typetext" : "<string>"
51578 },
51579 "share" : {
51580 "description" : "CIFS share.",
51581 "optional" : 1,
51582 "type" : "string",
51583 "typetext" : "<string>"
51584 },
51585 "shared" : {
51586 "description" : "Indicate that this is a single storage with the same contents on all nodes (or all listed in the 'nodes' option). It will not make the contents of a local storage automatically accessible to other nodes, it just marks an already shared storage as such!",
51587 "optional" : 1,
51588 "type" : "boolean",
51589 "typetext" : "<boolean>"
51590 },
51591 "skip-cert-verification" : {
51592 "default" : "false",
51593 "description" : "Disable TLS certificate verification, only enable on fully trusted networks!",
51594 "optional" : 1,
51595 "type" : "boolean",
51596 "typetext" : "<boolean>"
51597 },
51598 "smbversion" : {
51599 "default" : "default",
51600 "description" : "SMB protocol version. 'default' if not set, negotiates the highest SMB2+ version supported by both the client and server.",
51601 "enum" : [
51602 "default",
51603 "2.0",
51604 "2.1",
51605 "3",
51606 "3.0",
51607 "3.11"
51608 ],
51609 "optional" : 1,
51610 "type" : "string"
51611 },
51612 "sparse" : {
51613 "description" : "use sparse volumes",
51614 "optional" : 1,
51615 "type" : "boolean",
51616 "typetext" : "<boolean>"
51617 },
51618 "storage" : {
51619 "description" : "The storage identifier.",
51620 "format" : "pve-storage-id",
51621 "format_description" : "storage ID",
51622 "type" : "string",
51623 "typetext" : "<storage ID>"
51624 },
51625 "subdir" : {
51626 "description" : "Subdir to mount.",
51627 "format" : "pve-storage-path",
51628 "optional" : 1,
51629 "type" : "string",
51630 "typetext" : "<string>"
51631 },
51632 "tagged_only" : {
51633 "description" : "Only use logical volumes tagged with 'pve-vm-ID'.",
51634 "optional" : 1,
51635 "type" : "boolean",
51636 "typetext" : "<boolean>"
51637 },
51638 "target" : {
51639 "description" : "iSCSI target.",
51640 "optional" : 1,
51641 "type" : "string",
51642 "typetext" : "<string>"
51643 },
51644 "thinpool" : {
51645 "description" : "LVM thin pool LV name.",
51646 "format" : "pve-storage-vgname",
51647 "optional" : 1,
51648 "type" : "string",
51649 "typetext" : "<string>"
51650 },
51651 "transport" : {
51652 "description" : "Gluster transport: tcp or rdma",
51653 "enum" : [
51654 "tcp",
51655 "rdma",
51656 "unix"
51657 ],
51658 "optional" : 1,
51659 "type" : "string"
51660 },
51661 "type" : {
51662 "description" : "Storage type.",
51663 "enum" : [
51664 "btrfs",
51665 "cephfs",
51666 "cifs",
51667 "dir",
51668 "esxi",
51669 "glusterfs",
51670 "iscsi",
51671 "iscsidirect",
51672 "lvm",
51673 "lvmthin",
51674 "nfs",
51675 "pbs",
51676 "rbd",
51677 "zfs",
51678 "zfspool"
51679 ],
51680 "type" : "string"
51681 },
51682 "username" : {
51683 "description" : "RBD Id.",
51684 "optional" : 1,
51685 "type" : "string",
51686 "typetext" : "<string>"
51687 },
51688 "vgname" : {
51689 "description" : "Volume group name.",
51690 "format" : "pve-storage-vgname",
51691 "optional" : 1,
51692 "type" : "string",
51693 "typetext" : "<string>"
51694 },
51695 "volume" : {
51696 "description" : "Glusterfs Volume.",
51697 "optional" : 1,
51698 "type" : "string",
51699 "typetext" : "<string>"
51700 }
51701 },
51702 "type" : "object"
51703 },
51704 "permissions" : {
51705 "check" : [
51706 "perm",
51707 "/storage",
51708 [
51709 "Datastore.Allocate"
51710 ]
51711 ]
51712 },
51713 "protected" : 1,
51714 "returns" : {
51715 "properties" : {
51716 "config" : {
51717 "additionalProperties" : 1,
51718 "description" : "Partial, possible server generated, configuration properties.",
51719 "optional" : 1,
51720 "properties" : {
51721 "encryption-key" : {
51722 "description" : "The, possible auto-generated, encryption-key.",
51723 "optional" : 1,
51724 "type" : "string"
51725 }
51726 },
51727 "type" : "object"
51728 },
51729 "storage" : {
51730 "description" : "The ID of the created storage.",
51731 "type" : "string"
51732 },
51733 "type" : {
51734 "description" : "The type of the created storage.",
51735 "enum" : [
51736 "btrfs",
51737 "cephfs",
51738 "cifs",
51739 "dir",
51740 "esxi",
51741 "glusterfs",
51742 "iscsi",
51743 "iscsidirect",
51744 "lvm",
51745 "lvmthin",
51746 "nfs",
51747 "pbs",
51748 "rbd",
51749 "zfs",
51750 "zfspool"
51751 ],
51752 "type" : "string"
51753 }
51754 },
51755 "type" : "object"
51756 }
51757 }
51758 },
51759 "leaf" : 0,
51760 "path" : "/storage",
51761 "text" : "storage"
51762 },
51763 {
51764 "children" : [
51765 {
51766 "children" : [
51767 {
51768 "children" : [
51769 {
51770 "info" : {
51771 "GET" : {
51772 "allowtoken" : 1,
51773 "description" : "Get user TFA types (Personal and Realm).",
51774 "method" : "GET",
51775 "name" : "read_user_tfa_type",
51776 "parameters" : {
51777 "additionalProperties" : 0,
51778 "properties" : {
51779 "multiple" : {
51780 "default" : 0,
51781 "description" : "Request all entries as an array.",
51782 "optional" : 1,
51783 "type" : "boolean",
51784 "typetext" : "<boolean>"
51785 },
51786 "userid" : {
51787 "description" : "Full User ID, in the `name@realm` format.",
51788 "format" : "pve-userid",
51789 "maxLength" : 64,
51790 "type" : "string",
51791 "typetext" : "<string>"
51792 }
51793 }
51794 },
51795 "permissions" : {
51796 "check" : [
51797 "or",
51798 [
51799 "userid-param",
51800 "self"
51801 ],
51802 [
51803 "userid-group",
51804 [
51805 "User.Modify",
51806 "Sys.Audit"
51807 ]
51808 ]
51809 ]
51810 },
51811 "protected" : 1,
51812 "returns" : {
51813 "additionalProperties" : 0,
51814 "properties" : {
51815 "realm" : {
51816 "description" : "The type of TFA the users realm has set, if any.",
51817 "enum" : [
51818 "oath",
51819 "yubico"
51820 ],
51821 "optional" : 1,
51822 "type" : "string"
51823 },
51824 "types" : {
51825 "description" : "Array of the user configured TFA types, if any. Only available if 'multiple' was not passed.",
51826 "items" : {
51827 "description" : "A TFA type.",
51828 "enum" : [
51829 "totp",
51830 "u2f",
51831 "yubico",
51832 "webauthn",
51833 "recovedry"
51834 ],
51835 "type" : "string"
51836 },
51837 "optional" : 1,
51838 "type" : "array"
51839 },
51840 "user" : {
51841 "description" : "The type of TFA the user has set, if any. Only set if 'multiple' was not passed.",
51842 "enum" : [
51843 "oath",
51844 "u2f"
51845 ],
51846 "optional" : 1,
51847 "type" : "string"
51848 }
51849 },
51850 "type" : "object"
51851 }
51852 }
51853 },
51854 "leaf" : 1,
51855 "path" : "/access/users/{userid}/tfa",
51856 "text" : "tfa"
51857 },
51858 {
51859 "info" : {
51860 "PUT" : {
51861 "allowtoken" : 1,
51862 "description" : "Unlock a user's TFA authentication.",
51863 "method" : "PUT",
51864 "name" : "unlock_tfa",
51865 "parameters" : {
51866 "additionalProperties" : 0,
51867 "properties" : {
51868 "userid" : {
51869 "description" : "Full User ID, in the `name@realm` format.",
51870 "format" : "pve-userid",
51871 "maxLength" : 64,
51872 "type" : "string",
51873 "typetext" : "<string>"
51874 }
51875 }
51876 },
51877 "permissions" : {
51878 "check" : [
51879 "userid-group",
51880 [
51881 "User.Modify"
51882 ]
51883 ]
51884 },
51885 "protected" : 1,
51886 "returns" : {
51887 "type" : "boolean"
51888 }
51889 }
51890 },
51891 "leaf" : 1,
51892 "path" : "/access/users/{userid}/unlock-tfa",
51893 "text" : "unlock-tfa"
51894 },
51895 {
51896 "children" : [
51897 {
51898 "info" : {
51899 "DELETE" : {
51900 "allowtoken" : 1,
51901 "description" : "Remove API token for a specific user.",
51902 "method" : "DELETE",
51903 "name" : "remove_token",
51904 "parameters" : {
51905 "additionalProperties" : 0,
51906 "properties" : {
51907 "tokenid" : {
51908 "description" : "User-specific token identifier.",
51909 "pattern" : "(?^:[A-Za-z][A-Za-z0-9\\.\\-_]+)",
51910 "type" : "string"
51911 },
51912 "userid" : {
51913 "description" : "Full User ID, in the `name@realm` format.",
51914 "format" : "pve-userid",
51915 "maxLength" : 64,
51916 "type" : "string",
51917 "typetext" : "<string>"
51918 }
51919 }
51920 },
51921 "permissions" : {
51922 "check" : [
51923 "or",
51924 [
51925 "userid-param",
51926 "self"
51927 ],
51928 [
51929 "userid-group",
51930 [
51931 "User.Modify"
51932 ]
51933 ]
51934 ]
51935 },
51936 "protected" : 1,
51937 "returns" : {
51938 "type" : "null"
51939 }
51940 },
51941 "GET" : {
51942 "allowtoken" : 1,
51943 "description" : "Get specific API token information.",
51944 "method" : "GET",
51945 "name" : "read_token",
51946 "parameters" : {
51947 "additionalProperties" : 0,
51948 "properties" : {
51949 "tokenid" : {
51950 "description" : "User-specific token identifier.",
51951 "pattern" : "(?^:[A-Za-z][A-Za-z0-9\\.\\-_]+)",
51952 "type" : "string"
51953 },
51954 "userid" : {
51955 "description" : "Full User ID, in the `name@realm` format.",
51956 "format" : "pve-userid",
51957 "maxLength" : 64,
51958 "type" : "string",
51959 "typetext" : "<string>"
51960 }
51961 }
51962 },
51963 "permissions" : {
51964 "check" : [
51965 "or",
51966 [
51967 "userid-param",
51968 "self"
51969 ],
51970 [
51971 "userid-group",
51972 [
51973 "User.Modify"
51974 ]
51975 ]
51976 ]
51977 },
51978 "returns" : {
51979 "properties" : {
51980 "comment" : {
51981 "optional" : 1,
51982 "type" : "string"
51983 },
51984 "expire" : {
51985 "default" : "same as user",
51986 "description" : "API token expiration date (seconds since epoch). '0' means no expiration date.",
51987 "minimum" : 0,
51988 "optional" : 1,
51989 "type" : "integer"
51990 },
51991 "privsep" : {
51992 "default" : 1,
51993 "description" : "Restrict API token privileges with separate ACLs (default), or give full privileges of corresponding user.",
51994 "optional" : 1,
51995 "type" : "boolean"
51996 }
51997 },
51998 "type" : "object"
51999 }
52000 },
52001 "POST" : {
52002 "allowtoken" : 1,
52003 "description" : "Generate a new API token for a specific user. NOTE: returns API token value, which needs to be stored as it cannot be retrieved afterwards!",
52004 "method" : "POST",
52005 "name" : "generate_token",
52006 "parameters" : {
52007 "additionalProperties" : 0,
52008 "properties" : {
52009 "comment" : {
52010 "optional" : 1,
52011 "type" : "string",
52012 "typetext" : "<string>"
52013 },
52014 "expire" : {
52015 "default" : "same as user",
52016 "description" : "API token expiration date (seconds since epoch). '0' means no expiration date.",
52017 "minimum" : 0,
52018 "optional" : 1,
52019 "type" : "integer",
52020 "typetext" : "<integer> (0 - N)"
52021 },
52022 "privsep" : {
52023 "default" : 1,
52024 "description" : "Restrict API token privileges with separate ACLs (default), or give full privileges of corresponding user.",
52025 "optional" : 1,
52026 "type" : "boolean",
52027 "typetext" : "<boolean>"
52028 },
52029 "tokenid" : {
52030 "description" : "User-specific token identifier.",
52031 "pattern" : "(?^:[A-Za-z][A-Za-z0-9\\.\\-_]+)",
52032 "type" : "string"
52033 },
52034 "userid" : {
52035 "description" : "Full User ID, in the `name@realm` format.",
52036 "format" : "pve-userid",
52037 "maxLength" : 64,
52038 "type" : "string",
52039 "typetext" : "<string>"
52040 }
52041 }
52042 },
52043 "permissions" : {
52044 "check" : [
52045 "or",
52046 [
52047 "userid-param",
52048 "self"
52049 ],
52050 [
52051 "userid-group",
52052 [
52053 "User.Modify"
52054 ]
52055 ]
52056 ]
52057 },
52058 "protected" : 1,
52059 "returns" : {
52060 "additionalProperties" : 0,
52061 "properties" : {
52062 "full-tokenid" : {
52063 "description" : "The full token id.",
52064 "format_description" : "<userid>!<tokenid>",
52065 "type" : "string"
52066 },
52067 "info" : {
52068 "properties" : {
52069 "comment" : {
52070 "optional" : 1,
52071 "type" : "string"
52072 },
52073 "expire" : {
52074 "default" : "same as user",
52075 "description" : "API token expiration date (seconds since epoch). '0' means no expiration date.",
52076 "minimum" : 0,
52077 "optional" : 1,
52078 "type" : "integer"
52079 },
52080 "privsep" : {
52081 "default" : 1,
52082 "description" : "Restrict API token privileges with separate ACLs (default), or give full privileges of corresponding user.",
52083 "optional" : 1,
52084 "type" : "boolean"
52085 }
52086 },
52087 "type" : "object"
52088 },
52089 "value" : {
52090 "description" : "API token value used for authentication.",
52091 "type" : "string"
52092 }
52093 },
52094 "type" : "object"
52095 }
52096 },
52097 "PUT" : {
52098 "allowtoken" : 1,
52099 "description" : "Update API token for a specific user.",
52100 "method" : "PUT",
52101 "name" : "update_token_info",
52102 "parameters" : {
52103 "additionalProperties" : 0,
52104 "properties" : {
52105 "comment" : {
52106 "optional" : 1,
52107 "type" : "string",
52108 "typetext" : "<string>"
52109 },
52110 "expire" : {
52111 "default" : "same as user",
52112 "description" : "API token expiration date (seconds since epoch). '0' means no expiration date.",
52113 "minimum" : 0,
52114 "optional" : 1,
52115 "type" : "integer",
52116 "typetext" : "<integer> (0 - N)"
52117 },
52118 "privsep" : {
52119 "default" : 1,
52120 "description" : "Restrict API token privileges with separate ACLs (default), or give full privileges of corresponding user.",
52121 "optional" : 1,
52122 "type" : "boolean",
52123 "typetext" : "<boolean>"
52124 },
52125 "tokenid" : {
52126 "description" : "User-specific token identifier.",
52127 "pattern" : "(?^:[A-Za-z][A-Za-z0-9\\.\\-_]+)",
52128 "type" : "string"
52129 },
52130 "userid" : {
52131 "description" : "Full User ID, in the `name@realm` format.",
52132 "format" : "pve-userid",
52133 "maxLength" : 64,
52134 "type" : "string",
52135 "typetext" : "<string>"
52136 }
52137 }
52138 },
52139 "permissions" : {
52140 "check" : [
52141 "or",
52142 [
52143 "userid-param",
52144 "self"
52145 ],
52146 [
52147 "userid-group",
52148 [
52149 "User.Modify"
52150 ]
52151 ]
52152 ]
52153 },
52154 "protected" : 1,
52155 "returns" : {
52156 "description" : "Updated token information.",
52157 "properties" : {
52158 "comment" : {
52159 "optional" : 1,
52160 "type" : "string"
52161 },
52162 "expire" : {
52163 "default" : "same as user",
52164 "description" : "API token expiration date (seconds since epoch). '0' means no expiration date.",
52165 "minimum" : 0,
52166 "optional" : 1,
52167 "type" : "integer"
52168 },
52169 "privsep" : {
52170 "default" : 1,
52171 "description" : "Restrict API token privileges with separate ACLs (default), or give full privileges of corresponding user.",
52172 "optional" : 1,
52173 "type" : "boolean"
52174 }
52175 },
52176 "type" : "object"
52177 }
52178 }
52179 },
52180 "leaf" : 1,
52181 "path" : "/access/users/{userid}/token/{tokenid}",
52182 "text" : "{tokenid}"
52183 }
52184 ],
52185 "info" : {
52186 "GET" : {
52187 "allowtoken" : 1,
52188 "description" : "Get user API tokens.",
52189 "method" : "GET",
52190 "name" : "token_index",
52191 "parameters" : {
52192 "additionalProperties" : 0,
52193 "properties" : {
52194 "userid" : {
52195 "description" : "Full User ID, in the `name@realm` format.",
52196 "format" : "pve-userid",
52197 "maxLength" : 64,
52198 "type" : "string",
52199 "typetext" : "<string>"
52200 }
52201 }
52202 },
52203 "permissions" : {
52204 "check" : [
52205 "or",
52206 [
52207 "userid-param",
52208 "self"
52209 ],
52210 [
52211 "userid-group",
52212 [
52213 "User.Modify"
52214 ]
52215 ]
52216 ]
52217 },
52218 "returns" : {
52219 "items" : {
52220 "properties" : {
52221 "comment" : {
52222 "optional" : 1,
52223 "type" : "string"
52224 },
52225 "expire" : {
52226 "default" : "same as user",
52227 "description" : "API token expiration date (seconds since epoch). '0' means no expiration date.",
52228 "minimum" : 0,
52229 "optional" : 1,
52230 "type" : "integer"
52231 },
52232 "privsep" : {
52233 "default" : 1,
52234 "description" : "Restrict API token privileges with separate ACLs (default), or give full privileges of corresponding user.",
52235 "optional" : 1,
52236 "type" : "boolean"
52237 },
52238 "tokenid" : {
52239 "description" : "User-specific token identifier.",
52240 "pattern" : "(?^:[A-Za-z][A-Za-z0-9\\.\\-_]+)",
52241 "type" : "string"
52242 }
52243 },
52244 "type" : "object"
52245 },
52246 "links" : [
52247 {
52248 "href" : "{tokenid}",
52249 "rel" : "child"
52250 }
52251 ],
52252 "type" : "array"
52253 }
52254 }
52255 },
52256 "leaf" : 0,
52257 "path" : "/access/users/{userid}/token",
52258 "text" : "token"
52259 }
52260 ],
52261 "info" : {
52262 "DELETE" : {
52263 "allowtoken" : 1,
52264 "description" : "Delete user.",
52265 "method" : "DELETE",
52266 "name" : "delete_user",
52267 "parameters" : {
52268 "additionalProperties" : 0,
52269 "properties" : {
52270 "userid" : {
52271 "description" : "Full User ID, in the `name@realm` format.",
52272 "format" : "pve-userid",
52273 "maxLength" : 64,
52274 "type" : "string",
52275 "typetext" : "<string>"
52276 }
52277 }
52278 },
52279 "permissions" : {
52280 "check" : [
52281 "and",
52282 [
52283 "userid-param",
52284 "Realm.AllocateUser"
52285 ],
52286 [
52287 "userid-group",
52288 [
52289 "User.Modify"
52290 ]
52291 ]
52292 ]
52293 },
52294 "protected" : 1,
52295 "returns" : {
52296 "type" : "null"
52297 }
52298 },
52299 "GET" : {
52300 "allowtoken" : 1,
52301 "description" : "Get user configuration.",
52302 "method" : "GET",
52303 "name" : "read_user",
52304 "parameters" : {
52305 "additionalProperties" : 0,
52306 "properties" : {
52307 "userid" : {
52308 "description" : "Full User ID, in the `name@realm` format.",
52309 "format" : "pve-userid",
52310 "maxLength" : 64,
52311 "type" : "string",
52312 "typetext" : "<string>"
52313 }
52314 }
52315 },
52316 "permissions" : {
52317 "check" : [
52318 "userid-group",
52319 [
52320 "User.Modify",
52321 "Sys.Audit"
52322 ]
52323 ]
52324 },
52325 "returns" : {
52326 "additionalProperties" : 0,
52327 "properties" : {
52328 "comment" : {
52329 "maxLength" : 2048,
52330 "optional" : 1,
52331 "type" : "string"
52332 },
52333 "email" : {
52334 "format" : "email-opt",
52335 "maxLength" : 254,
52336 "optional" : 1,
52337 "type" : "string"
52338 },
52339 "enable" : {
52340 "default" : 1,
52341 "description" : "Enable the account (default). You can set this to '0' to disable the account",
52342 "optional" : 1,
52343 "type" : "boolean"
52344 },
52345 "expire" : {
52346 "description" : "Account expiration date (seconds since epoch). '0' means no expiration date.",
52347 "minimum" : 0,
52348 "optional" : 1,
52349 "type" : "integer"
52350 },
52351 "firstname" : {
52352 "maxLength" : 1024,
52353 "optional" : 1,
52354 "type" : "string"
52355 },
52356 "groups" : {
52357 "items" : {
52358 "format" : "pve-groupid",
52359 "type" : "string"
52360 },
52361 "optional" : 1,
52362 "type" : "array"
52363 },
52364 "keys" : {
52365 "description" : "Keys for two factor auth (yubico).",
52366 "optional" : 1,
52367 "pattern" : "[0-9a-zA-Z!=]{0,4096}",
52368 "type" : "string"
52369 },
52370 "lastname" : {
52371 "maxLength" : 1024,
52372 "optional" : 1,
52373 "type" : "string"
52374 },
52375 "tokens" : {
52376 "additionalProperties" : {
52377 "properties" : {
52378 "comment" : {
52379 "optional" : 1,
52380 "type" : "string"
52381 },
52382 "expire" : {
52383 "default" : "same as user",
52384 "description" : "API token expiration date (seconds since epoch). '0' means no expiration date.",
52385 "minimum" : 0,
52386 "optional" : 1,
52387 "type" : "integer"
52388 },
52389 "privsep" : {
52390 "default" : 1,
52391 "description" : "Restrict API token privileges with separate ACLs (default), or give full privileges of corresponding user.",
52392 "optional" : 1,
52393 "type" : "boolean"
52394 }
52395 },
52396 "type" : "object"
52397 },
52398 "optional" : 1,
52399 "type" : "object"
52400 }
52401 },
52402 "type" : "object"
52403 }
52404 },
52405 "PUT" : {
52406 "allowtoken" : 1,
52407 "description" : "Update user configuration.",
52408 "method" : "PUT",
52409 "name" : "update_user",
52410 "parameters" : {
52411 "additionalProperties" : 0,
52412 "properties" : {
52413 "append" : {
52414 "optional" : 1,
52415 "requires" : "groups",
52416 "type" : "boolean",
52417 "typetext" : "<boolean>"
52418 },
52419 "comment" : {
52420 "maxLength" : 2048,
52421 "optional" : 1,
52422 "type" : "string",
52423 "typetext" : "<string>"
52424 },
52425 "email" : {
52426 "format" : "email-opt",
52427 "maxLength" : 254,
52428 "optional" : 1,
52429 "type" : "string",
52430 "typetext" : "<string>"
52431 },
52432 "enable" : {
52433 "default" : 1,
52434 "description" : "Enable the account (default). You can set this to '0' to disable the account",
52435 "optional" : 1,
52436 "type" : "boolean",
52437 "typetext" : "<boolean>"
52438 },
52439 "expire" : {
52440 "description" : "Account expiration date (seconds since epoch). '0' means no expiration date.",
52441 "minimum" : 0,
52442 "optional" : 1,
52443 "type" : "integer",
52444 "typetext" : "<integer> (0 - N)"
52445 },
52446 "firstname" : {
52447 "maxLength" : 1024,
52448 "optional" : 1,
52449 "type" : "string",
52450 "typetext" : "<string>"
52451 },
52452 "groups" : {
52453 "format" : "pve-groupid-list",
52454 "optional" : 1,
52455 "type" : "string",
52456 "typetext" : "<string>"
52457 },
52458 "keys" : {
52459 "description" : "Keys for two factor auth (yubico).",
52460 "optional" : 1,
52461 "pattern" : "[0-9a-zA-Z!=]{0,4096}",
52462 "type" : "string"
52463 },
52464 "lastname" : {
52465 "maxLength" : 1024,
52466 "optional" : 1,
52467 "type" : "string",
52468 "typetext" : "<string>"
52469 },
52470 "userid" : {
52471 "description" : "Full User ID, in the `name@realm` format.",
52472 "format" : "pve-userid",
52473 "maxLength" : 64,
52474 "type" : "string",
52475 "typetext" : "<string>"
52476 }
52477 }
52478 },
52479 "permissions" : {
52480 "check" : [
52481 "userid-group",
52482 [
52483 "User.Modify"
52484 ],
52485 "groups_param",
52486 "update"
52487 ]
52488 },
52489 "protected" : 1,
52490 "returns" : {
52491 "type" : "null"
52492 }
52493 }
52494 },
52495 "leaf" : 0,
52496 "path" : "/access/users/{userid}",
52497 "text" : "{userid}"
52498 }
52499 ],
52500 "info" : {
52501 "GET" : {
52502 "allowtoken" : 1,
52503 "description" : "User index.",
52504 "method" : "GET",
52505 "name" : "index",
52506 "parameters" : {
52507 "additionalProperties" : 0,
52508 "properties" : {
52509 "enabled" : {
52510 "description" : "Optional filter for enable property.",
52511 "optional" : 1,
52512 "type" : "boolean",
52513 "typetext" : "<boolean>"
52514 },
52515 "full" : {
52516 "default" : 0,
52517 "description" : "Include group and token information.",
52518 "optional" : 1,
52519 "type" : "boolean",
52520 "typetext" : "<boolean>"
52521 }
52522 }
52523 },
52524 "permissions" : {
52525 "description" : "The returned list is restricted to users where you have 'User.Modify' or 'Sys.Audit' permissions on '/access/groups' or on a group the user belongs too. But it always includes the current (authenticated) user.",
52526 "user" : "all"
52527 },
52528 "protected" : 1,
52529 "returns" : {
52530 "items" : {
52531 "properties" : {
52532 "comment" : {
52533 "maxLength" : 2048,
52534 "optional" : 1,
52535 "type" : "string"
52536 },
52537 "email" : {
52538 "format" : "email-opt",
52539 "maxLength" : 254,
52540 "optional" : 1,
52541 "type" : "string"
52542 },
52543 "enable" : {
52544 "default" : 1,
52545 "description" : "Enable the account (default). You can set this to '0' to disable the account",
52546 "optional" : 1,
52547 "type" : "boolean"
52548 },
52549 "expire" : {
52550 "description" : "Account expiration date (seconds since epoch). '0' means no expiration date.",
52551 "minimum" : 0,
52552 "optional" : 1,
52553 "type" : "integer"
52554 },
52555 "firstname" : {
52556 "maxLength" : 1024,
52557 "optional" : 1,
52558 "type" : "string"
52559 },
52560 "groups" : {
52561 "format" : "pve-groupid-list",
52562 "optional" : 1,
52563 "type" : "string"
52564 },
52565 "keys" : {
52566 "description" : "Keys for two factor auth (yubico).",
52567 "optional" : 1,
52568 "pattern" : "[0-9a-zA-Z!=]{0,4096}",
52569 "type" : "string"
52570 },
52571 "lastname" : {
52572 "maxLength" : 1024,
52573 "optional" : 1,
52574 "type" : "string"
52575 },
52576 "realm-type" : {
52577 "description" : "The type of the users realm",
52578 "format" : "pve-realm",
52579 "optional" : 1,
52580 "type" : "string"
52581 },
52582 "tfa-locked-until" : {
52583 "description" : "Contains a timestamp until when a user is locked out of 2nd factors.",
52584 "optional" : 1,
52585 "type" : "integer"
52586 },
52587 "tokens" : {
52588 "items" : {
52589 "properties" : {
52590 "comment" : {
52591 "optional" : 1,
52592 "type" : "string"
52593 },
52594 "expire" : {
52595 "default" : "same as user",
52596 "description" : "API token expiration date (seconds since epoch). '0' means no expiration date.",
52597 "minimum" : 0,
52598 "optional" : 1,
52599 "type" : "integer"
52600 },
52601 "privsep" : {
52602 "default" : 1,
52603 "description" : "Restrict API token privileges with separate ACLs (default), or give full privileges of corresponding user.",
52604 "optional" : 1,
52605 "type" : "boolean"
52606 },
52607 "tokenid" : {
52608 "description" : "User-specific token identifier.",
52609 "pattern" : "(?^:[A-Za-z][A-Za-z0-9\\.\\-_]+)",
52610 "type" : "string"
52611 }
52612 },
52613 "type" : "object"
52614 },
52615 "optional" : 1,
52616 "type" : "array"
52617 },
52618 "totp-locked" : {
52619 "description" : "True if the user is currently locked out of TOTP factors.",
52620 "optional" : 1,
52621 "type" : "boolean"
52622 },
52623 "userid" : {
52624 "description" : "Full User ID, in the `name@realm` format.",
52625 "format" : "pve-userid",
52626 "maxLength" : 64,
52627 "type" : "string"
52628 }
52629 },
52630 "type" : "object"
52631 },
52632 "links" : [
52633 {
52634 "href" : "{userid}",
52635 "rel" : "child"
52636 }
52637 ],
52638 "type" : "array"
52639 }
52640 },
52641 "POST" : {
52642 "allowtoken" : 1,
52643 "description" : "Create new user.",
52644 "method" : "POST",
52645 "name" : "create_user",
52646 "parameters" : {
52647 "additionalProperties" : 0,
52648 "properties" : {
52649 "comment" : {
52650 "maxLength" : 2048,
52651 "optional" : 1,
52652 "type" : "string",
52653 "typetext" : "<string>"
52654 },
52655 "email" : {
52656 "format" : "email-opt",
52657 "maxLength" : 254,
52658 "optional" : 1,
52659 "type" : "string",
52660 "typetext" : "<string>"
52661 },
52662 "enable" : {
52663 "default" : 1,
52664 "description" : "Enable the account (default). You can set this to '0' to disable the account",
52665 "optional" : 1,
52666 "type" : "boolean",
52667 "typetext" : "<boolean>"
52668 },
52669 "expire" : {
52670 "description" : "Account expiration date (seconds since epoch). '0' means no expiration date.",
52671 "minimum" : 0,
52672 "optional" : 1,
52673 "type" : "integer",
52674 "typetext" : "<integer> (0 - N)"
52675 },
52676 "firstname" : {
52677 "maxLength" : 1024,
52678 "optional" : 1,
52679 "type" : "string",
52680 "typetext" : "<string>"
52681 },
52682 "groups" : {
52683 "format" : "pve-groupid-list",
52684 "optional" : 1,
52685 "type" : "string",
52686 "typetext" : "<string>"
52687 },
52688 "keys" : {
52689 "description" : "Keys for two factor auth (yubico).",
52690 "optional" : 1,
52691 "pattern" : "[0-9a-zA-Z!=]{0,4096}",
52692 "type" : "string"
52693 },
52694 "lastname" : {
52695 "maxLength" : 1024,
52696 "optional" : 1,
52697 "type" : "string",
52698 "typetext" : "<string>"
52699 },
52700 "password" : {
52701 "description" : "Initial password.",
52702 "maxLength" : 64,
52703 "minLength" : 5,
52704 "optional" : 1,
52705 "type" : "string",
52706 "typetext" : "<string>"
52707 },
52708 "userid" : {
52709 "description" : "Full User ID, in the `name@realm` format.",
52710 "format" : "pve-userid",
52711 "maxLength" : 64,
52712 "type" : "string",
52713 "typetext" : "<string>"
52714 }
52715 }
52716 },
52717 "permissions" : {
52718 "check" : [
52719 "and",
52720 [
52721 "userid-param",
52722 "Realm.AllocateUser"
52723 ],
52724 [
52725 "userid-group",
52726 [
52727 "User.Modify"
52728 ],
52729 "groups_param",
52730 "create"
52731 ]
52732 ],
52733 "description" : "You need 'Realm.AllocateUser' on '/access/realm/<realm>' on the realm of user <userid>, and 'User.Modify' permissions to '/access/groups/<group>' for any group specified (or 'User.Modify' on '/access/groups' if you pass no groups."
52734 },
52735 "protected" : 1,
52736 "returns" : {
52737 "type" : "null"
52738 }
52739 }
52740 },
52741 "leaf" : 0,
52742 "path" : "/access/users",
52743 "text" : "users"
52744 },
52745 {
52746 "children" : [
52747 {
52748 "info" : {
52749 "DELETE" : {
52750 "allowtoken" : 1,
52751 "description" : "Delete group.",
52752 "method" : "DELETE",
52753 "name" : "delete_group",
52754 "parameters" : {
52755 "additionalProperties" : 0,
52756 "properties" : {
52757 "groupid" : {
52758 "format" : "pve-groupid",
52759 "type" : "string",
52760 "typetext" : "<string>"
52761 }
52762 }
52763 },
52764 "permissions" : {
52765 "check" : [
52766 "perm",
52767 "/access/groups",
52768 [
52769 "Group.Allocate"
52770 ]
52771 ]
52772 },
52773 "protected" : 1,
52774 "returns" : {
52775 "type" : "null"
52776 }
52777 },
52778 "GET" : {
52779 "allowtoken" : 1,
52780 "description" : "Get group configuration.",
52781 "method" : "GET",
52782 "name" : "read_group",
52783 "parameters" : {
52784 "additionalProperties" : 0,
52785 "properties" : {
52786 "groupid" : {
52787 "format" : "pve-groupid",
52788 "type" : "string",
52789 "typetext" : "<string>"
52790 }
52791 }
52792 },
52793 "permissions" : {
52794 "check" : [
52795 "perm",
52796 "/access/groups",
52797 [
52798 "Sys.Audit",
52799 "Group.Allocate"
52800 ],
52801 "any",
52802 1
52803 ]
52804 },
52805 "returns" : {
52806 "additionalProperties" : 0,
52807 "properties" : {
52808 "comment" : {
52809 "optional" : 1,
52810 "type" : "string"
52811 },
52812 "members" : {
52813 "items" : {
52814 "description" : "Full User ID, in the `name@realm` format.",
52815 "format" : "pve-userid",
52816 "maxLength" : 64,
52817 "type" : "string"
52818 },
52819 "type" : "array"
52820 }
52821 },
52822 "type" : "object"
52823 }
52824 },
52825 "PUT" : {
52826 "allowtoken" : 1,
52827 "description" : "Update group data.",
52828 "method" : "PUT",
52829 "name" : "update_group",
52830 "parameters" : {
52831 "additionalProperties" : 0,
52832 "properties" : {
52833 "comment" : {
52834 "optional" : 1,
52835 "type" : "string",
52836 "typetext" : "<string>"
52837 },
52838 "groupid" : {
52839 "format" : "pve-groupid",
52840 "type" : "string",
52841 "typetext" : "<string>"
52842 }
52843 }
52844 },
52845 "permissions" : {
52846 "check" : [
52847 "perm",
52848 "/access/groups",
52849 [
52850 "Group.Allocate"
52851 ]
52852 ]
52853 },
52854 "protected" : 1,
52855 "returns" : {
52856 "type" : "null"
52857 }
52858 }
52859 },
52860 "leaf" : 1,
52861 "path" : "/access/groups/{groupid}",
52862 "text" : "{groupid}"
52863 }
52864 ],
52865 "info" : {
52866 "GET" : {
52867 "allowtoken" : 1,
52868 "description" : "Group index.",
52869 "method" : "GET",
52870 "name" : "index",
52871 "parameters" : {
52872 "additionalProperties" : 0
52873 },
52874 "permissions" : {
52875 "description" : "The returned list is restricted to groups where you have 'User.Modify', 'Sys.Audit' or 'Group.Allocate' permissions on /access/groups/<group>.",
52876 "user" : "all"
52877 },
52878 "returns" : {
52879 "items" : {
52880 "properties" : {
52881 "comment" : {
52882 "optional" : 1,
52883 "type" : "string"
52884 },
52885 "groupid" : {
52886 "format" : "pve-groupid",
52887 "type" : "string"
52888 },
52889 "users" : {
52890 "description" : "list of users which form this group",
52891 "format" : "pve-userid-list",
52892 "optional" : 1,
52893 "type" : "string"
52894 }
52895 },
52896 "type" : "object"
52897 },
52898 "links" : [
52899 {
52900 "href" : "{groupid}",
52901 "rel" : "child"
52902 }
52903 ],
52904 "type" : "array"
52905 }
52906 },
52907 "POST" : {
52908 "allowtoken" : 1,
52909 "description" : "Create new group.",
52910 "method" : "POST",
52911 "name" : "create_group",
52912 "parameters" : {
52913 "additionalProperties" : 0,
52914 "properties" : {
52915 "comment" : {
52916 "optional" : 1,
52917 "type" : "string",
52918 "typetext" : "<string>"
52919 },
52920 "groupid" : {
52921 "format" : "pve-groupid",
52922 "type" : "string",
52923 "typetext" : "<string>"
52924 }
52925 }
52926 },
52927 "permissions" : {
52928 "check" : [
52929 "perm",
52930 "/access/groups",
52931 [
52932 "Group.Allocate"
52933 ]
52934 ]
52935 },
52936 "protected" : 1,
52937 "returns" : {
52938 "type" : "null"
52939 }
52940 }
52941 },
52942 "leaf" : 0,
52943 "path" : "/access/groups",
52944 "text" : "groups"
52945 },
52946 {
52947 "children" : [
52948 {
52949 "info" : {
52950 "DELETE" : {
52951 "allowtoken" : 1,
52952 "description" : "Delete role.",
52953 "method" : "DELETE",
52954 "name" : "delete_role",
52955 "parameters" : {
52956 "additionalProperties" : 0,
52957 "properties" : {
52958 "roleid" : {
52959 "format" : "pve-roleid",
52960 "type" : "string",
52961 "typetext" : "<string>"
52962 }
52963 }
52964 },
52965 "permissions" : {
52966 "check" : [
52967 "perm",
52968 "/access",
52969 [
52970 "Sys.Modify"
52971 ]
52972 ]
52973 },
52974 "protected" : 1,
52975 "returns" : {
52976 "type" : "null"
52977 }
52978 },
52979 "GET" : {
52980 "allowtoken" : 1,
52981 "description" : "Get role configuration.",
52982 "method" : "GET",
52983 "name" : "read_role",
52984 "parameters" : {
52985 "additionalProperties" : 0,
52986 "properties" : {
52987 "roleid" : {
52988 "format" : "pve-roleid",
52989 "type" : "string",
52990 "typetext" : "<string>"
52991 }
52992 }
52993 },
52994 "permissions" : {
52995 "user" : "all"
52996 },
52997 "returns" : {
52998 "additionalProperties" : 0,
52999 "properties" : {
53000 "Datastore.Allocate" : {
53001 "optional" : 1,
53002 "type" : "boolean"
53003 },
53004 "Datastore.AllocateSpace" : {
53005 "optional" : 1,
53006 "type" : "boolean"
53007 },
53008 "Datastore.AllocateTemplate" : {
53009 "optional" : 1,
53010 "type" : "boolean"
53011 },
53012 "Datastore.Audit" : {
53013 "optional" : 1,
53014 "type" : "boolean"
53015 },
53016 "Group.Allocate" : {
53017 "optional" : 1,
53018 "type" : "boolean"
53019 },
53020 "Mapping.Audit" : {
53021 "optional" : 1,
53022 "type" : "boolean"
53023 },
53024 "Mapping.Modify" : {
53025 "optional" : 1,
53026 "type" : "boolean"
53027 },
53028 "Mapping.Use" : {
53029 "optional" : 1,
53030 "type" : "boolean"
53031 },
53032 "Permissions.Modify" : {
53033 "optional" : 1,
53034 "type" : "boolean"
53035 },
53036 "Pool.Allocate" : {
53037 "optional" : 1,
53038 "type" : "boolean"
53039 },
53040 "Pool.Audit" : {
53041 "optional" : 1,
53042 "type" : "boolean"
53043 },
53044 "Realm.Allocate" : {
53045 "optional" : 1,
53046 "type" : "boolean"
53047 },
53048 "Realm.AllocateUser" : {
53049 "optional" : 1,
53050 "type" : "boolean"
53051 },
53052 "SDN.Allocate" : {
53053 "optional" : 1,
53054 "type" : "boolean"
53055 },
53056 "SDN.Audit" : {
53057 "optional" : 1,
53058 "type" : "boolean"
53059 },
53060 "SDN.Use" : {
53061 "optional" : 1,
53062 "type" : "boolean"
53063 },
53064 "Sys.AccessNetwork" : {
53065 "optional" : 1,
53066 "type" : "boolean"
53067 },
53068 "Sys.Audit" : {
53069 "optional" : 1,
53070 "type" : "boolean"
53071 },
53072 "Sys.Console" : {
53073 "optional" : 1,
53074 "type" : "boolean"
53075 },
53076 "Sys.Incoming" : {
53077 "optional" : 1,
53078 "type" : "boolean"
53079 },
53080 "Sys.Modify" : {
53081 "optional" : 1,
53082 "type" : "boolean"
53083 },
53084 "Sys.PowerMgmt" : {
53085 "optional" : 1,
53086 "type" : "boolean"
53087 },
53088 "Sys.Syslog" : {
53089 "optional" : 1,
53090 "type" : "boolean"
53091 },
53092 "User.Modify" : {
53093 "optional" : 1,
53094 "type" : "boolean"
53095 },
53096 "VM.Allocate" : {
53097 "optional" : 1,
53098 "type" : "boolean"
53099 },
53100 "VM.Audit" : {
53101 "optional" : 1,
53102 "type" : "boolean"
53103 },
53104 "VM.Backup" : {
53105 "optional" : 1,
53106 "type" : "boolean"
53107 },
53108 "VM.Clone" : {
53109 "optional" : 1,
53110 "type" : "boolean"
53111 },
53112 "VM.Config.CDROM" : {
53113 "optional" : 1,
53114 "type" : "boolean"
53115 },
53116 "VM.Config.CPU" : {
53117 "optional" : 1,
53118 "type" : "boolean"
53119 },
53120 "VM.Config.Cloudinit" : {
53121 "optional" : 1,
53122 "type" : "boolean"
53123 },
53124 "VM.Config.Disk" : {
53125 "optional" : 1,
53126 "type" : "boolean"
53127 },
53128 "VM.Config.HWType" : {
53129 "optional" : 1,
53130 "type" : "boolean"
53131 },
53132 "VM.Config.Memory" : {
53133 "optional" : 1,
53134 "type" : "boolean"
53135 },
53136 "VM.Config.Network" : {
53137 "optional" : 1,
53138 "type" : "boolean"
53139 },
53140 "VM.Config.Options" : {
53141 "optional" : 1,
53142 "type" : "boolean"
53143 },
53144 "VM.Console" : {
53145 "optional" : 1,
53146 "type" : "boolean"
53147 },
53148 "VM.Migrate" : {
53149 "optional" : 1,
53150 "type" : "boolean"
53151 },
53152 "VM.Monitor" : {
53153 "optional" : 1,
53154 "type" : "boolean"
53155 },
53156 "VM.PowerMgmt" : {
53157 "optional" : 1,
53158 "type" : "boolean"
53159 },
53160 "VM.Snapshot" : {
53161 "optional" : 1,
53162 "type" : "boolean"
53163 },
53164 "VM.Snapshot.Rollback" : {
53165 "optional" : 1,
53166 "type" : "boolean"
53167 }
53168 },
53169 "type" : "object"
53170 }
53171 },
53172 "PUT" : {
53173 "allowtoken" : 1,
53174 "description" : "Update an existing role.",
53175 "method" : "PUT",
53176 "name" : "update_role",
53177 "parameters" : {
53178 "additionalProperties" : 0,
53179 "properties" : {
53180 "append" : {
53181 "optional" : 1,
53182 "requires" : "privs",
53183 "type" : "boolean",
53184 "typetext" : "<boolean>"
53185 },
53186 "privs" : {
53187 "format" : "pve-priv-list",
53188 "optional" : 1,
53189 "type" : "string",
53190 "typetext" : "<string>"
53191 },
53192 "roleid" : {
53193 "format" : "pve-roleid",
53194 "type" : "string",
53195 "typetext" : "<string>"
53196 }
53197 }
53198 },
53199 "permissions" : {
53200 "check" : [
53201 "perm",
53202 "/access",
53203 [
53204 "Sys.Modify"
53205 ]
53206 ]
53207 },
53208 "protected" : 1,
53209 "returns" : {
53210 "type" : "null"
53211 }
53212 }
53213 },
53214 "leaf" : 1,
53215 "path" : "/access/roles/{roleid}",
53216 "text" : "{roleid}"
53217 }
53218 ],
53219 "info" : {
53220 "GET" : {
53221 "allowtoken" : 1,
53222 "description" : "Role index.",
53223 "method" : "GET",
53224 "name" : "index",
53225 "parameters" : {
53226 "additionalProperties" : 0
53227 },
53228 "permissions" : {
53229 "user" : "all"
53230 },
53231 "returns" : {
53232 "items" : {
53233 "properties" : {
53234 "privs" : {
53235 "format" : "pve-priv-list",
53236 "optional" : 1,
53237 "type" : "string"
53238 },
53239 "roleid" : {
53240 "format" : "pve-roleid",
53241 "type" : "string"
53242 },
53243 "special" : {
53244 "default" : 0,
53245 "optional" : 1,
53246 "type" : "boolean"
53247 }
53248 },
53249 "type" : "object"
53250 },
53251 "links" : [
53252 {
53253 "href" : "{roleid}",
53254 "rel" : "child"
53255 }
53256 ],
53257 "type" : "array"
53258 }
53259 },
53260 "POST" : {
53261 "allowtoken" : 1,
53262 "description" : "Create new role.",
53263 "method" : "POST",
53264 "name" : "create_role",
53265 "parameters" : {
53266 "additionalProperties" : 0,
53267 "properties" : {
53268 "privs" : {
53269 "format" : "pve-priv-list",
53270 "optional" : 1,
53271 "type" : "string",
53272 "typetext" : "<string>"
53273 },
53274 "roleid" : {
53275 "format" : "pve-roleid",
53276 "type" : "string",
53277 "typetext" : "<string>"
53278 }
53279 }
53280 },
53281 "permissions" : {
53282 "check" : [
53283 "perm",
53284 "/access",
53285 [
53286 "Sys.Modify"
53287 ]
53288 ]
53289 },
53290 "protected" : 1,
53291 "returns" : {
53292 "type" : "null"
53293 }
53294 }
53295 },
53296 "leaf" : 0,
53297 "path" : "/access/roles",
53298 "text" : "roles"
53299 },
53300 {
53301 "info" : {
53302 "GET" : {
53303 "allowtoken" : 1,
53304 "description" : "Get Access Control List (ACLs).",
53305 "method" : "GET",
53306 "name" : "read_acl",
53307 "parameters" : {
53308 "additionalProperties" : 0
53309 },
53310 "permissions" : {
53311 "description" : "The returned list is restricted to objects where you have rights to modify permissions.",
53312 "user" : "all"
53313 },
53314 "returns" : {
53315 "items" : {
53316 "additionalProperties" : 0,
53317 "properties" : {
53318 "path" : {
53319 "description" : "Access control path",
53320 "type" : "string"
53321 },
53322 "propagate" : {
53323 "default" : 1,
53324 "description" : "Allow to propagate (inherit) permissions.",
53325 "optional" : 1,
53326 "type" : "boolean"
53327 },
53328 "roleid" : {
53329 "type" : "string"
53330 },
53331 "type" : {
53332 "enum" : [
53333 "user",
53334 "group",
53335 "token"
53336 ],
53337 "type" : "string"
53338 },
53339 "ugid" : {
53340 "type" : "string"
53341 }
53342 },
53343 "type" : "object"
53344 },
53345 "type" : "array"
53346 }
53347 },
53348 "PUT" : {
53349 "allowtoken" : 1,
53350 "description" : "Update Access Control List (add or remove permissions).",
53351 "method" : "PUT",
53352 "name" : "update_acl",
53353 "parameters" : {
53354 "additionalProperties" : 0,
53355 "properties" : {
53356 "delete" : {
53357 "description" : "Remove permissions (instead of adding it).",
53358 "optional" : 1,
53359 "type" : "boolean",
53360 "typetext" : "<boolean>"
53361 },
53362 "groups" : {
53363 "description" : "List of groups.",
53364 "format" : "pve-groupid-list",
53365 "optional" : 1,
53366 "type" : "string",
53367 "typetext" : "<string>"
53368 },
53369 "path" : {
53370 "description" : "Access control path",
53371 "type" : "string",
53372 "typetext" : "<string>"
53373 },
53374 "propagate" : {
53375 "default" : 1,
53376 "description" : "Allow to propagate (inherit) permissions.",
53377 "optional" : 1,
53378 "type" : "boolean",
53379 "typetext" : "<boolean>"
53380 },
53381 "roles" : {
53382 "description" : "List of roles.",
53383 "format" : "pve-roleid-list",
53384 "type" : "string",
53385 "typetext" : "<string>"
53386 },
53387 "tokens" : {
53388 "description" : "List of API tokens.",
53389 "format" : "pve-tokenid-list",
53390 "optional" : 1,
53391 "type" : "string",
53392 "typetext" : "<string>"
53393 },
53394 "users" : {
53395 "description" : "List of users.",
53396 "format" : "pve-userid-list",
53397 "optional" : 1,
53398 "type" : "string",
53399 "typetext" : "<string>"
53400 }
53401 }
53402 },
53403 "permissions" : {
53404 "check" : [
53405 "perm-modify",
53406 "{path}"
53407 ]
53408 },
53409 "protected" : 1,
53410 "returns" : {
53411 "type" : "null"
53412 }
53413 }
53414 },
53415 "leaf" : 1,
53416 "path" : "/access/acl",
53417 "text" : "acl"
53418 },
53419 {
53420 "children" : [
53421 {
53422 "children" : [
53423 {
53424 "info" : {
53425 "POST" : {
53426 "allowtoken" : 1,
53427 "description" : "Syncs users and/or groups from the configured LDAP to user.cfg. NOTE: Synced groups will have the name 'name-$realm', so make sure those groups do not exist to prevent overwriting.",
53428 "method" : "POST",
53429 "name" : "sync",
53430 "parameters" : {
53431 "additionalProperties" : 0,
53432 "properties" : {
53433 "dry-run" : {
53434 "default" : 0,
53435 "description" : "If set, does not write anything.",
53436 "optional" : 1,
53437 "type" : "boolean",
53438 "typetext" : "<boolean>"
53439 },
53440 "enable-new" : {
53441 "default" : "1",
53442 "description" : "Enable newly synced users immediately.",
53443 "optional" : "1",
53444 "type" : "boolean",
53445 "typetext" : "<boolean>"
53446 },
53447 "full" : {
53448 "description" : "DEPRECATED: use 'remove-vanished' instead. If set, uses the LDAP Directory as source of truth, deleting users or groups not returned from the sync and removing all locally modified properties of synced users. If not set, only syncs information which is present in the synced data, and does not delete or modify anything else.",
53449 "optional" : "1",
53450 "type" : "boolean",
53451 "typetext" : "<boolean>"
53452 },
53453 "purge" : {
53454 "description" : "DEPRECATED: use 'remove-vanished' instead. Remove ACLs for users or groups which were removed from the config during a sync.",
53455 "optional" : "1",
53456 "type" : "boolean",
53457 "typetext" : "<boolean>"
53458 },
53459 "realm" : {
53460 "description" : "Authentication domain ID",
53461 "format" : "pve-realm",
53462 "maxLength" : 32,
53463 "type" : "string",
53464 "typetext" : "<string>"
53465 },
53466 "remove-vanished" : {
53467 "default" : "none",
53468 "description" : "A semicolon-seperated list of things to remove when they or the user vanishes during a sync. The following values are possible: 'entry' removes the user/group when not returned from the sync. 'properties' removes the set properties on existing user/group that do not appear in the source (even custom ones). 'acl' removes acls when the user/group is not returned from the sync. Instead of a list it also can be 'none' (the default).",
53469 "optional" : "1",
53470 "pattern" : "(?:(?:(?:acl|properties|entry);)*(?:acl|properties|entry))|none",
53471 "type" : "string",
53472 "typetext" : "([acl];[properties];[entry])|none"
53473 },
53474 "scope" : {
53475 "description" : "Select what to sync.",
53476 "enum" : [
53477 "users",
53478 "groups",
53479 "both"
53480 ],
53481 "optional" : "1",
53482 "type" : "string"
53483 }
53484 }
53485 },
53486 "permissions" : {
53487 "check" : [
53488 "and",
53489 [
53490 "perm",
53491 "/access/realm/{realm}",
53492 [
53493 "Realm.AllocateUser"
53494 ]
53495 ],
53496 [
53497 "perm",
53498 "/access/groups",
53499 [
53500 "User.Modify"
53501 ]
53502 ]
53503 ],
53504 "description" : "'Realm.AllocateUser' on '/access/realm/<realm>' and 'User.Modify' permissions to '/access/groups/'."
53505 },
53506 "protected" : 1,
53507 "returns" : {
53508 "description" : "Worker Task-UPID",
53509 "type" : "string"
53510 }
53511 }
53512 },
53513 "leaf" : 1,
53514 "path" : "/access/domains/{realm}/sync",
53515 "text" : "sync"
53516 }
53517 ],
53518 "info" : {
53519 "DELETE" : {
53520 "allowtoken" : 1,
53521 "description" : "Delete an authentication server.",
53522 "method" : "DELETE",
53523 "name" : "delete",
53524 "parameters" : {
53525 "additionalProperties" : 0,
53526 "properties" : {
53527 "realm" : {
53528 "description" : "Authentication domain ID",
53529 "format" : "pve-realm",
53530 "maxLength" : 32,
53531 "type" : "string",
53532 "typetext" : "<string>"
53533 }
53534 }
53535 },
53536 "permissions" : {
53537 "check" : [
53538 "perm",
53539 "/access/realm",
53540 [
53541 "Realm.Allocate"
53542 ]
53543 ]
53544 },
53545 "protected" : 1,
53546 "returns" : {
53547 "type" : "null"
53548 }
53549 },
53550 "GET" : {
53551 "allowtoken" : 1,
53552 "description" : "Get auth server configuration.",
53553 "method" : "GET",
53554 "name" : "read",
53555 "parameters" : {
53556 "additionalProperties" : 0,
53557 "properties" : {
53558 "realm" : {
53559 "description" : "Authentication domain ID",
53560 "format" : "pve-realm",
53561 "maxLength" : 32,
53562 "type" : "string",
53563 "typetext" : "<string>"
53564 }
53565 }
53566 },
53567 "permissions" : {
53568 "check" : [
53569 "perm",
53570 "/access/realm",
53571 [
53572 "Realm.Allocate",
53573 "Sys.Audit"
53574 ],
53575 "any",
53576 1
53577 ]
53578 },
53579 "returns" : {}
53580 },
53581 "PUT" : {
53582 "allowtoken" : 1,
53583 "description" : "Update authentication server settings.",
53584 "method" : "PUT",
53585 "name" : "update",
53586 "parameters" : {
53587 "additionalProperties" : 0,
53588 "properties" : {
53589 "acr-values" : {
53590 "description" : "Specifies the Authentication Context Class Reference values that theAuthorization Server is being requested to use for the Auth Request.",
53591 "optional" : 1,
53592 "pattern" : "^[^\\x00-\\x1F\\x7F <>#\"]*$",
53593 "type" : "string"
53594 },
53595 "autocreate" : {
53596 "default" : 0,
53597 "description" : "Automatically create users if they do not exist.",
53598 "optional" : 1,
53599 "type" : "boolean",
53600 "typetext" : "<boolean>"
53601 },
53602 "base_dn" : {
53603 "description" : "LDAP base domain name",
53604 "maxLength" : 256,
53605 "optional" : 1,
53606 "type" : "string",
53607 "typetext" : "<string>"
53608 },
53609 "bind_dn" : {
53610 "description" : "LDAP bind domain name",
53611 "maxLength" : 256,
53612 "optional" : 1,
53613 "type" : "string",
53614 "typetext" : "<string>"
53615 },
53616 "capath" : {
53617 "default" : "/etc/ssl/certs",
53618 "description" : "Path to the CA certificate store",
53619 "optional" : 1,
53620 "type" : "string",
53621 "typetext" : "<string>"
53622 },
53623 "case-sensitive" : {
53624 "default" : 1,
53625 "description" : "username is case-sensitive",
53626 "optional" : 1,
53627 "type" : "boolean",
53628 "typetext" : "<boolean>"
53629 },
53630 "cert" : {
53631 "description" : "Path to the client certificate",
53632 "optional" : 1,
53633 "type" : "string",
53634 "typetext" : "<string>"
53635 },
53636 "certkey" : {
53637 "description" : "Path to the client certificate key",
53638 "optional" : 1,
53639 "type" : "string",
53640 "typetext" : "<string>"
53641 },
53642 "check-connection" : {
53643 "default" : 0,
53644 "description" : "Check bind connection to the server.",
53645 "optional" : 1,
53646 "type" : "boolean",
53647 "typetext" : "<boolean>"
53648 },
53649 "client-id" : {
53650 "description" : "OpenID Client ID",
53651 "maxLength" : 256,
53652 "optional" : 1,
53653 "type" : "string",
53654 "typetext" : "<string>"
53655 },
53656 "client-key" : {
53657 "description" : "OpenID Client Key",
53658 "maxLength" : 256,
53659 "optional" : 1,
53660 "type" : "string",
53661 "typetext" : "<string>"
53662 },
53663 "comment" : {
53664 "description" : "Description.",
53665 "maxLength" : 4096,
53666 "optional" : 1,
53667 "type" : "string",
53668 "typetext" : "<string>"
53669 },
53670 "default" : {
53671 "description" : "Use this as default realm",
53672 "optional" : 1,
53673 "type" : "boolean",
53674 "typetext" : "<boolean>"
53675 },
53676 "delete" : {
53677 "description" : "A list of settings you want to delete.",
53678 "format" : "pve-configid-list",
53679 "maxLength" : 4096,
53680 "optional" : 1,
53681 "type" : "string",
53682 "typetext" : "<string>"
53683 },
53684 "digest" : {
53685 "description" : "Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.",
53686 "maxLength" : 64,
53687 "optional" : 1,
53688 "type" : "string",
53689 "typetext" : "<string>"
53690 },
53691 "domain" : {
53692 "description" : "AD domain name",
53693 "maxLength" : 256,
53694 "optional" : 1,
53695 "pattern" : "\\S+",
53696 "type" : "string"
53697 },
53698 "filter" : {
53699 "description" : "LDAP filter for user sync.",
53700 "maxLength" : 2048,
53701 "optional" : 1,
53702 "type" : "string",
53703 "typetext" : "<string>"
53704 },
53705 "group_classes" : {
53706 "default" : "groupOfNames, group, univentionGroup, ipausergroup",
53707 "description" : "The objectclasses for groups.",
53708 "format" : "ldap-simple-attr-list",
53709 "optional" : 1,
53710 "type" : "string",
53711 "typetext" : "<string>"
53712 },
53713 "group_dn" : {
53714 "description" : "LDAP base domain name for group sync. If not set, the base_dn will be used.",
53715 "maxLength" : 256,
53716 "optional" : 1,
53717 "type" : "string",
53718 "typetext" : "<string>"
53719 },
53720 "group_filter" : {
53721 "description" : "LDAP filter for group sync.",
53722 "maxLength" : 2048,
53723 "optional" : 1,
53724 "type" : "string",
53725 "typetext" : "<string>"
53726 },
53727 "group_name_attr" : {
53728 "description" : "LDAP attribute representing a groups name. If not set or found, the first value of the DN will be used as name.",
53729 "format" : "ldap-simple-attr",
53730 "maxLength" : 256,
53731 "optional" : 1,
53732 "type" : "string",
53733 "typetext" : "<string>"
53734 },
53735 "issuer-url" : {
53736 "description" : "OpenID Issuer Url",
53737 "maxLength" : 256,
53738 "optional" : 1,
53739 "type" : "string",
53740 "typetext" : "<string>"
53741 },
53742 "mode" : {
53743 "default" : "ldap",
53744 "description" : "LDAP protocol mode.",
53745 "enum" : [
53746 "ldap",
53747 "ldaps",
53748 "ldap+starttls"
53749 ],
53750 "optional" : 1,
53751 "type" : "string"
53752 },
53753 "password" : {
53754 "description" : "LDAP bind password. Will be stored in '/etc/pve/priv/realm/<REALM>.pw'.",
53755 "optional" : 1,
53756 "type" : "string",
53757 "typetext" : "<string>"
53758 },
53759 "port" : {
53760 "description" : "Server port.",
53761 "maximum" : 65535,
53762 "minimum" : 1,
53763 "optional" : 1,
53764 "type" : "integer",
53765 "typetext" : "<integer> (1 - 65535)"
53766 },
53767 "prompt" : {
53768 "description" : "Specifies whether the Authorization Server prompts the End-User for reauthentication and consent.",
53769 "optional" : 1,
53770 "pattern" : "(?:none|login|consent|select_account|\\S+)",
53771 "type" : "string"
53772 },
53773 "realm" : {
53774 "description" : "Authentication domain ID",
53775 "format" : "pve-realm",
53776 "maxLength" : 32,
53777 "type" : "string",
53778 "typetext" : "<string>"
53779 },
53780 "scopes" : {
53781 "default" : "email profile",
53782 "description" : "Specifies the scopes (user details) that should be authorized and returned, for example 'email' or 'profile'.",
53783 "optional" : 1,
53784 "type" : "string",
53785 "typetext" : "<string>"
53786 },
53787 "secure" : {
53788 "description" : "Use secure LDAPS protocol. DEPRECATED: use 'mode' instead.",
53789 "optional" : 1,
53790 "type" : "boolean",
53791 "typetext" : "<boolean>"
53792 },
53793 "server1" : {
53794 "description" : "Server IP address (or DNS name)",
53795 "format" : "address",
53796 "maxLength" : 256,
53797 "optional" : 1,
53798 "type" : "string",
53799 "typetext" : "<string>"
53800 },
53801 "server2" : {
53802 "description" : "Fallback Server IP address (or DNS name)",
53803 "format" : "address",
53804 "maxLength" : 256,
53805 "optional" : 1,
53806 "type" : "string",
53807 "typetext" : "<string>"
53808 },
53809 "sslversion" : {
53810 "description" : "LDAPS TLS/SSL version. It's not recommended to use version older than 1.2!",
53811 "enum" : [
53812 "tlsv1",
53813 "tlsv1_1",
53814 "tlsv1_2",
53815 "tlsv1_3"
53816 ],
53817 "optional" : 1,
53818 "type" : "string"
53819 },
53820 "sync-defaults-options" : {
53821 "description" : "The default options for behavior of synchronizations.",
53822 "format" : "realm-sync-options",
53823 "optional" : 1,
53824 "type" : "string",
53825 "typetext" : "[enable-new=<1|0>] [,full=<1|0>] [,purge=<1|0>] [,remove-vanished=([acl];[properties];[entry])|none] [,scope=<users|groups|both>]"
53826 },
53827 "sync_attributes" : {
53828 "description" : "Comma separated list of key=value pairs for specifying which LDAP attributes map to which PVE user field. For example, to map the LDAP attribute 'mail' to PVEs 'email', write 'email=mail'. By default, each PVE user field is represented by an LDAP attribute of the same name.",
53829 "optional" : 1,
53830 "pattern" : "\\w+=[^,]+(,\\s*\\w+=[^,]+)*",
53831 "type" : "string"
53832 },
53833 "tfa" : {
53834 "description" : "Use Two-factor authentication.",
53835 "format" : "pve-tfa-config",
53836 "maxLength" : 128,
53837 "optional" : 1,
53838 "type" : "string",
53839 "typetext" : "type=<TFATYPE> [,digits=<COUNT>] [,id=<ID>] [,key=<KEY>] [,step=<SECONDS>] [,url=<URL>]"
53840 },
53841 "user_attr" : {
53842 "description" : "LDAP user attribute name",
53843 "maxLength" : 256,
53844 "optional" : 1,
53845 "pattern" : "\\S{2,}",
53846 "type" : "string"
53847 },
53848 "user_classes" : {
53849 "default" : "inetorgperson, posixaccount, person, user",
53850 "description" : "The objectclasses for users.",
53851 "format" : "ldap-simple-attr-list",
53852 "optional" : 1,
53853 "type" : "string",
53854 "typetext" : "<string>"
53855 },
53856 "verify" : {
53857 "default" : 0,
53858 "description" : "Verify the server's SSL certificate",
53859 "optional" : 1,
53860 "type" : "boolean",
53861 "typetext" : "<boolean>"
53862 }
53863 },
53864 "type" : "object"
53865 },
53866 "permissions" : {
53867 "check" : [
53868 "perm",
53869 "/access/realm",
53870 [
53871 "Realm.Allocate"
53872 ]
53873 ]
53874 },
53875 "protected" : 1,
53876 "returns" : {
53877 "type" : "null"
53878 }
53879 }
53880 },
53881 "leaf" : 0,
53882 "path" : "/access/domains/{realm}",
53883 "text" : "{realm}"
53884 }
53885 ],
53886 "info" : {
53887 "GET" : {
53888 "allowtoken" : 1,
53889 "description" : "Authentication domain index.",
53890 "method" : "GET",
53891 "name" : "index",
53892 "parameters" : {
53893 "additionalProperties" : 0
53894 },
53895 "permissions" : {
53896 "description" : "Anyone can access that, because we need that list for the login box (before the user is authenticated).",
53897 "user" : "world"
53898 },
53899 "returns" : {
53900 "items" : {
53901 "properties" : {
53902 "comment" : {
53903 "description" : "A comment. The GUI use this text when you select a domain (Realm) on the login window.",
53904 "optional" : 1,
53905 "type" : "string"
53906 },
53907 "realm" : {
53908 "type" : "string"
53909 },
53910 "tfa" : {
53911 "description" : "Two-factor authentication provider.",
53912 "enum" : [
53913 "yubico",
53914 "oath"
53915 ],
53916 "optional" : 1,
53917 "type" : "string"
53918 },
53919 "type" : {
53920 "type" : "string"
53921 }
53922 },
53923 "type" : "object"
53924 },
53925 "links" : [
53926 {
53927 "href" : "{realm}",
53928 "rel" : "child"
53929 }
53930 ],
53931 "type" : "array"
53932 }
53933 },
53934 "POST" : {
53935 "allowtoken" : 1,
53936 "description" : "Add an authentication server.",
53937 "method" : "POST",
53938 "name" : "create",
53939 "parameters" : {
53940 "additionalProperties" : 0,
53941 "properties" : {
53942 "acr-values" : {
53943 "description" : "Specifies the Authentication Context Class Reference values that theAuthorization Server is being requested to use for the Auth Request.",
53944 "optional" : 1,
53945 "pattern" : "^[^\\x00-\\x1F\\x7F <>#\"]*$",
53946 "type" : "string"
53947 },
53948 "autocreate" : {
53949 "default" : 0,
53950 "description" : "Automatically create users if they do not exist.",
53951 "optional" : 1,
53952 "type" : "boolean",
53953 "typetext" : "<boolean>"
53954 },
53955 "base_dn" : {
53956 "description" : "LDAP base domain name",
53957 "maxLength" : 256,
53958 "optional" : 1,
53959 "type" : "string",
53960 "typetext" : "<string>"
53961 },
53962 "bind_dn" : {
53963 "description" : "LDAP bind domain name",
53964 "maxLength" : 256,
53965 "optional" : 1,
53966 "type" : "string",
53967 "typetext" : "<string>"
53968 },
53969 "capath" : {
53970 "default" : "/etc/ssl/certs",
53971 "description" : "Path to the CA certificate store",
53972 "optional" : 1,
53973 "type" : "string",
53974 "typetext" : "<string>"
53975 },
53976 "case-sensitive" : {
53977 "default" : 1,
53978 "description" : "username is case-sensitive",
53979 "optional" : 1,
53980 "type" : "boolean",
53981 "typetext" : "<boolean>"
53982 },
53983 "cert" : {
53984 "description" : "Path to the client certificate",
53985 "optional" : 1,
53986 "type" : "string",
53987 "typetext" : "<string>"
53988 },
53989 "certkey" : {
53990 "description" : "Path to the client certificate key",
53991 "optional" : 1,
53992 "type" : "string",
53993 "typetext" : "<string>"
53994 },
53995 "check-connection" : {
53996 "default" : 0,
53997 "description" : "Check bind connection to the server.",
53998 "optional" : 1,
53999 "type" : "boolean",
54000 "typetext" : "<boolean>"
54001 },
54002 "client-id" : {
54003 "description" : "OpenID Client ID",
54004 "maxLength" : 256,
54005 "optional" : 1,
54006 "type" : "string",
54007 "typetext" : "<string>"
54008 },
54009 "client-key" : {
54010 "description" : "OpenID Client Key",
54011 "maxLength" : 256,
54012 "optional" : 1,
54013 "type" : "string",
54014 "typetext" : "<string>"
54015 },
54016 "comment" : {
54017 "description" : "Description.",
54018 "maxLength" : 4096,
54019 "optional" : 1,
54020 "type" : "string",
54021 "typetext" : "<string>"
54022 },
54023 "default" : {
54024 "description" : "Use this as default realm",
54025 "optional" : 1,
54026 "type" : "boolean",
54027 "typetext" : "<boolean>"
54028 },
54029 "domain" : {
54030 "description" : "AD domain name",
54031 "maxLength" : 256,
54032 "optional" : 1,
54033 "pattern" : "\\S+",
54034 "type" : "string"
54035 },
54036 "filter" : {
54037 "description" : "LDAP filter for user sync.",
54038 "maxLength" : 2048,
54039 "optional" : 1,
54040 "type" : "string",
54041 "typetext" : "<string>"
54042 },
54043 "group_classes" : {
54044 "default" : "groupOfNames, group, univentionGroup, ipausergroup",
54045 "description" : "The objectclasses for groups.",
54046 "format" : "ldap-simple-attr-list",
54047 "optional" : 1,
54048 "type" : "string",
54049 "typetext" : "<string>"
54050 },
54051 "group_dn" : {
54052 "description" : "LDAP base domain name for group sync. If not set, the base_dn will be used.",
54053 "maxLength" : 256,
54054 "optional" : 1,
54055 "type" : "string",
54056 "typetext" : "<string>"
54057 },
54058 "group_filter" : {
54059 "description" : "LDAP filter for group sync.",
54060 "maxLength" : 2048,
54061 "optional" : 1,
54062 "type" : "string",
54063 "typetext" : "<string>"
54064 },
54065 "group_name_attr" : {
54066 "description" : "LDAP attribute representing a groups name. If not set or found, the first value of the DN will be used as name.",
54067 "format" : "ldap-simple-attr",
54068 "maxLength" : 256,
54069 "optional" : 1,
54070 "type" : "string",
54071 "typetext" : "<string>"
54072 },
54073 "issuer-url" : {
54074 "description" : "OpenID Issuer Url",
54075 "maxLength" : 256,
54076 "optional" : 1,
54077 "type" : "string",
54078 "typetext" : "<string>"
54079 },
54080 "mode" : {
54081 "default" : "ldap",
54082 "description" : "LDAP protocol mode.",
54083 "enum" : [
54084 "ldap",
54085 "ldaps",
54086 "ldap+starttls"
54087 ],
54088 "optional" : 1,
54089 "type" : "string"
54090 },
54091 "password" : {
54092 "description" : "LDAP bind password. Will be stored in '/etc/pve/priv/realm/<REALM>.pw'.",
54093 "optional" : 1,
54094 "type" : "string",
54095 "typetext" : "<string>"
54096 },
54097 "port" : {
54098 "description" : "Server port.",
54099 "maximum" : 65535,
54100 "minimum" : 1,
54101 "optional" : 1,
54102 "type" : "integer",
54103 "typetext" : "<integer> (1 - 65535)"
54104 },
54105 "prompt" : {
54106 "description" : "Specifies whether the Authorization Server prompts the End-User for reauthentication and consent.",
54107 "optional" : 1,
54108 "pattern" : "(?:none|login|consent|select_account|\\S+)",
54109 "type" : "string"
54110 },
54111 "realm" : {
54112 "description" : "Authentication domain ID",
54113 "format" : "pve-realm",
54114 "maxLength" : 32,
54115 "type" : "string",
54116 "typetext" : "<string>"
54117 },
54118 "scopes" : {
54119 "default" : "email profile",
54120 "description" : "Specifies the scopes (user details) that should be authorized and returned, for example 'email' or 'profile'.",
54121 "optional" : 1,
54122 "type" : "string",
54123 "typetext" : "<string>"
54124 },
54125 "secure" : {
54126 "description" : "Use secure LDAPS protocol. DEPRECATED: use 'mode' instead.",
54127 "optional" : 1,
54128 "type" : "boolean",
54129 "typetext" : "<boolean>"
54130 },
54131 "server1" : {
54132 "description" : "Server IP address (or DNS name)",
54133 "format" : "address",
54134 "maxLength" : 256,
54135 "optional" : 1,
54136 "type" : "string",
54137 "typetext" : "<string>"
54138 },
54139 "server2" : {
54140 "description" : "Fallback Server IP address (or DNS name)",
54141 "format" : "address",
54142 "maxLength" : 256,
54143 "optional" : 1,
54144 "type" : "string",
54145 "typetext" : "<string>"
54146 },
54147 "sslversion" : {
54148 "description" : "LDAPS TLS/SSL version. It's not recommended to use version older than 1.2!",
54149 "enum" : [
54150 "tlsv1",
54151 "tlsv1_1",
54152 "tlsv1_2",
54153 "tlsv1_3"
54154 ],
54155 "optional" : 1,
54156 "type" : "string"
54157 },
54158 "sync-defaults-options" : {
54159 "description" : "The default options for behavior of synchronizations.",
54160 "format" : "realm-sync-options",
54161 "optional" : 1,
54162 "type" : "string",
54163 "typetext" : "[enable-new=<1|0>] [,full=<1|0>] [,purge=<1|0>] [,remove-vanished=([acl];[properties];[entry])|none] [,scope=<users|groups|both>]"
54164 },
54165 "sync_attributes" : {
54166 "description" : "Comma separated list of key=value pairs for specifying which LDAP attributes map to which PVE user field. For example, to map the LDAP attribute 'mail' to PVEs 'email', write 'email=mail'. By default, each PVE user field is represented by an LDAP attribute of the same name.",
54167 "optional" : 1,
54168 "pattern" : "\\w+=[^,]+(,\\s*\\w+=[^,]+)*",
54169 "type" : "string"
54170 },
54171 "tfa" : {
54172 "description" : "Use Two-factor authentication.",
54173 "format" : "pve-tfa-config",
54174 "maxLength" : 128,
54175 "optional" : 1,
54176 "type" : "string",
54177 "typetext" : "type=<TFATYPE> [,digits=<COUNT>] [,id=<ID>] [,key=<KEY>] [,step=<SECONDS>] [,url=<URL>]"
54178 },
54179 "type" : {
54180 "description" : "Realm type.",
54181 "enum" : [
54182 "ad",
54183 "ldap",
54184 "openid",
54185 "pam",
54186 "pve"
54187 ],
54188 "type" : "string"
54189 },
54190 "user_attr" : {
54191 "description" : "LDAP user attribute name",
54192 "maxLength" : 256,
54193 "optional" : 1,
54194 "pattern" : "\\S{2,}",
54195 "type" : "string"
54196 },
54197 "user_classes" : {
54198 "default" : "inetorgperson, posixaccount, person, user",
54199 "description" : "The objectclasses for users.",
54200 "format" : "ldap-simple-attr-list",
54201 "optional" : 1,
54202 "type" : "string",
54203 "typetext" : "<string>"
54204 },
54205 "username-claim" : {
54206 "description" : "OpenID claim used to generate the unique username.",
54207 "optional" : 1,
54208 "type" : "string",
54209 "typetext" : "<string>"
54210 },
54211 "verify" : {
54212 "default" : 0,
54213 "description" : "Verify the server's SSL certificate",
54214 "optional" : 1,
54215 "type" : "boolean",
54216 "typetext" : "<boolean>"
54217 }
54218 },
54219 "type" : "object"
54220 },
54221 "permissions" : {
54222 "check" : [
54223 "perm",
54224 "/access/realm",
54225 [
54226 "Realm.Allocate"
54227 ]
54228 ]
54229 },
54230 "protected" : 1,
54231 "returns" : {
54232 "type" : "null"
54233 }
54234 }
54235 },
54236 "leaf" : 0,
54237 "path" : "/access/domains",
54238 "text" : "domains"
54239 },
54240 {
54241 "children" : [
54242 {
54243 "info" : {
54244 "POST" : {
54245 "allowtoken" : 1,
54246 "description" : "Get the OpenId Authorization Url for the specified realm.",
54247 "method" : "POST",
54248 "name" : "auth_url",
54249 "parameters" : {
54250 "additionalProperties" : 0,
54251 "properties" : {
54252 "realm" : {
54253 "description" : "Authentication domain ID",
54254 "format" : "pve-realm",
54255 "maxLength" : 32,
54256 "type" : "string",
54257 "typetext" : "<string>"
54258 },
54259 "redirect-url" : {
54260 "description" : "Redirection Url. The client should set this to the used server url (location.origin).",
54261 "maxLength" : 255,
54262 "type" : "string",
54263 "typetext" : "<string>"
54264 }
54265 }
54266 },
54267 "permissions" : {
54268 "user" : "world"
54269 },
54270 "protected" : 1,
54271 "returns" : {
54272 "description" : "Redirection URL.",
54273 "type" : "string"
54274 }
54275 }
54276 },
54277 "leaf" : 1,
54278 "path" : "/access/openid/auth-url",
54279 "text" : "auth-url"
54280 },
54281 {
54282 "info" : {
54283 "POST" : {
54284 "allowtoken" : 1,
54285 "description" : " Verify OpenID authorization code and create a ticket.",
54286 "method" : "POST",
54287 "name" : "login",
54288 "parameters" : {
54289 "additionalProperties" : 0,
54290 "properties" : {
54291 "code" : {
54292 "description" : "OpenId authorization code.",
54293 "maxLength" : 4096,
54294 "type" : "string",
54295 "typetext" : "<string>"
54296 },
54297 "redirect-url" : {
54298 "description" : "Redirection Url. The client should set this to the used server url (location.origin).",
54299 "maxLength" : 255,
54300 "type" : "string",
54301 "typetext" : "<string>"
54302 },
54303 "state" : {
54304 "description" : "OpenId state.",
54305 "maxLength" : 1024,
54306 "type" : "string",
54307 "typetext" : "<string>"
54308 }
54309 }
54310 },
54311 "permissions" : {
54312 "user" : "world"
54313 },
54314 "protected" : 1,
54315 "returns" : {
54316 "properties" : {
54317 "CSRFPreventionToken" : {
54318 "type" : "string"
54319 },
54320 "cap" : {
54321 "type" : "object"
54322 },
54323 "clustername" : {
54324 "optional" : 1,
54325 "type" : "string"
54326 },
54327 "ticket" : {
54328 "type" : "string"
54329 },
54330 "username" : {
54331 "type" : "string"
54332 }
54333 }
54334 }
54335 }
54336 },
54337 "leaf" : 1,
54338 "path" : "/access/openid/login",
54339 "text" : "login"
54340 }
54341 ],
54342 "info" : {
54343 "GET" : {
54344 "allowtoken" : 1,
54345 "description" : "Directory index.",
54346 "method" : "GET",
54347 "name" : "index",
54348 "parameters" : {
54349 "additionalProperties" : 0
54350 },
54351 "permissions" : {
54352 "user" : "all"
54353 },
54354 "returns" : {
54355 "items" : {
54356 "properties" : {
54357 "subdir" : {
54358 "type" : "string"
54359 }
54360 },
54361 "type" : "object"
54362 },
54363 "links" : [
54364 {
54365 "href" : "{subdir}",
54366 "rel" : "child"
54367 }
54368 ],
54369 "type" : "array"
54370 }
54371 }
54372 },
54373 "leaf" : 0,
54374 "path" : "/access/openid",
54375 "text" : "openid"
54376 },
54377 {
54378 "children" : [
54379 {
54380 "children" : [
54381 {
54382 "info" : {
54383 "DELETE" : {
54384 "allowtoken" : 0,
54385 "description" : "Delete a TFA entry by ID.",
54386 "method" : "DELETE",
54387 "name" : "delete_tfa",
54388 "parameters" : {
54389 "additionalProperties" : 0,
54390 "properties" : {
54391 "id" : {
54392 "description" : "A TFA entry id.",
54393 "type" : "string",
54394 "typetext" : "<string>"
54395 },
54396 "password" : {
54397 "description" : "The current password of the user performing the change.",
54398 "maxLength" : 64,
54399 "minLength" : 5,
54400 "optional" : 1,
54401 "type" : "string",
54402 "typetext" : "<string>"
54403 },
54404 "userid" : {
54405 "description" : "Full User ID, in the `name@realm` format.",
54406 "format" : "pve-userid",
54407 "maxLength" : 64,
54408 "type" : "string",
54409 "typetext" : "<string>"
54410 }
54411 }
54412 },
54413 "permissions" : {
54414 "check" : [
54415 "or",
54416 [
54417 "userid-param",
54418 "self"
54419 ],
54420 [
54421 "userid-group",
54422 [
54423 "User.Modify"
54424 ]
54425 ]
54426 ]
54427 },
54428 "protected" : 1,
54429 "returns" : {
54430 "type" : "null"
54431 }
54432 },
54433 "GET" : {
54434 "allowtoken" : 1,
54435 "description" : "Fetch a requested TFA entry if present.",
54436 "method" : "GET",
54437 "name" : "get_tfa_entry",
54438 "parameters" : {
54439 "additionalProperties" : 0,
54440 "properties" : {
54441 "id" : {
54442 "description" : "A TFA entry id.",
54443 "type" : "string",
54444 "typetext" : "<string>"
54445 },
54446 "userid" : {
54447 "description" : "Full User ID, in the `name@realm` format.",
54448 "format" : "pve-userid",
54449 "maxLength" : 64,
54450 "type" : "string",
54451 "typetext" : "<string>"
54452 }
54453 }
54454 },
54455 "permissions" : {
54456 "check" : [
54457 "or",
54458 [
54459 "userid-param",
54460 "self"
54461 ],
54462 [
54463 "userid-group",
54464 [
54465 "User.Modify",
54466 "Sys.Audit"
54467 ]
54468 ]
54469 ]
54470 },
54471 "protected" : 1,
54472 "returns" : {
54473 "description" : "TFA Entry.",
54474 "properties" : {
54475 "created" : {
54476 "description" : "Creation time of this entry as unix epoch.",
54477 "type" : "integer"
54478 },
54479 "description" : {
54480 "description" : "User chosen description for this entry.",
54481 "type" : "string"
54482 },
54483 "enable" : {
54484 "default" : 1,
54485 "description" : "Whether this TFA entry is currently enabled.",
54486 "optional" : 1,
54487 "type" : "boolean"
54488 },
54489 "id" : {
54490 "description" : "The id used to reference this entry.",
54491 "type" : "string"
54492 },
54493 "type" : {
54494 "description" : "TFA Entry Type.",
54495 "enum" : [
54496 "totp",
54497 "u2f",
54498 "webauthn",
54499 "recovery",
54500 "yubico"
54501 ],
54502 "type" : "string"
54503 }
54504 },
54505 "type" : "object"
54506 }
54507 },
54508 "PUT" : {
54509 "allowtoken" : 0,
54510 "description" : "Add a TFA entry for a user.",
54511 "method" : "PUT",
54512 "name" : "update_tfa_entry",
54513 "parameters" : {
54514 "additionalProperties" : 0,
54515 "properties" : {
54516 "description" : {
54517 "description" : "A description to distinguish multiple entries from one another",
54518 "maxLength" : 255,
54519 "optional" : 1,
54520 "type" : "string",
54521 "typetext" : "<string>"
54522 },
54523 "enable" : {
54524 "description" : "Whether the entry should be enabled for login.",
54525 "optional" : 1,
54526 "type" : "boolean",
54527 "typetext" : "<boolean>"
54528 },
54529 "id" : {
54530 "description" : "A TFA entry id.",
54531 "type" : "string",
54532 "typetext" : "<string>"
54533 },
54534 "password" : {
54535 "description" : "The current password of the user performing the change.",
54536 "maxLength" : 64,
54537 "minLength" : 5,
54538 "optional" : 1,
54539 "type" : "string",
54540 "typetext" : "<string>"
54541 },
54542 "userid" : {
54543 "description" : "Full User ID, in the `name@realm` format.",
54544 "format" : "pve-userid",
54545 "maxLength" : 64,
54546 "type" : "string",
54547 "typetext" : "<string>"
54548 }
54549 }
54550 },
54551 "permissions" : {
54552 "check" : [
54553 "or",
54554 [
54555 "userid-param",
54556 "self"
54557 ],
54558 [
54559 "userid-group",
54560 [
54561 "User.Modify"
54562 ]
54563 ]
54564 ]
54565 },
54566 "protected" : 1,
54567 "returns" : {
54568 "type" : "null"
54569 }
54570 }
54571 },
54572 "leaf" : 1,
54573 "path" : "/access/tfa/{userid}/{id}",
54574 "text" : "{id}"
54575 }
54576 ],
54577 "info" : {
54578 "GET" : {
54579 "allowtoken" : 1,
54580 "description" : "List TFA configurations of users.",
54581 "method" : "GET",
54582 "name" : "list_user_tfa",
54583 "parameters" : {
54584 "additionalProperties" : 0,
54585 "properties" : {
54586 "userid" : {
54587 "description" : "Full User ID, in the `name@realm` format.",
54588 "format" : "pve-userid",
54589 "maxLength" : 64,
54590 "type" : "string",
54591 "typetext" : "<string>"
54592 }
54593 }
54594 },
54595 "permissions" : {
54596 "check" : [
54597 "or",
54598 [
54599 "userid-param",
54600 "self"
54601 ],
54602 [
54603 "userid-group",
54604 [
54605 "User.Modify",
54606 "Sys.Audit"
54607 ]
54608 ]
54609 ]
54610 },
54611 "protected" : 1,
54612 "returns" : {
54613 "description" : "A list of the user's TFA entries.",
54614 "items" : {
54615 "description" : "TFA Entry.",
54616 "properties" : {
54617 "created" : {
54618 "description" : "Creation time of this entry as unix epoch.",
54619 "type" : "integer"
54620 },
54621 "description" : {
54622 "description" : "User chosen description for this entry.",
54623 "type" : "string"
54624 },
54625 "enable" : {
54626 "default" : 1,
54627 "description" : "Whether this TFA entry is currently enabled.",
54628 "optional" : 1,
54629 "type" : "boolean"
54630 },
54631 "id" : {
54632 "description" : "The id used to reference this entry.",
54633 "type" : "string"
54634 },
54635 "type" : {
54636 "description" : "TFA Entry Type.",
54637 "enum" : [
54638 "totp",
54639 "u2f",
54640 "webauthn",
54641 "recovery",
54642 "yubico"
54643 ],
54644 "type" : "string"
54645 }
54646 },
54647 "type" : "object"
54648 },
54649 "links" : [
54650 {
54651 "href" : "{id}",
54652 "rel" : "child"
54653 }
54654 ],
54655 "type" : "array"
54656 }
54657 },
54658 "POST" : {
54659 "allowtoken" : 0,
54660 "description" : "Add a TFA entry for a user.",
54661 "method" : "POST",
54662 "name" : "add_tfa_entry",
54663 "parameters" : {
54664 "additionalProperties" : 0,
54665 "properties" : {
54666 "challenge" : {
54667 "description" : "When responding to a u2f challenge: the original challenge string",
54668 "optional" : 1,
54669 "type" : "string",
54670 "typetext" : "<string>"
54671 },
54672 "description" : {
54673 "description" : "A description to distinguish multiple entries from one another",
54674 "maxLength" : 255,
54675 "optional" : 1,
54676 "type" : "string",
54677 "typetext" : "<string>"
54678 },
54679 "password" : {
54680 "description" : "The current password of the user performing the change.",
54681 "maxLength" : 64,
54682 "minLength" : 5,
54683 "optional" : 1,
54684 "type" : "string",
54685 "typetext" : "<string>"
54686 },
54687 "totp" : {
54688 "description" : "A totp URI.",
54689 "optional" : 1,
54690 "type" : "string",
54691 "typetext" : "<string>"
54692 },
54693 "type" : {
54694 "description" : "TFA Entry Type.",
54695 "enum" : [
54696 "totp",
54697 "u2f",
54698 "webauthn",
54699 "recovery",
54700 "yubico"
54701 ],
54702 "type" : "string"
54703 },
54704 "userid" : {
54705 "description" : "Full User ID, in the `name@realm` format.",
54706 "format" : "pve-userid",
54707 "maxLength" : 64,
54708 "type" : "string",
54709 "typetext" : "<string>"
54710 },
54711 "value" : {
54712 "description" : "The current value for the provided totp URI, or a Webauthn/U2F challenge response",
54713 "optional" : 1,
54714 "type" : "string",
54715 "typetext" : "<string>"
54716 }
54717 }
54718 },
54719 "permissions" : {
54720 "check" : [
54721 "or",
54722 [
54723 "userid-param",
54724 "self"
54725 ],
54726 [
54727 "userid-group",
54728 [
54729 "User.Modify"
54730 ]
54731 ]
54732 ]
54733 },
54734 "protected" : 1,
54735 "returns" : {
54736 "properties" : {
54737 "challenge" : {
54738 "description" : "When adding u2f entries, this contains a challenge the user must respond to in order to finish the registration.",
54739 "optional" : 1,
54740 "type" : "string"
54741 },
54742 "id" : {
54743 "description" : "The id of a newly added TFA entry.",
54744 "type" : "string"
54745 },
54746 "recovery" : {
54747 "description" : "When adding recovery codes, this contains the list of codes to be displayed to the user",
54748 "items" : {
54749 "description" : "A recovery entry.",
54750 "type" : "string"
54751 },
54752 "optional" : 1,
54753 "type" : "array"
54754 }
54755 },
54756 "type" : "object"
54757 }
54758 }
54759 },
54760 "leaf" : 0,
54761 "path" : "/access/tfa/{userid}",
54762 "text" : "{userid}"
54763 }
54764 ],
54765 "info" : {
54766 "GET" : {
54767 "allowtoken" : 1,
54768 "description" : "List TFA configurations of users.",
54769 "method" : "GET",
54770 "name" : "list_tfa",
54771 "parameters" : {
54772 "additionalProperties" : 0
54773 },
54774 "permissions" : {
54775 "description" : "Returns all or just the logged-in user, depending on privileges.",
54776 "user" : "all"
54777 },
54778 "protected" : 1,
54779 "returns" : {
54780 "description" : "The list tuples of user and TFA entries.",
54781 "items" : {
54782 "properties" : {
54783 "entries" : {
54784 "items" : {
54785 "description" : "TFA Entry.",
54786 "properties" : {
54787 "created" : {
54788 "description" : "Creation time of this entry as unix epoch.",
54789 "type" : "integer"
54790 },
54791 "description" : {
54792 "description" : "User chosen description for this entry.",
54793 "type" : "string"
54794 },
54795 "enable" : {
54796 "default" : 1,
54797 "description" : "Whether this TFA entry is currently enabled.",
54798 "optional" : 1,
54799 "type" : "boolean"
54800 },
54801 "id" : {
54802 "description" : "The id used to reference this entry.",
54803 "type" : "string"
54804 },
54805 "type" : {
54806 "description" : "TFA Entry Type.",
54807 "enum" : [
54808 "totp",
54809 "u2f",
54810 "webauthn",
54811 "recovery",
54812 "yubico"
54813 ],
54814 "type" : "string"
54815 }
54816 },
54817 "type" : "object"
54818 },
54819 "type" : "array"
54820 },
54821 "tfa-locked-until" : {
54822 "description" : "Contains a timestamp until when a user is locked out of 2nd factors.",
54823 "optional" : 1,
54824 "type" : "integer"
54825 },
54826 "totp-locked" : {
54827 "description" : "True if the user is currently locked out of TOTP factors.",
54828 "optional" : 1,
54829 "type" : "boolean"
54830 },
54831 "userid" : {
54832 "description" : "User this entry belongs to.",
54833 "type" : "string"
54834 }
54835 },
54836 "type" : "object"
54837 },
54838 "links" : [
54839 {
54840 "href" : "{userid}",
54841 "rel" : "child"
54842 }
54843 ],
54844 "type" : "array"
54845 }
54846 }
54847 },
54848 "leaf" : 0,
54849 "path" : "/access/tfa",
54850 "text" : "tfa"
54851 },
54852 {
54853 "info" : {
54854 "GET" : {
54855 "allowtoken" : 1,
54856 "description" : "Dummy. Useful for formatters which want to provide a login page.",
54857 "method" : "GET",
54858 "name" : "get_ticket",
54859 "parameters" : {
54860 "additionalProperties" : 0
54861 },
54862 "permissions" : {
54863 "user" : "world"
54864 },
54865 "returns" : {
54866 "type" : "null"
54867 }
54868 },
54869 "POST" : {
54870 "allowtoken" : 0,
54871 "description" : "Create or verify authentication ticket.",
54872 "method" : "POST",
54873 "name" : "create_ticket",
54874 "parameters" : {
54875 "additionalProperties" : 0,
54876 "properties" : {
54877 "new-format" : {
54878 "default" : 1,
54879 "description" : "This parameter is now ignored and assumed to be 1.",
54880 "optional" : 1,
54881 "type" : "boolean",
54882 "typetext" : "<boolean>"
54883 },
54884 "otp" : {
54885 "description" : "One-time password for Two-factor authentication.",
54886 "optional" : 1,
54887 "type" : "string",
54888 "typetext" : "<string>"
54889 },
54890 "password" : {
54891 "description" : "The secret password. This can also be a valid ticket.",
54892 "type" : "string",
54893 "typetext" : "<string>"
54894 },
54895 "path" : {
54896 "description" : "Verify ticket, and check if user have access 'privs' on 'path'",
54897 "maxLength" : 64,
54898 "optional" : 1,
54899 "requires" : "privs",
54900 "type" : "string",
54901 "typetext" : "<string>"
54902 },
54903 "privs" : {
54904 "description" : "Verify ticket, and check if user have access 'privs' on 'path'",
54905 "format" : "pve-priv-list",
54906 "maxLength" : 64,
54907 "optional" : 1,
54908 "requires" : "path",
54909 "type" : "string",
54910 "typetext" : "<string>"
54911 },
54912 "realm" : {
54913 "description" : "You can optionally pass the realm using this parameter. Normally the realm is simply added to the username <username>@<relam>.",
54914 "format" : "pve-realm",
54915 "maxLength" : 32,
54916 "optional" : 1,
54917 "type" : "string",
54918 "typetext" : "<string>"
54919 },
54920 "tfa-challenge" : {
54921 "description" : "The signed TFA challenge string the user wants to respond to.",
54922 "optional" : 1,
54923 "type" : "string",
54924 "typetext" : "<string>"
54925 },
54926 "username" : {
54927 "description" : "User name",
54928 "maxLength" : 64,
54929 "type" : "string",
54930 "typetext" : "<string>"
54931 }
54932 }
54933 },
54934 "permissions" : {
54935 "description" : "You need to pass valid credientials.",
54936 "user" : "world"
54937 },
54938 "protected" : 1,
54939 "returns" : {
54940 "properties" : {
54941 "CSRFPreventionToken" : {
54942 "optional" : 1,
54943 "type" : "string"
54944 },
54945 "clustername" : {
54946 "optional" : 1,
54947 "type" : "string"
54948 },
54949 "ticket" : {
54950 "optional" : 1,
54951 "type" : "string"
54952 },
54953 "username" : {
54954 "type" : "string"
54955 }
54956 },
54957 "type" : "object"
54958 }
54959 }
54960 },
54961 "leaf" : 1,
54962 "path" : "/access/ticket",
54963 "text" : "ticket"
54964 },
54965 {
54966 "info" : {
54967 "PUT" : {
54968 "allowtoken" : 0,
54969 "description" : "Change user password.",
54970 "method" : "PUT",
54971 "name" : "change_password",
54972 "parameters" : {
54973 "additionalProperties" : 0,
54974 "properties" : {
54975 "confirmation-password" : {
54976 "description" : "The current password of the user performing the change.",
54977 "maxLength" : 64,
54978 "minLength" : 5,
54979 "optional" : 1,
54980 "type" : "string",
54981 "typetext" : "<string>"
54982 },
54983 "password" : {
54984 "description" : "The new password.",
54985 "maxLength" : 64,
54986 "minLength" : 5,
54987 "type" : "string",
54988 "typetext" : "<string>"
54989 },
54990 "userid" : {
54991 "description" : "Full User ID, in the `name@realm` format.",
54992 "format" : "pve-userid",
54993 "maxLength" : 64,
54994 "type" : "string",
54995 "typetext" : "<string>"
54996 }
54997 }
54998 },
54999 "permissions" : {
55000 "check" : [
55001 "or",
55002 [
55003 "userid-param",
55004 "self"
55005 ],
55006 [
55007 "and",
55008 [
55009 "userid-param",
55010 "Realm.AllocateUser"
55011 ],
55012 [
55013 "userid-group",
55014 [
55015 "User.Modify"
55016 ]
55017 ]
55018 ]
55019 ],
55020 "description" : "Each user is allowed to change his own password. A user can change the password of another user if he has 'Realm.AllocateUser' (on the realm of user <userid>) and 'User.Modify' permission on /access/groups/<group> on a group where user <userid> is member of."
55021 },
55022 "protected" : 1,
55023 "returns" : {
55024 "type" : "null"
55025 }
55026 }
55027 },
55028 "leaf" : 1,
55029 "path" : "/access/password",
55030 "text" : "password"
55031 },
55032 {
55033 "info" : {
55034 "GET" : {
55035 "allowtoken" : 1,
55036 "description" : "Retrieve effective permissions of given user/token.",
55037 "method" : "GET",
55038 "name" : "permissions",
55039 "parameters" : {
55040 "additionalProperties" : 0,
55041 "properties" : {
55042 "path" : {
55043 "description" : "Only dump this specific path, not the whole tree.",
55044 "optional" : 1,
55045 "type" : "string",
55046 "typetext" : "<string>"
55047 },
55048 "userid" : {
55049 "description" : "User ID or full API token ID",
55050 "optional" : 1,
55051 "pattern" : "(?^:^(?^:[^\\s:/]+)\\@(?^:[A-Za-z][A-Za-z0-9\\.\\-_]+)(?:!(?^:[A-Za-z][A-Za-z0-9\\.\\-_]+))?$)",
55052 "type" : "string"
55053 }
55054 }
55055 },
55056 "permissions" : {
55057 "description" : "Each user/token is allowed to dump their own permissions. A user can dump the permissions of another user if they have 'Sys.Audit' permission on /access.",
55058 "user" : "all"
55059 },
55060 "returns" : {
55061 "description" : "Map of \"path\" => (Map of \"privilege\" => \"propagate boolean\").",
55062 "type" : "object"
55063 }
55064 }
55065 },
55066 "leaf" : 1,
55067 "path" : "/access/permissions",
55068 "text" : "permissions"
55069 }
55070 ],
55071 "info" : {
55072 "GET" : {
55073 "allowtoken" : 1,
55074 "description" : "Directory index.",
55075 "method" : "GET",
55076 "name" : "index",
55077 "parameters" : {
55078 "additionalProperties" : 0
55079 },
55080 "permissions" : {
55081 "user" : "all"
55082 },
55083 "returns" : {
55084 "items" : {
55085 "properties" : {
55086 "subdir" : {
55087 "type" : "string"
55088 }
55089 },
55090 "type" : "object"
55091 },
55092 "links" : [
55093 {
55094 "href" : "{subdir}",
55095 "rel" : "child"
55096 }
55097 ],
55098 "type" : "array"
55099 }
55100 }
55101 },
55102 "leaf" : 0,
55103 "path" : "/access",
55104 "text" : "access"
55105 },
55106 {
55107 "children" : [
55108 {
55109 "info" : {
55110 "DELETE" : {
55111 "allowtoken" : 1,
55112 "description" : "Delete pool (deprecated, no support for nested pools, use 'DELETE /pools/?poolid={poolid}').",
55113 "method" : "DELETE",
55114 "name" : "delete_pool_deprecated",
55115 "parameters" : {
55116 "additionalProperties" : 0,
55117 "properties" : {
55118 "poolid" : {
55119 "format" : "pve-poolid",
55120 "type" : "string",
55121 "typetext" : "<string>"
55122 }
55123 }
55124 },
55125 "permissions" : {
55126 "check" : [
55127 "perm",
55128 "/pool/{poolid}",
55129 [
55130 "Pool.Allocate"
55131 ]
55132 ],
55133 "description" : "You can only delete empty pools (no members)."
55134 },
55135 "protected" : 1,
55136 "returns" : {
55137 "type" : "null"
55138 }
55139 },
55140 "GET" : {
55141 "allowtoken" : 1,
55142 "description" : "Get pool configuration (deprecated, no support for nested pools, use 'GET /pools/?poolid={poolid}').",
55143 "method" : "GET",
55144 "name" : "read_pool",
55145 "parameters" : {
55146 "additionalProperties" : 0,
55147 "properties" : {
55148 "poolid" : {
55149 "format" : "pve-poolid",
55150 "type" : "string",
55151 "typetext" : "<string>"
55152 },
55153 "type" : {
55154 "enum" : [
55155 "qemu",
55156 "lxc",
55157 "storage"
55158 ],
55159 "optional" : 1,
55160 "type" : "string"
55161 }
55162 }
55163 },
55164 "permissions" : {
55165 "check" : [
55166 "perm",
55167 "/pool/{poolid}",
55168 [
55169 "Pool.Audit"
55170 ]
55171 ]
55172 },
55173 "returns" : {
55174 "additionalProperties" : 0,
55175 "properties" : {
55176 "comment" : {
55177 "optional" : 1,
55178 "type" : "string"
55179 },
55180 "members" : {
55181 "items" : {
55182 "additionalProperties" : 1,
55183 "properties" : {
55184 "id" : {
55185 "type" : "string"
55186 },
55187 "node" : {
55188 "type" : "string"
55189 },
55190 "storage" : {
55191 "optional" : 1,
55192 "type" : "string"
55193 },
55194 "type" : {
55195 "enum" : [
55196 "qemu",
55197 "lxc",
55198 "openvz",
55199 "storage"
55200 ],
55201 "type" : "string"
55202 },
55203 "vmid" : {
55204 "optional" : 1,
55205 "type" : "integer"
55206 }
55207 },
55208 "type" : "object"
55209 },
55210 "type" : "array"
55211 }
55212 },
55213 "type" : "object"
55214 }
55215 },
55216 "PUT" : {
55217 "allowtoken" : 1,
55218 "description" : "Update pool data (deprecated, no support for nested pools - use 'PUT /pools/?poolid={poolid}' instead).",
55219 "method" : "PUT",
55220 "name" : "update_pool_deprecated",
55221 "parameters" : {
55222 "additionalProperties" : 0,
55223 "properties" : {
55224 "allow-move" : {
55225 "default" : 0,
55226 "description" : "Allow adding a guest even if already in another pool. The guest will be removed from its current pool and added to this one.",
55227 "optional" : 1,
55228 "type" : "boolean",
55229 "typetext" : "<boolean>"
55230 },
55231 "comment" : {
55232 "optional" : 1,
55233 "type" : "string",
55234 "typetext" : "<string>"
55235 },
55236 "delete" : {
55237 "default" : 0,
55238 "description" : "Remove the passed VMIDs and/or storage IDs instead of adding them.",
55239 "optional" : 1,
55240 "type" : "boolean",
55241 "typetext" : "<boolean>"
55242 },
55243 "poolid" : {
55244 "format" : "pve-poolid",
55245 "type" : "string",
55246 "typetext" : "<string>"
55247 },
55248 "storage" : {
55249 "description" : "List of storage IDs to add or remove from this pool.",
55250 "format" : "pve-storage-id-list",
55251 "optional" : 1,
55252 "type" : "string",
55253 "typetext" : "<string>"
55254 },
55255 "vms" : {
55256 "description" : "List of guest VMIDs to add or remove from this pool.",
55257 "format" : "pve-vmid-list",
55258 "optional" : 1,
55259 "type" : "string",
55260 "typetext" : "<string>"
55261 }
55262 }
55263 },
55264 "permissions" : {
55265 "check" : [
55266 "perm",
55267 "/pool/{poolid}",
55268 [
55269 "Pool.Allocate"
55270 ]
55271 ],
55272 "description" : "You also need the right to modify permissions on any object you add/delete."
55273 },
55274 "protected" : 1,
55275 "returns" : {
55276 "type" : "null"
55277 }
55278 }
55279 },
55280 "leaf" : 1,
55281 "path" : "/pools/{poolid}",
55282 "text" : "{poolid}"
55283 }
55284 ],
55285 "info" : {
55286 "DELETE" : {
55287 "allowtoken" : 1,
55288 "description" : "Delete pool.",
55289 "method" : "DELETE",
55290 "name" : "delete_pool",
55291 "parameters" : {
55292 "additionalProperties" : 0,
55293 "properties" : {
55294 "poolid" : {
55295 "format" : "pve-poolid",
55296 "type" : "string",
55297 "typetext" : "<string>"
55298 }
55299 }
55300 },
55301 "permissions" : {
55302 "check" : [
55303 "perm",
55304 "/pool/{poolid}",
55305 [
55306 "Pool.Allocate"
55307 ]
55308 ],
55309 "description" : "You can only delete empty pools (no members)."
55310 },
55311 "protected" : 1,
55312 "returns" : {
55313 "type" : "null"
55314 }
55315 },
55316 "GET" : {
55317 "allowtoken" : 1,
55318 "description" : "List pools or get pool configuration.",
55319 "method" : "GET",
55320 "name" : "index",
55321 "parameters" : {
55322 "additionalProperties" : 0,
55323 "properties" : {
55324 "poolid" : {
55325 "format" : "pve-poolid",
55326 "optional" : 1,
55327 "type" : "string",
55328 "typetext" : "<string>"
55329 },
55330 "type" : {
55331 "enum" : [
55332 "qemu",
55333 "lxc",
55334 "storage"
55335 ],
55336 "optional" : 1,
55337 "requires" : "poolid",
55338 "type" : "string"
55339 }
55340 }
55341 },
55342 "permissions" : {
55343 "description" : "List all pools where you have Pool.Audit permissions on /pool/<pool>, or the pool specific with {poolid}",
55344 "user" : "all"
55345 },
55346 "returns" : {
55347 "items" : {
55348 "properties" : {
55349 "comment" : {
55350 "optional" : 1,
55351 "type" : "string"
55352 },
55353 "members" : {
55354 "items" : {
55355 "additionalProperties" : 1,
55356 "properties" : {
55357 "id" : {
55358 "type" : "string"
55359 },
55360 "node" : {
55361 "type" : "string"
55362 },
55363 "storage" : {
55364 "optional" : 1,
55365 "type" : "string"
55366 },
55367 "type" : {
55368 "enum" : [
55369 "qemu",
55370 "lxc",
55371 "openvz",
55372 "storage"
55373 ],
55374 "type" : "string"
55375 },
55376 "vmid" : {
55377 "optional" : 1,
55378 "type" : "integer"
55379 }
55380 },
55381 "type" : "object"
55382 },
55383 "optional" : 1,
55384 "type" : "array"
55385 },
55386 "poolid" : {
55387 "type" : "string"
55388 }
55389 },
55390 "type" : "object"
55391 },
55392 "links" : [
55393 {
55394 "href" : "{poolid}",
55395 "rel" : "child"
55396 }
55397 ],
55398 "type" : "array"
55399 }
55400 },
55401 "POST" : {
55402 "allowtoken" : 1,
55403 "description" : "Create new pool.",
55404 "method" : "POST",
55405 "name" : "create_pool",
55406 "parameters" : {
55407 "additionalProperties" : 0,
55408 "properties" : {
55409 "comment" : {
55410 "optional" : 1,
55411 "type" : "string",
55412 "typetext" : "<string>"
55413 },
55414 "poolid" : {
55415 "format" : "pve-poolid",
55416 "type" : "string",
55417 "typetext" : "<string>"
55418 }
55419 }
55420 },
55421 "permissions" : {
55422 "check" : [
55423 "perm",
55424 "/pool/{poolid}",
55425 [
55426 "Pool.Allocate"
55427 ]
55428 ]
55429 },
55430 "protected" : 1,
55431 "returns" : {
55432 "type" : "null"
55433 }
55434 },
55435 "PUT" : {
55436 "allowtoken" : 1,
55437 "description" : "Update pool.",
55438 "method" : "PUT",
55439 "name" : "update_pool",
55440 "parameters" : {
55441 "additionalProperties" : 0,
55442 "properties" : {
55443 "allow-move" : {
55444 "default" : 0,
55445 "description" : "Allow adding a guest even if already in another pool. The guest will be removed from its current pool and added to this one.",
55446 "optional" : 1,
55447 "type" : "boolean",
55448 "typetext" : "<boolean>"
55449 },
55450 "comment" : {
55451 "optional" : 1,
55452 "type" : "string",
55453 "typetext" : "<string>"
55454 },
55455 "delete" : {
55456 "default" : 0,
55457 "description" : "Remove the passed VMIDs and/or storage IDs instead of adding them.",
55458 "optional" : 1,
55459 "type" : "boolean",
55460 "typetext" : "<boolean>"
55461 },
55462 "poolid" : {
55463 "format" : "pve-poolid",
55464 "type" : "string",
55465 "typetext" : "<string>"
55466 },
55467 "storage" : {
55468 "description" : "List of storage IDs to add or remove from this pool.",
55469 "format" : "pve-storage-id-list",
55470 "optional" : 1,
55471 "type" : "string",
55472 "typetext" : "<string>"
55473 },
55474 "vms" : {
55475 "description" : "List of guest VMIDs to add or remove from this pool.",
55476 "format" : "pve-vmid-list",
55477 "optional" : 1,
55478 "type" : "string",
55479 "typetext" : "<string>"
55480 }
55481 }
55482 },
55483 "permissions" : {
55484 "check" : [
55485 "perm",
55486 "/pool/{poolid}",
55487 [
55488 "Pool.Allocate"
55489 ]
55490 ],
55491 "description" : "You also need the right to modify permissions on any object you add/delete."
55492 },
55493 "protected" : 1,
55494 "returns" : {
55495 "type" : "null"
55496 }
55497 }
55498 },
55499 "leaf" : 0,
55500 "path" : "/pools",
55501 "text" : "pools"
55502 },
55503 {
55504 "info" : {
55505 "GET" : {
55506 "allowtoken" : 1,
55507 "description" : "API version details, including some parts of the global datacenter config.",
55508 "method" : "GET",
55509 "name" : "version",
55510 "parameters" : {
55511 "additionalProperties" : 0
55512 },
55513 "permissions" : {
55514 "user" : "all"
55515 },
55516 "returns" : {
55517 "properties" : {
55518 "console" : {
55519 "description" : "The default console viewer to use.",
55520 "enum" : [
55521 "applet",
55522 "vv",
55523 "html5",
55524 "xtermjs"
55525 ],
55526 "optional" : 1,
55527 "type" : "string"
55528 },
55529 "release" : {
55530 "description" : "The current Proxmox VE point release in `x.y` format.",
55531 "type" : "string"
55532 },
55533 "repoid" : {
55534 "description" : "The short git revision from which this version was build.",
55535 "pattern" : "[0-9a-fA-F]{8,64}",
55536 "type" : "string"
55537 },
55538 "version" : {
55539 "description" : "The full pve-manager package version of this node.",
55540 "type" : "string"
55541 }
55542 },
55543 "type" : "object"
55544 }
55545 }
55546 },
55547 "leaf" : 1,
55548 "path" : "/version",
55549 "text" : "version"
55550 }
55551 ]
55552 ;
55553