Skip to content

Commit 62df3c4

Browse files
feat(block): add tags in ListVolumesRequest (scaleway#4262)
Co-authored-by: Jonathan R. <[email protected]>
1 parent be4b73b commit 62df3c4

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

cmd/scw/testdata/test-all-usage-block-volume-list-usage.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ ARGS:
1010
[project-id] Filter by Project ID
1111
[name] Filter the return volumes by their names
1212
[product-resource-id] Filter by a product resource ID linked to this volume (such as an Instance ID)
13+
[tags.{index}] Filter by tags. Only volumes with one or more matching tags will be returned
1314
[organization-id] Filter by Organization ID
1415
[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 | nl-ams-3 | pl-waw-1 | pl-waw-2 | pl-waw-3 | all)
1516

docs/commands/block.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ scw block volume list [arg=value ...]
275275
| project-id | | Filter by Project ID |
276276
| name | | Filter the return volumes by their names |
277277
| product-resource-id | | Filter by a product resource ID linked to this volume (such as an Instance ID) |
278+
| tags.{index} | | Filter by tags. Only volumes with one or more matching tags will be returned |
278279
| organization-id | | Filter by Organization ID |
279280
| zone | Default: `fr-par-1`<br />One of: `fr-par-1`, `fr-par-2`, `fr-par-3`, `nl-ams-1`, `nl-ams-2`, `nl-ams-3`, `pl-waw-1`, `pl-waw-2`, `pl-waw-3`, `all` | Zone to target. If none is passed will use default zone from the config |
280281

internal/namespaces/block/v1alpha1/block_cli.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,13 @@ func blockVolumeList() *core.Command {
144144
Deprecated: false,
145145
Positional: false,
146146
},
147+
{
148+
Name: "tags.{index}",
149+
Short: `Filter by tags. Only volumes with one or more matching tags will be returned`,
150+
Required: false,
151+
Deprecated: false,
152+
Positional: false,
153+
},
147154
{
148155
Name: "organization-id",
149156
Short: `Filter by Organization ID`,

0 commit comments

Comments
 (0)