pulumi-hcloud 1.21.1a1732274891__py3-none-any.whl → 1.22.0a1731650142__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.
Files changed (38) hide show
  1. pulumi_hcloud/firewall.py +2 -2
  2. pulumi_hcloud/floating_ip.py +2 -2
  3. pulumi_hcloud/floating_ip_assignment.py +2 -2
  4. pulumi_hcloud/get_datacenter.py +18 -20
  5. pulumi_hcloud/get_datacenters.py +44 -11
  6. pulumi_hcloud/get_load_balancer_type.py +19 -21
  7. pulumi_hcloud/get_load_balancer_types.py +3 -3
  8. pulumi_hcloud/get_location.py +20 -22
  9. pulumi_hcloud/get_locations.py +44 -11
  10. pulumi_hcloud/get_server_type.py +37 -40
  11. pulumi_hcloud/get_server_types.py +25 -27
  12. pulumi_hcloud/get_ssh_key.py +33 -34
  13. pulumi_hcloud/get_ssh_keys.py +11 -16
  14. pulumi_hcloud/load_balancer.py +2 -2
  15. pulumi_hcloud/load_balancer_network.py +2 -2
  16. pulumi_hcloud/load_balancer_service.py +2 -2
  17. pulumi_hcloud/load_balancer_target.py +6 -6
  18. pulumi_hcloud/managed_certificate.py +6 -38
  19. pulumi_hcloud/network.py +2 -2
  20. pulumi_hcloud/network_route.py +2 -2
  21. pulumi_hcloud/network_subnet.py +2 -2
  22. pulumi_hcloud/outputs.py +8 -148
  23. pulumi_hcloud/placement_group.py +2 -2
  24. pulumi_hcloud/primary_ip.py +2 -2
  25. pulumi_hcloud/pulumi-plugin.json +1 -1
  26. pulumi_hcloud/rdns.py +0 -8
  27. pulumi_hcloud/server.py +2 -2
  28. pulumi_hcloud/server_network.py +2 -2
  29. pulumi_hcloud/snapshot.py +2 -2
  30. pulumi_hcloud/ssh_key.py +41 -35
  31. pulumi_hcloud/uploaded_certificate.py +6 -54
  32. pulumi_hcloud/volume.py +2 -2
  33. pulumi_hcloud/volume_attachment.py +2 -2
  34. {pulumi_hcloud-1.21.1a1732274891.dist-info → pulumi_hcloud-1.22.0a1731650142.dist-info}/METADATA +5 -5
  35. pulumi_hcloud-1.22.0a1731650142.dist-info/RECORD +67 -0
  36. {pulumi_hcloud-1.21.1a1732274891.dist-info → pulumi_hcloud-1.22.0a1731650142.dist-info}/WHEEL +1 -1
  37. pulumi_hcloud-1.21.1a1732274891.dist-info/RECORD +0 -67
  38. {pulumi_hcloud-1.21.1a1732274891.dist-info → pulumi_hcloud-1.22.0a1731650142.dist-info}/top_level.txt +0 -0
@@ -71,7 +71,7 @@ class GetServerTypeResult:
71
71
  @pulumi.getter
72
72
  def architecture(self) -> str:
73
73
  """
74
- Architecture of the cpu for a Server of this type.
74
+ (string) Architecture of the server_type.
75
75
  """
76
76
  return pulumi.get(self, "architecture")
77
77
 
@@ -79,23 +79,20 @@ class GetServerTypeResult:
79
79
  @pulumi.getter
80
80
  def cores(self) -> float:
81
81
  """
82
- Number of cpu cores for a Server of this type.
82
+ (int) Number of cpu cores a Server of this type will have.
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
- """
92
89
  return pulumi.get(self, "cpu_type")
93
90
 
94
91
  @property
95
92
  @pulumi.getter(name="deprecationAnnounced")
96
93
  def deprecation_announced(self) -> str:
97
94
  """
98
- Date of the Server Type deprecation announcement.
95
+ (Optional, string) Date when the deprecation of the server type was announced. Only set when the server type is deprecated.
99
96
  """
100
97
  return pulumi.get(self, "deprecation_announced")
101
98
 
@@ -103,7 +100,7 @@ class GetServerTypeResult:
103
100
  @pulumi.getter
104
101
  def description(self) -> str:
105
102
  """
106
- Description of the Server Type.
103
+ (string) Description of the server_type.
107
104
  """
108
105
  return pulumi.get(self, "description")
109
106
 
@@ -111,15 +108,15 @@ class GetServerTypeResult:
111
108
  @pulumi.getter
112
109
  def disk(self) -> float:
113
110
  """
114
- Disk size in GB for a Server of this type.
111
+ (int) Disk size a Server of this type will have in GB.
115
112
  """
116
113
  return pulumi.get(self, "disk")
117
114
 
118
115
  @property
119
116
  @pulumi.getter
120
- def id(self) -> Optional[int]:
117
+ def id(self) -> int:
121
118
  """
122
- ID of the Server Type.
119
+ (int) Unique ID of the server_type.
123
120
  """
124
121
  return pulumi.get(self, "id")
125
122
 
@@ -127,13 +124,16 @@ class GetServerTypeResult:
127
124
  @pulumi.getter(name="includedTraffic")
128
125
  @_utilities.deprecated("""The field is deprecated and will always report 0 after 2024-08-05.""")
129
126
  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
- Whether the Server Type is deprecated.
136
+ (bool) Deprecation status of server type.
137
137
  """
138
138
  return pulumi.get(self, "is_deprecated")
139
139
 
@@ -141,31 +141,28 @@ class GetServerTypeResult:
141
141
  @pulumi.getter
142
142
  def memory(self) -> float:
143
143
  """
144
- Memory in GB for a Server of this type.
144
+ (int) Memory a Server of this type will have in GB.
145
145
  """
146
146
  return pulumi.get(self, "memory")
147
147
 
148
148
  @property
149
149
  @pulumi.getter
150
- def name(self) -> Optional[str]:
150
+ def name(self) -> str:
151
151
  """
152
- Name of the Server Type.
152
+ (string) 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
- """
162
159
  return pulumi.get(self, "storage_type")
163
160
 
164
161
  @property
165
162
  @pulumi.getter(name="unavailableAfter")
166
163
  def unavailable_after(self) -> str:
167
164
  """
168
- Date of the Server Type removal. After this date, the Server Type cannot be used anymore.
165
+ (Optional, string) Date when the server type will not be available for new servers. Only set when the server type is deprecated.
169
166
  """
170
167
  return pulumi.get(self, "unavailable_after")
171
168
 
@@ -191,12 +188,13 @@ class AwaitableGetServerTypeResult(GetServerTypeResult):
191
188
  unavailable_after=self.unavailable_after)
192
189
 
193
190
 
194
- def get_server_type(id: Optional[int] = None,
191
+ def get_server_type(deprecation_announced: Optional[str] = None,
192
+ id: Optional[int] = None,
195
193
  name: Optional[str] = None,
194
+ unavailable_after: Optional[str] = None,
196
195
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetServerTypeResult:
197
196
  """
198
197
  Provides details about a specific Hetzner Cloud Server Type.
199
-
200
198
  Use this resource to get detailed information about specific Server Type.
201
199
 
202
200
  ## Example Usage
@@ -205,22 +203,21 @@ def get_server_type(id: Optional[int] = None,
205
203
  import pulumi
206
204
  import pulumi_hcloud as hcloud
207
205
 
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)
206
+ ds1 = hcloud.get_server_type(name="cx22")
207
+ ds2 = hcloud.get_server_type(id=1)
215
208
  ```
216
209
 
217
210
 
218
- :param int id: ID of the Server Type.
219
- :param str name: Name of the Server Type.
211
+ :param str deprecation_announced: (Optional, string) Date when the deprecation of the server type was announced. Only set when the server type is deprecated.
212
+ :param int id: ID of the server_type.
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.
220
215
  """
221
216
  __args__ = dict()
217
+ __args__['deprecationAnnounced'] = deprecation_announced
222
218
  __args__['id'] = id
223
219
  __args__['name'] = name
220
+ __args__['unavailableAfter'] = unavailable_after
224
221
  opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
225
222
  __ret__ = pulumi.runtime.invoke('hcloud:index/getServerType:getServerType', __args__, opts=opts, typ=GetServerTypeResult).value
226
223
 
@@ -238,12 +235,13 @@ def get_server_type(id: Optional[int] = None,
238
235
  name=pulumi.get(__ret__, 'name'),
239
236
  storage_type=pulumi.get(__ret__, 'storage_type'),
240
237
  unavailable_after=pulumi.get(__ret__, 'unavailable_after'))
241
- def get_server_type_output(id: Optional[pulumi.Input[Optional[int]]] = None,
238
+ def get_server_type_output(deprecation_announced: Optional[pulumi.Input[Optional[str]]] = None,
239
+ id: Optional[pulumi.Input[Optional[int]]] = None,
242
240
  name: Optional[pulumi.Input[Optional[str]]] = None,
241
+ unavailable_after: Optional[pulumi.Input[Optional[str]]] = None,
243
242
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetServerTypeResult]:
244
243
  """
245
244
  Provides details about a specific Hetzner Cloud Server Type.
246
-
247
245
  Use this resource to get detailed information about specific Server Type.
248
246
 
249
247
  ## Example Usage
@@ -252,22 +250,21 @@ def get_server_type_output(id: Optional[pulumi.Input[Optional[int]]] = None,
252
250
  import pulumi
253
251
  import pulumi_hcloud as hcloud
254
252
 
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)
253
+ ds1 = hcloud.get_server_type(name="cx22")
254
+ ds2 = hcloud.get_server_type(id=1)
262
255
  ```
263
256
 
264
257
 
265
- :param int id: ID of the Server Type.
266
- :param str name: Name of the Server Type.
258
+ :param str deprecation_announced: (Optional, string) Date when the deprecation of the server type was announced. Only set when the server type is deprecated.
259
+ :param int id: ID of the server_type.
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.
267
262
  """
268
263
  __args__ = dict()
264
+ __args__['deprecationAnnounced'] = deprecation_announced
269
265
  __args__['id'] = id
270
266
  __args__['name'] = name
267
+ __args__['unavailableAfter'] = unavailable_after
271
268
  opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
272
269
  __ret__ = pulumi.runtime.invoke_output('hcloud:index/getServerType:getServerType', __args__, opts=opts, typ=GetServerTypeResult)
273
270
  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) -> Sequence[str]:
50
+ def descriptions(self) -> Optional[Sequence[str]]:
51
51
  return pulumi.get(self, "descriptions")
52
52
 
53
53
  @property
54
54
  @pulumi.getter
55
- def id(self) -> str:
56
- """
57
- The ID of this resource.
58
- """
55
+ def id(self) -> Optional[str]:
59
56
  return pulumi.get(self, "id")
60
57
 
61
58
  @property
62
59
  @pulumi.getter
63
60
  @_utilities.deprecated("""Use server_types list instead""")
64
- def names(self) -> Sequence[str]:
61
+ def names(self) -> Optional[Sequence[str]]:
65
62
  return pulumi.get(self, "names")
66
63
 
67
64
  @property
68
65
  @pulumi.getter(name="serverTypeIds")
69
66
  @_utilities.deprecated("""Use server_types list instead""")
70
- def server_type_ids(self) -> Sequence[str]:
67
+ def server_type_ids(self) -> Optional[Sequence[str]]:
71
68
  return pulumi.get(self, "server_type_ids")
72
69
 
73
70
  @property
74
71
  @pulumi.getter(name="serverTypes")
75
72
  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,20 +89,19 @@ class AwaitableGetServerTypesResult(GetServerTypesResult):
89
89
  server_types=self.server_types)
90
90
 
91
91
 
92
- def get_server_types(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetServerTypesResult:
92
+ def get_server_types(descriptions: Optional[Sequence[str]] = None,
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:
93
97
  """
94
98
  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
- ```
104
99
  """
105
100
  __args__ = dict()
101
+ __args__['descriptions'] = descriptions
102
+ __args__['id'] = id
103
+ __args__['names'] = names
104
+ __args__['serverTypeIds'] = server_type_ids
106
105
  opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
107
106
  __ret__ = pulumi.runtime.invoke('hcloud:index/getServerTypes:getServerTypes', __args__, opts=opts, typ=GetServerTypesResult).value
108
107
 
@@ -112,20 +111,19 @@ def get_server_types(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGe
112
111
  names=pulumi.get(__ret__, 'names'),
113
112
  server_type_ids=pulumi.get(__ret__, 'server_type_ids'),
114
113
  server_types=pulumi.get(__ret__, 'server_types'))
115
- def get_server_types_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetServerTypesResult]:
114
+ def get_server_types_output(descriptions: Optional[pulumi.Input[Optional[Sequence[str]]]] = None,
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]:
116
119
  """
117
120
  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
- ```
127
121
  """
128
122
  __args__ = dict()
123
+ __args__['descriptions'] = descriptions
124
+ __args__['id'] = id
125
+ __args__['names'] = names
126
+ __args__['serverTypeIds'] = server_type_ids
129
127
  opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
130
128
  __ret__ = pulumi.runtime.invoke_output('hcloud:index/getServerTypes:getServerTypes', __args__, opts=opts, typ=GetServerTypesResult)
131
129
  return __ret__.apply(lambda __response__: GetServerTypesResult(
@@ -51,33 +51,30 @@ class GetSshKeyResult:
51
51
 
52
52
  @property
53
53
  @pulumi.getter
54
- def fingerprint(self) -> Optional[str]:
54
+ def fingerprint(self) -> str:
55
55
  """
56
- Fingerprint of the SSH Key.
56
+ (string) 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) -> Optional[int]:
62
+ def id(self) -> int:
63
63
  """
64
- ID of the SSH Key.
64
+ (int) Unique 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
- """
74
71
  return pulumi.get(self, "labels")
75
72
 
76
73
  @property
77
74
  @pulumi.getter
78
- def name(self) -> Optional[str]:
75
+ def name(self) -> str:
79
76
  """
80
- Name of the SSH Key.
77
+ (string) Name of the SSH Key.
81
78
  """
82
79
  return pulumi.get(self, "name")
83
80
 
@@ -85,7 +82,7 @@ class GetSshKeyResult:
85
82
  @pulumi.getter(name="publicKey")
86
83
  def public_key(self) -> str:
87
84
  """
88
- Public key of the SSH Key pair.
85
+ (string) Public Key of the SSH Key.
89
86
  """
90
87
  return pulumi.get(self, "public_key")
91
88
 
@@ -93,17 +90,11 @@ class GetSshKeyResult:
93
90
  @pulumi.getter
94
91
  @_utilities.deprecated("""Please use the with_selector property instead.""")
95
92
  def selector(self) -> Optional[str]:
96
- """
97
- Filter results using a [Label Selector](https://docs.hetzner.cloud/#label-selector).
98
- """
99
93
  return pulumi.get(self, "selector")
100
94
 
101
95
  @property
102
96
  @pulumi.getter(name="withSelector")
103
97
  def with_selector(self) -> Optional[str]:
104
- """
105
- Filter results using a [Label Selector](https://docs.hetzner.cloud/#label-selector).
106
- """
107
98
  return pulumi.get(self, "with_selector")
108
99
 
109
100
 
@@ -124,7 +115,9 @@ class AwaitableGetSshKeyResult(GetSshKeyResult):
124
115
 
125
116
  def get_ssh_key(fingerprint: Optional[str] = None,
126
117
  id: Optional[int] = None,
118
+ labels: Optional[Mapping[str, str]] = None,
127
119
  name: Optional[str] = None,
120
+ public_key: Optional[str] = None,
128
121
  selector: Optional[str] = None,
129
122
  with_selector: Optional[str] = None,
130
123
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetSshKeyResult:
@@ -135,14 +128,14 @@ def get_ssh_key(fingerprint: Optional[str] = None,
135
128
  import pulumi
136
129
  import pulumi_hcloud as hcloud
137
130
 
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")
131
+ ssh_key1 = hcloud.get_ssh_key(id=1234)
132
+ ssh_key2 = hcloud.get_ssh_key(name="my-ssh-key")
133
+ ssh_key3 = hcloud.get_ssh_key(fingerprint="43:51:43:a1:b5:fc:8b:b7:0a:3a:a9:b1:0f:66:73:a8")
134
+ ssh_key4 = hcloud.get_ssh_key(with_selector="key=value")
142
135
  main = hcloud.Server("main", ssh_keys=[
143
- by_id.id,
144
- by_name.id,
145
- by_fingerprint.id,
136
+ ssh_key1.id,
137
+ ssh_key2.id,
138
+ ssh_key3.id,
146
139
  ])
147
140
  ```
148
141
 
@@ -150,13 +143,15 @@ def get_ssh_key(fingerprint: Optional[str] = None,
150
143
  :param str fingerprint: Fingerprint of the SSH Key.
151
144
  :param int id: ID of the SSH Key.
152
145
  :param str name: Name of the SSH Key.
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).
146
+ :param str public_key: (string) Public Key of the SSH Key.
147
+ :param str with_selector: [Label selector](https://docs.hetzner.cloud/#overview-label-selector)
155
148
  """
156
149
  __args__ = dict()
157
150
  __args__['fingerprint'] = fingerprint
158
151
  __args__['id'] = id
152
+ __args__['labels'] = labels
159
153
  __args__['name'] = name
154
+ __args__['publicKey'] = public_key
160
155
  __args__['selector'] = selector
161
156
  __args__['withSelector'] = with_selector
162
157
  opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
@@ -172,7 +167,9 @@ def get_ssh_key(fingerprint: Optional[str] = None,
172
167
  with_selector=pulumi.get(__ret__, 'with_selector'))
173
168
  def get_ssh_key_output(fingerprint: Optional[pulumi.Input[Optional[str]]] = None,
174
169
  id: Optional[pulumi.Input[Optional[int]]] = None,
170
+ labels: Optional[pulumi.Input[Optional[Mapping[str, str]]]] = None,
175
171
  name: Optional[pulumi.Input[Optional[str]]] = None,
172
+ public_key: Optional[pulumi.Input[Optional[str]]] = None,
176
173
  selector: Optional[pulumi.Input[Optional[str]]] = None,
177
174
  with_selector: Optional[pulumi.Input[Optional[str]]] = None,
178
175
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetSshKeyResult]:
@@ -183,14 +180,14 @@ def get_ssh_key_output(fingerprint: Optional[pulumi.Input[Optional[str]]] = None
183
180
  import pulumi
184
181
  import pulumi_hcloud as hcloud
185
182
 
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")
183
+ ssh_key1 = hcloud.get_ssh_key(id=1234)
184
+ ssh_key2 = hcloud.get_ssh_key(name="my-ssh-key")
185
+ ssh_key3 = hcloud.get_ssh_key(fingerprint="43:51:43:a1:b5:fc:8b:b7:0a:3a:a9:b1:0f:66:73:a8")
186
+ ssh_key4 = hcloud.get_ssh_key(with_selector="key=value")
190
187
  main = hcloud.Server("main", ssh_keys=[
191
- by_id.id,
192
- by_name.id,
193
- by_fingerprint.id,
188
+ ssh_key1.id,
189
+ ssh_key2.id,
190
+ ssh_key3.id,
194
191
  ])
195
192
  ```
196
193
 
@@ -198,13 +195,15 @@ def get_ssh_key_output(fingerprint: Optional[pulumi.Input[Optional[str]]] = None
198
195
  :param str fingerprint: Fingerprint of the SSH Key.
199
196
  :param int id: ID of the SSH Key.
200
197
  :param str name: Name of the SSH Key.
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).
198
+ :param str public_key: (string) Public Key of the SSH Key.
199
+ :param str with_selector: [Label selector](https://docs.hetzner.cloud/#overview-label-selector)
203
200
  """
204
201
  __args__ = dict()
205
202
  __args__['fingerprint'] = fingerprint
206
203
  __args__['id'] = id
204
+ __args__['labels'] = labels
207
205
  __args__['name'] = name
206
+ __args__['publicKey'] = public_key
208
207
  __args__['selector'] = selector
209
208
  __args__['withSelector'] = with_selector
210
209
  opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
@@ -41,22 +41,19 @@ class GetSshKeysResult:
41
41
  @property
42
42
  @pulumi.getter
43
43
  def id(self) -> Optional[str]:
44
- """
45
- The ID of this resource.
46
- """
47
44
  return pulumi.get(self, "id")
48
45
 
49
46
  @property
50
47
  @pulumi.getter(name="sshKeys")
51
48
  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
- """
60
57
  return pulumi.get(self, "with_selector")
61
58
 
62
59
 
@@ -81,14 +78,13 @@ def get_ssh_keys(id: Optional[str] = None,
81
78
  import pulumi
82
79
  import pulumi_hcloud as hcloud
83
80
 
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])
81
+ all_keys = hcloud.get_ssh_keys()
82
+ keys_by_selector = hcloud.get_ssh_keys(with_selector="foo=bar")
83
+ main = hcloud.Server("main", ssh_keys=[__item.name for __item in all_keys.ssh_keys])
87
84
  ```
88
85
 
89
86
 
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)
87
+ :param str with_selector: [Label selector](https://docs.hetzner.cloud/#overview-label-selector)
92
88
  """
93
89
  __args__ = dict()
94
90
  __args__['id'] = id
@@ -110,14 +106,13 @@ def get_ssh_keys_output(id: Optional[pulumi.Input[Optional[str]]] = None,
110
106
  import pulumi
111
107
  import pulumi_hcloud as hcloud
112
108
 
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])
109
+ all_keys = hcloud.get_ssh_keys()
110
+ keys_by_selector = hcloud.get_ssh_keys(with_selector="foo=bar")
111
+ main = hcloud.Server("main", ssh_keys=[__item.name for __item in all_keys.ssh_keys])
116
112
  ```
117
113
 
118
114
 
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)
115
+ :param str with_selector: [Label selector](https://docs.hetzner.cloud/#overview-label-selector)
121
116
  """
122
117
  __args__ = dict()
123
118
  __args__['id'] = id
@@ -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 example "$LOAD_BALANCER_ID"
398
+ $ pulumi import hcloud:index/loadBalancer:LoadBalancer my_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 example "$LOAD_BALANCER_ID"
445
+ $ pulumi import hcloud:index/loadBalancer:LoadBalancer my_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 example "$LOAD_BALANCER_ID-$NETWORK_ID"
292
+ $ pulumi import hcloud:index/loadBalancerNetwork:LoadBalancerNetwork myloadbalancernetwork 123-654
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 example "$LOAD_BALANCER_ID-$NETWORK_ID"
357
+ $ pulumi import hcloud:index/loadBalancerNetwork:LoadBalancerNetwork myloadbalancernetwork 123-654
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 example "${LOAD_BALANCER_ID}__${LISTEN_PORT}"
314
+ $ pulumi import hcloud:index/loadBalancerService:LoadBalancerService myloadbalancernetwork 123__80
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 example "${LOAD_BALANCER_ID}__${LISTEN_PORT}"
375
+ $ pulumi import hcloud:index/loadBalancerService:LoadBalancerService myloadbalancernetwork 123__80
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 server "${LOAD_BALANCER_ID}__server__${SERVER_ID}"
303
+ $ pulumi import hcloud:index/loadBalancerTarget:LoadBalancerTarget myloadbalancerservertarget 123__server__321
304
304
  ```
305
305
 
306
306
  ```sh
307
- $ pulumi import hcloud:index/loadBalancerTarget:LoadBalancerTarget label "${LOAD_BALANCER_ID}__label_selector__${LABEL_SELECTOR}"
307
+ $ pulumi import hcloud:index/loadBalancerTarget:LoadBalancerTarget myloadbalancerlabeltarget 123__label_selector__foo=bar
308
308
  ```
309
309
 
310
310
  ```sh
311
- $ pulumi import hcloud:index/loadBalancerTarget:LoadBalancerTarget ip "${LOAD_BALANCER_ID}__ip__${IP}"
311
+ $ pulumi import hcloud:index/loadBalancerTarget:LoadBalancerTarget myloadbalanceriptarget 123__ip__203.0.113.123
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 server "${LOAD_BALANCER_ID}__server__${SERVER_ID}"
374
+ $ pulumi import hcloud:index/loadBalancerTarget:LoadBalancerTarget myloadbalancerservertarget 123__server__321
375
375
  ```
376
376
 
377
377
  ```sh
378
- $ pulumi import hcloud:index/loadBalancerTarget:LoadBalancerTarget label "${LOAD_BALANCER_ID}__label_selector__${LABEL_SELECTOR}"
378
+ $ pulumi import hcloud:index/loadBalancerTarget:LoadBalancerTarget myloadbalancerlabeltarget 123__label_selector__foo=bar
379
379
  ```
380
380
 
381
381
  ```sh
382
- $ pulumi import hcloud:index/loadBalancerTarget:LoadBalancerTarget ip "${LOAD_BALANCER_ID}__ip__${IP}"
382
+ $ pulumi import hcloud:index/loadBalancerTarget:LoadBalancerTarget myloadbalanceriptarget 123__ip__203.0.113.123
383
383
  ```
384
384
 
385
385
  :param str resource_name: The name of the resource.