Commit 9ec0d8f 1 parent bf91b11 commit 9ec0d8f Copy full SHA for 9ec0d8f
File tree 1 file changed +26
-2
lines changed
1 file changed +26
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,9 @@ description: |-
9
9
Creates and manages Scaleway Instance Private NICs. For more information, see
10
10
[ the documentation] ( https://developers.scaleway.com/en/products/instance/api/#private-nics-a42eea ) .
11
11
12
- ## Example
12
+ ## Examples
13
+
14
+ ### Basic
13
15
14
16
``` hcl
15
17
resource "scaleway_instance_private_nic" "pnic01" {
@@ -18,19 +20,41 @@ resource "scaleway_instance_private_nic" "pnic01" {
18
20
}
19
21
```
20
22
23
+ ### With zone
24
+
25
+ ``` hcl
26
+ resource scaleway_vpc_private_network pn01 {
27
+ name = "private_network_instance"
28
+ zone = "fr-par-2"
29
+ }
30
+
31
+ resource "scaleway_instance_server" "base" {
32
+ image = "ubuntu_focal"
33
+ type = "DEV1-S"
34
+ zone = scaleway_vpc_private_network.pn01.zone
35
+ }
36
+
37
+ resource "scaleway_instance_private_nic" "pnic01" {
38
+ server_id = scaleway_instance_server.base.id
39
+ private_network_id = scaleway_vpc_private_network.pn01.id
40
+ zone = scaleway_vpc_private_network.pn01.zone
41
+ }
42
+ ```
43
+
21
44
## Arguments Reference
22
45
23
46
The following arguments are required:
24
47
25
48
- ` server_id ` - (Required) The ID of the server associated with.
26
49
- ` private_network_id ` - (Required) The ID of the private network attached to.
50
+ - ` zone ` - (Defaults to [ provider] ( ../index.md#zone ) ` zone ` ) The [ zone] ( ../guides/regions_and_zones.md#zones ) in which the server must be created.
27
51
28
52
## Attributes Reference
29
53
30
54
In addition to all above arguments, the following attributes are exported:
31
55
32
56
- ` id ` - The ID of the private NIC.
33
- - `` mac_address` - The MAC address of the private NIC.
57
+ - ` mac_address ` - The MAC address of the private NIC.
34
58
35
59
## Import
36
60
You can’t perform that action at this time.
0 commit comments