Skip to content

Commit 3df3cb3

Browse files
feat(instance): add support for project-default in instanceSecurityGroupList (#2346)
Co-authored-by: Rémy Léone <[email protected]>
1 parent 9b2269f commit 3df3cb3

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

cmd/scw/testdata/test-all-usage-instance-security-group-list-usage.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ ARGS:
1313
[name] Name of the security group
1414
[project-id] The security group project ID
1515
[tags.{index}] List security groups with these exact tags (to filter with several tags, use commas to separate them)
16+
[project-default] Filter security groups with this value for project_default
1617
[organization-id] The security group organization ID
1718
[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)
1819

docs/commands/instance.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1056,6 +1056,7 @@ scw instance security-group list [arg=value ...]
10561056
| name | | Name of the security group |
10571057
| project-id | | The security group project ID |
10581058
| tags.{index} | | List security groups with these exact tags (to filter with several tags, use commas to separate them) |
1059+
| project-default | | Filter security groups with this value for project_default |
10591060
| organization-id | | The security group organization ID |
10601061
| zone | Default: `fr-par-1`<br />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 |
10611062

internal/namespaces/instance/v1/instance_cli.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1782,6 +1782,13 @@ func instanceSecurityGroupList() *core.Command {
17821782
Deprecated: false,
17831783
Positional: false,
17841784
},
1785+
{
1786+
Name: "project-default",
1787+
Short: `Filter security groups with this value for project_default`,
1788+
Required: false,
1789+
Deprecated: false,
1790+
Positional: false,
1791+
},
17851792
{
17861793
Name: "organization",
17871794
Short: `The security group organization ID`,

0 commit comments

Comments
 (0)