...
Name | Description | Type | Required |
---|---|---|---|
id | The ID of the firewall rule | Integer | Optional |
destinations | Array of RuleMember objects | Array | Required |
sources | Array of RuleMember objects | Array | Required |
services | Array of Service objects | Array | Required |
action | Allow, block | Enumeration | Required |
name | Name of the firewall rule | String | Required |
description | Description of the firewall rule | String | Optional |
sortOrder | Sort Order for the firewall rule | Integer | Required |
isEnabled | Specifies whether the rule is enabled | Boolean | Required |
readonly | Reserved for Armor defined rules, should always be false | Boolean | Required |
Rule Member
Name | Description | Type | Required |
---|---|---|---|
id | The ID of the rule member | Integer | Required |
name | The Name of the rule member | String | Required |
type | "group," "any" | Enumeration | Required |
values | Array of network addresses | Array | Optional (Only if type is group) |
Service
Name | Description | Type | Required |
---|---|---|---|
id | ID of the service | Integer | Required |
deviceId | ID of the device the service belongs to | Integer | Required |
location | Name of the location | String | Required |
name | Name of the service | String | Required |
description | Name of the description | String | Optional |
values | Array of ServiceValue | Array | Required |
Service Value
Name | Description | Type | Required |
---|---|---|---|
port | Port of the service to open. Eithis this or minimum/maximum port ranges must be specified. | Integer | Optional |
protocol | tcp, udp, icmp | Enumeration | Required |
subprotocol | ICMP protocol only. Available enum values: “echo-reply”, “echo-request”, “destination-unreachable”, “source-quench”, “time-exceeded” | Enumeration | Optional |
minimum | The minimumport range for the service. If this is specified, maximum is required. Either this or "port" should be specified. | Integer | Optional |
maximum | The maximum port range for the service. If this is specified, minimum is required. Either this or "port" should be specified. | Integer | Optional |
Return Definitions
Return | Description |
---|---|
200 | Your request is successful. |
202 | Your request is accepted, but may take longer than usual to complete. |
400 | Your request failed. |
404 | Your resource does not exist. For example, the virtual machine you specified does not exist. |
500 | An error occurred on the server side and cannot process the request. |
...