Security groups

Replace all security group rules

PUT/cloud/project/{project_uuid}/firewall/groups/{uuid}/rules/replace/

Sets the full ordered list of rules of the group. Every rule is validated first; nothing changes if one is invalid. Unchanged positions are kept, and a changed rule is replaced without leaving a gap. Returns the resulting rules.

Authorization

bearerAuth
AuthorizationBearer <token>

API key created in the portal (Settings → API Keys). Send as Authorization: Bearer <key>.

In: header

Path Parameters

project_uuid*string

Project UUID.

uuid*string

Security group UUID.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

The full security group rule list.

Response Body

application/json

curl -X PUT "https://example.com/cloud/project/string/firewall/groups/string/rules/replace/" \  -H "Content-Type: application/json" \  -d '{    "rules": [      {        "type": "in",        "action": "ACCEPT",        "proto": "tcp"      }    ]  }'
[  {    "pos": 0,    "type": "string",    "action": "string",    "proto": "string",    "source": "string",    "dest": "string",    "sport": "string",    "dport": "string",    "comment": "string",    "enable": true  }]