NodeRingsDocs

Create Firewall Rule

Create Firewall Rule on the NodeRings client API (POST /v1/firewall/rulesets/{rulesetId}/rules).

POST
/v1/firewall/rulesets/{rulesetId}/rules
Authorization<token>

Bearer token

In: header

X-Organization-ID<token>

Tenant or organization identifier

In: header

Path Parameters

rulesetIdstring
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 POST "https://api.noderings.com/v1/firewall/rulesets/{rulesetId}/rules" \  -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"  }}'
{
  "success": true
}