Skip to content

Commit accec97

Browse files
authored
feat(file): add filesystem_ids filter to ListFileSystemsRequest (#5364)
1 parent fd3b665 commit accec97

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

cmd/scw/testdata/test-all-usage-file-filesystem-list-usage.golden

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@ USAGE:
66
scw file filesystem list [arg=value ...]
77

88
ARGS:
9-
[order-by] Criteria to use when ordering the list (created_at_asc | created_at_desc | name_asc | name_desc)
10-
[project-id] Filter by project ID
11-
[name] Filter the returned filesystems by their names
12-
[tags.{index}] Filter by tags. Only filesystems with one or more matching tags will be returned
13-
[organization-id] Filter by organization ID
14-
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | all)
9+
[order-by] Criteria to use when ordering the list (created_at_asc | created_at_desc | name_asc | name_desc)
10+
[project-id] Filter by project ID
11+
[name] Filter the returned filesystems by their names
12+
[tags.{index}] Filter by tags. Only filesystems with one or more matching tags will be returned
13+
[filesystem-ids.{index}] Filter by filesystem IDs. Only filesystems with one or more matching IDs will be returned
14+
[organization-id] Filter by organization ID
15+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | all)
1516

1617
FLAGS:
1718
-h, --help help for list

docs/commands/file.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ scw file filesystem list [arg=value ...]
128128
| project-id | | Filter by project ID |
129129
| name | | Filter the returned filesystems by their names |
130130
| tags.{index} | | Filter by tags. Only filesystems with one or more matching tags will be returned |
131+
| filesystem-ids.{index} | | Filter by filesystem IDs. Only filesystems with one or more matching IDs will be returned |
131132
| organization-id | | Filter by organization ID |
132133
| region | Default: `fr-par`<br />One of: `fr-par`, `all` | Region to target. If none is passed will use default region from the config |
133134

internal/namespaces/file/v1alpha1/file_cli.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,13 @@ func fileFilesystemList() *core.Command {
131131
Deprecated: false,
132132
Positional: false,
133133
},
134+
{
135+
Name: "filesystem-ids.{index}",
136+
Short: `Filter by filesystem IDs. Only filesystems with one or more matching IDs will be returned`,
137+
Required: false,
138+
Deprecated: false,
139+
Positional: false,
140+
},
134141
{
135142
Name: "organization-id",
136143
Short: `Filter by organization ID`,

0 commit comments

Comments
 (0)