|
| 1 | +<!-- DO NOT EDIT: this file is automatically generated using scw-doc-gen --> |
| 2 | +# Documentation for `scw ipam` |
| 3 | +This API allows you to manage IP addresses with Scaleway's IP Address Management tool. |
| 4 | + |
| 5 | +- [IP management command](#ip-management-command) |
| 6 | + - [Book a new IP](#book-a-new-ip) |
| 7 | + - [Release an IP](#release-an-ip) |
| 8 | + - [Get an IP](#get-an-ip) |
| 9 | + - [List existing IPs](#list-existing-ips) |
| 10 | + - [Update an IP](#update-an-ip) |
| 11 | + |
| 12 | + |
| 13 | +## IP management command |
| 14 | + |
| 15 | +*ips_long. |
| 16 | + |
| 17 | + |
| 18 | +### Book a new IP |
| 19 | + |
| 20 | +Book a new IP from the specified source. Currently IPs can only be booked from a Private Network. |
| 21 | + |
| 22 | +**Usage:** |
| 23 | + |
| 24 | +``` |
| 25 | +scw ipam ip create [arg=value ...] |
| 26 | +``` |
| 27 | + |
| 28 | + |
| 29 | +**Args:** |
| 30 | + |
| 31 | +| Name | | Description | |
| 32 | +|------|---|-------------| |
| 33 | +| project-id | | Project ID to use. If none is passed the default project ID will be used | |
| 34 | +| source.zonal | | Zone the IP lives in if the IP is a public zoned IP. | |
| 35 | +| source.private-network-id | | Private Network the IP lives in if the IP is a private IP. | |
| 36 | +| source.subnet-id | | Private Network subnet the IP lives in if the IP is a private IP in a Private Network. | |
| 37 | +| is-ipv6 | | Request an IPv6 instead of an IPv4 | |
| 38 | +| address | | Request a specific IP in the requested source pool | |
| 39 | +| tags.{index} | | Tags for the IP | |
| 40 | +| region | Default: `fr-par`<br />One of: `fr-par`, `nl-ams`, `pl-waw` | Region to target. If none is passed will use default region from the config | |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | +### Release an IP |
| 45 | + |
| 46 | +Release an IP not currently attached to a resource, and returns it to the available IP pool. |
| 47 | + |
| 48 | +**Usage:** |
| 49 | + |
| 50 | +``` |
| 51 | +scw ipam ip delete <ip-id ...> [arg=value ...] |
| 52 | +``` |
| 53 | + |
| 54 | + |
| 55 | +**Args:** |
| 56 | + |
| 57 | +| Name | | Description | |
| 58 | +|------|---|-------------| |
| 59 | +| ip-id | Required | IP ID | |
| 60 | +| region | Default: `fr-par`<br />One of: `fr-par`, `nl-ams`, `pl-waw` | Region to target. If none is passed will use default region from the config | |
| 61 | + |
| 62 | + |
| 63 | + |
| 64 | +### Get an IP |
| 65 | + |
| 66 | +Retrieve details of an existing IP, specified by its IP ID. |
| 67 | + |
| 68 | +**Usage:** |
| 69 | + |
| 70 | +``` |
| 71 | +scw ipam ip get <ip-id ...> [arg=value ...] |
| 72 | +``` |
| 73 | + |
| 74 | + |
| 75 | +**Args:** |
| 76 | + |
| 77 | +| Name | | Description | |
| 78 | +|------|---|-------------| |
| 79 | +| ip-id | Required | IP ID | |
| 80 | +| region | Default: `fr-par`<br />One of: `fr-par`, `nl-ams`, `pl-waw` | Region to target. If none is passed will use default region from the config | |
| 81 | + |
| 82 | + |
| 83 | + |
| 84 | +### List existing IPs |
| 85 | + |
| 86 | +List existing IPs in the specified region using various filters. For example, you can filter for IPs within a specified Private Network, or for public IPs within a specified Project. By default, the IPs returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field. |
| 87 | + |
| 88 | +**Usage:** |
| 89 | + |
| 90 | +``` |
| 91 | +scw ipam ip list [arg=value ...] |
| 92 | +``` |
| 93 | + |
| 94 | + |
| 95 | +**Args:** |
| 96 | + |
| 97 | +| Name | | Description | |
| 98 | +|------|---|-------------| |
| 99 | +| order-by | One of: `created_at_desc`, `created_at_asc`, `updated_at_desc`, `updated_at_asc`, `attached_at_desc`, `attached_at_asc` | Sort order of the returned IPs | |
| 100 | +| project-id | | Project ID to filter for. Only IPs belonging to this Project will be returned | |
| 101 | +| zonal | | Zone to filter for. Only IPs that are zonal, and in this zone, will be returned | |
| 102 | +| private-network-id | | Private Network to filter for | |
| 103 | +| attached | | Defines whether to filter only for IPs which are attached to a resource | |
| 104 | +| resource-id | | Resource ID to filter for. Only IPs attached to this resource will be returned | |
| 105 | +| resource-type | One of: `unknown_type`, `instance_server`, `instance_ip`, `instance_private_nic`, `lb_server`, `fip_ip`, `vpc_gateway`, `vpc_gateway_network`, `k8s_node`, `k8s_cluster`, `rdb_instance`, `redis_cluster`, `baremetal_server`, `baremetal_private_nic` | Resource type to filter for. Only IPs attached to this type of resource will be returned | |
| 106 | +| mac-address | | MAC address to filter for. Only IPs attached to a resource with this MAC address will be returned | |
| 107 | +| tags.{index} | | Tags to filter for, only IPs with one or more matching tags will be returned | |
| 108 | +| is-ipv6 | | Defines whether to filter only for IPv4s or IPv6s | |
| 109 | +| resource-name | | Attached resource name to filter for, only IPs attached to a resource with this string within their name will be returned. | |
| 110 | +| organization-id | | Organization ID to filter for. Only IPs belonging to this Organization will be returned | |
| 111 | +| 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 | |
| 112 | + |
| 113 | + |
| 114 | + |
| 115 | +### Update an IP |
| 116 | + |
| 117 | +Update parameters including tags of the specified IP. |
| 118 | + |
| 119 | +**Usage:** |
| 120 | + |
| 121 | +``` |
| 122 | +scw ipam ip update <ip-id ...> [arg=value ...] |
| 123 | +``` |
| 124 | + |
| 125 | + |
| 126 | +**Args:** |
| 127 | + |
| 128 | +| Name | | Description | |
| 129 | +|------|---|-------------| |
| 130 | +| ip-id | Required | IP ID | |
| 131 | +| tags.{index} | | Tags for the IP | |
| 132 | +| region | Default: `fr-par`<br />One of: `fr-par`, `nl-ams`, `pl-waw` | Region to target. If none is passed will use default region from the config | |
| 133 | + |
| 134 | + |
| 135 | + |
0 commit comments