import * as pulumi from "@pulumi/pulumi"; /** * Use this data source to get the list of managed databases of a public cloud project. * * ## Example Usage * * To get the list of database clusters service for a given engine: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const dbs = ovh.CloudProjectDatabase.getDatabases({ * serviceName: "XXXXXX", * engine: "YYYY", * }); * export const clusterIds = dbs.then(dbs => dbs.clusterIds); * ``` */ export declare function getDatabases(args: GetDatabasesArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getDatabases. */ export interface GetDatabasesArgs { /** * The database engine you want to list. To get a full list of available engine visit: [public documentation](https://docs.ovh.com/gb/en/publiccloud/databases). */ engine: string; /** * The id of the public cloud project. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. */ serviceName: string; } /** * A collection of values returned by getDatabases. */ export interface GetDatabasesResult { /** * The list of managed databases ids of the project. */ readonly clusterIds: string[]; /** * See Argument Reference above. */ readonly engine: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * See Argument Reference above. */ readonly serviceName: string; } /** * Use this data source to get the list of managed databases of a public cloud project. * * ## Example Usage * * To get the list of database clusters service for a given engine: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const dbs = ovh.CloudProjectDatabase.getDatabases({ * serviceName: "XXXXXX", * engine: "YYYY", * }); * export const clusterIds = dbs.then(dbs => dbs.clusterIds); * ``` */ export declare function getDatabasesOutput(args: GetDatabasesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getDatabases. */ export interface GetDatabasesOutputArgs { /** * The database engine you want to list. To get a full list of available engine visit: [public documentation](https://docs.ovh.com/gb/en/publiccloud/databases). */ engine: pulumi.Input; /** * The id of the public cloud project. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. */ serviceName: pulumi.Input; }