import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * 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, * }); * ``` */ export declare function getManagedDatabaseMysqlSessions(args: GetManagedDatabaseMysqlSessionsArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getManagedDatabaseMysqlSessions. */ export interface GetManagedDatabaseMysqlSessionsArgs { limit?: number; offset?: number; order?: string; service: string; sessions?: inputs.GetManagedDatabaseMysqlSessionsSession[]; } /** * A collection of values returned by getManagedDatabaseMysqlSessions. */ export interface GetManagedDatabaseMysqlSessionsResult { /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly limit?: number; readonly offset?: number; readonly order?: string; readonly service: string; readonly sessions: outputs.GetManagedDatabaseMysqlSessionsSession[]; } /** * 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, * }); * ``` */ export declare function getManagedDatabaseMysqlSessionsOutput(args: GetManagedDatabaseMysqlSessionsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getManagedDatabaseMysqlSessions. */ export interface GetManagedDatabaseMysqlSessionsOutputArgs { limit?: pulumi.Input; offset?: pulumi.Input; order?: pulumi.Input; service: pulumi.Input; sessions?: pulumi.Input[]>; }