@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.getManagedDatabaseMysqlSessionsOutput = exports.getManagedDatabaseMysqlSessions = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Current sessions of a MySQL 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 MySQL Database
|
|
19
|
+
* // Create a Managed MySQL resource
|
|
20
|
+
* const exampleManagedDatabaseMysql = new upcloud.ManagedDatabaseMysql("exampleManagedDatabaseMysql", {
|
|
21
|
+
* title: "mysql-example1",
|
|
22
|
+
* plan: "1x1xCPU-2GB-25GB",
|
|
23
|
+
* zone: "fi-hel1",
|
|
24
|
+
* });
|
|
25
|
+
* const exampleManagedDatabaseMysqlSessions = upcloud.getManagedDatabaseMysqlSessionsOutput({
|
|
26
|
+
* service: exampleManagedDatabaseMysql.id,
|
|
27
|
+
* });
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
function getManagedDatabaseMysqlSessions(args, opts) {
|
|
31
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
32
|
+
return pulumi.runtime.invoke("upcloud:index/getManagedDatabaseMysqlSessions:getManagedDatabaseMysqlSessions", {
|
|
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.getManagedDatabaseMysqlSessions = getManagedDatabaseMysqlSessions;
|
|
41
|
+
/**
|
|
42
|
+
* Current sessions of a MySQL 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 MySQL Database
|
|
52
|
+
* // Create a Managed MySQL resource
|
|
53
|
+
* const exampleManagedDatabaseMysql = new upcloud.ManagedDatabaseMysql("exampleManagedDatabaseMysql", {
|
|
54
|
+
* title: "mysql-example1",
|
|
55
|
+
* plan: "1x1xCPU-2GB-25GB",
|
|
56
|
+
* zone: "fi-hel1",
|
|
57
|
+
* });
|
|
58
|
+
* const exampleManagedDatabaseMysqlSessions = upcloud.getManagedDatabaseMysqlSessionsOutput({
|
|
59
|
+
* service: exampleManagedDatabaseMysql.id,
|
|
60
|
+
* });
|
|
61
|
+
* ```
|
|
62
|
+
*/
|
|
63
|
+
function getManagedDatabaseMysqlSessionsOutput(args, opts) {
|
|
64
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
65
|
+
return pulumi.runtime.invokeOutput("upcloud:index/getManagedDatabaseMysqlSessions:getManagedDatabaseMysqlSessions", {
|
|
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.getManagedDatabaseMysqlSessionsOutput = getManagedDatabaseMysqlSessionsOutput;
|
|
74
|
+
//# sourceMappingURL=getManagedDatabaseMysqlSessions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getManagedDatabaseMysqlSessions.js","sourceRoot":"","sources":["../getManagedDatabaseMysqlSessions.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;GAqBG;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,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,0EASC;AA2BD;;;;;;;;;;;;;;;;;;;;;GAqBG;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,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,sFASC"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* OpenSearch indices
|
|
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
|
+
* // Use data source to gather a list of the indices for a Managed OpenSearch Database
|
|
15
|
+
* // Create a Managed OpenSearch resource
|
|
16
|
+
* const exampleManagedDatabaseOpensearch = new upcloud.ManagedDatabaseOpensearch("exampleManagedDatabaseOpensearch", {
|
|
17
|
+
* title: "opensearch-example",
|
|
18
|
+
* plan: "1x2xCPU-4GB-80GB-1D",
|
|
19
|
+
* zone: "fi-hel1",
|
|
20
|
+
* properties: {
|
|
21
|
+
* automaticUtilityNetworkIpFilter: false,
|
|
22
|
+
* publicAccess: false,
|
|
23
|
+
* },
|
|
24
|
+
* });
|
|
25
|
+
* const exampleManagedDatabaseOpensearchIndices = upcloud.getManagedDatabaseOpensearchIndicesOutput({
|
|
26
|
+
* service: exampleManagedDatabaseOpensearch.id,
|
|
27
|
+
* });
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
export declare function getManagedDatabaseOpensearchIndices(args: GetManagedDatabaseOpensearchIndicesArgs, opts?: pulumi.InvokeOptions): Promise<GetManagedDatabaseOpensearchIndicesResult>;
|
|
31
|
+
/**
|
|
32
|
+
* A collection of arguments for invoking getManagedDatabaseOpensearchIndices.
|
|
33
|
+
*/
|
|
34
|
+
export interface GetManagedDatabaseOpensearchIndicesArgs {
|
|
35
|
+
indices?: inputs.GetManagedDatabaseOpensearchIndicesIndex[];
|
|
36
|
+
service: string;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* A collection of values returned by getManagedDatabaseOpensearchIndices.
|
|
40
|
+
*/
|
|
41
|
+
export interface GetManagedDatabaseOpensearchIndicesResult {
|
|
42
|
+
/**
|
|
43
|
+
* The provider-assigned unique ID for this managed resource.
|
|
44
|
+
*/
|
|
45
|
+
readonly id: string;
|
|
46
|
+
readonly indices: outputs.GetManagedDatabaseOpensearchIndicesIndex[];
|
|
47
|
+
readonly service: string;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* OpenSearch indices
|
|
51
|
+
*
|
|
52
|
+
* ## Example Usage
|
|
53
|
+
*
|
|
54
|
+
* ```typescript
|
|
55
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
56
|
+
* import * as upcloud from "@pulumi/upcloud";
|
|
57
|
+
* import * as upcloud from "@upcloud/pulumi-upcloud";
|
|
58
|
+
*
|
|
59
|
+
* // Use data source to gather a list of the indices for a Managed OpenSearch Database
|
|
60
|
+
* // Create a Managed OpenSearch resource
|
|
61
|
+
* const exampleManagedDatabaseOpensearch = new upcloud.ManagedDatabaseOpensearch("exampleManagedDatabaseOpensearch", {
|
|
62
|
+
* title: "opensearch-example",
|
|
63
|
+
* plan: "1x2xCPU-4GB-80GB-1D",
|
|
64
|
+
* zone: "fi-hel1",
|
|
65
|
+
* properties: {
|
|
66
|
+
* automaticUtilityNetworkIpFilter: false,
|
|
67
|
+
* publicAccess: false,
|
|
68
|
+
* },
|
|
69
|
+
* });
|
|
70
|
+
* const exampleManagedDatabaseOpensearchIndices = upcloud.getManagedDatabaseOpensearchIndicesOutput({
|
|
71
|
+
* service: exampleManagedDatabaseOpensearch.id,
|
|
72
|
+
* });
|
|
73
|
+
* ```
|
|
74
|
+
*/
|
|
75
|
+
export declare function getManagedDatabaseOpensearchIndicesOutput(args: GetManagedDatabaseOpensearchIndicesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetManagedDatabaseOpensearchIndicesResult>;
|
|
76
|
+
/**
|
|
77
|
+
* A collection of arguments for invoking getManagedDatabaseOpensearchIndices.
|
|
78
|
+
*/
|
|
79
|
+
export interface GetManagedDatabaseOpensearchIndicesOutputArgs {
|
|
80
|
+
indices?: pulumi.Input<pulumi.Input<inputs.GetManagedDatabaseOpensearchIndicesIndexArgs>[]>;
|
|
81
|
+
service: pulumi.Input<string>;
|
|
82
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
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.getManagedDatabaseOpensearchIndicesOutput = exports.getManagedDatabaseOpensearchIndices = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* OpenSearch indices
|
|
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 indices for a Managed OpenSearch Database
|
|
19
|
+
* // Create a Managed OpenSearch resource
|
|
20
|
+
* const exampleManagedDatabaseOpensearch = new upcloud.ManagedDatabaseOpensearch("exampleManagedDatabaseOpensearch", {
|
|
21
|
+
* title: "opensearch-example",
|
|
22
|
+
* plan: "1x2xCPU-4GB-80GB-1D",
|
|
23
|
+
* zone: "fi-hel1",
|
|
24
|
+
* properties: {
|
|
25
|
+
* automaticUtilityNetworkIpFilter: false,
|
|
26
|
+
* publicAccess: false,
|
|
27
|
+
* },
|
|
28
|
+
* });
|
|
29
|
+
* const exampleManagedDatabaseOpensearchIndices = upcloud.getManagedDatabaseOpensearchIndicesOutput({
|
|
30
|
+
* service: exampleManagedDatabaseOpensearch.id,
|
|
31
|
+
* });
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
function getManagedDatabaseOpensearchIndices(args, opts) {
|
|
35
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
36
|
+
return pulumi.runtime.invoke("upcloud:index/getManagedDatabaseOpensearchIndices:getManagedDatabaseOpensearchIndices", {
|
|
37
|
+
"indices": args.indices,
|
|
38
|
+
"service": args.service,
|
|
39
|
+
}, opts);
|
|
40
|
+
}
|
|
41
|
+
exports.getManagedDatabaseOpensearchIndices = getManagedDatabaseOpensearchIndices;
|
|
42
|
+
/**
|
|
43
|
+
* OpenSearch indices
|
|
44
|
+
*
|
|
45
|
+
* ## Example Usage
|
|
46
|
+
*
|
|
47
|
+
* ```typescript
|
|
48
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
49
|
+
* import * as upcloud from "@pulumi/upcloud";
|
|
50
|
+
* import * as upcloud from "@upcloud/pulumi-upcloud";
|
|
51
|
+
*
|
|
52
|
+
* // Use data source to gather a list of the indices for a Managed OpenSearch Database
|
|
53
|
+
* // Create a Managed OpenSearch resource
|
|
54
|
+
* const exampleManagedDatabaseOpensearch = new upcloud.ManagedDatabaseOpensearch("exampleManagedDatabaseOpensearch", {
|
|
55
|
+
* title: "opensearch-example",
|
|
56
|
+
* plan: "1x2xCPU-4GB-80GB-1D",
|
|
57
|
+
* zone: "fi-hel1",
|
|
58
|
+
* properties: {
|
|
59
|
+
* automaticUtilityNetworkIpFilter: false,
|
|
60
|
+
* publicAccess: false,
|
|
61
|
+
* },
|
|
62
|
+
* });
|
|
63
|
+
* const exampleManagedDatabaseOpensearchIndices = upcloud.getManagedDatabaseOpensearchIndicesOutput({
|
|
64
|
+
* service: exampleManagedDatabaseOpensearch.id,
|
|
65
|
+
* });
|
|
66
|
+
* ```
|
|
67
|
+
*/
|
|
68
|
+
function getManagedDatabaseOpensearchIndicesOutput(args, opts) {
|
|
69
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
70
|
+
return pulumi.runtime.invokeOutput("upcloud:index/getManagedDatabaseOpensearchIndices:getManagedDatabaseOpensearchIndices", {
|
|
71
|
+
"indices": args.indices,
|
|
72
|
+
"service": args.service,
|
|
73
|
+
}, opts);
|
|
74
|
+
}
|
|
75
|
+
exports.getManagedDatabaseOpensearchIndicesOutput = getManagedDatabaseOpensearchIndicesOutput;
|
|
76
|
+
//# sourceMappingURL=getManagedDatabaseOpensearchIndices.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getManagedDatabaseOpensearchIndices.js","sourceRoot":"","sources":["../getManagedDatabaseOpensearchIndices.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,SAAgB,mCAAmC,CAAC,IAA6C,EAAE,IAA2B;IAC1H,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,uFAAuF,EAAE;QAClH,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,SAAS,EAAE,IAAI,CAAC,OAAO;KAC1B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,kFAMC;AAqBD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,SAAgB,yCAAyC,CAAC,IAAmD,EAAE,IAAiC;IAC5I,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,uFAAuF,EAAE;QACxH,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,SAAS,EAAE,IAAI,CAAC,OAAO;KAC1B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,8FAMC"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* Current sessions of a PostgreSQL managed database
|
|
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
|
+
* // Use data source to gather a list of the active sessions for a Managed PostgreSQL Database
|
|
15
|
+
* // Create a Managed PostgreSQL resource
|
|
16
|
+
* const exampleManagedDatabasePostgresql = new upcloud.ManagedDatabasePostgresql("exampleManagedDatabasePostgresql", {
|
|
17
|
+
* title: "mysql-example1",
|
|
18
|
+
* plan: "1x1xCPU-2GB-25GB",
|
|
19
|
+
* zone: "fi-hel1",
|
|
20
|
+
* });
|
|
21
|
+
* const exampleManagedDatabasePostgresqlSessions = upcloud.getManagedDatabasePostgresqlSessionsOutput({
|
|
22
|
+
* service: exampleManagedDatabasePostgresql.id,
|
|
23
|
+
* });
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
export declare function getManagedDatabasePostgresqlSessions(args: GetManagedDatabasePostgresqlSessionsArgs, opts?: pulumi.InvokeOptions): Promise<GetManagedDatabasePostgresqlSessionsResult>;
|
|
27
|
+
/**
|
|
28
|
+
* A collection of arguments for invoking getManagedDatabasePostgresqlSessions.
|
|
29
|
+
*/
|
|
30
|
+
export interface GetManagedDatabasePostgresqlSessionsArgs {
|
|
31
|
+
limit?: number;
|
|
32
|
+
offset?: number;
|
|
33
|
+
order?: string;
|
|
34
|
+
service: string;
|
|
35
|
+
sessions?: inputs.GetManagedDatabasePostgresqlSessionsSession[];
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* A collection of values returned by getManagedDatabasePostgresqlSessions.
|
|
39
|
+
*/
|
|
40
|
+
export interface GetManagedDatabasePostgresqlSessionsResult {
|
|
41
|
+
/**
|
|
42
|
+
* The provider-assigned unique ID for this managed resource.
|
|
43
|
+
*/
|
|
44
|
+
readonly id: string;
|
|
45
|
+
readonly limit?: number;
|
|
46
|
+
readonly offset?: number;
|
|
47
|
+
readonly order?: string;
|
|
48
|
+
readonly service: string;
|
|
49
|
+
readonly sessions: outputs.GetManagedDatabasePostgresqlSessionsSession[];
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Current sessions of a PostgreSQL managed database
|
|
53
|
+
*
|
|
54
|
+
* ## Example Usage
|
|
55
|
+
*
|
|
56
|
+
* ```typescript
|
|
57
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
58
|
+
* import * as upcloud from "@pulumi/upcloud";
|
|
59
|
+
* import * as upcloud from "@upcloud/pulumi-upcloud";
|
|
60
|
+
*
|
|
61
|
+
* // Use data source to gather a list of the active sessions for a Managed PostgreSQL Database
|
|
62
|
+
* // Create a Managed PostgreSQL resource
|
|
63
|
+
* const exampleManagedDatabasePostgresql = new upcloud.ManagedDatabasePostgresql("exampleManagedDatabasePostgresql", {
|
|
64
|
+
* title: "mysql-example1",
|
|
65
|
+
* plan: "1x1xCPU-2GB-25GB",
|
|
66
|
+
* zone: "fi-hel1",
|
|
67
|
+
* });
|
|
68
|
+
* const exampleManagedDatabasePostgresqlSessions = upcloud.getManagedDatabasePostgresqlSessionsOutput({
|
|
69
|
+
* service: exampleManagedDatabasePostgresql.id,
|
|
70
|
+
* });
|
|
71
|
+
* ```
|
|
72
|
+
*/
|
|
73
|
+
export declare function getManagedDatabasePostgresqlSessionsOutput(args: GetManagedDatabasePostgresqlSessionsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetManagedDatabasePostgresqlSessionsResult>;
|
|
74
|
+
/**
|
|
75
|
+
* A collection of arguments for invoking getManagedDatabasePostgresqlSessions.
|
|
76
|
+
*/
|
|
77
|
+
export interface GetManagedDatabasePostgresqlSessionsOutputArgs {
|
|
78
|
+
limit?: pulumi.Input<number>;
|
|
79
|
+
offset?: pulumi.Input<number>;
|
|
80
|
+
order?: pulumi.Input<string>;
|
|
81
|
+
service: pulumi.Input<string>;
|
|
82
|
+
sessions?: pulumi.Input<pulumi.Input<inputs.GetManagedDatabasePostgresqlSessionsSessionArgs>[]>;
|
|
83
|
+
}
|
|
@@ -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.getManagedDatabasePostgresqlSessionsOutput = exports.getManagedDatabasePostgresqlSessions = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Current sessions of a PostgreSQL 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 PostgreSQL Database
|
|
19
|
+
* // Create a Managed PostgreSQL resource
|
|
20
|
+
* const exampleManagedDatabasePostgresql = new upcloud.ManagedDatabasePostgresql("exampleManagedDatabasePostgresql", {
|
|
21
|
+
* title: "mysql-example1",
|
|
22
|
+
* plan: "1x1xCPU-2GB-25GB",
|
|
23
|
+
* zone: "fi-hel1",
|
|
24
|
+
* });
|
|
25
|
+
* const exampleManagedDatabasePostgresqlSessions = upcloud.getManagedDatabasePostgresqlSessionsOutput({
|
|
26
|
+
* service: exampleManagedDatabasePostgresql.id,
|
|
27
|
+
* });
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
function getManagedDatabasePostgresqlSessions(args, opts) {
|
|
31
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
32
|
+
return pulumi.runtime.invoke("upcloud:index/getManagedDatabasePostgresqlSessions:getManagedDatabasePostgresqlSessions", {
|
|
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.getManagedDatabasePostgresqlSessions = getManagedDatabasePostgresqlSessions;
|
|
41
|
+
/**
|
|
42
|
+
* Current sessions of a PostgreSQL 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 PostgreSQL Database
|
|
52
|
+
* // Create a Managed PostgreSQL resource
|
|
53
|
+
* const exampleManagedDatabasePostgresql = new upcloud.ManagedDatabasePostgresql("exampleManagedDatabasePostgresql", {
|
|
54
|
+
* title: "mysql-example1",
|
|
55
|
+
* plan: "1x1xCPU-2GB-25GB",
|
|
56
|
+
* zone: "fi-hel1",
|
|
57
|
+
* });
|
|
58
|
+
* const exampleManagedDatabasePostgresqlSessions = upcloud.getManagedDatabasePostgresqlSessionsOutput({
|
|
59
|
+
* service: exampleManagedDatabasePostgresql.id,
|
|
60
|
+
* });
|
|
61
|
+
* ```
|
|
62
|
+
*/
|
|
63
|
+
function getManagedDatabasePostgresqlSessionsOutput(args, opts) {
|
|
64
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
65
|
+
return pulumi.runtime.invokeOutput("upcloud:index/getManagedDatabasePostgresqlSessions:getManagedDatabasePostgresqlSessions", {
|
|
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.getManagedDatabasePostgresqlSessionsOutput = getManagedDatabasePostgresqlSessionsOutput;
|
|
74
|
+
//# sourceMappingURL=getManagedDatabasePostgresqlSessions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getManagedDatabasePostgresqlSessions.js","sourceRoot":"","sources":["../getManagedDatabasePostgresqlSessions.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,SAAgB,oCAAoC,CAAC,IAA8C,EAAE,IAA2B;IAC5H,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,yFAAyF,EAAE;QACpH,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,oFASC;AA2BD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,SAAgB,0CAA0C,CAAC,IAAoD,EAAE,IAAiC;IAC9I,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,yFAAyF,EAAE;QAC1H,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,gGASC"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* > Redis is deprecated in favor of Valkey. Please use Valkey for new key value store instances.
|
|
6
|
+
*
|
|
7
|
+
* Current sessions of a Redis managed database
|
|
8
|
+
*
|
|
9
|
+
* ## Example Usage
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as upcloud from "@pulumi/upcloud";
|
|
14
|
+
* import * as upcloud from "@upcloud/pulumi-upcloud";
|
|
15
|
+
*
|
|
16
|
+
* // Use data source to gather a list of the active sessions for a Managed Redis Database
|
|
17
|
+
* // Create a Managed Redis resource
|
|
18
|
+
* const exampleManagedDatabaseRedis = new upcloud.ManagedDatabaseRedis("exampleManagedDatabaseRedis", {
|
|
19
|
+
* title: "example",
|
|
20
|
+
* plan: "1x1xCPU-2GB",
|
|
21
|
+
* zone: "fi-hel2",
|
|
22
|
+
* });
|
|
23
|
+
* const exampleManagedDatabaseRedisSessions = upcloud.getManagedDatabaseRedisSessionsOutput({
|
|
24
|
+
* service: exampleManagedDatabaseRedis.id,
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export declare function getManagedDatabaseRedisSessions(args: GetManagedDatabaseRedisSessionsArgs, opts?: pulumi.InvokeOptions): Promise<GetManagedDatabaseRedisSessionsResult>;
|
|
29
|
+
/**
|
|
30
|
+
* A collection of arguments for invoking getManagedDatabaseRedisSessions.
|
|
31
|
+
*/
|
|
32
|
+
export interface GetManagedDatabaseRedisSessionsArgs {
|
|
33
|
+
limit?: number;
|
|
34
|
+
offset?: number;
|
|
35
|
+
order?: string;
|
|
36
|
+
service: string;
|
|
37
|
+
sessions?: inputs.GetManagedDatabaseRedisSessionsSession[];
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* A collection of values returned by getManagedDatabaseRedisSessions.
|
|
41
|
+
*/
|
|
42
|
+
export interface GetManagedDatabaseRedisSessionsResult {
|
|
43
|
+
/**
|
|
44
|
+
* The provider-assigned unique ID for this managed resource.
|
|
45
|
+
*/
|
|
46
|
+
readonly id: string;
|
|
47
|
+
readonly limit?: number;
|
|
48
|
+
readonly offset?: number;
|
|
49
|
+
readonly order?: string;
|
|
50
|
+
readonly service: string;
|
|
51
|
+
readonly sessions: outputs.GetManagedDatabaseRedisSessionsSession[];
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* > Redis is deprecated in favor of Valkey. Please use Valkey for new key value store instances.
|
|
55
|
+
*
|
|
56
|
+
* Current sessions of a Redis managed database
|
|
57
|
+
*
|
|
58
|
+
* ## Example Usage
|
|
59
|
+
*
|
|
60
|
+
* ```typescript
|
|
61
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
62
|
+
* import * as upcloud from "@pulumi/upcloud";
|
|
63
|
+
* import * as upcloud from "@upcloud/pulumi-upcloud";
|
|
64
|
+
*
|
|
65
|
+
* // Use data source to gather a list of the active sessions for a Managed Redis Database
|
|
66
|
+
* // Create a Managed Redis resource
|
|
67
|
+
* const exampleManagedDatabaseRedis = new upcloud.ManagedDatabaseRedis("exampleManagedDatabaseRedis", {
|
|
68
|
+
* title: "example",
|
|
69
|
+
* plan: "1x1xCPU-2GB",
|
|
70
|
+
* zone: "fi-hel2",
|
|
71
|
+
* });
|
|
72
|
+
* const exampleManagedDatabaseRedisSessions = upcloud.getManagedDatabaseRedisSessionsOutput({
|
|
73
|
+
* service: exampleManagedDatabaseRedis.id,
|
|
74
|
+
* });
|
|
75
|
+
* ```
|
|
76
|
+
*/
|
|
77
|
+
export declare function getManagedDatabaseRedisSessionsOutput(args: GetManagedDatabaseRedisSessionsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetManagedDatabaseRedisSessionsResult>;
|
|
78
|
+
/**
|
|
79
|
+
* A collection of arguments for invoking getManagedDatabaseRedisSessions.
|
|
80
|
+
*/
|
|
81
|
+
export interface GetManagedDatabaseRedisSessionsOutputArgs {
|
|
82
|
+
limit?: pulumi.Input<number>;
|
|
83
|
+
offset?: pulumi.Input<number>;
|
|
84
|
+
order?: pulumi.Input<string>;
|
|
85
|
+
service: pulumi.Input<string>;
|
|
86
|
+
sessions?: pulumi.Input<pulumi.Input<inputs.GetManagedDatabaseRedisSessionsSessionArgs>[]>;
|
|
87
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
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.getManagedDatabaseRedisSessionsOutput = exports.getManagedDatabaseRedisSessions = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* > Redis is deprecated in favor of Valkey. Please use Valkey for new key value store instances.
|
|
10
|
+
*
|
|
11
|
+
* Current sessions of a Redis managed database
|
|
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
|
+
* // Use data source to gather a list of the active sessions for a Managed Redis Database
|
|
21
|
+
* // Create a Managed Redis resource
|
|
22
|
+
* const exampleManagedDatabaseRedis = new upcloud.ManagedDatabaseRedis("exampleManagedDatabaseRedis", {
|
|
23
|
+
* title: "example",
|
|
24
|
+
* plan: "1x1xCPU-2GB",
|
|
25
|
+
* zone: "fi-hel2",
|
|
26
|
+
* });
|
|
27
|
+
* const exampleManagedDatabaseRedisSessions = upcloud.getManagedDatabaseRedisSessionsOutput({
|
|
28
|
+
* service: exampleManagedDatabaseRedis.id,
|
|
29
|
+
* });
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
function getManagedDatabaseRedisSessions(args, opts) {
|
|
33
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
34
|
+
return pulumi.runtime.invoke("upcloud:index/getManagedDatabaseRedisSessions:getManagedDatabaseRedisSessions", {
|
|
35
|
+
"limit": args.limit,
|
|
36
|
+
"offset": args.offset,
|
|
37
|
+
"order": args.order,
|
|
38
|
+
"service": args.service,
|
|
39
|
+
"sessions": args.sessions,
|
|
40
|
+
}, opts);
|
|
41
|
+
}
|
|
42
|
+
exports.getManagedDatabaseRedisSessions = getManagedDatabaseRedisSessions;
|
|
43
|
+
/**
|
|
44
|
+
* > Redis is deprecated in favor of Valkey. Please use Valkey for new key value store instances.
|
|
45
|
+
*
|
|
46
|
+
* Current sessions of a Redis managed database
|
|
47
|
+
*
|
|
48
|
+
* ## Example Usage
|
|
49
|
+
*
|
|
50
|
+
* ```typescript
|
|
51
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
52
|
+
* import * as upcloud from "@pulumi/upcloud";
|
|
53
|
+
* import * as upcloud from "@upcloud/pulumi-upcloud";
|
|
54
|
+
*
|
|
55
|
+
* // Use data source to gather a list of the active sessions for a Managed Redis Database
|
|
56
|
+
* // Create a Managed Redis resource
|
|
57
|
+
* const exampleManagedDatabaseRedis = new upcloud.ManagedDatabaseRedis("exampleManagedDatabaseRedis", {
|
|
58
|
+
* title: "example",
|
|
59
|
+
* plan: "1x1xCPU-2GB",
|
|
60
|
+
* zone: "fi-hel2",
|
|
61
|
+
* });
|
|
62
|
+
* const exampleManagedDatabaseRedisSessions = upcloud.getManagedDatabaseRedisSessionsOutput({
|
|
63
|
+
* service: exampleManagedDatabaseRedis.id,
|
|
64
|
+
* });
|
|
65
|
+
* ```
|
|
66
|
+
*/
|
|
67
|
+
function getManagedDatabaseRedisSessionsOutput(args, opts) {
|
|
68
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
69
|
+
return pulumi.runtime.invokeOutput("upcloud:index/getManagedDatabaseRedisSessions:getManagedDatabaseRedisSessions", {
|
|
70
|
+
"limit": args.limit,
|
|
71
|
+
"offset": args.offset,
|
|
72
|
+
"order": args.order,
|
|
73
|
+
"service": args.service,
|
|
74
|
+
"sessions": args.sessions,
|
|
75
|
+
}, opts);
|
|
76
|
+
}
|
|
77
|
+
exports.getManagedDatabaseRedisSessionsOutput = getManagedDatabaseRedisSessionsOutput;
|
|
78
|
+
//# sourceMappingURL=getManagedDatabaseRedisSessions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getManagedDatabaseRedisSessions.js","sourceRoot":"","sources":["../getManagedDatabaseRedisSessions.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;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,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,0EASC;AA2BD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;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,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,sFASC"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* Current sessions of a Valkey managed database
|
|
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
|
+
* // Use data source to gather a list of the active sessions for a Managed Valkey Database
|
|
15
|
+
* // Create a Managed Valkey resource
|
|
16
|
+
* const exampleManagedDatabaseValkey = new upcloud.ManagedDatabaseValkey("exampleManagedDatabaseValkey", {
|
|
17
|
+
* title: "example",
|
|
18
|
+
* plan: "1x1xCPU-2GB",
|
|
19
|
+
* zone: "fi-hel2",
|
|
20
|
+
* });
|
|
21
|
+
* const exampleManagedDatabaseValkeySessions = upcloud.getManagedDatabaseValkeySessionsOutput({
|
|
22
|
+
* service: exampleManagedDatabaseValkey.id,
|
|
23
|
+
* });
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
export declare function getManagedDatabaseValkeySessions(args: GetManagedDatabaseValkeySessionsArgs, opts?: pulumi.InvokeOptions): Promise<GetManagedDatabaseValkeySessionsResult>;
|
|
27
|
+
/**
|
|
28
|
+
* A collection of arguments for invoking getManagedDatabaseValkeySessions.
|
|
29
|
+
*/
|
|
30
|
+
export interface GetManagedDatabaseValkeySessionsArgs {
|
|
31
|
+
limit?: number;
|
|
32
|
+
offset?: number;
|
|
33
|
+
order?: string;
|
|
34
|
+
service: string;
|
|
35
|
+
sessions?: inputs.GetManagedDatabaseValkeySessionsSession[];
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* A collection of values returned by getManagedDatabaseValkeySessions.
|
|
39
|
+
*/
|
|
40
|
+
export interface GetManagedDatabaseValkeySessionsResult {
|
|
41
|
+
/**
|
|
42
|
+
* The provider-assigned unique ID for this managed resource.
|
|
43
|
+
*/
|
|
44
|
+
readonly id: string;
|
|
45
|
+
readonly limit?: number;
|
|
46
|
+
readonly offset?: number;
|
|
47
|
+
readonly order?: string;
|
|
48
|
+
readonly service: string;
|
|
49
|
+
readonly sessions: outputs.GetManagedDatabaseValkeySessionsSession[];
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Current sessions of a Valkey managed database
|
|
53
|
+
*
|
|
54
|
+
* ## Example Usage
|
|
55
|
+
*
|
|
56
|
+
* ```typescript
|
|
57
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
58
|
+
* import * as upcloud from "@pulumi/upcloud";
|
|
59
|
+
* import * as upcloud from "@upcloud/pulumi-upcloud";
|
|
60
|
+
*
|
|
61
|
+
* // Use data source to gather a list of the active sessions for a Managed Valkey Database
|
|
62
|
+
* // Create a Managed Valkey resource
|
|
63
|
+
* const exampleManagedDatabaseValkey = new upcloud.ManagedDatabaseValkey("exampleManagedDatabaseValkey", {
|
|
64
|
+
* title: "example",
|
|
65
|
+
* plan: "1x1xCPU-2GB",
|
|
66
|
+
* zone: "fi-hel2",
|
|
67
|
+
* });
|
|
68
|
+
* const exampleManagedDatabaseValkeySessions = upcloud.getManagedDatabaseValkeySessionsOutput({
|
|
69
|
+
* service: exampleManagedDatabaseValkey.id,
|
|
70
|
+
* });
|
|
71
|
+
* ```
|
|
72
|
+
*/
|
|
73
|
+
export declare function getManagedDatabaseValkeySessionsOutput(args: GetManagedDatabaseValkeySessionsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetManagedDatabaseValkeySessionsResult>;
|
|
74
|
+
/**
|
|
75
|
+
* A collection of arguments for invoking getManagedDatabaseValkeySessions.
|
|
76
|
+
*/
|
|
77
|
+
export interface GetManagedDatabaseValkeySessionsOutputArgs {
|
|
78
|
+
limit?: pulumi.Input<number>;
|
|
79
|
+
offset?: pulumi.Input<number>;
|
|
80
|
+
order?: pulumi.Input<string>;
|
|
81
|
+
service: pulumi.Input<string>;
|
|
82
|
+
sessions?: pulumi.Input<pulumi.Input<inputs.GetManagedDatabaseValkeySessionsSessionArgs>[]>;
|
|
83
|
+
}
|