pulumi-hcloud 1.22.0a1731736261__py3-none-any.whl → 1.22.0a1732277133__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/firewall.py +2 -2
- pulumi_hcloud/floating_ip.py +2 -2
- pulumi_hcloud/floating_ip_assignment.py +2 -2
- pulumi_hcloud/get_datacenter.py +20 -18
- pulumi_hcloud/get_datacenters.py +11 -44
- pulumi_hcloud/get_load_balancer_type.py +21 -19
- pulumi_hcloud/get_load_balancer_types.py +3 -3
- pulumi_hcloud/get_location.py +22 -20
- pulumi_hcloud/get_locations.py +11 -44
- pulumi_hcloud/get_server_type.py +40 -37
- pulumi_hcloud/get_server_types.py +27 -25
- pulumi_hcloud/get_ssh_key.py +34 -33
- pulumi_hcloud/get_ssh_keys.py +16 -11
- pulumi_hcloud/load_balancer.py +2 -2
- pulumi_hcloud/load_balancer_network.py +2 -2
- pulumi_hcloud/load_balancer_service.py +2 -2
- pulumi_hcloud/load_balancer_target.py +6 -6
- pulumi_hcloud/managed_certificate.py +38 -6
- pulumi_hcloud/network.py +2 -2
- pulumi_hcloud/network_route.py +2 -2
- pulumi_hcloud/network_subnet.py +2 -2
- pulumi_hcloud/outputs.py +148 -8
- pulumi_hcloud/placement_group.py +2 -2
- pulumi_hcloud/primary_ip.py +2 -2
- pulumi_hcloud/pulumi-plugin.json +1 -1
- pulumi_hcloud/rdns.py +8 -0
- pulumi_hcloud/server.py +2 -2
- pulumi_hcloud/server_network.py +2 -2
- pulumi_hcloud/snapshot.py +2 -2
- pulumi_hcloud/ssh_key.py +35 -41
- pulumi_hcloud/uploaded_certificate.py +54 -6
- pulumi_hcloud/volume.py +2 -2
- pulumi_hcloud/volume_attachment.py +2 -2
- {pulumi_hcloud-1.22.0a1731736261.dist-info → pulumi_hcloud-1.22.0a1732277133.dist-info}/METADATA +5 -5
- pulumi_hcloud-1.22.0a1732277133.dist-info/RECORD +67 -0
- {pulumi_hcloud-1.22.0a1731736261.dist-info → pulumi_hcloud-1.22.0a1732277133.dist-info}/WHEEL +1 -1
- pulumi_hcloud-1.22.0a1731736261.dist-info/RECORD +0 -67
- {pulumi_hcloud-1.22.0a1731736261.dist-info → pulumi_hcloud-1.22.0a1732277133.dist-info}/top_level.txt +0 -0
pulumi_hcloud/get_server_type.py
CHANGED
|
@@ -71,7 +71,7 @@ class GetServerTypeResult:
|
|
|
71
71
|
@pulumi.getter
|
|
72
72
|
def architecture(self) -> str:
|
|
73
73
|
"""
|
|
74
|
-
|
|
74
|
+
Architecture of the cpu for a Server of this type.
|
|
75
75
|
"""
|
|
76
76
|
return pulumi.get(self, "architecture")
|
|
77
77
|
|
|
@@ -79,20 +79,23 @@ class GetServerTypeResult:
|
|
|
79
79
|
@pulumi.getter
|
|
80
80
|
def cores(self) -> float:
|
|
81
81
|
"""
|
|
82
|
-
|
|
82
|
+
Number of cpu cores for a Server of this type.
|
|
83
83
|
"""
|
|
84
84
|
return pulumi.get(self, "cores")
|
|
85
85
|
|
|
86
86
|
@property
|
|
87
87
|
@pulumi.getter(name="cpuType")
|
|
88
88
|
def cpu_type(self) -> str:
|
|
89
|
+
"""
|
|
90
|
+
Type of cpu for a Server of this type.
|
|
91
|
+
"""
|
|
89
92
|
return pulumi.get(self, "cpu_type")
|
|
90
93
|
|
|
91
94
|
@property
|
|
92
95
|
@pulumi.getter(name="deprecationAnnounced")
|
|
93
96
|
def deprecation_announced(self) -> str:
|
|
94
97
|
"""
|
|
95
|
-
|
|
98
|
+
Date of the Server Type deprecation announcement.
|
|
96
99
|
"""
|
|
97
100
|
return pulumi.get(self, "deprecation_announced")
|
|
98
101
|
|
|
@@ -100,7 +103,7 @@ class GetServerTypeResult:
|
|
|
100
103
|
@pulumi.getter
|
|
101
104
|
def description(self) -> str:
|
|
102
105
|
"""
|
|
103
|
-
|
|
106
|
+
Description of the Server Type.
|
|
104
107
|
"""
|
|
105
108
|
return pulumi.get(self, "description")
|
|
106
109
|
|
|
@@ -108,15 +111,15 @@ class GetServerTypeResult:
|
|
|
108
111
|
@pulumi.getter
|
|
109
112
|
def disk(self) -> float:
|
|
110
113
|
"""
|
|
111
|
-
|
|
114
|
+
Disk size in GB for a Server of this type.
|
|
112
115
|
"""
|
|
113
116
|
return pulumi.get(self, "disk")
|
|
114
117
|
|
|
115
118
|
@property
|
|
116
119
|
@pulumi.getter
|
|
117
|
-
def id(self) -> int:
|
|
120
|
+
def id(self) -> Optional[int]:
|
|
118
121
|
"""
|
|
119
|
-
|
|
122
|
+
ID of the Server Type.
|
|
120
123
|
"""
|
|
121
124
|
return pulumi.get(self, "id")
|
|
122
125
|
|
|
@@ -124,16 +127,13 @@ class GetServerTypeResult:
|
|
|
124
127
|
@pulumi.getter(name="includedTraffic")
|
|
125
128
|
@_utilities.deprecated("""The field is deprecated and will always report 0 after 2024-08-05.""")
|
|
126
129
|
def included_traffic(self) -> int:
|
|
127
|
-
"""
|
|
128
|
-
(int) Free traffic per month in bytes. **Warning**: This field is deprecated and will report `0` after 2024-08-05.
|
|
129
|
-
"""
|
|
130
130
|
return pulumi.get(self, "included_traffic")
|
|
131
131
|
|
|
132
132
|
@property
|
|
133
133
|
@pulumi.getter(name="isDeprecated")
|
|
134
134
|
def is_deprecated(self) -> bool:
|
|
135
135
|
"""
|
|
136
|
-
|
|
136
|
+
Whether the Server Type is deprecated.
|
|
137
137
|
"""
|
|
138
138
|
return pulumi.get(self, "is_deprecated")
|
|
139
139
|
|
|
@@ -141,28 +141,31 @@ class GetServerTypeResult:
|
|
|
141
141
|
@pulumi.getter
|
|
142
142
|
def memory(self) -> float:
|
|
143
143
|
"""
|
|
144
|
-
|
|
144
|
+
Memory in GB for a Server of this type.
|
|
145
145
|
"""
|
|
146
146
|
return pulumi.get(self, "memory")
|
|
147
147
|
|
|
148
148
|
@property
|
|
149
149
|
@pulumi.getter
|
|
150
|
-
def name(self) -> str:
|
|
150
|
+
def name(self) -> Optional[str]:
|
|
151
151
|
"""
|
|
152
|
-
|
|
152
|
+
Name of the Server Type.
|
|
153
153
|
"""
|
|
154
154
|
return pulumi.get(self, "name")
|
|
155
155
|
|
|
156
156
|
@property
|
|
157
157
|
@pulumi.getter(name="storageType")
|
|
158
158
|
def storage_type(self) -> str:
|
|
159
|
+
"""
|
|
160
|
+
Type of boot drive for a Server of this type.
|
|
161
|
+
"""
|
|
159
162
|
return pulumi.get(self, "storage_type")
|
|
160
163
|
|
|
161
164
|
@property
|
|
162
165
|
@pulumi.getter(name="unavailableAfter")
|
|
163
166
|
def unavailable_after(self) -> str:
|
|
164
167
|
"""
|
|
165
|
-
|
|
168
|
+
Date of the Server Type removal. After this date, the Server Type cannot be used anymore.
|
|
166
169
|
"""
|
|
167
170
|
return pulumi.get(self, "unavailable_after")
|
|
168
171
|
|
|
@@ -188,13 +191,12 @@ class AwaitableGetServerTypeResult(GetServerTypeResult):
|
|
|
188
191
|
unavailable_after=self.unavailable_after)
|
|
189
192
|
|
|
190
193
|
|
|
191
|
-
def get_server_type(
|
|
192
|
-
id: Optional[int] = None,
|
|
194
|
+
def get_server_type(id: Optional[int] = None,
|
|
193
195
|
name: Optional[str] = None,
|
|
194
|
-
unavailable_after: Optional[str] = None,
|
|
195
196
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetServerTypeResult:
|
|
196
197
|
"""
|
|
197
198
|
Provides details about a specific Hetzner Cloud Server Type.
|
|
199
|
+
|
|
198
200
|
Use this resource to get detailed information about specific Server Type.
|
|
199
201
|
|
|
200
202
|
## Example Usage
|
|
@@ -203,21 +205,22 @@ def get_server_type(deprecation_announced: Optional[str] = None,
|
|
|
203
205
|
import pulumi
|
|
204
206
|
import pulumi_hcloud as hcloud
|
|
205
207
|
|
|
206
|
-
|
|
207
|
-
|
|
208
|
+
by_id = hcloud.get_server_type(id=22)
|
|
209
|
+
by_name = hcloud.get_server_type(name="cx22")
|
|
210
|
+
main = hcloud.Server("main",
|
|
211
|
+
name="my-server",
|
|
212
|
+
location="fsn1",
|
|
213
|
+
image="debian-12",
|
|
214
|
+
server_type=by_name.name)
|
|
208
215
|
```
|
|
209
216
|
|
|
210
217
|
|
|
211
|
-
:param
|
|
212
|
-
:param
|
|
213
|
-
:param str name: Name of the server_type.
|
|
214
|
-
:param str unavailable_after: (Optional, string) Date when the server type will not be available for new servers. Only set when the server type is deprecated.
|
|
218
|
+
:param int id: ID of the Server Type.
|
|
219
|
+
:param str name: Name of the Server Type.
|
|
215
220
|
"""
|
|
216
221
|
__args__ = dict()
|
|
217
|
-
__args__['deprecationAnnounced'] = deprecation_announced
|
|
218
222
|
__args__['id'] = id
|
|
219
223
|
__args__['name'] = name
|
|
220
|
-
__args__['unavailableAfter'] = unavailable_after
|
|
221
224
|
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
222
225
|
__ret__ = pulumi.runtime.invoke('hcloud:index/getServerType:getServerType', __args__, opts=opts, typ=GetServerTypeResult).value
|
|
223
226
|
|
|
@@ -235,13 +238,12 @@ def get_server_type(deprecation_announced: Optional[str] = None,
|
|
|
235
238
|
name=pulumi.get(__ret__, 'name'),
|
|
236
239
|
storage_type=pulumi.get(__ret__, 'storage_type'),
|
|
237
240
|
unavailable_after=pulumi.get(__ret__, 'unavailable_after'))
|
|
238
|
-
def get_server_type_output(
|
|
239
|
-
id: Optional[pulumi.Input[Optional[int]]] = None,
|
|
241
|
+
def get_server_type_output(id: Optional[pulumi.Input[Optional[int]]] = None,
|
|
240
242
|
name: Optional[pulumi.Input[Optional[str]]] = None,
|
|
241
|
-
unavailable_after: Optional[pulumi.Input[Optional[str]]] = None,
|
|
242
243
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetServerTypeResult]:
|
|
243
244
|
"""
|
|
244
245
|
Provides details about a specific Hetzner Cloud Server Type.
|
|
246
|
+
|
|
245
247
|
Use this resource to get detailed information about specific Server Type.
|
|
246
248
|
|
|
247
249
|
## Example Usage
|
|
@@ -250,21 +252,22 @@ def get_server_type_output(deprecation_announced: Optional[pulumi.Input[Optional
|
|
|
250
252
|
import pulumi
|
|
251
253
|
import pulumi_hcloud as hcloud
|
|
252
254
|
|
|
253
|
-
|
|
254
|
-
|
|
255
|
+
by_id = hcloud.get_server_type(id=22)
|
|
256
|
+
by_name = hcloud.get_server_type(name="cx22")
|
|
257
|
+
main = hcloud.Server("main",
|
|
258
|
+
name="my-server",
|
|
259
|
+
location="fsn1",
|
|
260
|
+
image="debian-12",
|
|
261
|
+
server_type=by_name.name)
|
|
255
262
|
```
|
|
256
263
|
|
|
257
264
|
|
|
258
|
-
:param
|
|
259
|
-
:param
|
|
260
|
-
:param str name: Name of the server_type.
|
|
261
|
-
:param str unavailable_after: (Optional, string) Date when the server type will not be available for new servers. Only set when the server type is deprecated.
|
|
265
|
+
:param int id: ID of the Server Type.
|
|
266
|
+
:param str name: Name of the Server Type.
|
|
262
267
|
"""
|
|
263
268
|
__args__ = dict()
|
|
264
|
-
__args__['deprecationAnnounced'] = deprecation_announced
|
|
265
269
|
__args__['id'] = id
|
|
266
270
|
__args__['name'] = name
|
|
267
|
-
__args__['unavailableAfter'] = unavailable_after
|
|
268
271
|
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
269
272
|
__ret__ = pulumi.runtime.invoke_output('hcloud:index/getServerType:getServerType', __args__, opts=opts, typ=GetServerTypeResult)
|
|
270
273
|
return __ret__.apply(lambda __response__: GetServerTypeResult(
|
|
@@ -47,32 +47,32 @@ class GetServerTypesResult:
|
|
|
47
47
|
@property
|
|
48
48
|
@pulumi.getter
|
|
49
49
|
@_utilities.deprecated("""Use server_types list instead""")
|
|
50
|
-
def descriptions(self) ->
|
|
50
|
+
def descriptions(self) -> Sequence[str]:
|
|
51
51
|
return pulumi.get(self, "descriptions")
|
|
52
52
|
|
|
53
53
|
@property
|
|
54
54
|
@pulumi.getter
|
|
55
|
-
def id(self) ->
|
|
55
|
+
def id(self) -> str:
|
|
56
|
+
"""
|
|
57
|
+
The ID of this resource.
|
|
58
|
+
"""
|
|
56
59
|
return pulumi.get(self, "id")
|
|
57
60
|
|
|
58
61
|
@property
|
|
59
62
|
@pulumi.getter
|
|
60
63
|
@_utilities.deprecated("""Use server_types list instead""")
|
|
61
|
-
def names(self) ->
|
|
64
|
+
def names(self) -> Sequence[str]:
|
|
62
65
|
return pulumi.get(self, "names")
|
|
63
66
|
|
|
64
67
|
@property
|
|
65
68
|
@pulumi.getter(name="serverTypeIds")
|
|
66
69
|
@_utilities.deprecated("""Use server_types list instead""")
|
|
67
|
-
def server_type_ids(self) ->
|
|
70
|
+
def server_type_ids(self) -> Sequence[str]:
|
|
68
71
|
return pulumi.get(self, "server_type_ids")
|
|
69
72
|
|
|
70
73
|
@property
|
|
71
74
|
@pulumi.getter(name="serverTypes")
|
|
72
75
|
def server_types(self) -> Sequence['outputs.GetServerTypesServerTypeResult']:
|
|
73
|
-
"""
|
|
74
|
-
(list) List of all server types. See `data.hcloud_server_type` for schema.
|
|
75
|
-
"""
|
|
76
76
|
return pulumi.get(self, "server_types")
|
|
77
77
|
|
|
78
78
|
|
|
@@ -89,19 +89,20 @@ class AwaitableGetServerTypesResult(GetServerTypesResult):
|
|
|
89
89
|
server_types=self.server_types)
|
|
90
90
|
|
|
91
91
|
|
|
92
|
-
def get_server_types(
|
|
93
|
-
id: Optional[str] = None,
|
|
94
|
-
names: Optional[Sequence[str]] = None,
|
|
95
|
-
server_type_ids: Optional[Sequence[str]] = None,
|
|
96
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetServerTypesResult:
|
|
92
|
+
def get_server_types(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetServerTypesResult:
|
|
97
93
|
"""
|
|
98
94
|
Provides a list of available Hetzner Cloud Server Types.
|
|
95
|
+
|
|
96
|
+
## Example Usage
|
|
97
|
+
|
|
98
|
+
```python
|
|
99
|
+
import pulumi
|
|
100
|
+
import pulumi_hcloud as hcloud
|
|
101
|
+
|
|
102
|
+
all = hcloud.get_server_types()
|
|
103
|
+
```
|
|
99
104
|
"""
|
|
100
105
|
__args__ = dict()
|
|
101
|
-
__args__['descriptions'] = descriptions
|
|
102
|
-
__args__['id'] = id
|
|
103
|
-
__args__['names'] = names
|
|
104
|
-
__args__['serverTypeIds'] = server_type_ids
|
|
105
106
|
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
106
107
|
__ret__ = pulumi.runtime.invoke('hcloud:index/getServerTypes:getServerTypes', __args__, opts=opts, typ=GetServerTypesResult).value
|
|
107
108
|
|
|
@@ -111,19 +112,20 @@ def get_server_types(descriptions: Optional[Sequence[str]] = None,
|
|
|
111
112
|
names=pulumi.get(__ret__, 'names'),
|
|
112
113
|
server_type_ids=pulumi.get(__ret__, 'server_type_ids'),
|
|
113
114
|
server_types=pulumi.get(__ret__, 'server_types'))
|
|
114
|
-
def get_server_types_output(
|
|
115
|
-
id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
116
|
-
names: Optional[pulumi.Input[Optional[Sequence[str]]]] = None,
|
|
117
|
-
server_type_ids: Optional[pulumi.Input[Optional[Sequence[str]]]] = None,
|
|
118
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetServerTypesResult]:
|
|
115
|
+
def get_server_types_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetServerTypesResult]:
|
|
119
116
|
"""
|
|
120
117
|
Provides a list of available Hetzner Cloud Server Types.
|
|
118
|
+
|
|
119
|
+
## Example Usage
|
|
120
|
+
|
|
121
|
+
```python
|
|
122
|
+
import pulumi
|
|
123
|
+
import pulumi_hcloud as hcloud
|
|
124
|
+
|
|
125
|
+
all = hcloud.get_server_types()
|
|
126
|
+
```
|
|
121
127
|
"""
|
|
122
128
|
__args__ = dict()
|
|
123
|
-
__args__['descriptions'] = descriptions
|
|
124
|
-
__args__['id'] = id
|
|
125
|
-
__args__['names'] = names
|
|
126
|
-
__args__['serverTypeIds'] = server_type_ids
|
|
127
129
|
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
128
130
|
__ret__ = pulumi.runtime.invoke_output('hcloud:index/getServerTypes:getServerTypes', __args__, opts=opts, typ=GetServerTypesResult)
|
|
129
131
|
return __ret__.apply(lambda __response__: GetServerTypesResult(
|
pulumi_hcloud/get_ssh_key.py
CHANGED
|
@@ -51,30 +51,33 @@ class GetSshKeyResult:
|
|
|
51
51
|
|
|
52
52
|
@property
|
|
53
53
|
@pulumi.getter
|
|
54
|
-
def fingerprint(self) -> str:
|
|
54
|
+
def fingerprint(self) -> Optional[str]:
|
|
55
55
|
"""
|
|
56
|
-
|
|
56
|
+
Fingerprint of the SSH Key.
|
|
57
57
|
"""
|
|
58
58
|
return pulumi.get(self, "fingerprint")
|
|
59
59
|
|
|
60
60
|
@property
|
|
61
61
|
@pulumi.getter
|
|
62
|
-
def id(self) -> int:
|
|
62
|
+
def id(self) -> Optional[int]:
|
|
63
63
|
"""
|
|
64
|
-
|
|
64
|
+
ID of the SSH Key.
|
|
65
65
|
"""
|
|
66
66
|
return pulumi.get(self, "id")
|
|
67
67
|
|
|
68
68
|
@property
|
|
69
69
|
@pulumi.getter
|
|
70
70
|
def labels(self) -> Mapping[str, str]:
|
|
71
|
+
"""
|
|
72
|
+
User-defined [labels](https://docs.hetzner.cloud/#labels) (key-value pairs) for the resource.
|
|
73
|
+
"""
|
|
71
74
|
return pulumi.get(self, "labels")
|
|
72
75
|
|
|
73
76
|
@property
|
|
74
77
|
@pulumi.getter
|
|
75
|
-
def name(self) -> str:
|
|
78
|
+
def name(self) -> Optional[str]:
|
|
76
79
|
"""
|
|
77
|
-
|
|
80
|
+
Name of the SSH Key.
|
|
78
81
|
"""
|
|
79
82
|
return pulumi.get(self, "name")
|
|
80
83
|
|
|
@@ -82,7 +85,7 @@ class GetSshKeyResult:
|
|
|
82
85
|
@pulumi.getter(name="publicKey")
|
|
83
86
|
def public_key(self) -> str:
|
|
84
87
|
"""
|
|
85
|
-
|
|
88
|
+
Public key of the SSH Key pair.
|
|
86
89
|
"""
|
|
87
90
|
return pulumi.get(self, "public_key")
|
|
88
91
|
|
|
@@ -90,11 +93,17 @@ class GetSshKeyResult:
|
|
|
90
93
|
@pulumi.getter
|
|
91
94
|
@_utilities.deprecated("""Please use the with_selector property instead.""")
|
|
92
95
|
def selector(self) -> Optional[str]:
|
|
96
|
+
"""
|
|
97
|
+
Filter results using a [Label Selector](https://docs.hetzner.cloud/#label-selector).
|
|
98
|
+
"""
|
|
93
99
|
return pulumi.get(self, "selector")
|
|
94
100
|
|
|
95
101
|
@property
|
|
96
102
|
@pulumi.getter(name="withSelector")
|
|
97
103
|
def with_selector(self) -> Optional[str]:
|
|
104
|
+
"""
|
|
105
|
+
Filter results using a [Label Selector](https://docs.hetzner.cloud/#label-selector).
|
|
106
|
+
"""
|
|
98
107
|
return pulumi.get(self, "with_selector")
|
|
99
108
|
|
|
100
109
|
|
|
@@ -115,9 +124,7 @@ class AwaitableGetSshKeyResult(GetSshKeyResult):
|
|
|
115
124
|
|
|
116
125
|
def get_ssh_key(fingerprint: Optional[str] = None,
|
|
117
126
|
id: Optional[int] = None,
|
|
118
|
-
labels: Optional[Mapping[str, str]] = None,
|
|
119
127
|
name: Optional[str] = None,
|
|
120
|
-
public_key: Optional[str] = None,
|
|
121
128
|
selector: Optional[str] = None,
|
|
122
129
|
with_selector: Optional[str] = None,
|
|
123
130
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetSshKeyResult:
|
|
@@ -128,14 +135,14 @@ def get_ssh_key(fingerprint: Optional[str] = None,
|
|
|
128
135
|
import pulumi
|
|
129
136
|
import pulumi_hcloud as hcloud
|
|
130
137
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
138
|
+
by_id = hcloud.get_ssh_key(id=24332897)
|
|
139
|
+
by_name = hcloud.get_ssh_key(name="my-ssh-key")
|
|
140
|
+
by_fingerprint = hcloud.get_ssh_key(fingerprint="55:58:dc:bd:61:6e:7d:24:07:a7:7d:9b:be:99:83:a8")
|
|
141
|
+
by_label = hcloud.get_ssh_key(with_selector="key=value")
|
|
135
142
|
main = hcloud.Server("main", ssh_keys=[
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
143
|
+
by_id.id,
|
|
144
|
+
by_name.id,
|
|
145
|
+
by_fingerprint.id,
|
|
139
146
|
])
|
|
140
147
|
```
|
|
141
148
|
|
|
@@ -143,15 +150,13 @@ def get_ssh_key(fingerprint: Optional[str] = None,
|
|
|
143
150
|
:param str fingerprint: Fingerprint of the SSH Key.
|
|
144
151
|
:param int id: ID of the SSH Key.
|
|
145
152
|
:param str name: Name of the SSH Key.
|
|
146
|
-
:param str
|
|
147
|
-
:param str with_selector: [Label
|
|
153
|
+
:param str selector: Filter results using a [Label Selector](https://docs.hetzner.cloud/#label-selector).
|
|
154
|
+
:param str with_selector: Filter results using a [Label Selector](https://docs.hetzner.cloud/#label-selector).
|
|
148
155
|
"""
|
|
149
156
|
__args__ = dict()
|
|
150
157
|
__args__['fingerprint'] = fingerprint
|
|
151
158
|
__args__['id'] = id
|
|
152
|
-
__args__['labels'] = labels
|
|
153
159
|
__args__['name'] = name
|
|
154
|
-
__args__['publicKey'] = public_key
|
|
155
160
|
__args__['selector'] = selector
|
|
156
161
|
__args__['withSelector'] = with_selector
|
|
157
162
|
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
@@ -167,9 +172,7 @@ def get_ssh_key(fingerprint: Optional[str] = None,
|
|
|
167
172
|
with_selector=pulumi.get(__ret__, 'with_selector'))
|
|
168
173
|
def get_ssh_key_output(fingerprint: Optional[pulumi.Input[Optional[str]]] = None,
|
|
169
174
|
id: Optional[pulumi.Input[Optional[int]]] = None,
|
|
170
|
-
labels: Optional[pulumi.Input[Optional[Mapping[str, str]]]] = None,
|
|
171
175
|
name: Optional[pulumi.Input[Optional[str]]] = None,
|
|
172
|
-
public_key: Optional[pulumi.Input[Optional[str]]] = None,
|
|
173
176
|
selector: Optional[pulumi.Input[Optional[str]]] = None,
|
|
174
177
|
with_selector: Optional[pulumi.Input[Optional[str]]] = None,
|
|
175
178
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetSshKeyResult]:
|
|
@@ -180,14 +183,14 @@ def get_ssh_key_output(fingerprint: Optional[pulumi.Input[Optional[str]]] = None
|
|
|
180
183
|
import pulumi
|
|
181
184
|
import pulumi_hcloud as hcloud
|
|
182
185
|
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
186
|
+
by_id = hcloud.get_ssh_key(id=24332897)
|
|
187
|
+
by_name = hcloud.get_ssh_key(name="my-ssh-key")
|
|
188
|
+
by_fingerprint = hcloud.get_ssh_key(fingerprint="55:58:dc:bd:61:6e:7d:24:07:a7:7d:9b:be:99:83:a8")
|
|
189
|
+
by_label = hcloud.get_ssh_key(with_selector="key=value")
|
|
187
190
|
main = hcloud.Server("main", ssh_keys=[
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
+
by_id.id,
|
|
192
|
+
by_name.id,
|
|
193
|
+
by_fingerprint.id,
|
|
191
194
|
])
|
|
192
195
|
```
|
|
193
196
|
|
|
@@ -195,15 +198,13 @@ def get_ssh_key_output(fingerprint: Optional[pulumi.Input[Optional[str]]] = None
|
|
|
195
198
|
:param str fingerprint: Fingerprint of the SSH Key.
|
|
196
199
|
:param int id: ID of the SSH Key.
|
|
197
200
|
:param str name: Name of the SSH Key.
|
|
198
|
-
:param str
|
|
199
|
-
:param str with_selector: [Label
|
|
201
|
+
:param str selector: Filter results using a [Label Selector](https://docs.hetzner.cloud/#label-selector).
|
|
202
|
+
:param str with_selector: Filter results using a [Label Selector](https://docs.hetzner.cloud/#label-selector).
|
|
200
203
|
"""
|
|
201
204
|
__args__ = dict()
|
|
202
205
|
__args__['fingerprint'] = fingerprint
|
|
203
206
|
__args__['id'] = id
|
|
204
|
-
__args__['labels'] = labels
|
|
205
207
|
__args__['name'] = name
|
|
206
|
-
__args__['publicKey'] = public_key
|
|
207
208
|
__args__['selector'] = selector
|
|
208
209
|
__args__['withSelector'] = with_selector
|
|
209
210
|
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
pulumi_hcloud/get_ssh_keys.py
CHANGED
|
@@ -41,19 +41,22 @@ class GetSshKeysResult:
|
|
|
41
41
|
@property
|
|
42
42
|
@pulumi.getter
|
|
43
43
|
def id(self) -> Optional[str]:
|
|
44
|
+
"""
|
|
45
|
+
The ID of this resource.
|
|
46
|
+
"""
|
|
44
47
|
return pulumi.get(self, "id")
|
|
45
48
|
|
|
46
49
|
@property
|
|
47
50
|
@pulumi.getter(name="sshKeys")
|
|
48
51
|
def ssh_keys(self) -> Sequence['outputs.GetSshKeysSshKeyResult']:
|
|
49
|
-
"""
|
|
50
|
-
(list) List of all matches SSH keys. See `data.hcloud_ssh_key` for schema.
|
|
51
|
-
"""
|
|
52
52
|
return pulumi.get(self, "ssh_keys")
|
|
53
53
|
|
|
54
54
|
@property
|
|
55
55
|
@pulumi.getter(name="withSelector")
|
|
56
56
|
def with_selector(self) -> Optional[str]:
|
|
57
|
+
"""
|
|
58
|
+
Filter results using a [Label Selector](https://docs.hetzner.cloud/#label-selector)
|
|
59
|
+
"""
|
|
57
60
|
return pulumi.get(self, "with_selector")
|
|
58
61
|
|
|
59
62
|
|
|
@@ -78,13 +81,14 @@ def get_ssh_keys(id: Optional[str] = None,
|
|
|
78
81
|
import pulumi
|
|
79
82
|
import pulumi_hcloud as hcloud
|
|
80
83
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
main = hcloud.Server("main", ssh_keys=[__item.name for __item in
|
|
84
|
+
all = hcloud.get_ssh_keys()
|
|
85
|
+
by_label = hcloud.get_ssh_keys(with_selector="foo=bar")
|
|
86
|
+
main = hcloud.Server("main", ssh_keys=[__item.name for __item in all.ssh_keys])
|
|
84
87
|
```
|
|
85
88
|
|
|
86
89
|
|
|
87
|
-
:param str
|
|
90
|
+
:param str id: The ID of this resource.
|
|
91
|
+
:param str with_selector: Filter results using a [Label Selector](https://docs.hetzner.cloud/#label-selector)
|
|
88
92
|
"""
|
|
89
93
|
__args__ = dict()
|
|
90
94
|
__args__['id'] = id
|
|
@@ -106,13 +110,14 @@ def get_ssh_keys_output(id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
|
106
110
|
import pulumi
|
|
107
111
|
import pulumi_hcloud as hcloud
|
|
108
112
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
main = hcloud.Server("main", ssh_keys=[__item.name for __item in
|
|
113
|
+
all = hcloud.get_ssh_keys()
|
|
114
|
+
by_label = hcloud.get_ssh_keys(with_selector="foo=bar")
|
|
115
|
+
main = hcloud.Server("main", ssh_keys=[__item.name for __item in all.ssh_keys])
|
|
112
116
|
```
|
|
113
117
|
|
|
114
118
|
|
|
115
|
-
:param str
|
|
119
|
+
:param str id: The ID of this resource.
|
|
120
|
+
:param str with_selector: Filter results using a [Label Selector](https://docs.hetzner.cloud/#label-selector)
|
|
116
121
|
"""
|
|
117
122
|
__args__ = dict()
|
|
118
123
|
__args__['id'] = id
|
pulumi_hcloud/load_balancer.py
CHANGED
|
@@ -395,7 +395,7 @@ class LoadBalancer(pulumi.CustomResource):
|
|
|
395
395
|
Load Balancers can be imported using its `id`:
|
|
396
396
|
|
|
397
397
|
```sh
|
|
398
|
-
$ pulumi import hcloud:index/loadBalancer:LoadBalancer
|
|
398
|
+
$ pulumi import hcloud:index/loadBalancer:LoadBalancer example "$LOAD_BALANCER_ID"
|
|
399
399
|
```
|
|
400
400
|
|
|
401
401
|
:param str resource_name: The name of the resource.
|
|
@@ -442,7 +442,7 @@ class LoadBalancer(pulumi.CustomResource):
|
|
|
442
442
|
Load Balancers can be imported using its `id`:
|
|
443
443
|
|
|
444
444
|
```sh
|
|
445
|
-
$ pulumi import hcloud:index/loadBalancer:LoadBalancer
|
|
445
|
+
$ pulumi import hcloud:index/loadBalancer:LoadBalancer example "$LOAD_BALANCER_ID"
|
|
446
446
|
```
|
|
447
447
|
|
|
448
448
|
:param str resource_name: The name of the resource.
|
|
@@ -289,7 +289,7 @@ class LoadBalancerNetwork(pulumi.CustomResource):
|
|
|
289
289
|
`<load-balancer-id>-<network-id>`
|
|
290
290
|
|
|
291
291
|
```sh
|
|
292
|
-
$ pulumi import hcloud:index/loadBalancerNetwork:LoadBalancerNetwork
|
|
292
|
+
$ pulumi import hcloud:index/loadBalancerNetwork:LoadBalancerNetwork example "$LOAD_BALANCER_ID-$NETWORK_ID"
|
|
293
293
|
```
|
|
294
294
|
|
|
295
295
|
:param str resource_name: The name of the resource.
|
|
@@ -354,7 +354,7 @@ class LoadBalancerNetwork(pulumi.CustomResource):
|
|
|
354
354
|
`<load-balancer-id>-<network-id>`
|
|
355
355
|
|
|
356
356
|
```sh
|
|
357
|
-
$ pulumi import hcloud:index/loadBalancerNetwork:LoadBalancerNetwork
|
|
357
|
+
$ pulumi import hcloud:index/loadBalancerNetwork:LoadBalancerNetwork example "$LOAD_BALANCER_ID-$NETWORK_ID"
|
|
358
358
|
```
|
|
359
359
|
|
|
360
360
|
:param str resource_name: The name of the resource.
|
|
@@ -311,7 +311,7 @@ class LoadBalancerService(pulumi.CustomResource):
|
|
|
311
311
|
`<load-balancer-id>__<listen-port>`
|
|
312
312
|
|
|
313
313
|
```sh
|
|
314
|
-
$ pulumi import hcloud:index/loadBalancerService:LoadBalancerService
|
|
314
|
+
$ pulumi import hcloud:index/loadBalancerService:LoadBalancerService example "${LOAD_BALANCER_ID}__${LISTEN_PORT}"
|
|
315
315
|
```
|
|
316
316
|
|
|
317
317
|
:param str resource_name: The name of the resource.
|
|
@@ -372,7 +372,7 @@ class LoadBalancerService(pulumi.CustomResource):
|
|
|
372
372
|
`<load-balancer-id>__<listen-port>`
|
|
373
373
|
|
|
374
374
|
```sh
|
|
375
|
-
$ pulumi import hcloud:index/loadBalancerService:LoadBalancerService
|
|
375
|
+
$ pulumi import hcloud:index/loadBalancerService:LoadBalancerService example "${LOAD_BALANCER_ID}__${LISTEN_PORT}"
|
|
376
376
|
```
|
|
377
377
|
|
|
378
378
|
:param str resource_name: The name of the resource.
|
|
@@ -300,15 +300,15 @@ class LoadBalancerTarget(pulumi.CustomResource):
|
|
|
300
300
|
- `ip`: ip address, for example: `203.0.113.123`
|
|
301
301
|
|
|
302
302
|
```sh
|
|
303
|
-
$ pulumi import hcloud:index/loadBalancerTarget:LoadBalancerTarget
|
|
303
|
+
$ pulumi import hcloud:index/loadBalancerTarget:LoadBalancerTarget server "${LOAD_BALANCER_ID}__server__${SERVER_ID}"
|
|
304
304
|
```
|
|
305
305
|
|
|
306
306
|
```sh
|
|
307
|
-
$ pulumi import hcloud:index/loadBalancerTarget:LoadBalancerTarget
|
|
307
|
+
$ pulumi import hcloud:index/loadBalancerTarget:LoadBalancerTarget label "${LOAD_BALANCER_ID}__label_selector__${LABEL_SELECTOR}"
|
|
308
308
|
```
|
|
309
309
|
|
|
310
310
|
```sh
|
|
311
|
-
$ pulumi import hcloud:index/loadBalancerTarget:LoadBalancerTarget
|
|
311
|
+
$ pulumi import hcloud:index/loadBalancerTarget:LoadBalancerTarget ip "${LOAD_BALANCER_ID}__ip__${IP}"
|
|
312
312
|
```
|
|
313
313
|
|
|
314
314
|
:param str resource_name: The name of the resource.
|
|
@@ -371,15 +371,15 @@ class LoadBalancerTarget(pulumi.CustomResource):
|
|
|
371
371
|
- `ip`: ip address, for example: `203.0.113.123`
|
|
372
372
|
|
|
373
373
|
```sh
|
|
374
|
-
$ pulumi import hcloud:index/loadBalancerTarget:LoadBalancerTarget
|
|
374
|
+
$ pulumi import hcloud:index/loadBalancerTarget:LoadBalancerTarget server "${LOAD_BALANCER_ID}__server__${SERVER_ID}"
|
|
375
375
|
```
|
|
376
376
|
|
|
377
377
|
```sh
|
|
378
|
-
$ pulumi import hcloud:index/loadBalancerTarget:LoadBalancerTarget
|
|
378
|
+
$ pulumi import hcloud:index/loadBalancerTarget:LoadBalancerTarget label "${LOAD_BALANCER_ID}__label_selector__${LABEL_SELECTOR}"
|
|
379
379
|
```
|
|
380
380
|
|
|
381
381
|
```sh
|
|
382
|
-
$ pulumi import hcloud:index/loadBalancerTarget:LoadBalancerTarget
|
|
382
|
+
$ pulumi import hcloud:index/loadBalancerTarget:LoadBalancerTarget ip "${LOAD_BALANCER_ID}__ip__${IP}"
|
|
383
383
|
```
|
|
384
384
|
|
|
385
385
|
:param str resource_name: The name of the resource.
|