CLISecurity Groups
hudl sg rule delete <sg-id> <rule-id>
Remove a single rule from a security group.
Remove a single rule from a security group. Use hudl sg get to find the rule ID you want to remove.
Usage
hudl sg rule delete <sg-id> <rule-id> [flags]Common flags
| Flag | Description |
|---|---|
--region <code> | Override the active region for this call only. |
--workspace <slug> | Override the active workspace for this call only. |
-o, --output | Output format: table (default), json, yaml, wide, name. |
--idempotency-key <key> | Attach an idempotency key so retries are safe. |
Examples
Delete a specific rule from a security group:
hudl sg rule delete 4f2a8c1b-7d3e-4a9f-b5c6-2d1e3f4a5b6c \
a1b2c3d4-e5f6-7890-abcd-ef1234567890Delete a rule with an idempotency key:
hudl sg rule delete 4f2a8c1b-7d3e-4a9f-b5c6-2d1e3f4a5b6c \
a1b2c3d4-e5f6-7890-abcd-ef1234567890 \
--idempotency-key remove-ssh-rule-001API reference
This command calls DELETE /security-groups/{id}/rules/{ruleId} under the hood. See the full request and response schema in the API reference.