@upcloud/pulumi-upcloud 0.0.5
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/LICENSE +202 -0
- package/README.md +61 -0
- package/config/index.d.ts +1 -0
- package/config/index.js +21 -0
- package/config/index.js.map +1 -0
- package/config/vars.d.ts +25 -0
- package/config/vars.js +43 -0
- package/config/vars.js.map +1 -0
- package/floatingIpAddress.d.ts +128 -0
- package/floatingIpAddress.js +90 -0
- package/floatingIpAddress.js.map +1 -0
- package/gateway.d.ts +206 -0
- package/gateway.js +111 -0
- package/gateway.js.map +1 -0
- package/gatewayConnection.d.ts +157 -0
- package/gatewayConnection.js +105 -0
- package/gatewayConnection.js.map +1 -0
- package/gatewayConnectionTunnel.d.ts +129 -0
- package/gatewayConnectionTunnel.js +78 -0
- package/gatewayConnectionTunnel.js.map +1 -0
- package/getHosts.d.ts +55 -0
- package/getHosts.js +52 -0
- package/getHosts.js.map +1 -0
- package/getIpAddresses.d.ts +51 -0
- package/getIpAddresses.js +48 -0
- package/getIpAddresses.js.map +1 -0
- package/getKubernetesCluster.d.ts +33 -0
- package/getKubernetesCluster.js +28 -0
- package/getKubernetesCluster.js.map +1 -0
- package/getLoadBalancerDnsChallengeDomain.d.ts +40 -0
- package/getLoadBalancerDnsChallengeDomain.js +42 -0
- package/getLoadBalancerDnsChallengeDomain.js.map +1 -0
- package/getManagedDatabaseMysqlSessions.d.ts +83 -0
- package/getManagedDatabaseMysqlSessions.js +74 -0
- package/getManagedDatabaseMysqlSessions.js.map +1 -0
- package/getManagedDatabaseOpensearchIndices.d.ts +82 -0
- package/getManagedDatabaseOpensearchIndices.js +76 -0
- package/getManagedDatabaseOpensearchIndices.js.map +1 -0
- package/getManagedDatabasePostgresqlSessions.d.ts +83 -0
- package/getManagedDatabasePostgresqlSessions.js +74 -0
- package/getManagedDatabasePostgresqlSessions.js.map +1 -0
- package/getManagedDatabaseRedisSessions.d.ts +87 -0
- package/getManagedDatabaseRedisSessions.js +78 -0
- package/getManagedDatabaseRedisSessions.js.map +1 -0
- package/getManagedDatabaseValkeySessions.d.ts +83 -0
- package/getManagedDatabaseValkeySessions.js +74 -0
- package/getManagedDatabaseValkeySessions.js.map +1 -0
- package/getManagedObjectStoragePolicies.d.ts +33 -0
- package/getManagedObjectStoragePolicies.js +28 -0
- package/getManagedObjectStoragePolicies.js.map +1 -0
- package/getManagedObjectStorageRegions.d.ts +33 -0
- package/getManagedObjectStorageRegions.js +30 -0
- package/getManagedObjectStorageRegions.js.map +1 -0
- package/getNetworks.d.ts +60 -0
- package/getNetworks.js +56 -0
- package/getNetworks.js.map +1 -0
- package/getStorage.d.ts +163 -0
- package/getStorage.js +122 -0
- package/getStorage.js.map +1 -0
- package/getTags.d.ts +20 -0
- package/getTags.js +24 -0
- package/getTags.js.map +1 -0
- package/getZone.d.ts +42 -0
- package/getZone.js +32 -0
- package/getZone.js.map +1 -0
- package/getZones.d.ts +29 -0
- package/getZones.js +30 -0
- package/getZones.js.map +1 -0
- package/index.d.ts +177 -0
- package/index.js +287 -0
- package/index.js.map +1 -0
- package/kubernetesCluster.d.ts +237 -0
- package/kubernetesCluster.js +131 -0
- package/kubernetesCluster.js.map +1 -0
- package/kubernetesNodeGroup.d.ts +243 -0
- package/kubernetesNodeGroup.js +120 -0
- package/kubernetesNodeGroup.js.map +1 -0
- package/loadbalancer.d.ts +261 -0
- package/loadbalancer.js +122 -0
- package/loadbalancer.js.map +1 -0
- package/loadbalancerBackend.d.ts +121 -0
- package/loadbalancerBackend.js +90 -0
- package/loadbalancerBackend.js.map +1 -0
- package/loadbalancerBackendTlsConfig.d.ts +75 -0
- package/loadbalancerBackendTlsConfig.js +62 -0
- package/loadbalancerBackendTlsConfig.js.map +1 -0
- package/loadbalancerDynamicBackendMember.d.ts +169 -0
- package/loadbalancerDynamicBackendMember.js +119 -0
- package/loadbalancerDynamicBackendMember.js.map +1 -0
- package/loadbalancerDynamicCertificateBundle.d.ts +114 -0
- package/loadbalancerDynamicCertificateBundle.js +83 -0
- package/loadbalancerDynamicCertificateBundle.js.map +1 -0
- package/loadbalancerFrontend.d.ts +184 -0
- package/loadbalancerFrontend.js +126 -0
- package/loadbalancerFrontend.js.map +1 -0
- package/loadbalancerFrontendRule.d.ts +170 -0
- package/loadbalancerFrontendRule.js +125 -0
- package/loadbalancerFrontendRule.js.map +1 -0
- package/loadbalancerFrontendTlsConfig.d.ts +114 -0
- package/loadbalancerFrontendTlsConfig.js +101 -0
- package/loadbalancerFrontendTlsConfig.js.map +1 -0
- package/loadbalancerManualCertificateBundle.d.ts +111 -0
- package/loadbalancerManualCertificateBundle.js +72 -0
- package/loadbalancerManualCertificateBundle.js.map +1 -0
- package/loadbalancerResolver.d.ts +171 -0
- package/loadbalancerResolver.js +120 -0
- package/loadbalancerResolver.js.map +1 -0
- package/loadbalancerStaticBackendMember.d.ts +156 -0
- package/loadbalancerStaticBackendMember.js +106 -0
- package/loadbalancerStaticBackendMember.js.map +1 -0
- package/managedDatabaseLogicalDatabase.d.ts +109 -0
- package/managedDatabaseLogicalDatabase.js +83 -0
- package/managedDatabaseLogicalDatabase.js.map +1 -0
- package/managedDatabaseMysql.d.ts +298 -0
- package/managedDatabaseMysql.js +139 -0
- package/managedDatabaseMysql.js.map +1 -0
- package/managedDatabaseOpensearch.d.ts +317 -0
- package/managedDatabaseOpensearch.js +132 -0
- package/managedDatabaseOpensearch.js.map +1 -0
- package/managedDatabasePostgresql.d.ts +295 -0
- package/managedDatabasePostgresql.js +130 -0
- package/managedDatabasePostgresql.js.map +1 -0
- package/managedDatabaseRedis.d.ts +287 -0
- package/managedDatabaseRedis.js +128 -0
- package/managedDatabaseRedis.js.map +1 -0
- package/managedDatabaseUser.d.ts +163 -0
- package/managedDatabaseUser.js +94 -0
- package/managedDatabaseUser.js.map +1 -0
- package/managedDatabaseValkey.d.ts +285 -0
- package/managedDatabaseValkey.js +126 -0
- package/managedDatabaseValkey.js.map +1 -0
- package/managedObjectStorage.d.ts +178 -0
- package/managedObjectStorage.js +107 -0
- package/managedObjectStorage.js.map +1 -0
- package/managedObjectStorageBucket.d.ts +94 -0
- package/managedObjectStorageBucket.js +76 -0
- package/managedObjectStorageBucket.js.map +1 -0
- package/managedObjectStorageCustomDomain.d.ts +105 -0
- package/managedObjectStorageCustomDomain.js +89 -0
- package/managedObjectStorageCustomDomain.js.map +1 -0
- package/managedObjectStoragePolicy.d.ts +155 -0
- package/managedObjectStoragePolicy.js +93 -0
- package/managedObjectStoragePolicy.js.map +1 -0
- package/managedObjectStorageUser.d.ts +101 -0
- package/managedObjectStorageUser.js +80 -0
- package/managedObjectStorageUser.js.map +1 -0
- package/managedObjectStorageUserAccessKey.d.ts +128 -0
- package/managedObjectStorageUserAccessKey.js +96 -0
- package/managedObjectStorageUserAccessKey.js.map +1 -0
- package/managedObjectStorageUserPolicy.d.ts +100 -0
- package/managedObjectStorageUserPolicy.js +87 -0
- package/managedObjectStorageUserPolicy.js.map +1 -0
- package/network.d.ts +142 -0
- package/network.js +95 -0
- package/network.js.map +1 -0
- package/networkPeering.d.ts +137 -0
- package/networkPeering.js +96 -0
- package/networkPeering.js.map +1 -0
- package/objectStorage.d.ts +196 -0
- package/objectStorage.js +132 -0
- package/objectStorage.js.map +1 -0
- package/package.json +29 -0
- package/provider.d.ts +60 -0
- package/provider.js +50 -0
- package/provider.js.map +1 -0
- package/router.d.ts +124 -0
- package/router.js +77 -0
- package/router.js.map +1 -0
- package/server.d.ts +332 -0
- package/server.js +106 -0
- package/server.js.map +1 -0
- package/serverFirewallRules.d.ts +124 -0
- package/serverFirewallRules.js +107 -0
- package/serverFirewallRules.js.map +1 -0
- package/serverGroup.d.ts +160 -0
- package/serverGroup.js +91 -0
- package/serverGroup.js.map +1 -0
- package/storage.d.ts +210 -0
- package/storage.js +91 -0
- package/storage.js.map +1 -0
- package/storageTemplate.d.ts +151 -0
- package/storageTemplate.js +90 -0
- package/storageTemplate.js.map +1 -0
- package/tag.d.ts +75 -0
- package/tag.js +56 -0
- package/tag.js.map +1 -0
- package/types/index.d.ts +3 -0
- package/types/index.js +11 -0
- package/types/index.js.map +1 -0
- package/types/input.d.ts +3721 -0
- package/types/input.js +5 -0
- package/types/input.js.map +1 -0
- package/types/output.d.ts +3459 -0
- package/types/output.js +5 -0
- package/types/output.js.map +1 -0
- package/utilities.d.ts +8 -0
- package/utilities.js +101 -0
- package/utilities.js.map +1 -0
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.getManagedDatabaseValkeySessionsOutput = exports.getManagedDatabaseValkeySessions = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Current sessions of a Valkey managed database
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as upcloud from "@pulumi/upcloud";
|
|
16
|
+
* import * as upcloud from "@upcloud/pulumi-upcloud";
|
|
17
|
+
*
|
|
18
|
+
* // Use data source to gather a list of the active sessions for a Managed Valkey Database
|
|
19
|
+
* // Create a Managed Valkey resource
|
|
20
|
+
* const exampleManagedDatabaseValkey = new upcloud.ManagedDatabaseValkey("exampleManagedDatabaseValkey", {
|
|
21
|
+
* title: "example",
|
|
22
|
+
* plan: "1x1xCPU-2GB",
|
|
23
|
+
* zone: "fi-hel2",
|
|
24
|
+
* });
|
|
25
|
+
* const exampleManagedDatabaseValkeySessions = upcloud.getManagedDatabaseValkeySessionsOutput({
|
|
26
|
+
* service: exampleManagedDatabaseValkey.id,
|
|
27
|
+
* });
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
function getManagedDatabaseValkeySessions(args, opts) {
|
|
31
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
32
|
+
return pulumi.runtime.invoke("upcloud:index/getManagedDatabaseValkeySessions:getManagedDatabaseValkeySessions", {
|
|
33
|
+
"limit": args.limit,
|
|
34
|
+
"offset": args.offset,
|
|
35
|
+
"order": args.order,
|
|
36
|
+
"service": args.service,
|
|
37
|
+
"sessions": args.sessions,
|
|
38
|
+
}, opts);
|
|
39
|
+
}
|
|
40
|
+
exports.getManagedDatabaseValkeySessions = getManagedDatabaseValkeySessions;
|
|
41
|
+
/**
|
|
42
|
+
* Current sessions of a Valkey managed database
|
|
43
|
+
*
|
|
44
|
+
* ## Example Usage
|
|
45
|
+
*
|
|
46
|
+
* ```typescript
|
|
47
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
48
|
+
* import * as upcloud from "@pulumi/upcloud";
|
|
49
|
+
* import * as upcloud from "@upcloud/pulumi-upcloud";
|
|
50
|
+
*
|
|
51
|
+
* // Use data source to gather a list of the active sessions for a Managed Valkey Database
|
|
52
|
+
* // Create a Managed Valkey resource
|
|
53
|
+
* const exampleManagedDatabaseValkey = new upcloud.ManagedDatabaseValkey("exampleManagedDatabaseValkey", {
|
|
54
|
+
* title: "example",
|
|
55
|
+
* plan: "1x1xCPU-2GB",
|
|
56
|
+
* zone: "fi-hel2",
|
|
57
|
+
* });
|
|
58
|
+
* const exampleManagedDatabaseValkeySessions = upcloud.getManagedDatabaseValkeySessionsOutput({
|
|
59
|
+
* service: exampleManagedDatabaseValkey.id,
|
|
60
|
+
* });
|
|
61
|
+
* ```
|
|
62
|
+
*/
|
|
63
|
+
function getManagedDatabaseValkeySessionsOutput(args, opts) {
|
|
64
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
65
|
+
return pulumi.runtime.invokeOutput("upcloud:index/getManagedDatabaseValkeySessions:getManagedDatabaseValkeySessions", {
|
|
66
|
+
"limit": args.limit,
|
|
67
|
+
"offset": args.offset,
|
|
68
|
+
"order": args.order,
|
|
69
|
+
"service": args.service,
|
|
70
|
+
"sessions": args.sessions,
|
|
71
|
+
}, opts);
|
|
72
|
+
}
|
|
73
|
+
exports.getManagedDatabaseValkeySessionsOutput = getManagedDatabaseValkeySessionsOutput;
|
|
74
|
+
//# sourceMappingURL=getManagedDatabaseValkeySessions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getManagedDatabaseValkeySessions.js","sourceRoot":"","sources":["../getManagedDatabaseValkeySessions.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,SAAgB,gCAAgC,CAAC,IAA0C,EAAE,IAA2B;IACpH,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,iFAAiF,EAAE;QAC5G,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,UAAU,EAAE,IAAI,CAAC,QAAQ;KAC5B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AATD,4EASC;AA2BD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,SAAgB,sCAAsC,CAAC,IAAgD,EAAE,IAAiC;IACtI,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,iFAAiF,EAAE;QAClH,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,UAAU,EAAE,IAAI,CAAC,QAAQ;KAC5B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AATD,wFASC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as outputs from "./types/output";
|
|
3
|
+
/**
|
|
4
|
+
* Policies available for a Managed Object Storage resource. See `managedObjectStorageUserPolicy` for attaching to a user.
|
|
5
|
+
*/
|
|
6
|
+
export declare function getManagedObjectStoragePolicies(args: GetManagedObjectStoragePoliciesArgs, opts?: pulumi.InvokeOptions): Promise<GetManagedObjectStoragePoliciesResult>;
|
|
7
|
+
/**
|
|
8
|
+
* A collection of arguments for invoking getManagedObjectStoragePolicies.
|
|
9
|
+
*/
|
|
10
|
+
export interface GetManagedObjectStoragePoliciesArgs {
|
|
11
|
+
serviceUuid: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* A collection of values returned by getManagedObjectStoragePolicies.
|
|
15
|
+
*/
|
|
16
|
+
export interface GetManagedObjectStoragePoliciesResult {
|
|
17
|
+
/**
|
|
18
|
+
* The provider-assigned unique ID for this managed resource.
|
|
19
|
+
*/
|
|
20
|
+
readonly id: string;
|
|
21
|
+
readonly policies: outputs.GetManagedObjectStoragePoliciesPolicy[];
|
|
22
|
+
readonly serviceUuid: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Policies available for a Managed Object Storage resource. See `managedObjectStorageUserPolicy` for attaching to a user.
|
|
26
|
+
*/
|
|
27
|
+
export declare function getManagedObjectStoragePoliciesOutput(args: GetManagedObjectStoragePoliciesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetManagedObjectStoragePoliciesResult>;
|
|
28
|
+
/**
|
|
29
|
+
* A collection of arguments for invoking getManagedObjectStoragePolicies.
|
|
30
|
+
*/
|
|
31
|
+
export interface GetManagedObjectStoragePoliciesOutputArgs {
|
|
32
|
+
serviceUuid: pulumi.Input<string>;
|
|
33
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.getManagedObjectStoragePoliciesOutput = exports.getManagedObjectStoragePolicies = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Policies available for a Managed Object Storage resource. See `managedObjectStorageUserPolicy` for attaching to a user.
|
|
10
|
+
*/
|
|
11
|
+
function getManagedObjectStoragePolicies(args, opts) {
|
|
12
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
13
|
+
return pulumi.runtime.invoke("upcloud:index/getManagedObjectStoragePolicies:getManagedObjectStoragePolicies", {
|
|
14
|
+
"serviceUuid": args.serviceUuid,
|
|
15
|
+
}, opts);
|
|
16
|
+
}
|
|
17
|
+
exports.getManagedObjectStoragePolicies = getManagedObjectStoragePolicies;
|
|
18
|
+
/**
|
|
19
|
+
* Policies available for a Managed Object Storage resource. See `managedObjectStorageUserPolicy` for attaching to a user.
|
|
20
|
+
*/
|
|
21
|
+
function getManagedObjectStoragePoliciesOutput(args, opts) {
|
|
22
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
23
|
+
return pulumi.runtime.invokeOutput("upcloud:index/getManagedObjectStoragePolicies:getManagedObjectStoragePolicies", {
|
|
24
|
+
"serviceUuid": args.serviceUuid,
|
|
25
|
+
}, opts);
|
|
26
|
+
}
|
|
27
|
+
exports.getManagedObjectStoragePoliciesOutput = getManagedObjectStoragePoliciesOutput;
|
|
28
|
+
//# sourceMappingURL=getManagedObjectStoragePolicies.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getManagedObjectStoragePolicies.js","sourceRoot":"","sources":["../getManagedObjectStoragePolicies.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;GAEG;AACH,SAAgB,+BAA+B,CAAC,IAAyC,EAAE,IAA2B;IAClH,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,+EAA+E,EAAE;QAC1G,aAAa,EAAE,IAAI,CAAC,WAAW;KAClC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,0EAKC;AAoBD;;GAEG;AACH,SAAgB,qCAAqC,CAAC,IAA+C,EAAE,IAAiC;IACpI,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,+EAA+E,EAAE;QAChH,aAAa,EAAE,IAAI,CAAC,WAAW;KAClC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,sFAKC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* Returns a list of available Managed Object Storage regions.
|
|
6
|
+
*/
|
|
7
|
+
export declare function getManagedObjectStorageRegions(args?: GetManagedObjectStorageRegionsArgs, opts?: pulumi.InvokeOptions): Promise<GetManagedObjectStorageRegionsResult>;
|
|
8
|
+
/**
|
|
9
|
+
* A collection of arguments for invoking getManagedObjectStorageRegions.
|
|
10
|
+
*/
|
|
11
|
+
export interface GetManagedObjectStorageRegionsArgs {
|
|
12
|
+
regions?: inputs.GetManagedObjectStorageRegionsRegion[];
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* A collection of values returned by getManagedObjectStorageRegions.
|
|
16
|
+
*/
|
|
17
|
+
export interface GetManagedObjectStorageRegionsResult {
|
|
18
|
+
/**
|
|
19
|
+
* The ID of this resource.
|
|
20
|
+
*/
|
|
21
|
+
readonly id: string;
|
|
22
|
+
readonly regions?: outputs.GetManagedObjectStorageRegionsRegion[];
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Returns a list of available Managed Object Storage regions.
|
|
26
|
+
*/
|
|
27
|
+
export declare function getManagedObjectStorageRegionsOutput(args?: GetManagedObjectStorageRegionsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetManagedObjectStorageRegionsResult>;
|
|
28
|
+
/**
|
|
29
|
+
* A collection of arguments for invoking getManagedObjectStorageRegions.
|
|
30
|
+
*/
|
|
31
|
+
export interface GetManagedObjectStorageRegionsOutputArgs {
|
|
32
|
+
regions?: pulumi.Input<pulumi.Input<inputs.GetManagedObjectStorageRegionsRegionArgs>[]>;
|
|
33
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.getManagedObjectStorageRegionsOutput = exports.getManagedObjectStorageRegions = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Returns a list of available Managed Object Storage regions.
|
|
10
|
+
*/
|
|
11
|
+
function getManagedObjectStorageRegions(args, opts) {
|
|
12
|
+
args = args || {};
|
|
13
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
14
|
+
return pulumi.runtime.invoke("upcloud:index/getManagedObjectStorageRegions:getManagedObjectStorageRegions", {
|
|
15
|
+
"regions": args.regions,
|
|
16
|
+
}, opts);
|
|
17
|
+
}
|
|
18
|
+
exports.getManagedObjectStorageRegions = getManagedObjectStorageRegions;
|
|
19
|
+
/**
|
|
20
|
+
* Returns a list of available Managed Object Storage regions.
|
|
21
|
+
*/
|
|
22
|
+
function getManagedObjectStorageRegionsOutput(args, opts) {
|
|
23
|
+
args = args || {};
|
|
24
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
25
|
+
return pulumi.runtime.invokeOutput("upcloud:index/getManagedObjectStorageRegions:getManagedObjectStorageRegions", {
|
|
26
|
+
"regions": args.regions,
|
|
27
|
+
}, opts);
|
|
28
|
+
}
|
|
29
|
+
exports.getManagedObjectStorageRegionsOutput = getManagedObjectStorageRegionsOutput;
|
|
30
|
+
//# sourceMappingURL=getManagedObjectStorageRegions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getManagedObjectStorageRegions.js","sourceRoot":"","sources":["../getManagedObjectStorageRegions.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;GAEG;AACH,SAAgB,8BAA8B,CAAC,IAAyC,EAAE,IAA2B;IACjH,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,6EAA6E,EAAE;QACxG,SAAS,EAAE,IAAI,CAAC,OAAO;KAC1B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,wEAMC;AAmBD;;GAEG;AACH,SAAgB,oCAAoC,CAAC,IAA+C,EAAE,IAAiC;IACnI,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,6EAA6E,EAAE;QAC9G,SAAS,EAAE,IAAI,CAAC,OAAO;KAC1B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,oFAMC"}
|
package/getNetworks.d.ts
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as outputs from "./types/output";
|
|
3
|
+
/**
|
|
4
|
+
* Use this data source to get the available UpCloud networks.
|
|
5
|
+
*
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
+
* import * as upcloud from "@pulumi/upcloud";
|
|
11
|
+
*
|
|
12
|
+
* const upcloud = upcloud.getNetworks({});
|
|
13
|
+
* const upcloudByZone = upcloud.getNetworks({
|
|
14
|
+
* filterName: "^Public.*",
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
export declare function getNetworks(args?: GetNetworksArgs, opts?: pulumi.InvokeOptions): Promise<GetNetworksResult>;
|
|
19
|
+
/**
|
|
20
|
+
* A collection of arguments for invoking getNetworks.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetNetworksArgs {
|
|
23
|
+
filterName?: string;
|
|
24
|
+
zone?: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* A collection of values returned by getNetworks.
|
|
28
|
+
*/
|
|
29
|
+
export interface GetNetworksResult {
|
|
30
|
+
readonly filterName?: string;
|
|
31
|
+
/**
|
|
32
|
+
* The provider-assigned unique ID for this managed resource.
|
|
33
|
+
*/
|
|
34
|
+
readonly id: string;
|
|
35
|
+
readonly networks: outputs.GetNetworksNetwork[];
|
|
36
|
+
readonly zone?: string;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Use this data source to get the available UpCloud networks.
|
|
40
|
+
*
|
|
41
|
+
* ## Example Usage
|
|
42
|
+
*
|
|
43
|
+
* ```typescript
|
|
44
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
45
|
+
* import * as upcloud from "@pulumi/upcloud";
|
|
46
|
+
*
|
|
47
|
+
* const upcloud = upcloud.getNetworks({});
|
|
48
|
+
* const upcloudByZone = upcloud.getNetworks({
|
|
49
|
+
* filterName: "^Public.*",
|
|
50
|
+
* });
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
53
|
+
export declare function getNetworksOutput(args?: GetNetworksOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetNetworksResult>;
|
|
54
|
+
/**
|
|
55
|
+
* A collection of arguments for invoking getNetworks.
|
|
56
|
+
*/
|
|
57
|
+
export interface GetNetworksOutputArgs {
|
|
58
|
+
filterName?: pulumi.Input<string>;
|
|
59
|
+
zone?: pulumi.Input<string>;
|
|
60
|
+
}
|
package/getNetworks.js
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.getNetworksOutput = exports.getNetworks = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Use this data source to get the available UpCloud networks.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as upcloud from "@pulumi/upcloud";
|
|
16
|
+
*
|
|
17
|
+
* const upcloud = upcloud.getNetworks({});
|
|
18
|
+
* const upcloudByZone = upcloud.getNetworks({
|
|
19
|
+
* filterName: "^Public.*",
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
function getNetworks(args, opts) {
|
|
24
|
+
args = args || {};
|
|
25
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
26
|
+
return pulumi.runtime.invoke("upcloud:index/getNetworks:getNetworks", {
|
|
27
|
+
"filterName": args.filterName,
|
|
28
|
+
"zone": args.zone,
|
|
29
|
+
}, opts);
|
|
30
|
+
}
|
|
31
|
+
exports.getNetworks = getNetworks;
|
|
32
|
+
/**
|
|
33
|
+
* Use this data source to get the available UpCloud networks.
|
|
34
|
+
*
|
|
35
|
+
* ## Example Usage
|
|
36
|
+
*
|
|
37
|
+
* ```typescript
|
|
38
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
39
|
+
* import * as upcloud from "@pulumi/upcloud";
|
|
40
|
+
*
|
|
41
|
+
* const upcloud = upcloud.getNetworks({});
|
|
42
|
+
* const upcloudByZone = upcloud.getNetworks({
|
|
43
|
+
* filterName: "^Public.*",
|
|
44
|
+
* });
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
function getNetworksOutput(args, opts) {
|
|
48
|
+
args = args || {};
|
|
49
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
50
|
+
return pulumi.runtime.invokeOutput("upcloud:index/getNetworks:getNetworks", {
|
|
51
|
+
"filterName": args.filterName,
|
|
52
|
+
"zone": args.zone,
|
|
53
|
+
}, opts);
|
|
54
|
+
}
|
|
55
|
+
exports.getNetworksOutput = getNetworksOutput;
|
|
56
|
+
//# sourceMappingURL=getNetworks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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;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,uCAAuC,EAAE;QAClE,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,kCAOC;AAsBD;;;;;;;;;;;;;;GAcG;AACH,SAAgB,iBAAiB,CAAC,IAA4B,EAAE,IAAiC;IAC7F,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,uCAAuC,EAAE;QACxE,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,8CAOC"}
|
package/getStorage.d.ts
ADDED
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Provides information on UpCloud [Block Storage](https://upcloud.com/products/block-storage) devices.
|
|
4
|
+
*
|
|
5
|
+
* Data source can be used to map storage to other resource based on the ID or just to read some other storage property like zone information. Storage types are: `normal`, `backup`, `cdrom`, and `template`.
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as upcloud from "@pulumi/upcloud";
|
|
12
|
+
* import * as upcloud from "@upcloud/pulumi-upcloud";
|
|
13
|
+
*
|
|
14
|
+
* const appImage = upcloud.getStorage({
|
|
15
|
+
* type: "template",
|
|
16
|
+
* nameRegex: "^app_image.*",
|
|
17
|
+
* mostRecent: true,
|
|
18
|
+
* });
|
|
19
|
+
* const example = new upcloud.Server("example", {
|
|
20
|
+
* hostname: "debian.example.tld",
|
|
21
|
+
* zone: "fi-hel1",
|
|
22
|
+
* networkInterfaces: [{
|
|
23
|
+
* type: "public",
|
|
24
|
+
* }],
|
|
25
|
+
* template: {
|
|
26
|
+
* storage: appImage.then(appImage => appImage.id),
|
|
27
|
+
* },
|
|
28
|
+
* });
|
|
29
|
+
* // Build only new servers with your latest custom image
|
|
30
|
+
* //
|
|
31
|
+
* // Use the lifecycle meta-argument to ignore changes in server's template triggered by new image version
|
|
32
|
+
* const example2 = new upcloud.Server("example2", {
|
|
33
|
+
* hostname: "debian.example2.tld",
|
|
34
|
+
* zone: "fi-hel1",
|
|
35
|
+
* networkInterfaces: [{
|
|
36
|
+
* type: "public",
|
|
37
|
+
* }],
|
|
38
|
+
* template: {
|
|
39
|
+
* storage: appImage.then(appImage => appImage.id),
|
|
40
|
+
* },
|
|
41
|
+
* });
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
export declare function getStorage(args?: GetStorageArgs, opts?: pulumi.InvokeOptions): Promise<GetStorageResult>;
|
|
45
|
+
/**
|
|
46
|
+
* A collection of arguments for invoking getStorage.
|
|
47
|
+
*/
|
|
48
|
+
export interface GetStorageArgs {
|
|
49
|
+
accessType?: string;
|
|
50
|
+
id?: string;
|
|
51
|
+
/**
|
|
52
|
+
* @deprecated Use exact title or UUID to limit the number of matching storages. Note that if you have multiple storages with the same title, you should use UUID to select the storage.
|
|
53
|
+
*/
|
|
54
|
+
mostRecent?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* @deprecated Contains the same value as `title`. Use `title` instead.
|
|
57
|
+
*/
|
|
58
|
+
name?: string;
|
|
59
|
+
/**
|
|
60
|
+
* @deprecated Use exact title or UUID instead.
|
|
61
|
+
*/
|
|
62
|
+
nameRegex?: string;
|
|
63
|
+
title?: string;
|
|
64
|
+
type?: string;
|
|
65
|
+
zone?: string;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* A collection of values returned by getStorage.
|
|
69
|
+
*/
|
|
70
|
+
export interface GetStorageResult {
|
|
71
|
+
readonly accessType: string;
|
|
72
|
+
readonly encrypt: boolean;
|
|
73
|
+
readonly id: string;
|
|
74
|
+
readonly labels: {
|
|
75
|
+
[key: string]: string;
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* @deprecated Use exact title or UUID to limit the number of matching storages. Note that if you have multiple storages with the same title, you should use UUID to select the storage.
|
|
79
|
+
*/
|
|
80
|
+
readonly mostRecent?: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* @deprecated Contains the same value as `title`. Use `title` instead.
|
|
83
|
+
*/
|
|
84
|
+
readonly name?: string;
|
|
85
|
+
/**
|
|
86
|
+
* @deprecated Use exact title or UUID instead.
|
|
87
|
+
*/
|
|
88
|
+
readonly nameRegex?: string;
|
|
89
|
+
readonly size: number;
|
|
90
|
+
readonly state: string;
|
|
91
|
+
readonly systemLabels: {
|
|
92
|
+
[key: string]: string;
|
|
93
|
+
};
|
|
94
|
+
readonly tier: string;
|
|
95
|
+
readonly title: string;
|
|
96
|
+
readonly type: string;
|
|
97
|
+
readonly zone: string;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Provides information on UpCloud [Block Storage](https://upcloud.com/products/block-storage) devices.
|
|
101
|
+
*
|
|
102
|
+
* Data source can be used to map storage to other resource based on the ID or just to read some other storage property like zone information. Storage types are: `normal`, `backup`, `cdrom`, and `template`.
|
|
103
|
+
*
|
|
104
|
+
* ## Example Usage
|
|
105
|
+
*
|
|
106
|
+
* ```typescript
|
|
107
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
108
|
+
* import * as upcloud from "@pulumi/upcloud";
|
|
109
|
+
* import * as upcloud from "@upcloud/pulumi-upcloud";
|
|
110
|
+
*
|
|
111
|
+
* const appImage = upcloud.getStorage({
|
|
112
|
+
* type: "template",
|
|
113
|
+
* nameRegex: "^app_image.*",
|
|
114
|
+
* mostRecent: true,
|
|
115
|
+
* });
|
|
116
|
+
* const example = new upcloud.Server("example", {
|
|
117
|
+
* hostname: "debian.example.tld",
|
|
118
|
+
* zone: "fi-hel1",
|
|
119
|
+
* networkInterfaces: [{
|
|
120
|
+
* type: "public",
|
|
121
|
+
* }],
|
|
122
|
+
* template: {
|
|
123
|
+
* storage: appImage.then(appImage => appImage.id),
|
|
124
|
+
* },
|
|
125
|
+
* });
|
|
126
|
+
* // Build only new servers with your latest custom image
|
|
127
|
+
* //
|
|
128
|
+
* // Use the lifecycle meta-argument to ignore changes in server's template triggered by new image version
|
|
129
|
+
* const example2 = new upcloud.Server("example2", {
|
|
130
|
+
* hostname: "debian.example2.tld",
|
|
131
|
+
* zone: "fi-hel1",
|
|
132
|
+
* networkInterfaces: [{
|
|
133
|
+
* type: "public",
|
|
134
|
+
* }],
|
|
135
|
+
* template: {
|
|
136
|
+
* storage: appImage.then(appImage => appImage.id),
|
|
137
|
+
* },
|
|
138
|
+
* });
|
|
139
|
+
* ```
|
|
140
|
+
*/
|
|
141
|
+
export declare function getStorageOutput(args?: GetStorageOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetStorageResult>;
|
|
142
|
+
/**
|
|
143
|
+
* A collection of arguments for invoking getStorage.
|
|
144
|
+
*/
|
|
145
|
+
export interface GetStorageOutputArgs {
|
|
146
|
+
accessType?: pulumi.Input<string>;
|
|
147
|
+
id?: pulumi.Input<string>;
|
|
148
|
+
/**
|
|
149
|
+
* @deprecated Use exact title or UUID to limit the number of matching storages. Note that if you have multiple storages with the same title, you should use UUID to select the storage.
|
|
150
|
+
*/
|
|
151
|
+
mostRecent?: pulumi.Input<boolean>;
|
|
152
|
+
/**
|
|
153
|
+
* @deprecated Contains the same value as `title`. Use `title` instead.
|
|
154
|
+
*/
|
|
155
|
+
name?: pulumi.Input<string>;
|
|
156
|
+
/**
|
|
157
|
+
* @deprecated Use exact title or UUID instead.
|
|
158
|
+
*/
|
|
159
|
+
nameRegex?: pulumi.Input<string>;
|
|
160
|
+
title?: pulumi.Input<string>;
|
|
161
|
+
type?: pulumi.Input<string>;
|
|
162
|
+
zone?: pulumi.Input<string>;
|
|
163
|
+
}
|
package/getStorage.js
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.getStorageOutput = exports.getStorage = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Provides information on UpCloud [Block Storage](https://upcloud.com/products/block-storage) devices.
|
|
10
|
+
*
|
|
11
|
+
* Data source can be used to map storage to other resource based on the ID or just to read some other storage property like zone information. Storage types are: `normal`, `backup`, `cdrom`, and `template`.
|
|
12
|
+
*
|
|
13
|
+
* ## Example Usage
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as upcloud from "@pulumi/upcloud";
|
|
18
|
+
* import * as upcloud from "@upcloud/pulumi-upcloud";
|
|
19
|
+
*
|
|
20
|
+
* const appImage = upcloud.getStorage({
|
|
21
|
+
* type: "template",
|
|
22
|
+
* nameRegex: "^app_image.*",
|
|
23
|
+
* mostRecent: true,
|
|
24
|
+
* });
|
|
25
|
+
* const example = new upcloud.Server("example", {
|
|
26
|
+
* hostname: "debian.example.tld",
|
|
27
|
+
* zone: "fi-hel1",
|
|
28
|
+
* networkInterfaces: [{
|
|
29
|
+
* type: "public",
|
|
30
|
+
* }],
|
|
31
|
+
* template: {
|
|
32
|
+
* storage: appImage.then(appImage => appImage.id),
|
|
33
|
+
* },
|
|
34
|
+
* });
|
|
35
|
+
* // Build only new servers with your latest custom image
|
|
36
|
+
* //
|
|
37
|
+
* // Use the lifecycle meta-argument to ignore changes in server's template triggered by new image version
|
|
38
|
+
* const example2 = new upcloud.Server("example2", {
|
|
39
|
+
* hostname: "debian.example2.tld",
|
|
40
|
+
* zone: "fi-hel1",
|
|
41
|
+
* networkInterfaces: [{
|
|
42
|
+
* type: "public",
|
|
43
|
+
* }],
|
|
44
|
+
* template: {
|
|
45
|
+
* storage: appImage.then(appImage => appImage.id),
|
|
46
|
+
* },
|
|
47
|
+
* });
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
function getStorage(args, opts) {
|
|
51
|
+
args = args || {};
|
|
52
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
53
|
+
return pulumi.runtime.invoke("upcloud:index/getStorage:getStorage", {
|
|
54
|
+
"accessType": args.accessType,
|
|
55
|
+
"id": args.id,
|
|
56
|
+
"mostRecent": args.mostRecent,
|
|
57
|
+
"name": args.name,
|
|
58
|
+
"nameRegex": args.nameRegex,
|
|
59
|
+
"title": args.title,
|
|
60
|
+
"type": args.type,
|
|
61
|
+
"zone": args.zone,
|
|
62
|
+
}, opts);
|
|
63
|
+
}
|
|
64
|
+
exports.getStorage = getStorage;
|
|
65
|
+
/**
|
|
66
|
+
* Provides information on UpCloud [Block Storage](https://upcloud.com/products/block-storage) devices.
|
|
67
|
+
*
|
|
68
|
+
* Data source can be used to map storage to other resource based on the ID or just to read some other storage property like zone information. Storage types are: `normal`, `backup`, `cdrom`, and `template`.
|
|
69
|
+
*
|
|
70
|
+
* ## Example Usage
|
|
71
|
+
*
|
|
72
|
+
* ```typescript
|
|
73
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
74
|
+
* import * as upcloud from "@pulumi/upcloud";
|
|
75
|
+
* import * as upcloud from "@upcloud/pulumi-upcloud";
|
|
76
|
+
*
|
|
77
|
+
* const appImage = upcloud.getStorage({
|
|
78
|
+
* type: "template",
|
|
79
|
+
* nameRegex: "^app_image.*",
|
|
80
|
+
* mostRecent: true,
|
|
81
|
+
* });
|
|
82
|
+
* const example = new upcloud.Server("example", {
|
|
83
|
+
* hostname: "debian.example.tld",
|
|
84
|
+
* zone: "fi-hel1",
|
|
85
|
+
* networkInterfaces: [{
|
|
86
|
+
* type: "public",
|
|
87
|
+
* }],
|
|
88
|
+
* template: {
|
|
89
|
+
* storage: appImage.then(appImage => appImage.id),
|
|
90
|
+
* },
|
|
91
|
+
* });
|
|
92
|
+
* // Build only new servers with your latest custom image
|
|
93
|
+
* //
|
|
94
|
+
* // Use the lifecycle meta-argument to ignore changes in server's template triggered by new image version
|
|
95
|
+
* const example2 = new upcloud.Server("example2", {
|
|
96
|
+
* hostname: "debian.example2.tld",
|
|
97
|
+
* zone: "fi-hel1",
|
|
98
|
+
* networkInterfaces: [{
|
|
99
|
+
* type: "public",
|
|
100
|
+
* }],
|
|
101
|
+
* template: {
|
|
102
|
+
* storage: appImage.then(appImage => appImage.id),
|
|
103
|
+
* },
|
|
104
|
+
* });
|
|
105
|
+
* ```
|
|
106
|
+
*/
|
|
107
|
+
function getStorageOutput(args, opts) {
|
|
108
|
+
args = args || {};
|
|
109
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
110
|
+
return pulumi.runtime.invokeOutput("upcloud:index/getStorage:getStorage", {
|
|
111
|
+
"accessType": args.accessType,
|
|
112
|
+
"id": args.id,
|
|
113
|
+
"mostRecent": args.mostRecent,
|
|
114
|
+
"name": args.name,
|
|
115
|
+
"nameRegex": args.nameRegex,
|
|
116
|
+
"title": args.title,
|
|
117
|
+
"type": args.type,
|
|
118
|
+
"zone": args.zone,
|
|
119
|
+
}, opts);
|
|
120
|
+
}
|
|
121
|
+
exports.getStorageOutput = getStorageOutput;
|
|
122
|
+
//# sourceMappingURL=getStorage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getStorage.js","sourceRoot":"","sources":["../getStorage.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,SAAgB,UAAU,CAAC,IAAqB,EAAE,IAA2B;IACzE,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,qCAAqC,EAAE;QAChE,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAbD,gCAaC;AAqDD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,SAAgB,gBAAgB,CAAC,IAA2B,EAAE,IAAiC;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,qCAAqC,EAAE;QACtE,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAbD,4CAaC"}
|
package/getTags.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as outputs from "./types/output";
|
|
3
|
+
/**
|
|
4
|
+
* Data-source is deprecated.
|
|
5
|
+
*/
|
|
6
|
+
export declare function getTags(opts?: pulumi.InvokeOptions): Promise<GetTagsResult>;
|
|
7
|
+
/**
|
|
8
|
+
* A collection of values returned by getTags.
|
|
9
|
+
*/
|
|
10
|
+
export interface GetTagsResult {
|
|
11
|
+
/**
|
|
12
|
+
* The provider-assigned unique ID for this managed resource.
|
|
13
|
+
*/
|
|
14
|
+
readonly id: string;
|
|
15
|
+
readonly tags: outputs.GetTagsTag[];
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Data-source is deprecated.
|
|
19
|
+
*/
|
|
20
|
+
export declare function getTagsOutput(opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetTagsResult>;
|
package/getTags.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.getTagsOutput = exports.getTags = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Data-source is deprecated.
|
|
10
|
+
*/
|
|
11
|
+
function getTags(opts) {
|
|
12
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
13
|
+
return pulumi.runtime.invoke("upcloud:index/getTags:getTags", {}, opts);
|
|
14
|
+
}
|
|
15
|
+
exports.getTags = getTags;
|
|
16
|
+
/**
|
|
17
|
+
* Data-source is deprecated.
|
|
18
|
+
*/
|
|
19
|
+
function getTagsOutput(opts) {
|
|
20
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
21
|
+
return pulumi.runtime.invokeOutput("upcloud:index/getTags:getTags", {}, opts);
|
|
22
|
+
}
|
|
23
|
+
exports.getTagsOutput = getTagsOutput;
|
|
24
|
+
//# sourceMappingURL=getTags.js.map
|