import * as pulumi from "@pulumi/pulumi"; /** * > **DEPRECATED** Use `ipRestrictions` field in `ovh.CloudProject.Database` resource instead. * * > **NOTE** This resource is only compatible with the following engines: **cassandra, grafana, kafka, kakfaConnect, m3db, mongodb, mysql, opensearch, postgres, redis** * * Use this data source to get the list of IP restrictions associated with a public cloud project. * * ## Example Usage * * To get the list of IP restriction on a database cluster service: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const ipRestrictions = ovh.CloudProjectDatabase.getIpRestrictions({ * serviceName: "XXXXXX", * engine: "YYYY", * clusterId: "ZZZZ", * }); * export const ips = ipRestrictions.then(ipRestrictions => ipRestrictions.ips); * ``` */ export declare function getIpRestrictions(args: GetIpRestrictionsArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getIpRestrictions. */ export interface GetIpRestrictionsArgs { /** * Cluster ID */ clusterId: string; /** * The engine of the database cluster you want to list IP restrictions. 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 getIpRestrictions. */ export interface GetIpRestrictionsResult { /** * See Argument Reference above. */ readonly clusterId: string; /** * See Argument Reference above. */ readonly engine: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * The list of IP restriction of the database associated with the project. */ readonly ips: string[]; /** * See Argument Reference above. */ readonly serviceName: string; } /** * > **DEPRECATED** Use `ipRestrictions` field in `ovh.CloudProject.Database` resource instead. * * > **NOTE** This resource is only compatible with the following engines: **cassandra, grafana, kafka, kakfaConnect, m3db, mongodb, mysql, opensearch, postgres, redis** * * Use this data source to get the list of IP restrictions associated with a public cloud project. * * ## Example Usage * * To get the list of IP restriction on a database cluster service: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const ipRestrictions = ovh.CloudProjectDatabase.getIpRestrictions({ * serviceName: "XXXXXX", * engine: "YYYY", * clusterId: "ZZZZ", * }); * export const ips = ipRestrictions.then(ipRestrictions => ipRestrictions.ips); * ``` */ export declare function getIpRestrictionsOutput(args: GetIpRestrictionsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getIpRestrictions. */ export interface GetIpRestrictionsOutputArgs { /** * Cluster ID */ clusterId: pulumi.Input; /** * The engine of the database cluster you want to list IP restrictions. 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; }