@pulumi/hcloud 1.10.1 → 1.10.3
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/certificate.js +25 -23
- package/certificate.js.map +1 -1
- package/firewall.d.ts +3 -2
- package/firewall.js +21 -21
- package/firewall.js.map +1 -1
- package/firewallAttachment.js +21 -21
- package/firewallAttachment.js.map +1 -1
- package/floatingIp.d.ts +4 -4
- package/floatingIp.js +23 -23
- package/floatingIp.js.map +1 -1
- package/floatingIpAssignment.js +22 -22
- package/floatingIpAssignment.js.map +1 -1
- package/getCertificate.d.ts +19 -4
- package/getCertificate.js +21 -9
- package/getCertificate.js.map +1 -1
- package/getCertificates.d.ts +17 -3
- package/getCertificates.js +18 -7
- package/getCertificates.js.map +1 -1
- package/getDatacenter.d.ts +22 -4
- package/getDatacenter.js +24 -9
- package/getDatacenter.js.map +1 -1
- package/getDatacenters.d.ts +5 -1
- package/getDatacenters.js +6 -5
- package/getDatacenters.js.map +1 -1
- package/getFirewall.d.ts +21 -5
- package/getFirewall.js +21 -9
- package/getFirewall.js.map +1 -1
- package/getFirewalls.d.ts +17 -3
- package/getFirewalls.js +18 -7
- package/getFirewalls.js.map +1 -1
- package/getFloatingIp.d.ts +32 -2
- package/getFloatingIp.js +33 -6
- package/getFloatingIp.js.map +1 -1
- package/getFloatingIps.d.ts +17 -3
- package/getFloatingIps.js +18 -7
- package/getFloatingIps.js.map +1 -1
- package/getImage.d.ts +19 -0
- package/getImage.js +21 -5
- package/getImage.js.map +1 -1
- package/getImages.d.ts +19 -4
- package/getImages.js +20 -8
- package/getImages.js.map +1 -1
- package/getLoadBalancer.d.ts +36 -8
- package/getLoadBalancer.js +28 -11
- package/getLoadBalancer.js.map +1 -1
- package/getLoadBalancers.d.ts +19 -4
- package/getLoadBalancers.js +20 -8
- package/getLoadBalancers.js.map +1 -1
- package/getLocation.d.ts +22 -4
- package/getLocation.js +24 -9
- package/getLocation.js.map +1 -1
- package/getLocations.d.ts +5 -1
- package/getLocations.js +6 -5
- package/getLocations.js.map +1 -1
- package/getNetwork.d.ts +25 -7
- package/getNetwork.js +26 -11
- package/getNetwork.js.map +1 -1
- package/getNetworks.d.ts +19 -4
- package/getNetworks.js +20 -8
- package/getNetworks.js.map +1 -1
- package/getPlacementGroup.d.ts +19 -4
- package/getPlacementGroup.js +21 -9
- package/getPlacementGroup.js.map +1 -1
- package/getPlacementGroups.d.ts +19 -4
- package/getPlacementGroups.js +20 -8
- package/getPlacementGroups.js.map +1 -1
- package/getPrimaryIp.d.ts +55 -5
- package/getPrimaryIp.js +49 -5
- package/getPrimaryIp.js.map +1 -1
- package/getPrimaryIps.d.ts +17 -3
- package/getPrimaryIps.js +18 -7
- package/getPrimaryIps.js.map +1 -1
- package/getServer.d.ts +27 -9
- package/getServer.js +26 -11
- package/getServer.js.map +1 -1
- package/getServerType.d.ts +22 -4
- package/getServerType.js +24 -9
- package/getServerType.js.map +1 -1
- package/getServerTypes.d.ts +4 -1
- package/getServerTypes.js +5 -5
- package/getServerTypes.js.map +1 -1
- package/getServers.d.ts +15 -3
- package/getServers.js +16 -7
- package/getServers.js.map +1 -1
- package/getSshKey.d.ts +26 -0
- package/getSshKey.js +28 -5
- package/getSshKey.js.map +1 -1
- package/getSshKeys.d.ts +15 -1
- package/getSshKeys.js +16 -5
- package/getSshKeys.js.map +1 -1
- package/getVolume.d.ts +25 -7
- package/getVolume.js +26 -11
- package/getVolume.js.map +1 -1
- package/getVolumes.d.ts +19 -4
- package/getVolumes.js +20 -8
- package/getVolumes.js.map +1 -1
- package/index.d.ts +156 -52
- package/index.js +158 -117
- package/index.js.map +1 -1
- package/loadBalancer.d.ts +21 -8
- package/loadBalancer.js +23 -23
- package/loadBalancer.js.map +1 -1
- package/loadBalancerNetwork.js +22 -22
- package/loadBalancerNetwork.js.map +1 -1
- package/loadBalancerService.d.ts +2 -1
- package/loadBalancerService.js +22 -22
- package/loadBalancerService.js.map +1 -1
- package/loadBalancerTarget.d.ts +16 -0
- package/loadBalancerTarget.js +38 -22
- package/loadBalancerTarget.js.map +1 -1
- package/managedCertificate.d.ts +1 -1
- package/managedCertificate.js +23 -23
- package/managedCertificate.js.map +1 -1
- package/network.d.ts +2 -4
- package/network.js +24 -26
- package/network.js.map +1 -1
- package/networkRoute.js +22 -22
- package/networkRoute.js.map +1 -1
- package/networkSubnet.js +22 -22
- package/networkSubnet.js.map +1 -1
- package/package.json +4 -3
- package/package.json.bak +2 -1
- package/package.json.dev +4 -3
- package/placementGroup.d.ts +1 -1
- package/placementGroup.js +23 -23
- package/placementGroup.js.map +1 -1
- package/primaryIp.d.ts +16 -7
- package/primaryIp.js +23 -23
- package/primaryIp.js.map +1 -1
- package/provider.js +13 -11
- package/provider.js.map +1 -1
- package/rdns.d.ts +8 -8
- package/rdns.js +30 -30
- package/rdns.js.map +1 -1
- package/server.d.ts +23 -2
- package/server.js +43 -23
- package/server.js.map +1 -1
- package/serverNetwork.js +22 -22
- package/serverNetwork.js.map +1 -1
- package/snapshot.d.ts +1 -1
- package/snapshot.js +22 -22
- package/snapshot.js.map +1 -1
- package/sshKey.d.ts +2 -2
- package/sshKey.js +24 -24
- package/sshKey.js.map +1 -1
- package/types/index.js.map +1 -1
- package/types/input.d.ts +15 -15
- package/types/output.d.ts +4 -2
- package/uploadedCertificate.d.ts +1 -1
- package/uploadedCertificate.js +26 -24
- package/uploadedCertificate.js.map +1 -1
- package/utilities.js +13 -1
- package/utilities.js.map +1 -1
- package/volume.d.ts +4 -4
- package/volume.js +23 -23
- package/volume.js.map +1 -1
- package/volumeAttachment.js +22 -22
- package/volumeAttachment.js.map +1 -1
package/getDatacenter.d.ts
CHANGED
|
@@ -9,12 +9,12 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
9
9
|
* import * as pulumi from "@pulumi/pulumi";
|
|
10
10
|
* import * as hcloud from "@pulumi/hcloud";
|
|
11
11
|
*
|
|
12
|
-
* const ds1 =
|
|
12
|
+
* const ds1 = hcloud.getDatacenter({
|
|
13
13
|
* name: "fsn1-dc8",
|
|
14
|
-
* })
|
|
15
|
-
* const ds2 =
|
|
14
|
+
* });
|
|
15
|
+
* const ds2 = hcloud.getDatacenter({
|
|
16
16
|
* id: 4,
|
|
17
|
-
* })
|
|
17
|
+
* });
|
|
18
18
|
* ```
|
|
19
19
|
*/
|
|
20
20
|
export declare function getDatacenter(args?: GetDatacenterArgs, opts?: pulumi.InvokeOptions): Promise<GetDatacenterResult>;
|
|
@@ -62,6 +62,24 @@ export interface GetDatacenterResult {
|
|
|
62
62
|
*/
|
|
63
63
|
readonly supportedServerTypeIds: number[];
|
|
64
64
|
}
|
|
65
|
+
/**
|
|
66
|
+
* Provides details about a specific Hetzner Cloud Datacenter.
|
|
67
|
+
* Use this resource to get detailed information about specific datacenter.
|
|
68
|
+
*
|
|
69
|
+
* ## Example Usage
|
|
70
|
+
*
|
|
71
|
+
* ```typescript
|
|
72
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
73
|
+
* import * as hcloud from "@pulumi/hcloud";
|
|
74
|
+
*
|
|
75
|
+
* const ds1 = hcloud.getDatacenter({
|
|
76
|
+
* name: "fsn1-dc8",
|
|
77
|
+
* });
|
|
78
|
+
* const ds2 = hcloud.getDatacenter({
|
|
79
|
+
* id: 4,
|
|
80
|
+
* });
|
|
81
|
+
* ```
|
|
82
|
+
*/
|
|
65
83
|
export declare function getDatacenterOutput(args?: GetDatacenterOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetDatacenterResult>;
|
|
66
84
|
/**
|
|
67
85
|
* A collection of arguments for invoking getDatacenter.
|
package/getDatacenter.js
CHANGED
|
@@ -15,28 +15,43 @@ const utilities = require("./utilities");
|
|
|
15
15
|
* import * as pulumi from "@pulumi/pulumi";
|
|
16
16
|
* import * as hcloud from "@pulumi/hcloud";
|
|
17
17
|
*
|
|
18
|
-
* const ds1 =
|
|
18
|
+
* const ds1 = hcloud.getDatacenter({
|
|
19
19
|
* name: "fsn1-dc8",
|
|
20
|
-
* })
|
|
21
|
-
* const ds2 =
|
|
20
|
+
* });
|
|
21
|
+
* const ds2 = hcloud.getDatacenter({
|
|
22
22
|
* id: 4,
|
|
23
|
-
* })
|
|
23
|
+
* });
|
|
24
24
|
* ```
|
|
25
25
|
*/
|
|
26
26
|
function getDatacenter(args, opts) {
|
|
27
27
|
args = args || {};
|
|
28
|
-
|
|
29
|
-
opts = {};
|
|
30
|
-
}
|
|
31
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
28
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
32
29
|
return pulumi.runtime.invoke("hcloud:index/getDatacenter:getDatacenter", {
|
|
33
30
|
"id": args.id,
|
|
34
31
|
"name": args.name,
|
|
35
32
|
}, opts);
|
|
36
33
|
}
|
|
37
34
|
exports.getDatacenter = getDatacenter;
|
|
35
|
+
/**
|
|
36
|
+
* Provides details about a specific Hetzner Cloud Datacenter.
|
|
37
|
+
* Use this resource to get detailed information about specific datacenter.
|
|
38
|
+
*
|
|
39
|
+
* ## Example Usage
|
|
40
|
+
*
|
|
41
|
+
* ```typescript
|
|
42
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
43
|
+
* import * as hcloud from "@pulumi/hcloud";
|
|
44
|
+
*
|
|
45
|
+
* const ds1 = hcloud.getDatacenter({
|
|
46
|
+
* name: "fsn1-dc8",
|
|
47
|
+
* });
|
|
48
|
+
* const ds2 = hcloud.getDatacenter({
|
|
49
|
+
* id: 4,
|
|
50
|
+
* });
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
38
53
|
function getDatacenterOutput(args, opts) {
|
|
39
|
-
return pulumi.output(args).apply(a => getDatacenter(a, opts));
|
|
54
|
+
return pulumi.output(args).apply((a) => getDatacenter(a, opts));
|
|
40
55
|
}
|
|
41
56
|
exports.getDatacenterOutput = getDatacenterOutput;
|
|
42
57
|
//# sourceMappingURL=getDatacenter.js.map
|
package/getDatacenter.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDatacenter.js","sourceRoot":"","sources":["../getDatacenter.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,aAAa,CAAC,IAAwB,EAAE,IAA2B;IAC/E,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"getDatacenter.js","sourceRoot":"","sources":["../getDatacenter.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,aAAa,CAAC,IAAwB,EAAE,IAA2B;IAC/E,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,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,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,sCAQC;AA6CD;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,mBAAmB,CAAC,IAA8B,EAAE,IAA2B;IAC3F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,aAAa,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACxE,CAAC;AAFD,kDAEC"}
|
package/getDatacenters.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
import
|
|
2
|
+
import * as outputs from "./types/output";
|
|
3
3
|
/**
|
|
4
4
|
* Provides a list of available Hetzner Cloud Datacenters.
|
|
5
5
|
* This resource may be useful to create highly available infrastructure, distributed across several datacenters.
|
|
@@ -47,6 +47,10 @@ export interface GetDatacentersResult {
|
|
|
47
47
|
*/
|
|
48
48
|
readonly names: string[];
|
|
49
49
|
}
|
|
50
|
+
/**
|
|
51
|
+
* Provides a list of available Hetzner Cloud Datacenters.
|
|
52
|
+
* This resource may be useful to create highly available infrastructure, distributed across several datacenters.
|
|
53
|
+
*/
|
|
50
54
|
export declare function getDatacentersOutput(args?: GetDatacentersOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetDatacentersResult>;
|
|
51
55
|
/**
|
|
52
56
|
* A collection of arguments for invoking getDatacenters.
|
package/getDatacenters.js
CHANGED
|
@@ -11,17 +11,18 @@ const utilities = require("./utilities");
|
|
|
11
11
|
*/
|
|
12
12
|
function getDatacenters(args, opts) {
|
|
13
13
|
args = args || {};
|
|
14
|
-
|
|
15
|
-
opts = {};
|
|
16
|
-
}
|
|
17
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
14
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
18
15
|
return pulumi.runtime.invoke("hcloud:index/getDatacenters:getDatacenters", {
|
|
19
16
|
"datacenterIds": args.datacenterIds,
|
|
20
17
|
}, opts);
|
|
21
18
|
}
|
|
22
19
|
exports.getDatacenters = getDatacenters;
|
|
20
|
+
/**
|
|
21
|
+
* Provides a list of available Hetzner Cloud Datacenters.
|
|
22
|
+
* This resource may be useful to create highly available infrastructure, distributed across several datacenters.
|
|
23
|
+
*/
|
|
23
24
|
function getDatacentersOutput(args, opts) {
|
|
24
|
-
return pulumi.output(args).apply(a => getDatacenters(a, opts));
|
|
25
|
+
return pulumi.output(args).apply((a) => getDatacenters(a, opts));
|
|
25
26
|
}
|
|
26
27
|
exports.getDatacentersOutput = getDatacentersOutput;
|
|
27
28
|
//# sourceMappingURL=getDatacenters.js.map
|
package/getDatacenters.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDatacenters.js","sourceRoot":"","sources":["../getDatacenters.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;
|
|
1
|
+
{"version":3,"file":"getDatacenters.js","sourceRoot":"","sources":["../getDatacenters.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;GAGG;AACH,SAAgB,cAAc,CAAC,IAAyB,EAAE,IAA2B;IACjF,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,4CAA4C,EAAE;QACvE,eAAe,EAAE,IAAI,CAAC,aAAa;KACtC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,wCAOC;AA6CD;;;GAGG;AACH,SAAgB,oBAAoB,CAAC,IAA+B,EAAE,IAA2B;IAC7F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,cAAc,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACzE,CAAC;AAFD,oDAEC"}
|
package/getFirewall.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
import
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
3
4
|
/**
|
|
4
5
|
* Provides details about a specific Hetzner Cloud Firewall.
|
|
5
6
|
*
|
|
@@ -7,12 +8,12 @@ import { input as inputs, output as outputs } from "./types";
|
|
|
7
8
|
* import * as pulumi from "@pulumi/pulumi";
|
|
8
9
|
* import * as hcloud from "@pulumi/hcloud";
|
|
9
10
|
*
|
|
10
|
-
* const sampleFirewall1 =
|
|
11
|
+
* const sampleFirewall1 = hcloud.getFirewall({
|
|
11
12
|
* name: "sample-firewall-1",
|
|
12
|
-
* })
|
|
13
|
-
* const sampleFirewall2 =
|
|
13
|
+
* });
|
|
14
|
+
* const sampleFirewall2 = hcloud.getFirewall({
|
|
14
15
|
* id: 4711,
|
|
15
|
-
* })
|
|
16
|
+
* });
|
|
16
17
|
* ```
|
|
17
18
|
*/
|
|
18
19
|
export declare function getFirewall(args?: GetFirewallArgs, opts?: pulumi.InvokeOptions): Promise<GetFirewallResult>;
|
|
@@ -80,6 +81,21 @@ export interface GetFirewallResult {
|
|
|
80
81
|
readonly rules?: outputs.GetFirewallRule[];
|
|
81
82
|
readonly withSelector?: string;
|
|
82
83
|
}
|
|
84
|
+
/**
|
|
85
|
+
* Provides details about a specific Hetzner Cloud Firewall.
|
|
86
|
+
*
|
|
87
|
+
* ```typescript
|
|
88
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
89
|
+
* import * as hcloud from "@pulumi/hcloud";
|
|
90
|
+
*
|
|
91
|
+
* const sampleFirewall1 = hcloud.getFirewall({
|
|
92
|
+
* name: "sample-firewall-1",
|
|
93
|
+
* });
|
|
94
|
+
* const sampleFirewall2 = hcloud.getFirewall({
|
|
95
|
+
* id: 4711,
|
|
96
|
+
* });
|
|
97
|
+
* ```
|
|
98
|
+
*/
|
|
83
99
|
export declare function getFirewallOutput(args?: GetFirewallOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetFirewallResult>;
|
|
84
100
|
/**
|
|
85
101
|
* A collection of arguments for invoking getFirewall.
|
package/getFirewall.js
CHANGED
|
@@ -12,20 +12,17 @@ const utilities = require("./utilities");
|
|
|
12
12
|
* import * as pulumi from "@pulumi/pulumi";
|
|
13
13
|
* import * as hcloud from "@pulumi/hcloud";
|
|
14
14
|
*
|
|
15
|
-
* const sampleFirewall1 =
|
|
15
|
+
* const sampleFirewall1 = hcloud.getFirewall({
|
|
16
16
|
* name: "sample-firewall-1",
|
|
17
|
-
* })
|
|
18
|
-
* const sampleFirewall2 =
|
|
17
|
+
* });
|
|
18
|
+
* const sampleFirewall2 = hcloud.getFirewall({
|
|
19
19
|
* id: 4711,
|
|
20
|
-
* })
|
|
20
|
+
* });
|
|
21
21
|
* ```
|
|
22
22
|
*/
|
|
23
23
|
function getFirewall(args, opts) {
|
|
24
24
|
args = args || {};
|
|
25
|
-
|
|
26
|
-
opts = {};
|
|
27
|
-
}
|
|
28
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
25
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
29
26
|
return pulumi.runtime.invoke("hcloud:index/getFirewall:getFirewall", {
|
|
30
27
|
"applyTos": args.applyTos,
|
|
31
28
|
"id": args.id,
|
|
@@ -37,8 +34,23 @@ function getFirewall(args, opts) {
|
|
|
37
34
|
}, opts);
|
|
38
35
|
}
|
|
39
36
|
exports.getFirewall = getFirewall;
|
|
37
|
+
/**
|
|
38
|
+
* Provides details about a specific Hetzner Cloud Firewall.
|
|
39
|
+
*
|
|
40
|
+
* ```typescript
|
|
41
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
42
|
+
* import * as hcloud from "@pulumi/hcloud";
|
|
43
|
+
*
|
|
44
|
+
* const sampleFirewall1 = hcloud.getFirewall({
|
|
45
|
+
* name: "sample-firewall-1",
|
|
46
|
+
* });
|
|
47
|
+
* const sampleFirewall2 = hcloud.getFirewall({
|
|
48
|
+
* id: 4711,
|
|
49
|
+
* });
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
40
52
|
function getFirewallOutput(args, opts) {
|
|
41
|
-
return pulumi.output(args).apply(a => getFirewall(a, opts));
|
|
53
|
+
return pulumi.output(args).apply((a) => getFirewall(a, opts));
|
|
42
54
|
}
|
|
43
55
|
exports.getFirewallOutput = getFirewallOutput;
|
|
44
56
|
//# sourceMappingURL=getFirewall.js.map
|
package/getFirewall.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getFirewall.js","sourceRoot":"","sources":["../getFirewall.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;
|
|
1
|
+
{"version":3,"file":"getFirewall.js","sourceRoot":"","sources":["../getFirewall.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;GAcG;AACH,SAAgB,WAAW,CAAC,IAAsB,EAAE,IAA2B;IAC3E,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,sCAAsC,EAAE;QACjE,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,cAAc,EAAE,IAAI,CAAC,YAAY;KACpC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAbD,kCAaC;AA+DD;;;;;;;;;;;;;;GAcG;AACH,SAAgB,iBAAiB,CAAC,IAA4B,EAAE,IAA2B;IACvF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,WAAW,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACtE,CAAC;AAFD,8CAEC"}
|
package/getFirewalls.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
import
|
|
2
|
+
import * as outputs from "./types/output";
|
|
3
3
|
/**
|
|
4
4
|
* Provides details about multiple Hetzner Cloud Firewall.
|
|
5
5
|
*
|
|
@@ -9,9 +9,9 @@ import { output as outputs } from "./types";
|
|
|
9
9
|
* import * as pulumi from "@pulumi/pulumi";
|
|
10
10
|
* import * as hcloud from "@pulumi/hcloud";
|
|
11
11
|
*
|
|
12
|
-
* const sampleFirewall1 =
|
|
12
|
+
* const sampleFirewall1 = hcloud.getFirewalls({
|
|
13
13
|
* withSelector: "key=value",
|
|
14
|
-
* })
|
|
14
|
+
* });
|
|
15
15
|
* ```
|
|
16
16
|
*/
|
|
17
17
|
export declare function getFirewalls(args?: GetFirewallsArgs, opts?: pulumi.InvokeOptions): Promise<GetFirewallsResult>;
|
|
@@ -43,6 +43,20 @@ export interface GetFirewallsResult {
|
|
|
43
43
|
readonly mostRecent?: boolean;
|
|
44
44
|
readonly withSelector?: string;
|
|
45
45
|
}
|
|
46
|
+
/**
|
|
47
|
+
* Provides details about multiple Hetzner Cloud Firewall.
|
|
48
|
+
*
|
|
49
|
+
* ## Example Usage
|
|
50
|
+
*
|
|
51
|
+
* ```typescript
|
|
52
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
53
|
+
* import * as hcloud from "@pulumi/hcloud";
|
|
54
|
+
*
|
|
55
|
+
* const sampleFirewall1 = hcloud.getFirewalls({
|
|
56
|
+
* withSelector: "key=value",
|
|
57
|
+
* });
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
46
60
|
export declare function getFirewallsOutput(args?: GetFirewallsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetFirewallsResult>;
|
|
47
61
|
/**
|
|
48
62
|
* A collection of arguments for invoking getFirewalls.
|
package/getFirewalls.js
CHANGED
|
@@ -14,25 +14,36 @@ const utilities = require("./utilities");
|
|
|
14
14
|
* import * as pulumi from "@pulumi/pulumi";
|
|
15
15
|
* import * as hcloud from "@pulumi/hcloud";
|
|
16
16
|
*
|
|
17
|
-
* const sampleFirewall1 =
|
|
17
|
+
* const sampleFirewall1 = hcloud.getFirewalls({
|
|
18
18
|
* withSelector: "key=value",
|
|
19
|
-
* })
|
|
19
|
+
* });
|
|
20
20
|
* ```
|
|
21
21
|
*/
|
|
22
22
|
function getFirewalls(args, opts) {
|
|
23
23
|
args = args || {};
|
|
24
|
-
|
|
25
|
-
opts = {};
|
|
26
|
-
}
|
|
27
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
24
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
28
25
|
return pulumi.runtime.invoke("hcloud:index/getFirewalls:getFirewalls", {
|
|
29
26
|
"mostRecent": args.mostRecent,
|
|
30
27
|
"withSelector": args.withSelector,
|
|
31
28
|
}, opts);
|
|
32
29
|
}
|
|
33
30
|
exports.getFirewalls = getFirewalls;
|
|
31
|
+
/**
|
|
32
|
+
* Provides details about multiple Hetzner Cloud Firewall.
|
|
33
|
+
*
|
|
34
|
+
* ## Example Usage
|
|
35
|
+
*
|
|
36
|
+
* ```typescript
|
|
37
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
38
|
+
* import * as hcloud from "@pulumi/hcloud";
|
|
39
|
+
*
|
|
40
|
+
* const sampleFirewall1 = hcloud.getFirewalls({
|
|
41
|
+
* withSelector: "key=value",
|
|
42
|
+
* });
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
34
45
|
function getFirewallsOutput(args, opts) {
|
|
35
|
-
return pulumi.output(args).apply(a => getFirewalls(a, opts));
|
|
46
|
+
return pulumi.output(args).apply((a) => getFirewalls(a, opts));
|
|
36
47
|
}
|
|
37
48
|
exports.getFirewallsOutput = getFirewallsOutput;
|
|
38
49
|
//# sourceMappingURL=getFirewalls.js.map
|
package/getFirewalls.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getFirewalls.js","sourceRoot":"","sources":["../getFirewalls.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;
|
|
1
|
+
{"version":3,"file":"getFirewalls.js","sourceRoot":"","sources":["../getFirewalls.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;AACH,SAAgB,YAAY,CAAC,IAAuB,EAAE,IAA2B;IAC7E,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,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,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,cAAc,EAAE,IAAI,CAAC,YAAY;KACpC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,oCAQC;AA+BD;;;;;;;;;;;;;GAaG;AACH,SAAgB,kBAAkB,CAAC,IAA6B,EAAE,IAA2B;IACzF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,YAAY,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACvE,CAAC;AAFD,gDAEC"}
|
package/getFloatingIp.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
20
20
|
* const ip2 = hcloud.getFloatingIp({
|
|
21
21
|
* withSelector: "key=value",
|
|
22
22
|
* });
|
|
23
|
-
* const main: hcloud.FloatingIpAssignment[];
|
|
23
|
+
* const main: hcloud.FloatingIpAssignment[] = [];
|
|
24
24
|
* for (const range = {value: 0}; range.value < _var.counter; range.value++) {
|
|
25
25
|
* main.push(new hcloud.FloatingIpAssignment(`main-${range.value}`, {
|
|
26
26
|
* floatingIpId: ip1.then(ip1 => ip1.id),
|
|
@@ -60,7 +60,7 @@ export interface GetFloatingIpArgs {
|
|
|
60
60
|
*/
|
|
61
61
|
export interface GetFloatingIpResult {
|
|
62
62
|
/**
|
|
63
|
-
* (
|
|
63
|
+
* (bool) Whether delete protection is enabled.
|
|
64
64
|
*/
|
|
65
65
|
readonly deleteProtection: boolean;
|
|
66
66
|
/**
|
|
@@ -107,6 +107,36 @@ export interface GetFloatingIpResult {
|
|
|
107
107
|
readonly type: string;
|
|
108
108
|
readonly withSelector?: string;
|
|
109
109
|
}
|
|
110
|
+
/**
|
|
111
|
+
* Provides details about a Hetzner Cloud Floating IP.
|
|
112
|
+
*
|
|
113
|
+
* This resource can be useful when you need to determine a Floating IP ID based on the IP address.
|
|
114
|
+
*
|
|
115
|
+
* ## Example Usage
|
|
116
|
+
*
|
|
117
|
+
* # Data Source: hcloud.FloatingIp
|
|
118
|
+
* Provides details about a Hetzner Cloud Floating IP.
|
|
119
|
+
* This resource can be useful when you need to determine a Floating IP ID based on the IP address.
|
|
120
|
+
* ### Additional Examples
|
|
121
|
+
* ```typescript
|
|
122
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
123
|
+
* import * as hcloud from "@pulumi/hcloud";
|
|
124
|
+
*
|
|
125
|
+
* const ip1 = hcloud.getFloatingIp({
|
|
126
|
+
* ipAddress: "1.2.3.4",
|
|
127
|
+
* });
|
|
128
|
+
* const ip2 = hcloud.getFloatingIp({
|
|
129
|
+
* withSelector: "key=value",
|
|
130
|
+
* });
|
|
131
|
+
* const main: hcloud.FloatingIpAssignment[] = [];
|
|
132
|
+
* for (const range = {value: 0}; range.value < _var.counter; range.value++) {
|
|
133
|
+
* main.push(new hcloud.FloatingIpAssignment(`main-${range.value}`, {
|
|
134
|
+
* floatingIpId: ip1.then(ip1 => ip1.id),
|
|
135
|
+
* serverId: hcloud_server.main.id,
|
|
136
|
+
* }));
|
|
137
|
+
* }
|
|
138
|
+
* ```
|
|
139
|
+
*/
|
|
110
140
|
export declare function getFloatingIpOutput(args?: GetFloatingIpOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetFloatingIpResult>;
|
|
111
141
|
/**
|
|
112
142
|
* A collection of arguments for invoking getFloatingIp.
|
package/getFloatingIp.js
CHANGED
|
@@ -26,7 +26,7 @@ const utilities = require("./utilities");
|
|
|
26
26
|
* const ip2 = hcloud.getFloatingIp({
|
|
27
27
|
* withSelector: "key=value",
|
|
28
28
|
* });
|
|
29
|
-
* const main: hcloud.FloatingIpAssignment[];
|
|
29
|
+
* const main: hcloud.FloatingIpAssignment[] = [];
|
|
30
30
|
* for (const range = {value: 0}; range.value < _var.counter; range.value++) {
|
|
31
31
|
* main.push(new hcloud.FloatingIpAssignment(`main-${range.value}`, {
|
|
32
32
|
* floatingIpId: ip1.then(ip1 => ip1.id),
|
|
@@ -37,10 +37,7 @@ const utilities = require("./utilities");
|
|
|
37
37
|
*/
|
|
38
38
|
function getFloatingIp(args, opts) {
|
|
39
39
|
args = args || {};
|
|
40
|
-
|
|
41
|
-
opts = {};
|
|
42
|
-
}
|
|
43
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
40
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
44
41
|
return pulumi.runtime.invoke("hcloud:index/getFloatingIp:getFloatingIp", {
|
|
45
42
|
"id": args.id,
|
|
46
43
|
"ipAddress": args.ipAddress,
|
|
@@ -50,8 +47,38 @@ function getFloatingIp(args, opts) {
|
|
|
50
47
|
}, opts);
|
|
51
48
|
}
|
|
52
49
|
exports.getFloatingIp = getFloatingIp;
|
|
50
|
+
/**
|
|
51
|
+
* Provides details about a Hetzner Cloud Floating IP.
|
|
52
|
+
*
|
|
53
|
+
* This resource can be useful when you need to determine a Floating IP ID based on the IP address.
|
|
54
|
+
*
|
|
55
|
+
* ## Example Usage
|
|
56
|
+
*
|
|
57
|
+
* # Data Source: hcloud.FloatingIp
|
|
58
|
+
* Provides details about a Hetzner Cloud Floating IP.
|
|
59
|
+
* This resource can be useful when you need to determine a Floating IP ID based on the IP address.
|
|
60
|
+
* ### Additional Examples
|
|
61
|
+
* ```typescript
|
|
62
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
63
|
+
* import * as hcloud from "@pulumi/hcloud";
|
|
64
|
+
*
|
|
65
|
+
* const ip1 = hcloud.getFloatingIp({
|
|
66
|
+
* ipAddress: "1.2.3.4",
|
|
67
|
+
* });
|
|
68
|
+
* const ip2 = hcloud.getFloatingIp({
|
|
69
|
+
* withSelector: "key=value",
|
|
70
|
+
* });
|
|
71
|
+
* const main: hcloud.FloatingIpAssignment[] = [];
|
|
72
|
+
* for (const range = {value: 0}; range.value < _var.counter; range.value++) {
|
|
73
|
+
* main.push(new hcloud.FloatingIpAssignment(`main-${range.value}`, {
|
|
74
|
+
* floatingIpId: ip1.then(ip1 => ip1.id),
|
|
75
|
+
* serverId: hcloud_server.main.id,
|
|
76
|
+
* }));
|
|
77
|
+
* }
|
|
78
|
+
* ```
|
|
79
|
+
*/
|
|
53
80
|
function getFloatingIpOutput(args, opts) {
|
|
54
|
-
return pulumi.output(args).apply(a => getFloatingIp(a, opts));
|
|
81
|
+
return pulumi.output(args).apply((a) => getFloatingIp(a, opts));
|
|
55
82
|
}
|
|
56
83
|
exports.getFloatingIpOutput = getFloatingIpOutput;
|
|
57
84
|
//# sourceMappingURL=getFloatingIp.js.map
|
package/getFloatingIp.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getFloatingIp.js","sourceRoot":"","sources":["../getFloatingIp.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,SAAgB,aAAa,CAAC,IAAwB,EAAE,IAA2B;IAC/E,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"getFloatingIp.js","sourceRoot":"","sources":["../getFloatingIp.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,SAAgB,aAAa,CAAC,IAAwB,EAAE,IAA2B;IAC/E,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,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,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,cAAc,EAAE,IAAI,CAAC,YAAY;KACpC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAXD,sCAWC;AA8ED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,SAAgB,mBAAmB,CAAC,IAA8B,EAAE,IAA2B;IAC3F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,aAAa,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACxE,CAAC;AAFD,kDAEC"}
|
package/getFloatingIps.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
import
|
|
2
|
+
import * as outputs from "./types/output";
|
|
3
3
|
/**
|
|
4
4
|
* Provides details about multiple Hetzner Cloud Floating IPs.
|
|
5
5
|
*
|
|
@@ -9,9 +9,9 @@ import { output as outputs } from "./types";
|
|
|
9
9
|
* import * as pulumi from "@pulumi/pulumi";
|
|
10
10
|
* import * as hcloud from "@pulumi/hcloud";
|
|
11
11
|
*
|
|
12
|
-
* const ip2 =
|
|
12
|
+
* const ip2 = hcloud.getFloatingIps({
|
|
13
13
|
* withSelector: "key=value",
|
|
14
|
-
* })
|
|
14
|
+
* });
|
|
15
15
|
* ```
|
|
16
16
|
*/
|
|
17
17
|
export declare function getFloatingIps(args?: GetFloatingIpsArgs, opts?: pulumi.InvokeOptions): Promise<GetFloatingIpsResult>;
|
|
@@ -38,6 +38,20 @@ export interface GetFloatingIpsResult {
|
|
|
38
38
|
readonly id: string;
|
|
39
39
|
readonly withSelector?: string;
|
|
40
40
|
}
|
|
41
|
+
/**
|
|
42
|
+
* Provides details about multiple Hetzner Cloud Floating IPs.
|
|
43
|
+
*
|
|
44
|
+
* ## Example Usage
|
|
45
|
+
*
|
|
46
|
+
* ```typescript
|
|
47
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
48
|
+
* import * as hcloud from "@pulumi/hcloud";
|
|
49
|
+
*
|
|
50
|
+
* const ip2 = hcloud.getFloatingIps({
|
|
51
|
+
* withSelector: "key=value",
|
|
52
|
+
* });
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
41
55
|
export declare function getFloatingIpsOutput(args?: GetFloatingIpsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetFloatingIpsResult>;
|
|
42
56
|
/**
|
|
43
57
|
* A collection of arguments for invoking getFloatingIps.
|
package/getFloatingIps.js
CHANGED
|
@@ -14,24 +14,35 @@ const utilities = require("./utilities");
|
|
|
14
14
|
* import * as pulumi from "@pulumi/pulumi";
|
|
15
15
|
* import * as hcloud from "@pulumi/hcloud";
|
|
16
16
|
*
|
|
17
|
-
* const ip2 =
|
|
17
|
+
* const ip2 = hcloud.getFloatingIps({
|
|
18
18
|
* withSelector: "key=value",
|
|
19
|
-
* })
|
|
19
|
+
* });
|
|
20
20
|
* ```
|
|
21
21
|
*/
|
|
22
22
|
function getFloatingIps(args, opts) {
|
|
23
23
|
args = args || {};
|
|
24
|
-
|
|
25
|
-
opts = {};
|
|
26
|
-
}
|
|
27
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
24
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
28
25
|
return pulumi.runtime.invoke("hcloud:index/getFloatingIps:getFloatingIps", {
|
|
29
26
|
"withSelector": args.withSelector,
|
|
30
27
|
}, opts);
|
|
31
28
|
}
|
|
32
29
|
exports.getFloatingIps = getFloatingIps;
|
|
30
|
+
/**
|
|
31
|
+
* Provides details about multiple Hetzner Cloud Floating IPs.
|
|
32
|
+
*
|
|
33
|
+
* ## Example Usage
|
|
34
|
+
*
|
|
35
|
+
* ```typescript
|
|
36
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
37
|
+
* import * as hcloud from "@pulumi/hcloud";
|
|
38
|
+
*
|
|
39
|
+
* const ip2 = hcloud.getFloatingIps({
|
|
40
|
+
* withSelector: "key=value",
|
|
41
|
+
* });
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
33
44
|
function getFloatingIpsOutput(args, opts) {
|
|
34
|
-
return pulumi.output(args).apply(a => getFloatingIps(a, opts));
|
|
45
|
+
return pulumi.output(args).apply((a) => getFloatingIps(a, opts));
|
|
35
46
|
}
|
|
36
47
|
exports.getFloatingIpsOutput = getFloatingIpsOutput;
|
|
37
48
|
//# sourceMappingURL=getFloatingIps.js.map
|
package/getFloatingIps.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getFloatingIps.js","sourceRoot":"","sources":["../getFloatingIps.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;
|
|
1
|
+
{"version":3,"file":"getFloatingIps.js","sourceRoot":"","sources":["../getFloatingIps.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;AACH,SAAgB,cAAc,CAAC,IAAyB,EAAE,IAA2B;IACjF,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,4CAA4C,EAAE;QACvE,cAAc,EAAE,IAAI,CAAC,YAAY;KACpC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,wCAOC;AA0BD;;;;;;;;;;;;;GAaG;AACH,SAAgB,oBAAoB,CAAC,IAA+B,EAAE,IAA2B;IAC7F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,cAAc,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACzE,CAAC;AAFD,oDAEC"}
|
package/getImage.d.ts
CHANGED
|
@@ -99,6 +99,25 @@ export interface GetImageResult {
|
|
|
99
99
|
readonly withSelector?: string;
|
|
100
100
|
readonly withStatuses?: string[];
|
|
101
101
|
}
|
|
102
|
+
/**
|
|
103
|
+
* ## Example Usage
|
|
104
|
+
*
|
|
105
|
+
* ```typescript
|
|
106
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
107
|
+
* import * as hcloud from "@pulumi/hcloud";
|
|
108
|
+
*
|
|
109
|
+
* const image1 = hcloud.getImage({
|
|
110
|
+
* id: 1234,
|
|
111
|
+
* });
|
|
112
|
+
* const image2 = hcloud.getImage({
|
|
113
|
+
* name: "ubuntu-18.04",
|
|
114
|
+
* });
|
|
115
|
+
* const image3 = hcloud.getImage({
|
|
116
|
+
* withSelector: "key=value",
|
|
117
|
+
* });
|
|
118
|
+
* const main = new hcloud.Server("main", {image: image1.then(image1 => image1.id)});
|
|
119
|
+
* ```
|
|
120
|
+
*/
|
|
102
121
|
export declare function getImageOutput(args?: GetImageOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetImageResult>;
|
|
103
122
|
/**
|
|
104
123
|
* A collection of arguments for invoking getImage.
|
package/getImage.js
CHANGED
|
@@ -26,10 +26,7 @@ const utilities = require("./utilities");
|
|
|
26
26
|
*/
|
|
27
27
|
function getImage(args, opts) {
|
|
28
28
|
args = args || {};
|
|
29
|
-
|
|
30
|
-
opts = {};
|
|
31
|
-
}
|
|
32
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
29
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
33
30
|
return pulumi.runtime.invoke("hcloud:index/getImage:getImage", {
|
|
34
31
|
"id": args.id,
|
|
35
32
|
"mostRecent": args.mostRecent,
|
|
@@ -40,8 +37,27 @@ function getImage(args, opts) {
|
|
|
40
37
|
}, opts);
|
|
41
38
|
}
|
|
42
39
|
exports.getImage = getImage;
|
|
40
|
+
/**
|
|
41
|
+
* ## Example Usage
|
|
42
|
+
*
|
|
43
|
+
* ```typescript
|
|
44
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
45
|
+
* import * as hcloud from "@pulumi/hcloud";
|
|
46
|
+
*
|
|
47
|
+
* const image1 = hcloud.getImage({
|
|
48
|
+
* id: 1234,
|
|
49
|
+
* });
|
|
50
|
+
* const image2 = hcloud.getImage({
|
|
51
|
+
* name: "ubuntu-18.04",
|
|
52
|
+
* });
|
|
53
|
+
* const image3 = hcloud.getImage({
|
|
54
|
+
* withSelector: "key=value",
|
|
55
|
+
* });
|
|
56
|
+
* const main = new hcloud.Server("main", {image: image1.then(image1 => image1.id)});
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
43
59
|
function getImageOutput(args, opts) {
|
|
44
|
-
return pulumi.output(args).apply(a => getImage(a, opts));
|
|
60
|
+
return pulumi.output(args).apply((a) => getImage(a, opts));
|
|
45
61
|
}
|
|
46
62
|
exports.getImageOutput = getImageOutput;
|
|
47
63
|
//# sourceMappingURL=getImage.js.map
|
package/getImage.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getImage.js","sourceRoot":"","sources":["../getImage.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;GAkBG;AACH,SAAgB,QAAQ,CAAC,IAAmB,EAAE,IAA2B;IACrE,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"getImage.js","sourceRoot":"","sources":["../getImage.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;GAkBG;AACH,SAAgB,QAAQ,CAAC,IAAmB,EAAE,IAA2B;IACrE,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,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,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,cAAc,EAAE,IAAI,CAAC,YAAY;QACjC,cAAc,EAAE,IAAI,CAAC,YAAY;KACpC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAZD,4BAYC;AAiFD;;;;;;;;;;;;;;;;;;GAkBG;AACH,SAAgB,cAAc,CAAC,IAAyB,EAAE,IAA2B;IACjF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACnE,CAAC;AAFD,wCAEC"}
|