Create a security group rule
Adds a rule to the group. Omit position to append.
Authorization
bearerAuth API key created in the portal (Settings → API Keys). Send as Authorization: Bearer <key>.
In: header
Path Parameters
Project UUID.
Security group UUID.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Create or update a security-group rule.
Response Body
application/json
curl -X POST "https://example.com/cloud/project/string/firewall/groups/string/rules/" \ -H "Content-Type: application/json" \ -d '{ "type": "in", "action": "ACCEPT", "proto": "tcp" }'{ "message": "string"}