CLISecurity Groups
hudl sg duplicate <id> --name <new>
Clone an existing security group, including all of its rules.
Clone an existing security group, including all of its rules. This is useful for replicating firewall configurations across regions or creating variations of an existing group.
Usage
hudl sg duplicate <id> --name <new> [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
Duplicate a security group with a new name:
hudl sg duplicate 4f2a8c1b-7d3e-4a9f-b5c6-2d1e3f4a5b6c \
--name web-servers-v2Duplicate into a different region:
hudl sg duplicate 4f2a8c1b-7d3e-4a9f-b5c6-2d1e3f4a5b6c \
--name web-servers-eu \
--region eu2API reference
This command calls POST /security-groups/{id}/duplicate under the hood. See the full request and response schema in the API reference.