Creates a new Firewall.
643 matches
100 actions
Hetzner Cloud
100 actions
- Add a route to a NetworkPOSTv1.0.0
- Add a Server to a Placement GroupPOSTv1.0.0
- Add a subnet to a NetworkPOSTv1.0.0
- Add ServicePOSTv1.0.0
- Add TargetPOSTv1.0.0
- Apply to ResourcesPOSTv1.0.0
- Assign a Floating IP to a ServerPOSTv1.0.0
- Assign a Primary IP to a resourcePOSTv1.0.0
- Attach a Load Balancer to a NetworkPOSTv1.0.0
- Attach a Server to a NetworkPOSTv1.0.0
- Attach an ISO to a ServerPOSTv1.0.0
- Change AlgorithmPOSTv1.0.0
- Change alias IPs of a NetworkPOSTv1.0.0
- Change Floating IP ProtectionPOSTv1.0.0
- Change Image ProtectionPOSTv1.0.0
- Change IP range of a NetworkPOSTv1.0.0
- Change Load Balancer ProtectionPOSTv1.0.0
- Change Network ProtectionPOSTv1.0.0
- Change Primary IP ProtectionPOSTv1.0.0
- Change reverse DNS entry for a Floating IPPOSTv1.0.0
- Change reverse DNS entry for a Primary IPPOSTv1.0.0
- Change reverse DNS entry for this Load BalancerPOSTv1.0.0
- Change reverse DNS entry for this ServerPOSTv1.0.0
- Change Server ProtectionPOSTv1.0.0
- Change the Type of a Load BalancerPOSTv1.0.0
- Change the Type of a ServerPOSTv1.0.0
- Create a CertificatePOSTv1.0.0
- Create a FirewallPOSTv1.0.0
- Create a Floating IPPOSTv1.0.0
- Create a Load BalancerPOSTv1.0.0
- Create a NetworkPOSTv1.0.0
- Create a PlacementGroupPOSTv1.0.0
- Create a Primary IPPOSTv1.0.0
- Create a ServerPOSTv1.0.0
- Create Image from a ServerPOSTv1.0.0
- Detach a Load Balancer from a NetworkPOSTv1.0.0
- Detach a Server from a NetworkPOSTv1.0.0
- Detach an ISO from a ServerPOSTv1.0.0
- Disable Backups for a ServerPOSTv1.0.0
- Disable Rescue Mode for a ServerPOSTv1.0.0
- Disable the public interface of a Load BalancerPOSTv1.0.0
- Enable the public interface of a Load BalancerPOSTv1.0.0
- Get a CertificateGETv1.0.0
- Get a DatacenterGETv1.0.0
- Get a FirewallGETv1.0.0
- Get a Floating IPGETv1.0.0
- Get a Load BalancerGETv1.0.0
- Get a Load Balancer TypeGETv1.0.0
- Get a LocationGETv1.0.0
- Get a NetworkGETv1.0.0
- Get a PlacementGroupGETv1.0.0
- Get a Primary IPGETv1.0.0
- Get a ServerGETv1.0.0
- Get a Server TypeGETv1.0.0
- Get a SSH keyGETv1.0.0
- Get a VolumeGETv1.0.0
- Get all ActionsGETv1.0.0
- Get all Actions for a CertificateGETv1.0.0
- Get all Actions for a FirewallGETv1.0.0
- Get all Actions for a Floating IPGETv1.0.0
- Get all Actions for a Load BalancerGETv1.0.0
- Get all Actions for a NetworkGETv1.0.0
- Get all Actions for a ServerGETv1.0.0
- Get all Actions for a VolumeGETv1.0.0
- Get all Actions for an ImageGETv1.0.0
- Get all CertificatesGETv1.0.0
- Get all DatacentersGETv1.0.0
- Get all FirewallsGETv1.0.0
- Get all Floating IPsGETv1.0.0
- Get all ImagesGETv1.0.0
- Get all ISOsGETv1.0.0
- Get all Load Balancer TypesGETv1.0.0
- Get all Load BalancersGETv1.0.0
- Get all LocationsGETv1.0.0
- Get all NetworksGETv1.0.0
- Get all PlacementGroupsGETv1.0.0
- Get all pricesGETv1.0.0
- Get all Primary IPsGETv1.0.0
- Get all Server TypesGETv1.0.0
- Get all ServersGETv1.0.0
- Get all SSH keysGETv1.0.0
- Get all VolumesGETv1.0.0
- Get an ActionGETv1.0.0
- Get an Action for a CertificateGETv1.0.0
- Get an Action for a FirewallGETv1.0.0
- Get an Action for a Floating IPGETv1.0.0
- Get an Action for a Load BalancerGETv1.0.0
- Get an Action for a NetworkGETv1.0.0
- Get an Action for a ServerGETv1.0.0
- Get an Action for a VolumeGETv1.0.0
- Get an Action for an ImageGETv1.0.0
- Get an ImageGETv1.0.0
- Get an ISOGETv1.0.0
- Get Metrics for a LoadBalancerGETv1.0.0
- Get Metrics for a ServerGETv1.0.0
- Retry Issuance or RenewalPOSTv1.0.0
- Set RulesPOSTv1.0.0
- Unassign a Floating IPPOSTv1.0.0
- Unassign a Primary IP from a resourcePOSTv1.0.0
- Update ServicePOSTv1.0.0
Infrastructure/Hetzner Cloud
Create a Firewall
v1.0.0Input
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 61
- 62
- 63
- 64
- 65
- 66
- 67
- 68
- 69
- 70
- 71
- 72
- 73
- 74
- 75
- 76
- 77
- 78
- 79
- 80
- 81
- 82
- 83
- 84
- 85
- 86
- 87
- 88
- 89
- 90
- 91
- 92
- 93
- 94
- 95
- 96
- 97
- 98
- 99
- 100
- 101
- 102
- 103
- 104
- 105
- 106
- 107
- 108
- 109
- 110
- 111
- 112
- 113
- 114
- 115
- 116
{
"type": "object",
"required": [
"name"
],
"properties": {
"apply_to": {
"type": "array",
"description": "Resources the Firewall should be applied to after creation",
"items": {
"type": "object",
"required": [
"type"
],
"properties": {
"label_selector": {
"type": "object",
"description": "Configuration for type LabelSelector, required if type is `label_selector`",
"required": [
"selector"
],
"properties": {
"selector": {
"type": "string",
"description": "Label selector"
}
}
},
"server": {
"type": "object",
"description": "Configuration for type Server, required if type is `server`",
"required": [
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "ID of the Server"
}
}
},
"type": {
"type": "string",
"description": "Type of the resource",
"enum": [
"server",
"label_selector"
]
}
}
}
},
"labels": {
"type": "object",
"description": "User-defined labels (key-value pairs)"
},
"name": {
"type": "string",
"description": "Name of the Firewall"
},
"rules": {
"type": "array",
"description": "Array of rules",
"items": {
"type": "object",
"required": [
"direction",
"protocol"
],
"properties": {
"description": {
"type": "string",
"description": "Description of the Rule"
},
"destination_ips": {
"type": "array",
"description": "List of permitted IPv4/IPv6 addresses in CIDR notation. Use `0.0.0.0/0` to allow all IPv4 addresses and `::/0` to allow all IPv6 addresses. You can specify 100 CIDRs at most.",
"items": {
"type": "string"
}
},
"direction": {
"type": "string",
"description": "Select traffic direction on which rule should be applied. Use `source_ips` for direction `in` and `destination_ips` for direction `out`.",
"enum": [
"in",
"out"
]
},
"port": {
"type": "string",
"description": "Port or port range to which traffic will be allowed, only applicable for protocols TCP and UDP. A port range can be specified by separating two ports with a dash, e.g `1024-5000`."
},
"protocol": {
"type": "string",
"description": "Type of traffic to allow",
"enum": [
"tcp",
"udp",
"icmp",
"esp",
"gre"
]
},
"source_ips": {
"type": "array",
"description": "List of permitted IPv4/IPv6 addresses in CIDR notation. Use `0.0.0.0/0` to allow all IPv4 addresses and `::/0` to allow all IPv6 addresses. You can specify 100 CIDRs at most.",
"items": {
"type": "string"
}
}
}
}
}
}
}Output
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 61
- 62
- 63
- 64
- 65
- 66
- 67
- 68
- 69
- 70
- 71
- 72
- 73
- 74
- 75
- 76
- 77
- 78
- 79
- 80
- 81
- 82
- 83
- 84
- 85
- 86
- 87
- 88
- 89
- 90
- 91
- 92
- 93
- 94
- 95
- 96
- 97
- 98
- 99
- 100
- 101
- 102
- 103
- 104
- 105
- 106
- 107
- 108
- 109
- 110
- 111
- 112
- 113
- 114
- 115
- 116
- 117
- 118
- 119
- 120
- 121
- 122
- 123
- 124
- 125
- 126
- 127
- 128
- 129
- 130
- 131
- 132
- 133
- 134
- 135
- 136
- 137
- 138
- 139
- 140
- 141
- 142
- 143
- 144
- 145
- 146
- 147
- 148
- 149
- 150
- 151
- 152
- 153
- 154
- 155
- 156
- 157
- 158
- 159
- 160
- 161
- 162
- 163
- 164
- 165
- 166
- 167
- 168
- 169
- 170
- 171
- 172
- 173
- 174
- 175
- 176
- 177
- 178
- 179
- 180
- 181
- 182
- 183
- 184
- 185
- 186
- 187
- 188
- 189
- 190
- 191
- 192
- 193
- 194
- 195
- 196
- 197
- 198
- 199
- 200
- 201
- 202
- 203
- 204
- 205
- 206
- 207
- 208
- 209
- 210
- 211
- 212
- 213
- 214
- 215
- 216
- 217
- 218
- 219
- 220
- 221
- 222
- 223
- 224
- 225
- 226
- 227
- 228
- 229
- 230
- 231
- 232
- 233
- 234
- 235
- 236
- 237
- 238
- 239
- 240
- 241
- 242
{
"type": "object",
"properties": {
"actions": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"command",
"status",
"progress",
"started",
"finished",
"resources",
"error"
],
"properties": {
"command": {
"type": "string",
"description": "Command executed in the Action"
},
"error": {
"type": "object",
"description": "Error message for the Action if error occurred, otherwise null",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "string",
"description": "Fixed machine readable code"
},
"message": {
"type": "string",
"description": "Humanized error message"
}
}
},
"finished": {
"type": "string",
"description": "Point in time when the Action was finished (in ISO-8601 format). Only set if the Action is finished otherwise null."
},
"id": {
"type": "integer",
"description": "ID of the Resource"
},
"progress": {
"type": "number",
"description": "Progress of Action in percent"
},
"resources": {
"type": "array",
"description": "Resources the Action relates to",
"items": {
"type": "object",
"required": [
"id",
"type"
],
"properties": {
"id": {
"type": "integer",
"description": "ID of the Resource"
},
"type": {
"type": "string",
"description": "Type of resource referenced"
}
}
}
},
"started": {
"type": "string",
"description": "Point in time when the Action was started (in ISO-8601 format)"
},
"status": {
"type": "string",
"description": "Status of the Action",
"enum": [
"success",
"running",
"error"
]
}
}
}
},
"firewall": {
"type": "object",
"required": [
"applied_to",
"created",
"id",
"name",
"rules"
],
"properties": {
"applied_to": {
"type": "array",
"items": {
"type": "object",
"required": [
"type"
],
"properties": {
"applied_to_resources": {
"type": "array",
"items": {
"type": "object",
"properties": {
"server": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "ID of the Resource"
}
}
},
"type": {
"type": "string",
"description": "Type of resource referenced",
"enum": [
"server"
]
}
}
}
},
"label_selector": {
"type": "object",
"required": [
"selector"
],
"properties": {
"selector": {
"type": "string",
"description": "Label selector"
}
}
},
"server": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "ID of the Resource"
}
}
},
"type": {
"type": "string",
"description": "Type of resource referenced",
"enum": [
"server",
"label_selector"
]
}
}
}
},
"created": {
"type": "string",
"description": "Point in time when the Resource was created (in ISO-8601 format)"
},
"id": {
"type": "integer",
"description": "ID of the Resource"
},
"labels": {
"type": "object",
"description": "User-defined labels (key-value pairs)"
},
"name": {
"type": "string",
"description": "Name of the Resource. Must be unique per Project."
},
"rules": {
"type": "array",
"items": {
"type": "object",
"required": [
"direction",
"protocol"
],
"properties": {
"description": {
"type": "string",
"description": "Description of the Rule"
},
"destination_ips": {
"type": "array",
"description": "List of permitted IPv4/IPv6 addresses in CIDR notation. Use `0.0.0.0/0` to allow all IPv4 addresses and `::/0` to allow all IPv6 addresses. You can specify 100 CIDRs at most.",
"items": {
"type": "string"
}
},
"direction": {
"type": "string",
"description": "Select traffic direction on which rule should be applied. Use `source_ips` for direction `in` and `destination_ips` for direction `out`.",
"enum": [
"in",
"out"
]
},
"port": {
"type": "string",
"description": "Port or port range to which traffic will be allowed, only applicable for protocols TCP and UDP. A port range can be specified by separating two ports with a dash, e.g `1024-5000`."
},
"protocol": {
"type": "string",
"description": "Type of traffic to allow",
"enum": [
"tcp",
"udp",
"icmp",
"esp",
"gre"
]
},
"source_ips": {
"type": "array",
"description": "List of permitted IPv4/IPv6 addresses in CIDR notation. Use `0.0.0.0/0` to allow all IPv4 addresses and `::/0` to allow all IPv6 addresses. You can specify 100 CIDRs at most.",
"items": {
"type": "string"
}
}
}
}
}
}
}
}
}