@n8n-dev/n8n-nodes-hcloud 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -0
- package/dist/credentials/HcloudApi.credentials.d.ts +10 -0
- package/dist/credentials/HcloudApi.credentials.js +47 -0
- package/dist/credentials/HcloudApi.credentials.js.map +1 -0
- package/dist/icons/hcloud.dark.svg +4 -0
- package/dist/icons/hcloud.svg +4 -0
- package/dist/nodes/Hcloud/Hcloud.node.d.ts +4 -0
- package/dist/nodes/Hcloud/Hcloud.node.js +194 -0
- package/dist/nodes/Hcloud/Hcloud.node.js.map +1 -0
- package/dist/nodes/Hcloud/Hcloud.node.json +20 -0
- package/dist/nodes/Hcloud/hcloud.dark.svg +4 -0
- package/dist/nodes/Hcloud/hcloud.svg +4 -0
- package/dist/nodes/Hcloud/resources/actions/index.d.ts +2 -0
- package/dist/nodes/Hcloud/resources/actions/index.js +128 -0
- package/dist/nodes/Hcloud/resources/actions/index.js.map +1 -0
- package/dist/nodes/Hcloud/resources/certificates/index.d.ts +2 -0
- package/dist/nodes/Hcloud/resources/certificates/index.js +1062 -0
- package/dist/nodes/Hcloud/resources/certificates/index.js.map +1 -0
- package/dist/nodes/Hcloud/resources/datacenters/index.d.ts +2 -0
- package/dist/nodes/Hcloud/resources/datacenters/index.js +202 -0
- package/dist/nodes/Hcloud/resources/datacenters/index.js.map +1 -0
- package/dist/nodes/Hcloud/resources/firewalls/index.d.ts +2 -0
- package/dist/nodes/Hcloud/resources/firewalls/index.js +1153 -0
- package/dist/nodes/Hcloud/resources/firewalls/index.js.map +1 -0
- package/dist/nodes/Hcloud/resources/floating-ips/index.d.ts +2 -0
- package/dist/nodes/Hcloud/resources/floating-ips/index.js +1313 -0
- package/dist/nodes/Hcloud/resources/floating-ips/index.js.map +1 -0
- package/dist/nodes/Hcloud/resources/images/index.d.ts +2 -0
- package/dist/nodes/Hcloud/resources/images/index.js +1036 -0
- package/dist/nodes/Hcloud/resources/images/index.js.map +1 -0
- package/dist/nodes/Hcloud/resources/index.d.ts +21 -0
- package/dist/nodes/Hcloud/resources/index.js +46 -0
- package/dist/nodes/Hcloud/resources/index.js.map +1 -0
- package/dist/nodes/Hcloud/resources/isos/index.d.ts +2 -0
- package/dist/nodes/Hcloud/resources/isos/index.js +237 -0
- package/dist/nodes/Hcloud/resources/isos/index.js.map +1 -0
- package/dist/nodes/Hcloud/resources/load-balancer-types/index.d.ts +2 -0
- package/dist/nodes/Hcloud/resources/load-balancer-types/index.js +177 -0
- package/dist/nodes/Hcloud/resources/load-balancer-types/index.js.map +1 -0
- package/dist/nodes/Hcloud/resources/load-balancers/index.d.ts +2 -0
- package/dist/nodes/Hcloud/resources/load-balancers/index.js +2724 -0
- package/dist/nodes/Hcloud/resources/load-balancers/index.js.map +1 -0
- package/dist/nodes/Hcloud/resources/locations/index.d.ts +2 -0
- package/dist/nodes/Hcloud/resources/locations/index.js +202 -0
- package/dist/nodes/Hcloud/resources/locations/index.js.map +1 -0
- package/dist/nodes/Hcloud/resources/networks/index.d.ts +2 -0
- package/dist/nodes/Hcloud/resources/networks/index.js +1595 -0
- package/dist/nodes/Hcloud/resources/networks/index.js.map +1 -0
- package/dist/nodes/Hcloud/resources/placement-groups/index.d.ts +2 -0
- package/dist/nodes/Hcloud/resources/placement-groups/index.js +514 -0
- package/dist/nodes/Hcloud/resources/placement-groups/index.js.map +1 -0
- package/dist/nodes/Hcloud/resources/pricing/index.d.ts +2 -0
- package/dist/nodes/Hcloud/resources/pricing/index.js +53 -0
- package/dist/nodes/Hcloud/resources/pricing/index.js.map +1 -0
- package/dist/nodes/Hcloud/resources/primary-ips/index.d.ts +2 -0
- package/dist/nodes/Hcloud/resources/primary-ips/index.js +1428 -0
- package/dist/nodes/Hcloud/resources/primary-ips/index.js.map +1 -0
- package/dist/nodes/Hcloud/resources/server-types/index.d.ts +2 -0
- package/dist/nodes/Hcloud/resources/server-types/index.js +177 -0
- package/dist/nodes/Hcloud/resources/server-types/index.js.map +1 -0
- package/dist/nodes/Hcloud/resources/servers/index.d.ts +2 -0
- package/dist/nodes/Hcloud/resources/servers/index.js +3086 -0
- package/dist/nodes/Hcloud/resources/servers/index.js.map +1 -0
- package/dist/nodes/Hcloud/resources/ssh-keys/index.d.ts +2 -0
- package/dist/nodes/Hcloud/resources/ssh-keys/index.js +508 -0
- package/dist/nodes/Hcloud/resources/ssh-keys/index.js.map +1 -0
- package/dist/nodes/Hcloud/resources/storage-box-types/index.d.ts +2 -0
- package/dist/nodes/Hcloud/resources/storage-box-types/index.js +177 -0
- package/dist/nodes/Hcloud/resources/storage-box-types/index.js.map +1 -0
- package/dist/nodes/Hcloud/resources/storage-boxes/index.d.ts +2 -0
- package/dist/nodes/Hcloud/resources/storage-boxes/index.js +3281 -0
- package/dist/nodes/Hcloud/resources/storage-boxes/index.js.map +1 -0
- package/dist/nodes/Hcloud/resources/volumes/index.d.ts +2 -0
- package/dist/nodes/Hcloud/resources/volumes/index.js +1327 -0
- package/dist/nodes/Hcloud/resources/volumes/index.js.map +1 -0
- package/dist/nodes/Hcloud/resources/zones/index.d.ts +2 -0
- package/dist/nodes/Hcloud/resources/zones/index.js +3379 -0
- package/dist/nodes/Hcloud/resources/zones/index.js.map +1 -0
- package/dist/package.json +53 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +53 -0
|
@@ -0,0 +1,1153 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.firewallsDescription = void 0;
|
|
4
|
+
exports.firewallsDescription = [
|
|
5
|
+
{
|
|
6
|
+
"displayName": "Operation",
|
|
7
|
+
"name": "operation",
|
|
8
|
+
"type": "options",
|
|
9
|
+
"noDataExpression": true,
|
|
10
|
+
"displayOptions": {
|
|
11
|
+
"show": {
|
|
12
|
+
"resource": [
|
|
13
|
+
"Firewalls"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"options": [
|
|
18
|
+
{
|
|
19
|
+
"name": "List Firewalls",
|
|
20
|
+
"value": "List Firewalls",
|
|
21
|
+
"action": "List Firewalls",
|
|
22
|
+
"description": "Returns all Firewalls.\n\nUse the provided URI parameters to modify the result.\n",
|
|
23
|
+
"routing": {
|
|
24
|
+
"request": {
|
|
25
|
+
"method": "GET",
|
|
26
|
+
"url": "=/firewalls"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "Create Firewall",
|
|
32
|
+
"value": "Create Firewall",
|
|
33
|
+
"action": "Create a Firewall",
|
|
34
|
+
"description": "Create a Firewall.\n\n#### Operation specific errors\n\n| Status | Code | Description |\n| --- | --- | --- |\n| `422` | `server_already_added` | The Server was applied more than once. |\n| `422` | `incompatible_network_type` | The resources network type is not supported by Firewalls. |\n| `422` | `firewall_resource_not_found` | The resource the Firewall should be attached to was not found. |\n",
|
|
35
|
+
"routing": {
|
|
36
|
+
"request": {
|
|
37
|
+
"method": "POST",
|
|
38
|
+
"url": "=/firewalls"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "Delete Firewall",
|
|
44
|
+
"value": "Delete Firewall",
|
|
45
|
+
"action": "Delete a Firewall",
|
|
46
|
+
"description": "Deletes the Firewall.\n\n#### Operation specific errors\n\n| Status | Code | Description |\n| --- | --- | --- |\n| `422` | `resource_in_use` | Firewall still applied to a resource |\n",
|
|
47
|
+
"routing": {
|
|
48
|
+
"request": {
|
|
49
|
+
"method": "DELETE",
|
|
50
|
+
"url": "=/firewalls/{{$parameter[\"id\"]}}"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"name": "Get Firewall",
|
|
56
|
+
"value": "Get Firewall",
|
|
57
|
+
"action": "Get a Firewall",
|
|
58
|
+
"description": "Returns a single Firewall.\n",
|
|
59
|
+
"routing": {
|
|
60
|
+
"request": {
|
|
61
|
+
"method": "GET",
|
|
62
|
+
"url": "=/firewalls/{{$parameter[\"id\"]}}"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"name": "Replace Firewall",
|
|
68
|
+
"value": "Replace Firewall",
|
|
69
|
+
"action": "Update a Firewall",
|
|
70
|
+
"description": "Update a Firewall.\n\nIn case of a parallel running change on the Firewall a `conflict` error will be returned.\n",
|
|
71
|
+
"routing": {
|
|
72
|
+
"request": {
|
|
73
|
+
"method": "PUT",
|
|
74
|
+
"url": "=/firewalls/{{$parameter[\"id\"]}}"
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"name": "List Actions For Firewall",
|
|
80
|
+
"value": "List Actions For Firewall",
|
|
81
|
+
"action": "List Actions for a Firewall",
|
|
82
|
+
"description": "Returns all Actions for the Firewall.\n\nUse the provided URI parameters to modify the result.\n",
|
|
83
|
+
"routing": {
|
|
84
|
+
"request": {
|
|
85
|
+
"method": "GET",
|
|
86
|
+
"url": "=/firewalls/{{$parameter[\"id\"]}}/actions"
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"name": "Get Action For Firewall",
|
|
92
|
+
"value": "Get Action For Firewall",
|
|
93
|
+
"action": "Get an Action for a Firewall",
|
|
94
|
+
"description": "Returns a specific Action for a Firewall.\n",
|
|
95
|
+
"routing": {
|
|
96
|
+
"request": {
|
|
97
|
+
"method": "GET",
|
|
98
|
+
"url": "=/firewalls/{{$parameter[\"id\"]}}/actions/{{$parameter[\"action_id\"]}}"
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"name": "Apply To Resources",
|
|
104
|
+
"value": "Apply To Resources",
|
|
105
|
+
"action": "Apply to Resources",
|
|
106
|
+
"description": "Applies a Firewall to multiple resources.\n\nSupported resources:\n- Servers (with a public network interface)\n- Label Selectors\n\nA Server can be applied to [a maximum of 5 Firewalls](https://docs.hetzner.com/cloud/firewalls/overview#limits). This limit\napplies to Servers applied via a matching Label Selector as well.\n\nUpdates to resources matching or no longer matching a Label Selector can take up to a few seconds\nto be processed.\n\nA Firewall is applied to a resource once the related Action with command `apply_firewall` successfully finished.\n\n#### Operation specific errors\n\n| Status | Code | Description |\n| --- | --- | --- |\n| `404` | `firewall_resource_not_found` | The resource the Firewall should be applied to was not found |\n| `422` | `firewall_already_applied` | Firewall is already applied to resource |\n| `422` | `incompatible_network_type` | The network type of the resource is not supported by Firewalls |\n| `422` | `private_net_only_server` | The Server the Firewall should be applied to has no public interface |\n",
|
|
107
|
+
"routing": {
|
|
108
|
+
"request": {
|
|
109
|
+
"method": "POST",
|
|
110
|
+
"url": "=/firewalls/{{$parameter[\"id\"]}}/actions/apply_to_resources"
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"name": "Remove From Resources",
|
|
116
|
+
"value": "Remove From Resources",
|
|
117
|
+
"action": "Remove from Resources",
|
|
118
|
+
"description": "Removes a Firewall from multiple resources.\n\nSupported resources:\n- Servers (with a public network interface)\n\nA Firewall is removed from a resource once the related Action with command `remove_firewall` successfully finished.\n\n#### Operation specific errors\n\n| Status | Code | Description |\n| --- | --- | --- |\n| `404` | `firewall_resource_not_found` | The resource the Firewall should be removed from was not found |\n| `422` | `firewall_managed_by_label_selector` | Firewall is applied via a Label Selector and cannot be removed manually |\n",
|
|
119
|
+
"routing": {
|
|
120
|
+
"request": {
|
|
121
|
+
"method": "POST",
|
|
122
|
+
"url": "=/firewalls/{{$parameter[\"id\"]}}/actions/remove_from_resources"
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"name": "Set Rules",
|
|
128
|
+
"value": "Set Rules",
|
|
129
|
+
"action": "Set Rules",
|
|
130
|
+
"description": "Set the rules of a Firewall.\n\nOverwrites the existing rules with the given ones. Pass an empty array to remove all rules.\n\nRules are limited to 50 entries per Firewall and [500 effective rules](https://docs.hetzner.com/cloud/firewalls/overview#limits).\n",
|
|
131
|
+
"routing": {
|
|
132
|
+
"request": {
|
|
133
|
+
"method": "POST",
|
|
134
|
+
"url": "=/firewalls/{{$parameter[\"id\"]}}/actions/set_rules"
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"name": "List Firewall Actions",
|
|
140
|
+
"value": "List Firewall Actions",
|
|
141
|
+
"action": "List Actions",
|
|
142
|
+
"description": "Returns all Actions for Firewalls.\n\nUse the provided URI parameters to modify the result.\n",
|
|
143
|
+
"routing": {
|
|
144
|
+
"request": {
|
|
145
|
+
"method": "GET",
|
|
146
|
+
"url": "=/firewalls/actions"
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"name": "Get Firewall Action",
|
|
152
|
+
"value": "Get Firewall Action",
|
|
153
|
+
"action": "Get an Action",
|
|
154
|
+
"description": "Returns the specific Action.\n",
|
|
155
|
+
"routing": {
|
|
156
|
+
"request": {
|
|
157
|
+
"method": "GET",
|
|
158
|
+
"url": "=/firewalls/actions/{{$parameter[\"id\"]}}"
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
],
|
|
163
|
+
"default": ""
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"displayName": "GET /firewalls",
|
|
167
|
+
"name": "operation",
|
|
168
|
+
"type": "notice",
|
|
169
|
+
"typeOptions": {
|
|
170
|
+
"theme": "info"
|
|
171
|
+
},
|
|
172
|
+
"default": "",
|
|
173
|
+
"displayOptions": {
|
|
174
|
+
"show": {
|
|
175
|
+
"resource": [
|
|
176
|
+
"Firewalls"
|
|
177
|
+
],
|
|
178
|
+
"operation": [
|
|
179
|
+
"List Firewalls"
|
|
180
|
+
]
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"displayName": "Sort",
|
|
186
|
+
"name": "sort",
|
|
187
|
+
"description": "Sort resources by field and direction. Can be used multiple times. For more\ninformation, see \"Sorting\".\n",
|
|
188
|
+
"default": "[\n null\n]",
|
|
189
|
+
"type": "json",
|
|
190
|
+
"routing": {
|
|
191
|
+
"send": {
|
|
192
|
+
"type": "query",
|
|
193
|
+
"property": "sort",
|
|
194
|
+
"value": "={{ $value }}",
|
|
195
|
+
"propertyInDotNotation": false
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
"displayOptions": {
|
|
199
|
+
"show": {
|
|
200
|
+
"resource": [
|
|
201
|
+
"Firewalls"
|
|
202
|
+
],
|
|
203
|
+
"operation": [
|
|
204
|
+
"List Firewalls"
|
|
205
|
+
]
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"displayName": "Name",
|
|
211
|
+
"name": "name",
|
|
212
|
+
"description": "Filter resources by their name. The response will only contain the resources\nmatching exactly the specified name.\n",
|
|
213
|
+
"default": "",
|
|
214
|
+
"type": "string",
|
|
215
|
+
"routing": {
|
|
216
|
+
"send": {
|
|
217
|
+
"type": "query",
|
|
218
|
+
"property": "name",
|
|
219
|
+
"value": "={{ $value }}",
|
|
220
|
+
"propertyInDotNotation": false
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
"displayOptions": {
|
|
224
|
+
"show": {
|
|
225
|
+
"resource": [
|
|
226
|
+
"Firewalls"
|
|
227
|
+
],
|
|
228
|
+
"operation": [
|
|
229
|
+
"List Firewalls"
|
|
230
|
+
]
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"displayName": "Label Selector",
|
|
236
|
+
"name": "label_selector",
|
|
237
|
+
"description": "Filter resources by labels. The response will only contain resources matching the\nlabel selector. For more information, see \"Label Selector\".\n",
|
|
238
|
+
"default": "",
|
|
239
|
+
"type": "string",
|
|
240
|
+
"routing": {
|
|
241
|
+
"send": {
|
|
242
|
+
"type": "query",
|
|
243
|
+
"property": "label_selector",
|
|
244
|
+
"value": "={{ $value }}",
|
|
245
|
+
"propertyInDotNotation": false
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
"displayOptions": {
|
|
249
|
+
"show": {
|
|
250
|
+
"resource": [
|
|
251
|
+
"Firewalls"
|
|
252
|
+
],
|
|
253
|
+
"operation": [
|
|
254
|
+
"List Firewalls"
|
|
255
|
+
]
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"displayName": "Page",
|
|
261
|
+
"name": "page",
|
|
262
|
+
"description": "Page number to return. For more information, see \"Pagination\".",
|
|
263
|
+
"default": 1,
|
|
264
|
+
"type": "number",
|
|
265
|
+
"routing": {
|
|
266
|
+
"send": {
|
|
267
|
+
"type": "query",
|
|
268
|
+
"property": "page",
|
|
269
|
+
"value": "={{ $value }}",
|
|
270
|
+
"propertyInDotNotation": false
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
"displayOptions": {
|
|
274
|
+
"show": {
|
|
275
|
+
"resource": [
|
|
276
|
+
"Firewalls"
|
|
277
|
+
],
|
|
278
|
+
"operation": [
|
|
279
|
+
"List Firewalls"
|
|
280
|
+
]
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"displayName": "Per Page",
|
|
286
|
+
"name": "per_page",
|
|
287
|
+
"description": "Maximum number of entries returned per page. For more information, see \"Pagination\".",
|
|
288
|
+
"default": 25,
|
|
289
|
+
"type": "number",
|
|
290
|
+
"routing": {
|
|
291
|
+
"send": {
|
|
292
|
+
"type": "query",
|
|
293
|
+
"property": "per_page",
|
|
294
|
+
"value": "={{ $value }}",
|
|
295
|
+
"propertyInDotNotation": false
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
"displayOptions": {
|
|
299
|
+
"show": {
|
|
300
|
+
"resource": [
|
|
301
|
+
"Firewalls"
|
|
302
|
+
],
|
|
303
|
+
"operation": [
|
|
304
|
+
"List Firewalls"
|
|
305
|
+
]
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
"displayName": "POST /firewalls",
|
|
311
|
+
"name": "operation",
|
|
312
|
+
"type": "notice",
|
|
313
|
+
"typeOptions": {
|
|
314
|
+
"theme": "info"
|
|
315
|
+
},
|
|
316
|
+
"default": "",
|
|
317
|
+
"displayOptions": {
|
|
318
|
+
"show": {
|
|
319
|
+
"resource": [
|
|
320
|
+
"Firewalls"
|
|
321
|
+
],
|
|
322
|
+
"operation": [
|
|
323
|
+
"Create Firewall"
|
|
324
|
+
]
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"displayName": "Apply To",
|
|
330
|
+
"name": "apply_to",
|
|
331
|
+
"type": "json",
|
|
332
|
+
"default": "[\n {\n \"label_selector\": {\n \"selector\": \"env=prod\"\n },\n \"server\": {\n \"id\": 42\n }\n }\n]",
|
|
333
|
+
"description": "Resources to apply the Firewall to.\n\nResources added directly are taking precedence over those added via a Label Selector.\n",
|
|
334
|
+
"routing": {
|
|
335
|
+
"send": {
|
|
336
|
+
"property": "apply_to",
|
|
337
|
+
"propertyInDotNotation": false,
|
|
338
|
+
"type": "body",
|
|
339
|
+
"value": "={{ JSON.parse($value) }}"
|
|
340
|
+
}
|
|
341
|
+
},
|
|
342
|
+
"displayOptions": {
|
|
343
|
+
"show": {
|
|
344
|
+
"resource": [
|
|
345
|
+
"Firewalls"
|
|
346
|
+
],
|
|
347
|
+
"operation": [
|
|
348
|
+
"Create Firewall"
|
|
349
|
+
]
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
"displayName": "Labels",
|
|
355
|
+
"name": "labels",
|
|
356
|
+
"type": "json",
|
|
357
|
+
"default": "{\n \"environment\": \"prod\",\n \"example.com/my\": \"label\",\n \"just-a-key\": \"\"\n}",
|
|
358
|
+
"description": "User-defined labels (`key/value` pairs) for the Resource.\nFor more information, see \"Labels\".\n | User-defined labels (`key/value` pairs) for the Resource.\n\nNote that the set of Labels provided in the request will overwrite the\nexisting one.\n\nFor more information, see \"Labels\".\n",
|
|
359
|
+
"routing": {
|
|
360
|
+
"send": {
|
|
361
|
+
"property": "labels",
|
|
362
|
+
"propertyInDotNotation": false,
|
|
363
|
+
"type": "body",
|
|
364
|
+
"value": "={{ JSON.parse($value) }}"
|
|
365
|
+
}
|
|
366
|
+
},
|
|
367
|
+
"displayOptions": {
|
|
368
|
+
"show": {
|
|
369
|
+
"resource": [
|
|
370
|
+
"Firewalls"
|
|
371
|
+
],
|
|
372
|
+
"operation": [
|
|
373
|
+
"Create Firewall"
|
|
374
|
+
]
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
"required": true,
|
|
380
|
+
"displayName": "Name",
|
|
381
|
+
"name": "name",
|
|
382
|
+
"type": "string",
|
|
383
|
+
"default": "new-name",
|
|
384
|
+
"description": "Name of the Firewall.\n\nLimited to a maximum of 128 characters.\n\nMust be unique per Project.\n",
|
|
385
|
+
"routing": {
|
|
386
|
+
"send": {
|
|
387
|
+
"property": "name",
|
|
388
|
+
"propertyInDotNotation": false,
|
|
389
|
+
"type": "body",
|
|
390
|
+
"value": "={{ $value }}"
|
|
391
|
+
}
|
|
392
|
+
},
|
|
393
|
+
"displayOptions": {
|
|
394
|
+
"show": {
|
|
395
|
+
"resource": [
|
|
396
|
+
"Firewalls"
|
|
397
|
+
],
|
|
398
|
+
"operation": [
|
|
399
|
+
"Create Firewall"
|
|
400
|
+
]
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
"displayName": "Rules",
|
|
406
|
+
"name": "rules",
|
|
407
|
+
"type": "json",
|
|
408
|
+
"default": "[\n {\n \"direction\": \"in\",\n \"port\": \"80\",\n \"protocol\": \"tcp\",\n \"source_ips\": [\n \"192.0.2.2/32\",\n \"192.0.2.0/24\",\n \"2001:0db8:9a3b:ee58:5ca:990c:8bc9:c03b/128\"\n ]\n }\n]",
|
|
409
|
+
"description": "Array of rules.\n\nRules are limited to 50 entries per Firewall and [500 effective rules](https://docs.hetzner.com/cloud/firewalls/overview#limits).\n",
|
|
410
|
+
"routing": {
|
|
411
|
+
"send": {
|
|
412
|
+
"property": "rules",
|
|
413
|
+
"propertyInDotNotation": false,
|
|
414
|
+
"type": "body",
|
|
415
|
+
"value": "={{ JSON.parse($value) }}"
|
|
416
|
+
}
|
|
417
|
+
},
|
|
418
|
+
"displayOptions": {
|
|
419
|
+
"show": {
|
|
420
|
+
"resource": [
|
|
421
|
+
"Firewalls"
|
|
422
|
+
],
|
|
423
|
+
"operation": [
|
|
424
|
+
"Create Firewall"
|
|
425
|
+
]
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
"displayName": "DELETE /firewalls/{id}",
|
|
431
|
+
"name": "operation",
|
|
432
|
+
"type": "notice",
|
|
433
|
+
"typeOptions": {
|
|
434
|
+
"theme": "info"
|
|
435
|
+
},
|
|
436
|
+
"default": "",
|
|
437
|
+
"displayOptions": {
|
|
438
|
+
"show": {
|
|
439
|
+
"resource": [
|
|
440
|
+
"Firewalls"
|
|
441
|
+
],
|
|
442
|
+
"operation": [
|
|
443
|
+
"Delete Firewall"
|
|
444
|
+
]
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
"displayName": "Id",
|
|
450
|
+
"name": "id",
|
|
451
|
+
"required": true,
|
|
452
|
+
"description": "ID of the Firewall.",
|
|
453
|
+
"default": 42,
|
|
454
|
+
"type": "number",
|
|
455
|
+
"displayOptions": {
|
|
456
|
+
"show": {
|
|
457
|
+
"resource": [
|
|
458
|
+
"Firewalls"
|
|
459
|
+
],
|
|
460
|
+
"operation": [
|
|
461
|
+
"Delete Firewall"
|
|
462
|
+
]
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
"displayName": "GET /firewalls/{id}",
|
|
468
|
+
"name": "operation",
|
|
469
|
+
"type": "notice",
|
|
470
|
+
"typeOptions": {
|
|
471
|
+
"theme": "info"
|
|
472
|
+
},
|
|
473
|
+
"default": "",
|
|
474
|
+
"displayOptions": {
|
|
475
|
+
"show": {
|
|
476
|
+
"resource": [
|
|
477
|
+
"Firewalls"
|
|
478
|
+
],
|
|
479
|
+
"operation": [
|
|
480
|
+
"Get Firewall"
|
|
481
|
+
]
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
"displayName": "Id",
|
|
487
|
+
"name": "id",
|
|
488
|
+
"required": true,
|
|
489
|
+
"description": "ID of the Firewall.",
|
|
490
|
+
"default": 42,
|
|
491
|
+
"type": "number",
|
|
492
|
+
"displayOptions": {
|
|
493
|
+
"show": {
|
|
494
|
+
"resource": [
|
|
495
|
+
"Firewalls"
|
|
496
|
+
],
|
|
497
|
+
"operation": [
|
|
498
|
+
"Get Firewall"
|
|
499
|
+
]
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
},
|
|
503
|
+
{
|
|
504
|
+
"displayName": "PUT /firewalls/{id}",
|
|
505
|
+
"name": "operation",
|
|
506
|
+
"type": "notice",
|
|
507
|
+
"typeOptions": {
|
|
508
|
+
"theme": "info"
|
|
509
|
+
},
|
|
510
|
+
"default": "",
|
|
511
|
+
"displayOptions": {
|
|
512
|
+
"show": {
|
|
513
|
+
"resource": [
|
|
514
|
+
"Firewalls"
|
|
515
|
+
],
|
|
516
|
+
"operation": [
|
|
517
|
+
"Replace Firewall"
|
|
518
|
+
]
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
},
|
|
522
|
+
{
|
|
523
|
+
"displayName": "Id",
|
|
524
|
+
"name": "id",
|
|
525
|
+
"required": true,
|
|
526
|
+
"description": "ID of the Firewall.",
|
|
527
|
+
"default": 42,
|
|
528
|
+
"type": "number",
|
|
529
|
+
"displayOptions": {
|
|
530
|
+
"show": {
|
|
531
|
+
"resource": [
|
|
532
|
+
"Firewalls"
|
|
533
|
+
],
|
|
534
|
+
"operation": [
|
|
535
|
+
"Replace Firewall"
|
|
536
|
+
]
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
},
|
|
540
|
+
{
|
|
541
|
+
"displayName": "Labels",
|
|
542
|
+
"name": "labels",
|
|
543
|
+
"type": "json",
|
|
544
|
+
"default": "{\n \"environment\": \"prod\",\n \"example.com/my\": \"label\",\n \"just-a-key\": \"\"\n}",
|
|
545
|
+
"description": "User-defined labels (`key/value` pairs) for the Resource.\nFor more information, see \"Labels\".\n | User-defined labels (`key/value` pairs) for the Resource.\n\nNote that the set of Labels provided in the request will overwrite the\nexisting one.\n\nFor more information, see \"Labels\".\n",
|
|
546
|
+
"routing": {
|
|
547
|
+
"send": {
|
|
548
|
+
"property": "labels",
|
|
549
|
+
"propertyInDotNotation": false,
|
|
550
|
+
"type": "body",
|
|
551
|
+
"value": "={{ JSON.parse($value) }}"
|
|
552
|
+
}
|
|
553
|
+
},
|
|
554
|
+
"displayOptions": {
|
|
555
|
+
"show": {
|
|
556
|
+
"resource": [
|
|
557
|
+
"Firewalls"
|
|
558
|
+
],
|
|
559
|
+
"operation": [
|
|
560
|
+
"Replace Firewall"
|
|
561
|
+
]
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
},
|
|
565
|
+
{
|
|
566
|
+
"displayName": "Name",
|
|
567
|
+
"name": "name",
|
|
568
|
+
"type": "string",
|
|
569
|
+
"default": "new-name",
|
|
570
|
+
"description": "Name of the Firewall.\n\nLimited to a maximum of 128 characters.\n\nMust be unique per Project.\n",
|
|
571
|
+
"routing": {
|
|
572
|
+
"send": {
|
|
573
|
+
"property": "name",
|
|
574
|
+
"propertyInDotNotation": false,
|
|
575
|
+
"type": "body",
|
|
576
|
+
"value": "={{ $value }}"
|
|
577
|
+
}
|
|
578
|
+
},
|
|
579
|
+
"displayOptions": {
|
|
580
|
+
"show": {
|
|
581
|
+
"resource": [
|
|
582
|
+
"Firewalls"
|
|
583
|
+
],
|
|
584
|
+
"operation": [
|
|
585
|
+
"Replace Firewall"
|
|
586
|
+
]
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
"displayName": "GET /firewalls/{id}/actions",
|
|
592
|
+
"name": "operation",
|
|
593
|
+
"type": "notice",
|
|
594
|
+
"typeOptions": {
|
|
595
|
+
"theme": "info"
|
|
596
|
+
},
|
|
597
|
+
"default": "",
|
|
598
|
+
"displayOptions": {
|
|
599
|
+
"show": {
|
|
600
|
+
"resource": [
|
|
601
|
+
"Firewalls"
|
|
602
|
+
],
|
|
603
|
+
"operation": [
|
|
604
|
+
"List Actions For Firewall"
|
|
605
|
+
]
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
},
|
|
609
|
+
{
|
|
610
|
+
"displayName": "Id",
|
|
611
|
+
"name": "id",
|
|
612
|
+
"required": true,
|
|
613
|
+
"description": "ID of the Firewall.",
|
|
614
|
+
"default": 42,
|
|
615
|
+
"type": "number",
|
|
616
|
+
"displayOptions": {
|
|
617
|
+
"show": {
|
|
618
|
+
"resource": [
|
|
619
|
+
"Firewalls"
|
|
620
|
+
],
|
|
621
|
+
"operation": [
|
|
622
|
+
"List Actions For Firewall"
|
|
623
|
+
]
|
|
624
|
+
}
|
|
625
|
+
}
|
|
626
|
+
},
|
|
627
|
+
{
|
|
628
|
+
"displayName": "Sort",
|
|
629
|
+
"name": "sort",
|
|
630
|
+
"description": "Sort actions by field and direction. Can be used multiple times. For more\ninformation, see \"Sorting\".\n",
|
|
631
|
+
"default": "[\n null\n]",
|
|
632
|
+
"type": "json",
|
|
633
|
+
"routing": {
|
|
634
|
+
"send": {
|
|
635
|
+
"type": "query",
|
|
636
|
+
"property": "sort",
|
|
637
|
+
"value": "={{ $value }}",
|
|
638
|
+
"propertyInDotNotation": false
|
|
639
|
+
}
|
|
640
|
+
},
|
|
641
|
+
"displayOptions": {
|
|
642
|
+
"show": {
|
|
643
|
+
"resource": [
|
|
644
|
+
"Firewalls"
|
|
645
|
+
],
|
|
646
|
+
"operation": [
|
|
647
|
+
"List Actions For Firewall"
|
|
648
|
+
]
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
},
|
|
652
|
+
{
|
|
653
|
+
"displayName": "Status",
|
|
654
|
+
"name": "status",
|
|
655
|
+
"description": "Filter the actions by status. Can be used multiple times. The response will only\ncontain actions matching the specified statuses.\n",
|
|
656
|
+
"default": "[\n null\n]",
|
|
657
|
+
"type": "json",
|
|
658
|
+
"routing": {
|
|
659
|
+
"send": {
|
|
660
|
+
"type": "query",
|
|
661
|
+
"property": "status",
|
|
662
|
+
"value": "={{ $value }}",
|
|
663
|
+
"propertyInDotNotation": false
|
|
664
|
+
}
|
|
665
|
+
},
|
|
666
|
+
"displayOptions": {
|
|
667
|
+
"show": {
|
|
668
|
+
"resource": [
|
|
669
|
+
"Firewalls"
|
|
670
|
+
],
|
|
671
|
+
"operation": [
|
|
672
|
+
"List Actions For Firewall"
|
|
673
|
+
]
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
},
|
|
677
|
+
{
|
|
678
|
+
"displayName": "Page",
|
|
679
|
+
"name": "page",
|
|
680
|
+
"description": "Page number to return. For more information, see \"Pagination\".",
|
|
681
|
+
"default": 1,
|
|
682
|
+
"type": "number",
|
|
683
|
+
"routing": {
|
|
684
|
+
"send": {
|
|
685
|
+
"type": "query",
|
|
686
|
+
"property": "page",
|
|
687
|
+
"value": "={{ $value }}",
|
|
688
|
+
"propertyInDotNotation": false
|
|
689
|
+
}
|
|
690
|
+
},
|
|
691
|
+
"displayOptions": {
|
|
692
|
+
"show": {
|
|
693
|
+
"resource": [
|
|
694
|
+
"Firewalls"
|
|
695
|
+
],
|
|
696
|
+
"operation": [
|
|
697
|
+
"List Actions For Firewall"
|
|
698
|
+
]
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
},
|
|
702
|
+
{
|
|
703
|
+
"displayName": "Per Page",
|
|
704
|
+
"name": "per_page",
|
|
705
|
+
"description": "Maximum number of entries returned per page. For more information, see \"Pagination\".",
|
|
706
|
+
"default": 25,
|
|
707
|
+
"type": "number",
|
|
708
|
+
"routing": {
|
|
709
|
+
"send": {
|
|
710
|
+
"type": "query",
|
|
711
|
+
"property": "per_page",
|
|
712
|
+
"value": "={{ $value }}",
|
|
713
|
+
"propertyInDotNotation": false
|
|
714
|
+
}
|
|
715
|
+
},
|
|
716
|
+
"displayOptions": {
|
|
717
|
+
"show": {
|
|
718
|
+
"resource": [
|
|
719
|
+
"Firewalls"
|
|
720
|
+
],
|
|
721
|
+
"operation": [
|
|
722
|
+
"List Actions For Firewall"
|
|
723
|
+
]
|
|
724
|
+
}
|
|
725
|
+
}
|
|
726
|
+
},
|
|
727
|
+
{
|
|
728
|
+
"displayName": "GET /firewalls/{id}/actions/{action_id}",
|
|
729
|
+
"name": "operation",
|
|
730
|
+
"type": "notice",
|
|
731
|
+
"typeOptions": {
|
|
732
|
+
"theme": "info"
|
|
733
|
+
},
|
|
734
|
+
"default": "",
|
|
735
|
+
"displayOptions": {
|
|
736
|
+
"show": {
|
|
737
|
+
"resource": [
|
|
738
|
+
"Firewalls"
|
|
739
|
+
],
|
|
740
|
+
"operation": [
|
|
741
|
+
"Get Action For Firewall"
|
|
742
|
+
]
|
|
743
|
+
}
|
|
744
|
+
}
|
|
745
|
+
},
|
|
746
|
+
{
|
|
747
|
+
"displayName": "Id",
|
|
748
|
+
"name": "id",
|
|
749
|
+
"required": true,
|
|
750
|
+
"description": "ID of the Firewall.",
|
|
751
|
+
"default": 42,
|
|
752
|
+
"type": "number",
|
|
753
|
+
"displayOptions": {
|
|
754
|
+
"show": {
|
|
755
|
+
"resource": [
|
|
756
|
+
"Firewalls"
|
|
757
|
+
],
|
|
758
|
+
"operation": [
|
|
759
|
+
"Get Action For Firewall"
|
|
760
|
+
]
|
|
761
|
+
}
|
|
762
|
+
}
|
|
763
|
+
},
|
|
764
|
+
{
|
|
765
|
+
"displayName": "Action Id",
|
|
766
|
+
"name": "action_id",
|
|
767
|
+
"required": true,
|
|
768
|
+
"description": "ID of the Action.",
|
|
769
|
+
"default": 42,
|
|
770
|
+
"type": "number",
|
|
771
|
+
"displayOptions": {
|
|
772
|
+
"show": {
|
|
773
|
+
"resource": [
|
|
774
|
+
"Firewalls"
|
|
775
|
+
],
|
|
776
|
+
"operation": [
|
|
777
|
+
"Get Action For Firewall"
|
|
778
|
+
]
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
},
|
|
782
|
+
{
|
|
783
|
+
"displayName": "POST /firewalls/{id}/actions/apply_to_resources",
|
|
784
|
+
"name": "operation",
|
|
785
|
+
"type": "notice",
|
|
786
|
+
"typeOptions": {
|
|
787
|
+
"theme": "info"
|
|
788
|
+
},
|
|
789
|
+
"default": "",
|
|
790
|
+
"displayOptions": {
|
|
791
|
+
"show": {
|
|
792
|
+
"resource": [
|
|
793
|
+
"Firewalls"
|
|
794
|
+
],
|
|
795
|
+
"operation": [
|
|
796
|
+
"Apply To Resources"
|
|
797
|
+
]
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
},
|
|
801
|
+
{
|
|
802
|
+
"displayName": "Id",
|
|
803
|
+
"name": "id",
|
|
804
|
+
"required": true,
|
|
805
|
+
"description": "ID of the Firewall.",
|
|
806
|
+
"default": 42,
|
|
807
|
+
"type": "number",
|
|
808
|
+
"displayOptions": {
|
|
809
|
+
"show": {
|
|
810
|
+
"resource": [
|
|
811
|
+
"Firewalls"
|
|
812
|
+
],
|
|
813
|
+
"operation": [
|
|
814
|
+
"Apply To Resources"
|
|
815
|
+
]
|
|
816
|
+
}
|
|
817
|
+
}
|
|
818
|
+
},
|
|
819
|
+
{
|
|
820
|
+
"required": true,
|
|
821
|
+
"displayName": "Apply To",
|
|
822
|
+
"name": "apply_to",
|
|
823
|
+
"type": "json",
|
|
824
|
+
"default": "[\n {\n \"label_selector\": {\n \"selector\": \"env=prod\"\n },\n \"server\": {\n \"id\": 42\n }\n }\n]",
|
|
825
|
+
"description": "Resources to apply the Firewall to.\n\nExtends existing resources.\n",
|
|
826
|
+
"routing": {
|
|
827
|
+
"send": {
|
|
828
|
+
"property": "apply_to",
|
|
829
|
+
"propertyInDotNotation": false,
|
|
830
|
+
"type": "body",
|
|
831
|
+
"value": "={{ JSON.parse($value) }}"
|
|
832
|
+
}
|
|
833
|
+
},
|
|
834
|
+
"displayOptions": {
|
|
835
|
+
"show": {
|
|
836
|
+
"resource": [
|
|
837
|
+
"Firewalls"
|
|
838
|
+
],
|
|
839
|
+
"operation": [
|
|
840
|
+
"Apply To Resources"
|
|
841
|
+
]
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
},
|
|
845
|
+
{
|
|
846
|
+
"displayName": "POST /firewalls/{id}/actions/remove_from_resources",
|
|
847
|
+
"name": "operation",
|
|
848
|
+
"type": "notice",
|
|
849
|
+
"typeOptions": {
|
|
850
|
+
"theme": "info"
|
|
851
|
+
},
|
|
852
|
+
"default": "",
|
|
853
|
+
"displayOptions": {
|
|
854
|
+
"show": {
|
|
855
|
+
"resource": [
|
|
856
|
+
"Firewalls"
|
|
857
|
+
],
|
|
858
|
+
"operation": [
|
|
859
|
+
"Remove From Resources"
|
|
860
|
+
]
|
|
861
|
+
}
|
|
862
|
+
}
|
|
863
|
+
},
|
|
864
|
+
{
|
|
865
|
+
"displayName": "Id",
|
|
866
|
+
"name": "id",
|
|
867
|
+
"required": true,
|
|
868
|
+
"description": "ID of the Firewall.",
|
|
869
|
+
"default": 42,
|
|
870
|
+
"type": "number",
|
|
871
|
+
"displayOptions": {
|
|
872
|
+
"show": {
|
|
873
|
+
"resource": [
|
|
874
|
+
"Firewalls"
|
|
875
|
+
],
|
|
876
|
+
"operation": [
|
|
877
|
+
"Remove From Resources"
|
|
878
|
+
]
|
|
879
|
+
}
|
|
880
|
+
}
|
|
881
|
+
},
|
|
882
|
+
{
|
|
883
|
+
"required": true,
|
|
884
|
+
"displayName": "Remove From",
|
|
885
|
+
"name": "remove_from",
|
|
886
|
+
"type": "json",
|
|
887
|
+
"default": "[\n {\n \"label_selector\": {\n \"selector\": \"env=prod\"\n },\n \"server\": {\n \"id\": 42\n }\n }\n]",
|
|
888
|
+
"description": "Resources to remove the Firewall from.",
|
|
889
|
+
"routing": {
|
|
890
|
+
"send": {
|
|
891
|
+
"property": "remove_from",
|
|
892
|
+
"propertyInDotNotation": false,
|
|
893
|
+
"type": "body",
|
|
894
|
+
"value": "={{ JSON.parse($value) }}"
|
|
895
|
+
}
|
|
896
|
+
},
|
|
897
|
+
"displayOptions": {
|
|
898
|
+
"show": {
|
|
899
|
+
"resource": [
|
|
900
|
+
"Firewalls"
|
|
901
|
+
],
|
|
902
|
+
"operation": [
|
|
903
|
+
"Remove From Resources"
|
|
904
|
+
]
|
|
905
|
+
}
|
|
906
|
+
}
|
|
907
|
+
},
|
|
908
|
+
{
|
|
909
|
+
"displayName": "POST /firewalls/{id}/actions/set_rules",
|
|
910
|
+
"name": "operation",
|
|
911
|
+
"type": "notice",
|
|
912
|
+
"typeOptions": {
|
|
913
|
+
"theme": "info"
|
|
914
|
+
},
|
|
915
|
+
"default": "",
|
|
916
|
+
"displayOptions": {
|
|
917
|
+
"show": {
|
|
918
|
+
"resource": [
|
|
919
|
+
"Firewalls"
|
|
920
|
+
],
|
|
921
|
+
"operation": [
|
|
922
|
+
"Set Rules"
|
|
923
|
+
]
|
|
924
|
+
}
|
|
925
|
+
}
|
|
926
|
+
},
|
|
927
|
+
{
|
|
928
|
+
"displayName": "Id",
|
|
929
|
+
"name": "id",
|
|
930
|
+
"required": true,
|
|
931
|
+
"description": "ID of the Firewall.",
|
|
932
|
+
"default": 42,
|
|
933
|
+
"type": "number",
|
|
934
|
+
"displayOptions": {
|
|
935
|
+
"show": {
|
|
936
|
+
"resource": [
|
|
937
|
+
"Firewalls"
|
|
938
|
+
],
|
|
939
|
+
"operation": [
|
|
940
|
+
"Set Rules"
|
|
941
|
+
]
|
|
942
|
+
}
|
|
943
|
+
}
|
|
944
|
+
},
|
|
945
|
+
{
|
|
946
|
+
"required": true,
|
|
947
|
+
"displayName": "Rules",
|
|
948
|
+
"name": "rules",
|
|
949
|
+
"type": "json",
|
|
950
|
+
"default": "[\n {\n \"destination_ips\": [],\n \"direction\": \"in\",\n \"port\": \"80\",\n \"source_ips\": [\n \"192.0.2.2/32\",\n \"192.0.2.0/24\",\n \"2001:0db8:9a3b:ee58:5ca:990c:8bc9:c03b/128\"\n ]\n }\n]",
|
|
951
|
+
"description": "Array of rules.\n\nRules are limited to 50 entries per Firewall and [500 effective rules](https://docs.hetzner.com/cloud/firewalls/overview#limits).\n\nExisting rules will be replaced.\n",
|
|
952
|
+
"routing": {
|
|
953
|
+
"send": {
|
|
954
|
+
"property": "rules",
|
|
955
|
+
"propertyInDotNotation": false,
|
|
956
|
+
"type": "body",
|
|
957
|
+
"value": "={{ JSON.parse($value) }}"
|
|
958
|
+
}
|
|
959
|
+
},
|
|
960
|
+
"displayOptions": {
|
|
961
|
+
"show": {
|
|
962
|
+
"resource": [
|
|
963
|
+
"Firewalls"
|
|
964
|
+
],
|
|
965
|
+
"operation": [
|
|
966
|
+
"Set Rules"
|
|
967
|
+
]
|
|
968
|
+
}
|
|
969
|
+
}
|
|
970
|
+
},
|
|
971
|
+
{
|
|
972
|
+
"displayName": "GET /firewalls/actions",
|
|
973
|
+
"name": "operation",
|
|
974
|
+
"type": "notice",
|
|
975
|
+
"typeOptions": {
|
|
976
|
+
"theme": "info"
|
|
977
|
+
},
|
|
978
|
+
"default": "",
|
|
979
|
+
"displayOptions": {
|
|
980
|
+
"show": {
|
|
981
|
+
"resource": [
|
|
982
|
+
"Firewalls"
|
|
983
|
+
],
|
|
984
|
+
"operation": [
|
|
985
|
+
"List Firewall Actions"
|
|
986
|
+
]
|
|
987
|
+
}
|
|
988
|
+
}
|
|
989
|
+
},
|
|
990
|
+
{
|
|
991
|
+
"displayName": "Id",
|
|
992
|
+
"name": "id",
|
|
993
|
+
"description": "Filter the actions by ID. Can be used multiple times. The response will only contain\nactions matching the specified IDs.\n",
|
|
994
|
+
"default": "[\n 42\n]",
|
|
995
|
+
"type": "json",
|
|
996
|
+
"routing": {
|
|
997
|
+
"send": {
|
|
998
|
+
"type": "query",
|
|
999
|
+
"property": "id",
|
|
1000
|
+
"value": "={{ $value }}",
|
|
1001
|
+
"propertyInDotNotation": false
|
|
1002
|
+
}
|
|
1003
|
+
},
|
|
1004
|
+
"displayOptions": {
|
|
1005
|
+
"show": {
|
|
1006
|
+
"resource": [
|
|
1007
|
+
"Firewalls"
|
|
1008
|
+
],
|
|
1009
|
+
"operation": [
|
|
1010
|
+
"List Firewall Actions"
|
|
1011
|
+
]
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
},
|
|
1015
|
+
{
|
|
1016
|
+
"displayName": "Sort",
|
|
1017
|
+
"name": "sort",
|
|
1018
|
+
"description": "Sort actions by field and direction. Can be used multiple times. For more\ninformation, see \"Sorting\".\n",
|
|
1019
|
+
"default": "[\n null\n]",
|
|
1020
|
+
"type": "json",
|
|
1021
|
+
"routing": {
|
|
1022
|
+
"send": {
|
|
1023
|
+
"type": "query",
|
|
1024
|
+
"property": "sort",
|
|
1025
|
+
"value": "={{ $value }}",
|
|
1026
|
+
"propertyInDotNotation": false
|
|
1027
|
+
}
|
|
1028
|
+
},
|
|
1029
|
+
"displayOptions": {
|
|
1030
|
+
"show": {
|
|
1031
|
+
"resource": [
|
|
1032
|
+
"Firewalls"
|
|
1033
|
+
],
|
|
1034
|
+
"operation": [
|
|
1035
|
+
"List Firewall Actions"
|
|
1036
|
+
]
|
|
1037
|
+
}
|
|
1038
|
+
}
|
|
1039
|
+
},
|
|
1040
|
+
{
|
|
1041
|
+
"displayName": "Status",
|
|
1042
|
+
"name": "status",
|
|
1043
|
+
"description": "Filter the actions by status. Can be used multiple times. The response will only\ncontain actions matching the specified statuses.\n",
|
|
1044
|
+
"default": "[\n null\n]",
|
|
1045
|
+
"type": "json",
|
|
1046
|
+
"routing": {
|
|
1047
|
+
"send": {
|
|
1048
|
+
"type": "query",
|
|
1049
|
+
"property": "status",
|
|
1050
|
+
"value": "={{ $value }}",
|
|
1051
|
+
"propertyInDotNotation": false
|
|
1052
|
+
}
|
|
1053
|
+
},
|
|
1054
|
+
"displayOptions": {
|
|
1055
|
+
"show": {
|
|
1056
|
+
"resource": [
|
|
1057
|
+
"Firewalls"
|
|
1058
|
+
],
|
|
1059
|
+
"operation": [
|
|
1060
|
+
"List Firewall Actions"
|
|
1061
|
+
]
|
|
1062
|
+
}
|
|
1063
|
+
}
|
|
1064
|
+
},
|
|
1065
|
+
{
|
|
1066
|
+
"displayName": "Page",
|
|
1067
|
+
"name": "page",
|
|
1068
|
+
"description": "Page number to return. For more information, see \"Pagination\".",
|
|
1069
|
+
"default": 1,
|
|
1070
|
+
"type": "number",
|
|
1071
|
+
"routing": {
|
|
1072
|
+
"send": {
|
|
1073
|
+
"type": "query",
|
|
1074
|
+
"property": "page",
|
|
1075
|
+
"value": "={{ $value }}",
|
|
1076
|
+
"propertyInDotNotation": false
|
|
1077
|
+
}
|
|
1078
|
+
},
|
|
1079
|
+
"displayOptions": {
|
|
1080
|
+
"show": {
|
|
1081
|
+
"resource": [
|
|
1082
|
+
"Firewalls"
|
|
1083
|
+
],
|
|
1084
|
+
"operation": [
|
|
1085
|
+
"List Firewall Actions"
|
|
1086
|
+
]
|
|
1087
|
+
}
|
|
1088
|
+
}
|
|
1089
|
+
},
|
|
1090
|
+
{
|
|
1091
|
+
"displayName": "Per Page",
|
|
1092
|
+
"name": "per_page",
|
|
1093
|
+
"description": "Maximum number of entries returned per page. For more information, see \"Pagination\".",
|
|
1094
|
+
"default": 25,
|
|
1095
|
+
"type": "number",
|
|
1096
|
+
"routing": {
|
|
1097
|
+
"send": {
|
|
1098
|
+
"type": "query",
|
|
1099
|
+
"property": "per_page",
|
|
1100
|
+
"value": "={{ $value }}",
|
|
1101
|
+
"propertyInDotNotation": false
|
|
1102
|
+
}
|
|
1103
|
+
},
|
|
1104
|
+
"displayOptions": {
|
|
1105
|
+
"show": {
|
|
1106
|
+
"resource": [
|
|
1107
|
+
"Firewalls"
|
|
1108
|
+
],
|
|
1109
|
+
"operation": [
|
|
1110
|
+
"List Firewall Actions"
|
|
1111
|
+
]
|
|
1112
|
+
}
|
|
1113
|
+
}
|
|
1114
|
+
},
|
|
1115
|
+
{
|
|
1116
|
+
"displayName": "GET /firewalls/actions/{id}",
|
|
1117
|
+
"name": "operation",
|
|
1118
|
+
"type": "notice",
|
|
1119
|
+
"typeOptions": {
|
|
1120
|
+
"theme": "info"
|
|
1121
|
+
},
|
|
1122
|
+
"default": "",
|
|
1123
|
+
"displayOptions": {
|
|
1124
|
+
"show": {
|
|
1125
|
+
"resource": [
|
|
1126
|
+
"Firewalls"
|
|
1127
|
+
],
|
|
1128
|
+
"operation": [
|
|
1129
|
+
"Get Firewall Action"
|
|
1130
|
+
]
|
|
1131
|
+
}
|
|
1132
|
+
}
|
|
1133
|
+
},
|
|
1134
|
+
{
|
|
1135
|
+
"displayName": "Id",
|
|
1136
|
+
"name": "id",
|
|
1137
|
+
"required": true,
|
|
1138
|
+
"description": "ID of the Action.",
|
|
1139
|
+
"default": 42,
|
|
1140
|
+
"type": "number",
|
|
1141
|
+
"displayOptions": {
|
|
1142
|
+
"show": {
|
|
1143
|
+
"resource": [
|
|
1144
|
+
"Firewalls"
|
|
1145
|
+
],
|
|
1146
|
+
"operation": [
|
|
1147
|
+
"Get Firewall Action"
|
|
1148
|
+
]
|
|
1149
|
+
}
|
|
1150
|
+
}
|
|
1151
|
+
},
|
|
1152
|
+
];
|
|
1153
|
+
//# sourceMappingURL=index.js.map
|