pulumi-hcloud 1.22.0a1731650142__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.
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 +20 -18
  5. pulumi_hcloud/get_datacenters.py +11 -44
  6. pulumi_hcloud/get_load_balancer_type.py +21 -19
  7. pulumi_hcloud/get_load_balancer_types.py +3 -3
  8. pulumi_hcloud/get_location.py +22 -20
  9. pulumi_hcloud/get_locations.py +11 -44
  10. pulumi_hcloud/get_server_type.py +40 -37
  11. pulumi_hcloud/get_server_types.py +27 -25
  12. pulumi_hcloud/get_ssh_key.py +34 -33
  13. pulumi_hcloud/get_ssh_keys.py +16 -11
  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 +38 -6
  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 +148 -8
  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 +8 -0
  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 +35 -41
  31. pulumi_hcloud/uploaded_certificate.py +54 -6
  32. pulumi_hcloud/volume.py +2 -2
  33. pulumi_hcloud/volume_attachment.py +2 -2
  34. {pulumi_hcloud-1.22.0a1731650142.dist-info → pulumi_hcloud-1.22.0a1732277133.dist-info}/METADATA +5 -5
  35. pulumi_hcloud-1.22.0a1732277133.dist-info/RECORD +67 -0
  36. {pulumi_hcloud-1.22.0a1731650142.dist-info → pulumi_hcloud-1.22.0a1732277133.dist-info}/WHEEL +1 -1
  37. pulumi_hcloud-1.22.0a1731650142.dist-info/RECORD +0 -67
  38. {pulumi_hcloud-1.22.0a1731650142.dist-info → pulumi_hcloud-1.22.0a1732277133.dist-info}/top_level.txt +0 -0
@@ -239,14 +239,30 @@ class ManagedCertificate(pulumi.CustomResource):
239
239
  """
240
240
  Obtain a Hetzner Cloud managed TLS certificate.
241
241
 
242
+ ## Example Usage
243
+
244
+ ```python
245
+ import pulumi
246
+ import pulumi_hcloud as hcloud
247
+
248
+ managed_cert = hcloud.ManagedCertificate("managed_cert",
249
+ name="managed_cert",
250
+ domain_names=[
251
+ "*.example.com",
252
+ "example.com",
253
+ ],
254
+ labels={
255
+ "label_1": "value_1",
256
+ "label_2": "value_2",
257
+ })
258
+ ```
259
+
242
260
  ## Import
243
261
 
244
262
  Managed certificates can be imported using their `id`:
245
263
 
246
- hcl
247
-
248
264
  ```sh
249
- $ pulumi import hcloud:index/managedCertificate:ManagedCertificate sample_certificate id
265
+ $ pulumi import hcloud:index/managedCertificate:ManagedCertificate example "$CERTIFICATE_ID"
250
266
  ```
251
267
 
252
268
  :param str resource_name: The name of the resource.
@@ -266,14 +282,30 @@ class ManagedCertificate(pulumi.CustomResource):
266
282
  """
267
283
  Obtain a Hetzner Cloud managed TLS certificate.
268
284
 
285
+ ## Example Usage
286
+
287
+ ```python
288
+ import pulumi
289
+ import pulumi_hcloud as hcloud
290
+
291
+ managed_cert = hcloud.ManagedCertificate("managed_cert",
292
+ name="managed_cert",
293
+ domain_names=[
294
+ "*.example.com",
295
+ "example.com",
296
+ ],
297
+ labels={
298
+ "label_1": "value_1",
299
+ "label_2": "value_2",
300
+ })
301
+ ```
302
+
269
303
  ## Import
270
304
 
271
305
  Managed certificates can be imported using their `id`:
272
306
 
273
- hcl
274
-
275
307
  ```sh
276
- $ pulumi import hcloud:index/managedCertificate:ManagedCertificate sample_certificate id
308
+ $ pulumi import hcloud:index/managedCertificate:ManagedCertificate example "$CERTIFICATE_ID"
277
309
  ```
278
310
 
279
311
  :param str resource_name: The name of the resource.
pulumi_hcloud/network.py CHANGED
@@ -221,7 +221,7 @@ class Network(pulumi.CustomResource):
221
221
  Networks can be imported using its `id`:
222
222
 
223
223
  ```sh
224
- $ pulumi import hcloud:index/network:Network myip id
224
+ $ pulumi import hcloud:index/network:Network example "$NETWORK_ID"
225
225
  ```
226
226
 
227
227
  :param str resource_name: The name of the resource.
@@ -257,7 +257,7 @@ class Network(pulumi.CustomResource):
257
257
  Networks can be imported using its `id`:
258
258
 
259
259
  ```sh
260
- $ pulumi import hcloud:index/network:Network myip id
260
+ $ pulumi import hcloud:index/network:Network example "$NETWORK_ID"
261
261
  ```
262
262
 
263
263
  :param str resource_name: The name of the resource.
@@ -159,7 +159,7 @@ class NetworkRoute(pulumi.CustomResource):
159
159
  `<network-id>-<destination>`
160
160
 
161
161
  ```sh
162
- $ pulumi import hcloud:index/networkRoute:NetworkRoute myroute 123-10.0.0.0/16
162
+ $ pulumi import hcloud:index/networkRoute:NetworkRoute example "$NETWORK_ID-$DESTINATION"
163
163
  ```
164
164
 
165
165
  :param str resource_name: The name of the resource.
@@ -199,7 +199,7 @@ class NetworkRoute(pulumi.CustomResource):
199
199
  `<network-id>-<destination>`
200
200
 
201
201
  ```sh
202
- $ pulumi import hcloud:index/networkRoute:NetworkRoute myroute 123-10.0.0.0/16
202
+ $ pulumi import hcloud:index/networkRoute:NetworkRoute example "$NETWORK_ID-$DESTINATION"
203
203
  ```
204
204
 
205
205
  :param str resource_name: The name of the resource.
@@ -237,7 +237,7 @@ class NetworkSubnet(pulumi.CustomResource):
237
237
  `<network-id>-<ip_range>`
238
238
 
239
239
  ```sh
240
- $ pulumi import hcloud:index/networkSubnet:NetworkSubnet mysubnet 123-10.0.0.0/24
240
+ $ pulumi import hcloud:index/networkSubnet:NetworkSubnet example "$NETWORK_ID-$IP_RANGE"
241
241
  ```
242
242
 
243
243
  :param str resource_name: The name of the resource.
@@ -280,7 +280,7 @@ class NetworkSubnet(pulumi.CustomResource):
280
280
  `<network-id>-<ip_range>`
281
281
 
282
282
  ```sh
283
- $ pulumi import hcloud:index/networkSubnet:NetworkSubnet mysubnet 123-10.0.0.0/24
283
+ $ pulumi import hcloud:index/networkSubnet:NetworkSubnet example "$NETWORK_ID-$IP_RANGE"
284
284
  ```
285
285
 
286
286
  :param str resource_name: The name of the resource.
pulumi_hcloud/outputs.py CHANGED
@@ -746,6 +746,14 @@ class GetDatacentersDatacenterResult(dict):
746
746
  location: Mapping[str, str],
747
747
  name: str,
748
748
  supported_server_type_ids: Sequence[int]):
749
+ """
750
+ :param Sequence[int] available_server_type_ids: List of currently available Server Types in the Datacenter.
751
+ :param str description: Description of the Datacenter.
752
+ :param int id: ID of the Datacenter.
753
+ :param Mapping[str, str] location: Location of the Datacenter. See the [Hetzner Docs](https://docs.hetzner.com/cloud/general/locations/#what-locations-are-there) for more details about locations.
754
+ :param str name: Name of the Datacenter.
755
+ :param Sequence[int] supported_server_type_ids: List of supported Server Types in the Datacenter.
756
+ """
749
757
  pulumi.set(__self__, "available_server_type_ids", available_server_type_ids)
750
758
  pulumi.set(__self__, "description", description)
751
759
  pulumi.set(__self__, "id", id)
@@ -756,31 +764,49 @@ class GetDatacentersDatacenterResult(dict):
756
764
  @property
757
765
  @pulumi.getter(name="availableServerTypeIds")
758
766
  def available_server_type_ids(self) -> Sequence[int]:
767
+ """
768
+ List of currently available Server Types in the Datacenter.
769
+ """
759
770
  return pulumi.get(self, "available_server_type_ids")
760
771
 
761
772
  @property
762
773
  @pulumi.getter
763
774
  def description(self) -> str:
775
+ """
776
+ Description of the Datacenter.
777
+ """
764
778
  return pulumi.get(self, "description")
765
779
 
766
780
  @property
767
781
  @pulumi.getter
768
782
  def id(self) -> int:
783
+ """
784
+ ID of the Datacenter.
785
+ """
769
786
  return pulumi.get(self, "id")
770
787
 
771
788
  @property
772
789
  @pulumi.getter
773
790
  def location(self) -> Mapping[str, str]:
791
+ """
792
+ Location of the Datacenter. See the [Hetzner Docs](https://docs.hetzner.com/cloud/general/locations/#what-locations-are-there) for more details about locations.
793
+ """
774
794
  return pulumi.get(self, "location")
775
795
 
776
796
  @property
777
797
  @pulumi.getter
778
798
  def name(self) -> str:
799
+ """
800
+ Name of the Datacenter.
801
+ """
779
802
  return pulumi.get(self, "name")
780
803
 
781
804
  @property
782
805
  @pulumi.getter(name="supportedServerTypeIds")
783
806
  def supported_server_type_ids(self) -> Sequence[int]:
807
+ """
808
+ List of supported Server Types in the Datacenter.
809
+ """
784
810
  return pulumi.get(self, "supported_server_type_ids")
785
811
 
786
812
 
@@ -1513,6 +1539,15 @@ class GetLoadBalancerTypesLoadBalancerTypeResult(dict):
1513
1539
  max_services: int,
1514
1540
  max_targets: int,
1515
1541
  name: str):
1542
+ """
1543
+ :param str description: Description of the Load Balancer Type.
1544
+ :param int id: ID of the Load Balancer Type.
1545
+ :param int max_assigned_certificates: Maximum number of certificates that can be assigned for the Load Balancer of this type.
1546
+ :param int max_connections: Maximum number of simultaneous open connections for the Load Balancer of this type.
1547
+ :param int max_services: Maximum number of services for the Load Balancer of this type.
1548
+ :param int max_targets: Maximum number of targets for the Load Balancer of this type.
1549
+ :param str name: Name of the Load Balancer Type.
1550
+ """
1516
1551
  pulumi.set(__self__, "description", description)
1517
1552
  pulumi.set(__self__, "id", id)
1518
1553
  pulumi.set(__self__, "max_assigned_certificates", max_assigned_certificates)
@@ -1524,36 +1559,57 @@ class GetLoadBalancerTypesLoadBalancerTypeResult(dict):
1524
1559
  @property
1525
1560
  @pulumi.getter
1526
1561
  def description(self) -> str:
1562
+ """
1563
+ Description of the Load Balancer Type.
1564
+ """
1527
1565
  return pulumi.get(self, "description")
1528
1566
 
1529
1567
  @property
1530
1568
  @pulumi.getter
1531
1569
  def id(self) -> int:
1570
+ """
1571
+ ID of the Load Balancer Type.
1572
+ """
1532
1573
  return pulumi.get(self, "id")
1533
1574
 
1534
1575
  @property
1535
1576
  @pulumi.getter(name="maxAssignedCertificates")
1536
1577
  def max_assigned_certificates(self) -> int:
1578
+ """
1579
+ Maximum number of certificates that can be assigned for the Load Balancer of this type.
1580
+ """
1537
1581
  return pulumi.get(self, "max_assigned_certificates")
1538
1582
 
1539
1583
  @property
1540
1584
  @pulumi.getter(name="maxConnections")
1541
1585
  def max_connections(self) -> int:
1586
+ """
1587
+ Maximum number of simultaneous open connections for the Load Balancer of this type.
1588
+ """
1542
1589
  return pulumi.get(self, "max_connections")
1543
1590
 
1544
1591
  @property
1545
1592
  @pulumi.getter(name="maxServices")
1546
1593
  def max_services(self) -> int:
1594
+ """
1595
+ Maximum number of services for the Load Balancer of this type.
1596
+ """
1547
1597
  return pulumi.get(self, "max_services")
1548
1598
 
1549
1599
  @property
1550
1600
  @pulumi.getter(name="maxTargets")
1551
1601
  def max_targets(self) -> int:
1602
+ """
1603
+ Maximum number of targets for the Load Balancer of this type.
1604
+ """
1552
1605
  return pulumi.get(self, "max_targets")
1553
1606
 
1554
1607
  @property
1555
1608
  @pulumi.getter
1556
1609
  def name(self) -> str:
1610
+ """
1611
+ Name of the Load Balancer Type.
1612
+ """
1557
1613
  return pulumi.get(self, "name")
1558
1614
 
1559
1615
 
@@ -1884,6 +1940,16 @@ class GetLocationsLocationResult(dict):
1884
1940
  longitude: float,
1885
1941
  name: str,
1886
1942
  network_zone: str):
1943
+ """
1944
+ :param str city: Name of the closest city to the Location. City name and optionally state in short form.
1945
+ :param str country: Country the Location resides in. ISO 3166-1 alpha-2 code of the country.
1946
+ :param str description: Description of the Location.
1947
+ :param int id: ID of the Location.
1948
+ :param float latitude: Latitude of the city closest to the Location.
1949
+ :param float longitude: Longitude of the city closest to the Location.
1950
+ :param str name: Name of the Location.
1951
+ :param str network_zone: Name of the Network Zone this Location resides in.
1952
+ """
1887
1953
  pulumi.set(__self__, "city", city)
1888
1954
  pulumi.set(__self__, "country", country)
1889
1955
  pulumi.set(__self__, "description", description)
@@ -1896,41 +1962,65 @@ class GetLocationsLocationResult(dict):
1896
1962
  @property
1897
1963
  @pulumi.getter
1898
1964
  def city(self) -> str:
1965
+ """
1966
+ Name of the closest city to the Location. City name and optionally state in short form.
1967
+ """
1899
1968
  return pulumi.get(self, "city")
1900
1969
 
1901
1970
  @property
1902
1971
  @pulumi.getter
1903
1972
  def country(self) -> str:
1973
+ """
1974
+ Country the Location resides in. ISO 3166-1 alpha-2 code of the country.
1975
+ """
1904
1976
  return pulumi.get(self, "country")
1905
1977
 
1906
1978
  @property
1907
1979
  @pulumi.getter
1908
1980
  def description(self) -> str:
1981
+ """
1982
+ Description of the Location.
1983
+ """
1909
1984
  return pulumi.get(self, "description")
1910
1985
 
1911
1986
  @property
1912
1987
  @pulumi.getter
1913
1988
  def id(self) -> int:
1989
+ """
1990
+ ID of the Location.
1991
+ """
1914
1992
  return pulumi.get(self, "id")
1915
1993
 
1916
1994
  @property
1917
1995
  @pulumi.getter
1918
1996
  def latitude(self) -> float:
1997
+ """
1998
+ Latitude of the city closest to the Location.
1999
+ """
1919
2000
  return pulumi.get(self, "latitude")
1920
2001
 
1921
2002
  @property
1922
2003
  @pulumi.getter
1923
2004
  def longitude(self) -> float:
2005
+ """
2006
+ Longitude of the city closest to the Location.
2007
+ """
1924
2008
  return pulumi.get(self, "longitude")
1925
2009
 
1926
2010
  @property
1927
2011
  @pulumi.getter
1928
2012
  def name(self) -> str:
2013
+ """
2014
+ Name of the Location.
2015
+ """
1929
2016
  return pulumi.get(self, "name")
1930
2017
 
1931
2018
  @property
1932
2019
  @pulumi.getter(name="networkZone")
1933
2020
  def network_zone(self) -> str:
2021
+ """
2022
+ Name of the Network Zone this Location resides in.
2023
+ """
1934
2024
  return pulumi.get(self, "network_zone")
1935
2025
 
1936
2026
 
@@ -2126,6 +2216,20 @@ class GetServerTypesServerTypeResult(dict):
2126
2216
  name: str,
2127
2217
  storage_type: str,
2128
2218
  unavailable_after: str):
2219
+ """
2220
+ :param str architecture: Architecture of the cpu for a Server of this type.
2221
+ :param float cores: Number of cpu cores for a Server of this type.
2222
+ :param str cpu_type: Type of cpu for a Server of this type.
2223
+ :param str deprecation_announced: Date of the Server Type deprecation announcement.
2224
+ :param str description: Description of the Server Type.
2225
+ :param float disk: Disk size in GB for a Server of this type.
2226
+ :param int id: ID of the Server Type.
2227
+ :param bool is_deprecated: Whether the Server Type is deprecated.
2228
+ :param float memory: Memory in GB for a Server of this type.
2229
+ :param str name: Name of the Server Type.
2230
+ :param str storage_type: Type of boot drive for a Server of this type.
2231
+ :param str unavailable_after: Date of the Server Type removal. After this date, the Server Type cannot be used anymore.
2232
+ """
2129
2233
  pulumi.set(__self__, "architecture", architecture)
2130
2234
  pulumi.set(__self__, "cores", cores)
2131
2235
  pulumi.set(__self__, "cpu_type", cpu_type)
@@ -2143,36 +2247,57 @@ class GetServerTypesServerTypeResult(dict):
2143
2247
  @property
2144
2248
  @pulumi.getter
2145
2249
  def architecture(self) -> str:
2250
+ """
2251
+ Architecture of the cpu for a Server of this type.
2252
+ """
2146
2253
  return pulumi.get(self, "architecture")
2147
2254
 
2148
2255
  @property
2149
2256
  @pulumi.getter
2150
2257
  def cores(self) -> float:
2258
+ """
2259
+ Number of cpu cores for a Server of this type.
2260
+ """
2151
2261
  return pulumi.get(self, "cores")
2152
2262
 
2153
2263
  @property
2154
2264
  @pulumi.getter(name="cpuType")
2155
2265
  def cpu_type(self) -> str:
2266
+ """
2267
+ Type of cpu for a Server of this type.
2268
+ """
2156
2269
  return pulumi.get(self, "cpu_type")
2157
2270
 
2158
2271
  @property
2159
2272
  @pulumi.getter(name="deprecationAnnounced")
2160
2273
  def deprecation_announced(self) -> str:
2274
+ """
2275
+ Date of the Server Type deprecation announcement.
2276
+ """
2161
2277
  return pulumi.get(self, "deprecation_announced")
2162
2278
 
2163
2279
  @property
2164
2280
  @pulumi.getter
2165
2281
  def description(self) -> str:
2282
+ """
2283
+ Description of the Server Type.
2284
+ """
2166
2285
  return pulumi.get(self, "description")
2167
2286
 
2168
2287
  @property
2169
2288
  @pulumi.getter
2170
2289
  def disk(self) -> float:
2290
+ """
2291
+ Disk size in GB for a Server of this type.
2292
+ """
2171
2293
  return pulumi.get(self, "disk")
2172
2294
 
2173
2295
  @property
2174
2296
  @pulumi.getter
2175
2297
  def id(self) -> int:
2298
+ """
2299
+ ID of the Server Type.
2300
+ """
2176
2301
  return pulumi.get(self, "id")
2177
2302
 
2178
2303
  @property
@@ -2184,26 +2309,41 @@ class GetServerTypesServerTypeResult(dict):
2184
2309
  @property
2185
2310
  @pulumi.getter(name="isDeprecated")
2186
2311
  def is_deprecated(self) -> bool:
2312
+ """
2313
+ Whether the Server Type is deprecated.
2314
+ """
2187
2315
  return pulumi.get(self, "is_deprecated")
2188
2316
 
2189
2317
  @property
2190
2318
  @pulumi.getter
2191
2319
  def memory(self) -> float:
2320
+ """
2321
+ Memory in GB for a Server of this type.
2322
+ """
2192
2323
  return pulumi.get(self, "memory")
2193
2324
 
2194
2325
  @property
2195
2326
  @pulumi.getter
2196
2327
  def name(self) -> str:
2328
+ """
2329
+ Name of the Server Type.
2330
+ """
2197
2331
  return pulumi.get(self, "name")
2198
2332
 
2199
2333
  @property
2200
2334
  @pulumi.getter(name="storageType")
2201
2335
  def storage_type(self) -> str:
2336
+ """
2337
+ Type of boot drive for a Server of this type.
2338
+ """
2202
2339
  return pulumi.get(self, "storage_type")
2203
2340
 
2204
2341
  @property
2205
2342
  @pulumi.getter(name="unavailableAfter")
2206
2343
  def unavailable_after(self) -> str:
2344
+ """
2345
+ Date of the Server Type removal. After this date, the Server Type cannot be used anymore.
2346
+ """
2207
2347
  return pulumi.get(self, "unavailable_after")
2208
2348
 
2209
2349
 
@@ -2362,11 +2502,11 @@ class GetSshKeysSshKeyResult(dict):
2362
2502
  name: str,
2363
2503
  public_key: str):
2364
2504
  """
2365
- :param str fingerprint: Fingerprint of the SSH key.
2366
- :param int id: ID of the SSH key.
2505
+ :param str fingerprint: Fingerprint of the SSH Key.
2506
+ :param int id: ID of the SSH Key.
2367
2507
  :param Mapping[str, str] labels: User-defined [labels](https://docs.hetzner.cloud/#labels) (key-value pairs) for the resource.
2368
- :param str name: Name of the SSH key.
2369
- :param str public_key: Public key of the SSH key pair.
2508
+ :param str name: Name of the SSH Key.
2509
+ :param str public_key: Public key of the SSH Key pair.
2370
2510
  """
2371
2511
  pulumi.set(__self__, "fingerprint", fingerprint)
2372
2512
  pulumi.set(__self__, "id", id)
@@ -2378,7 +2518,7 @@ class GetSshKeysSshKeyResult(dict):
2378
2518
  @pulumi.getter
2379
2519
  def fingerprint(self) -> str:
2380
2520
  """
2381
- Fingerprint of the SSH key.
2521
+ Fingerprint of the SSH Key.
2382
2522
  """
2383
2523
  return pulumi.get(self, "fingerprint")
2384
2524
 
@@ -2386,7 +2526,7 @@ class GetSshKeysSshKeyResult(dict):
2386
2526
  @pulumi.getter
2387
2527
  def id(self) -> int:
2388
2528
  """
2389
- ID of the SSH key.
2529
+ ID of the SSH Key.
2390
2530
  """
2391
2531
  return pulumi.get(self, "id")
2392
2532
 
@@ -2402,7 +2542,7 @@ class GetSshKeysSshKeyResult(dict):
2402
2542
  @pulumi.getter
2403
2543
  def name(self) -> str:
2404
2544
  """
2405
- Name of the SSH key.
2545
+ Name of the SSH Key.
2406
2546
  """
2407
2547
  return pulumi.get(self, "name")
2408
2548
 
@@ -2410,7 +2550,7 @@ class GetSshKeysSshKeyResult(dict):
2410
2550
  @pulumi.getter(name="publicKey")
2411
2551
  def public_key(self) -> str:
2412
2552
  """
2413
- Public key of the SSH key pair.
2553
+ Public key of the SSH Key pair.
2414
2554
  """
2415
2555
  return pulumi.get(self, "public_key")
2416
2556
 
@@ -175,7 +175,7 @@ class PlacementGroup(pulumi.CustomResource):
175
175
  Placement Groups can be imported using its `id`:
176
176
 
177
177
  ```sh
178
- $ pulumi import hcloud:index/placementGroup:PlacementGroup my-placement-group id
178
+ $ pulumi import hcloud:index/placementGroup:PlacementGroup example "$PLACEMENT_GROUP_ID"
179
179
  ```
180
180
 
181
181
  :param str resource_name: The name of the resource.
@@ -217,7 +217,7 @@ class PlacementGroup(pulumi.CustomResource):
217
217
  Placement Groups can be imported using its `id`:
218
218
 
219
219
  ```sh
220
- $ pulumi import hcloud:index/placementGroup:PlacementGroup my-placement-group id
220
+ $ pulumi import hcloud:index/placementGroup:PlacementGroup example "$PLACEMENT_GROUP_ID"
221
221
  ```
222
222
 
223
223
  :param str resource_name: The name of the resource.
@@ -383,7 +383,7 @@ class PrimaryIp(pulumi.CustomResource):
383
383
  Primary IPs can be imported using its `id`:
384
384
 
385
385
  ```sh
386
- $ pulumi import hcloud:index/primaryIp:PrimaryIp myip id
386
+ $ pulumi import hcloud:index/primaryIp:PrimaryIp example "$PRIMARY_IP_ID"
387
387
  ```
388
388
 
389
389
  :param str resource_name: The name of the resource.
@@ -446,7 +446,7 @@ class PrimaryIp(pulumi.CustomResource):
446
446
  Primary IPs can be imported using its `id`:
447
447
 
448
448
  ```sh
449
- $ pulumi import hcloud:index/primaryIp:PrimaryIp myip id
449
+ $ pulumi import hcloud:index/primaryIp:PrimaryIp example "$PRIMARY_IP_ID"
450
450
  ```
451
451
 
452
452
  :param str resource_name: The name of the resource.
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "resource": true,
3
3
  "name": "hcloud",
4
- "version": "1.22.0-alpha.1731650142"
4
+ "version": "1.22.0-alpha.1732277133"
5
5
  }
pulumi_hcloud/rdns.py CHANGED
@@ -307,6 +307,10 @@ class Rdns(pulumi.CustomResource):
307
307
 
308
308
  `<prefix (s for server/ f for floating ip / l for load balancer)>-<server, floating ip or load balancer ID>-<IP address>`
309
309
 
310
+ ```sh
311
+ $ pulumi import hcloud:index/rdns:Rdns example "$PREFIX-$ID-$IP"
312
+ ```
313
+
310
314
  import reverse dns entry on server with id 123, ip 192.168.100.1
311
315
 
312
316
  ```sh
@@ -419,6 +423,10 @@ class Rdns(pulumi.CustomResource):
419
423
 
420
424
  `<prefix (s for server/ f for floating ip / l for load balancer)>-<server, floating ip or load balancer ID>-<IP address>`
421
425
 
426
+ ```sh
427
+ $ pulumi import hcloud:index/rdns:Rdns example "$PREFIX-$ID-$IP"
428
+ ```
429
+
422
430
  import reverse dns entry on server with id 123, ip 192.168.100.1
423
431
 
424
432
  ```sh
pulumi_hcloud/server.py CHANGED
@@ -955,7 +955,7 @@ class Server(pulumi.CustomResource):
955
955
  Servers can be imported using the server `id`:
956
956
 
957
957
  ```sh
958
- $ pulumi import hcloud:index/server:Server myserver id
958
+ $ pulumi import hcloud:index/server:Server example "$SERVER_ID"
959
959
  ```
960
960
 
961
961
  :param str resource_name: The name of the resource.
@@ -1103,7 +1103,7 @@ class Server(pulumi.CustomResource):
1103
1103
  Servers can be imported using the server `id`:
1104
1104
 
1105
1105
  ```sh
1106
- $ pulumi import hcloud:index/server:Server myserver id
1106
+ $ pulumi import hcloud:index/server:Server example "$SERVER_ID"
1107
1107
  ```
1108
1108
 
1109
1109
  :param str resource_name: The name of the resource.
@@ -300,7 +300,7 @@ class ServerNetwork(pulumi.CustomResource):
300
300
  `<server-id>-<network-id>`
301
301
 
302
302
  ```sh
303
- $ pulumi import hcloud:index/serverNetwork:ServerNetwork myservernetwork 123-654
303
+ $ pulumi import hcloud:index/serverNetwork:ServerNetwork example "$SERVER_ID-$NETWORK_ID"
304
304
  ```
305
305
 
306
306
  :param str resource_name: The name of the resource.
@@ -364,7 +364,7 @@ class ServerNetwork(pulumi.CustomResource):
364
364
  `<server-id>-<network-id>`
365
365
 
366
366
  ```sh
367
- $ pulumi import hcloud:index/serverNetwork:ServerNetwork myservernetwork 123-654
367
+ $ pulumi import hcloud:index/serverNetwork:ServerNetwork example "$SERVER_ID-$NETWORK_ID"
368
368
  ```
369
369
 
370
370
  :param str resource_name: The name of the resource.
pulumi_hcloud/snapshot.py CHANGED
@@ -157,7 +157,7 @@ class Snapshot(pulumi.CustomResource):
157
157
  Snapshots can be imported using its image `id`:
158
158
 
159
159
  ```sh
160
- $ pulumi import hcloud:index/snapshot:Snapshot myimage id
160
+ $ pulumi import hcloud:index/snapshot:Snapshot example "$IMAGE_ID"
161
161
  ```
162
162
 
163
163
  :param str resource_name: The name of the resource.
@@ -193,7 +193,7 @@ class Snapshot(pulumi.CustomResource):
193
193
  Snapshots can be imported using its image `id`:
194
194
 
195
195
  ```sh
196
- $ pulumi import hcloud:index/snapshot:Snapshot myimage id
196
+ $ pulumi import hcloud:index/snapshot:Snapshot example "$IMAGE_ID"
197
197
  ```
198
198
 
199
199
  :param str resource_name: The name of the resource.