import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Creates a private network in a public cloud project. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const net = new ovh.cloudproject.NetworkPrivate("net", { * serviceName: "XXXXXX", * name: "admin_network", * regions: [ * "GRA1", * "BHS1", * ], * }); * ``` * * ## Import * * Private network in a public cloud project can be imported using the `service_name` and the `network_id` as `pn-xxxx` format, separated by "/" E.g., * * bash * * ```sh * $ pulumi import ovh:CloudProject/networkPrivate:NetworkPrivate mynet service_name/network_id * ``` */ export declare class NetworkPrivate extends pulumi.CustomResource { /** * Get an existing NetworkPrivate resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: NetworkPrivateState, opts?: pulumi.CustomResourceOptions): NetworkPrivate; /** * Returns true if the given object is an instance of NetworkPrivate. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is NetworkPrivate; /** * The name of the network. */ readonly name: pulumi.Output; /** * an array of valid OVHcloud public cloud region ID in which the network will be available. Ex.: "GRA1". Defaults to all public cloud regions. */ readonly regions: pulumi.Output; /** * A map representing information about the region. * * `regions_attributes/region` - The id of the region. * * `regions_attributes/status` - The status of the network in the region. * * `regions_attributes/openstackid` - The private network id in the region. */ readonly regionsAttributes: pulumi.Output; /** * A map with region name as key, and region-specific openstack id as value */ readonly regionsOpenstackIds: pulumi.Output<{ [key: string]: string; }>; /** * (Deprecated) A map representing the status of the network per region. * * `regions_status/region` - (Deprecated) The id of the region. * * `regions_status/status` - (Deprecated) The status of the network in the region. * * @deprecated use the regionsAttributes field instead */ readonly regionsStatuses: pulumi.Output; /** * The id of the public cloud project. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. */ readonly serviceName: pulumi.Output; /** * the status of the network. should be normally set to 'ACTIVE'. */ readonly status: pulumi.Output; /** * the type of the network. Either 'private' or 'public'. */ readonly type: pulumi.Output; /** * a vlan id to associate with the network. Changing this value recreates the resource. Defaults to 0. */ readonly vlanId: pulumi.Output; /** * Create a NetworkPrivate resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args?: NetworkPrivateArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering NetworkPrivate resources. */ export interface NetworkPrivateState { /** * The name of the network. */ name?: pulumi.Input; /** * an array of valid OVHcloud public cloud region ID in which the network will be available. Ex.: "GRA1". Defaults to all public cloud regions. */ regions?: pulumi.Input[]>; /** * A map representing information about the region. * * `regions_attributes/region` - The id of the region. * * `regions_attributes/status` - The status of the network in the region. * * `regions_attributes/openstackid` - The private network id in the region. */ regionsAttributes?: pulumi.Input[]>; /** * A map with region name as key, and region-specific openstack id as value */ regionsOpenstackIds?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * (Deprecated) A map representing the status of the network per region. * * `regions_status/region` - (Deprecated) The id of the region. * * `regions_status/status` - (Deprecated) The status of the network in the region. * * @deprecated use the regionsAttributes field instead */ regionsStatuses?: pulumi.Input[]>; /** * The id of the public cloud project. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. */ serviceName?: pulumi.Input; /** * the status of the network. should be normally set to 'ACTIVE'. */ status?: pulumi.Input; /** * the type of the network. Either 'private' or 'public'. */ type?: pulumi.Input; /** * a vlan id to associate with the network. Changing this value recreates the resource. Defaults to 0. */ vlanId?: pulumi.Input; } /** * The set of arguments for constructing a NetworkPrivate resource. */ export interface NetworkPrivateArgs { /** * The name of the network. */ name?: pulumi.Input; /** * an array of valid OVHcloud public cloud region ID in which the network will be available. Ex.: "GRA1". Defaults to all public cloud regions. */ regions?: pulumi.Input[]>; /** * The id of the public cloud project. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. */ serviceName?: pulumi.Input; /** * a vlan id to associate with the network. Changing this value recreates the resource. Defaults to 0. */ vlanId?: pulumi.Input; }