import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Creates a subnet in a private network of a public cloud region. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const subnet = new ovh.cloudproject.NetworkPrivateSubnetV2("subnet", { * serviceName: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", * networkId: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", * name: "my_private_subnet", * region: "XXX1", * dnsNameservers: ["1.1.1.1"], * cidr: "192.168.168.0/24", * dhcp: true, * enableGatewayIp: true, * useDefaultPublicDnsResolver: false, * }); * ``` * * ## Import * * Subnet in a private network of a public cloud project can be imported using the `service_name`, `region`, `network_id` and `subnet_id`, separated by "/" E.g., * * bash * * ```sh * $ pulumi import ovh:CloudProject/networkPrivateSubnetV2:NetworkPrivateSubnetV2 mysubnet 5ceb661434891538b54a4f2c66fc4b746e/BHS5/25807101-8aaa-4ea5-b507-61f0d661b101/0f0b73a4-403b-45e4-86d0-b438f1291909 * ``` */ export declare class NetworkPrivateSubnetV2 extends pulumi.CustomResource { /** * Get an existing NetworkPrivateSubnetV2 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?: NetworkPrivateSubnetV2State, opts?: pulumi.CustomResourceOptions): NetworkPrivateSubnetV2; /** * Returns true if the given object is an instance of NetworkPrivateSubnetV2. 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 NetworkPrivateSubnetV2; /** * List of IP allocation pools Changing this value recreates the resource. */ readonly allocationPools: pulumi.Output; /** * IP range of the subnet Changing this value recreates the subnet. */ readonly cidr: pulumi.Output; /** * Enable DHCP. Changing this forces a new resource to be created. Defaults to true. */ readonly dhcp: pulumi.Output; /** * DNS nameservers used by DHCP Changing this value recreates the resource. Defaults to OVH default DNS nameserver. */ readonly dnsNameservers: pulumi.Output; /** * Set to true if you want to set a default gateway IP. Changing this value recreates the resource. Defaults to true. */ readonly enableGatewayIp: pulumi.Output; /** * The IP of the gateway used by the subnet. If not provided, it is computed automatically. Changing this value recreates the resource. */ readonly gatewayIp: pulumi.Output; /** * List of custom host routes. Changing this value recreates the resource. */ readonly hostRoutes: pulumi.Output; /** * Name of the subnet Changing this value recreates the subnet. */ readonly name: pulumi.Output; /** * The id of the network. Changing this forces a new resource to be created. */ readonly networkId: pulumi.Output; /** * The region in which the network subnet will be created. Ex.: "GRA1". Changing this value recreates the resource. */ readonly region: pulumi.Output; /** * The id of the public cloud project. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. */ readonly serviceName: pulumi.Output; /** * Set to false if you want to use your DNS resolver. Changing this value recreates the resource. */ readonly useDefaultPublicDnsResolver: pulumi.Output; /** * Create a NetworkPrivateSubnetV2 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: NetworkPrivateSubnetV2Args, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering NetworkPrivateSubnetV2 resources. */ export interface NetworkPrivateSubnetV2State { /** * List of IP allocation pools Changing this value recreates the resource. */ allocationPools?: pulumi.Input[]>; /** * IP range of the subnet Changing this value recreates the subnet. */ cidr?: pulumi.Input; /** * Enable DHCP. Changing this forces a new resource to be created. Defaults to true. */ dhcp?: pulumi.Input; /** * DNS nameservers used by DHCP Changing this value recreates the resource. Defaults to OVH default DNS nameserver. */ dnsNameservers?: pulumi.Input[]>; /** * Set to true if you want to set a default gateway IP. Changing this value recreates the resource. Defaults to true. */ enableGatewayIp?: pulumi.Input; /** * The IP of the gateway used by the subnet. If not provided, it is computed automatically. Changing this value recreates the resource. */ gatewayIp?: pulumi.Input; /** * List of custom host routes. Changing this value recreates the resource. */ hostRoutes?: pulumi.Input[]>; /** * Name of the subnet Changing this value recreates the subnet. */ name?: pulumi.Input; /** * The id of the network. Changing this forces a new resource to be created. */ networkId?: pulumi.Input; /** * The region in which the network subnet will be created. Ex.: "GRA1". Changing this value recreates the resource. */ region?: pulumi.Input; /** * The id of the public cloud project. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. */ serviceName?: pulumi.Input; /** * Set to false if you want to use your DNS resolver. Changing this value recreates the resource. */ useDefaultPublicDnsResolver?: pulumi.Input; } /** * The set of arguments for constructing a NetworkPrivateSubnetV2 resource. */ export interface NetworkPrivateSubnetV2Args { /** * List of IP allocation pools Changing this value recreates the resource. */ allocationPools?: pulumi.Input[]>; /** * IP range of the subnet Changing this value recreates the subnet. */ cidr: pulumi.Input; /** * Enable DHCP. Changing this forces a new resource to be created. Defaults to true. */ dhcp?: pulumi.Input; /** * DNS nameservers used by DHCP Changing this value recreates the resource. Defaults to OVH default DNS nameserver. */ dnsNameservers?: pulumi.Input[]>; /** * Set to true if you want to set a default gateway IP. Changing this value recreates the resource. Defaults to true. */ enableGatewayIp?: pulumi.Input; /** * The IP of the gateway used by the subnet. If not provided, it is computed automatically. Changing this value recreates the resource. */ gatewayIp?: pulumi.Input; /** * List of custom host routes. Changing this value recreates the resource. */ hostRoutes?: pulumi.Input[]>; /** * Name of the subnet Changing this value recreates the subnet. */ name?: pulumi.Input; /** * The id of the network. Changing this forces a new resource to be created. */ networkId: pulumi.Input; /** * The region in which the network subnet will be created. Ex.: "GRA1". Changing this value recreates the resource. */ region: pulumi.Input; /** * The id of the public cloud project. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. */ serviceName?: pulumi.Input; /** * Set to false if you want to use your DNS resolver. Changing this value recreates the resource. */ useDefaultPublicDnsResolver?: pulumi.Input; }