You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat(instance_ip): add type attribute
* add prefix and update doc
* update doc and add routed_ip_enabled to data sources
* support multiple IPs per instance
* lint
* lint doc
* add tests and fix issues to make them pass
* record tests
* remove extra test
* update doc link
* update cassettes
* update tests
* fix test and always set public_ip
* empty commit
Copy file name to clipboardexpand all lines: docs/data-sources/instance_ip.md
+2
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,8 @@ In addition to all above arguments, the following attributes are exported:
41
41
42
42
~> **Important:** Instance IPs' IDs are [zoned](../guides/regions_and_zones.md#resource-ids), which means they are of the form `{zone}/{id}`, e.g. `fr-par-1/11111111-1111-1111-1111-111111111111`
43
43
44
+
-`type` - The type of the IP
44
45
-`address` - The IP address.
46
+
-`prefix` - The IP Prefix.
45
47
-`reverse` - The reverse dns attached to this IP
46
48
-`organization_id` - The organization ID the IP is associated with.
Copy file name to clipboardexpand all lines: docs/data-sources/instance_servers.md
+6-1
Original file line number
Diff line number
Diff line change
@@ -44,8 +44,12 @@ In addition to all above arguments, the following attributes are exported:
44
44
~> **Important:** Instance servers' IDs are [zoned](../guides/regions_and_zones.md#resource-ids), which means they are of the form `{zone}/{id}`, e.g. `fr-par-1/11111111-1111-1111-1111-111111111111`
45
45
46
46
-`tags` - The tags associated with the server.
47
-
-`public_ip` - The public IPv4 address of the server.
47
+
-`public_ip` - The public IP address of the server.
48
48
-`private_ip` - The Scaleway internal IP address of the server.
49
+
-`public_ips` - The list of public IPs of the server
50
+
-`id` - The ID of the IP
51
+
-`address` - The address of the IP
52
+
-`prefix` - The public IP prefix of the server.
49
53
-`state` - The state of the server. Possible values are: `started`, `stopped` or `standby`.
50
54
-`zone` - The [zone](../guides/regions_and_zones.md#zones) in which the server is.
51
55
-`name` - The name of the server.
@@ -57,6 +61,7 @@ In addition to all above arguments, the following attributes are exported:
57
61
-`ipv6_address` - The default ipv6 address routed to the server. ( Only set when enable_ipv6 is set to true )
58
62
-`ipv6_gateway` - The ipv6 gateway address. ( Only set when enable_ipv6 is set to true )
59
63
-`ipv6_prefix_length` - The prefix length of the ipv6 subnet routed to the server. ( Only set when enable_ipv6 is set to true )
64
+
-`routed_ip_enabled` - True if the server support routed ip only.
60
65
-`enable_dynamic_ip` - If true a dynamic IP will be attached to the server.
61
66
-`image` - The UUID or the label of the base image used by the server.
62
67
-`placement_group_id` - The [placement group](https://developers.scaleway.com/en/products/instance/api/#placement-groups-d8f653) the server is attached to.
-`type` - (Defaults to `nat`) The type of the IP (`nat`, `routed_ipv4`, `routed_ipv6`), more information in [the documentation](https://www.scaleway.com/en/docs/compute/instances/api-cli/using-routed-ips/)
21
+
22
+
~> **Important:** An IP can migrate from `nat` to `routed_ipv4` but cannot be converted back
23
+
20
24
-`zone` - (Defaults to [provider](../index.md#zone)`zone`) The [zone](../guides/regions_and_zones.md#zones) in which the IP should be reserved.
21
25
-`project_id` - (Defaults to [provider](../index.md#project_id)`project_id`) The ID of the project the IP is associated with.
22
26
@@ -29,6 +33,7 @@ In addition to all above arguments, the following attributes are exported:
29
33
~> **Important:** Instance IPs' IDs are [zoned](../guides/regions_and_zones.md#resource-ids), which means they are of the form `{zone}/{id}`, e.g. `fr-par-1/11111111-1111-1111-1111-111111111111`
30
34
31
35
-`address` - The IP address.
36
+
-`prefix` - The IP Prefix.
32
37
-`reverse` - The reverse dns attached to this IP
33
38
-`organization_id` - The organization ID the IP is associated with.
Copy file name to clipboardexpand all lines: docs/resources/instance_server.md
+12-3
Original file line number
Diff line number
Diff line change
@@ -212,10 +212,16 @@ attached to the server. Updates to this field will trigger a stop/start of the s
212
212
213
213
-`enable_ipv6` - (Defaults to `false`) Determines if IPv6 is enabled for the server.
214
214
215
-
-`ip_id` = (Optional) The ID of the reserved IP that is attached to the server.
215
+
-`ip_id` - (Optional) The ID of the reserved IP that is attached to the server.
216
+
217
+
-`ip_ids` - (Optional) List of ID of reserved IPs that are attached to the server. Cannot be used with `ip_id`.
216
218
217
219
-`enable_dynamic_ip` - (Defaults to `false`) If true a dynamic IP will be attached to the server.
218
220
221
+
-`routed_ip_enabled` - (Defaults to `false`) If true, the server will support routed ips only. Changing it to true will migrate the server and its IP to routed type.
222
+
223
+
~> **Important:** Enabling routed ip will restart the server
224
+
219
225
-`state` - (Defaults to `started`) The state of the server. Possible values are: `started`, `stopped` or `standby`.
220
226
221
227
-`user_data` - (Optional) The user data associated with the server.
@@ -232,7 +238,7 @@ attached to the server. Updates to this field will trigger a stop/start of the s
232
238
233
239
-`replace_on_type_change` - (Defaults to false) If true, the server will be replaced if `type` is changed. Otherwise, the server will migrate.
234
240
235
-
-`bootscript_id` - The ID of the bootscript to use (set boot_type to `bootscript`).
241
+
-`bootscript_id`(Deprecated) - The ID of the bootscript to use (set boot_type to `bootscript`).
236
242
237
243
-`zone` - (Defaults to [provider](../index.md#zone)`zone`) The [zone](../guides/regions_and_zones.md#zones) in which the server should be created.
238
244
@@ -265,7 +271,10 @@ In addition to all above arguments, the following attributes are exported:
265
271
-`root_volume`
266
272
-`volume_id` - The volume ID of the root volume of the server.
267
273
-`private_ip` - The Scaleway internal IP address of the server.
268
-
-`public_ip` - The public IPv4 address of the server.
274
+
-`public_ip` - The public IP address of the server.
275
+
-`public_ips` - The list of public IPs of the server.
276
+
-`id` - The ID of the IP
277
+
-`address` - The address of the IP
269
278
-`ipv6_address` - The default ipv6 address routed to the server. ( Only set when enable_ipv6 is set to true )
270
279
-`ipv6_gateway` - The ipv6 gateway address. ( Only set when enable_ipv6 is set to true )
271
280
-`ipv6_prefix_length` - The prefix length of the ipv6 subnet routed to the server. ( Only set when enable_ipv6 is set to true )
0 commit comments