Skip to content

feat(ipam): add new ip source #4767

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 2, 2025
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 @@ -10,6 +10,7 @@ ARGS:
[source.zonal] Zone the IP lives in if the IP is a public zoned IP.
[source.private-network-id] Private Network the IP lives in if the IP is a private IP.
[source.subnet-id] Private Network subnet the IP lives in if the IP is a private IP in a Private Network.
[source.vpc-id]
[is-ipv6] Request an IPv6 instead of an IPv4
[address] Request this specific IP address in the specified source pool
[tags.{index}] Tags for the IP
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ ARGS:
[tags.{index}] Tags to filter for, only IPs with one or more matching tags will be returned
[is-ipv6] Defines whether to filter only for IPv4s or IPv6s
[ip-ids.{index}] IP IDs to filter for. Only IPs with these UUIDs will be returned
[source-vpc-id]
[organization-id] Organization ID to filter for. Only IPs belonging to this Organization will be returned
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw | all)

Expand Down
2 changes: 2 additions & 0 deletions docs/commands/ipam.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ scw ipam ip create [arg=value ...]
| source.zonal | | Zone the IP lives in if the IP is a public zoned IP. |
| source.private-network-id | | Private Network the IP lives in if the IP is a private IP. |
| source.subnet-id | | Private Network subnet the IP lives in if the IP is a private IP in a Private Network. |
| source.vpc-id | | |
| is-ipv6 | | Request an IPv6 instead of an IPv4 |
| address | | Request this specific IP address in the specified source pool |
| tags.{index} | | Tags for the IP |
Expand Down Expand Up @@ -116,6 +117,7 @@ scw ipam ip list [arg=value ...]
| tags.{index} | | Tags to filter for, only IPs with one or more matching tags will be returned |
| is-ipv6 | | Defines whether to filter only for IPv4s or IPv6s |
| ip-ids.{index} | | IP IDs to filter for. Only IPs with these UUIDs will be returned |
| source-vpc-id | | |
| organization-id | | Organization ID to filter for. Only IPs belonging to this Organization will be returned |
| region | Default: `fr-par`<br />One of: `fr-par`, `nl-ams`, `pl-waw`, `all` | Region to target. If none is passed will use default region from the config |

Expand Down
12 changes: 12 additions & 0 deletions internal/namespaces/ipam/v1/ipam_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,12 @@ func ipamIPCreate() *core.Command {
Deprecated: false,
Positional: false,
},
{
Name: "source.vpc-id",
Required: false,
Deprecated: false,
Positional: false,
},
{
Name: "is-ipv6",
Short: `Request an IPv6 instead of an IPv4`,
Expand Down Expand Up @@ -491,6 +497,12 @@ func ipamIPList() *core.Command {
Deprecated: false,
Positional: false,
},
{
Name: "source-vpc-id",
Required: false,
Deprecated: false,
Positional: false,
},
{
Name: "organization-id",
Short: `Organization ID to filter for. Only IPs belonging to this Organization will be returned`,
Expand Down
Loading