Update Firewall Rule
Update Firewall Rule on the NodeRings client API (PATCH /v1/firewall/rules/{id}).
Authorization<token>
Bearer token
In: header
X-Organization-ID<token>
Tenant or organization identifier
In: header
Path Parameters
idstring
rule?
FirewallRuleInput is the client-provided rule payload for create/update. Clients must not provide id/ruleset_id/timestamps (those are server-controlled).
Response Body
application/json
curl -X PATCH "https://api.noderings.com/v1/firewall/rules/{id}" \ -H "Authorization: Bearer {your_token}" \ -H "X-Organization-ID: {your_org_id}" \ -H "Content-Type: application/json" \ -d '{ "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" }}'{
"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"
}
}