This reflects the latest changes in pve-storage and pve-firewall.
Signed-off-by: Hannes Laimer <h.laimer at proxmox.com>
---
pve-api-types/pve-api.json | 377 ++++---------------------------------
1 file changed, 33 insertions(+), 344 deletions(-)
diff --git a/pve-api-types/pve-api.json b/pve-api-types/pve-api.json
index e0ad03c1..7a909404 100644
--- a/pve-api-types/pve-api.json
+++ b/pve-api-types/pve-api.json
@@ -4724,33 +4724,41 @@
"returns": {
"properties": {
"action": {
+ "description": "Rule action ('ACCEPT', 'DROP', 'REJECT') or security group name",
"type": "string"
},
"comment": {
+ "description": "Descriptive comment",
"optional": 1,
"type": "string"
},
"dest": {
+ "description": "Restrict packet destination address",
"optional": 1,
"type": "string"
},
"dport": {
+ "description": "Restrict TCP/UDP destination port",
"optional": 1,
"type": "string"
},
"enable": {
+ "description": "Flag to enable/disable a rule",
"optional": 1,
"type": "integer"
},
"icmp-type": {
+ "description": "Specify icmp-type. Only valid if proto equals 'icmp' or 'icmpv6'/'ipv6-icmp'",
"optional": 1,
"type": "string"
},
"iface": {
+ "description": "Network interface name. You have to use network configuration key names for VMs and containers",
"optional": 1,
"type": "string"
},
"ipversion": {
+ "description": "IP version (4 or 6) - automatically determined from source/dest addresses",
"optional": 1,
"type": "integer"
},
@@ -4771,25 +4779,31 @@
"type": "string"
},
"macro": {
+ "description": "Use predefined standard macro",
"optional": 1,
"type": "string"
},
"pos": {
+ "description": "Rule position in the ruleset",
"type": "integer"
},
"proto": {
+ "description": "IP protocol. You can use protocol names ('tcp'/'udp') or simple numbers, as defined in '/etc/protocols'",
"optional": 1,
"type": "string"
},
"source": {
+ "description": "Restrict packet source address",
"optional": 1,
"type": "string"
},
"sport": {
+ "description": "Restrict TCP/UDP source port",
"optional": 1,
"type": "string"
},
"type": {
+ "description": "Rule type",
"type": "string"
}
},
@@ -4990,11 +5004,7 @@
"proxyto": null,
"returns": {
"items": {
- "properties": {
- "pos": {
- "type": "integer"
- }
- },
+ "properties": ("Ref")["/root/0/children/4/children/0/children/0/children/0/info/GET/returns/properties"],
"type": "object"
},
"links": [
@@ -5290,67 +5300,7 @@
},
"proxyto": null,
"returns": {
- "properties": {
- "action": {
- "type": "string"
- },
- "comment": {
- "optional": 1,
- "type": "string"
- },
- "dest": {
- "optional": 1,
- "type": "string"
- },
- "dport": {
- "optional": 1,
- "type": "string"
- },
- "enable": {
- "optional": 1,
- "type": "integer"
- },
- "icmp-type": {
- "optional": 1,
- "type": "string"
- },
- "iface": {
- "optional": 1,
- "type": "string"
- },
- "ipversion": {
- "optional": 1,
- "type": "integer"
- },
- "log": {
- "description": "Log level for firewall rule",
- "enum": ("Ref")["/root/0/children/4/children/0/children/0/children/0/info/GET/returns/properties/log/enum"],
- "optional": 1,
- "type": "string"
- },
- "macro": {
- "optional": 1,
- "type": "string"
- },
- "pos": {
- "type": "integer"
- },
- "proto": {
- "optional": 1,
- "type": "string"
- },
- "source": {
- "optional": 1,
- "type": "string"
- },
- "sport": {
- "optional": 1,
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- },
+ "properties": ("Ref")["/root/0/children/4/children/0/children/0/children/0/info/GET/returns/properties"],
"type": "object"
}
},
@@ -5509,11 +5459,7 @@
"proxyto": null,
"returns": {
"items": {
- "properties": {
- "pos": {
- "type": "integer"
- }
- },
+ "properties": ("Ref")["/root/0/children/4/children/0/children/0/children/0/info/GET/returns/properties"],
"type": "object"
},
"links": [
@@ -6227,6 +6173,7 @@
"type": "boolean"
},
"enable": {
+ "default": 0,
"description": "Enable or disable the firewall cluster wide.",
"minimum": 0,
"optional": 1,
@@ -11029,67 +10976,7 @@
},
"proxyto": null,
"returns": {
- "properties": {
- "action": {
- "type": "string"
- },
- "comment": {
- "optional": 1,
- "type": "string"
- },
- "dest": {
- "optional": 1,
- "type": "string"
- },
- "dport": {
- "optional": 1,
- "type": "string"
- },
- "enable": {
- "optional": 1,
- "type": "integer"
- },
- "icmp-type": {
- "optional": 1,
- "type": "string"
- },
- "iface": {
- "optional": 1,
- "type": "string"
- },
- "ipversion": {
- "optional": 1,
- "type": "integer"
- },
- "log": {
- "description": "Log level for firewall rule",
- "enum": ("Ref")["/root/0/children/4/children/0/children/0/children/0/info/GET/returns/properties/log/enum"],
- "optional": 1,
- "type": "string"
- },
- "macro": {
- "optional": 1,
- "type": "string"
- },
- "pos": {
- "type": "integer"
- },
- "proto": {
- "optional": 1,
- "type": "string"
- },
- "source": {
- "optional": 1,
- "type": "string"
- },
- "sport": {
- "optional": 1,
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- },
+ "properties": ("Ref")["/root/0/children/4/children/0/children/0/children/0/info/GET/returns/properties"],
"type": "object"
}
},
@@ -11241,11 +11128,7 @@
"proxyto": null,
"returns": {
"items": {
- "properties": {
- "pos": {
- "type": "integer"
- }
- },
+ "properties": ("Ref")["/root/0/children/4/children/0/children/0/children/0/info/GET/returns/properties"],
"type": "object"
},
"links": [
@@ -16634,67 +16517,7 @@
},
"proxyto": null,
"returns": {
- "properties": {
- "action": {
- "type": "string"
- },
- "comment": {
- "optional": 1,
- "type": "string"
- },
- "dest": {
- "optional": 1,
- "type": "string"
- },
- "dport": {
- "optional": 1,
- "type": "string"
- },
- "enable": {
- "optional": 1,
- "type": "integer"
- },
- "icmp-type": {
- "optional": 1,
- "type": "string"
- },
- "iface": {
- "optional": 1,
- "type": "string"
- },
- "ipversion": {
- "optional": 1,
- "type": "integer"
- },
- "log": {
- "description": "Log level for firewall rule",
- "enum": ("Ref")["/root/0/children/4/children/0/children/0/children/0/info/GET/returns/properties/log/enum"],
- "optional": 1,
- "type": "string"
- },
- "macro": {
- "optional": 1,
- "type": "string"
- },
- "pos": {
- "type": "integer"
- },
- "proto": {
- "optional": 1,
- "type": "string"
- },
- "source": {
- "optional": 1,
- "type": "string"
- },
- "sport": {
- "optional": 1,
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- },
+ "properties": ("Ref")["/root/0/children/4/children/0/children/0/children/0/info/GET/returns/properties"],
"type": "object"
}
},
@@ -16858,11 +16681,7 @@
"proxyto": null,
"returns": {
"items": {
- "properties": {
- "pos": {
- "type": "integer"
- }
- },
+ "properties": ("Ref")["/root/0/children/4/children/0/children/0/children/0/info/GET/returns/properties"],
"type": "object"
},
"links": [
@@ -35289,67 +35108,7 @@
},
"proxyto": null,
"returns": {
- "properties": {
- "action": {
- "type": "string"
- },
- "comment": {
- "optional": 1,
- "type": "string"
- },
- "dest": {
- "optional": 1,
- "type": "string"
- },
- "dport": {
- "optional": 1,
- "type": "string"
- },
- "enable": {
- "optional": 1,
- "type": "integer"
- },
- "icmp-type": {
- "optional": 1,
- "type": "string"
- },
- "iface": {
- "optional": 1,
- "type": "string"
- },
- "ipversion": {
- "optional": 1,
- "type": "integer"
- },
- "log": {
- "description": "Log level for firewall rule",
- "enum": ("Ref")["/root/0/children/4/children/0/children/0/children/0/info/GET/returns/properties/log/enum"],
- "optional": 1,
- "type": "string"
- },
- "macro": {
- "optional": 1,
- "type": "string"
- },
- "pos": {
- "type": "integer"
- },
- "proto": {
- "optional": 1,
- "type": "string"
- },
- "source": {
- "optional": 1,
- "type": "string"
- },
- "sport": {
- "optional": 1,
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- },
+ "properties": ("Ref")["/root/0/children/4/children/0/children/0/children/0/info/GET/returns/properties"],
"type": "object"
}
},
@@ -35513,11 +35272,7 @@
"proxyto": null,
"returns": {
"items": {
- "properties": {
- "pos": {
- "type": "integer"
- }
- },
+ "properties": ("Ref")["/root/0/children/4/children/0/children/0/children/0/info/GET/returns/properties"],
"type": "object"
},
"links": [
@@ -49048,67 +48803,7 @@
},
"proxyto": "node",
"returns": {
- "properties": {
- "action": {
- "type": "string"
- },
- "comment": {
- "optional": 1,
- "type": "string"
- },
- "dest": {
- "optional": 1,
- "type": "string"
- },
- "dport": {
- "optional": 1,
- "type": "string"
- },
- "enable": {
- "optional": 1,
- "type": "integer"
- },
- "icmp-type": {
- "optional": 1,
- "type": "string"
- },
- "iface": {
- "optional": 1,
- "type": "string"
- },
- "ipversion": {
- "optional": 1,
- "type": "integer"
- },
- "log": {
- "description": "Log level for firewall rule",
- "enum": ("Ref")["/root/0/children/4/children/0/children/0/children/0/info/GET/returns/properties/log/enum"],
- "optional": 1,
- "type": "string"
- },
- "macro": {
- "optional": 1,
- "type": "string"
- },
- "pos": {
- "type": "integer"
- },
- "proto": {
- "optional": 1,
- "type": "string"
- },
- "source": {
- "optional": 1,
- "type": "string"
- },
- "sport": {
- "optional": 1,
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- },
+ "properties": ("Ref")["/root/0/children/4/children/0/children/0/children/0/info/GET/returns/properties"],
"type": "object"
}
},
@@ -49270,11 +48965,7 @@
"proxyto": "node",
"returns": {
"items": {
- "properties": {
- "pos": {
- "type": "integer"
- }
- },
+ "properties": ("Ref")["/root/0/children/4/children/0/children/0/children/0/info/GET/returns/properties"],
"type": "object"
},
"links": [
@@ -49442,6 +49133,7 @@
"returns": {
"properties": {
"enable": {
+ "default": 1,
"description": "Enable host firewall rules.",
"optional": 1,
"type": "boolean"
@@ -52757,12 +52449,6 @@
"optional": 1,
"type": "string"
},
- "path": {
- "description": "File system path.",
- "format": "pve-storage-path",
- "optional": 1,
- "type": "string"
- },
"pool": {
"description": "Pool.",
"optional": 1,
@@ -52935,7 +52621,6 @@
"nfs",
"pbs",
"rbd",
- "xfsrs-example",
"zfs",
"zfspool"
],
@@ -53056,7 +52741,12 @@
"nowritecache": ("Ref")["/root/2/children/0/info/PUT/parameters/properties/nowritecache"],
"options": ("Ref")["/root/2/children/0/info/PUT/parameters/properties/options"],
"password": ("Ref")["/root/2/children/0/info/PUT/parameters/properties/password"],
- "path": ("Ref")["/root/2/children/0/info/PUT/parameters/properties/path"],
+ "path": {
+ "description": "File system path.",
+ "format": "pve-storage-path",
+ "optional": 1,
+ "type": "string"
+ },
"pool": ("Ref")["/root/2/children/0/info/PUT/parameters/properties/pool"],
"port": ("Ref")["/root/2/children/0/info/PUT/parameters/properties/port"],
"portal": {
@@ -53110,7 +52800,6 @@
"nfs",
"pbs",
"rbd",
- "xfsrs-example",
"zfs",
"zfspool"
],
--
2.47.3