1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. NetworkingNetworkV2
opentelekomcloud 1.36.35 published on Monday, Apr 14, 2025 by opentelekomcloud

opentelekomcloud.NetworkingNetworkV2

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.35 published on Monday, Apr 14, 2025 by opentelekomcloud

    Up-to-date reference of API arguments for VPC network you can get at documentation portal

    Manages a V2 Neutron network resource within OpenTelekomCloud.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const network1 = new opentelekomcloud.NetworkingNetworkV2("network1", {adminStateUp: "true"});
    const subnet1 = new opentelekomcloud.NetworkingSubnetV2("subnet1", {
        networkId: network1.networkingNetworkV2Id,
        cidr: "192.168.199.0/24",
        ipVersion: 4,
    });
    const secgroup1 = new opentelekomcloud.ComputeSecgroupV2("secgroup1", {
        description: "a security group",
        rules: [{
            fromPort: 22,
            toPort: 22,
            ipProtocol: "tcp",
            cidr: "0.0.0.0/0",
        }],
    });
    const port1 = new opentelekomcloud.NetworkingPortV2("port1", {
        networkId: network1.networkingNetworkV2Id,
        adminStateUp: true,
        securityGroupIds: [secgroup1.computeSecgroupV2Id],
        fixedIp: {
            subnetId: subnet1.networkingSubnetV2Id,
            ipAddress: "192.168.199.10",
        },
    });
    const instance1 = new opentelekomcloud.ComputeInstanceV2("instance1", {
        securityGroups: [secgroup1.name],
        networks: [{
            port: port1.networkingPortV2Id,
        }],
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    network1 = opentelekomcloud.NetworkingNetworkV2("network1", admin_state_up="true")
    subnet1 = opentelekomcloud.NetworkingSubnetV2("subnet1",
        network_id=network1.networking_network_v2_id,
        cidr="192.168.199.0/24",
        ip_version=4)
    secgroup1 = opentelekomcloud.ComputeSecgroupV2("secgroup1",
        description="a security group",
        rules=[{
            "from_port": 22,
            "to_port": 22,
            "ip_protocol": "tcp",
            "cidr": "0.0.0.0/0",
        }])
    port1 = opentelekomcloud.NetworkingPortV2("port1",
        network_id=network1.networking_network_v2_id,
        admin_state_up=True,
        security_group_ids=[secgroup1.compute_secgroup_v2_id],
        fixed_ip={
            "subnet_id": subnet1.networking_subnet_v2_id,
            "ip_address": "192.168.199.10",
        })
    instance1 = opentelekomcloud.ComputeInstanceV2("instance1",
        security_groups=[secgroup1.name],
        networks=[{
            "port": port1.networking_port_v2_id,
        }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		network1, err := opentelekomcloud.NewNetworkingNetworkV2(ctx, "network1", &opentelekomcloud.NetworkingNetworkV2Args{
    			AdminStateUp: pulumi.String("true"),
    		})
    		if err != nil {
    			return err
    		}
    		subnet1, err := opentelekomcloud.NewNetworkingSubnetV2(ctx, "subnet1", &opentelekomcloud.NetworkingSubnetV2Args{
    			NetworkId: network1.NetworkingNetworkV2Id,
    			Cidr:      pulumi.String("192.168.199.0/24"),
    			IpVersion: pulumi.Float64(4),
    		})
    		if err != nil {
    			return err
    		}
    		secgroup1, err := opentelekomcloud.NewComputeSecgroupV2(ctx, "secgroup1", &opentelekomcloud.ComputeSecgroupV2Args{
    			Description: pulumi.String("a security group"),
    			Rules: opentelekomcloud.ComputeSecgroupV2RuleArray{
    				&opentelekomcloud.ComputeSecgroupV2RuleArgs{
    					FromPort:   pulumi.Float64(22),
    					ToPort:     pulumi.Float64(22),
    					IpProtocol: pulumi.String("tcp"),
    					Cidr:       pulumi.String("0.0.0.0/0"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		port1, err := opentelekomcloud.NewNetworkingPortV2(ctx, "port1", &opentelekomcloud.NetworkingPortV2Args{
    			NetworkId:    network1.NetworkingNetworkV2Id,
    			AdminStateUp: pulumi.Bool(true),
    			SecurityGroupIds: pulumi.StringArray{
    				secgroup1.ComputeSecgroupV2Id,
    			},
    			FixedIp: &opentelekomcloud.NetworkingPortV2FixedIpArgs{
    				SubnetId:  subnet1.NetworkingSubnetV2Id,
    				IpAddress: pulumi.String("192.168.199.10"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = opentelekomcloud.NewComputeInstanceV2(ctx, "instance1", &opentelekomcloud.ComputeInstanceV2Args{
    			SecurityGroups: pulumi.StringArray{
    				secgroup1.Name,
    			},
    			Networks: opentelekomcloud.ComputeInstanceV2NetworkArray{
    				&opentelekomcloud.ComputeInstanceV2NetworkArgs{
    					Port: port1.NetworkingPortV2Id,
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var network1 = new Opentelekomcloud.NetworkingNetworkV2("network1", new()
        {
            AdminStateUp = "true",
        });
    
        var subnet1 = new Opentelekomcloud.NetworkingSubnetV2("subnet1", new()
        {
            NetworkId = network1.NetworkingNetworkV2Id,
            Cidr = "192.168.199.0/24",
            IpVersion = 4,
        });
    
        var secgroup1 = new Opentelekomcloud.ComputeSecgroupV2("secgroup1", new()
        {
            Description = "a security group",
            Rules = new[]
            {
                new Opentelekomcloud.Inputs.ComputeSecgroupV2RuleArgs
                {
                    FromPort = 22,
                    ToPort = 22,
                    IpProtocol = "tcp",
                    Cidr = "0.0.0.0/0",
                },
            },
        });
    
        var port1 = new Opentelekomcloud.NetworkingPortV2("port1", new()
        {
            NetworkId = network1.NetworkingNetworkV2Id,
            AdminStateUp = true,
            SecurityGroupIds = new[]
            {
                secgroup1.ComputeSecgroupV2Id,
            },
            FixedIp = new Opentelekomcloud.Inputs.NetworkingPortV2FixedIpArgs
            {
                SubnetId = subnet1.NetworkingSubnetV2Id,
                IpAddress = "192.168.199.10",
            },
        });
    
        var instance1 = new Opentelekomcloud.ComputeInstanceV2("instance1", new()
        {
            SecurityGroups = new[]
            {
                secgroup1.Name,
            },
            Networks = new[]
            {
                new Opentelekomcloud.Inputs.ComputeInstanceV2NetworkArgs
                {
                    Port = port1.NetworkingPortV2Id,
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.NetworkingNetworkV2;
    import com.pulumi.opentelekomcloud.NetworkingNetworkV2Args;
    import com.pulumi.opentelekomcloud.NetworkingSubnetV2;
    import com.pulumi.opentelekomcloud.NetworkingSubnetV2Args;
    import com.pulumi.opentelekomcloud.ComputeSecgroupV2;
    import com.pulumi.opentelekomcloud.ComputeSecgroupV2Args;
    import com.pulumi.opentelekomcloud.inputs.ComputeSecgroupV2RuleArgs;
    import com.pulumi.opentelekomcloud.NetworkingPortV2;
    import com.pulumi.opentelekomcloud.NetworkingPortV2Args;
    import com.pulumi.opentelekomcloud.inputs.NetworkingPortV2FixedIpArgs;
    import com.pulumi.opentelekomcloud.ComputeInstanceV2;
    import com.pulumi.opentelekomcloud.ComputeInstanceV2Args;
    import com.pulumi.opentelekomcloud.inputs.ComputeInstanceV2NetworkArgs;
    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 network1 = new NetworkingNetworkV2("network1", NetworkingNetworkV2Args.builder()
                .adminStateUp("true")
                .build());
    
            var subnet1 = new NetworkingSubnetV2("subnet1", NetworkingSubnetV2Args.builder()
                .networkId(network1.networkingNetworkV2Id())
                .cidr("192.168.199.0/24")
                .ipVersion(4)
                .build());
    
            var secgroup1 = new ComputeSecgroupV2("secgroup1", ComputeSecgroupV2Args.builder()
                .description("a security group")
                .rules(ComputeSecgroupV2RuleArgs.builder()
                    .fromPort(22)
                    .toPort(22)
                    .ipProtocol("tcp")
                    .cidr("0.0.0.0/0")
                    .build())
                .build());
    
            var port1 = new NetworkingPortV2("port1", NetworkingPortV2Args.builder()
                .networkId(network1.networkingNetworkV2Id())
                .adminStateUp("true")
                .securityGroupIds(secgroup1.computeSecgroupV2Id())
                .fixedIp(NetworkingPortV2FixedIpArgs.builder()
                    .subnetId(subnet1.networkingSubnetV2Id())
                    .ipAddress("192.168.199.10")
                    .build())
                .build());
    
            var instance1 = new ComputeInstanceV2("instance1", ComputeInstanceV2Args.builder()
                .securityGroups(secgroup1.name())
                .networks(ComputeInstanceV2NetworkArgs.builder()
                    .port(port1.networkingPortV2Id())
                    .build())
                .build());
    
        }
    }
    
    resources:
      network1:
        type: opentelekomcloud:NetworkingNetworkV2
        properties:
          adminStateUp: 'true'
      subnet1:
        type: opentelekomcloud:NetworkingSubnetV2
        properties:
          networkId: ${network1.networkingNetworkV2Id}
          cidr: 192.168.199.0/24
          ipVersion: 4
      secgroup1:
        type: opentelekomcloud:ComputeSecgroupV2
        properties:
          description: a security group
          rules:
            - fromPort: 22
              toPort: 22
              ipProtocol: tcp
              cidr: 0.0.0.0/0
      port1:
        type: opentelekomcloud:NetworkingPortV2
        properties:
          networkId: ${network1.networkingNetworkV2Id}
          adminStateUp: 'true'
          securityGroupIds:
            - ${secgroup1.computeSecgroupV2Id}
          fixedIp:
            subnetId: ${subnet1.networkingSubnetV2Id}
            ipAddress: 192.168.199.10
      instance1:
        type: opentelekomcloud:ComputeInstanceV2
        properties:
          securityGroups:
            - ${secgroup1.name}
          networks:
            - port: ${port1.networkingPortV2Id}
    

    Create NetworkingNetworkV2 Resource

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

    Constructor syntax

    new NetworkingNetworkV2(name: string, args?: NetworkingNetworkV2Args, opts?: CustomResourceOptions);
    @overload
    def NetworkingNetworkV2(resource_name: str,
                            args: Optional[NetworkingNetworkV2Args] = None,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def NetworkingNetworkV2(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            admin_state_up: Optional[str] = None,
                            name: Optional[str] = None,
                            networking_network_v2_id: Optional[str] = None,
                            region: Optional[str] = None,
                            segments: Optional[Sequence[NetworkingNetworkV2SegmentArgs]] = None,
                            shared: Optional[str] = None,
                            tenant_id: Optional[str] = None,
                            timeouts: Optional[NetworkingNetworkV2TimeoutsArgs] = None,
                            value_specs: Optional[Mapping[str, str]] = None)
    func NewNetworkingNetworkV2(ctx *Context, name string, args *NetworkingNetworkV2Args, opts ...ResourceOption) (*NetworkingNetworkV2, error)
    public NetworkingNetworkV2(string name, NetworkingNetworkV2Args? args = null, CustomResourceOptions? opts = null)
    public NetworkingNetworkV2(String name, NetworkingNetworkV2Args args)
    public NetworkingNetworkV2(String name, NetworkingNetworkV2Args args, CustomResourceOptions options)
    
    type: opentelekomcloud:NetworkingNetworkV2
    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 NetworkingNetworkV2Args
    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 NetworkingNetworkV2Args
    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 NetworkingNetworkV2Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NetworkingNetworkV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args NetworkingNetworkV2Args
    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 networkingNetworkV2Resource = new Opentelekomcloud.NetworkingNetworkV2("networkingNetworkV2Resource", new()
    {
        AdminStateUp = "string",
        Name = "string",
        NetworkingNetworkV2Id = "string",
        Region = "string",
        Segments = new[]
        {
            new Opentelekomcloud.Inputs.NetworkingNetworkV2SegmentArgs
            {
                NetworkType = "string",
                PhysicalNetwork = "string",
                SegmentationId = 0,
            },
        },
        Shared = "string",
        TenantId = "string",
        Timeouts = new Opentelekomcloud.Inputs.NetworkingNetworkV2TimeoutsArgs
        {
            Create = "string",
            Delete = "string",
        },
        ValueSpecs = 
        {
            { "string", "string" },
        },
    });
    
    example, err := opentelekomcloud.NewNetworkingNetworkV2(ctx, "networkingNetworkV2Resource", &opentelekomcloud.NetworkingNetworkV2Args{
    AdminStateUp: pulumi.String("string"),
    Name: pulumi.String("string"),
    NetworkingNetworkV2Id: pulumi.String("string"),
    Region: pulumi.String("string"),
    Segments: .NetworkingNetworkV2SegmentArray{
    &.NetworkingNetworkV2SegmentArgs{
    NetworkType: pulumi.String("string"),
    PhysicalNetwork: pulumi.String("string"),
    SegmentationId: pulumi.Float64(0),
    },
    },
    Shared: pulumi.String("string"),
    TenantId: pulumi.String("string"),
    Timeouts: &.NetworkingNetworkV2TimeoutsArgs{
    Create: pulumi.String("string"),
    Delete: pulumi.String("string"),
    },
    ValueSpecs: pulumi.StringMap{
    "string": pulumi.String("string"),
    },
    })
    
    var networkingNetworkV2Resource = new NetworkingNetworkV2("networkingNetworkV2Resource", NetworkingNetworkV2Args.builder()
        .adminStateUp("string")
        .name("string")
        .networkingNetworkV2Id("string")
        .region("string")
        .segments(NetworkingNetworkV2SegmentArgs.builder()
            .networkType("string")
            .physicalNetwork("string")
            .segmentationId(0)
            .build())
        .shared("string")
        .tenantId("string")
        .timeouts(NetworkingNetworkV2TimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .build())
        .valueSpecs(Map.of("string", "string"))
        .build());
    
    networking_network_v2_resource = opentelekomcloud.NetworkingNetworkV2("networkingNetworkV2Resource",
        admin_state_up="string",
        name="string",
        networking_network_v2_id="string",
        region="string",
        segments=[{
            "network_type": "string",
            "physical_network": "string",
            "segmentation_id": 0,
        }],
        shared="string",
        tenant_id="string",
        timeouts={
            "create": "string",
            "delete": "string",
        },
        value_specs={
            "string": "string",
        })
    
    const networkingNetworkV2Resource = new opentelekomcloud.NetworkingNetworkV2("networkingNetworkV2Resource", {
        adminStateUp: "string",
        name: "string",
        networkingNetworkV2Id: "string",
        region: "string",
        segments: [{
            networkType: "string",
            physicalNetwork: "string",
            segmentationId: 0,
        }],
        shared: "string",
        tenantId: "string",
        timeouts: {
            create: "string",
            "delete": "string",
        },
        valueSpecs: {
            string: "string",
        },
    });
    
    type: opentelekomcloud:NetworkingNetworkV2
    properties:
        adminStateUp: string
        name: string
        networkingNetworkV2Id: string
        region: string
        segments:
            - networkType: string
              physicalNetwork: string
              segmentationId: 0
        shared: string
        tenantId: string
        timeouts:
            create: string
            delete: string
        valueSpecs:
            string: string
    

    NetworkingNetworkV2 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 NetworkingNetworkV2 resource accepts the following input properties:

    AdminStateUp string
    The administrative state of the network. Acceptable values are "true" and "false". Changing this value updates the state of the existing network.
    Name string
    The name of the network. Changing this updates the name of the existing network.
    NetworkingNetworkV2Id string
    Region string
    Segments List<NetworkingNetworkV2Segment>
    An array of one or more provider segment objects.
    Shared string
    Specifies whether the network resource can be accessed by any tenant or not. Changing this updates the sharing capabilities of the existing network. Shared SNAT only available in eu-de region.
    TenantId string
    The owner of the network. Required if admin wants to create a network for another tenant. Changing this creates a new network.
    Timeouts NetworkingNetworkV2Timeouts
    ValueSpecs Dictionary<string, string>
    Map of additional options.
    AdminStateUp string
    The administrative state of the network. Acceptable values are "true" and "false". Changing this value updates the state of the existing network.
    Name string
    The name of the network. Changing this updates the name of the existing network.
    NetworkingNetworkV2Id string
    Region string
    Segments []NetworkingNetworkV2SegmentArgs
    An array of one or more provider segment objects.
    Shared string
    Specifies whether the network resource can be accessed by any tenant or not. Changing this updates the sharing capabilities of the existing network. Shared SNAT only available in eu-de region.
    TenantId string
    The owner of the network. Required if admin wants to create a network for another tenant. Changing this creates a new network.
    Timeouts NetworkingNetworkV2TimeoutsArgs
    ValueSpecs map[string]string
    Map of additional options.
    adminStateUp String
    The administrative state of the network. Acceptable values are "true" and "false". Changing this value updates the state of the existing network.
    name String
    The name of the network. Changing this updates the name of the existing network.
    networkingNetworkV2Id String
    region String
    segments List<NetworkingNetworkV2Segment>
    An array of one or more provider segment objects.
    shared String
    Specifies whether the network resource can be accessed by any tenant or not. Changing this updates the sharing capabilities of the existing network. Shared SNAT only available in eu-de region.
    tenantId String
    The owner of the network. Required if admin wants to create a network for another tenant. Changing this creates a new network.
    timeouts NetworkingNetworkV2Timeouts
    valueSpecs Map<String,String>
    Map of additional options.
    adminStateUp string
    The administrative state of the network. Acceptable values are "true" and "false". Changing this value updates the state of the existing network.
    name string
    The name of the network. Changing this updates the name of the existing network.
    networkingNetworkV2Id string
    region string
    segments NetworkingNetworkV2Segment[]
    An array of one or more provider segment objects.
    shared string
    Specifies whether the network resource can be accessed by any tenant or not. Changing this updates the sharing capabilities of the existing network. Shared SNAT only available in eu-de region.
    tenantId string
    The owner of the network. Required if admin wants to create a network for another tenant. Changing this creates a new network.
    timeouts NetworkingNetworkV2Timeouts
    valueSpecs {[key: string]: string}
    Map of additional options.
    admin_state_up str
    The administrative state of the network. Acceptable values are "true" and "false". Changing this value updates the state of the existing network.
    name str
    The name of the network. Changing this updates the name of the existing network.
    networking_network_v2_id str
    region str
    segments Sequence[NetworkingNetworkV2SegmentArgs]
    An array of one or more provider segment objects.
    shared str
    Specifies whether the network resource can be accessed by any tenant or not. Changing this updates the sharing capabilities of the existing network. Shared SNAT only available in eu-de region.
    tenant_id str
    The owner of the network. Required if admin wants to create a network for another tenant. Changing this creates a new network.
    timeouts NetworkingNetworkV2TimeoutsArgs
    value_specs Mapping[str, str]
    Map of additional options.
    adminStateUp String
    The administrative state of the network. Acceptable values are "true" and "false". Changing this value updates the state of the existing network.
    name String
    The name of the network. Changing this updates the name of the existing network.
    networkingNetworkV2Id String
    region String
    segments List<Property Map>
    An array of one or more provider segment objects.
    shared String
    Specifies whether the network resource can be accessed by any tenant or not. Changing this updates the sharing capabilities of the existing network. Shared SNAT only available in eu-de region.
    tenantId String
    The owner of the network. Required if admin wants to create a network for another tenant. Changing this creates a new network.
    timeouts Property Map
    valueSpecs Map<String>
    Map of additional options.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing NetworkingNetworkV2 Resource

    Get an existing NetworkingNetworkV2 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?: NetworkingNetworkV2State, opts?: CustomResourceOptions): NetworkingNetworkV2
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            admin_state_up: Optional[str] = None,
            name: Optional[str] = None,
            networking_network_v2_id: Optional[str] = None,
            region: Optional[str] = None,
            segments: Optional[Sequence[NetworkingNetworkV2SegmentArgs]] = None,
            shared: Optional[str] = None,
            tenant_id: Optional[str] = None,
            timeouts: Optional[NetworkingNetworkV2TimeoutsArgs] = None,
            value_specs: Optional[Mapping[str, str]] = None) -> NetworkingNetworkV2
    func GetNetworkingNetworkV2(ctx *Context, name string, id IDInput, state *NetworkingNetworkV2State, opts ...ResourceOption) (*NetworkingNetworkV2, error)
    public static NetworkingNetworkV2 Get(string name, Input<string> id, NetworkingNetworkV2State? state, CustomResourceOptions? opts = null)
    public static NetworkingNetworkV2 get(String name, Output<String> id, NetworkingNetworkV2State state, CustomResourceOptions options)
    resources:  _:    type: opentelekomcloud:NetworkingNetworkV2    get:      id: ${id}
    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:
    AdminStateUp string
    The administrative state of the network. Acceptable values are "true" and "false". Changing this value updates the state of the existing network.
    Name string
    The name of the network. Changing this updates the name of the existing network.
    NetworkingNetworkV2Id string
    Region string
    Segments List<NetworkingNetworkV2Segment>
    An array of one or more provider segment objects.
    Shared string
    Specifies whether the network resource can be accessed by any tenant or not. Changing this updates the sharing capabilities of the existing network. Shared SNAT only available in eu-de region.
    TenantId string
    The owner of the network. Required if admin wants to create a network for another tenant. Changing this creates a new network.
    Timeouts NetworkingNetworkV2Timeouts
    ValueSpecs Dictionary<string, string>
    Map of additional options.
    AdminStateUp string
    The administrative state of the network. Acceptable values are "true" and "false". Changing this value updates the state of the existing network.
    Name string
    The name of the network. Changing this updates the name of the existing network.
    NetworkingNetworkV2Id string
    Region string
    Segments []NetworkingNetworkV2SegmentArgs
    An array of one or more provider segment objects.
    Shared string
    Specifies whether the network resource can be accessed by any tenant or not. Changing this updates the sharing capabilities of the existing network. Shared SNAT only available in eu-de region.
    TenantId string
    The owner of the network. Required if admin wants to create a network for another tenant. Changing this creates a new network.
    Timeouts NetworkingNetworkV2TimeoutsArgs
    ValueSpecs map[string]string
    Map of additional options.
    adminStateUp String
    The administrative state of the network. Acceptable values are "true" and "false". Changing this value updates the state of the existing network.
    name String
    The name of the network. Changing this updates the name of the existing network.
    networkingNetworkV2Id String
    region String
    segments List<NetworkingNetworkV2Segment>
    An array of one or more provider segment objects.
    shared String
    Specifies whether the network resource can be accessed by any tenant or not. Changing this updates the sharing capabilities of the existing network. Shared SNAT only available in eu-de region.
    tenantId String
    The owner of the network. Required if admin wants to create a network for another tenant. Changing this creates a new network.
    timeouts NetworkingNetworkV2Timeouts
    valueSpecs Map<String,String>
    Map of additional options.
    adminStateUp string
    The administrative state of the network. Acceptable values are "true" and "false". Changing this value updates the state of the existing network.
    name string
    The name of the network. Changing this updates the name of the existing network.
    networkingNetworkV2Id string
    region string
    segments NetworkingNetworkV2Segment[]
    An array of one or more provider segment objects.
    shared string
    Specifies whether the network resource can be accessed by any tenant or not. Changing this updates the sharing capabilities of the existing network. Shared SNAT only available in eu-de region.
    tenantId string
    The owner of the network. Required if admin wants to create a network for another tenant. Changing this creates a new network.
    timeouts NetworkingNetworkV2Timeouts
    valueSpecs {[key: string]: string}
    Map of additional options.
    admin_state_up str
    The administrative state of the network. Acceptable values are "true" and "false". Changing this value updates the state of the existing network.
    name str
    The name of the network. Changing this updates the name of the existing network.
    networking_network_v2_id str
    region str
    segments Sequence[NetworkingNetworkV2SegmentArgs]
    An array of one or more provider segment objects.
    shared str
    Specifies whether the network resource can be accessed by any tenant or not. Changing this updates the sharing capabilities of the existing network. Shared SNAT only available in eu-de region.
    tenant_id str
    The owner of the network. Required if admin wants to create a network for another tenant. Changing this creates a new network.
    timeouts NetworkingNetworkV2TimeoutsArgs
    value_specs Mapping[str, str]
    Map of additional options.
    adminStateUp String
    The administrative state of the network. Acceptable values are "true" and "false". Changing this value updates the state of the existing network.
    name String
    The name of the network. Changing this updates the name of the existing network.
    networkingNetworkV2Id String
    region String
    segments List<Property Map>
    An array of one or more provider segment objects.
    shared String
    Specifies whether the network resource can be accessed by any tenant or not. Changing this updates the sharing capabilities of the existing network. Shared SNAT only available in eu-de region.
    tenantId String
    The owner of the network. Required if admin wants to create a network for another tenant. Changing this creates a new network.
    timeouts Property Map
    valueSpecs Map<String>
    Map of additional options.

    Supporting Types

    NetworkingNetworkV2Segment, NetworkingNetworkV2SegmentArgs

    NetworkType string
    The type of physical network.
    PhysicalNetwork string
    The physical network where this network is implemented.
    SegmentationId double
    An isolated segment on the physical network.
    NetworkType string
    The type of physical network.
    PhysicalNetwork string
    The physical network where this network is implemented.
    SegmentationId float64
    An isolated segment on the physical network.
    networkType String
    The type of physical network.
    physicalNetwork String
    The physical network where this network is implemented.
    segmentationId Double
    An isolated segment on the physical network.
    networkType string
    The type of physical network.
    physicalNetwork string
    The physical network where this network is implemented.
    segmentationId number
    An isolated segment on the physical network.
    network_type str
    The type of physical network.
    physical_network str
    The physical network where this network is implemented.
    segmentation_id float
    An isolated segment on the physical network.
    networkType String
    The type of physical network.
    physicalNetwork String
    The physical network where this network is implemented.
    segmentationId Number
    An isolated segment on the physical network.

    NetworkingNetworkV2Timeouts, NetworkingNetworkV2TimeoutsArgs

    Create string
    Delete string
    Create string
    Delete string
    create String
    delete String
    create string
    delete string
    create str
    delete str
    create String
    delete String

    Import

    Networks can be imported using the id, e.g.

    $ pulumi import opentelekomcloud:index/networkingNetworkV2:NetworkingNetworkV2 network_1 d90ce693-5ccf-4136-a0ed-152ce412b6b9
    

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

    Package Details

    Repository
    opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
    License
    Notes
    This Pulumi package is based on the opentelekomcloud Terraform Provider.
    opentelekomcloud logo
    opentelekomcloud 1.36.35 published on Monday, Apr 14, 2025 by opentelekomcloud