Skip to content

Commit 0d8a7e5

Browse files
feat(instance): add ip_ids for privatenic request message (#3233)
Co-authored-by: Rémy Léone <[email protected]>
1 parent 504f787 commit 0d8a7e5

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

cmd/scw/testdata/test-all-usage-instance-private-nic-create-usage.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ ARGS:
99
server-id UUID of the Instance the private NIC will be attached to
1010
private-network-id UUID of the private network where the private NIC will be attached
1111
[tags.{index}] Private NIC tags
12+
[ip-ids.{index}] Ip_ids defined from IPAM
1213
[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)
1314

1415
FLAGS:

docs/commands/instance.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -970,6 +970,7 @@ scw instance private-nic create [arg=value ...]
970970
| server-id | Required | UUID of the Instance the private NIC will be attached to |
971971
| private-network-id | Required | UUID of the private network where the private NIC will be attached |
972972
| tags.{index} | | Private NIC tags |
973+
| ip-ids.{index} | | Ip_ids defined from IPAM |
973974
| 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` | Zone to target. If none is passed will use default zone from the config |
974975

975976

internal/namespaces/instance/v1/instance_cli.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3464,6 +3464,13 @@ func instancePrivateNicCreate() *core.Command {
34643464
Deprecated: false,
34653465
Positional: false,
34663466
},
3467+
{
3468+
Name: "ip-ids.{index}",
3469+
Short: `Ip_ids defined from IPAM`,
3470+
Required: false,
3471+
Deprecated: false,
3472+
Positional: false,
3473+
},
34673474
core.ZoneArgSpec(scw.ZoneFrPar1, scw.ZoneFrPar2, scw.ZoneFrPar3, scw.ZoneNlAms1, scw.ZoneNlAms2, scw.ZoneNlAms3, scw.ZonePlWaw1, scw.ZonePlWaw2),
34683475
},
34693476
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {

0 commit comments

Comments
 (0)