Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ ARGS:
server-id UUID of the Instance the private NIC will be attached to
private-network-id UUID of the private network where the private NIC will be attached
[tags.{index}] Private NIC tags
[ip-ids.{index}] Ip_ids defined from IPAM
[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)

FLAGS:
Expand Down
1 change: 1 addition & 0 deletions docs/commands/instance.md
Original file line number Diff line number Diff line change
Expand Up @@ -970,6 +970,7 @@ scw instance private-nic create [arg=value ...]
| server-id | Required | UUID of the Instance the private NIC will be attached to |
| private-network-id | Required | UUID of the private network where the private NIC will be attached |
| tags.{index} | | Private NIC tags |
| ip-ids.{index} | | Ip_ids defined from IPAM |
| 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 |


Expand Down
7 changes: 7 additions & 0 deletions internal/namespaces/instance/v1/instance_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -3464,6 +3464,13 @@ func instancePrivateNicCreate() *core.Command {
Deprecated: false,
Positional: false,
},
{
Name: "ip-ids.{index}",
Short: `Ip_ids defined from IPAM`,
Required: false,
Deprecated: false,
Positional: false,
},
core.ZoneArgSpec(scw.ZoneFrPar1, scw.ZoneFrPar2, scw.ZoneFrPar3, scw.ZoneNlAms1, scw.ZoneNlAms2, scw.ZoneNlAms3, scw.ZonePlWaw1, scw.ZonePlWaw2),
},
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
Expand Down