NodeRingsDocs

Move Firewall Rule

Move Firewall Rule on the NodeRings client API (POST /v1/firewall/rules/{id}/move).

POST
/v1/firewall/rules/{id}/move
Authorization<token>

Bearer token

In: header

X-Organization-ID<token>

Tenant or organization identifier

In: header

Path Parameters

idstring

ID of the rule to move

targetRuleId?string
position?string
Default"FIREWALL_RULE_POSITION_UNSPECIFIED"
Value in"FIREWALL_RULE_POSITION_UNSPECIFIED" | "FIREWALL_RULE_POSITION_BEFORE" | "FIREWALL_RULE_POSITION_AFTER"

Response Body

application/json

curl -X POST "https://api.noderings.com/v1/firewall/rules/{id}/move" \  -H "Authorization: Bearer {your_token}" \  -H "X-Organization-ID: {your_org_id}" \  -H "Content-Type: application/json" \  -d '{  "targetRuleId": "string",  "position": "FIREWALL_RULE_POSITION_UNSPECIFIED"}'
{
  "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"
  }
}