UNPKG

@upcloud/pulumi-upcloud

Version:

A Pulumi package for creating and managing UpCloud resources.

76 lines 2.95 kB
"use strict"; // *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.getManagedDatabaseMysqlSessionsOutput = exports.getManagedDatabaseMysqlSessions = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Current sessions of a MySQL managed database * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as upcloud from "@upcloud/pulumi-upcloud"; * * // Use data source to gather a list of the active sessions for a Managed MySQL Database * // Create a Managed MySQL resource * const exampleManagedDatabaseMysql = new upcloud.ManagedDatabaseMysql("example", { * name: "mysql-example1", * title: "mysql-example1", * plan: "1x1xCPU-2GB-25GB", * zone: "fi-hel1", * }); * // Read the active sessions of the newly created service * const example = upcloud.getManagedDatabaseMysqlSessionsOutput({ * service: exampleManagedDatabaseMysql.id, * }); * ``` */ function getManagedDatabaseMysqlSessions(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("upcloud:index/getManagedDatabaseMysqlSessions:getManagedDatabaseMysqlSessions", { "limit": args.limit, "offset": args.offset, "order": args.order, "service": args.service, "sessions": args.sessions, }, opts); } exports.getManagedDatabaseMysqlSessions = getManagedDatabaseMysqlSessions; /** * Current sessions of a MySQL managed database * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as upcloud from "@upcloud/pulumi-upcloud"; * * // Use data source to gather a list of the active sessions for a Managed MySQL Database * // Create a Managed MySQL resource * const exampleManagedDatabaseMysql = new upcloud.ManagedDatabaseMysql("example", { * name: "mysql-example1", * title: "mysql-example1", * plan: "1x1xCPU-2GB-25GB", * zone: "fi-hel1", * }); * // Read the active sessions of the newly created service * const example = upcloud.getManagedDatabaseMysqlSessionsOutput({ * service: exampleManagedDatabaseMysql.id, * }); * ``` */ function getManagedDatabaseMysqlSessionsOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("upcloud:index/getManagedDatabaseMysqlSessions:getManagedDatabaseMysqlSessions", { "limit": args.limit, "offset": args.offset, "order": args.order, "service": args.service, "sessions": args.sessions, }, opts); } exports.getManagedDatabaseMysqlSessionsOutput = getManagedDatabaseMysqlSessionsOutput; //# sourceMappingURL=getManagedDatabaseMysqlSessions.js.map