Skip to content

tebib security-group

Generated from the CLI's own command tree. Run tebib security-group --help for the same text in your terminal.

Security groups: stateful firewalls on VM network interfaces.

Commands

tebib security-group create

Create a security group (no inbound rules yet: everything inbound is denied).

tebib security-group create [OPTIONS] NAME
ArgumentDescription
NAME requiredGroup name, unique in the project.
OptionValueDescription
--vpc requiredstrVPC ID.
--descriptionstrDescription.
--tagKEY=VALUE (repeatable)Tag as KEY=VALUE; repeat for more tags.
--project, -pstrProject ID (default: from the profile).
--waitflagWait until the resource is ready (or gone, for deletes).
--timeoutfloat rangeSeconds to wait with --wait. Default: 600.
--output, -otable | json | yamlOutput format.

tebib security-group delete

Delete a security group.

tebib security-group delete [OPTIONS] ID
ArgumentDescription
ID requiredSecurity group ID (sg-...).
OptionValueDescription
--yes, -yflagDon't ask for confirmation.
--waitflagWait until the resource is ready (or gone, for deletes).
--timeoutfloat rangeSeconds to wait with --wait. Default: 600.
--project, -pstrProject ID (default: from the profile).

tebib security-group list

List the project's security groups.

tebib security-group list [OPTIONS]
OptionValueDescription
--project, -pstrProject ID (default: from the profile).
--limitint rangeShow at most this many items.
--output, -otable | json | yamlOutput format.

tebib security-group show

Show one security group.

tebib security-group show [OPTIONS] ID
ArgumentDescription
ID requiredSecurity group ID (sg-...).
OptionValueDescription
--project, -pstrProject ID (default: from the profile).
--output, -otable | json | yamlOutput format.

tebib security-group update

Change a security group's description or tags.

tebib security-group update [OPTIONS] ID
ArgumentDescription
ID requiredSecurity group ID (sg-...).
OptionValueDescription
--descriptionstrNew description.
--tagKEY=VALUE (repeatable)Replace ALL tags (KEY=VALUE, repeatable).
--clear-tagsflagRemove all tags.
--project, -pstrProject ID (default: from the profile).
--output, -otable | json | yamlOutput format.

tebib security-group rule

Rules of a security group (inbound is denied unless a rule allows it).

tebib security-group rule add

Allow traffic, e.g. rule add sg-... --protocol tcp --port 22 --cidr 203.0.113.0/24.

tebib security-group rule add [OPTIONS] SG_ID
ArgumentDescription
SG_ID requiredSecurity group ID (sg-...).
OptionValueDescription
--protocol requiredstrtcp, udp, icmp or all.
--directionstringress (inbound) or egress. Default: ingress.
--portstrPort or range for tcp/udp, e.g. 22 or 8000-8100.
--cidrstrRemote range, e.g. 0.0.0.0/0 or 2001:db8::/32.
--groupstrRemote security group instead of a range (sg-...).
--ip-versionstripv4 or ipv6 (needed with --group; otherwise taken from --cidr).
--descriptionstrWhy the rule exists.
--project, -pstrProject ID (default: from the profile).
--waitflagWait until the resource is ready (or gone, for deletes).
--timeoutfloat rangeSeconds to wait with --wait. Default: 300.
--output, -otable | json | yamlOutput format.

tebib security-group rule remove

Remove a rule (traffic it allowed is denied again).

tebib security-group rule remove [OPTIONS] SG_ID RULE_ID
ArgumentDescription
SG_ID requiredSecurity group ID (sg-...).
RULE_ID requiredRule ID (sgr-...).
OptionValueDescription
--project, -pstrProject ID (default: from the profile).
--waitflagWait until the resource is ready (or gone, for deletes).
--timeoutfloat rangeSeconds to wait with --wait. Default: 300.
--output, -otable | json | yamlOutput format.