@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/getNetworks.js
CHANGED
|
@@ -14,25 +14,37 @@ const utilities = require("./utilities");
|
|
|
14
14
|
* import * as pulumi from "@pulumi/pulumi";
|
|
15
15
|
* import * as hcloud from "@pulumi/hcloud";
|
|
16
16
|
*
|
|
17
|
-
* const network2 =
|
|
18
|
-
* const network3 =
|
|
17
|
+
* const network2 = hcloud.getNetwork({});
|
|
18
|
+
* const network3 = hcloud.getNetwork({
|
|
19
19
|
* withSelector: "key=value",
|
|
20
|
-
* })
|
|
20
|
+
* });
|
|
21
21
|
* ```
|
|
22
22
|
*/
|
|
23
23
|
function getNetworks(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/getNetworks:getNetworks", {
|
|
30
27
|
"withSelector": args.withSelector,
|
|
31
28
|
}, opts);
|
|
32
29
|
}
|
|
33
30
|
exports.getNetworks = getNetworks;
|
|
31
|
+
/**
|
|
32
|
+
* Provides details about multiple Hetzner Cloud Networks.
|
|
33
|
+
*
|
|
34
|
+
* ## Example Usage
|
|
35
|
+
*
|
|
36
|
+
* ```typescript
|
|
37
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
38
|
+
* import * as hcloud from "@pulumi/hcloud";
|
|
39
|
+
*
|
|
40
|
+
* const network2 = hcloud.getNetwork({});
|
|
41
|
+
* const network3 = hcloud.getNetwork({
|
|
42
|
+
* withSelector: "key=value",
|
|
43
|
+
* });
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
34
46
|
function getNetworksOutput(args, opts) {
|
|
35
|
-
return pulumi.output(args).apply(a => getNetworks(a, opts));
|
|
47
|
+
return pulumi.output(args).apply((a) => getNetworks(a, opts));
|
|
36
48
|
}
|
|
37
49
|
exports.getNetworksOutput = getNetworksOutput;
|
|
38
50
|
//# sourceMappingURL=getNetworks.js.map
|
package/getNetworks.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getNetworks.js","sourceRoot":"","sources":["../getNetworks.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;
|
|
1
|
+
{"version":3,"file":"getNetworks.js","sourceRoot":"","sources":["../getNetworks.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,cAAc,EAAE,IAAI,CAAC,YAAY;KACpC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,kCAOC;AA0BD;;;;;;;;;;;;;;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/getPlacementGroup.d.ts
CHANGED
|
@@ -6,12 +6,12 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
6
6
|
* import * as pulumi from "@pulumi/pulumi";
|
|
7
7
|
* import * as hcloud from "@pulumi/hcloud";
|
|
8
8
|
*
|
|
9
|
-
* const samplePlacementGroup1 =
|
|
9
|
+
* const samplePlacementGroup1 = hcloud.getPlacementGroup({
|
|
10
10
|
* name: "sample-placement-group-1",
|
|
11
|
-
* })
|
|
12
|
-
* const samplePlacementGroup2 =
|
|
11
|
+
* });
|
|
12
|
+
* const samplePlacementGroup2 = hcloud.getPlacementGroup({
|
|
13
13
|
* id: 4711,
|
|
14
|
-
* })
|
|
14
|
+
* });
|
|
15
15
|
* ```
|
|
16
16
|
*/
|
|
17
17
|
export declare function getPlacementGroup(args?: GetPlacementGroupArgs, opts?: pulumi.InvokeOptions): Promise<GetPlacementGroupResult>;
|
|
@@ -72,6 +72,21 @@ export interface GetPlacementGroupResult {
|
|
|
72
72
|
readonly type?: string;
|
|
73
73
|
readonly withSelector?: string;
|
|
74
74
|
}
|
|
75
|
+
/**
|
|
76
|
+
* Provides details about a specific Hetzner Cloud Placement Group.
|
|
77
|
+
*
|
|
78
|
+
* ```typescript
|
|
79
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
80
|
+
* import * as hcloud from "@pulumi/hcloud";
|
|
81
|
+
*
|
|
82
|
+
* const samplePlacementGroup1 = hcloud.getPlacementGroup({
|
|
83
|
+
* name: "sample-placement-group-1",
|
|
84
|
+
* });
|
|
85
|
+
* const samplePlacementGroup2 = hcloud.getPlacementGroup({
|
|
86
|
+
* id: 4711,
|
|
87
|
+
* });
|
|
88
|
+
* ```
|
|
89
|
+
*/
|
|
75
90
|
export declare function getPlacementGroupOutput(args?: GetPlacementGroupOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetPlacementGroupResult>;
|
|
76
91
|
/**
|
|
77
92
|
* A collection of arguments for invoking getPlacementGroup.
|
package/getPlacementGroup.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 samplePlacementGroup1 =
|
|
15
|
+
* const samplePlacementGroup1 = hcloud.getPlacementGroup({
|
|
16
16
|
* name: "sample-placement-group-1",
|
|
17
|
-
* })
|
|
18
|
-
* const samplePlacementGroup2 =
|
|
17
|
+
* });
|
|
18
|
+
* const samplePlacementGroup2 = hcloud.getPlacementGroup({
|
|
19
19
|
* id: 4711,
|
|
20
|
-
* })
|
|
20
|
+
* });
|
|
21
21
|
* ```
|
|
22
22
|
*/
|
|
23
23
|
function getPlacementGroup(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/getPlacementGroup:getPlacementGroup", {
|
|
30
27
|
"id": args.id,
|
|
31
28
|
"labels": args.labels,
|
|
@@ -36,8 +33,23 @@ function getPlacementGroup(args, opts) {
|
|
|
36
33
|
}, opts);
|
|
37
34
|
}
|
|
38
35
|
exports.getPlacementGroup = getPlacementGroup;
|
|
36
|
+
/**
|
|
37
|
+
* Provides details about a specific Hetzner Cloud Placement Group.
|
|
38
|
+
*
|
|
39
|
+
* ```typescript
|
|
40
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
41
|
+
* import * as hcloud from "@pulumi/hcloud";
|
|
42
|
+
*
|
|
43
|
+
* const samplePlacementGroup1 = hcloud.getPlacementGroup({
|
|
44
|
+
* name: "sample-placement-group-1",
|
|
45
|
+
* });
|
|
46
|
+
* const samplePlacementGroup2 = hcloud.getPlacementGroup({
|
|
47
|
+
* id: 4711,
|
|
48
|
+
* });
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
39
51
|
function getPlacementGroupOutput(args, opts) {
|
|
40
|
-
return pulumi.output(args).apply(a => getPlacementGroup(a, opts));
|
|
52
|
+
return pulumi.output(args).apply((a) => getPlacementGroup(a, opts));
|
|
41
53
|
}
|
|
42
54
|
exports.getPlacementGroupOutput = getPlacementGroupOutput;
|
|
43
55
|
//# sourceMappingURL=getPlacementGroup.js.map
|
package/getPlacementGroup.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getPlacementGroup.js","sourceRoot":"","sources":["../getPlacementGroup.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;GAcG;AACH,SAAgB,iBAAiB,CAAC,IAA4B,EAAE,IAA2B;IACvF,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"getPlacementGroup.js","sourceRoot":"","sources":["../getPlacementGroup.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;GAcG;AACH,SAAgB,iBAAiB,CAAC,IAA4B,EAAE,IAA2B;IACvF,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,kDAAkD,EAAE;QAC7E,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,cAAc,EAAE,IAAI,CAAC,YAAY;KACpC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAZD,8CAYC;AAwDD;;;;;;;;;;;;;;GAcG;AACH,SAAgB,uBAAuB,CAAC,IAAkC,EAAE,IAA2B;IACnG,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,iBAAiB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC5E,CAAC;AAFD,0DAEC"}
|
package/getPlacementGroups.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 Placement Groups.
|
|
5
5
|
*
|
|
@@ -9,10 +9,10 @@ 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 samplePlacementGroup1 =
|
|
13
|
-
* const samplePlacementGroup2 =
|
|
12
|
+
* const samplePlacementGroup1 = hcloud.getPlacementGroups({});
|
|
13
|
+
* const samplePlacementGroup2 = hcloud.getPlacementGroups({
|
|
14
14
|
* withSelector: "key=value",
|
|
15
|
-
* })
|
|
15
|
+
* });
|
|
16
16
|
* ```
|
|
17
17
|
*/
|
|
18
18
|
export declare function getPlacementGroups(args?: GetPlacementGroupsArgs, opts?: pulumi.InvokeOptions): Promise<GetPlacementGroupsResult>;
|
|
@@ -44,6 +44,21 @@ export interface GetPlacementGroupsResult {
|
|
|
44
44
|
readonly placementGroups: outputs.GetPlacementGroupsPlacementGroup[];
|
|
45
45
|
readonly withSelector?: string;
|
|
46
46
|
}
|
|
47
|
+
/**
|
|
48
|
+
* Provides details about multiple Hetzner Cloud Placement Groups.
|
|
49
|
+
*
|
|
50
|
+
* ## Example Usage
|
|
51
|
+
*
|
|
52
|
+
* ```typescript
|
|
53
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
54
|
+
* import * as hcloud from "@pulumi/hcloud";
|
|
55
|
+
*
|
|
56
|
+
* const samplePlacementGroup1 = hcloud.getPlacementGroups({});
|
|
57
|
+
* const samplePlacementGroup2 = hcloud.getPlacementGroups({
|
|
58
|
+
* withSelector: "key=value",
|
|
59
|
+
* });
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
47
62
|
export declare function getPlacementGroupsOutput(args?: GetPlacementGroupsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetPlacementGroupsResult>;
|
|
48
63
|
/**
|
|
49
64
|
* A collection of arguments for invoking getPlacementGroups.
|
package/getPlacementGroups.js
CHANGED
|
@@ -14,26 +14,38 @@ const utilities = require("./utilities");
|
|
|
14
14
|
* import * as pulumi from "@pulumi/pulumi";
|
|
15
15
|
* import * as hcloud from "@pulumi/hcloud";
|
|
16
16
|
*
|
|
17
|
-
* const samplePlacementGroup1 =
|
|
18
|
-
* const samplePlacementGroup2 =
|
|
17
|
+
* const samplePlacementGroup1 = hcloud.getPlacementGroups({});
|
|
18
|
+
* const samplePlacementGroup2 = hcloud.getPlacementGroups({
|
|
19
19
|
* withSelector: "key=value",
|
|
20
|
-
* })
|
|
20
|
+
* });
|
|
21
21
|
* ```
|
|
22
22
|
*/
|
|
23
23
|
function getPlacementGroups(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/getPlacementGroups:getPlacementGroups", {
|
|
30
27
|
"mostRecent": args.mostRecent,
|
|
31
28
|
"withSelector": args.withSelector,
|
|
32
29
|
}, opts);
|
|
33
30
|
}
|
|
34
31
|
exports.getPlacementGroups = getPlacementGroups;
|
|
32
|
+
/**
|
|
33
|
+
* Provides details about multiple Hetzner Cloud Placement Groups.
|
|
34
|
+
*
|
|
35
|
+
* ## Example Usage
|
|
36
|
+
*
|
|
37
|
+
* ```typescript
|
|
38
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
39
|
+
* import * as hcloud from "@pulumi/hcloud";
|
|
40
|
+
*
|
|
41
|
+
* const samplePlacementGroup1 = hcloud.getPlacementGroups({});
|
|
42
|
+
* const samplePlacementGroup2 = hcloud.getPlacementGroups({
|
|
43
|
+
* withSelector: "key=value",
|
|
44
|
+
* });
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
35
47
|
function getPlacementGroupsOutput(args, opts) {
|
|
36
|
-
return pulumi.output(args).apply(a => getPlacementGroups(a, opts));
|
|
48
|
+
return pulumi.output(args).apply((a) => getPlacementGroups(a, opts));
|
|
37
49
|
}
|
|
38
50
|
exports.getPlacementGroupsOutput = getPlacementGroupsOutput;
|
|
39
51
|
//# sourceMappingURL=getPlacementGroups.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getPlacementGroups.js","sourceRoot":"","sources":["../getPlacementGroups.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;
|
|
1
|
+
{"version":3,"file":"getPlacementGroups.js","sourceRoot":"","sources":["../getPlacementGroups.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;GAcG;AACH,SAAgB,kBAAkB,CAAC,IAA6B,EAAE,IAA2B;IACzF,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,oDAAoD,EAAE;QAC/E,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,cAAc,EAAE,IAAI,CAAC,YAAY;KACpC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,gDAQC;AA+BD;;;;;;;;;;;;;;GAcG;AACH,SAAgB,wBAAwB,CAAC,IAAmC,EAAE,IAA2B;IACrG,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,kBAAkB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC7E,CAAC;AAFD,4DAEC"}
|
package/getPrimaryIp.d.ts
CHANGED
|
@@ -12,9 +12,11 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
12
12
|
* ## Example Usage
|
|
13
13
|
*
|
|
14
14
|
* # Data Source: hcloud.PrimaryIp
|
|
15
|
+
*
|
|
15
16
|
* Provides details about a Hetzner Cloud Primary IP.
|
|
16
17
|
* This resource can be useful when you need to determine a Primary IP ID based on the IP address.
|
|
17
18
|
* ### Additional Examples
|
|
19
|
+
*
|
|
18
20
|
* ```typescript
|
|
19
21
|
* import * as pulumi from "@pulumi/pulumi";
|
|
20
22
|
* import * as hcloud from "@pulumi/hcloud";
|
|
@@ -48,7 +50,7 @@ export declare function getPrimaryIp(args?: GetPrimaryIpArgs, opts?: pulumi.Invo
|
|
|
48
50
|
*/
|
|
49
51
|
export interface GetPrimaryIpArgs {
|
|
50
52
|
/**
|
|
51
|
-
* (int) ID of the assigned resource
|
|
53
|
+
* (int) ID of the assigned resource.
|
|
52
54
|
*/
|
|
53
55
|
assigneeId?: number;
|
|
54
56
|
/**
|
|
@@ -73,7 +75,7 @@ export interface GetPrimaryIpArgs {
|
|
|
73
75
|
*/
|
|
74
76
|
export interface GetPrimaryIpResult {
|
|
75
77
|
/**
|
|
76
|
-
* (int) ID of the assigned resource
|
|
78
|
+
* (int) ID of the assigned resource.
|
|
77
79
|
*/
|
|
78
80
|
readonly assigneeId: number;
|
|
79
81
|
/**
|
|
@@ -81,12 +83,15 @@ export interface GetPrimaryIpResult {
|
|
|
81
83
|
*/
|
|
82
84
|
readonly assigneeType: string;
|
|
83
85
|
/**
|
|
84
|
-
* (
|
|
86
|
+
* (bool) Whether auto delete is enabled.
|
|
85
87
|
*/
|
|
86
88
|
readonly autoDelete: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* (string) The datacenter name of the Primary IP.
|
|
91
|
+
*/
|
|
87
92
|
readonly datacenter: string;
|
|
88
93
|
/**
|
|
89
|
-
* (
|
|
94
|
+
* (bool) Whether delete protection is enabled.
|
|
90
95
|
*/
|
|
91
96
|
readonly deleteProtection: boolean;
|
|
92
97
|
/**
|
|
@@ -114,13 +119,58 @@ export interface GetPrimaryIpResult {
|
|
|
114
119
|
readonly type: string;
|
|
115
120
|
readonly withSelector?: string;
|
|
116
121
|
}
|
|
122
|
+
/**
|
|
123
|
+
* Provides details about a Hetzner Cloud Primary IP.
|
|
124
|
+
*
|
|
125
|
+
* This resource can be useful when you need to determine a Primary IP ID based on the IP address.
|
|
126
|
+
*
|
|
127
|
+
* Side note:
|
|
128
|
+
*
|
|
129
|
+
* 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.
|
|
130
|
+
* Currently, Primary IPs can be only attached to servers.
|
|
131
|
+
*
|
|
132
|
+
* ## Example Usage
|
|
133
|
+
*
|
|
134
|
+
* # Data Source: hcloud.PrimaryIp
|
|
135
|
+
*
|
|
136
|
+
* Provides details about a Hetzner Cloud Primary IP.
|
|
137
|
+
* This resource can be useful when you need to determine a Primary IP ID based on the IP address.
|
|
138
|
+
* ### Additional Examples
|
|
139
|
+
*
|
|
140
|
+
* ```typescript
|
|
141
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
142
|
+
* import * as hcloud from "@pulumi/hcloud";
|
|
143
|
+
*
|
|
144
|
+
* const ip1 = hcloud.getPrimaryIp({
|
|
145
|
+
* ipAddress: "1.2.3.4",
|
|
146
|
+
* });
|
|
147
|
+
* const ip2 = hcloud.getPrimaryIp({
|
|
148
|
+
* name: "primary_ip_1",
|
|
149
|
+
* });
|
|
150
|
+
* const ip3 = hcloud.getPrimaryIp({
|
|
151
|
+
* withSelector: "key=value",
|
|
152
|
+
* });
|
|
153
|
+
* // Link a server to an existing primary IP
|
|
154
|
+
* const serverTest = new hcloud.Server("serverTest", {
|
|
155
|
+
* image: "ubuntu-20.04",
|
|
156
|
+
* serverType: "cx11",
|
|
157
|
+
* datacenter: "fsn1-dc14",
|
|
158
|
+
* labels: {
|
|
159
|
+
* test: "tessst1",
|
|
160
|
+
* },
|
|
161
|
+
* publicNets: [{
|
|
162
|
+
* ipv4: hcloud_primary_ip.ip_1.id,
|
|
163
|
+
* }],
|
|
164
|
+
* });
|
|
165
|
+
* ```
|
|
166
|
+
*/
|
|
117
167
|
export declare function getPrimaryIpOutput(args?: GetPrimaryIpOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetPrimaryIpResult>;
|
|
118
168
|
/**
|
|
119
169
|
* A collection of arguments for invoking getPrimaryIp.
|
|
120
170
|
*/
|
|
121
171
|
export interface GetPrimaryIpOutputArgs {
|
|
122
172
|
/**
|
|
123
|
-
* (int) ID of the assigned resource
|
|
173
|
+
* (int) ID of the assigned resource.
|
|
124
174
|
*/
|
|
125
175
|
assigneeId?: pulumi.Input<number>;
|
|
126
176
|
/**
|
package/getPrimaryIp.js
CHANGED
|
@@ -18,9 +18,11 @@ const utilities = require("./utilities");
|
|
|
18
18
|
* ## Example Usage
|
|
19
19
|
*
|
|
20
20
|
* # Data Source: hcloud.PrimaryIp
|
|
21
|
+
*
|
|
21
22
|
* Provides details about a Hetzner Cloud Primary IP.
|
|
22
23
|
* This resource can be useful when you need to determine a Primary IP ID based on the IP address.
|
|
23
24
|
* ### Additional Examples
|
|
25
|
+
*
|
|
24
26
|
* ```typescript
|
|
25
27
|
* import * as pulumi from "@pulumi/pulumi";
|
|
26
28
|
* import * as hcloud from "@pulumi/hcloud";
|
|
@@ -50,10 +52,7 @@ const utilities = require("./utilities");
|
|
|
50
52
|
*/
|
|
51
53
|
function getPrimaryIp(args, opts) {
|
|
52
54
|
args = args || {};
|
|
53
|
-
|
|
54
|
-
opts = {};
|
|
55
|
-
}
|
|
56
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
55
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
57
56
|
return pulumi.runtime.invoke("hcloud:index/getPrimaryIp:getPrimaryIp", {
|
|
58
57
|
"assigneeId": args.assigneeId,
|
|
59
58
|
"id": args.id,
|
|
@@ -63,8 +62,53 @@ function getPrimaryIp(args, opts) {
|
|
|
63
62
|
}, opts);
|
|
64
63
|
}
|
|
65
64
|
exports.getPrimaryIp = getPrimaryIp;
|
|
65
|
+
/**
|
|
66
|
+
* Provides details about a Hetzner Cloud Primary IP.
|
|
67
|
+
*
|
|
68
|
+
* This resource can be useful when you need to determine a Primary IP ID based on the IP address.
|
|
69
|
+
*
|
|
70
|
+
* Side note:
|
|
71
|
+
*
|
|
72
|
+
* 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.
|
|
73
|
+
* Currently, Primary IPs can be only attached to servers.
|
|
74
|
+
*
|
|
75
|
+
* ## Example Usage
|
|
76
|
+
*
|
|
77
|
+
* # Data Source: hcloud.PrimaryIp
|
|
78
|
+
*
|
|
79
|
+
* Provides details about a Hetzner Cloud Primary IP.
|
|
80
|
+
* This resource can be useful when you need to determine a Primary IP ID based on the IP address.
|
|
81
|
+
* ### Additional Examples
|
|
82
|
+
*
|
|
83
|
+
* ```typescript
|
|
84
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
85
|
+
* import * as hcloud from "@pulumi/hcloud";
|
|
86
|
+
*
|
|
87
|
+
* const ip1 = hcloud.getPrimaryIp({
|
|
88
|
+
* ipAddress: "1.2.3.4",
|
|
89
|
+
* });
|
|
90
|
+
* const ip2 = hcloud.getPrimaryIp({
|
|
91
|
+
* name: "primary_ip_1",
|
|
92
|
+
* });
|
|
93
|
+
* const ip3 = hcloud.getPrimaryIp({
|
|
94
|
+
* withSelector: "key=value",
|
|
95
|
+
* });
|
|
96
|
+
* // Link a server to an existing primary IP
|
|
97
|
+
* const serverTest = new hcloud.Server("serverTest", {
|
|
98
|
+
* image: "ubuntu-20.04",
|
|
99
|
+
* serverType: "cx11",
|
|
100
|
+
* datacenter: "fsn1-dc14",
|
|
101
|
+
* labels: {
|
|
102
|
+
* test: "tessst1",
|
|
103
|
+
* },
|
|
104
|
+
* publicNets: [{
|
|
105
|
+
* ipv4: hcloud_primary_ip.ip_1.id,
|
|
106
|
+
* }],
|
|
107
|
+
* });
|
|
108
|
+
* ```
|
|
109
|
+
*/
|
|
66
110
|
function getPrimaryIpOutput(args, opts) {
|
|
67
|
-
return pulumi.output(args).apply(a => getPrimaryIp(a, opts));
|
|
111
|
+
return pulumi.output(args).apply((a) => getPrimaryIp(a, opts));
|
|
68
112
|
}
|
|
69
113
|
exports.getPrimaryIpOutput = getPrimaryIpOutput;
|
|
70
114
|
//# sourceMappingURL=getPrimaryIp.js.map
|
package/getPrimaryIp.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getPrimaryIp.js","sourceRoot":"","sources":["../getPrimaryIp.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"getPrimaryIp.js","sourceRoot":"","sources":["../getPrimaryIp.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;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,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;AAXD,oCAWC;AA2ED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;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/getPrimaryIps.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 Primary 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.getPrimaryIps({
|
|
13
13
|
* withSelector: "key=value",
|
|
14
|
-
* })
|
|
14
|
+
* });
|
|
15
15
|
* ```
|
|
16
16
|
*/
|
|
17
17
|
export declare function getPrimaryIps(args?: GetPrimaryIpsArgs, opts?: pulumi.InvokeOptions): Promise<GetPrimaryIpsResult>;
|
|
@@ -38,6 +38,20 @@ export interface GetPrimaryIpsResult {
|
|
|
38
38
|
readonly primaryIps: outputs.GetPrimaryIpsPrimaryIp[];
|
|
39
39
|
readonly withSelector?: string;
|
|
40
40
|
}
|
|
41
|
+
/**
|
|
42
|
+
* Provides details about multiple Hetzner Cloud Primary 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.getPrimaryIps({
|
|
51
|
+
* withSelector: "key=value",
|
|
52
|
+
* });
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
41
55
|
export declare function getPrimaryIpsOutput(args?: GetPrimaryIpsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetPrimaryIpsResult>;
|
|
42
56
|
/**
|
|
43
57
|
* A collection of arguments for invoking getPrimaryIps.
|
package/getPrimaryIps.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.getPrimaryIps({
|
|
18
18
|
* withSelector: "key=value",
|
|
19
|
-
* })
|
|
19
|
+
* });
|
|
20
20
|
* ```
|
|
21
21
|
*/
|
|
22
22
|
function getPrimaryIps(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/getPrimaryIps:getPrimaryIps", {
|
|
29
26
|
"withSelector": args.withSelector,
|
|
30
27
|
}, opts);
|
|
31
28
|
}
|
|
32
29
|
exports.getPrimaryIps = getPrimaryIps;
|
|
30
|
+
/**
|
|
31
|
+
* Provides details about multiple Hetzner Cloud Primary 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.getPrimaryIps({
|
|
40
|
+
* withSelector: "key=value",
|
|
41
|
+
* });
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
33
44
|
function getPrimaryIpsOutput(args, opts) {
|
|
34
|
-
return pulumi.output(args).apply(a => getPrimaryIps(a, opts));
|
|
45
|
+
return pulumi.output(args).apply((a) => getPrimaryIps(a, opts));
|
|
35
46
|
}
|
|
36
47
|
exports.getPrimaryIpsOutput = getPrimaryIpsOutput;
|
|
37
48
|
//# sourceMappingURL=getPrimaryIps.js.map
|
package/getPrimaryIps.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getPrimaryIps.js","sourceRoot":"","sources":["../getPrimaryIps.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;
|
|
1
|
+
{"version":3,"file":"getPrimaryIps.js","sourceRoot":"","sources":["../getPrimaryIps.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;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,cAAc,EAAE,IAAI,CAAC,YAAY;KACpC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,sCAOC;AA0BD;;;;;;;;;;;;;GAaG;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/getServer.d.ts
CHANGED
|
@@ -6,15 +6,15 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
6
6
|
* import * as pulumi from "@pulumi/pulumi";
|
|
7
7
|
* import * as hcloud from "@pulumi/hcloud";
|
|
8
8
|
*
|
|
9
|
-
* const s1 =
|
|
9
|
+
* const s1 = hcloud.getServer({
|
|
10
10
|
* name: "my-server",
|
|
11
|
-
* })
|
|
12
|
-
* const s2 =
|
|
11
|
+
* });
|
|
12
|
+
* const s2 = hcloud.getServer({
|
|
13
13
|
* id: 123,
|
|
14
|
-
* })
|
|
15
|
-
* const s3 =
|
|
14
|
+
* });
|
|
15
|
+
* const s3 = hcloud.getServer({
|
|
16
16
|
* withSelector: "key=value",
|
|
17
|
-
* })
|
|
17
|
+
* });
|
|
18
18
|
* ```
|
|
19
19
|
*/
|
|
20
20
|
export declare function getServer(args?: GetServerArgs, opts?: pulumi.InvokeOptions): Promise<GetServerResult>;
|
|
@@ -56,7 +56,7 @@ export interface GetServerResult {
|
|
|
56
56
|
*/
|
|
57
57
|
readonly backupWindow: string;
|
|
58
58
|
/**
|
|
59
|
-
* (
|
|
59
|
+
* (bool) Whether backups are enabled.
|
|
60
60
|
*/
|
|
61
61
|
readonly backups: boolean;
|
|
62
62
|
/**
|
|
@@ -64,7 +64,7 @@ export interface GetServerResult {
|
|
|
64
64
|
*/
|
|
65
65
|
readonly datacenter: string;
|
|
66
66
|
/**
|
|
67
|
-
* (
|
|
67
|
+
* (bool) Whether delete protection is enabled.
|
|
68
68
|
*/
|
|
69
69
|
readonly deleteProtection: boolean;
|
|
70
70
|
/**
|
|
@@ -114,7 +114,7 @@ export interface GetServerResult {
|
|
|
114
114
|
*/
|
|
115
115
|
readonly placementGroupId?: number;
|
|
116
116
|
/**
|
|
117
|
-
* (
|
|
117
|
+
* (bool) Whether rebuild protection is enabled.
|
|
118
118
|
*/
|
|
119
119
|
readonly rebuildProtection: boolean;
|
|
120
120
|
readonly rescue: string;
|
|
@@ -133,6 +133,24 @@ export interface GetServerResult {
|
|
|
133
133
|
readonly withSelector?: string;
|
|
134
134
|
readonly withStatuses?: string[];
|
|
135
135
|
}
|
|
136
|
+
/**
|
|
137
|
+
* ## Example Usage
|
|
138
|
+
*
|
|
139
|
+
* ```typescript
|
|
140
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
141
|
+
* import * as hcloud from "@pulumi/hcloud";
|
|
142
|
+
*
|
|
143
|
+
* const s1 = hcloud.getServer({
|
|
144
|
+
* name: "my-server",
|
|
145
|
+
* });
|
|
146
|
+
* const s2 = hcloud.getServer({
|
|
147
|
+
* id: 123,
|
|
148
|
+
* });
|
|
149
|
+
* const s3 = hcloud.getServer({
|
|
150
|
+
* withSelector: "key=value",
|
|
151
|
+
* });
|
|
152
|
+
* ```
|
|
153
|
+
*/
|
|
136
154
|
export declare function getServerOutput(args?: GetServerOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetServerResult>;
|
|
137
155
|
/**
|
|
138
156
|
* A collection of arguments for invoking getServer.
|
package/getServer.js
CHANGED
|
@@ -12,23 +12,20 @@ const utilities = require("./utilities");
|
|
|
12
12
|
* import * as pulumi from "@pulumi/pulumi";
|
|
13
13
|
* import * as hcloud from "@pulumi/hcloud";
|
|
14
14
|
*
|
|
15
|
-
* const s1 =
|
|
15
|
+
* const s1 = hcloud.getServer({
|
|
16
16
|
* name: "my-server",
|
|
17
|
-
* })
|
|
18
|
-
* const s2 =
|
|
17
|
+
* });
|
|
18
|
+
* const s2 = hcloud.getServer({
|
|
19
19
|
* id: 123,
|
|
20
|
-
* })
|
|
21
|
-
* const s3 =
|
|
20
|
+
* });
|
|
21
|
+
* const s3 = hcloud.getServer({
|
|
22
22
|
* withSelector: "key=value",
|
|
23
|
-
* })
|
|
23
|
+
* });
|
|
24
24
|
* ```
|
|
25
25
|
*/
|
|
26
26
|
function getServer(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/getServer:getServer", {
|
|
33
30
|
"id": args.id,
|
|
34
31
|
"name": args.name,
|
|
@@ -39,8 +36,26 @@ function getServer(args, opts) {
|
|
|
39
36
|
}, opts);
|
|
40
37
|
}
|
|
41
38
|
exports.getServer = getServer;
|
|
39
|
+
/**
|
|
40
|
+
* ## Example Usage
|
|
41
|
+
*
|
|
42
|
+
* ```typescript
|
|
43
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
44
|
+
* import * as hcloud from "@pulumi/hcloud";
|
|
45
|
+
*
|
|
46
|
+
* const s1 = hcloud.getServer({
|
|
47
|
+
* name: "my-server",
|
|
48
|
+
* });
|
|
49
|
+
* const s2 = hcloud.getServer({
|
|
50
|
+
* id: 123,
|
|
51
|
+
* });
|
|
52
|
+
* const s3 = hcloud.getServer({
|
|
53
|
+
* withSelector: "key=value",
|
|
54
|
+
* });
|
|
55
|
+
* ```
|
|
56
|
+
*/
|
|
42
57
|
function getServerOutput(args, opts) {
|
|
43
|
-
return pulumi.output(args).apply(a => getServer(a, opts));
|
|
58
|
+
return pulumi.output(args).apply((a) => getServer(a, opts));
|
|
44
59
|
}
|
|
45
60
|
exports.getServerOutput = getServerOutput;
|
|
46
61
|
//# sourceMappingURL=getServer.js.map
|
package/getServer.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getServer.js","sourceRoot":"","sources":["../getServer.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,SAAS,CAAC,IAAoB,EAAE,IAA2B;IACvE,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"getServer.js","sourceRoot":"","sources":["../getServer.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,SAAS,CAAC,IAAoB,EAAE,IAA2B;IACvE,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,kCAAkC,EAAE;QAC7D,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,kBAAkB,EAAE,IAAI,CAAC,gBAAgB;QACzC,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,8BAYC;AAoHD;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,eAAe,CAAC,IAA0B,EAAE,IAA2B;IACnF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,SAAS,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACpE,CAAC;AAFD,0CAEC"}
|