Skip to content

Commit ce02850

Browse files
authored
doc(instance_server): mark private_ip as deprecated (#2852)
* doc(instance_server): mark private_ip as deprecated * fix link * add deprecation notice in schema
1 parent 52518dc commit ce02850

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

docs/resources/instance_server.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,8 @@ In addition to all arguments above, the following attributes are exported:
286286
- `placement_group_policy_respected` - True when the placement group policy is respected.
287287
- `root_volume`
288288
- `volume_id` - The volume ID of the root volume of the server.
289-
- `private_ip` - The Scaleway internal IP address of the server.
290-
- `public_ip` - The public IP address of the server (Deprecated use `public_ips` instead).
289+
- `private_ip` - The Scaleway internal IP address of the server (Deprecated use [ipam_ip datasource](../data-sources/ipam_ip.md#instance-private-network-ip) instead).
290+
- `public_ip` - The public IP address of the server (Deprecated use `public_ips` instead).
291291
- `public_ips` - The list of public IPs of the server.
292292
- `id` - The ID of the IP
293293
- `address` - The address of the IP

internal/services/instance/server.go

+1
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ func ResourceServer() *schema.Resource {
189189
Type: schema.TypeString,
190190
Computed: true,
191191
Description: "The Scaleway internal IP address of the server",
192+
Deprecated: "Use ipam_ip datasource instead to fetch your server's IP in your private network.",
192193
},
193194
"public_ip": {
194195
Type: schema.TypeString,

0 commit comments

Comments
 (0)