diff --git a/cmd/scw/testdata/test-all-usage-instance-security-group-list-usage.golden b/cmd/scw/testdata/test-all-usage-instance-security-group-list-usage.golden index 3b099baab4..44e6c05e0f 100644 --- a/cmd/scw/testdata/test-all-usage-instance-security-group-list-usage.golden +++ b/cmd/scw/testdata/test-all-usage-instance-security-group-list-usage.golden @@ -13,6 +13,7 @@ ARGS: [name] Name of the security group [project-id] The security group project ID [tags.{index}] List security groups with these exact tags (to filter with several tags, use commas to separate them) + [project-default] Filter security groups with this value for project_default [organization-id] The security group organization ID [zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | fr-par-3 | nl-ams-1 | nl-ams-2 | pl-waw-1) diff --git a/docs/commands/instance.md b/docs/commands/instance.md index ab4b1e321a..349a409918 100644 --- a/docs/commands/instance.md +++ b/docs/commands/instance.md @@ -1056,6 +1056,7 @@ scw instance security-group list [arg=value ...] | name | | Name of the security group | | project-id | | The security group project ID | | tags.{index} | | List security groups with these exact tags (to filter with several tags, use commas to separate them) | +| project-default | | Filter security groups with this value for project_default | | organization-id | | The security group organization ID | | zone | Default: `fr-par-1`
One of: `fr-par-1`, `fr-par-2`, `fr-par-3`, `nl-ams-1`, `nl-ams-2`, `pl-waw-1` | Zone to target. If none is passed will use default zone from the config | diff --git a/internal/namespaces/instance/v1/instance_cli.go b/internal/namespaces/instance/v1/instance_cli.go index 55937cdc3a..a76e019932 100644 --- a/internal/namespaces/instance/v1/instance_cli.go +++ b/internal/namespaces/instance/v1/instance_cli.go @@ -1782,6 +1782,13 @@ func instanceSecurityGroupList() *core.Command { Deprecated: false, Positional: false, }, + { + Name: "project-default", + Short: `Filter security groups with this value for project_default`, + Required: false, + Deprecated: false, + Positional: false, + }, { Name: "organization", Short: `The security group organization ID`,