server
Get a firewall rule
Return the firewall rule at the specified one-based position in the Cloud Server rule chain.
get/1.3/server/{uuid}/firewall_rule/{position}
Request
- Base URL: https://api.upcloud.com
- URL: https://api.upcloud.com/1.3/server/{uuid}/firewall_rule/{position}
- Auth: HTTP bearer
Path parameters
uuidstring uuid required
Universally unique identifier
Example:0414e0d7-4436-4037-9dd8-6eaf47dce599
Cloud Server UUID
positioninteger required
Firewall rule position
Response
Firewall rule details
Example response
{
"firewall_rule": {
"action": "accept",
"comment": "Allow SSH from the office network",
"destination_address_end": "",
"destination_address_start": "",
"destination_port_end": "22",
"destination_port_start": "22",
"direction": "in",
"family": "IPv4",
"icmp_type": "",
"position": "1",
"protocol": "tcp",
"source_address_end": "192.0.2.255",
"source_address_start": "192.0.2.1",
"source_port_end": "",
"source_port_start": ""
}
}Changes
No recorded changes to this operation across all 1 revision of this API.