Skip to content

Commit

Permalink
doc(instance_server): mark private_ip as deprecated (#2852)
Browse files Browse the repository at this point in the history
* doc(instance_server): mark private_ip as deprecated

* fix link

* add deprecation notice in schema
  • Loading branch information
Codelax authored Dec 17, 2024
1 parent 52518dc commit ce02850
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/resources/instance_server.md
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,8 @@ In addition to all arguments above, the following attributes are exported:
- `placement_group_policy_respected` - True when the placement group policy is respected.
- `root_volume`
- `volume_id` - The volume ID of the root volume of the server.
- `private_ip` - The Scaleway internal IP address of the server.
- `public_ip` - The public IP address of the server (Deprecated use `public_ips` instead).
- `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).
- `public_ip` - The public IP address of the server (Deprecated use `public_ips` instead).
- `public_ips` - The list of public IPs of the server.
- `id` - The ID of the IP
- `address` - The address of the IP
Expand Down
1 change: 1 addition & 0 deletions internal/services/instance/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ func ResourceServer() *schema.Resource {
Type: schema.TypeString,
Computed: true,
Description: "The Scaleway internal IP address of the server",
Deprecated: "Use ipam_ip datasource instead to fetch your server's IP in your private network.",
},
"public_ip": {
Type: schema.TypeString,
Expand Down

0 comments on commit ce02850

Please sign in to comment.