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 project. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const subnet = new ovh.cloudproject.NetworkPrivateSubnet("subnet", { * serviceName: "xxxxx", * networkId: "0234543", * region: "GRA1", * start: "192.168.168.100", * end: "192.168.168.200", * network: "192.168.168.0/24", * dhcp: true, * noGateway: false, * }); * ``` * * ## Import * * Subnet in a private network of a public cloud project can be imported using the `service_name` , the `network_id` as `pn-xxxx` format and the `subnet_id`, separated by "/" E.g., * * bash * * ```sh * $ pulumi import ovh:CloudProject/networkPrivateSubnet:NetworkPrivateSubnet mysubnet service_name/network_id/subnet_id * ``` */ export declare class NetworkPrivateSubnet extends pulumi.CustomResource { /** * Get an existing NetworkPrivateSubnet 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?: NetworkPrivateSubnetState, opts?: pulumi.CustomResourceOptions): NetworkPrivateSubnet; /** * Returns true if the given object is an instance of NetworkPrivateSubnet. 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 NetworkPrivateSubnet; /** * Ip Block representing the subnet cidr. */ readonly cidr: pulumi.Output; /** * Enable DHCP. Changing this forces a new resource to be created. Defaults to false. */ readonly dhcp: pulumi.Output; /** * Last ip for this region. Changing this value recreates the subnet. */ readonly end: pulumi.Output; /** * The IP of the gateway */ readonly gatewayIp: pulumi.Output; /** * List of ip pools allocated in the subnet. * * `ip_pools/network` - Global network with cidr. * * `ip_pools/region` - Region where this subnet is created. * * `ip_pools/dhcp` - DHCP enabled. * * `ip_pools/end` - Last ip for this region. * * `ip_pools/start` - First ip for this region. */ readonly ipPools: pulumi.Output; /** * Global network in CIDR format. Changing this value recreates the subnet */ readonly network: pulumi.Output; /** * The id of the network. Changing this forces a new resource to be created. */ readonly networkId: pulumi.Output; /** * Set to true if you don't want to set a default gateway IP. Changing this value recreates the resource. Defaults to false. */ readonly noGateway: 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; /** * First ip for this region. Changing this value recreates the subnet. */ readonly start: pulumi.Output; /** * Create a NetworkPrivateSubnet 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: NetworkPrivateSubnetArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering NetworkPrivateSubnet resources. */ export interface NetworkPrivateSubnetState { /** * Ip Block representing the subnet cidr. */ cidr?: pulumi.Input; /** * Enable DHCP. Changing this forces a new resource to be created. Defaults to false. */ dhcp?: pulumi.Input; /** * Last ip for this region. Changing this value recreates the subnet. */ end?: pulumi.Input; /** * The IP of the gateway */ gatewayIp?: pulumi.Input; /** * List of ip pools allocated in the subnet. * * `ip_pools/network` - Global network with cidr. * * `ip_pools/region` - Region where this subnet is created. * * `ip_pools/dhcp` - DHCP enabled. * * `ip_pools/end` - Last ip for this region. * * `ip_pools/start` - First ip for this region. */ ipPools?: pulumi.Input[]>; /** * Global network in CIDR format. Changing this value recreates the subnet */ network?: pulumi.Input; /** * The id of the network. Changing this forces a new resource to be created. */ networkId?: pulumi.Input; /** * Set to true if you don't want to set a default gateway IP. Changing this value recreates the resource. Defaults to false. */ noGateway?: 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; /** * First ip for this region. Changing this value recreates the subnet. */ start?: pulumi.Input; } /** * The set of arguments for constructing a NetworkPrivateSubnet resource. */ export interface NetworkPrivateSubnetArgs { /** * Enable DHCP. Changing this forces a new resource to be created. Defaults to false. */ dhcp?: pulumi.Input; /** * Last ip for this region. Changing this value recreates the subnet. */ end: pulumi.Input; /** * Global network in CIDR format. Changing this value recreates the subnet */ network: pulumi.Input; /** * The id of the network. Changing this forces a new resource to be created. */ networkId: pulumi.Input; /** * Set to true if you don't want to set a default gateway IP. Changing this value recreates the resource. Defaults to false. */ noGateway?: 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; /** * First ip for this region. Changing this value recreates the subnet. */ start: pulumi.Input; }