import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Use this data source to get the managed database of a public cloud project. * * ## Example Usage * * To get information of a database cluster service: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const db = ovh.CloudProjectDatabase.getDatabase({ * serviceName: "XXXXXX", * engine: "YYYY", * id: "ZZZZ", * }); * export const clusterId = db.then(db => db.id); * ``` */ export declare function getDatabase(args: GetDatabaseArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getDatabase. */ export interface GetDatabaseArgs { /** * The database engine you want to get information. To get a full list of available engine visit: [public documentation](https://docs.ovh.com/gb/en/publiccloud/databases). */ engine: string; /** * Cluster ID */ id: 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 getDatabase. */ export interface GetDatabaseResult { /** * Advanced configuration key / value. */ readonly advancedConfiguration: { [key: string]: string; }; /** * List of region where backups are pushed. */ readonly backupRegions: string[]; /** * Time on which backups start every day. */ readonly backupTime: string; /** * Date of the creation of the cluster. */ readonly createdAt: string; /** * Enable deletion protection */ readonly deletionProtection: boolean; /** * Description of the IP restriction */ readonly description: string; /** * The disk size (in GB) of the database service. */ readonly diskSize: number; /** * The disk type of the database service. */ readonly diskType: string; /** * List of all endpoints objects of the service. */ readonly endpoints: outputs.CloudProjectDatabase.GetDatabaseEndpoint[]; /** * See Argument Reference above. */ readonly engine: string; /** * A valid OVHcloud public cloud database flavor name in which the nodes will be started. */ readonly flavor: string; /** * See Argument Reference above. */ readonly id: string; /** * IP Blocks authorized to access to the cluster. */ readonly ipRestrictions: outputs.CloudProjectDatabase.GetDatabaseIpRestriction[]; /** * Defines whether the REST API is enabled on a kafka cluster. */ readonly kafkaRestApi: boolean; /** * Defines whether the schema registry is enabled on a Kafka cluster */ readonly kafkaSchemaRegistry: boolean; /** * Time on which maintenances can start every day. */ readonly maintenanceTime: string; /** * Type of network of the cluster. */ readonly networkType: string; /** * List of nodes object. */ readonly nodes: outputs.CloudProjectDatabase.GetDatabaseNode[]; readonly opensearchAclsEnabled: boolean; /** * Plan of the cluster. */ readonly plan: string; /** * See Argument Reference above. */ readonly serviceName: string; /** * Current status of the cluster. */ readonly status: string; /** * The version of the engine in which the service should be deployed */ readonly version: string; } /** * Use this data source to get the managed database of a public cloud project. * * ## Example Usage * * To get information of a database cluster service: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const db = ovh.CloudProjectDatabase.getDatabase({ * serviceName: "XXXXXX", * engine: "YYYY", * id: "ZZZZ", * }); * export const clusterId = db.then(db => db.id); * ``` */ export declare function getDatabaseOutput(args: GetDatabaseOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getDatabase. */ export interface GetDatabaseOutputArgs { /** * The database engine you want to get information. To get a full list of available engine visit: [public documentation](https://docs.ovh.com/gb/en/publiccloud/databases). */ engine: pulumi.Input; /** * Cluster ID */ id: pulumi.Input; /** * The id of the public cloud project. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. */ serviceName: pulumi.Input; }