Skip to content

Commit fc14694

Browse files
authored
docs(ipam_ip): change examples format (scaleway#2538)
* docs(ipam_ip): change examples format Signed-off-by: Jules Casteran <[email protected]> * add back ipam_ip by id Signed-off-by: Jules Casteran <[email protected]> --------- Signed-off-by: Jules Casteran <[email protected]>
1 parent 1b5f296 commit fc14694

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

docs/data-sources/ipam_ip.md

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,21 @@ Gets information about IP managed by IPAM service. IPAM service is used for dhcp
99

1010
## Examples
1111

12-
### Instance Private Network IP
12+
### IPAM IP ID
1313

14-
```hcl
14+
```terraform
1515
# Get info by ipam ip id
1616
data "scaleway_ipam_ip" "by_id" {
1717
ipam_ip_id = "11111111-1111-1111-1111-111111111111"
1818
}
19+
```
20+
21+
### Instance Private Network IP
22+
23+
Get Instance IP in a private network.
1924

20-
# Get Instance IP in a private network
25+
```terraform
26+
# Connect your instance to a private network using a private nic.
2127
resource "scaleway_instance_private_nic" "nic" {
2228
server_id = scaleway_instance_server.server.id
2329
private_network_id = scaleway_vpc_private_network.pn.id
@@ -38,6 +44,12 @@ data "scaleway_ipam_ip" "by_id" {
3844
type = "ipv4"
3945
}
4046
47+
48+
```
49+
50+
### RDB instance
51+
52+
```terraform
4153
# Find the private IPv4 using resource name
4254
resource "scaleway_vpc_private_network" "pn" {}
4355
@@ -61,7 +73,6 @@ data "scaleway_ipam_ip" "by_name" {
6173
}
6274
type = "ipv4"
6375
}
64-
6576
```
6677

6778
## Argument Reference

0 commit comments

Comments
 (0)