Skip to content

Commit 1e9a072

Browse files
scaleway-botyfodil
andauthored
feat(instance): added field type for ListIpsRequest (#3365)
Co-authored-by: Yacine Fodil <[email protected]>
1 parent 374b8be commit 1e9a072

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ ARGS:
1616
[project-id] Project ID in which the IPs are reserved
1717
[tags.{index}] Filter IPs with these exact tags (to filter with several tags, use commas to separate them)
1818
[name] Filter on the IP address (Works as a LIKE operation on the IP address)
19+
[type] Filter on the IP Mobility IP type (whose value should be either 'nat', 'routed_ipv4' or 'routed_ipv6')
1920
[organization-id] Organization ID in which the IPs are reserved
2021
[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)
2122

docs/commands/instance.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,7 @@ scw instance ip list [arg=value ...]
555555
| project-id | | Project ID in which the IPs are reserved |
556556
| tags.{index} | | Filter IPs with these exact tags (to filter with several tags, use commas to separate them) |
557557
| name | | Filter on the IP address (Works as a LIKE operation on the IP address) |
558+
| type | | Filter on the IP Mobility IP type (whose value should be either 'nat', 'routed_ipv4' or 'routed_ipv6') |
558559
| organization-id | | Organization ID in which the IPs are reserved |
559560
| 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 |
560561

internal/namespaces/instance/v1/instance_cli.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3109,6 +3109,13 @@ func instanceIPList() *core.Command {
31093109
Deprecated: false,
31103110
Positional: false,
31113111
},
3112+
{
3113+
Name: "type",
3114+
Short: `Filter on the IP Mobility IP type (whose value should be either 'nat', 'routed_ipv4' or 'routed_ipv6')`,
3115+
Required: false,
3116+
Deprecated: false,
3117+
Positional: false,
3118+
},
31123119
{
31133120
Name: "organization",
31143121
Short: `Organization ID in which the IPs are reserved`,

0 commit comments

Comments
 (0)