CLISecurity Groups
hudl sg create <name>
Create a new (empty) security group.
Create a new (empty) security group. The group starts with no rules -- add rules with hudl sg rule add after creation.
Usage
hudl sg create <name> [flags]Flags
| Flag | Description |
|---|---|
--description <text> | Required. Human-readable description of what this security group is for. |
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
Create a security group for web traffic:
hudl sg create web-servers --description "Allow HTTP and HTTPS traffic"Create a security group for database access:
hudl sg create db-access \
--description "PostgreSQL access from app tier" \
-o jsonAPI reference
This command calls POST /security-groups under the hood. See the full request and response schema in the API reference.