1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. NetworkingNetworkV2
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.NetworkingNetworkV2

Explore with Pulumi AI

flexibleengine logo
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

    Manages a V2 Neutron network resource within FlexibleEngine.

    !> Warning: It has been deprecated, use flexibleengine.VpcSubnetV1 instead.

    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: flexibleengine: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 Flexibleengine.NetworkingNetworkV2("networkingNetworkV2Resource", new()
    {
        AdminStateUp = "string",
        Name = "string",
        NetworkingNetworkV2Id = "string",
        Region = "string",
        Segments = new[]
        {
            new Flexibleengine.Inputs.NetworkingNetworkV2SegmentArgs
            {
                NetworkType = "string",
                PhysicalNetwork = "string",
                SegmentationId = 0,
            },
        },
        Shared = "string",
        TenantId = "string",
        Timeouts = new Flexibleengine.Inputs.NetworkingNetworkV2TimeoutsArgs
        {
            Create = "string",
            Delete = "string",
        },
        ValueSpecs = 
        {
            { "string", "string" },
        },
    });
    
    example, err := flexibleengine.NewNetworkingNetworkV2(ctx, "networkingNetworkV2Resource", &flexibleengine.NetworkingNetworkV2Args{
    	AdminStateUp:          pulumi.String("string"),
    	Name:                  pulumi.String("string"),
    	NetworkingNetworkV2Id: pulumi.String("string"),
    	Region:                pulumi.String("string"),
    	Segments: flexibleengine.NetworkingNetworkV2SegmentArray{
    		&flexibleengine.NetworkingNetworkV2SegmentArgs{
    			NetworkType:     pulumi.String("string"),
    			PhysicalNetwork: pulumi.String("string"),
    			SegmentationId:  pulumi.Float64(0),
    		},
    	},
    	Shared:   pulumi.String("string"),
    	TenantId: pulumi.String("string"),
    	Timeouts: &flexibleengine.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 = flexibleengine.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 flexibleengine.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: flexibleengine: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
    The region in which to obtain the V2 Networking client. A Networking client is needed to create a Neutron network. If omitted, the region argument of the provider is used. Changing this creates a new network.
    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 capabalities of the existing network.
    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
    The region in which to obtain the V2 Networking client. A Networking client is needed to create a Neutron network. If omitted, the region argument of the provider is used. Changing this creates a new network.
    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 capabalities of the existing network.
    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
    The region in which to obtain the V2 Networking client. A Networking client is needed to create a Neutron network. If omitted, the region argument of the provider is used. Changing this creates a new network.
    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 capabalities of the existing network.
    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
    The region in which to obtain the V2 Networking client. A Networking client is needed to create a Neutron network. If omitted, the region argument of the provider is used. Changing this creates a new network.
    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 capabalities of the existing network.
    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
    The region in which to obtain the V2 Networking client. A Networking client is needed to create a Neutron network. If omitted, the region argument of the provider is used. Changing this creates a new network.
    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 capabalities of the existing network.
    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
    The region in which to obtain the V2 Networking client. A Networking client is needed to create a Neutron network. If omitted, the region argument of the provider is used. Changing this creates a new network.
    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 capabalities of the existing network.
    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: flexibleengine: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
    The region in which to obtain the V2 Networking client. A Networking client is needed to create a Neutron network. If omitted, the region argument of the provider is used. Changing this creates a new network.
    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 capabalities of the existing network.
    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
    The region in which to obtain the V2 Networking client. A Networking client is needed to create a Neutron network. If omitted, the region argument of the provider is used. Changing this creates a new network.
    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 capabalities of the existing network.
    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
    The region in which to obtain the V2 Networking client. A Networking client is needed to create a Neutron network. If omitted, the region argument of the provider is used. Changing this creates a new network.
    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 capabalities of the existing network.
    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
    The region in which to obtain the V2 Networking client. A Networking client is needed to create a Neutron network. If omitted, the region argument of the provider is used. Changing this creates a new network.
    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 capabalities of the existing network.
    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
    The region in which to obtain the V2 Networking client. A Networking client is needed to create a Neutron network. If omitted, the region argument of the provider is used. Changing this creates a new network.
    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 capabalities of the existing network.
    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
    The region in which to obtain the V2 Networking client. A Networking client is needed to create a Neutron network. If omitted, the region argument of the provider is used. Changing this creates a new network.
    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 capabalities of the existing network.
    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 flexibleengine:index/networkingNetworkV2:NetworkingNetworkV2 network_1 d90ce693-5ccf-4136-a0ed-152ce412b6b9
    

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

    Package Details

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