1. Packages
  2. OVH
  3. API Docs
  4. CloudProject
  5. NetworkPrivateSubnet
OVHCloud v1.1.0 published on Thursday, Nov 21, 2024 by OVHcloud

ovh.CloudProject.NetworkPrivateSubnet

Explore with Pulumi AI

ovh logo
OVHCloud v1.1.0 published on Thursday, Nov 21, 2024 by OVHcloud

    Creates a subnet in a private network of a public cloud project.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ovh from "@ovhcloud/pulumi-ovh";
    
    const subnet = new ovh.cloudproject.NetworkPrivateSubnet("subnet", {
        dhcp: true,
        end: "192.168.168.200",
        network: "192.168.168.0/24",
        networkId: "0234543",
        noGateway: false,
        region: "GRA1",
        serviceName: "xxxxx",
        start: "192.168.168.100",
    });
    
    import pulumi
    import pulumi_ovh as ovh
    
    subnet = ovh.cloud_project.NetworkPrivateSubnet("subnet",
        dhcp=True,
        end="192.168.168.200",
        network="192.168.168.0/24",
        network_id="0234543",
        no_gateway=False,
        region="GRA1",
        service_name="xxxxx",
        start="192.168.168.100")
    
    package main
    
    import (
    	"github.com/ovh/pulumi-ovh/sdk/go/ovh/CloudProject"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := CloudProject.NewNetworkPrivateSubnet(ctx, "subnet", &CloudProject.NetworkPrivateSubnetArgs{
    			Dhcp:        pulumi.Bool(true),
    			End:         pulumi.String("192.168.168.200"),
    			Network:     pulumi.String("192.168.168.0/24"),
    			NetworkId:   pulumi.String("0234543"),
    			NoGateway:   pulumi.Bool(false),
    			Region:      pulumi.String("GRA1"),
    			ServiceName: pulumi.String("xxxxx"),
    			Start:       pulumi.String("192.168.168.100"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ovh = Pulumi.Ovh;
    
    return await Deployment.RunAsync(() => 
    {
        var subnet = new Ovh.CloudProject.NetworkPrivateSubnet("subnet", new()
        {
            Dhcp = true,
            End = "192.168.168.200",
            Network = "192.168.168.0/24",
            NetworkId = "0234543",
            NoGateway = false,
            Region = "GRA1",
            ServiceName = "xxxxx",
            Start = "192.168.168.100",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ovh.CloudProject.NetworkPrivateSubnet;
    import com.pulumi.ovh.CloudProject.NetworkPrivateSubnetArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var subnet = new NetworkPrivateSubnet("subnet", NetworkPrivateSubnetArgs.builder()
                .dhcp(true)
                .end("192.168.168.200")
                .network("192.168.168.0/24")
                .networkId("0234543")
                .noGateway(false)
                .region("GRA1")
                .serviceName("xxxxx")
                .start("192.168.168.100")
                .build());
    
        }
    }
    
    resources:
      subnet:
        type: ovh:CloudProject:NetworkPrivateSubnet
        properties:
          dhcp: true
          end: 192.168.168.200
          network: 192.168.168.0/24
          networkId: '0234543'
          noGateway: false
          region: GRA1
          serviceName: xxxxx
          start: 192.168.168.100
    

    Create NetworkPrivateSubnet Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new NetworkPrivateSubnet(name: string, args: NetworkPrivateSubnetArgs, opts?: CustomResourceOptions);
    @overload
    def NetworkPrivateSubnet(resource_name: str,
                             args: NetworkPrivateSubnetArgs,
                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def NetworkPrivateSubnet(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             end: Optional[str] = None,
                             network: Optional[str] = None,
                             network_id: Optional[str] = None,
                             region: Optional[str] = None,
                             service_name: Optional[str] = None,
                             start: Optional[str] = None,
                             dhcp: Optional[bool] = None,
                             no_gateway: Optional[bool] = None)
    func NewNetworkPrivateSubnet(ctx *Context, name string, args NetworkPrivateSubnetArgs, opts ...ResourceOption) (*NetworkPrivateSubnet, error)
    public NetworkPrivateSubnet(string name, NetworkPrivateSubnetArgs args, CustomResourceOptions? opts = null)
    public NetworkPrivateSubnet(String name, NetworkPrivateSubnetArgs args)
    public NetworkPrivateSubnet(String name, NetworkPrivateSubnetArgs args, CustomResourceOptions options)
    
    type: ovh:CloudProject:NetworkPrivateSubnet
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args NetworkPrivateSubnetArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args NetworkPrivateSubnetArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args NetworkPrivateSubnetArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NetworkPrivateSubnetArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args NetworkPrivateSubnetArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var networkPrivateSubnetResource = new Ovh.CloudProject.NetworkPrivateSubnet("networkPrivateSubnetResource", new()
    {
        End = "string",
        Network = "string",
        NetworkId = "string",
        Region = "string",
        ServiceName = "string",
        Start = "string",
        Dhcp = false,
        NoGateway = false,
    });
    
    example, err := CloudProject.NewNetworkPrivateSubnet(ctx, "networkPrivateSubnetResource", &CloudProject.NetworkPrivateSubnetArgs{
    	End:         pulumi.String("string"),
    	Network:     pulumi.String("string"),
    	NetworkId:   pulumi.String("string"),
    	Region:      pulumi.String("string"),
    	ServiceName: pulumi.String("string"),
    	Start:       pulumi.String("string"),
    	Dhcp:        pulumi.Bool(false),
    	NoGateway:   pulumi.Bool(false),
    })
    
    var networkPrivateSubnetResource = new NetworkPrivateSubnet("networkPrivateSubnetResource", NetworkPrivateSubnetArgs.builder()
        .end("string")
        .network("string")
        .networkId("string")
        .region("string")
        .serviceName("string")
        .start("string")
        .dhcp(false)
        .noGateway(false)
        .build());
    
    network_private_subnet_resource = ovh.cloud_project.NetworkPrivateSubnet("networkPrivateSubnetResource",
        end="string",
        network="string",
        network_id="string",
        region="string",
        service_name="string",
        start="string",
        dhcp=False,
        no_gateway=False)
    
    const networkPrivateSubnetResource = new ovh.cloudproject.NetworkPrivateSubnet("networkPrivateSubnetResource", {
        end: "string",
        network: "string",
        networkId: "string",
        region: "string",
        serviceName: "string",
        start: "string",
        dhcp: false,
        noGateway: false,
    });
    
    type: ovh:CloudProject:NetworkPrivateSubnet
    properties:
        dhcp: false
        end: string
        network: string
        networkId: string
        noGateway: false
        region: string
        serviceName: string
        start: string
    

    NetworkPrivateSubnet Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The NetworkPrivateSubnet resource accepts the following input properties:

    End string
    Last ip for this region. Changing this value recreates the subnet.
    Network string
    Global network in CIDR format. Changing this value recreates the subnet
    NetworkId string
    The id of the network. Changing this forces a new resource to be created.
    Region string
    The region in which the network subnet will be created. Ex.: "GRA1". Changing this value recreates the resource.
    ServiceName string
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    Start string
    First ip for this region. Changing this value recreates the subnet.
    Dhcp bool
    Enable DHCP. Changing this forces a new resource to be created. Defaults to false.
    NoGateway bool
    Set to true if you don't want to set a default gateway IP. Changing this value recreates the resource. Defaults to false.
    End string
    Last ip for this region. Changing this value recreates the subnet.
    Network string
    Global network in CIDR format. Changing this value recreates the subnet
    NetworkId string
    The id of the network. Changing this forces a new resource to be created.
    Region string
    The region in which the network subnet will be created. Ex.: "GRA1". Changing this value recreates the resource.
    ServiceName string
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    Start string
    First ip for this region. Changing this value recreates the subnet.
    Dhcp bool
    Enable DHCP. Changing this forces a new resource to be created. Defaults to false.
    NoGateway bool
    Set to true if you don't want to set a default gateway IP. Changing this value recreates the resource. Defaults to false.
    end String
    Last ip for this region. Changing this value recreates the subnet.
    network String
    Global network in CIDR format. Changing this value recreates the subnet
    networkId String
    The id of the network. Changing this forces a new resource to be created.
    region String
    The region in which the network subnet will be created. Ex.: "GRA1". Changing this value recreates the resource.
    serviceName String
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    start String
    First ip for this region. Changing this value recreates the subnet.
    dhcp Boolean
    Enable DHCP. Changing this forces a new resource to be created. Defaults to false.
    noGateway Boolean
    Set to true if you don't want to set a default gateway IP. Changing this value recreates the resource. Defaults to false.
    end string
    Last ip for this region. Changing this value recreates the subnet.
    network string
    Global network in CIDR format. Changing this value recreates the subnet
    networkId string
    The id of the network. Changing this forces a new resource to be created.
    region string
    The region in which the network subnet will be created. Ex.: "GRA1". Changing this value recreates the resource.
    serviceName string
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    start string
    First ip for this region. Changing this value recreates the subnet.
    dhcp boolean
    Enable DHCP. Changing this forces a new resource to be created. Defaults to false.
    noGateway boolean
    Set to true if you don't want to set a default gateway IP. Changing this value recreates the resource. Defaults to false.
    end str
    Last ip for this region. Changing this value recreates the subnet.
    network str
    Global network in CIDR format. Changing this value recreates the subnet
    network_id str
    The id of the network. Changing this forces a new resource to be created.
    region str
    The region in which the network subnet will be created. Ex.: "GRA1". Changing this value recreates the resource.
    service_name str
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    start str
    First ip for this region. Changing this value recreates the subnet.
    dhcp bool
    Enable DHCP. Changing this forces a new resource to be created. Defaults to false.
    no_gateway bool
    Set to true if you don't want to set a default gateway IP. Changing this value recreates the resource. Defaults to false.
    end String
    Last ip for this region. Changing this value recreates the subnet.
    network String
    Global network in CIDR format. Changing this value recreates the subnet
    networkId String
    The id of the network. Changing this forces a new resource to be created.
    region String
    The region in which the network subnet will be created. Ex.: "GRA1". Changing this value recreates the resource.
    serviceName String
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    start String
    First ip for this region. Changing this value recreates the subnet.
    dhcp Boolean
    Enable DHCP. Changing this forces a new resource to be created. Defaults to false.
    noGateway Boolean
    Set to true if you don't want to set a default gateway IP. Changing this value recreates the resource. Defaults to false.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the NetworkPrivateSubnet resource produces the following output properties:

    Cidr string
    Ip Block representing the subnet cidr.
    GatewayIp string
    The IP of the gateway
    Id string
    The provider-assigned unique ID for this managed resource.
    IpPools List<NetworkPrivateSubnetIpPool>
    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.
    Cidr string
    Ip Block representing the subnet cidr.
    GatewayIp string
    The IP of the gateway
    Id string
    The provider-assigned unique ID for this managed resource.
    IpPools []NetworkPrivateSubnetIpPool
    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.
    cidr String
    Ip Block representing the subnet cidr.
    gatewayIp String
    The IP of the gateway
    id String
    The provider-assigned unique ID for this managed resource.
    ipPools List<NetworkPrivateSubnetIpPool>
    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.
    cidr string
    Ip Block representing the subnet cidr.
    gatewayIp string
    The IP of the gateway
    id string
    The provider-assigned unique ID for this managed resource.
    ipPools NetworkPrivateSubnetIpPool[]
    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.
    cidr str
    Ip Block representing the subnet cidr.
    gateway_ip str
    The IP of the gateway
    id str
    The provider-assigned unique ID for this managed resource.
    ip_pools Sequence[cloudproject.NetworkPrivateSubnetIpPool]
    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.
    cidr String
    Ip Block representing the subnet cidr.
    gatewayIp String
    The IP of the gateway
    id String
    The provider-assigned unique ID for this managed resource.
    ipPools List<Property Map>
    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.

    Look up Existing NetworkPrivateSubnet Resource

    Get an existing NetworkPrivateSubnet resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: NetworkPrivateSubnetState, opts?: CustomResourceOptions): NetworkPrivateSubnet
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cidr: Optional[str] = None,
            dhcp: Optional[bool] = None,
            end: Optional[str] = None,
            gateway_ip: Optional[str] = None,
            ip_pools: Optional[Sequence[_cloudproject.NetworkPrivateSubnetIpPoolArgs]] = None,
            network: Optional[str] = None,
            network_id: Optional[str] = None,
            no_gateway: Optional[bool] = None,
            region: Optional[str] = None,
            service_name: Optional[str] = None,
            start: Optional[str] = None) -> NetworkPrivateSubnet
    func GetNetworkPrivateSubnet(ctx *Context, name string, id IDInput, state *NetworkPrivateSubnetState, opts ...ResourceOption) (*NetworkPrivateSubnet, error)
    public static NetworkPrivateSubnet Get(string name, Input<string> id, NetworkPrivateSubnetState? state, CustomResourceOptions? opts = null)
    public static NetworkPrivateSubnet get(String name, Output<String> id, NetworkPrivateSubnetState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Cidr string
    Ip Block representing the subnet cidr.
    Dhcp bool
    Enable DHCP. Changing this forces a new resource to be created. Defaults to false.
    End string
    Last ip for this region. Changing this value recreates the subnet.
    GatewayIp string
    The IP of the gateway
    IpPools List<NetworkPrivateSubnetIpPool>
    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.
    Network string
    Global network in CIDR format. Changing this value recreates the subnet
    NetworkId string
    The id of the network. Changing this forces a new resource to be created.
    NoGateway bool
    Set to true if you don't want to set a default gateway IP. Changing this value recreates the resource. Defaults to false.
    Region string
    The region in which the network subnet will be created. Ex.: "GRA1". Changing this value recreates the resource.
    ServiceName string
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    Start string
    First ip for this region. Changing this value recreates the subnet.
    Cidr string
    Ip Block representing the subnet cidr.
    Dhcp bool
    Enable DHCP. Changing this forces a new resource to be created. Defaults to false.
    End string
    Last ip for this region. Changing this value recreates the subnet.
    GatewayIp string
    The IP of the gateway
    IpPools []NetworkPrivateSubnetIpPoolArgs
    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.
    Network string
    Global network in CIDR format. Changing this value recreates the subnet
    NetworkId string
    The id of the network. Changing this forces a new resource to be created.
    NoGateway bool
    Set to true if you don't want to set a default gateway IP. Changing this value recreates the resource. Defaults to false.
    Region string
    The region in which the network subnet will be created. Ex.: "GRA1". Changing this value recreates the resource.
    ServiceName string
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    Start string
    First ip for this region. Changing this value recreates the subnet.
    cidr String
    Ip Block representing the subnet cidr.
    dhcp Boolean
    Enable DHCP. Changing this forces a new resource to be created. Defaults to false.
    end String
    Last ip for this region. Changing this value recreates the subnet.
    gatewayIp String
    The IP of the gateway
    ipPools List<NetworkPrivateSubnetIpPool>
    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.
    network String
    Global network in CIDR format. Changing this value recreates the subnet
    networkId String
    The id of the network. Changing this forces a new resource to be created.
    noGateway Boolean
    Set to true if you don't want to set a default gateway IP. Changing this value recreates the resource. Defaults to false.
    region String
    The region in which the network subnet will be created. Ex.: "GRA1". Changing this value recreates the resource.
    serviceName String
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    start String
    First ip for this region. Changing this value recreates the subnet.
    cidr string
    Ip Block representing the subnet cidr.
    dhcp boolean
    Enable DHCP. Changing this forces a new resource to be created. Defaults to false.
    end string
    Last ip for this region. Changing this value recreates the subnet.
    gatewayIp string
    The IP of the gateway
    ipPools NetworkPrivateSubnetIpPool[]
    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.
    network string
    Global network in CIDR format. Changing this value recreates the subnet
    networkId string
    The id of the network. Changing this forces a new resource to be created.
    noGateway boolean
    Set to true if you don't want to set a default gateway IP. Changing this value recreates the resource. Defaults to false.
    region string
    The region in which the network subnet will be created. Ex.: "GRA1". Changing this value recreates the resource.
    serviceName string
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    start string
    First ip for this region. Changing this value recreates the subnet.
    cidr str
    Ip Block representing the subnet cidr.
    dhcp bool
    Enable DHCP. Changing this forces a new resource to be created. Defaults to false.
    end str
    Last ip for this region. Changing this value recreates the subnet.
    gateway_ip str
    The IP of the gateway
    ip_pools Sequence[cloudproject.NetworkPrivateSubnetIpPoolArgs]
    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.
    network str
    Global network in CIDR format. Changing this value recreates the subnet
    network_id str
    The id of the network. Changing this forces a new resource to be created.
    no_gateway bool
    Set to true if you don't want to set a default gateway IP. Changing this value recreates the resource. Defaults to false.
    region str
    The region in which the network subnet will be created. Ex.: "GRA1". Changing this value recreates the resource.
    service_name str
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    start str
    First ip for this region. Changing this value recreates the subnet.
    cidr String
    Ip Block representing the subnet cidr.
    dhcp Boolean
    Enable DHCP. Changing this forces a new resource to be created. Defaults to false.
    end String
    Last ip for this region. Changing this value recreates the subnet.
    gatewayIp String
    The IP of the gateway
    ipPools List<Property Map>
    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.
    network String
    Global network in CIDR format. Changing this value recreates the subnet
    networkId String
    The id of the network. Changing this forces a new resource to be created.
    noGateway Boolean
    Set to true if you don't want to set a default gateway IP. Changing this value recreates the resource. Defaults to false.
    region String
    The region in which the network subnet will be created. Ex.: "GRA1". Changing this value recreates the resource.
    serviceName String
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    start String
    First ip for this region. Changing this value recreates the subnet.

    Supporting Types

    NetworkPrivateSubnetIpPool, NetworkPrivateSubnetIpPoolArgs

    Dhcp bool
    Enable DHCP. Changing this forces a new resource to be created. Defaults to false.
    End string
    Last ip for this region. Changing this value recreates the subnet.
    Network string
    Global network in CIDR format. Changing this value recreates the subnet
    Region string
    The region in which the network subnet will be created. Ex.: "GRA1". Changing this value recreates the resource.
    Start string
    First ip for this region. Changing this value recreates the subnet.
    Dhcp bool
    Enable DHCP. Changing this forces a new resource to be created. Defaults to false.
    End string
    Last ip for this region. Changing this value recreates the subnet.
    Network string
    Global network in CIDR format. Changing this value recreates the subnet
    Region string
    The region in which the network subnet will be created. Ex.: "GRA1". Changing this value recreates the resource.
    Start string
    First ip for this region. Changing this value recreates the subnet.
    dhcp Boolean
    Enable DHCP. Changing this forces a new resource to be created. Defaults to false.
    end String
    Last ip for this region. Changing this value recreates the subnet.
    network String
    Global network in CIDR format. Changing this value recreates the subnet
    region String
    The region in which the network subnet will be created. Ex.: "GRA1". Changing this value recreates the resource.
    start String
    First ip for this region. Changing this value recreates the subnet.
    dhcp boolean
    Enable DHCP. Changing this forces a new resource to be created. Defaults to false.
    end string
    Last ip for this region. Changing this value recreates the subnet.
    network string
    Global network in CIDR format. Changing this value recreates the subnet
    region string
    The region in which the network subnet will be created. Ex.: "GRA1". Changing this value recreates the resource.
    start string
    First ip for this region. Changing this value recreates the subnet.
    dhcp bool
    Enable DHCP. Changing this forces a new resource to be created. Defaults to false.
    end str
    Last ip for this region. Changing this value recreates the subnet.
    network str
    Global network in CIDR format. Changing this value recreates the subnet
    region str
    The region in which the network subnet will be created. Ex.: "GRA1". Changing this value recreates the resource.
    start str
    First ip for this region. Changing this value recreates the subnet.
    dhcp Boolean
    Enable DHCP. Changing this forces a new resource to be created. Defaults to false.
    end String
    Last ip for this region. Changing this value recreates the subnet.
    network String
    Global network in CIDR format. Changing this value recreates the subnet
    region String
    The region in which the network subnet will be created. Ex.: "GRA1". Changing this value recreates the resource.
    start String
    First ip for this region. Changing this value recreates the subnet.

    Import

    Subnet in a private network of a public cloud project can be imported using the service_name , the network_id and the subnet_id, separated by “/” E.g.,

    bash

    $ pulumi import ovh:CloudProject/networkPrivateSubnet:NetworkPrivateSubnet mysubnet ookie9mee8Shaeghaeleeju7Xeghohv6e/pn-12345678/0f0b73a4-403b-45e4-86d0-b438f1291909
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    ovh ovh/pulumi-ovh
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the ovh Terraform Provider.
    ovh logo
    OVHCloud v1.1.0 published on Thursday, Nov 21, 2024 by OVHcloud