pulumi-hcloud 1.24.0a1753336797__py3-none-any.whl → 1.24.0a1753509442__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pulumi_hcloud/__init__.py +1 -1
- pulumi_hcloud/_inputs.py +281 -282
- pulumi_hcloud/certificate.py +95 -96
- pulumi_hcloud/config/__init__.py +1 -1
- pulumi_hcloud/config/__init__.pyi +1 -2
- pulumi_hcloud/config/vars.py +5 -6
- pulumi_hcloud/firewall.py +41 -42
- pulumi_hcloud/firewall_attachment.py +52 -53
- pulumi_hcloud/floating_ip.py +138 -139
- pulumi_hcloud/floating_ip_assignment.py +35 -36
- pulumi_hcloud/get_certificate.py +35 -36
- pulumi_hcloud/get_certificates.py +10 -11
- pulumi_hcloud/get_datacenter.py +21 -22
- pulumi_hcloud/get_datacenters.py +10 -11
- pulumi_hcloud/get_firewall.py +33 -34
- pulumi_hcloud/get_firewalls.py +16 -17
- pulumi_hcloud/get_floating_ip.py +43 -44
- pulumi_hcloud/get_floating_ips.py +10 -11
- pulumi_hcloud/get_image.py +65 -66
- pulumi_hcloud/get_images.py +34 -35
- pulumi_hcloud/get_load_balancer.py +40 -41
- pulumi_hcloud/get_load_balancer_type.py +23 -24
- pulumi_hcloud/get_load_balancer_types.py +4 -5
- pulumi_hcloud/get_load_balancers.py +10 -11
- pulumi_hcloud/get_location.py +25 -26
- pulumi_hcloud/get_locations.py +10 -11
- pulumi_hcloud/get_network.py +37 -38
- pulumi_hcloud/get_networks.py +10 -11
- pulumi_hcloud/get_placement_group.py +39 -40
- pulumi_hcloud/get_placement_groups.py +16 -17
- pulumi_hcloud/get_primary_ip.py +45 -46
- pulumi_hcloud/get_primary_ips.py +10 -11
- pulumi_hcloud/get_server.py +70 -71
- pulumi_hcloud/get_server_type.py +35 -36
- pulumi_hcloud/get_server_types.py +10 -11
- pulumi_hcloud/get_servers.py +16 -17
- pulumi_hcloud/get_ssh_key.py +35 -36
- pulumi_hcloud/get_ssh_keys.py +14 -15
- pulumi_hcloud/get_volume.py +49 -50
- pulumi_hcloud/get_volumes.py +16 -17
- pulumi_hcloud/load_balancer.py +145 -146
- pulumi_hcloud/load_balancer_network.py +86 -87
- pulumi_hcloud/load_balancer_service.py +92 -93
- pulumi_hcloud/load_balancer_target.py +103 -104
- pulumi_hcloud/managed_certificate.py +104 -105
- pulumi_hcloud/network.py +86 -87
- pulumi_hcloud/network_route.py +52 -53
- pulumi_hcloud/network_subnet.py +93 -94
- pulumi_hcloud/outputs.py +847 -848
- pulumi_hcloud/placement_group.py +59 -60
- pulumi_hcloud/primary_ip.py +155 -156
- pulumi_hcloud/provider.py +42 -43
- pulumi_hcloud/pulumi-plugin.json +1 -1
- pulumi_hcloud/rdns.py +103 -104
- pulumi_hcloud/server.py +380 -381
- pulumi_hcloud/server_network.py +93 -94
- pulumi_hcloud/snapshot.py +52 -53
- pulumi_hcloud/ssh_key.py +61 -62
- pulumi_hcloud/uploaded_certificate.py +121 -122
- pulumi_hcloud/volume.py +146 -147
- pulumi_hcloud/volume_attachment.py +52 -53
- {pulumi_hcloud-1.24.0a1753336797.dist-info → pulumi_hcloud-1.24.0a1753509442.dist-info}/METADATA +1 -1
- pulumi_hcloud-1.24.0a1753509442.dist-info/RECORD +67 -0
- pulumi_hcloud-1.24.0a1753336797.dist-info/RECORD +0 -67
- {pulumi_hcloud-1.24.0a1753336797.dist-info → pulumi_hcloud-1.24.0a1753509442.dist-info}/WHEEL +0 -0
- {pulumi_hcloud-1.24.0a1753336797.dist-info → pulumi_hcloud-1.24.0a1753509442.dist-info}/top_level.txt +0 -0
pulumi_hcloud/server_network.py
CHANGED
@@ -2,8 +2,7 @@
|
|
2
2
|
# *** WARNING: this file was generated by pulumi-language-python. ***
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
4
|
|
5
|
-
import builtins
|
6
|
-
import copy
|
5
|
+
import builtins as _builtins
|
7
6
|
import warnings
|
8
7
|
import sys
|
9
8
|
import pulumi
|
@@ -20,20 +19,20 @@ __all__ = ['ServerNetworkInitArgs', 'ServerNetwork']
|
|
20
19
|
@pulumi.input_type
|
21
20
|
class ServerNetworkInitArgs:
|
22
21
|
def __init__(__self__, *,
|
23
|
-
server_id: pulumi.Input[
|
24
|
-
alias_ips: Optional[pulumi.Input[Sequence[pulumi.Input[
|
25
|
-
ip: Optional[pulumi.Input[
|
26
|
-
network_id: Optional[pulumi.Input[
|
27
|
-
subnet_id: Optional[pulumi.Input[
|
22
|
+
server_id: pulumi.Input[_builtins.int],
|
23
|
+
alias_ips: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
24
|
+
ip: Optional[pulumi.Input[_builtins.str]] = None,
|
25
|
+
network_id: Optional[pulumi.Input[_builtins.int]] = None,
|
26
|
+
subnet_id: Optional[pulumi.Input[_builtins.str]] = None):
|
28
27
|
"""
|
29
28
|
The set of arguments for constructing a ServerNetwork resource.
|
30
|
-
:param pulumi.Input[
|
31
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
29
|
+
:param pulumi.Input[_builtins.int] server_id: ID of the server.
|
30
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] alias_ips: Additional IPs to be assigned
|
32
31
|
to this server.
|
33
|
-
:param pulumi.Input[
|
32
|
+
:param pulumi.Input[_builtins.str] ip: IP to request to be assigned to this server.
|
34
33
|
If you do not provide this then you will be auto assigned an IP
|
35
34
|
address.
|
36
|
-
:param pulumi.Input[
|
35
|
+
:param pulumi.Input[_builtins.int] network_id: ID of the network which should be added
|
37
36
|
to the server. Required if `subnet_id` is not set. Successful creation
|
38
37
|
of the resource depends on the existence of a subnet in the Hetzner
|
39
38
|
Cloud Backend. Using `network_id` will not create an explicit
|
@@ -41,7 +40,7 @@ class ServerNetworkInitArgs:
|
|
41
40
|
to be used. Alternatively the `subnet_id` property can be used, which
|
42
41
|
will create an explicit dependency between `ServerNetwork` and
|
43
42
|
the existence of a subnet.
|
44
|
-
:param pulumi.Input[
|
43
|
+
:param pulumi.Input[_builtins.str] subnet_id: ID of the sub-network which should be
|
45
44
|
added to the Server. Required if `network_id` is not set.
|
46
45
|
_Note_: if the `ip` property is missing, the Server is currently added
|
47
46
|
to the last created subnet.
|
@@ -56,21 +55,21 @@ class ServerNetworkInitArgs:
|
|
56
55
|
if subnet_id is not None:
|
57
56
|
pulumi.set(__self__, "subnet_id", subnet_id)
|
58
57
|
|
59
|
-
@property
|
58
|
+
@_builtins.property
|
60
59
|
@pulumi.getter(name="serverId")
|
61
|
-
def server_id(self) -> pulumi.Input[
|
60
|
+
def server_id(self) -> pulumi.Input[_builtins.int]:
|
62
61
|
"""
|
63
62
|
ID of the server.
|
64
63
|
"""
|
65
64
|
return pulumi.get(self, "server_id")
|
66
65
|
|
67
66
|
@server_id.setter
|
68
|
-
def server_id(self, value: pulumi.Input[
|
67
|
+
def server_id(self, value: pulumi.Input[_builtins.int]):
|
69
68
|
pulumi.set(self, "server_id", value)
|
70
69
|
|
71
|
-
@property
|
70
|
+
@_builtins.property
|
72
71
|
@pulumi.getter(name="aliasIps")
|
73
|
-
def alias_ips(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[
|
72
|
+
def alias_ips(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
74
73
|
"""
|
75
74
|
Additional IPs to be assigned
|
76
75
|
to this server.
|
@@ -78,12 +77,12 @@ class ServerNetworkInitArgs:
|
|
78
77
|
return pulumi.get(self, "alias_ips")
|
79
78
|
|
80
79
|
@alias_ips.setter
|
81
|
-
def alias_ips(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[
|
80
|
+
def alias_ips(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
82
81
|
pulumi.set(self, "alias_ips", value)
|
83
82
|
|
84
|
-
@property
|
83
|
+
@_builtins.property
|
85
84
|
@pulumi.getter
|
86
|
-
def ip(self) -> Optional[pulumi.Input[
|
85
|
+
def ip(self) -> Optional[pulumi.Input[_builtins.str]]:
|
87
86
|
"""
|
88
87
|
IP to request to be assigned to this server.
|
89
88
|
If you do not provide this then you will be auto assigned an IP
|
@@ -92,12 +91,12 @@ class ServerNetworkInitArgs:
|
|
92
91
|
return pulumi.get(self, "ip")
|
93
92
|
|
94
93
|
@ip.setter
|
95
|
-
def ip(self, value: Optional[pulumi.Input[
|
94
|
+
def ip(self, value: Optional[pulumi.Input[_builtins.str]]):
|
96
95
|
pulumi.set(self, "ip", value)
|
97
96
|
|
98
|
-
@property
|
97
|
+
@_builtins.property
|
99
98
|
@pulumi.getter(name="networkId")
|
100
|
-
def network_id(self) -> Optional[pulumi.Input[
|
99
|
+
def network_id(self) -> Optional[pulumi.Input[_builtins.int]]:
|
101
100
|
"""
|
102
101
|
ID of the network which should be added
|
103
102
|
to the server. Required if `subnet_id` is not set. Successful creation
|
@@ -111,12 +110,12 @@ class ServerNetworkInitArgs:
|
|
111
110
|
return pulumi.get(self, "network_id")
|
112
111
|
|
113
112
|
@network_id.setter
|
114
|
-
def network_id(self, value: Optional[pulumi.Input[
|
113
|
+
def network_id(self, value: Optional[pulumi.Input[_builtins.int]]):
|
115
114
|
pulumi.set(self, "network_id", value)
|
116
115
|
|
117
|
-
@property
|
116
|
+
@_builtins.property
|
118
117
|
@pulumi.getter(name="subnetId")
|
119
|
-
def subnet_id(self) -> Optional[pulumi.Input[
|
118
|
+
def subnet_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
120
119
|
"""
|
121
120
|
ID of the sub-network which should be
|
122
121
|
added to the Server. Required if `network_id` is not set.
|
@@ -126,27 +125,27 @@ class ServerNetworkInitArgs:
|
|
126
125
|
return pulumi.get(self, "subnet_id")
|
127
126
|
|
128
127
|
@subnet_id.setter
|
129
|
-
def subnet_id(self, value: Optional[pulumi.Input[
|
128
|
+
def subnet_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
130
129
|
pulumi.set(self, "subnet_id", value)
|
131
130
|
|
132
131
|
|
133
132
|
@pulumi.input_type
|
134
133
|
class _ServerNetworkState:
|
135
134
|
def __init__(__self__, *,
|
136
|
-
alias_ips: Optional[pulumi.Input[Sequence[pulumi.Input[
|
137
|
-
ip: Optional[pulumi.Input[
|
138
|
-
mac_address: Optional[pulumi.Input[
|
139
|
-
network_id: Optional[pulumi.Input[
|
140
|
-
server_id: Optional[pulumi.Input[
|
141
|
-
subnet_id: Optional[pulumi.Input[
|
135
|
+
alias_ips: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
136
|
+
ip: Optional[pulumi.Input[_builtins.str]] = None,
|
137
|
+
mac_address: Optional[pulumi.Input[_builtins.str]] = None,
|
138
|
+
network_id: Optional[pulumi.Input[_builtins.int]] = None,
|
139
|
+
server_id: Optional[pulumi.Input[_builtins.int]] = None,
|
140
|
+
subnet_id: Optional[pulumi.Input[_builtins.str]] = None):
|
142
141
|
"""
|
143
142
|
Input properties used for looking up and filtering ServerNetwork resources.
|
144
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
143
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] alias_ips: Additional IPs to be assigned
|
145
144
|
to this server.
|
146
|
-
:param pulumi.Input[
|
145
|
+
:param pulumi.Input[_builtins.str] ip: IP to request to be assigned to this server.
|
147
146
|
If you do not provide this then you will be auto assigned an IP
|
148
147
|
address.
|
149
|
-
:param pulumi.Input[
|
148
|
+
:param pulumi.Input[_builtins.int] network_id: ID of the network which should be added
|
150
149
|
to the server. Required if `subnet_id` is not set. Successful creation
|
151
150
|
of the resource depends on the existence of a subnet in the Hetzner
|
152
151
|
Cloud Backend. Using `network_id` will not create an explicit
|
@@ -154,8 +153,8 @@ class _ServerNetworkState:
|
|
154
153
|
to be used. Alternatively the `subnet_id` property can be used, which
|
155
154
|
will create an explicit dependency between `ServerNetwork` and
|
156
155
|
the existence of a subnet.
|
157
|
-
:param pulumi.Input[
|
158
|
-
:param pulumi.Input[
|
156
|
+
:param pulumi.Input[_builtins.int] server_id: ID of the server.
|
157
|
+
:param pulumi.Input[_builtins.str] subnet_id: ID of the sub-network which should be
|
159
158
|
added to the Server. Required if `network_id` is not set.
|
160
159
|
_Note_: if the `ip` property is missing, the Server is currently added
|
161
160
|
to the last created subnet.
|
@@ -173,9 +172,9 @@ class _ServerNetworkState:
|
|
173
172
|
if subnet_id is not None:
|
174
173
|
pulumi.set(__self__, "subnet_id", subnet_id)
|
175
174
|
|
176
|
-
@property
|
175
|
+
@_builtins.property
|
177
176
|
@pulumi.getter(name="aliasIps")
|
178
|
-
def alias_ips(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[
|
177
|
+
def alias_ips(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
179
178
|
"""
|
180
179
|
Additional IPs to be assigned
|
181
180
|
to this server.
|
@@ -183,12 +182,12 @@ class _ServerNetworkState:
|
|
183
182
|
return pulumi.get(self, "alias_ips")
|
184
183
|
|
185
184
|
@alias_ips.setter
|
186
|
-
def alias_ips(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[
|
185
|
+
def alias_ips(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
187
186
|
pulumi.set(self, "alias_ips", value)
|
188
187
|
|
189
|
-
@property
|
188
|
+
@_builtins.property
|
190
189
|
@pulumi.getter
|
191
|
-
def ip(self) -> Optional[pulumi.Input[
|
190
|
+
def ip(self) -> Optional[pulumi.Input[_builtins.str]]:
|
192
191
|
"""
|
193
192
|
IP to request to be assigned to this server.
|
194
193
|
If you do not provide this then you will be auto assigned an IP
|
@@ -197,21 +196,21 @@ class _ServerNetworkState:
|
|
197
196
|
return pulumi.get(self, "ip")
|
198
197
|
|
199
198
|
@ip.setter
|
200
|
-
def ip(self, value: Optional[pulumi.Input[
|
199
|
+
def ip(self, value: Optional[pulumi.Input[_builtins.str]]):
|
201
200
|
pulumi.set(self, "ip", value)
|
202
201
|
|
203
|
-
@property
|
202
|
+
@_builtins.property
|
204
203
|
@pulumi.getter(name="macAddress")
|
205
|
-
def mac_address(self) -> Optional[pulumi.Input[
|
204
|
+
def mac_address(self) -> Optional[pulumi.Input[_builtins.str]]:
|
206
205
|
return pulumi.get(self, "mac_address")
|
207
206
|
|
208
207
|
@mac_address.setter
|
209
|
-
def mac_address(self, value: Optional[pulumi.Input[
|
208
|
+
def mac_address(self, value: Optional[pulumi.Input[_builtins.str]]):
|
210
209
|
pulumi.set(self, "mac_address", value)
|
211
210
|
|
212
|
-
@property
|
211
|
+
@_builtins.property
|
213
212
|
@pulumi.getter(name="networkId")
|
214
|
-
def network_id(self) -> Optional[pulumi.Input[
|
213
|
+
def network_id(self) -> Optional[pulumi.Input[_builtins.int]]:
|
215
214
|
"""
|
216
215
|
ID of the network which should be added
|
217
216
|
to the server. Required if `subnet_id` is not set. Successful creation
|
@@ -225,24 +224,24 @@ class _ServerNetworkState:
|
|
225
224
|
return pulumi.get(self, "network_id")
|
226
225
|
|
227
226
|
@network_id.setter
|
228
|
-
def network_id(self, value: Optional[pulumi.Input[
|
227
|
+
def network_id(self, value: Optional[pulumi.Input[_builtins.int]]):
|
229
228
|
pulumi.set(self, "network_id", value)
|
230
229
|
|
231
|
-
@property
|
230
|
+
@_builtins.property
|
232
231
|
@pulumi.getter(name="serverId")
|
233
|
-
def server_id(self) -> Optional[pulumi.Input[
|
232
|
+
def server_id(self) -> Optional[pulumi.Input[_builtins.int]]:
|
234
233
|
"""
|
235
234
|
ID of the server.
|
236
235
|
"""
|
237
236
|
return pulumi.get(self, "server_id")
|
238
237
|
|
239
238
|
@server_id.setter
|
240
|
-
def server_id(self, value: Optional[pulumi.Input[
|
239
|
+
def server_id(self, value: Optional[pulumi.Input[_builtins.int]]):
|
241
240
|
pulumi.set(self, "server_id", value)
|
242
241
|
|
243
|
-
@property
|
242
|
+
@_builtins.property
|
244
243
|
@pulumi.getter(name="subnetId")
|
245
|
-
def subnet_id(self) -> Optional[pulumi.Input[
|
244
|
+
def subnet_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
246
245
|
"""
|
247
246
|
ID of the sub-network which should be
|
248
247
|
added to the Server. Required if `network_id` is not set.
|
@@ -252,7 +251,7 @@ class _ServerNetworkState:
|
|
252
251
|
return pulumi.get(self, "subnet_id")
|
253
252
|
|
254
253
|
@subnet_id.setter
|
255
|
-
def subnet_id(self, value: Optional[pulumi.Input[
|
254
|
+
def subnet_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
256
255
|
pulumi.set(self, "subnet_id", value)
|
257
256
|
|
258
257
|
|
@@ -262,11 +261,11 @@ class ServerNetwork(pulumi.CustomResource):
|
|
262
261
|
def __init__(__self__,
|
263
262
|
resource_name: str,
|
264
263
|
opts: Optional[pulumi.ResourceOptions] = None,
|
265
|
-
alias_ips: Optional[pulumi.Input[Sequence[pulumi.Input[
|
266
|
-
ip: Optional[pulumi.Input[
|
267
|
-
network_id: Optional[pulumi.Input[
|
268
|
-
server_id: Optional[pulumi.Input[
|
269
|
-
subnet_id: Optional[pulumi.Input[
|
264
|
+
alias_ips: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
265
|
+
ip: Optional[pulumi.Input[_builtins.str]] = None,
|
266
|
+
network_id: Optional[pulumi.Input[_builtins.int]] = None,
|
267
|
+
server_id: Optional[pulumi.Input[_builtins.int]] = None,
|
268
|
+
subnet_id: Optional[pulumi.Input[_builtins.str]] = None,
|
270
269
|
__props__=None):
|
271
270
|
"""
|
272
271
|
Provides a Hetzner Cloud Server Network to represent a private network on a server in the Hetzner Cloud.
|
@@ -307,12 +306,12 @@ class ServerNetwork(pulumi.CustomResource):
|
|
307
306
|
|
308
307
|
:param str resource_name: The name of the resource.
|
309
308
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
310
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
309
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] alias_ips: Additional IPs to be assigned
|
311
310
|
to this server.
|
312
|
-
:param pulumi.Input[
|
311
|
+
:param pulumi.Input[_builtins.str] ip: IP to request to be assigned to this server.
|
313
312
|
If you do not provide this then you will be auto assigned an IP
|
314
313
|
address.
|
315
|
-
:param pulumi.Input[
|
314
|
+
:param pulumi.Input[_builtins.int] network_id: ID of the network which should be added
|
316
315
|
to the server. Required if `subnet_id` is not set. Successful creation
|
317
316
|
of the resource depends on the existence of a subnet in the Hetzner
|
318
317
|
Cloud Backend. Using `network_id` will not create an explicit
|
@@ -320,8 +319,8 @@ class ServerNetwork(pulumi.CustomResource):
|
|
320
319
|
to be used. Alternatively the `subnet_id` property can be used, which
|
321
320
|
will create an explicit dependency between `ServerNetwork` and
|
322
321
|
the existence of a subnet.
|
323
|
-
:param pulumi.Input[
|
324
|
-
:param pulumi.Input[
|
322
|
+
:param pulumi.Input[_builtins.int] server_id: ID of the server.
|
323
|
+
:param pulumi.Input[_builtins.str] subnet_id: ID of the sub-network which should be
|
325
324
|
added to the Server. Required if `network_id` is not set.
|
326
325
|
_Note_: if the `ip` property is missing, the Server is currently added
|
327
326
|
to the last created subnet.
|
@@ -384,11 +383,11 @@ class ServerNetwork(pulumi.CustomResource):
|
|
384
383
|
def _internal_init(__self__,
|
385
384
|
resource_name: str,
|
386
385
|
opts: Optional[pulumi.ResourceOptions] = None,
|
387
|
-
alias_ips: Optional[pulumi.Input[Sequence[pulumi.Input[
|
388
|
-
ip: Optional[pulumi.Input[
|
389
|
-
network_id: Optional[pulumi.Input[
|
390
|
-
server_id: Optional[pulumi.Input[
|
391
|
-
subnet_id: Optional[pulumi.Input[
|
386
|
+
alias_ips: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
387
|
+
ip: Optional[pulumi.Input[_builtins.str]] = None,
|
388
|
+
network_id: Optional[pulumi.Input[_builtins.int]] = None,
|
389
|
+
server_id: Optional[pulumi.Input[_builtins.int]] = None,
|
390
|
+
subnet_id: Optional[pulumi.Input[_builtins.str]] = None,
|
392
391
|
__props__=None):
|
393
392
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
394
393
|
if not isinstance(opts, pulumi.ResourceOptions):
|
@@ -416,12 +415,12 @@ class ServerNetwork(pulumi.CustomResource):
|
|
416
415
|
def get(resource_name: str,
|
417
416
|
id: pulumi.Input[str],
|
418
417
|
opts: Optional[pulumi.ResourceOptions] = None,
|
419
|
-
alias_ips: Optional[pulumi.Input[Sequence[pulumi.Input[
|
420
|
-
ip: Optional[pulumi.Input[
|
421
|
-
mac_address: Optional[pulumi.Input[
|
422
|
-
network_id: Optional[pulumi.Input[
|
423
|
-
server_id: Optional[pulumi.Input[
|
424
|
-
subnet_id: Optional[pulumi.Input[
|
418
|
+
alias_ips: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
419
|
+
ip: Optional[pulumi.Input[_builtins.str]] = None,
|
420
|
+
mac_address: Optional[pulumi.Input[_builtins.str]] = None,
|
421
|
+
network_id: Optional[pulumi.Input[_builtins.int]] = None,
|
422
|
+
server_id: Optional[pulumi.Input[_builtins.int]] = None,
|
423
|
+
subnet_id: Optional[pulumi.Input[_builtins.str]] = None) -> 'ServerNetwork':
|
425
424
|
"""
|
426
425
|
Get an existing ServerNetwork resource's state with the given name, id, and optional extra
|
427
426
|
properties used to qualify the lookup.
|
@@ -429,12 +428,12 @@ class ServerNetwork(pulumi.CustomResource):
|
|
429
428
|
:param str resource_name: The unique name of the resulting resource.
|
430
429
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
431
430
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
432
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
431
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] alias_ips: Additional IPs to be assigned
|
433
432
|
to this server.
|
434
|
-
:param pulumi.Input[
|
433
|
+
:param pulumi.Input[_builtins.str] ip: IP to request to be assigned to this server.
|
435
434
|
If you do not provide this then you will be auto assigned an IP
|
436
435
|
address.
|
437
|
-
:param pulumi.Input[
|
436
|
+
:param pulumi.Input[_builtins.int] network_id: ID of the network which should be added
|
438
437
|
to the server. Required if `subnet_id` is not set. Successful creation
|
439
438
|
of the resource depends on the existence of a subnet in the Hetzner
|
440
439
|
Cloud Backend. Using `network_id` will not create an explicit
|
@@ -442,8 +441,8 @@ class ServerNetwork(pulumi.CustomResource):
|
|
442
441
|
to be used. Alternatively the `subnet_id` property can be used, which
|
443
442
|
will create an explicit dependency between `ServerNetwork` and
|
444
443
|
the existence of a subnet.
|
445
|
-
:param pulumi.Input[
|
446
|
-
:param pulumi.Input[
|
444
|
+
:param pulumi.Input[_builtins.int] server_id: ID of the server.
|
445
|
+
:param pulumi.Input[_builtins.str] subnet_id: ID of the sub-network which should be
|
447
446
|
added to the Server. Required if `network_id` is not set.
|
448
447
|
_Note_: if the `ip` property is missing, the Server is currently added
|
449
448
|
to the last created subnet.
|
@@ -460,18 +459,18 @@ class ServerNetwork(pulumi.CustomResource):
|
|
460
459
|
__props__.__dict__["subnet_id"] = subnet_id
|
461
460
|
return ServerNetwork(resource_name, opts=opts, __props__=__props__)
|
462
461
|
|
463
|
-
@property
|
462
|
+
@_builtins.property
|
464
463
|
@pulumi.getter(name="aliasIps")
|
465
|
-
def alias_ips(self) -> pulumi.Output[Optional[Sequence[
|
464
|
+
def alias_ips(self) -> pulumi.Output[Optional[Sequence[_builtins.str]]]:
|
466
465
|
"""
|
467
466
|
Additional IPs to be assigned
|
468
467
|
to this server.
|
469
468
|
"""
|
470
469
|
return pulumi.get(self, "alias_ips")
|
471
470
|
|
472
|
-
@property
|
471
|
+
@_builtins.property
|
473
472
|
@pulumi.getter
|
474
|
-
def ip(self) -> pulumi.Output[
|
473
|
+
def ip(self) -> pulumi.Output[_builtins.str]:
|
475
474
|
"""
|
476
475
|
IP to request to be assigned to this server.
|
477
476
|
If you do not provide this then you will be auto assigned an IP
|
@@ -479,14 +478,14 @@ class ServerNetwork(pulumi.CustomResource):
|
|
479
478
|
"""
|
480
479
|
return pulumi.get(self, "ip")
|
481
480
|
|
482
|
-
@property
|
481
|
+
@_builtins.property
|
483
482
|
@pulumi.getter(name="macAddress")
|
484
|
-
def mac_address(self) -> pulumi.Output[
|
483
|
+
def mac_address(self) -> pulumi.Output[_builtins.str]:
|
485
484
|
return pulumi.get(self, "mac_address")
|
486
485
|
|
487
|
-
@property
|
486
|
+
@_builtins.property
|
488
487
|
@pulumi.getter(name="networkId")
|
489
|
-
def network_id(self) -> pulumi.Output[Optional[
|
488
|
+
def network_id(self) -> pulumi.Output[Optional[_builtins.int]]:
|
490
489
|
"""
|
491
490
|
ID of the network which should be added
|
492
491
|
to the server. Required if `subnet_id` is not set. Successful creation
|
@@ -499,17 +498,17 @@ class ServerNetwork(pulumi.CustomResource):
|
|
499
498
|
"""
|
500
499
|
return pulumi.get(self, "network_id")
|
501
500
|
|
502
|
-
@property
|
501
|
+
@_builtins.property
|
503
502
|
@pulumi.getter(name="serverId")
|
504
|
-
def server_id(self) -> pulumi.Output[
|
503
|
+
def server_id(self) -> pulumi.Output[_builtins.int]:
|
505
504
|
"""
|
506
505
|
ID of the server.
|
507
506
|
"""
|
508
507
|
return pulumi.get(self, "server_id")
|
509
508
|
|
510
|
-
@property
|
509
|
+
@_builtins.property
|
511
510
|
@pulumi.getter(name="subnetId")
|
512
|
-
def subnet_id(self) -> pulumi.Output[Optional[
|
511
|
+
def subnet_id(self) -> pulumi.Output[Optional[_builtins.str]]:
|
513
512
|
"""
|
514
513
|
ID of the sub-network which should be
|
515
514
|
added to the Server. Required if `network_id` is not set.
|