@pulumi/hcloud 1.9.0-alpha.1653499798 → 1.9.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/getPrimaryIp.d.ts +142 -0
- package/getPrimaryIp.js +70 -0
- package/getPrimaryIp.js.map +1 -0
- package/getPrimaryIps.d.ts +50 -0
- package/getPrimaryIps.js +37 -0
- package/getPrimaryIps.js.map +1 -0
- package/index.d.ts +3 -0
- package/index.js +7 -0
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +2 -2
- package/primaryIp.d.ts +182 -0
- package/primaryIp.js +119 -0
- package/primaryIp.js.map +1 -0
- package/server.d.ts +12 -13
- package/server.js +2 -13
- package/server.js.map +1 -1
- package/types/input.d.ts +26 -20
- package/types/output.d.ts +21 -0
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Provides details about a Hetzner Cloud Primary IP.
|
|
4
|
+
*
|
|
5
|
+
* This resource can be useful when you need to determine a Primary IP ID based on the IP address.
|
|
6
|
+
*
|
|
7
|
+
* Side note:
|
|
8
|
+
*
|
|
9
|
+
* If a server is getting created, it has to have a primary ip. If a server is getting created without defining primary ips, two of them (one ipv4 and one ipv6) getting created & attached.
|
|
10
|
+
* Currently, Primary IPs can be only attached to servers.
|
|
11
|
+
*
|
|
12
|
+
* ## Example Usage
|
|
13
|
+
*
|
|
14
|
+
* # Data Source: hcloud.PrimaryIp
|
|
15
|
+
* Provides details about a Hetzner Cloud Primary IP.
|
|
16
|
+
* This resource can be useful when you need to determine a Primary IP ID based on the IP address.
|
|
17
|
+
* ### Additional Examples
|
|
18
|
+
* ```typescript
|
|
19
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
20
|
+
* import * as hcloud from "@pulumi/hcloud";
|
|
21
|
+
*
|
|
22
|
+
* const ip1 = hcloud.getPrimaryIp({
|
|
23
|
+
* ipAddress: "1.2.3.4",
|
|
24
|
+
* });
|
|
25
|
+
* const ip2 = hcloud.getPrimaryIp({
|
|
26
|
+
* name: "primary_ip_1",
|
|
27
|
+
* });
|
|
28
|
+
* const ip3 = hcloud.getPrimaryIp({
|
|
29
|
+
* withSelector: "key=value",
|
|
30
|
+
* });
|
|
31
|
+
* // Link a server to an existing primary IP
|
|
32
|
+
* const serverTest = new hcloud.Server("serverTest", {
|
|
33
|
+
* image: "ubuntu-20.04",
|
|
34
|
+
* serverType: "cx11",
|
|
35
|
+
* datacenter: "fsn1-dc14",
|
|
36
|
+
* labels: {
|
|
37
|
+
* test: "tessst1",
|
|
38
|
+
* },
|
|
39
|
+
* publicNets: [{
|
|
40
|
+
* ipv4: hcloud_primary_ip.ip_1.id,
|
|
41
|
+
* }],
|
|
42
|
+
* });
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
export declare function getPrimaryIp(args?: GetPrimaryIpArgs, opts?: pulumi.InvokeOptions): Promise<GetPrimaryIpResult>;
|
|
46
|
+
/**
|
|
47
|
+
* A collection of arguments for invoking getPrimaryIp.
|
|
48
|
+
*/
|
|
49
|
+
export interface GetPrimaryIpArgs {
|
|
50
|
+
/**
|
|
51
|
+
* (int) ID of the assigned resource
|
|
52
|
+
*/
|
|
53
|
+
assigneeId?: number;
|
|
54
|
+
/**
|
|
55
|
+
* ID of the Primary IP.
|
|
56
|
+
*/
|
|
57
|
+
id?: number;
|
|
58
|
+
/**
|
|
59
|
+
* IP address of the Primary IP.
|
|
60
|
+
*/
|
|
61
|
+
ipAddress?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Name of the Primary IP.
|
|
64
|
+
*/
|
|
65
|
+
name?: string;
|
|
66
|
+
/**
|
|
67
|
+
* [Label selector](https://docs.hetzner.cloud/#overview-label-selector)
|
|
68
|
+
*/
|
|
69
|
+
withSelector?: string;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* A collection of values returned by getPrimaryIp.
|
|
73
|
+
*/
|
|
74
|
+
export interface GetPrimaryIpResult {
|
|
75
|
+
/**
|
|
76
|
+
* (int) ID of the assigned resource
|
|
77
|
+
*/
|
|
78
|
+
readonly assigneeId: number;
|
|
79
|
+
/**
|
|
80
|
+
* (string) The type of the assigned resource.
|
|
81
|
+
*/
|
|
82
|
+
readonly assigneeType: string;
|
|
83
|
+
/**
|
|
84
|
+
* (boolean) Whether auto delete is enabled.
|
|
85
|
+
*/
|
|
86
|
+
readonly autoDelete: boolean;
|
|
87
|
+
readonly datacenter: string;
|
|
88
|
+
/**
|
|
89
|
+
* (boolean) Whether delete protection is enabled.
|
|
90
|
+
*/
|
|
91
|
+
readonly deleteProtection: boolean;
|
|
92
|
+
/**
|
|
93
|
+
* (int) Unique ID of the Primary IP.
|
|
94
|
+
*/
|
|
95
|
+
readonly id: number;
|
|
96
|
+
/**
|
|
97
|
+
* (string) IP Address of the Primary IP.
|
|
98
|
+
*/
|
|
99
|
+
readonly ipAddress: string;
|
|
100
|
+
readonly ipNetwork: string;
|
|
101
|
+
/**
|
|
102
|
+
* (string) Description of the Primary IP.
|
|
103
|
+
*/
|
|
104
|
+
readonly labels: {
|
|
105
|
+
[key: string]: any;
|
|
106
|
+
};
|
|
107
|
+
/**
|
|
108
|
+
* (string) Name of the Primary IP.
|
|
109
|
+
*/
|
|
110
|
+
readonly name?: string;
|
|
111
|
+
/**
|
|
112
|
+
* (string) Type of the Primary IP.
|
|
113
|
+
*/
|
|
114
|
+
readonly type: string;
|
|
115
|
+
readonly withSelector?: string;
|
|
116
|
+
}
|
|
117
|
+
export declare function getPrimaryIpOutput(args?: GetPrimaryIpOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetPrimaryIpResult>;
|
|
118
|
+
/**
|
|
119
|
+
* A collection of arguments for invoking getPrimaryIp.
|
|
120
|
+
*/
|
|
121
|
+
export interface GetPrimaryIpOutputArgs {
|
|
122
|
+
/**
|
|
123
|
+
* (int) ID of the assigned resource
|
|
124
|
+
*/
|
|
125
|
+
assigneeId?: pulumi.Input<number>;
|
|
126
|
+
/**
|
|
127
|
+
* ID of the Primary IP.
|
|
128
|
+
*/
|
|
129
|
+
id?: pulumi.Input<number>;
|
|
130
|
+
/**
|
|
131
|
+
* IP address of the Primary IP.
|
|
132
|
+
*/
|
|
133
|
+
ipAddress?: pulumi.Input<string>;
|
|
134
|
+
/**
|
|
135
|
+
* Name of the Primary IP.
|
|
136
|
+
*/
|
|
137
|
+
name?: pulumi.Input<string>;
|
|
138
|
+
/**
|
|
139
|
+
* [Label selector](https://docs.hetzner.cloud/#overview-label-selector)
|
|
140
|
+
*/
|
|
141
|
+
withSelector?: pulumi.Input<string>;
|
|
142
|
+
}
|
package/getPrimaryIp.js
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.getPrimaryIpOutput = exports.getPrimaryIp = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Provides details about a Hetzner Cloud Primary IP.
|
|
10
|
+
*
|
|
11
|
+
* This resource can be useful when you need to determine a Primary IP ID based on the IP address.
|
|
12
|
+
*
|
|
13
|
+
* Side note:
|
|
14
|
+
*
|
|
15
|
+
* If a server is getting created, it has to have a primary ip. If a server is getting created without defining primary ips, two of them (one ipv4 and one ipv6) getting created & attached.
|
|
16
|
+
* Currently, Primary IPs can be only attached to servers.
|
|
17
|
+
*
|
|
18
|
+
* ## Example Usage
|
|
19
|
+
*
|
|
20
|
+
* # Data Source: hcloud.PrimaryIp
|
|
21
|
+
* Provides details about a Hetzner Cloud Primary IP.
|
|
22
|
+
* This resource can be useful when you need to determine a Primary IP ID based on the IP address.
|
|
23
|
+
* ### Additional Examples
|
|
24
|
+
* ```typescript
|
|
25
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
26
|
+
* import * as hcloud from "@pulumi/hcloud";
|
|
27
|
+
*
|
|
28
|
+
* const ip1 = hcloud.getPrimaryIp({
|
|
29
|
+
* ipAddress: "1.2.3.4",
|
|
30
|
+
* });
|
|
31
|
+
* const ip2 = hcloud.getPrimaryIp({
|
|
32
|
+
* name: "primary_ip_1",
|
|
33
|
+
* });
|
|
34
|
+
* const ip3 = hcloud.getPrimaryIp({
|
|
35
|
+
* withSelector: "key=value",
|
|
36
|
+
* });
|
|
37
|
+
* // Link a server to an existing primary IP
|
|
38
|
+
* const serverTest = new hcloud.Server("serverTest", {
|
|
39
|
+
* image: "ubuntu-20.04",
|
|
40
|
+
* serverType: "cx11",
|
|
41
|
+
* datacenter: "fsn1-dc14",
|
|
42
|
+
* labels: {
|
|
43
|
+
* test: "tessst1",
|
|
44
|
+
* },
|
|
45
|
+
* publicNets: [{
|
|
46
|
+
* ipv4: hcloud_primary_ip.ip_1.id,
|
|
47
|
+
* }],
|
|
48
|
+
* });
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
function getPrimaryIp(args, opts) {
|
|
52
|
+
args = args || {};
|
|
53
|
+
if (!opts) {
|
|
54
|
+
opts = {};
|
|
55
|
+
}
|
|
56
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
57
|
+
return pulumi.runtime.invoke("hcloud:index/getPrimaryIp:getPrimaryIp", {
|
|
58
|
+
"assigneeId": args.assigneeId,
|
|
59
|
+
"id": args.id,
|
|
60
|
+
"ipAddress": args.ipAddress,
|
|
61
|
+
"name": args.name,
|
|
62
|
+
"withSelector": args.withSelector,
|
|
63
|
+
}, opts);
|
|
64
|
+
}
|
|
65
|
+
exports.getPrimaryIp = getPrimaryIp;
|
|
66
|
+
function getPrimaryIpOutput(args, opts) {
|
|
67
|
+
return pulumi.output(args).apply(a => getPrimaryIp(a, opts));
|
|
68
|
+
}
|
|
69
|
+
exports.getPrimaryIpOutput = getPrimaryIpOutput;
|
|
70
|
+
//# sourceMappingURL=getPrimaryIp.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getPrimaryIp.js","sourceRoot":"","sources":["../getPrimaryIp.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,SAAgB,YAAY,CAAC,IAAuB,EAAE,IAA2B;IAC7E,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,wCAAwC,EAAE;QACnE,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,cAAc,EAAE,IAAI,CAAC,YAAY;KACpC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAdD,oCAcC;AAyED,SAAgB,kBAAkB,CAAC,IAA6B,EAAE,IAA2B;IACzF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,YAAY,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAChE,CAAC;AAFD,gDAEC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import { output as outputs } from "./types";
|
|
3
|
+
/**
|
|
4
|
+
* Provides details about multiple Hetzner Cloud Primary IPs.
|
|
5
|
+
*
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
+
* import * as hcloud from "@pulumi/hcloud";
|
|
11
|
+
*
|
|
12
|
+
* const ip2 = pulumi.output(hcloud.getPrimaryIps({
|
|
13
|
+
* withSelector: "key=value",
|
|
14
|
+
* }));
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
export declare function getPrimaryIps(args?: GetPrimaryIpsArgs, opts?: pulumi.InvokeOptions): Promise<GetPrimaryIpsResult>;
|
|
18
|
+
/**
|
|
19
|
+
* A collection of arguments for invoking getPrimaryIps.
|
|
20
|
+
*/
|
|
21
|
+
export interface GetPrimaryIpsArgs {
|
|
22
|
+
/**
|
|
23
|
+
* [Label selector](https://docs.hetzner.cloud/#overview-label-selector)
|
|
24
|
+
*/
|
|
25
|
+
withSelector?: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* A collection of values returned by getPrimaryIps.
|
|
29
|
+
*/
|
|
30
|
+
export interface GetPrimaryIpsResult {
|
|
31
|
+
/**
|
|
32
|
+
* The provider-assigned unique ID for this managed resource.
|
|
33
|
+
*/
|
|
34
|
+
readonly id: string;
|
|
35
|
+
/**
|
|
36
|
+
* (list) List of all matching primary ips. See `data.hcloud_primary_ip` for schema.
|
|
37
|
+
*/
|
|
38
|
+
readonly primaryIps: outputs.GetPrimaryIpsPrimaryIp[];
|
|
39
|
+
readonly withSelector?: string;
|
|
40
|
+
}
|
|
41
|
+
export declare function getPrimaryIpsOutput(args?: GetPrimaryIpsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetPrimaryIpsResult>;
|
|
42
|
+
/**
|
|
43
|
+
* A collection of arguments for invoking getPrimaryIps.
|
|
44
|
+
*/
|
|
45
|
+
export interface GetPrimaryIpsOutputArgs {
|
|
46
|
+
/**
|
|
47
|
+
* [Label selector](https://docs.hetzner.cloud/#overview-label-selector)
|
|
48
|
+
*/
|
|
49
|
+
withSelector?: pulumi.Input<string>;
|
|
50
|
+
}
|
package/getPrimaryIps.js
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.getPrimaryIpsOutput = exports.getPrimaryIps = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Provides details about multiple Hetzner Cloud Primary IPs.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as hcloud from "@pulumi/hcloud";
|
|
16
|
+
*
|
|
17
|
+
* const ip2 = pulumi.output(hcloud.getPrimaryIps({
|
|
18
|
+
* withSelector: "key=value",
|
|
19
|
+
* }));
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
function getPrimaryIps(args, opts) {
|
|
23
|
+
args = args || {};
|
|
24
|
+
if (!opts) {
|
|
25
|
+
opts = {};
|
|
26
|
+
}
|
|
27
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
28
|
+
return pulumi.runtime.invoke("hcloud:index/getPrimaryIps:getPrimaryIps", {
|
|
29
|
+
"withSelector": args.withSelector,
|
|
30
|
+
}, opts);
|
|
31
|
+
}
|
|
32
|
+
exports.getPrimaryIps = getPrimaryIps;
|
|
33
|
+
function getPrimaryIpsOutput(args, opts) {
|
|
34
|
+
return pulumi.output(args).apply(a => getPrimaryIps(a, opts));
|
|
35
|
+
}
|
|
36
|
+
exports.getPrimaryIpsOutput = getPrimaryIpsOutput;
|
|
37
|
+
//# sourceMappingURL=getPrimaryIps.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getPrimaryIps.js","sourceRoot":"","sources":["../getPrimaryIps.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;AACH,SAAgB,aAAa,CAAC,IAAwB,EAAE,IAA2B;IAC/E,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,0CAA0C,EAAE;QACrE,cAAc,EAAE,IAAI,CAAC,YAAY;KACpC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAVD,sCAUC;AA2BD,SAAgB,mBAAmB,CAAC,IAA8B,EAAE,IAA2B;IAC3F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,aAAa,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACjE,CAAC;AAFD,kDAEC"}
|
package/index.d.ts
CHANGED
|
@@ -21,6 +21,8 @@ export * from "./getNetwork";
|
|
|
21
21
|
export * from "./getNetworks";
|
|
22
22
|
export * from "./getPlacementGroup";
|
|
23
23
|
export * from "./getPlacementGroups";
|
|
24
|
+
export * from "./getPrimaryIp";
|
|
25
|
+
export * from "./getPrimaryIps";
|
|
24
26
|
export * from "./getServer";
|
|
25
27
|
export * from "./getServerType";
|
|
26
28
|
export * from "./getServerTypes";
|
|
@@ -38,6 +40,7 @@ export * from "./network";
|
|
|
38
40
|
export * from "./networkRoute";
|
|
39
41
|
export * from "./networkSubnet";
|
|
40
42
|
export * from "./placementGroup";
|
|
43
|
+
export * from "./primaryIp";
|
|
41
44
|
export * from "./provider";
|
|
42
45
|
export * from "./rdns";
|
|
43
46
|
export * from "./server";
|
package/index.js
CHANGED
|
@@ -43,6 +43,8 @@ __exportStar(require("./getNetwork"), exports);
|
|
|
43
43
|
__exportStar(require("./getNetworks"), exports);
|
|
44
44
|
__exportStar(require("./getPlacementGroup"), exports);
|
|
45
45
|
__exportStar(require("./getPlacementGroups"), exports);
|
|
46
|
+
__exportStar(require("./getPrimaryIp"), exports);
|
|
47
|
+
__exportStar(require("./getPrimaryIps"), exports);
|
|
46
48
|
__exportStar(require("./getServer"), exports);
|
|
47
49
|
__exportStar(require("./getServerType"), exports);
|
|
48
50
|
__exportStar(require("./getServerTypes"), exports);
|
|
@@ -60,6 +62,7 @@ __exportStar(require("./network"), exports);
|
|
|
60
62
|
__exportStar(require("./networkRoute"), exports);
|
|
61
63
|
__exportStar(require("./networkSubnet"), exports);
|
|
62
64
|
__exportStar(require("./placementGroup"), exports);
|
|
65
|
+
__exportStar(require("./primaryIp"), exports);
|
|
63
66
|
__exportStar(require("./provider"), exports);
|
|
64
67
|
__exportStar(require("./rdns"), exports);
|
|
65
68
|
__exportStar(require("./server"), exports);
|
|
@@ -89,6 +92,7 @@ const network_1 = require("./network");
|
|
|
89
92
|
const networkRoute_1 = require("./networkRoute");
|
|
90
93
|
const networkSubnet_1 = require("./networkSubnet");
|
|
91
94
|
const placementGroup_1 = require("./placementGroup");
|
|
95
|
+
const primaryIp_1 = require("./primaryIp");
|
|
92
96
|
const rdns_1 = require("./rdns");
|
|
93
97
|
const server_1 = require("./server");
|
|
94
98
|
const serverNetwork_1 = require("./serverNetwork");
|
|
@@ -129,6 +133,8 @@ const _module = {
|
|
|
129
133
|
return new networkSubnet_1.NetworkSubnet(name, undefined, { urn });
|
|
130
134
|
case "hcloud:index/placementGroup:PlacementGroup":
|
|
131
135
|
return new placementGroup_1.PlacementGroup(name, undefined, { urn });
|
|
136
|
+
case "hcloud:index/primaryIp:PrimaryIp":
|
|
137
|
+
return new primaryIp_1.PrimaryIp(name, undefined, { urn });
|
|
132
138
|
case "hcloud:index/rdns:Rdns":
|
|
133
139
|
return new rdns_1.Rdns(name, undefined, { urn });
|
|
134
140
|
case "hcloud:index/server:Server":
|
|
@@ -164,6 +170,7 @@ pulumi.runtime.registerResourceModule("hcloud", "index/network", _module);
|
|
|
164
170
|
pulumi.runtime.registerResourceModule("hcloud", "index/networkRoute", _module);
|
|
165
171
|
pulumi.runtime.registerResourceModule("hcloud", "index/networkSubnet", _module);
|
|
166
172
|
pulumi.runtime.registerResourceModule("hcloud", "index/placementGroup", _module);
|
|
173
|
+
pulumi.runtime.registerResourceModule("hcloud", "index/primaryIp", _module);
|
|
167
174
|
pulumi.runtime.registerResourceModule("hcloud", "index/rdns", _module);
|
|
168
175
|
pulumi.runtime.registerResourceModule("hcloud", "index/server", _module);
|
|
169
176
|
pulumi.runtime.registerResourceModule("hcloud", "index/serverNetwork", _module);
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;;;;;;;;;;;;;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,kBAAkB;AAClB,gDAA8B;AAC9B,6CAA2B;AAC3B,uDAAqC;AACrC,+CAA6B;AAC7B,yDAAuC;AACvC,mDAAiC;AACjC,oDAAkC;AAClC,kDAAgC;AAChC,mDAAiC;AACjC,gDAA8B;AAC9B,iDAA+B;AAC/B,kDAAgC;AAChC,mDAAiC;AACjC,6CAA2B;AAC3B,8CAA4B;AAC5B,oDAAkC;AAClC,qDAAmC;AACnC,gDAA8B;AAC9B,iDAA+B;AAC/B,+CAA6B;AAC7B,gDAA8B;AAC9B,sDAAoC;AACpC,uDAAqC;AACrC,8CAA4B;AAC5B,kDAAgC;AAChC,mDAAiC;AACjC,+CAA6B;AAC7B,8CAA4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AAE,CAAC,CAAC;IACvD,CAAC;CACJ,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/hcloud",
|
|
3
|
-
"version": "v1.9.0
|
|
3
|
+
"version": "v1.9.0",
|
|
4
4
|
"description": "A Pulumi package for creating and managing hcloud cloud resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "tsc",
|
|
14
|
-
"install": "node scripts/install-pulumi-plugin.js resource hcloud v1.9.0
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource hcloud v1.9.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@pulumi/pulumi": "^3.0.0"
|
package/package.json.dev
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/hcloud",
|
|
3
|
-
"version": "v1.9.0
|
|
3
|
+
"version": "v1.9.0",
|
|
4
4
|
"description": "A Pulumi package for creating and managing hcloud cloud resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "tsc",
|
|
14
|
-
"install": "node scripts/install-pulumi-plugin.js resource hcloud v1.9.0
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource hcloud v1.9.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@pulumi/pulumi": "^3.0.0"
|
package/primaryIp.d.ts
ADDED
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Provides a Hetzner Cloud Primary IP to represent a publicly-accessible static IP address that can be mapped to one of your servers.
|
|
4
|
+
*
|
|
5
|
+
* If a server is getting created, it has to have a primary ip. If a server is getting created without defining primary ips, two of them (one ipv4 and one ipv6) getting created & attached.
|
|
6
|
+
* Currently, Primary IPs can be only attached to servers.
|
|
7
|
+
*
|
|
8
|
+
* ## Example Usage
|
|
9
|
+
*
|
|
10
|
+
* ```typescript
|
|
11
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
12
|
+
* import * as hcloud from "@pulumi/hcloud";
|
|
13
|
+
*
|
|
14
|
+
* const main = new hcloud.PrimaryIp("main", {
|
|
15
|
+
* datacenter: "fsn1-dc14",
|
|
16
|
+
* type: "ipv4",
|
|
17
|
+
* assigneeType: "server",
|
|
18
|
+
* autoDelete: true,
|
|
19
|
+
* labels: {
|
|
20
|
+
* hallo: "welt",
|
|
21
|
+
* },
|
|
22
|
+
* });
|
|
23
|
+
* // Link a server to a primary IP
|
|
24
|
+
* const serverTest = new hcloud.Server("serverTest", {
|
|
25
|
+
* image: "ubuntu-20.04",
|
|
26
|
+
* serverType: "cx11",
|
|
27
|
+
* datacenter: "fsn1-dc14",
|
|
28
|
+
* labels: {
|
|
29
|
+
* test: "tessst1",
|
|
30
|
+
* },
|
|
31
|
+
* publicNets: [{
|
|
32
|
+
* ipv4: main.id,
|
|
33
|
+
* }],
|
|
34
|
+
* });
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
37
|
+
* ## Import
|
|
38
|
+
*
|
|
39
|
+
* Primary IPs can be imported using its `id`
|
|
40
|
+
*
|
|
41
|
+
* ```sh
|
|
42
|
+
* $ pulumi import hcloud:index/primaryIp:PrimaryIp myip <id>
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
export declare class PrimaryIp extends pulumi.CustomResource {
|
|
46
|
+
/**
|
|
47
|
+
* Get an existing PrimaryIp resource's state with the given name, ID, and optional extra
|
|
48
|
+
* properties used to qualify the lookup.
|
|
49
|
+
*
|
|
50
|
+
* @param name The _unique_ name of the resulting resource.
|
|
51
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
52
|
+
* @param state Any extra arguments used during the lookup.
|
|
53
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
54
|
+
*/
|
|
55
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: PrimaryIpState, opts?: pulumi.CustomResourceOptions): PrimaryIp;
|
|
56
|
+
/**
|
|
57
|
+
* Returns true if the given object is an instance of PrimaryIp. This is designed to work even
|
|
58
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
59
|
+
*/
|
|
60
|
+
static isInstance(obj: any): obj is PrimaryIp;
|
|
61
|
+
/**
|
|
62
|
+
* ID of the assigned resource
|
|
63
|
+
*/
|
|
64
|
+
readonly assigneeId: pulumi.Output<number>;
|
|
65
|
+
/**
|
|
66
|
+
* The type of the assigned resource.
|
|
67
|
+
*/
|
|
68
|
+
readonly assigneeType: pulumi.Output<string>;
|
|
69
|
+
/**
|
|
70
|
+
* Whether auto delete is enabled.
|
|
71
|
+
*/
|
|
72
|
+
readonly autoDelete: pulumi.Output<boolean>;
|
|
73
|
+
readonly datacenter: pulumi.Output<string>;
|
|
74
|
+
/**
|
|
75
|
+
* Whether delete protection is enabled.
|
|
76
|
+
*/
|
|
77
|
+
readonly deleteProtection: pulumi.Output<boolean | undefined>;
|
|
78
|
+
/**
|
|
79
|
+
* (string) IP Address of the Primary IP.
|
|
80
|
+
*/
|
|
81
|
+
readonly ipAddress: pulumi.Output<string>;
|
|
82
|
+
readonly ipNetwork: pulumi.Output<string>;
|
|
83
|
+
/**
|
|
84
|
+
* Description of the Primary IP.
|
|
85
|
+
*/
|
|
86
|
+
readonly labels: pulumi.Output<{
|
|
87
|
+
[key: string]: any;
|
|
88
|
+
} | undefined>;
|
|
89
|
+
/**
|
|
90
|
+
* Name of the Primary IP.
|
|
91
|
+
*/
|
|
92
|
+
readonly name: pulumi.Output<string>;
|
|
93
|
+
/**
|
|
94
|
+
* Type of the Primary IP.
|
|
95
|
+
*/
|
|
96
|
+
readonly type: pulumi.Output<string>;
|
|
97
|
+
/**
|
|
98
|
+
* Create a PrimaryIp resource with the given unique name, arguments, and options.
|
|
99
|
+
*
|
|
100
|
+
* @param name The _unique_ name of the resource.
|
|
101
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
102
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
103
|
+
*/
|
|
104
|
+
constructor(name: string, args: PrimaryIpArgs, opts?: pulumi.CustomResourceOptions);
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Input properties used for looking up and filtering PrimaryIp resources.
|
|
108
|
+
*/
|
|
109
|
+
export interface PrimaryIpState {
|
|
110
|
+
/**
|
|
111
|
+
* ID of the assigned resource
|
|
112
|
+
*/
|
|
113
|
+
assigneeId?: pulumi.Input<number>;
|
|
114
|
+
/**
|
|
115
|
+
* The type of the assigned resource.
|
|
116
|
+
*/
|
|
117
|
+
assigneeType?: pulumi.Input<string>;
|
|
118
|
+
/**
|
|
119
|
+
* Whether auto delete is enabled.
|
|
120
|
+
*/
|
|
121
|
+
autoDelete?: pulumi.Input<boolean>;
|
|
122
|
+
datacenter?: pulumi.Input<string>;
|
|
123
|
+
/**
|
|
124
|
+
* Whether delete protection is enabled.
|
|
125
|
+
*/
|
|
126
|
+
deleteProtection?: pulumi.Input<boolean>;
|
|
127
|
+
/**
|
|
128
|
+
* (string) IP Address of the Primary IP.
|
|
129
|
+
*/
|
|
130
|
+
ipAddress?: pulumi.Input<string>;
|
|
131
|
+
ipNetwork?: pulumi.Input<string>;
|
|
132
|
+
/**
|
|
133
|
+
* Description of the Primary IP.
|
|
134
|
+
*/
|
|
135
|
+
labels?: pulumi.Input<{
|
|
136
|
+
[key: string]: any;
|
|
137
|
+
}>;
|
|
138
|
+
/**
|
|
139
|
+
* Name of the Primary IP.
|
|
140
|
+
*/
|
|
141
|
+
name?: pulumi.Input<string>;
|
|
142
|
+
/**
|
|
143
|
+
* Type of the Primary IP.
|
|
144
|
+
*/
|
|
145
|
+
type?: pulumi.Input<string>;
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* The set of arguments for constructing a PrimaryIp resource.
|
|
149
|
+
*/
|
|
150
|
+
export interface PrimaryIpArgs {
|
|
151
|
+
/**
|
|
152
|
+
* ID of the assigned resource
|
|
153
|
+
*/
|
|
154
|
+
assigneeId?: pulumi.Input<number>;
|
|
155
|
+
/**
|
|
156
|
+
* The type of the assigned resource.
|
|
157
|
+
*/
|
|
158
|
+
assigneeType: pulumi.Input<string>;
|
|
159
|
+
/**
|
|
160
|
+
* Whether auto delete is enabled.
|
|
161
|
+
*/
|
|
162
|
+
autoDelete: pulumi.Input<boolean>;
|
|
163
|
+
datacenter?: pulumi.Input<string>;
|
|
164
|
+
/**
|
|
165
|
+
* Whether delete protection is enabled.
|
|
166
|
+
*/
|
|
167
|
+
deleteProtection?: pulumi.Input<boolean>;
|
|
168
|
+
/**
|
|
169
|
+
* Description of the Primary IP.
|
|
170
|
+
*/
|
|
171
|
+
labels?: pulumi.Input<{
|
|
172
|
+
[key: string]: any;
|
|
173
|
+
}>;
|
|
174
|
+
/**
|
|
175
|
+
* Name of the Primary IP.
|
|
176
|
+
*/
|
|
177
|
+
name?: pulumi.Input<string>;
|
|
178
|
+
/**
|
|
179
|
+
* Type of the Primary IP.
|
|
180
|
+
*/
|
|
181
|
+
type: pulumi.Input<string>;
|
|
182
|
+
}
|
package/primaryIp.js
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.PrimaryIp = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Provides a Hetzner Cloud Primary IP to represent a publicly-accessible static IP address that can be mapped to one of your servers.
|
|
10
|
+
*
|
|
11
|
+
* If a server is getting created, it has to have a primary ip. If a server is getting created without defining primary ips, two of them (one ipv4 and one ipv6) getting created & attached.
|
|
12
|
+
* Currently, Primary IPs can be only attached to servers.
|
|
13
|
+
*
|
|
14
|
+
* ## Example Usage
|
|
15
|
+
*
|
|
16
|
+
* ```typescript
|
|
17
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
18
|
+
* import * as hcloud from "@pulumi/hcloud";
|
|
19
|
+
*
|
|
20
|
+
* const main = new hcloud.PrimaryIp("main", {
|
|
21
|
+
* datacenter: "fsn1-dc14",
|
|
22
|
+
* type: "ipv4",
|
|
23
|
+
* assigneeType: "server",
|
|
24
|
+
* autoDelete: true,
|
|
25
|
+
* labels: {
|
|
26
|
+
* hallo: "welt",
|
|
27
|
+
* },
|
|
28
|
+
* });
|
|
29
|
+
* // Link a server to a primary IP
|
|
30
|
+
* const serverTest = new hcloud.Server("serverTest", {
|
|
31
|
+
* image: "ubuntu-20.04",
|
|
32
|
+
* serverType: "cx11",
|
|
33
|
+
* datacenter: "fsn1-dc14",
|
|
34
|
+
* labels: {
|
|
35
|
+
* test: "tessst1",
|
|
36
|
+
* },
|
|
37
|
+
* publicNets: [{
|
|
38
|
+
* ipv4: main.id,
|
|
39
|
+
* }],
|
|
40
|
+
* });
|
|
41
|
+
* ```
|
|
42
|
+
*
|
|
43
|
+
* ## Import
|
|
44
|
+
*
|
|
45
|
+
* Primary IPs can be imported using its `id`
|
|
46
|
+
*
|
|
47
|
+
* ```sh
|
|
48
|
+
* $ pulumi import hcloud:index/primaryIp:PrimaryIp myip <id>
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
class PrimaryIp extends pulumi.CustomResource {
|
|
52
|
+
constructor(name, argsOrState, opts) {
|
|
53
|
+
let resourceInputs = {};
|
|
54
|
+
opts = opts || {};
|
|
55
|
+
if (opts.id) {
|
|
56
|
+
const state = argsOrState;
|
|
57
|
+
resourceInputs["assigneeId"] = state ? state.assigneeId : undefined;
|
|
58
|
+
resourceInputs["assigneeType"] = state ? state.assigneeType : undefined;
|
|
59
|
+
resourceInputs["autoDelete"] = state ? state.autoDelete : undefined;
|
|
60
|
+
resourceInputs["datacenter"] = state ? state.datacenter : undefined;
|
|
61
|
+
resourceInputs["deleteProtection"] = state ? state.deleteProtection : undefined;
|
|
62
|
+
resourceInputs["ipAddress"] = state ? state.ipAddress : undefined;
|
|
63
|
+
resourceInputs["ipNetwork"] = state ? state.ipNetwork : undefined;
|
|
64
|
+
resourceInputs["labels"] = state ? state.labels : undefined;
|
|
65
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
66
|
+
resourceInputs["type"] = state ? state.type : undefined;
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
const args = argsOrState;
|
|
70
|
+
if ((!args || args.assigneeType === undefined) && !opts.urn) {
|
|
71
|
+
throw new Error("Missing required property 'assigneeType'");
|
|
72
|
+
}
|
|
73
|
+
if ((!args || args.autoDelete === undefined) && !opts.urn) {
|
|
74
|
+
throw new Error("Missing required property 'autoDelete'");
|
|
75
|
+
}
|
|
76
|
+
if ((!args || args.type === undefined) && !opts.urn) {
|
|
77
|
+
throw new Error("Missing required property 'type'");
|
|
78
|
+
}
|
|
79
|
+
resourceInputs["assigneeId"] = args ? args.assigneeId : undefined;
|
|
80
|
+
resourceInputs["assigneeType"] = args ? args.assigneeType : undefined;
|
|
81
|
+
resourceInputs["autoDelete"] = args ? args.autoDelete : undefined;
|
|
82
|
+
resourceInputs["datacenter"] = args ? args.datacenter : undefined;
|
|
83
|
+
resourceInputs["deleteProtection"] = args ? args.deleteProtection : undefined;
|
|
84
|
+
resourceInputs["labels"] = args ? args.labels : undefined;
|
|
85
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
86
|
+
resourceInputs["type"] = args ? args.type : undefined;
|
|
87
|
+
resourceInputs["ipAddress"] = undefined /*out*/;
|
|
88
|
+
resourceInputs["ipNetwork"] = undefined /*out*/;
|
|
89
|
+
}
|
|
90
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
91
|
+
super(PrimaryIp.__pulumiType, name, resourceInputs, opts);
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Get an existing PrimaryIp resource's state with the given name, ID, and optional extra
|
|
95
|
+
* properties used to qualify the lookup.
|
|
96
|
+
*
|
|
97
|
+
* @param name The _unique_ name of the resulting resource.
|
|
98
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
99
|
+
* @param state Any extra arguments used during the lookup.
|
|
100
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
101
|
+
*/
|
|
102
|
+
static get(name, id, state, opts) {
|
|
103
|
+
return new PrimaryIp(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Returns true if the given object is an instance of PrimaryIp. This is designed to work even
|
|
107
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
108
|
+
*/
|
|
109
|
+
static isInstance(obj) {
|
|
110
|
+
if (obj === undefined || obj === null) {
|
|
111
|
+
return false;
|
|
112
|
+
}
|
|
113
|
+
return obj['__pulumiType'] === PrimaryIp.__pulumiType;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
exports.PrimaryIp = PrimaryIp;
|
|
117
|
+
/** @internal */
|
|
118
|
+
PrimaryIp.__pulumiType = 'hcloud:index/primaryIp:PrimaryIp';
|
|
119
|
+
//# sourceMappingURL=primaryIp.js.map
|
package/primaryIp.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"primaryIp.js","sourceRoot":"","sources":["../primaryIp.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,MAAa,SAAU,SAAQ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### Basic server creation
|
|
6
|
-
*
|
|
7
|
-
* ```typescript
|
|
8
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
-
* import * as hcloud from "@pulumi/hcloud";
|
|
10
|
-
*
|
|
11
|
-
* // Create a new server running debian
|
|
12
|
-
* const node1 = new hcloud.Server("node1", {
|
|
13
|
-
* image: "debian-9",
|
|
14
|
-
* serverType: "cx11",
|
|
15
|
-
* });
|
|
16
|
-
* ```
|
|
17
5
|
* ### Server creation with network
|
|
18
|
-
*
|
|
19
6
|
* ```typescript
|
|
20
7
|
* import * as pulumi from "@pulumi/pulumi";
|
|
21
8
|
* import * as hcloud from "@pulumi/hcloud";
|
|
@@ -144,6 +131,10 @@ export declare class Server extends pulumi.CustomResource {
|
|
|
144
131
|
* Placement Group ID the server added to on creation.
|
|
145
132
|
*/
|
|
146
133
|
readonly placementGroupId: pulumi.Output<number | undefined>;
|
|
134
|
+
/**
|
|
135
|
+
* In this block you can either enable / disable ipv4 and ipv6 or link existing primary IPs (checkout the examples)
|
|
136
|
+
*/
|
|
137
|
+
readonly publicNets: pulumi.Output<outputs.ServerPublicNet[] | undefined>;
|
|
147
138
|
/**
|
|
148
139
|
* Enable or disable rebuild protection (Needs to be the same as `deleteProtection`).
|
|
149
140
|
*/
|
|
@@ -257,6 +248,10 @@ export interface ServerState {
|
|
|
257
248
|
* Placement Group ID the server added to on creation.
|
|
258
249
|
*/
|
|
259
250
|
placementGroupId?: pulumi.Input<number>;
|
|
251
|
+
/**
|
|
252
|
+
* In this block you can either enable / disable ipv4 and ipv6 or link existing primary IPs (checkout the examples)
|
|
253
|
+
*/
|
|
254
|
+
publicNets?: pulumi.Input<pulumi.Input<inputs.ServerPublicNet>[]>;
|
|
260
255
|
/**
|
|
261
256
|
* Enable or disable rebuild protection (Needs to be the same as `deleteProtection`).
|
|
262
257
|
*/
|
|
@@ -344,6 +339,10 @@ export interface ServerArgs {
|
|
|
344
339
|
* Placement Group ID the server added to on creation.
|
|
345
340
|
*/
|
|
346
341
|
placementGroupId?: pulumi.Input<number>;
|
|
342
|
+
/**
|
|
343
|
+
* In this block you can either enable / disable ipv4 and ipv6 or link existing primary IPs (checkout the examples)
|
|
344
|
+
*/
|
|
345
|
+
publicNets?: pulumi.Input<pulumi.Input<inputs.ServerPublicNet>[]>;
|
|
347
346
|
/**
|
|
348
347
|
* Enable or disable rebuild protection (Needs to be the same as `deleteProtection`).
|
|
349
348
|
*/
|
package/server.js
CHANGED
|
@@ -7,20 +7,7 @@ const pulumi = require("@pulumi/pulumi");
|
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
9
|
* ## Example Usage
|
|
10
|
-
* ### Basic server creation
|
|
11
|
-
*
|
|
12
|
-
* ```typescript
|
|
13
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
14
|
-
* import * as hcloud from "@pulumi/hcloud";
|
|
15
|
-
*
|
|
16
|
-
* // Create a new server running debian
|
|
17
|
-
* const node1 = new hcloud.Server("node1", {
|
|
18
|
-
* image: "debian-9",
|
|
19
|
-
* serverType: "cx11",
|
|
20
|
-
* });
|
|
21
|
-
* ```
|
|
22
10
|
* ### Server creation with network
|
|
23
|
-
*
|
|
24
11
|
* ```typescript
|
|
25
12
|
* import * as pulumi from "@pulumi/pulumi";
|
|
26
13
|
* import * as hcloud from "@pulumi/hcloud";
|
|
@@ -80,6 +67,7 @@ class Server extends pulumi.CustomResource {
|
|
|
80
67
|
resourceInputs["name"] = state ? state.name : undefined;
|
|
81
68
|
resourceInputs["networks"] = state ? state.networks : undefined;
|
|
82
69
|
resourceInputs["placementGroupId"] = state ? state.placementGroupId : undefined;
|
|
70
|
+
resourceInputs["publicNets"] = state ? state.publicNets : undefined;
|
|
83
71
|
resourceInputs["rebuildProtection"] = state ? state.rebuildProtection : undefined;
|
|
84
72
|
resourceInputs["rescue"] = state ? state.rescue : undefined;
|
|
85
73
|
resourceInputs["serverType"] = state ? state.serverType : undefined;
|
|
@@ -105,6 +93,7 @@ class Server extends pulumi.CustomResource {
|
|
|
105
93
|
resourceInputs["name"] = args ? args.name : undefined;
|
|
106
94
|
resourceInputs["networks"] = args ? args.networks : undefined;
|
|
107
95
|
resourceInputs["placementGroupId"] = args ? args.placementGroupId : undefined;
|
|
96
|
+
resourceInputs["publicNets"] = args ? args.publicNets : undefined;
|
|
108
97
|
resourceInputs["rebuildProtection"] = args ? args.rebuildProtection : undefined;
|
|
109
98
|
resourceInputs["rescue"] = args ? args.rescue : undefined;
|
|
110
99
|
resourceInputs["serverType"] = args ? args.serverType : undefined;
|
package/server.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.js","sourceRoot":"","sources":["../server.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"server.js","sourceRoot":"","sources":["../server.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,MAAa,MAAO,SAAQ,MAAM,CAAC,cAAc;IA2I7C,YAAY,IAAY,EAAE,WAAsC,EAAE,IAAmC;QACjG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAsC,CAAC;YACrD,cAAc,CAAC,cAAc,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACxE,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC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,GAAG,SAAS,CAAC,OAAO,CAAC;SAChD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,MAAM,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC3D,CAAC;IAvMD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAmB,EAAE,IAAmC;QACjH,OAAO,IAAI,MAAM,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC7D,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,MAAM,CAAC,YAAY,CAAC;IACvD,CAAC;;AA1BL,wBAyMC;AA3LG,gBAAgB;AACO,mBAAY,GAAG,4BAA4B,CAAC"}
|
package/types/input.d.ts
CHANGED
|
@@ -41,79 +41,79 @@ export interface FirewallRule {
|
|
|
41
41
|
*/
|
|
42
42
|
sourceIps?: pulumi.Input<pulumi.Input<string>[]>;
|
|
43
43
|
}
|
|
44
|
-
export interface
|
|
44
|
+
export interface GetFirewallApplyTo {
|
|
45
45
|
/**
|
|
46
46
|
* (string) Label Selector to select servers the firewall is applied to. Empty if a server is directly
|
|
47
47
|
* referenced
|
|
48
48
|
*/
|
|
49
|
-
labelSelector?:
|
|
49
|
+
labelSelector?: string;
|
|
50
50
|
/**
|
|
51
51
|
* (int) ID of a server where the firewall is applied to. `0` if applied to a label_selector
|
|
52
52
|
*/
|
|
53
|
-
server?:
|
|
53
|
+
server?: number;
|
|
54
54
|
}
|
|
55
|
-
export interface
|
|
55
|
+
export interface GetFirewallApplyToArgs {
|
|
56
56
|
/**
|
|
57
57
|
* (string) Label Selector to select servers the firewall is applied to. Empty if a server is directly
|
|
58
58
|
* referenced
|
|
59
59
|
*/
|
|
60
|
-
labelSelector?: string
|
|
60
|
+
labelSelector?: pulumi.Input<string>;
|
|
61
61
|
/**
|
|
62
62
|
* (int) ID of a server where the firewall is applied to. `0` if applied to a label_selector
|
|
63
63
|
*/
|
|
64
|
-
server?: number
|
|
64
|
+
server?: pulumi.Input<number>;
|
|
65
65
|
}
|
|
66
|
-
export interface
|
|
66
|
+
export interface GetFirewallRuleArgs {
|
|
67
67
|
/**
|
|
68
68
|
* (Optional, string) Description of the firewall rule
|
|
69
69
|
*/
|
|
70
|
-
description?: string
|
|
70
|
+
description?: pulumi.Input<string>;
|
|
71
71
|
/**
|
|
72
72
|
* (Required, List) List of CIDRs that are allowed within this Firewall Rule (when `direction` is `out`)
|
|
73
73
|
*/
|
|
74
|
-
destinationIps?: string[]
|
|
74
|
+
destinationIps?: pulumi.Input<pulumi.Input<string>[]>;
|
|
75
75
|
/**
|
|
76
76
|
* (Required, string) Direction of the Firewall Rule. `in`, `out`
|
|
77
77
|
*/
|
|
78
|
-
direction: string
|
|
78
|
+
direction: pulumi.Input<string>;
|
|
79
79
|
/**
|
|
80
80
|
* (Required, string) Port of the Firewall Rule. Required when `protocol` is `tcp` or `udp`
|
|
81
81
|
*/
|
|
82
|
-
port?: string
|
|
82
|
+
port?: pulumi.Input<string>;
|
|
83
83
|
/**
|
|
84
84
|
* (Required, string) Protocol of the Firewall Rule. `tcp`, `icmp`, `udp`, `gre`, `esp`
|
|
85
85
|
*/
|
|
86
|
-
protocol?: string
|
|
86
|
+
protocol?: pulumi.Input<string>;
|
|
87
87
|
/**
|
|
88
88
|
* (Required, List) List of CIDRs that are allowed within this Firewall Rule (when `direction` is `in`)
|
|
89
89
|
*/
|
|
90
|
-
sourceIps?: string[]
|
|
90
|
+
sourceIps?: pulumi.Input<pulumi.Input<string>[]>;
|
|
91
91
|
}
|
|
92
|
-
export interface
|
|
92
|
+
export interface GetFirewallRule {
|
|
93
93
|
/**
|
|
94
94
|
* (Optional, string) Description of the firewall rule
|
|
95
95
|
*/
|
|
96
|
-
description?:
|
|
96
|
+
description?: string;
|
|
97
97
|
/**
|
|
98
98
|
* (Required, List) List of CIDRs that are allowed within this Firewall Rule (when `direction` is `out`)
|
|
99
99
|
*/
|
|
100
|
-
destinationIps?:
|
|
100
|
+
destinationIps?: string[];
|
|
101
101
|
/**
|
|
102
102
|
* (Required, string) Direction of the Firewall Rule. `in`, `out`
|
|
103
103
|
*/
|
|
104
|
-
direction:
|
|
104
|
+
direction: string;
|
|
105
105
|
/**
|
|
106
106
|
* (Required, string) Port of the Firewall Rule. Required when `protocol` is `tcp` or `udp`
|
|
107
107
|
*/
|
|
108
|
-
port?:
|
|
108
|
+
port?: string;
|
|
109
109
|
/**
|
|
110
110
|
* (Required, string) Protocol of the Firewall Rule. `tcp`, `icmp`, `udp`, `gre`, `esp`
|
|
111
111
|
*/
|
|
112
|
-
protocol?:
|
|
112
|
+
protocol?: string;
|
|
113
113
|
/**
|
|
114
114
|
* (Required, List) List of CIDRs that are allowed within this Firewall Rule (when `direction` is `in`)
|
|
115
115
|
*/
|
|
116
|
-
sourceIps?:
|
|
116
|
+
sourceIps?: string[];
|
|
117
117
|
}
|
|
118
118
|
export interface LoadBalancerAlgorithm {
|
|
119
119
|
/**
|
|
@@ -220,3 +220,9 @@ export interface ServerNetwork {
|
|
|
220
220
|
*/
|
|
221
221
|
networkId: pulumi.Input<number>;
|
|
222
222
|
}
|
|
223
|
+
export interface ServerPublicNet {
|
|
224
|
+
ipv4?: pulumi.Input<number>;
|
|
225
|
+
ipv4Enabled?: pulumi.Input<boolean>;
|
|
226
|
+
ipv6?: pulumi.Input<number>;
|
|
227
|
+
ipv6Enabled?: pulumi.Input<boolean>;
|
|
228
|
+
}
|
package/types/output.d.ts
CHANGED
|
@@ -352,6 +352,21 @@ export interface GetPlacementGroupsPlacementGroup {
|
|
|
352
352
|
servers: number[];
|
|
353
353
|
type?: string;
|
|
354
354
|
}
|
|
355
|
+
export interface GetPrimaryIpsPrimaryIp {
|
|
356
|
+
assigneeId: number;
|
|
357
|
+
assigneeType: string;
|
|
358
|
+
autoDelete: boolean;
|
|
359
|
+
datacenter: string;
|
|
360
|
+
deleteProtection: boolean;
|
|
361
|
+
id: number;
|
|
362
|
+
ipAddress: string;
|
|
363
|
+
ipNetwork: string;
|
|
364
|
+
labels: {
|
|
365
|
+
[key: string]: any;
|
|
366
|
+
};
|
|
367
|
+
name?: string;
|
|
368
|
+
type: string;
|
|
369
|
+
}
|
|
355
370
|
export interface GetServerTypesServerType {
|
|
356
371
|
cores: number;
|
|
357
372
|
cpuType: string;
|
|
@@ -511,3 +526,9 @@ export interface ServerNetwork {
|
|
|
511
526
|
*/
|
|
512
527
|
networkId: number;
|
|
513
528
|
}
|
|
529
|
+
export interface ServerPublicNet {
|
|
530
|
+
ipv4: number;
|
|
531
|
+
ipv4Enabled?: boolean;
|
|
532
|
+
ipv6: number;
|
|
533
|
+
ipv6Enabled?: boolean;
|
|
534
|
+
}
|