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
Copy file name to clipboardExpand all lines: docs/data-sources/network.md
+12-2Lines changed: 12 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,9 +30,19 @@ data "stackit_network" "example" {
30
30
### Read-Only
31
31
32
32
-`id` (String) Terraform's internal resource ID. It is structured as "`project_id`,`network_id`".
33
+
-`ipv4_gateway` (String) The IPv4 gateway of a network. If not specified, the first IP of the network will be assigned as the gateway.
34
+
-`ipv4_nameservers` (List of String) The IPv4 nameservers of the network.
35
+
-`ipv4_prefix` (String) The IPv4 prefix of the network (CIDR).
33
36
-`ipv4_prefix_length` (Number) The IPv4 prefix length of the network.
37
+
-`ipv4_prefixes` (List of String) The IPv4 prefixes of the network.
38
+
-`ipv6_gateway` (String) The IPv6 gateway of a network. If not specified, the first IP of the network will be assigned as the gateway.
39
+
-`ipv6_nameservers` (List of String) The IPv6 nameservers of the network.
40
+
-`ipv6_prefix` (String) The IPv6 prefix of the network (CIDR).
41
+
-`ipv6_prefix_length` (Number) The IPv6 prefix length of the network.
42
+
-`ipv6_prefixes` (List of String) The IPv6 prefixes of the network.
34
43
-`labels` (Map of String) Labels are key-value string pairs which can be attached to a resource container
35
44
-`name` (String) The name of the network.
36
-
-`nameservers` (List of String) The nameservers of the network.
37
-
-`prefixes` (List of String) The prefixes of the network.
45
+
-`nameservers` (List of String, Deprecated) The nameservers of the network. This field is deprecated and will be removed soon, use `ipv4_nameservers` to configure the nameservers for IPv4.
46
+
-`prefixes` (List of String, Deprecated) The prefixes of the network. This field is deprecated and will be removed soon, use `ipv4_prefixes` to read the prefixes of the IPv4 networks.
38
47
-`public_ip` (String) The public IP of the network.
48
+
-`routed` (Boolean) Shows if the network is routed and therefore accessible from other networks.
-`ipv4_gateway` (String) The IPv4 gateway of a network. If not specified, the first IP of the network will be assigned as the gateway.
55
+
-`ipv4_nameservers` (List of String) The IPv4 nameservers of the network.
56
+
-`ipv4_prefix` (String) The IPv4 prefix of the network (CIDR).
37
57
-`ipv4_prefix_length` (Number) The IPv4 prefix length of the network.
58
+
-`ipv6_gateway` (String) The IPv6 gateway of a network. If not specified, the first IP of the network will be assigned as the gateway.
59
+
-`ipv6_nameservers` (List of String) The IPv6 nameservers of the network.
60
+
-`ipv6_prefix` (String) The IPv6 prefix of the network (CIDR).
61
+
-`ipv6_prefix_length` (Number) The IPv6 prefix length of the network.
38
62
-`labels` (Map of String) Labels are key-value string pairs which can be attached to a resource container
39
-
-`nameservers` (List of String) The nameservers of the network.
63
+
-`nameservers` (List of String, Deprecated) The nameservers of the network. This field is deprecated and will be removed soon, use `ipv4_nameservers` to configure the nameservers for IPv4.
64
+
-`no_ipv4_gateway` (Boolean) If set to `true`, the network doesn't have a gateway.
65
+
-`no_ipv6_gateway` (Boolean) If set to `true`, the network doesn't have a gateway.
66
+
-`routed` (Boolean) If set to `true`, the network is routed and therefore accessible from other networks.
40
67
41
68
### Read-Only
42
69
43
70
-`id` (String) Terraform's internal resource ID. It is structured as "`project_id`,`network_id`".
71
+
-`ipv4_prefixes` (List of String) The IPv4 prefixes of the network.
72
+
-`ipv6_prefixes` (List of String) The IPv6 prefixes of the network.
44
73
-`network_id` (String) The network ID.
45
-
-`prefixes` (List of String) The prefixes of the network.
74
+
-`prefixes` (List of String, Deprecated) The prefixes of the network. This field is deprecated and will be removed soon, use `ipv4_prefixes` to read the prefixes of the IPv4 networks.
46
75
-`public_ip` (String) The public IP of the network.
Description: "The nameservers of the network. This field is deprecated and will be removed soon, use `ipv4_nameservers` to configure the nameservers for IPv4.",
111
+
DeprecationMessage: "Use `ipv4_nameservers` to configure the nameservers for IPv4.",
112
+
Computed: true,
113
+
ElementType: types.StringType,
114
+
},
115
+
"ipv4_gateway": schema.StringAttribute{
116
+
Description: "The IPv4 gateway of a network. If not specified, the first IP of the network will be assigned as the gateway.",
117
+
Computed: true,
118
+
},
119
+
"ipv4_nameservers": schema.ListAttribute{
120
+
Description: "The IPv4 nameservers of the network.",
111
121
Computed: true,
112
122
ElementType: types.StringType,
113
123
},
124
+
"ipv4_prefix": schema.StringAttribute{
125
+
Description: "The IPv4 prefix of the network (CIDR).",
126
+
Computed: true,
127
+
},
114
128
"ipv4_prefix_length": schema.Int64Attribute{
115
129
Description: "The IPv4 prefix length of the network.",
116
130
Computed: true,
117
131
},
118
132
"prefixes": schema.ListAttribute{
119
-
Description: "The prefixes of the network.",
133
+
Description: "The prefixes of the network. This field is deprecated and will be removed soon, use `ipv4_prefixes` to read the prefixes of the IPv4 networks.",
134
+
DeprecationMessage: "Use `ipv4_prefixes` to read the prefixes of the IPv4 networks.",
135
+
Computed: true,
136
+
ElementType: types.StringType,
137
+
},
138
+
"ipv4_prefixes": schema.ListAttribute{
139
+
Description: "The IPv4 prefixes of the network.",
140
+
Computed: true,
141
+
ElementType: types.StringType,
142
+
},
143
+
"ipv6_gateway": schema.StringAttribute{
144
+
Description: "The IPv6 gateway of a network. If not specified, the first IP of the network will be assigned as the gateway.",
145
+
Computed: true,
146
+
},
147
+
"ipv6_nameservers": schema.ListAttribute{
148
+
Description: "The IPv6 nameservers of the network.",
149
+
Computed: true,
150
+
ElementType: types.StringType,
151
+
},
152
+
"ipv6_prefix": schema.StringAttribute{
153
+
Description: "The IPv6 prefix of the network (CIDR).",
154
+
Computed: true,
155
+
},
156
+
"ipv6_prefix_length": schema.Int64Attribute{
157
+
Description: "The IPv6 prefix length of the network.",
0 commit comments