Get Firewall Rule
Get Firewall Rule on the NodeRings client API (GET /v1/firewall/rules/{id}).
Authorization<token>
Bearer token
In: header
X-Organization-ID<token>
Tenant or organization identifier
In: header
Path Parameters
idstring
Query Parameters
direction?string
Optional: Filter by direction. If not specified, returns the rule regardless of direction.
Value in
"FIREWALL_DIRECTION_UNSPECIFIED" | "FIREWALL_DIRECTION_INGRESS" | "FIREWALL_DIRECTION_EGRESS"Response Body
application/json
curl -X GET "https://api.noderings.com/v1/firewall/rules/{id}?direction" \ -H "Authorization: Bearer {your_token}" \ -H "X-Organization-ID: {your_org_id}"{
"id": "string",
"rulesetId": "string",
"rule": {
"action": "FIREWALL_ACTION_UNSPECIFIED",
"protocol": "FIREWALL_PROTOCOL_UNSPECIFIED",
"direction": "FIREWALL_DIRECTION_UNSPECIFIED",
"source": {
"ips": {
"ips": [
"string"
]
},
"addressGroupIds": {
"addressGroupIds": [
"string"
]
},
"vmTags": {
"tags": [
"string"
]
}
},
"destination": {
"ips": {
"ips": [
"string"
]
},
"addressGroupIds": {
"addressGroupIds": [
"string"
]
},
"vmTags": {
"tags": [
"string"
]
}
},
"sourcePorts": "string",
"destinationPorts": "string"
},
"position": 0,
"timestamps": {
"createTime": "2019-08-24T14:15:22Z",
"updateTime": "2019-08-24T14:15:22Z"
}
}