@pulumi/hcloud 1.21.0 → 1.21.1
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/firewall.d.ts +1 -1
- package/firewall.js +1 -1
- package/floatingIp.d.ts +1 -1
- package/floatingIp.js +1 -1
- package/floatingIpAssignment.d.ts +1 -1
- package/floatingIpAssignment.js +1 -1
- package/getDatacenter.d.ts +24 -22
- package/getDatacenter.js +12 -10
- package/getDatacenter.js.map +1 -1
- package/getDatacenters.d.ts +13 -65
- package/getDatacenters.js +8 -18
- package/getDatacenters.js.map +1 -1
- package/getLoadBalancerType.d.ts +25 -23
- package/getLoadBalancerType.js +14 -12
- package/getLoadBalancerType.js.map +1 -1
- package/getLoadBalancerTypes.d.ts +2 -2
- package/getLocation.d.ts +26 -24
- package/getLocation.js +12 -10
- package/getLocation.js.map +1 -1
- package/getLocations.d.ts +10 -62
- package/getLocations.js +6 -16
- package/getLocations.js.map +1 -1
- package/getServerType.d.ts +42 -40
- package/getServerType.js +20 -10
- package/getServerType.js.map +1 -1
- package/getServerTypes.d.ts +26 -44
- package/getServerTypes.js +22 -16
- package/getServerTypes.js.map +1 -1
- package/getSshKey.d.ts +39 -41
- package/getSshKey.js +18 -22
- package/getSshKey.js.map +1 -1
- package/getSshKeys.d.ts +19 -10
- package/getSshKeys.js +6 -6
- package/getSshKeys.js.map +1 -1
- package/index.d.ts +3 -3
- package/loadBalancer.d.ts +1 -1
- package/loadBalancer.js +1 -1
- package/loadBalancerNetwork.d.ts +1 -1
- package/loadBalancerNetwork.js +1 -1
- package/loadBalancerService.d.ts +1 -1
- package/loadBalancerService.js +1 -1
- package/loadBalancerTarget.d.ts +3 -3
- package/loadBalancerTarget.js +3 -3
- package/managedCertificate.d.ts +20 -3
- package/managedCertificate.js +20 -3
- package/managedCertificate.js.map +1 -1
- package/network.d.ts +1 -1
- package/network.js +1 -1
- package/networkRoute.d.ts +1 -1
- package/networkRoute.js +1 -1
- package/networkSubnet.d.ts +1 -1
- package/networkSubnet.js +1 -1
- package/package.json +2 -2
- package/placementGroup.d.ts +1 -1
- package/placementGroup.js +1 -1
- package/primaryIp.d.ts +1 -1
- package/primaryIp.js +1 -1
- package/rdns.d.ts +4 -0
- package/rdns.js +4 -0
- package/rdns.js.map +1 -1
- package/server.d.ts +1 -1
- package/server.js +1 -1
- package/serverNetwork.d.ts +1 -1
- package/serverNetwork.js +1 -1
- package/snapshot.d.ts +1 -1
- package/snapshot.js +1 -1
- package/sshKey.d.ts +16 -19
- package/sshKey.js +5 -8
- package/sshKey.js.map +1 -1
- package/types/output.d.ts +103 -4
- package/uploadedCertificate.d.ts +28 -3
- package/uploadedCertificate.js +28 -3
- package/uploadedCertificate.js.map +1 -1
- package/volume.d.ts +1 -1
- package/volume.js +1 -1
- package/volumeAttachment.d.ts +1 -1
- package/volumeAttachment.js +1 -1
package/getLocation.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
3
|
* Provides details about a specific Hetzner Cloud Location.
|
|
4
|
-
*
|
|
4
|
+
*
|
|
5
|
+
* Use this resource to get detailed information about a specific Location.
|
|
5
6
|
*
|
|
6
7
|
* ## Example Usage
|
|
7
8
|
*
|
|
@@ -9,12 +10,12 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
9
10
|
* import * as pulumi from "@pulumi/pulumi";
|
|
10
11
|
* import * as hcloud from "@pulumi/hcloud";
|
|
11
12
|
*
|
|
12
|
-
* const
|
|
13
|
-
* name: "fsn1",
|
|
14
|
-
* });
|
|
15
|
-
* const l2 = hcloud.getLocation({
|
|
13
|
+
* const byId = hcloud.getLocation({
|
|
16
14
|
* id: 1,
|
|
17
15
|
* });
|
|
16
|
+
* const byName = hcloud.getLocation({
|
|
17
|
+
* name: "fsn1",
|
|
18
|
+
* });
|
|
18
19
|
* ```
|
|
19
20
|
*/
|
|
20
21
|
export declare function getLocation(args?: GetLocationArgs, opts?: pulumi.InvokeOptions): Promise<GetLocationResult>;
|
|
@@ -23,11 +24,11 @@ export declare function getLocation(args?: GetLocationArgs, opts?: pulumi.Invoke
|
|
|
23
24
|
*/
|
|
24
25
|
export interface GetLocationArgs {
|
|
25
26
|
/**
|
|
26
|
-
* ID of the
|
|
27
|
+
* ID of the Location.
|
|
27
28
|
*/
|
|
28
29
|
id?: number;
|
|
29
30
|
/**
|
|
30
|
-
* Name of the
|
|
31
|
+
* Name of the Location.
|
|
31
32
|
*/
|
|
32
33
|
name?: string;
|
|
33
34
|
}
|
|
@@ -36,41 +37,42 @@ export interface GetLocationArgs {
|
|
|
36
37
|
*/
|
|
37
38
|
export interface GetLocationResult {
|
|
38
39
|
/**
|
|
39
|
-
*
|
|
40
|
+
* Name of the closest city to the Location. City name and optionally state in short form.
|
|
40
41
|
*/
|
|
41
42
|
readonly city: string;
|
|
42
43
|
/**
|
|
43
|
-
*
|
|
44
|
+
* Country the Location resides in. ISO 3166-1 alpha-2 code of the country.
|
|
44
45
|
*/
|
|
45
46
|
readonly country: string;
|
|
46
47
|
/**
|
|
47
|
-
*
|
|
48
|
+
* Description of the Location.
|
|
48
49
|
*/
|
|
49
50
|
readonly description: string;
|
|
50
51
|
/**
|
|
51
|
-
*
|
|
52
|
+
* ID of the Location.
|
|
52
53
|
*/
|
|
53
|
-
readonly id
|
|
54
|
+
readonly id?: number;
|
|
54
55
|
/**
|
|
55
|
-
*
|
|
56
|
+
* Latitude of the city closest to the Location.
|
|
56
57
|
*/
|
|
57
58
|
readonly latitude: number;
|
|
58
59
|
/**
|
|
59
|
-
*
|
|
60
|
+
* Longitude of the city closest to the Location.
|
|
60
61
|
*/
|
|
61
62
|
readonly longitude: number;
|
|
62
63
|
/**
|
|
63
|
-
*
|
|
64
|
+
* Name of the Location.
|
|
64
65
|
*/
|
|
65
|
-
readonly name
|
|
66
|
+
readonly name?: string;
|
|
66
67
|
/**
|
|
67
|
-
*
|
|
68
|
+
* Name of the Network Zone this Location resides in.
|
|
68
69
|
*/
|
|
69
70
|
readonly networkZone: string;
|
|
70
71
|
}
|
|
71
72
|
/**
|
|
72
73
|
* Provides details about a specific Hetzner Cloud Location.
|
|
73
|
-
*
|
|
74
|
+
*
|
|
75
|
+
* Use this resource to get detailed information about a specific Location.
|
|
74
76
|
*
|
|
75
77
|
* ## Example Usage
|
|
76
78
|
*
|
|
@@ -78,12 +80,12 @@ export interface GetLocationResult {
|
|
|
78
80
|
* import * as pulumi from "@pulumi/pulumi";
|
|
79
81
|
* import * as hcloud from "@pulumi/hcloud";
|
|
80
82
|
*
|
|
81
|
-
* const
|
|
82
|
-
* name: "fsn1",
|
|
83
|
-
* });
|
|
84
|
-
* const l2 = hcloud.getLocation({
|
|
83
|
+
* const byId = hcloud.getLocation({
|
|
85
84
|
* id: 1,
|
|
86
85
|
* });
|
|
86
|
+
* const byName = hcloud.getLocation({
|
|
87
|
+
* name: "fsn1",
|
|
88
|
+
* });
|
|
87
89
|
* ```
|
|
88
90
|
*/
|
|
89
91
|
export declare function getLocationOutput(args?: GetLocationOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetLocationResult>;
|
|
@@ -92,11 +94,11 @@ export declare function getLocationOutput(args?: GetLocationOutputArgs, opts?: p
|
|
|
92
94
|
*/
|
|
93
95
|
export interface GetLocationOutputArgs {
|
|
94
96
|
/**
|
|
95
|
-
* ID of the
|
|
97
|
+
* ID of the Location.
|
|
96
98
|
*/
|
|
97
99
|
id?: pulumi.Input<number>;
|
|
98
100
|
/**
|
|
99
|
-
* Name of the
|
|
101
|
+
* Name of the Location.
|
|
100
102
|
*/
|
|
101
103
|
name?: pulumi.Input<string>;
|
|
102
104
|
}
|
package/getLocation.js
CHANGED
|
@@ -7,7 +7,8 @@ const pulumi = require("@pulumi/pulumi");
|
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
9
|
* Provides details about a specific Hetzner Cloud Location.
|
|
10
|
-
*
|
|
10
|
+
*
|
|
11
|
+
* Use this resource to get detailed information about a specific Location.
|
|
11
12
|
*
|
|
12
13
|
* ## Example Usage
|
|
13
14
|
*
|
|
@@ -15,12 +16,12 @@ const utilities = require("./utilities");
|
|
|
15
16
|
* import * as pulumi from "@pulumi/pulumi";
|
|
16
17
|
* import * as hcloud from "@pulumi/hcloud";
|
|
17
18
|
*
|
|
18
|
-
* const
|
|
19
|
-
* name: "fsn1",
|
|
20
|
-
* });
|
|
21
|
-
* const l2 = hcloud.getLocation({
|
|
19
|
+
* const byId = hcloud.getLocation({
|
|
22
20
|
* id: 1,
|
|
23
21
|
* });
|
|
22
|
+
* const byName = hcloud.getLocation({
|
|
23
|
+
* name: "fsn1",
|
|
24
|
+
* });
|
|
24
25
|
* ```
|
|
25
26
|
*/
|
|
26
27
|
function getLocation(args, opts) {
|
|
@@ -34,7 +35,8 @@ function getLocation(args, opts) {
|
|
|
34
35
|
exports.getLocation = getLocation;
|
|
35
36
|
/**
|
|
36
37
|
* Provides details about a specific Hetzner Cloud Location.
|
|
37
|
-
*
|
|
38
|
+
*
|
|
39
|
+
* Use this resource to get detailed information about a specific Location.
|
|
38
40
|
*
|
|
39
41
|
* ## Example Usage
|
|
40
42
|
*
|
|
@@ -42,12 +44,12 @@ exports.getLocation = getLocation;
|
|
|
42
44
|
* import * as pulumi from "@pulumi/pulumi";
|
|
43
45
|
* import * as hcloud from "@pulumi/hcloud";
|
|
44
46
|
*
|
|
45
|
-
* const
|
|
46
|
-
* name: "fsn1",
|
|
47
|
-
* });
|
|
48
|
-
* const l2 = hcloud.getLocation({
|
|
47
|
+
* const byId = hcloud.getLocation({
|
|
49
48
|
* id: 1,
|
|
50
49
|
* });
|
|
50
|
+
* const byName = hcloud.getLocation({
|
|
51
|
+
* name: "fsn1",
|
|
52
|
+
* });
|
|
51
53
|
* ```
|
|
52
54
|
*/
|
|
53
55
|
function getLocationOutput(args, opts) {
|
package/getLocation.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getLocation.js","sourceRoot":"","sources":["../getLocation.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"getLocation.js","sourceRoot":"","sources":["../getLocation.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;GAkBG;AACH,SAAgB,WAAW,CAAC,IAAsB,EAAE,IAA2B;IAC3E,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,sCAAsC,EAAE;QACjE,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,kCAOC;AAqDD;;;;;;;;;;;;;;;;;;GAkBG;AACH,SAAgB,iBAAiB,CAAC,IAA4B,EAAE,IAA2B;IACvF,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,sCAAsC,EAAE;QACvE,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,8CAOC"}
|
package/getLocations.d.ts
CHANGED
|
@@ -2,87 +2,35 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
import * as outputs from "./types/output";
|
|
3
3
|
/**
|
|
4
4
|
* Provides a list of available Hetzner Cloud Locations.
|
|
5
|
+
*
|
|
5
6
|
* This resource may be useful to create highly available infrastructure, distributed across several locations.
|
|
6
7
|
*/
|
|
7
|
-
export declare function getLocations(
|
|
8
|
-
/**
|
|
9
|
-
* A collection of arguments for invoking getLocations.
|
|
10
|
-
*/
|
|
11
|
-
export interface GetLocationsArgs {
|
|
12
|
-
/**
|
|
13
|
-
* (list) List of all location descriptions. **Deprecated**: Use `locations` attribute instead.
|
|
14
|
-
*
|
|
15
|
-
* @deprecated Use locations list instead
|
|
16
|
-
*/
|
|
17
|
-
descriptions?: string[];
|
|
18
|
-
id?: string;
|
|
19
|
-
/**
|
|
20
|
-
* (list) List of unique location identifiers. **Deprecated**: Use `locations` attribute instead.
|
|
21
|
-
*
|
|
22
|
-
* @deprecated Use locations list instead
|
|
23
|
-
*/
|
|
24
|
-
locationIds?: string[];
|
|
25
|
-
/**
|
|
26
|
-
* (list) List of location names. **Deprecated**: Use `locations` attribute instead.
|
|
27
|
-
*
|
|
28
|
-
* @deprecated Use locations list instead
|
|
29
|
-
*/
|
|
30
|
-
names?: string[];
|
|
31
|
-
}
|
|
8
|
+
export declare function getLocations(opts?: pulumi.InvokeOptions): Promise<GetLocationsResult>;
|
|
32
9
|
/**
|
|
33
10
|
* A collection of values returned by getLocations.
|
|
34
11
|
*/
|
|
35
12
|
export interface GetLocationsResult {
|
|
36
13
|
/**
|
|
37
|
-
* (list) List of all location descriptions. **Deprecated**: Use `locations` attribute instead.
|
|
38
|
-
*
|
|
39
14
|
* @deprecated Use locations list instead
|
|
40
15
|
*/
|
|
41
|
-
readonly descriptions
|
|
42
|
-
readonly id?: string;
|
|
16
|
+
readonly descriptions: string[];
|
|
43
17
|
/**
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
* @deprecated Use locations list instead
|
|
18
|
+
* The ID of this resource.
|
|
47
19
|
*/
|
|
48
|
-
readonly
|
|
20
|
+
readonly id: string;
|
|
49
21
|
/**
|
|
50
|
-
*
|
|
22
|
+
* @deprecated Use locations list instead
|
|
51
23
|
*/
|
|
24
|
+
readonly locationIds: string[];
|
|
52
25
|
readonly locations: outputs.GetLocationsLocation[];
|
|
53
26
|
/**
|
|
54
|
-
* (list) List of location names. **Deprecated**: Use `locations` attribute instead.
|
|
55
|
-
*
|
|
56
27
|
* @deprecated Use locations list instead
|
|
57
28
|
*/
|
|
58
|
-
readonly names
|
|
29
|
+
readonly names: string[];
|
|
59
30
|
}
|
|
60
31
|
/**
|
|
61
32
|
* Provides a list of available Hetzner Cloud Locations.
|
|
33
|
+
*
|
|
62
34
|
* This resource may be useful to create highly available infrastructure, distributed across several locations.
|
|
63
35
|
*/
|
|
64
|
-
export declare function getLocationsOutput(
|
|
65
|
-
/**
|
|
66
|
-
* A collection of arguments for invoking getLocations.
|
|
67
|
-
*/
|
|
68
|
-
export interface GetLocationsOutputArgs {
|
|
69
|
-
/**
|
|
70
|
-
* (list) List of all location descriptions. **Deprecated**: Use `locations` attribute instead.
|
|
71
|
-
*
|
|
72
|
-
* @deprecated Use locations list instead
|
|
73
|
-
*/
|
|
74
|
-
descriptions?: pulumi.Input<pulumi.Input<string>[]>;
|
|
75
|
-
id?: pulumi.Input<string>;
|
|
76
|
-
/**
|
|
77
|
-
* (list) List of unique location identifiers. **Deprecated**: Use `locations` attribute instead.
|
|
78
|
-
*
|
|
79
|
-
* @deprecated Use locations list instead
|
|
80
|
-
*/
|
|
81
|
-
locationIds?: pulumi.Input<pulumi.Input<string>[]>;
|
|
82
|
-
/**
|
|
83
|
-
* (list) List of location names. **Deprecated**: Use `locations` attribute instead.
|
|
84
|
-
*
|
|
85
|
-
* @deprecated Use locations list instead
|
|
86
|
-
*/
|
|
87
|
-
names?: pulumi.Input<pulumi.Input<string>[]>;
|
|
88
|
-
}
|
|
36
|
+
export declare function getLocationsOutput(opts?: pulumi.InvokeOptions): pulumi.Output<GetLocationsResult>;
|
package/getLocations.js
CHANGED
|
@@ -7,32 +7,22 @@ const pulumi = require("@pulumi/pulumi");
|
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
9
|
* Provides a list of available Hetzner Cloud Locations.
|
|
10
|
+
*
|
|
10
11
|
* This resource may be useful to create highly available infrastructure, distributed across several locations.
|
|
11
12
|
*/
|
|
12
|
-
function getLocations(
|
|
13
|
-
args = args || {};
|
|
13
|
+
function getLocations(opts) {
|
|
14
14
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
15
|
-
return pulumi.runtime.invoke("hcloud:index/getLocations:getLocations", {
|
|
16
|
-
"descriptions": args.descriptions,
|
|
17
|
-
"id": args.id,
|
|
18
|
-
"locationIds": args.locationIds,
|
|
19
|
-
"names": args.names,
|
|
20
|
-
}, opts);
|
|
15
|
+
return pulumi.runtime.invoke("hcloud:index/getLocations:getLocations", {}, opts);
|
|
21
16
|
}
|
|
22
17
|
exports.getLocations = getLocations;
|
|
23
18
|
/**
|
|
24
19
|
* Provides a list of available Hetzner Cloud Locations.
|
|
20
|
+
*
|
|
25
21
|
* This resource may be useful to create highly available infrastructure, distributed across several locations.
|
|
26
22
|
*/
|
|
27
|
-
function getLocationsOutput(
|
|
28
|
-
args = args || {};
|
|
23
|
+
function getLocationsOutput(opts) {
|
|
29
24
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
30
|
-
return pulumi.runtime.invokeOutput("hcloud:index/getLocations:getLocations", {
|
|
31
|
-
"descriptions": args.descriptions,
|
|
32
|
-
"id": args.id,
|
|
33
|
-
"locationIds": args.locationIds,
|
|
34
|
-
"names": args.names,
|
|
35
|
-
}, opts);
|
|
25
|
+
return pulumi.runtime.invokeOutput("hcloud:index/getLocations:getLocations", {}, opts);
|
|
36
26
|
}
|
|
37
27
|
exports.getLocationsOutput = getLocationsOutput;
|
|
38
28
|
//# sourceMappingURL=getLocations.js.map
|
package/getLocations.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getLocations.js","sourceRoot":"","sources":["../getLocations.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"getLocations.js","sourceRoot":"","sources":["../getLocations.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;GAIG;AACH,SAAgB,YAAY,CAAC,IAA2B;IACpD,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,EACtE,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAJD,oCAIC;AAwBD;;;;GAIG;AACH,SAAgB,kBAAkB,CAAC,IAA2B;IAC1D,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,wCAAwC,EAAE,EAC5E,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAJD,gDAIC"}
|
package/getServerType.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
3
|
* Provides details about a specific Hetzner Cloud Server Type.
|
|
4
|
+
*
|
|
4
5
|
* Use this resource to get detailed information about specific Server Type.
|
|
5
6
|
*
|
|
6
7
|
* ## Example Usage
|
|
@@ -9,11 +10,17 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
9
10
|
* import * as pulumi from "@pulumi/pulumi";
|
|
10
11
|
* import * as hcloud from "@pulumi/hcloud";
|
|
11
12
|
*
|
|
12
|
-
* const
|
|
13
|
+
* const byId = hcloud.getServerType({
|
|
14
|
+
* id: 22,
|
|
15
|
+
* });
|
|
16
|
+
* const byName = hcloud.getServerType({
|
|
13
17
|
* name: "cx22",
|
|
14
18
|
* });
|
|
15
|
-
* const
|
|
16
|
-
*
|
|
19
|
+
* const main = new hcloud.Server("main", {
|
|
20
|
+
* name: "my-server",
|
|
21
|
+
* location: "fsn1",
|
|
22
|
+
* image: "debian-12",
|
|
23
|
+
* serverType: byName.then(byName => byName.name),
|
|
17
24
|
* });
|
|
18
25
|
* ```
|
|
19
26
|
*/
|
|
@@ -23,77 +30,74 @@ export declare function getServerType(args?: GetServerTypeArgs, opts?: pulumi.In
|
|
|
23
30
|
*/
|
|
24
31
|
export interface GetServerTypeArgs {
|
|
25
32
|
/**
|
|
26
|
-
*
|
|
27
|
-
*/
|
|
28
|
-
deprecationAnnounced?: string;
|
|
29
|
-
/**
|
|
30
|
-
* ID of the server_type.
|
|
33
|
+
* ID of the Server Type.
|
|
31
34
|
*/
|
|
32
35
|
id?: number;
|
|
33
36
|
/**
|
|
34
|
-
* Name of the
|
|
37
|
+
* Name of the Server Type.
|
|
35
38
|
*/
|
|
36
39
|
name?: string;
|
|
37
|
-
/**
|
|
38
|
-
* (Optional, string) Date when the server type will not be available for new servers. Only set when the server type is deprecated.
|
|
39
|
-
*/
|
|
40
|
-
unavailableAfter?: string;
|
|
41
40
|
}
|
|
42
41
|
/**
|
|
43
42
|
* A collection of values returned by getServerType.
|
|
44
43
|
*/
|
|
45
44
|
export interface GetServerTypeResult {
|
|
46
45
|
/**
|
|
47
|
-
*
|
|
46
|
+
* Architecture of the cpu for a Server of this type.
|
|
48
47
|
*/
|
|
49
48
|
readonly architecture: string;
|
|
50
49
|
/**
|
|
51
|
-
*
|
|
50
|
+
* Number of cpu cores for a Server of this type.
|
|
52
51
|
*/
|
|
53
52
|
readonly cores: number;
|
|
53
|
+
/**
|
|
54
|
+
* Type of cpu for a Server of this type.
|
|
55
|
+
*/
|
|
54
56
|
readonly cpuType: string;
|
|
55
57
|
/**
|
|
56
|
-
*
|
|
58
|
+
* Date of the Server Type deprecation announcement.
|
|
57
59
|
*/
|
|
58
60
|
readonly deprecationAnnounced: string;
|
|
59
61
|
/**
|
|
60
|
-
*
|
|
62
|
+
* Description of the Server Type.
|
|
61
63
|
*/
|
|
62
64
|
readonly description: string;
|
|
63
65
|
/**
|
|
64
|
-
*
|
|
66
|
+
* Disk size in GB for a Server of this type.
|
|
65
67
|
*/
|
|
66
68
|
readonly disk: number;
|
|
67
69
|
/**
|
|
68
|
-
*
|
|
70
|
+
* ID of the Server Type.
|
|
69
71
|
*/
|
|
70
|
-
readonly id
|
|
72
|
+
readonly id?: number;
|
|
71
73
|
/**
|
|
72
|
-
* (int) Free traffic per month in bytes. **Warning**: This field is deprecated and will report `0` after 2024-08-05.
|
|
73
|
-
*
|
|
74
74
|
* @deprecated The field is deprecated and will always report 0 after 2024-08-05.
|
|
75
75
|
*/
|
|
76
76
|
readonly includedTraffic: number;
|
|
77
77
|
/**
|
|
78
|
-
*
|
|
78
|
+
* Whether the Server Type is deprecated.
|
|
79
79
|
*/
|
|
80
80
|
readonly isDeprecated: boolean;
|
|
81
81
|
/**
|
|
82
|
-
*
|
|
82
|
+
* Memory in GB for a Server of this type.
|
|
83
83
|
*/
|
|
84
84
|
readonly memory: number;
|
|
85
85
|
/**
|
|
86
|
-
*
|
|
86
|
+
* Name of the Server Type.
|
|
87
|
+
*/
|
|
88
|
+
readonly name?: string;
|
|
89
|
+
/**
|
|
90
|
+
* Type of boot drive for a Server of this type.
|
|
87
91
|
*/
|
|
88
|
-
readonly name: string;
|
|
89
92
|
readonly storageType: string;
|
|
90
93
|
/**
|
|
91
|
-
*
|
|
94
|
+
* Date of the Server Type removal. After this date, the Server Type cannot be used anymore.
|
|
92
95
|
*/
|
|
93
96
|
readonly unavailableAfter: string;
|
|
94
97
|
}
|
|
95
98
|
/**
|
|
96
99
|
* Provides details about a specific Hetzner Cloud Server Type.
|
|
100
|
+
*
|
|
97
101
|
* Use this resource to get detailed information about specific Server Type.
|
|
98
102
|
*
|
|
99
103
|
* ## Example Usage
|
|
@@ -102,11 +106,17 @@ export interface GetServerTypeResult {
|
|
|
102
106
|
* import * as pulumi from "@pulumi/pulumi";
|
|
103
107
|
* import * as hcloud from "@pulumi/hcloud";
|
|
104
108
|
*
|
|
105
|
-
* const
|
|
109
|
+
* const byId = hcloud.getServerType({
|
|
110
|
+
* id: 22,
|
|
111
|
+
* });
|
|
112
|
+
* const byName = hcloud.getServerType({
|
|
106
113
|
* name: "cx22",
|
|
107
114
|
* });
|
|
108
|
-
* const
|
|
109
|
-
*
|
|
115
|
+
* const main = new hcloud.Server("main", {
|
|
116
|
+
* name: "my-server",
|
|
117
|
+
* location: "fsn1",
|
|
118
|
+
* image: "debian-12",
|
|
119
|
+
* serverType: byName.then(byName => byName.name),
|
|
110
120
|
* });
|
|
111
121
|
* ```
|
|
112
122
|
*/
|
|
@@ -116,19 +126,11 @@ export declare function getServerTypeOutput(args?: GetServerTypeOutputArgs, opts
|
|
|
116
126
|
*/
|
|
117
127
|
export interface GetServerTypeOutputArgs {
|
|
118
128
|
/**
|
|
119
|
-
*
|
|
120
|
-
*/
|
|
121
|
-
deprecationAnnounced?: pulumi.Input<string>;
|
|
122
|
-
/**
|
|
123
|
-
* ID of the server_type.
|
|
129
|
+
* ID of the Server Type.
|
|
124
130
|
*/
|
|
125
131
|
id?: pulumi.Input<number>;
|
|
126
132
|
/**
|
|
127
|
-
* Name of the
|
|
133
|
+
* Name of the Server Type.
|
|
128
134
|
*/
|
|
129
135
|
name?: pulumi.Input<string>;
|
|
130
|
-
/**
|
|
131
|
-
* (Optional, string) Date when the server type will not be available for new servers. Only set when the server type is deprecated.
|
|
132
|
-
*/
|
|
133
|
-
unavailableAfter?: pulumi.Input<string>;
|
|
134
136
|
}
|
package/getServerType.js
CHANGED
|
@@ -7,6 +7,7 @@ const pulumi = require("@pulumi/pulumi");
|
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
9
|
* Provides details about a specific Hetzner Cloud Server Type.
|
|
10
|
+
*
|
|
10
11
|
* Use this resource to get detailed information about specific Server Type.
|
|
11
12
|
*
|
|
12
13
|
* ## Example Usage
|
|
@@ -15,11 +16,17 @@ const utilities = require("./utilities");
|
|
|
15
16
|
* import * as pulumi from "@pulumi/pulumi";
|
|
16
17
|
* import * as hcloud from "@pulumi/hcloud";
|
|
17
18
|
*
|
|
18
|
-
* const
|
|
19
|
+
* const byId = hcloud.getServerType({
|
|
20
|
+
* id: 22,
|
|
21
|
+
* });
|
|
22
|
+
* const byName = hcloud.getServerType({
|
|
19
23
|
* name: "cx22",
|
|
20
24
|
* });
|
|
21
|
-
* const
|
|
22
|
-
*
|
|
25
|
+
* const main = new hcloud.Server("main", {
|
|
26
|
+
* name: "my-server",
|
|
27
|
+
* location: "fsn1",
|
|
28
|
+
* image: "debian-12",
|
|
29
|
+
* serverType: byName.then(byName => byName.name),
|
|
23
30
|
* });
|
|
24
31
|
* ```
|
|
25
32
|
*/
|
|
@@ -27,15 +34,14 @@ function getServerType(args, opts) {
|
|
|
27
34
|
args = args || {};
|
|
28
35
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
29
36
|
return pulumi.runtime.invoke("hcloud:index/getServerType:getServerType", {
|
|
30
|
-
"deprecationAnnounced": args.deprecationAnnounced,
|
|
31
37
|
"id": args.id,
|
|
32
38
|
"name": args.name,
|
|
33
|
-
"unavailableAfter": args.unavailableAfter,
|
|
34
39
|
}, opts);
|
|
35
40
|
}
|
|
36
41
|
exports.getServerType = getServerType;
|
|
37
42
|
/**
|
|
38
43
|
* Provides details about a specific Hetzner Cloud Server Type.
|
|
44
|
+
*
|
|
39
45
|
* Use this resource to get detailed information about specific Server Type.
|
|
40
46
|
*
|
|
41
47
|
* ## Example Usage
|
|
@@ -44,11 +50,17 @@ exports.getServerType = getServerType;
|
|
|
44
50
|
* import * as pulumi from "@pulumi/pulumi";
|
|
45
51
|
* import * as hcloud from "@pulumi/hcloud";
|
|
46
52
|
*
|
|
47
|
-
* const
|
|
53
|
+
* const byId = hcloud.getServerType({
|
|
54
|
+
* id: 22,
|
|
55
|
+
* });
|
|
56
|
+
* const byName = hcloud.getServerType({
|
|
48
57
|
* name: "cx22",
|
|
49
58
|
* });
|
|
50
|
-
* const
|
|
51
|
-
*
|
|
59
|
+
* const main = new hcloud.Server("main", {
|
|
60
|
+
* name: "my-server",
|
|
61
|
+
* location: "fsn1",
|
|
62
|
+
* image: "debian-12",
|
|
63
|
+
* serverType: byName.then(byName => byName.name),
|
|
52
64
|
* });
|
|
53
65
|
* ```
|
|
54
66
|
*/
|
|
@@ -56,10 +68,8 @@ function getServerTypeOutput(args, opts) {
|
|
|
56
68
|
args = args || {};
|
|
57
69
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
58
70
|
return pulumi.runtime.invokeOutput("hcloud:index/getServerType:getServerType", {
|
|
59
|
-
"deprecationAnnounced": args.deprecationAnnounced,
|
|
60
71
|
"id": args.id,
|
|
61
72
|
"name": args.name,
|
|
62
|
-
"unavailableAfter": args.unavailableAfter,
|
|
63
73
|
}, opts);
|
|
64
74
|
}
|
|
65
75
|
exports.getServerTypeOutput = getServerTypeOutput;
|
package/getServerType.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getServerType.js","sourceRoot":"","sources":["../getServerType.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"getServerType.js","sourceRoot":"","sources":["../getServerType.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,SAAgB,aAAa,CAAC,IAAwB,EAAE,IAA2B;IAC/E,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,0CAA0C,EAAE;QACrE,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,sCAOC;AAyED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,SAAgB,mBAAmB,CAAC,IAA8B,EAAE,IAA2B;IAC3F,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,0CAA0C,EAAE;QAC3E,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,kDAOC"}
|
package/getServerTypes.d.ts
CHANGED
|
@@ -2,26 +2,17 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
import * as outputs from "./types/output";
|
|
3
3
|
/**
|
|
4
4
|
* Provides a list of available Hetzner Cloud Server Types.
|
|
5
|
+
*
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
+
* import * as hcloud from "@pulumi/hcloud";
|
|
11
|
+
*
|
|
12
|
+
* const all = hcloud.getServerTypes({});
|
|
13
|
+
* ```
|
|
5
14
|
*/
|
|
6
|
-
export declare function getServerTypes(
|
|
7
|
-
/**
|
|
8
|
-
* A collection of arguments for invoking getServerTypes.
|
|
9
|
-
*/
|
|
10
|
-
export interface GetServerTypesArgs {
|
|
11
|
-
/**
|
|
12
|
-
* @deprecated Use serverTypes list instead
|
|
13
|
-
*/
|
|
14
|
-
descriptions?: string[];
|
|
15
|
-
id?: string;
|
|
16
|
-
/**
|
|
17
|
-
* @deprecated Use serverTypes list instead
|
|
18
|
-
*/
|
|
19
|
-
names?: string[];
|
|
20
|
-
/**
|
|
21
|
-
* @deprecated Use serverTypes list instead
|
|
22
|
-
*/
|
|
23
|
-
serverTypeIds?: string[];
|
|
24
|
-
}
|
|
15
|
+
export declare function getServerTypes(opts?: pulumi.InvokeOptions): Promise<GetServerTypesResult>;
|
|
25
16
|
/**
|
|
26
17
|
* A collection of values returned by getServerTypes.
|
|
27
18
|
*/
|
|
@@ -29,40 +20,31 @@ export interface GetServerTypesResult {
|
|
|
29
20
|
/**
|
|
30
21
|
* @deprecated Use serverTypes list instead
|
|
31
22
|
*/
|
|
32
|
-
readonly descriptions
|
|
33
|
-
readonly id?: string;
|
|
23
|
+
readonly descriptions: string[];
|
|
34
24
|
/**
|
|
35
|
-
*
|
|
25
|
+
* The ID of this resource.
|
|
36
26
|
*/
|
|
37
|
-
readonly
|
|
27
|
+
readonly id: string;
|
|
38
28
|
/**
|
|
39
29
|
* @deprecated Use serverTypes list instead
|
|
40
30
|
*/
|
|
41
|
-
readonly
|
|
31
|
+
readonly names: string[];
|
|
42
32
|
/**
|
|
43
|
-
*
|
|
33
|
+
* @deprecated Use serverTypes list instead
|
|
44
34
|
*/
|
|
35
|
+
readonly serverTypeIds: string[];
|
|
45
36
|
readonly serverTypes: outputs.GetServerTypesServerType[];
|
|
46
37
|
}
|
|
47
38
|
/**
|
|
48
39
|
* Provides a list of available Hetzner Cloud Server Types.
|
|
40
|
+
*
|
|
41
|
+
* ## Example Usage
|
|
42
|
+
*
|
|
43
|
+
* ```typescript
|
|
44
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
45
|
+
* import * as hcloud from "@pulumi/hcloud";
|
|
46
|
+
*
|
|
47
|
+
* const all = hcloud.getServerTypes({});
|
|
48
|
+
* ```
|
|
49
49
|
*/
|
|
50
|
-
export declare function getServerTypesOutput(
|
|
51
|
-
/**
|
|
52
|
-
* A collection of arguments for invoking getServerTypes.
|
|
53
|
-
*/
|
|
54
|
-
export interface GetServerTypesOutputArgs {
|
|
55
|
-
/**
|
|
56
|
-
* @deprecated Use serverTypes list instead
|
|
57
|
-
*/
|
|
58
|
-
descriptions?: pulumi.Input<pulumi.Input<string>[]>;
|
|
59
|
-
id?: pulumi.Input<string>;
|
|
60
|
-
/**
|
|
61
|
-
* @deprecated Use serverTypes list instead
|
|
62
|
-
*/
|
|
63
|
-
names?: pulumi.Input<pulumi.Input<string>[]>;
|
|
64
|
-
/**
|
|
65
|
-
* @deprecated Use serverTypes list instead
|
|
66
|
-
*/
|
|
67
|
-
serverTypeIds?: pulumi.Input<pulumi.Input<string>[]>;
|
|
68
|
-
}
|
|
50
|
+
export declare function getServerTypesOutput(opts?: pulumi.InvokeOptions): pulumi.Output<GetServerTypesResult>;
|