NodeRingsDocs

List Firewall Rules

List Firewall Rules on the NodeRings client API (GET /v1/firewall/rulesets/{rulesetId}/rules).

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

Bearer token

In: header

X-Organization-ID<token>

Tenant or organization identifier

In: header

Path Parameters

rulesetIdstring

Query Parameters

page?integer
Formatint32
pageSize?integer
Formatint32
direction?string

Optional: Filter by direction. If not specified, returns all rules 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/rulesets/{rulesetId}/rules?page&pageSize&direction" \  -H "Authorization: Bearer {your_token}" \  -H "X-Organization-ID: {your_org_id}"
{
  "rules": [
    {
      "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"
      }
    }
  ],
  "totalCount": 0
}