@pulumi/hcloud 1.27.0 → 1.28.0
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.
- package/getZone.d.ts +0 -6
- package/getZone.js +0 -6
- package/getZone.js.map +1 -1
- package/getZoneRrset.d.ts +0 -6
- package/getZoneRrset.js +0 -6
- package/getZoneRrset.js.map +1 -1
- package/getZoneRrsets.d.ts +0 -6
- package/getZoneRrsets.js +0 -6
- package/getZoneRrsets.js.map +1 -1
- package/getZones.d.ts +0 -6
- package/getZones.js +0 -6
- package/getZones.js.map +1 -1
- package/loadBalancerNetwork.d.ts +37 -68
- package/loadBalancerNetwork.js +23 -15
- package/loadBalancerNetwork.js.map +1 -1
- package/package.json +2 -2
- package/serverNetwork.d.ts +33 -67
- package/serverNetwork.js +10 -11
- package/serverNetwork.js.map +1 -1
- package/zone.d.ts +0 -3
- package/zone.js +0 -3
- package/zone.js.map +1 -1
package/getZone.d.ts
CHANGED
|
@@ -7,9 +7,6 @@ import * as outputs from "./types/output";
|
|
|
7
7
|
*
|
|
8
8
|
* See the [Zones API documentation](https://docs.hetzner.cloud/reference/cloud#zones) for more details.
|
|
9
9
|
*
|
|
10
|
-
* **Experimental:** DNS API is in beta, breaking changes may occur within minor releases.
|
|
11
|
-
* See https://docs.hetzner.cloud/changelog#2025-10-07-dns-beta for more details.
|
|
12
|
-
*
|
|
13
10
|
* ## Example Usage
|
|
14
11
|
*
|
|
15
12
|
* ```typescript
|
|
@@ -99,9 +96,6 @@ export interface GetZoneResult {
|
|
|
99
96
|
*
|
|
100
97
|
* See the [Zones API documentation](https://docs.hetzner.cloud/reference/cloud#zones) for more details.
|
|
101
98
|
*
|
|
102
|
-
* **Experimental:** DNS API is in beta, breaking changes may occur within minor releases.
|
|
103
|
-
* See https://docs.hetzner.cloud/changelog#2025-10-07-dns-beta for more details.
|
|
104
|
-
*
|
|
105
99
|
* ## Example Usage
|
|
106
100
|
*
|
|
107
101
|
* ```typescript
|
package/getZone.js
CHANGED
|
@@ -12,9 +12,6 @@ const utilities = require("./utilities");
|
|
|
12
12
|
*
|
|
13
13
|
* See the [Zones API documentation](https://docs.hetzner.cloud/reference/cloud#zones) for more details.
|
|
14
14
|
*
|
|
15
|
-
* **Experimental:** DNS API is in beta, breaking changes may occur within minor releases.
|
|
16
|
-
* See https://docs.hetzner.cloud/changelog#2025-10-07-dns-beta for more details.
|
|
17
|
-
*
|
|
18
15
|
* ## Example Usage
|
|
19
16
|
*
|
|
20
17
|
* ```typescript
|
|
@@ -49,9 +46,6 @@ exports.getZone = getZone;
|
|
|
49
46
|
*
|
|
50
47
|
* See the [Zones API documentation](https://docs.hetzner.cloud/reference/cloud#zones) for more details.
|
|
51
48
|
*
|
|
52
|
-
* **Experimental:** DNS API is in beta, breaking changes may occur within minor releases.
|
|
53
|
-
* See https://docs.hetzner.cloud/changelog#2025-10-07-dns-beta for more details.
|
|
54
|
-
*
|
|
55
49
|
* ## Example Usage
|
|
56
50
|
*
|
|
57
51
|
* ```typescript
|
package/getZone.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getZone.js","sourceRoot":"","sources":["../getZone.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"getZone.js","sourceRoot":"","sources":["../getZone.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,SAAgB,OAAO,CAAC,IAAkB,EAAE,IAA2B;IACnE,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,8BAA8B,EAAE;QACzD,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,cAAc,EAAE,IAAI,CAAC,YAAY;KACpC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,0BAQC;AAiED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,SAAgB,aAAa,CAAC,IAAwB,EAAE,IAAiC;IACrF,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,8BAA8B,EAAE;QAC/D,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,cAAc,EAAE,IAAI,CAAC,YAAY;KACpC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,sCAQC"}
|
package/getZoneRrset.d.ts
CHANGED
|
@@ -5,9 +5,6 @@ import * as outputs from "./types/output";
|
|
|
5
5
|
*
|
|
6
6
|
* See the [Zone RRSets API documentation](https://docs.hetzner.cloud/reference/cloud#zone-rrsets) for more details.
|
|
7
7
|
*
|
|
8
|
-
* **Experimental:** DNS API is in beta, breaking changes may occur within minor releases.
|
|
9
|
-
* See https://docs.hetzner.cloud/changelog#2025-10-07-dns-beta for more details.
|
|
10
|
-
*
|
|
11
8
|
* ## Example Usage
|
|
12
9
|
*
|
|
13
10
|
* ```typescript
|
|
@@ -106,9 +103,6 @@ export interface GetZoneRrsetResult {
|
|
|
106
103
|
*
|
|
107
104
|
* See the [Zone RRSets API documentation](https://docs.hetzner.cloud/reference/cloud#zone-rrsets) for more details.
|
|
108
105
|
*
|
|
109
|
-
* **Experimental:** DNS API is in beta, breaking changes may occur within minor releases.
|
|
110
|
-
* See https://docs.hetzner.cloud/changelog#2025-10-07-dns-beta for more details.
|
|
111
|
-
*
|
|
112
106
|
* ## Example Usage
|
|
113
107
|
*
|
|
114
108
|
* ```typescript
|
package/getZoneRrset.js
CHANGED
|
@@ -10,9 +10,6 @@ const utilities = require("./utilities");
|
|
|
10
10
|
*
|
|
11
11
|
* See the [Zone RRSets API documentation](https://docs.hetzner.cloud/reference/cloud#zone-rrsets) for more details.
|
|
12
12
|
*
|
|
13
|
-
* **Experimental:** DNS API is in beta, breaking changes may occur within minor releases.
|
|
14
|
-
* See https://docs.hetzner.cloud/changelog#2025-10-07-dns-beta for more details.
|
|
15
|
-
*
|
|
16
13
|
* ## Example Usage
|
|
17
14
|
*
|
|
18
15
|
* ```typescript
|
|
@@ -53,9 +50,6 @@ exports.getZoneRrset = getZoneRrset;
|
|
|
53
50
|
*
|
|
54
51
|
* See the [Zone RRSets API documentation](https://docs.hetzner.cloud/reference/cloud#zone-rrsets) for more details.
|
|
55
52
|
*
|
|
56
|
-
* **Experimental:** DNS API is in beta, breaking changes may occur within minor releases.
|
|
57
|
-
* See https://docs.hetzner.cloud/changelog#2025-10-07-dns-beta for more details.
|
|
58
|
-
*
|
|
59
53
|
* ## Example Usage
|
|
60
54
|
*
|
|
61
55
|
* ```typescript
|
package/getZoneRrset.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getZoneRrset.js","sourceRoot":"","sources":["../getZoneRrset.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"getZoneRrset.js","sourceRoot":"","sources":["../getZoneRrset.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,SAAgB,YAAY,CAAC,IAAsB,EAAE,IAA2B;IAC5E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,wCAAwC,EAAE;QACnE,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,cAAc,EAAE,IAAI,CAAC,YAAY;QACjC,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AATD,oCASC;AAqED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,SAAgB,kBAAkB,CAAC,IAA4B,EAAE,IAAiC;IAC9F,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,wCAAwC,EAAE;QACzE,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,cAAc,EAAE,IAAI,CAAC,YAAY;QACjC,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AATD,gDASC"}
|
package/getZoneRrsets.d.ts
CHANGED
|
@@ -5,9 +5,6 @@ import * as outputs from "./types/output";
|
|
|
5
5
|
*
|
|
6
6
|
* See the [Zone RRSets API documentation](https://docs.hetzner.cloud/reference/cloud#zone-rrsets) for more details.
|
|
7
7
|
*
|
|
8
|
-
* **Experimental:** DNS API is in beta, breaking changes may occur within minor releases.
|
|
9
|
-
* See https://docs.hetzner.cloud/changelog#2025-10-07-dns-beta for more details.
|
|
10
|
-
*
|
|
11
8
|
* ## Example Usage
|
|
12
9
|
*
|
|
13
10
|
* ```typescript
|
|
@@ -63,9 +60,6 @@ export interface GetZoneRrsetsResult {
|
|
|
63
60
|
*
|
|
64
61
|
* See the [Zone RRSets API documentation](https://docs.hetzner.cloud/reference/cloud#zone-rrsets) for more details.
|
|
65
62
|
*
|
|
66
|
-
* **Experimental:** DNS API is in beta, breaking changes may occur within minor releases.
|
|
67
|
-
* See https://docs.hetzner.cloud/changelog#2025-10-07-dns-beta for more details.
|
|
68
|
-
*
|
|
69
63
|
* ## Example Usage
|
|
70
64
|
*
|
|
71
65
|
* ```typescript
|
package/getZoneRrsets.js
CHANGED
|
@@ -10,9 +10,6 @@ const utilities = require("./utilities");
|
|
|
10
10
|
*
|
|
11
11
|
* See the [Zone RRSets API documentation](https://docs.hetzner.cloud/reference/cloud#zone-rrsets) for more details.
|
|
12
12
|
*
|
|
13
|
-
* **Experimental:** DNS API is in beta, breaking changes may occur within minor releases.
|
|
14
|
-
* See https://docs.hetzner.cloud/changelog#2025-10-07-dns-beta for more details.
|
|
15
|
-
*
|
|
16
13
|
* ## Example Usage
|
|
17
14
|
*
|
|
18
15
|
* ```typescript
|
|
@@ -44,9 +41,6 @@ exports.getZoneRrsets = getZoneRrsets;
|
|
|
44
41
|
*
|
|
45
42
|
* See the [Zone RRSets API documentation](https://docs.hetzner.cloud/reference/cloud#zone-rrsets) for more details.
|
|
46
43
|
*
|
|
47
|
-
* **Experimental:** DNS API is in beta, breaking changes may occur within minor releases.
|
|
48
|
-
* See https://docs.hetzner.cloud/changelog#2025-10-07-dns-beta for more details.
|
|
49
|
-
*
|
|
50
44
|
* ## Example Usage
|
|
51
45
|
*
|
|
52
46
|
* ```typescript
|
package/getZoneRrsets.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getZoneRrsets.js","sourceRoot":"","sources":["../getZoneRrsets.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"getZoneRrsets.js","sourceRoot":"","sources":["../getZoneRrsets.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,SAAgB,aAAa,CAAC,IAAuB,EAAE,IAA2B;IAC9E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,0CAA0C,EAAE;QACrE,cAAc,EAAE,IAAI,CAAC,YAAY;QACjC,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,sCAMC;AAkCD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,SAAgB,mBAAmB,CAAC,IAA6B,EAAE,IAAiC;IAChG,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,0CAA0C,EAAE;QAC3E,cAAc,EAAE,IAAI,CAAC,YAAY;QACjC,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,kDAMC"}
|
package/getZones.d.ts
CHANGED
|
@@ -5,9 +5,6 @@ import * as outputs from "./types/output";
|
|
|
5
5
|
*
|
|
6
6
|
* See the [Zones API documentation](https://docs.hetzner.cloud/reference/cloud#zones) for more details.
|
|
7
7
|
*
|
|
8
|
-
* **Experimental:** DNS API is in beta, breaking changes may occur within minor releases.
|
|
9
|
-
* See https://docs.hetzner.cloud/changelog#2025-10-07-dns-beta for more details.
|
|
10
|
-
*
|
|
11
8
|
* ## Example Usage
|
|
12
9
|
*
|
|
13
10
|
* ```typescript
|
|
@@ -49,9 +46,6 @@ export interface GetZonesResult {
|
|
|
49
46
|
*
|
|
50
47
|
* See the [Zones API documentation](https://docs.hetzner.cloud/reference/cloud#zones) for more details.
|
|
51
48
|
*
|
|
52
|
-
* **Experimental:** DNS API is in beta, breaking changes may occur within minor releases.
|
|
53
|
-
* See https://docs.hetzner.cloud/changelog#2025-10-07-dns-beta for more details.
|
|
54
|
-
*
|
|
55
49
|
* ## Example Usage
|
|
56
50
|
*
|
|
57
51
|
* ```typescript
|
package/getZones.js
CHANGED
|
@@ -10,9 +10,6 @@ const utilities = require("./utilities");
|
|
|
10
10
|
*
|
|
11
11
|
* See the [Zones API documentation](https://docs.hetzner.cloud/reference/cloud#zones) for more details.
|
|
12
12
|
*
|
|
13
|
-
* **Experimental:** DNS API is in beta, breaking changes may occur within minor releases.
|
|
14
|
-
* See https://docs.hetzner.cloud/changelog#2025-10-07-dns-beta for more details.
|
|
15
|
-
*
|
|
16
13
|
* ## Example Usage
|
|
17
14
|
*
|
|
18
15
|
* ```typescript
|
|
@@ -38,9 +35,6 @@ exports.getZones = getZones;
|
|
|
38
35
|
*
|
|
39
36
|
* See the [Zones API documentation](https://docs.hetzner.cloud/reference/cloud#zones) for more details.
|
|
40
37
|
*
|
|
41
|
-
* **Experimental:** DNS API is in beta, breaking changes may occur within minor releases.
|
|
42
|
-
* See https://docs.hetzner.cloud/changelog#2025-10-07-dns-beta for more details.
|
|
43
|
-
*
|
|
44
38
|
* ## Example Usage
|
|
45
39
|
*
|
|
46
40
|
* ```typescript
|
package/getZones.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getZones.js","sourceRoot":"","sources":["../getZones.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"getZones.js","sourceRoot":"","sources":["../getZones.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;GAgBG;AACH,SAAgB,QAAQ,CAAC,IAAmB,EAAE,IAA2B;IACrE,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,gCAAgC,EAAE;QAC3D,cAAc,EAAE,IAAI,CAAC,YAAY;KACpC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,4BAMC;AA0BD;;;;;;;;;;;;;;;;GAgBG;AACH,SAAgB,cAAc,CAAC,IAAyB,EAAE,IAAiC;IACvF,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,gCAAgC,EAAE;QACjE,cAAc,EAAE,IAAI,CAAC,YAAY;KACpC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,wCAMC"}
|
package/loadBalancerNetwork.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Manage the attachment of a Load Balancer in a Network in the Hetzner Cloud.
|
|
4
4
|
*
|
|
5
5
|
* ## Example Usage
|
|
6
6
|
*
|
|
@@ -8,35 +8,43 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
8
8
|
* import * as pulumi from "@pulumi/pulumi";
|
|
9
9
|
* import * as hcloud from "@pulumi/hcloud";
|
|
10
10
|
*
|
|
11
|
-
* const
|
|
12
|
-
* name: "
|
|
11
|
+
* const main = new hcloud.LoadBalancer("main", {
|
|
12
|
+
* name: "main",
|
|
13
13
|
* loadBalancerType: "lb11",
|
|
14
14
|
* networkZone: "eu-central",
|
|
15
15
|
* });
|
|
16
|
-
* const
|
|
17
|
-
* name: "
|
|
18
|
-
* ipRange: "10.0.0.0/
|
|
16
|
+
* const network = new hcloud.Network("network", {
|
|
17
|
+
* name: "network",
|
|
18
|
+
* ipRange: "10.0.0.0/16",
|
|
19
19
|
* });
|
|
20
|
-
* const
|
|
21
|
-
* networkId:
|
|
20
|
+
* const subnet = new hcloud.NetworkSubnet("subnet", {
|
|
21
|
+
* networkId: network.id,
|
|
22
22
|
* type: "cloud",
|
|
23
23
|
* networkZone: "eu-central",
|
|
24
24
|
* ipRange: "10.0.1.0/24",
|
|
25
25
|
* });
|
|
26
|
-
* const
|
|
27
|
-
* loadBalancerId:
|
|
28
|
-
*
|
|
26
|
+
* const attachment = new hcloud.LoadBalancerNetwork("attachment", {
|
|
27
|
+
* loadBalancerId: main.id,
|
|
28
|
+
* subnetId: subnet.id,
|
|
29
29
|
* ip: "10.0.1.5",
|
|
30
|
-
* }, {
|
|
31
|
-
* dependsOn: [foonet],
|
|
32
30
|
* });
|
|
33
31
|
* ```
|
|
34
32
|
*
|
|
35
33
|
* ## Import
|
|
36
34
|
*
|
|
37
|
-
*
|
|
35
|
+
* In Terraform v1.5.0 and later, the `import` block can be used with the `id` attribute, for example:
|
|
38
36
|
*
|
|
39
|
-
*
|
|
37
|
+
* terraform
|
|
38
|
+
*
|
|
39
|
+
* import {
|
|
40
|
+
*
|
|
41
|
+
* id = "${hcloud_load_balancer.example.id}-${hcloud_network.example.id}"
|
|
42
|
+
*
|
|
43
|
+
* to = hcloud_load_balancer_network.attachment
|
|
44
|
+
*
|
|
45
|
+
* }
|
|
46
|
+
*
|
|
47
|
+
* The `pulumi import` command can be used, for example:
|
|
40
48
|
*
|
|
41
49
|
* ```sh
|
|
42
50
|
* $ pulumi import hcloud:index/loadBalancerNetwork:LoadBalancerNetwork example "$LOAD_BALANCER_ID-$NETWORK_ID"
|
|
@@ -59,14 +67,11 @@ export declare class LoadBalancerNetwork extends pulumi.CustomResource {
|
|
|
59
67
|
*/
|
|
60
68
|
static isInstance(obj: any): obj is LoadBalancerNetwork;
|
|
61
69
|
/**
|
|
62
|
-
*
|
|
63
|
-
* Load Balancers public interface. Default: `true`
|
|
70
|
+
* Wether the Load Balancer public interface is enabled. Default is `true`.
|
|
64
71
|
*/
|
|
65
|
-
readonly enablePublicInterface: pulumi.Output<boolean
|
|
72
|
+
readonly enablePublicInterface: pulumi.Output<boolean>;
|
|
66
73
|
/**
|
|
67
|
-
* IP to
|
|
68
|
-
* Balancer. If you do not provide this then you will be auto assigned an
|
|
69
|
-
* IP address.
|
|
74
|
+
* IP to assign to the Load Balancer.
|
|
70
75
|
*/
|
|
71
76
|
readonly ip: pulumi.Output<string>;
|
|
72
77
|
/**
|
|
@@ -74,21 +79,11 @@ export declare class LoadBalancerNetwork extends pulumi.CustomResource {
|
|
|
74
79
|
*/
|
|
75
80
|
readonly loadBalancerId: pulumi.Output<number>;
|
|
76
81
|
/**
|
|
77
|
-
* ID of the
|
|
78
|
-
* to the Load Balancer. Required if `subnetId` is not set. Successful
|
|
79
|
-
* creation of the resource depends on the existence of a subnet in the
|
|
80
|
-
* Hetzner Cloud Backend. Using `networkId` will not create an explicit
|
|
81
|
-
* dependency between the Load Balancer and the subnet. Therefore
|
|
82
|
-
* `dependsOn` may need to be used. Alternatively the `subnetId`
|
|
83
|
-
* property can be used, which will create an explicit dependency between
|
|
84
|
-
* `hcloud.LoadBalancerNetwork` and the existence of a subnet.
|
|
82
|
+
* ID of the Network to attach the Load Balancer to. Using `subnetId` is preferred. Required if `subnetId` is not set. If `subnetId` or `ip` are not set, the Load Balancer will be attached to the last subnet (ordered by `ipRange`).
|
|
85
83
|
*/
|
|
86
|
-
readonly networkId: pulumi.Output<number
|
|
84
|
+
readonly networkId: pulumi.Output<number>;
|
|
87
85
|
/**
|
|
88
|
-
* ID of the
|
|
89
|
-
* added to the Load Balancer. Required if `networkId` is not set.
|
|
90
|
-
* _Note_: if the `ip` property is missing, the Load Balancer is
|
|
91
|
-
* currently added to the last created subnet.
|
|
86
|
+
* ID of the Subnet to attach the Load Balancer to. Required if `networkId` is not set.
|
|
92
87
|
*/
|
|
93
88
|
readonly subnetId: pulumi.Output<string | undefined>;
|
|
94
89
|
/**
|
|
@@ -105,14 +100,11 @@ export declare class LoadBalancerNetwork extends pulumi.CustomResource {
|
|
|
105
100
|
*/
|
|
106
101
|
export interface LoadBalancerNetworkState {
|
|
107
102
|
/**
|
|
108
|
-
*
|
|
109
|
-
* Load Balancers public interface. Default: `true`
|
|
103
|
+
* Wether the Load Balancer public interface is enabled. Default is `true`.
|
|
110
104
|
*/
|
|
111
105
|
enablePublicInterface?: pulumi.Input<boolean>;
|
|
112
106
|
/**
|
|
113
|
-
* IP to
|
|
114
|
-
* Balancer. If you do not provide this then you will be auto assigned an
|
|
115
|
-
* IP address.
|
|
107
|
+
* IP to assign to the Load Balancer.
|
|
116
108
|
*/
|
|
117
109
|
ip?: pulumi.Input<string>;
|
|
118
110
|
/**
|
|
@@ -120,21 +112,11 @@ export interface LoadBalancerNetworkState {
|
|
|
120
112
|
*/
|
|
121
113
|
loadBalancerId?: pulumi.Input<number>;
|
|
122
114
|
/**
|
|
123
|
-
* ID of the
|
|
124
|
-
* to the Load Balancer. Required if `subnetId` is not set. Successful
|
|
125
|
-
* creation of the resource depends on the existence of a subnet in the
|
|
126
|
-
* Hetzner Cloud Backend. Using `networkId` will not create an explicit
|
|
127
|
-
* dependency between the Load Balancer and the subnet. Therefore
|
|
128
|
-
* `dependsOn` may need to be used. Alternatively the `subnetId`
|
|
129
|
-
* property can be used, which will create an explicit dependency between
|
|
130
|
-
* `hcloud.LoadBalancerNetwork` and the existence of a subnet.
|
|
115
|
+
* ID of the Network to attach the Load Balancer to. Using `subnetId` is preferred. Required if `subnetId` is not set. If `subnetId` or `ip` are not set, the Load Balancer will be attached to the last subnet (ordered by `ipRange`).
|
|
131
116
|
*/
|
|
132
117
|
networkId?: pulumi.Input<number>;
|
|
133
118
|
/**
|
|
134
|
-
* ID of the
|
|
135
|
-
* added to the Load Balancer. Required if `networkId` is not set.
|
|
136
|
-
* _Note_: if the `ip` property is missing, the Load Balancer is
|
|
137
|
-
* currently added to the last created subnet.
|
|
119
|
+
* ID of the Subnet to attach the Load Balancer to. Required if `networkId` is not set.
|
|
138
120
|
*/
|
|
139
121
|
subnetId?: pulumi.Input<string>;
|
|
140
122
|
}
|
|
@@ -143,14 +125,11 @@ export interface LoadBalancerNetworkState {
|
|
|
143
125
|
*/
|
|
144
126
|
export interface LoadBalancerNetworkArgs {
|
|
145
127
|
/**
|
|
146
|
-
*
|
|
147
|
-
* Load Balancers public interface. Default: `true`
|
|
128
|
+
* Wether the Load Balancer public interface is enabled. Default is `true`.
|
|
148
129
|
*/
|
|
149
130
|
enablePublicInterface?: pulumi.Input<boolean>;
|
|
150
131
|
/**
|
|
151
|
-
* IP to
|
|
152
|
-
* Balancer. If you do not provide this then you will be auto assigned an
|
|
153
|
-
* IP address.
|
|
132
|
+
* IP to assign to the Load Balancer.
|
|
154
133
|
*/
|
|
155
134
|
ip?: pulumi.Input<string>;
|
|
156
135
|
/**
|
|
@@ -158,21 +137,11 @@ export interface LoadBalancerNetworkArgs {
|
|
|
158
137
|
*/
|
|
159
138
|
loadBalancerId: pulumi.Input<number>;
|
|
160
139
|
/**
|
|
161
|
-
* ID of the
|
|
162
|
-
* to the Load Balancer. Required if `subnetId` is not set. Successful
|
|
163
|
-
* creation of the resource depends on the existence of a subnet in the
|
|
164
|
-
* Hetzner Cloud Backend. Using `networkId` will not create an explicit
|
|
165
|
-
* dependency between the Load Balancer and the subnet. Therefore
|
|
166
|
-
* `dependsOn` may need to be used. Alternatively the `subnetId`
|
|
167
|
-
* property can be used, which will create an explicit dependency between
|
|
168
|
-
* `hcloud.LoadBalancerNetwork` and the existence of a subnet.
|
|
140
|
+
* ID of the Network to attach the Load Balancer to. Using `subnetId` is preferred. Required if `subnetId` is not set. If `subnetId` or `ip` are not set, the Load Balancer will be attached to the last subnet (ordered by `ipRange`).
|
|
169
141
|
*/
|
|
170
142
|
networkId?: pulumi.Input<number>;
|
|
171
143
|
/**
|
|
172
|
-
* ID of the
|
|
173
|
-
* added to the Load Balancer. Required if `networkId` is not set.
|
|
174
|
-
* _Note_: if the `ip` property is missing, the Load Balancer is
|
|
175
|
-
* currently added to the last created subnet.
|
|
144
|
+
* ID of the Subnet to attach the Load Balancer to. Required if `networkId` is not set.
|
|
176
145
|
*/
|
|
177
146
|
subnetId?: pulumi.Input<string>;
|
|
178
147
|
}
|
package/loadBalancerNetwork.js
CHANGED
|
@@ -6,7 +6,7 @@ exports.LoadBalancerNetwork = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Manage the attachment of a Load Balancer in a Network in the Hetzner Cloud.
|
|
10
10
|
*
|
|
11
11
|
* ## Example Usage
|
|
12
12
|
*
|
|
@@ -14,35 +14,43 @@ const utilities = require("./utilities");
|
|
|
14
14
|
* import * as pulumi from "@pulumi/pulumi";
|
|
15
15
|
* import * as hcloud from "@pulumi/hcloud";
|
|
16
16
|
*
|
|
17
|
-
* const
|
|
18
|
-
* name: "
|
|
17
|
+
* const main = new hcloud.LoadBalancer("main", {
|
|
18
|
+
* name: "main",
|
|
19
19
|
* loadBalancerType: "lb11",
|
|
20
20
|
* networkZone: "eu-central",
|
|
21
21
|
* });
|
|
22
|
-
* const
|
|
23
|
-
* name: "
|
|
24
|
-
* ipRange: "10.0.0.0/
|
|
22
|
+
* const network = new hcloud.Network("network", {
|
|
23
|
+
* name: "network",
|
|
24
|
+
* ipRange: "10.0.0.0/16",
|
|
25
25
|
* });
|
|
26
|
-
* const
|
|
27
|
-
* networkId:
|
|
26
|
+
* const subnet = new hcloud.NetworkSubnet("subnet", {
|
|
27
|
+
* networkId: network.id,
|
|
28
28
|
* type: "cloud",
|
|
29
29
|
* networkZone: "eu-central",
|
|
30
30
|
* ipRange: "10.0.1.0/24",
|
|
31
31
|
* });
|
|
32
|
-
* const
|
|
33
|
-
* loadBalancerId:
|
|
34
|
-
*
|
|
32
|
+
* const attachment = new hcloud.LoadBalancerNetwork("attachment", {
|
|
33
|
+
* loadBalancerId: main.id,
|
|
34
|
+
* subnetId: subnet.id,
|
|
35
35
|
* ip: "10.0.1.5",
|
|
36
|
-
* }, {
|
|
37
|
-
* dependsOn: [foonet],
|
|
38
36
|
* });
|
|
39
37
|
* ```
|
|
40
38
|
*
|
|
41
39
|
* ## Import
|
|
42
40
|
*
|
|
43
|
-
*
|
|
41
|
+
* In Terraform v1.5.0 and later, the `import` block can be used with the `id` attribute, for example:
|
|
44
42
|
*
|
|
45
|
-
*
|
|
43
|
+
* terraform
|
|
44
|
+
*
|
|
45
|
+
* import {
|
|
46
|
+
*
|
|
47
|
+
* id = "${hcloud_load_balancer.example.id}-${hcloud_network.example.id}"
|
|
48
|
+
*
|
|
49
|
+
* to = hcloud_load_balancer_network.attachment
|
|
50
|
+
*
|
|
51
|
+
* }
|
|
52
|
+
*
|
|
53
|
+
* The `pulumi import` command can be used, for example:
|
|
46
54
|
*
|
|
47
55
|
* ```sh
|
|
48
56
|
* $ pulumi import hcloud:index/loadBalancerNetwork:LoadBalancerNetwork example "$LOAD_BALANCER_ID-$NETWORK_ID"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loadBalancerNetwork.js","sourceRoot":"","sources":["../loadBalancerNetwork.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"loadBalancerNetwork.js","sourceRoot":"","sources":["../loadBalancerNetwork.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AACH,MAAa,mBAAoB,SAAQ,MAAM,CAAC,cAAc;IAC1D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAgC,EAAE,IAAmC;QAC9H,OAAO,IAAI,mBAAmB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC1E,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,mBAAmB,CAAC,YAAY,CAAC;IACpE,CAAC;IA+BD,YAAY,IAAY,EAAE,WAAgE,EAAE,IAAmC;QAC3H,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAmD,CAAC;YAClE,cAAc,CAAC,uBAAuB,CAAC,GAAG,KAAK,EAAE,qBAAqB,CAAC;YACvE,cAAc,CAAC,IAAI,CAAC,GAAG,KAAK,EAAE,EAAE,CAAC;YACjC,cAAc,CAAC,gBAAgB,CAAC,GAAG,KAAK,EAAE,cAAc,CAAC;YACzD,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,EAAE,SAAS,CAAC;YAC/C,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,EAAE,QAAQ,CAAC;SAChD;aAAM;YACH,MAAM,IAAI,GAAG,WAAkD,CAAC;YAChE,IAAI,IAAI,EAAE,cAAc,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACjD,MAAM,IAAI,KAAK,CAAC,4CAA4C,CAAC,CAAC;aACjE;YACD,cAAc,CAAC,uBAAuB,CAAC,GAAG,IAAI,EAAE,qBAAqB,CAAC;YACtE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI,EAAE,EAAE,CAAC;YAChC,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,EAAE,cAAc,CAAC;YACxD,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;YAC9C,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;SAC/C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,mBAAmB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACxE,CAAC;;AAhFL,kDAiFC;AAnEG,gBAAgB;AACO,gCAAY,GAAG,sDAAsD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/hcloud",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.28.0",
|
|
4
4
|
"description": "A Pulumi package for creating and managing hcloud cloud resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -23,6 +23,6 @@
|
|
|
23
23
|
"pulumi": {
|
|
24
24
|
"resource": true,
|
|
25
25
|
"name": "hcloud",
|
|
26
|
-
"version": "1.
|
|
26
|
+
"version": "1.28.0"
|
|
27
27
|
}
|
|
28
28
|
}
|
package/serverNetwork.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Manage the attachment of a Server in a Network in the Hetzner Cloud.
|
|
4
4
|
*
|
|
5
5
|
* ## Example Usage
|
|
6
6
|
*
|
|
@@ -13,28 +13,27 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
13
13
|
* image: "debian-12",
|
|
14
14
|
* serverType: "cx23",
|
|
15
15
|
* });
|
|
16
|
-
* const
|
|
17
|
-
* name: "
|
|
18
|
-
* ipRange: "10.0.0.0/
|
|
16
|
+
* const network = new hcloud.Network("network", {
|
|
17
|
+
* name: "network",
|
|
18
|
+
* ipRange: "10.0.0.0/16",
|
|
19
19
|
* });
|
|
20
|
-
* const
|
|
21
|
-
* networkId:
|
|
20
|
+
* const subnet1 = new hcloud.NetworkSubnet("subnet1", {
|
|
21
|
+
* networkId: network.id,
|
|
22
22
|
* type: "cloud",
|
|
23
23
|
* networkZone: "eu-central",
|
|
24
24
|
* ipRange: "10.0.1.0/24",
|
|
25
25
|
* });
|
|
26
|
-
* const
|
|
26
|
+
* const node1Subnet1 = new hcloud.ServerNetwork("node1_subnet1", {
|
|
27
27
|
* serverId: node1.id,
|
|
28
|
-
*
|
|
28
|
+
* subnetId: subnet1.id,
|
|
29
29
|
* ip: "10.0.1.5",
|
|
30
|
+
* aliasIps: ["10.0.1.10"],
|
|
30
31
|
* });
|
|
31
32
|
* ```
|
|
32
33
|
*
|
|
33
34
|
* ## Import
|
|
34
35
|
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
* `<server-id>-<network-id>`
|
|
36
|
+
* The `pulumi import` command can be used, for example:
|
|
38
37
|
*
|
|
39
38
|
* ```sh
|
|
40
39
|
* $ pulumi import hcloud:index/serverNetwork:ServerNetwork example "$SERVER_ID-$NETWORK_ID"
|
|
@@ -57,37 +56,27 @@ export declare class ServerNetwork extends pulumi.CustomResource {
|
|
|
57
56
|
*/
|
|
58
57
|
static isInstance(obj: any): obj is ServerNetwork;
|
|
59
58
|
/**
|
|
60
|
-
* Additional IPs to
|
|
61
|
-
* to this server.
|
|
59
|
+
* Additional IPs to assign to the Server.
|
|
62
60
|
*/
|
|
63
|
-
readonly aliasIps: pulumi.Output<string[]
|
|
61
|
+
readonly aliasIps: pulumi.Output<string[]>;
|
|
64
62
|
/**
|
|
65
|
-
* IP to
|
|
66
|
-
* If you do not provide this then you will be auto assigned an IP
|
|
67
|
-
* address.
|
|
63
|
+
* IP to assign to the Server.
|
|
68
64
|
*/
|
|
69
65
|
readonly ip: pulumi.Output<string>;
|
|
66
|
+
/**
|
|
67
|
+
* MAC address of the Server on the Network.
|
|
68
|
+
*/
|
|
70
69
|
readonly macAddress: pulumi.Output<string>;
|
|
71
70
|
/**
|
|
72
|
-
* ID of the
|
|
73
|
-
* to the server. Required if `subnetId` is not set. Successful creation
|
|
74
|
-
* of the resource depends on the existence of a subnet in the Hetzner
|
|
75
|
-
* Cloud Backend. Using `networkId` will not create an explicit
|
|
76
|
-
* dependency between server and subnet. Therefore `dependsOn` may need
|
|
77
|
-
* to be used. Alternatively the `subnetId` property can be used, which
|
|
78
|
-
* will create an explicit dependency between `hcloud.ServerNetwork` and
|
|
79
|
-
* the existence of a subnet.
|
|
71
|
+
* ID of the Network to attach the Server to. Using `subnetId` is preferred. Required if `subnetId` is not set. If `subnetId` or `ip` are not set, the Server will be attached to the last subnet (ordered by `ipRange`).
|
|
80
72
|
*/
|
|
81
|
-
readonly networkId: pulumi.Output<number
|
|
73
|
+
readonly networkId: pulumi.Output<number>;
|
|
82
74
|
/**
|
|
83
|
-
* ID of the
|
|
75
|
+
* ID of the Server.
|
|
84
76
|
*/
|
|
85
77
|
readonly serverId: pulumi.Output<number>;
|
|
86
78
|
/**
|
|
87
|
-
* ID of the
|
|
88
|
-
* added to the Server. Required if `networkId` is not set.
|
|
89
|
-
* _Note_: if the `ip` property is missing, the Server is currently added
|
|
90
|
-
* to the last created subnet.
|
|
79
|
+
* ID of the Subnet to attach the Server to. Required if `networkId` is not set.
|
|
91
80
|
*/
|
|
92
81
|
readonly subnetId: pulumi.Output<string | undefined>;
|
|
93
82
|
/**
|
|
@@ -104,37 +93,27 @@ export declare class ServerNetwork extends pulumi.CustomResource {
|
|
|
104
93
|
*/
|
|
105
94
|
export interface ServerNetworkState {
|
|
106
95
|
/**
|
|
107
|
-
* Additional IPs to
|
|
108
|
-
* to this server.
|
|
96
|
+
* Additional IPs to assign to the Server.
|
|
109
97
|
*/
|
|
110
98
|
aliasIps?: pulumi.Input<pulumi.Input<string>[]>;
|
|
111
99
|
/**
|
|
112
|
-
* IP to
|
|
113
|
-
* If you do not provide this then you will be auto assigned an IP
|
|
114
|
-
* address.
|
|
100
|
+
* IP to assign to the Server.
|
|
115
101
|
*/
|
|
116
102
|
ip?: pulumi.Input<string>;
|
|
103
|
+
/**
|
|
104
|
+
* MAC address of the Server on the Network.
|
|
105
|
+
*/
|
|
117
106
|
macAddress?: pulumi.Input<string>;
|
|
118
107
|
/**
|
|
119
|
-
* ID of the
|
|
120
|
-
* to the server. Required if `subnetId` is not set. Successful creation
|
|
121
|
-
* of the resource depends on the existence of a subnet in the Hetzner
|
|
122
|
-
* Cloud Backend. Using `networkId` will not create an explicit
|
|
123
|
-
* dependency between server and subnet. Therefore `dependsOn` may need
|
|
124
|
-
* to be used. Alternatively the `subnetId` property can be used, which
|
|
125
|
-
* will create an explicit dependency between `hcloud.ServerNetwork` and
|
|
126
|
-
* the existence of a subnet.
|
|
108
|
+
* ID of the Network to attach the Server to. Using `subnetId` is preferred. Required if `subnetId` is not set. If `subnetId` or `ip` are not set, the Server will be attached to the last subnet (ordered by `ipRange`).
|
|
127
109
|
*/
|
|
128
110
|
networkId?: pulumi.Input<number>;
|
|
129
111
|
/**
|
|
130
|
-
* ID of the
|
|
112
|
+
* ID of the Server.
|
|
131
113
|
*/
|
|
132
114
|
serverId?: pulumi.Input<number>;
|
|
133
115
|
/**
|
|
134
|
-
* ID of the
|
|
135
|
-
* added to the Server. Required if `networkId` is not set.
|
|
136
|
-
* _Note_: if the `ip` property is missing, the Server is currently added
|
|
137
|
-
* to the last created subnet.
|
|
116
|
+
* ID of the Subnet to attach the Server to. Required if `networkId` is not set.
|
|
138
117
|
*/
|
|
139
118
|
subnetId?: pulumi.Input<string>;
|
|
140
119
|
}
|
|
@@ -143,36 +122,23 @@ export interface ServerNetworkState {
|
|
|
143
122
|
*/
|
|
144
123
|
export interface ServerNetworkArgs {
|
|
145
124
|
/**
|
|
146
|
-
* Additional IPs to
|
|
147
|
-
* to this server.
|
|
125
|
+
* Additional IPs to assign to the Server.
|
|
148
126
|
*/
|
|
149
127
|
aliasIps?: pulumi.Input<pulumi.Input<string>[]>;
|
|
150
128
|
/**
|
|
151
|
-
* IP to
|
|
152
|
-
* If you do not provide this then you will be auto assigned an IP
|
|
153
|
-
* address.
|
|
129
|
+
* IP to assign to the Server.
|
|
154
130
|
*/
|
|
155
131
|
ip?: pulumi.Input<string>;
|
|
156
132
|
/**
|
|
157
|
-
* ID of the
|
|
158
|
-
* to the server. Required if `subnetId` is not set. Successful creation
|
|
159
|
-
* of the resource depends on the existence of a subnet in the Hetzner
|
|
160
|
-
* Cloud Backend. Using `networkId` will not create an explicit
|
|
161
|
-
* dependency between server and subnet. Therefore `dependsOn` may need
|
|
162
|
-
* to be used. Alternatively the `subnetId` property can be used, which
|
|
163
|
-
* will create an explicit dependency between `hcloud.ServerNetwork` and
|
|
164
|
-
* the existence of a subnet.
|
|
133
|
+
* ID of the Network to attach the Server to. Using `subnetId` is preferred. Required if `subnetId` is not set. If `subnetId` or `ip` are not set, the Server will be attached to the last subnet (ordered by `ipRange`).
|
|
165
134
|
*/
|
|
166
135
|
networkId?: pulumi.Input<number>;
|
|
167
136
|
/**
|
|
168
|
-
* ID of the
|
|
137
|
+
* ID of the Server.
|
|
169
138
|
*/
|
|
170
139
|
serverId: pulumi.Input<number>;
|
|
171
140
|
/**
|
|
172
|
-
* ID of the
|
|
173
|
-
* added to the Server. Required if `networkId` is not set.
|
|
174
|
-
* _Note_: if the `ip` property is missing, the Server is currently added
|
|
175
|
-
* to the last created subnet.
|
|
141
|
+
* ID of the Subnet to attach the Server to. Required if `networkId` is not set.
|
|
176
142
|
*/
|
|
177
143
|
subnetId?: pulumi.Input<string>;
|
|
178
144
|
}
|
package/serverNetwork.js
CHANGED
|
@@ -6,7 +6,7 @@ exports.ServerNetwork = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Manage the attachment of a Server in a Network in the Hetzner Cloud.
|
|
10
10
|
*
|
|
11
11
|
* ## Example Usage
|
|
12
12
|
*
|
|
@@ -19,28 +19,27 @@ const utilities = require("./utilities");
|
|
|
19
19
|
* image: "debian-12",
|
|
20
20
|
* serverType: "cx23",
|
|
21
21
|
* });
|
|
22
|
-
* const
|
|
23
|
-
* name: "
|
|
24
|
-
* ipRange: "10.0.0.0/
|
|
22
|
+
* const network = new hcloud.Network("network", {
|
|
23
|
+
* name: "network",
|
|
24
|
+
* ipRange: "10.0.0.0/16",
|
|
25
25
|
* });
|
|
26
|
-
* const
|
|
27
|
-
* networkId:
|
|
26
|
+
* const subnet1 = new hcloud.NetworkSubnet("subnet1", {
|
|
27
|
+
* networkId: network.id,
|
|
28
28
|
* type: "cloud",
|
|
29
29
|
* networkZone: "eu-central",
|
|
30
30
|
* ipRange: "10.0.1.0/24",
|
|
31
31
|
* });
|
|
32
|
-
* const
|
|
32
|
+
* const node1Subnet1 = new hcloud.ServerNetwork("node1_subnet1", {
|
|
33
33
|
* serverId: node1.id,
|
|
34
|
-
*
|
|
34
|
+
* subnetId: subnet1.id,
|
|
35
35
|
* ip: "10.0.1.5",
|
|
36
|
+
* aliasIps: ["10.0.1.10"],
|
|
36
37
|
* });
|
|
37
38
|
* ```
|
|
38
39
|
*
|
|
39
40
|
* ## Import
|
|
40
41
|
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
* `<server-id>-<network-id>`
|
|
42
|
+
* The `pulumi import` command can be used, for example:
|
|
44
43
|
*
|
|
45
44
|
* ```sh
|
|
46
45
|
* $ pulumi import hcloud:index/serverNetwork:ServerNetwork example "$SERVER_ID-$NETWORK_ID"
|
package/serverNetwork.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serverNetwork.js","sourceRoot":"","sources":["../serverNetwork.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"serverNetwork.js","sourceRoot":"","sources":["../serverNetwork.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,MAAa,aAAc,SAAQ,MAAM,CAAC,cAAc;IACpD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA0B,EAAE,IAAmC;QACxH,OAAO,IAAI,aAAa,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACpE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,aAAa,CAAC,YAAY,CAAC;IAC9D,CAAC;IAmCD,YAAY,IAAY,EAAE,WAAoD,EAAE,IAAmC;QAC/G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA6C,CAAC;YAC5D,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,EAAE,QAAQ,CAAC;YAC7C,cAAc,CAAC,IAAI,CAAC,GAAG,KAAK,EAAE,EAAE,CAAC;YACjC,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,EAAE,UAAU,CAAC;YACjD,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,EAAE,SAAS,CAAC;YAC/C,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,EAAE,QAAQ,CAAC;YAC7C,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,EAAE,QAAQ,CAAC;SAChD;aAAM;YACH,MAAM,IAAI,GAAG,WAA4C,CAAC;YAC1D,IAAI,IAAI,EAAE,QAAQ,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC3C,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;aAC3D;YACD,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;YAC5C,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI,EAAE,EAAE,CAAC;YAChC,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;YAC9C,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;YAC5C,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;YAC5C,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACpD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,aAAa,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAClE,CAAC;;AAtFL,sCAuFC;AAzEG,gBAAgB;AACO,0BAAY,GAAG,0CAA0C,CAAC"}
|
package/zone.d.ts
CHANGED
|
@@ -10,9 +10,6 @@ import * as outputs from "./types/output";
|
|
|
10
10
|
*
|
|
11
11
|
* See the [Zones API documentation](https://docs.hetzner.cloud/reference/cloud#zones) for more details.
|
|
12
12
|
*
|
|
13
|
-
* **Experimental:** DNS API is in beta, breaking changes may occur within minor releases.
|
|
14
|
-
* See https://docs.hetzner.cloud/changelog#2025-10-07-dns-beta for more details.
|
|
15
|
-
*
|
|
16
13
|
* ## Import
|
|
17
14
|
*
|
|
18
15
|
* In Terraform v1.5.0 and later, the `import` block can be used with the `id` attribute, for example:
|
package/zone.js
CHANGED
|
@@ -14,9 +14,6 @@ const utilities = require("./utilities");
|
|
|
14
14
|
*
|
|
15
15
|
* See the [Zones API documentation](https://docs.hetzner.cloud/reference/cloud#zones) for more details.
|
|
16
16
|
*
|
|
17
|
-
* **Experimental:** DNS API is in beta, breaking changes may occur within minor releases.
|
|
18
|
-
* See https://docs.hetzner.cloud/changelog#2025-10-07-dns-beta for more details.
|
|
19
|
-
*
|
|
20
17
|
* ## Import
|
|
21
18
|
*
|
|
22
19
|
* In Terraform v1.5.0 and later, the `import` block can be used with the `id` attribute, for example:
|
package/zone.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zone.js","sourceRoot":"","sources":["../zone.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"zone.js","sourceRoot":"","sources":["../zone.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAa,IAAK,SAAQ,MAAM,CAAC,cAAc;IAC3C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAiB,EAAE,IAAmC;QAC/G,OAAO,IAAI,IAAI,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC3D,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC,YAAY,CAAC;IACrD,CAAC;IA2CD,YAAY,IAAY,EAAE,WAAkC,EAAE,IAAmC;QAC7F,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAoC,CAAC;YACnD,cAAc,CAAC,0BAA0B,CAAC,GAAG,KAAK,EAAE,wBAAwB,CAAC;YAC7E,cAAc,CAAC,kBAAkB,CAAC,GAAG,KAAK,EAAE,gBAAgB,CAAC;YAC7D,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,EAAE,MAAM,CAAC;YACzC,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,EAAE,IAAI,CAAC;YACrC,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,EAAE,IAAI,CAAC;YACrC,cAAc,CAAC,oBAAoB,CAAC,GAAG,KAAK,EAAE,kBAAkB,CAAC;YACjE,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,EAAE,SAAS,CAAC;YAC/C,cAAc,CAAC,KAAK,CAAC,GAAG,KAAK,EAAE,GAAG,CAAC;SACtC;aAAM;YACH,MAAM,IAAI,GAAG,WAAmC,CAAC;YACjD,IAAI,IAAI,EAAE,IAAI,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACvC,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;aACvD;YACD,cAAc,CAAC,kBAAkB,CAAC,GAAG,IAAI,EAAE,gBAAgB,CAAC;YAC5D,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,oBAAoB,CAAC,GAAG,IAAI,EAAE,kBAAkB,CAAC;YAChE,cAAc,CAAC,KAAK,CAAC,GAAG,IAAI,EAAE,GAAG,CAAC;YAClC,cAAc,CAAC,0BAA0B,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC/D,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACnD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,IAAI,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACzD,CAAC;;AAlGL,oBAmGC;AArFG,gBAAgB;AACO,iBAAY,GAAG,wBAAwB,CAAC"}
|