openstack logo
OpenStack v3.12.1, Mar 23 23

openstack.networking.Trunk

Manages a networking V2 trunk resource within OpenStack.

Example Usage

using System.Collections.Generic;
using Pulumi;
using OpenStack = Pulumi.OpenStack;

return await Deployment.RunAsync(() => 
{
    var network1 = new OpenStack.Networking.Network("network1", new()
    {
        AdminStateUp = true,
    });

    var subnet1 = new OpenStack.Networking.Subnet("subnet1", new()
    {
        Cidr = "192.168.1.0/24",
        EnableDhcp = true,
        IpVersion = 4,
        NetworkId = network1.Id,
        NoGateway = true,
    });

    var parentPort1 = new OpenStack.Networking.Port("parentPort1", new()
    {
        AdminStateUp = true,
        NetworkId = network1.Id,
    }, new CustomResourceOptions
    {
        DependsOn = new[]
        {
            "openstack_networking_subnet_v2.subnet_1",
        },
    });

    var subport1 = new OpenStack.Networking.Port("subport1", new()
    {
        AdminStateUp = true,
        NetworkId = network1.Id,
    }, new CustomResourceOptions
    {
        DependsOn = new[]
        {
            "openstack_networking_subnet_v2.subnet_1",
        },
    });

    var trunk1 = new OpenStack.Networking.Trunk("trunk1", new()
    {
        AdminStateUp = true,
        PortId = parentPort1.Id,
        SubPorts = new[]
        {
            new OpenStack.Networking.Inputs.TrunkSubPortArgs
            {
                PortId = subport1.Id,
                SegmentationId = 1,
                SegmentationType = "vlan",
            },
        },
    });

    var instance1 = new OpenStack.Compute.Instance("instance1", new()
    {
        Networks = new[]
        {
            new OpenStack.Compute.Inputs.InstanceNetworkArgs
            {
                Port = trunk1.PortId,
            },
        },
        SecurityGroups = new[]
        {
            "default",
        },
    });

});
package main

import (
	"github.com/pulumi/pulumi-openstack/sdk/v3/go/openstack/compute"
	"github.com/pulumi/pulumi-openstack/sdk/v3/go/openstack/networking"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		network1, err := networking.NewNetwork(ctx, "network1", &networking.NetworkArgs{
			AdminStateUp: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		_, err = networking.NewSubnet(ctx, "subnet1", &networking.SubnetArgs{
			Cidr:       pulumi.String("192.168.1.0/24"),
			EnableDhcp: pulumi.Bool(true),
			IpVersion:  pulumi.Int(4),
			NetworkId:  network1.ID(),
			NoGateway:  pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		parentPort1, err := networking.NewPort(ctx, "parentPort1", &networking.PortArgs{
			AdminStateUp: pulumi.Bool(true),
			NetworkId:    network1.ID(),
		}, pulumi.DependsOn([]pulumi.Resource{
			pulumi.Resource("openstack_networking_subnet_v2.subnet_1"),
		}))
		if err != nil {
			return err
		}
		subport1, err := networking.NewPort(ctx, "subport1", &networking.PortArgs{
			AdminStateUp: pulumi.Bool(true),
			NetworkId:    network1.ID(),
		}, pulumi.DependsOn([]pulumi.Resource{
			pulumi.Resource("openstack_networking_subnet_v2.subnet_1"),
		}))
		if err != nil {
			return err
		}
		trunk1, err := networking.NewTrunk(ctx, "trunk1", &networking.TrunkArgs{
			AdminStateUp: pulumi.Bool(true),
			PortId:       parentPort1.ID(),
			SubPorts: networking.TrunkSubPortArray{
				&networking.TrunkSubPortArgs{
					PortId:           subport1.ID(),
					SegmentationId:   pulumi.Int(1),
					SegmentationType: pulumi.String("vlan"),
				},
			},
		})
		if err != nil {
			return err
		}
		_, err = compute.NewInstance(ctx, "instance1", &compute.InstanceArgs{
			Networks: compute.InstanceNetworkArray{
				&compute.InstanceNetworkArgs{
					Port: trunk1.PortId,
				},
			},
			SecurityGroups: pulumi.StringArray{
				pulumi.String("default"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.openstack.networking.Network;
import com.pulumi.openstack.networking.NetworkArgs;
import com.pulumi.openstack.networking.Subnet;
import com.pulumi.openstack.networking.SubnetArgs;
import com.pulumi.openstack.networking.Port;
import com.pulumi.openstack.networking.PortArgs;
import com.pulumi.openstack.networking.Trunk;
import com.pulumi.openstack.networking.TrunkArgs;
import com.pulumi.openstack.networking.inputs.TrunkSubPortArgs;
import com.pulumi.openstack.compute.Instance;
import com.pulumi.openstack.compute.InstanceArgs;
import com.pulumi.openstack.compute.inputs.InstanceNetworkArgs;
import com.pulumi.resources.CustomResourceOptions;
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 Network("network1", NetworkArgs.builder()        
            .adminStateUp("true")
            .build());

        var subnet1 = new Subnet("subnet1", SubnetArgs.builder()        
            .cidr("192.168.1.0/24")
            .enableDhcp(true)
            .ipVersion(4)
            .networkId(network1.id())
            .noGateway(true)
            .build());

        var parentPort1 = new Port("parentPort1", PortArgs.builder()        
            .adminStateUp("true")
            .networkId(network1.id())
            .build(), CustomResourceOptions.builder()
                .dependsOn("openstack_networking_subnet_v2.subnet_1")
                .build());

        var subport1 = new Port("subport1", PortArgs.builder()        
            .adminStateUp("true")
            .networkId(network1.id())
            .build(), CustomResourceOptions.builder()
                .dependsOn("openstack_networking_subnet_v2.subnet_1")
                .build());

        var trunk1 = new Trunk("trunk1", TrunkArgs.builder()        
            .adminStateUp("true")
            .portId(parentPort1.id())
            .subPorts(TrunkSubPortArgs.builder()
                .portId(subport1.id())
                .segmentationId(1)
                .segmentationType("vlan")
                .build())
            .build());

        var instance1 = new Instance("instance1", InstanceArgs.builder()        
            .networks(InstanceNetworkArgs.builder()
                .port(trunk1.portId())
                .build())
            .securityGroups("default")
            .build());

    }
}
import pulumi
import pulumi_openstack as openstack

network1 = openstack.networking.Network("network1", admin_state_up=True)
subnet1 = openstack.networking.Subnet("subnet1",
    cidr="192.168.1.0/24",
    enable_dhcp=True,
    ip_version=4,
    network_id=network1.id,
    no_gateway=True)
parent_port1 = openstack.networking.Port("parentPort1",
    admin_state_up=True,
    network_id=network1.id,
    opts=pulumi.ResourceOptions(depends_on=["openstack_networking_subnet_v2.subnet_1"]))
subport1 = openstack.networking.Port("subport1",
    admin_state_up=True,
    network_id=network1.id,
    opts=pulumi.ResourceOptions(depends_on=["openstack_networking_subnet_v2.subnet_1"]))
trunk1 = openstack.networking.Trunk("trunk1",
    admin_state_up=True,
    port_id=parent_port1.id,
    sub_ports=[openstack.networking.TrunkSubPortArgs(
        port_id=subport1.id,
        segmentation_id=1,
        segmentation_type="vlan",
    )])
instance1 = openstack.compute.Instance("instance1",
    networks=[openstack.compute.InstanceNetworkArgs(
        port=trunk1.port_id,
    )],
    security_groups=["default"])
import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";

const network1 = new openstack.networking.Network("network1", {adminStateUp: true});
const subnet1 = new openstack.networking.Subnet("subnet1", {
    cidr: "192.168.1.0/24",
    enableDhcp: true,
    ipVersion: 4,
    networkId: network1.id,
    noGateway: true,
});
const parentPort1 = new openstack.networking.Port("parentPort1", {
    adminStateUp: true,
    networkId: network1.id,
}, {
    dependsOn: ["openstack_networking_subnet_v2.subnet_1"],
});
const subport1 = new openstack.networking.Port("subport1", {
    adminStateUp: true,
    networkId: network1.id,
}, {
    dependsOn: ["openstack_networking_subnet_v2.subnet_1"],
});
const trunk1 = new openstack.networking.Trunk("trunk1", {
    adminStateUp: true,
    portId: parentPort1.id,
    subPorts: [{
        portId: subport1.id,
        segmentationId: 1,
        segmentationType: "vlan",
    }],
});
const instance1 = new openstack.compute.Instance("instance1", {
    networks: [{
        port: trunk1.portId,
    }],
    securityGroups: ["default"],
});
resources:
  network1:
    type: openstack:networking:Network
    properties:
      adminStateUp: 'true'
  subnet1:
    type: openstack:networking:Subnet
    properties:
      cidr: 192.168.1.0/24
      enableDhcp: true
      ipVersion: 4
      networkId: ${network1.id}
      noGateway: true
  parentPort1:
    type: openstack:networking:Port
    properties:
      adminStateUp: 'true'
      networkId: ${network1.id}
    options:
      dependson:
        - openstack_networking_subnet_v2.subnet_1
  subport1:
    type: openstack:networking:Port
    properties:
      adminStateUp: 'true'
      networkId: ${network1.id}
    options:
      dependson:
        - openstack_networking_subnet_v2.subnet_1
  trunk1:
    type: openstack:networking:Trunk
    properties:
      adminStateUp: 'true'
      portId: ${parentPort1.id}
      subPorts:
        - portId: ${subport1.id}
          segmentationId: 1
          segmentationType: vlan
  instance1:
    type: openstack:compute:Instance
    properties:
      networks:
        - port: ${trunk1.portId}
      securityGroups:
        - default

Create Trunk Resource

new Trunk(name: string, args: TrunkArgs, opts?: CustomResourceOptions);
@overload
def Trunk(resource_name: str,
          opts: Optional[ResourceOptions] = None,
          admin_state_up: Optional[bool] = None,
          description: Optional[str] = None,
          name: Optional[str] = None,
          port_id: Optional[str] = None,
          region: Optional[str] = None,
          sub_ports: Optional[Sequence[TrunkSubPortArgs]] = None,
          tags: Optional[Sequence[str]] = None,
          tenant_id: Optional[str] = None)
@overload
def Trunk(resource_name: str,
          args: TrunkArgs,
          opts: Optional[ResourceOptions] = None)
func NewTrunk(ctx *Context, name string, args TrunkArgs, opts ...ResourceOption) (*Trunk, error)
public Trunk(string name, TrunkArgs args, CustomResourceOptions? opts = null)
public Trunk(String name, TrunkArgs args)
public Trunk(String name, TrunkArgs args, CustomResourceOptions options)
type: openstack:networking:Trunk
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args TrunkArgs
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 TrunkArgs
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 TrunkArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args TrunkArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args TrunkArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Trunk Resource Properties

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

Inputs

The Trunk resource accepts the following input properties:

PortId string

The ID of the port to be used as the parent port of the trunk. This is the port that should be used as the compute instance network port. Changing this creates a new trunk.

AdminStateUp bool

Administrative up/down status for the trunk (must be "true" or "false" if provided). Changing this updates the admin_state_up of an existing trunk.

Description string

Human-readable description of the trunk. Changing this updates the name of the existing trunk.

Name string

A unique name for the trunk. Changing this updates the name of an existing trunk.

Region string

The region in which to obtain the V2 networking client. A networking client is needed to create a trunk. If omitted, the region argument of the provider is used. Changing this creates a new trunk.

SubPorts List<Pulumi.OpenStack.Networking.Inputs.TrunkSubPortArgs>

The set of ports that will be made subports of the trunk. The structure of each subport is described below.

Tags List<string>

A set of string tags for the port.

TenantId string

The owner of the Trunk. Required if admin wants to create a trunk on behalf of another tenant. Changing this creates a new trunk.

PortId string

The ID of the port to be used as the parent port of the trunk. This is the port that should be used as the compute instance network port. Changing this creates a new trunk.

AdminStateUp bool

Administrative up/down status for the trunk (must be "true" or "false" if provided). Changing this updates the admin_state_up of an existing trunk.

Description string

Human-readable description of the trunk. Changing this updates the name of the existing trunk.

Name string

A unique name for the trunk. Changing this updates the name of an existing trunk.

Region string

The region in which to obtain the V2 networking client. A networking client is needed to create a trunk. If omitted, the region argument of the provider is used. Changing this creates a new trunk.

SubPorts []TrunkSubPortArgs

The set of ports that will be made subports of the trunk. The structure of each subport is described below.

Tags []string

A set of string tags for the port.

TenantId string

The owner of the Trunk. Required if admin wants to create a trunk on behalf of another tenant. Changing this creates a new trunk.

portId String

The ID of the port to be used as the parent port of the trunk. This is the port that should be used as the compute instance network port. Changing this creates a new trunk.

adminStateUp Boolean

Administrative up/down status for the trunk (must be "true" or "false" if provided). Changing this updates the admin_state_up of an existing trunk.

description String

Human-readable description of the trunk. Changing this updates the name of the existing trunk.

name String

A unique name for the trunk. Changing this updates the name of an existing trunk.

region String

The region in which to obtain the V2 networking client. A networking client is needed to create a trunk. If omitted, the region argument of the provider is used. Changing this creates a new trunk.

subPorts List<TrunkSubPortArgs>

The set of ports that will be made subports of the trunk. The structure of each subport is described below.

tags List<String>

A set of string tags for the port.

tenantId String

The owner of the Trunk. Required if admin wants to create a trunk on behalf of another tenant. Changing this creates a new trunk.

portId string

The ID of the port to be used as the parent port of the trunk. This is the port that should be used as the compute instance network port. Changing this creates a new trunk.

adminStateUp boolean

Administrative up/down status for the trunk (must be "true" or "false" if provided). Changing this updates the admin_state_up of an existing trunk.

description string

Human-readable description of the trunk. Changing this updates the name of the existing trunk.

name string

A unique name for the trunk. Changing this updates the name of an existing trunk.

region string

The region in which to obtain the V2 networking client. A networking client is needed to create a trunk. If omitted, the region argument of the provider is used. Changing this creates a new trunk.

subPorts TrunkSubPortArgs[]

The set of ports that will be made subports of the trunk. The structure of each subport is described below.

tags string[]

A set of string tags for the port.

tenantId string

The owner of the Trunk. Required if admin wants to create a trunk on behalf of another tenant. Changing this creates a new trunk.

port_id str

The ID of the port to be used as the parent port of the trunk. This is the port that should be used as the compute instance network port. Changing this creates a new trunk.

admin_state_up bool

Administrative up/down status for the trunk (must be "true" or "false" if provided). Changing this updates the admin_state_up of an existing trunk.

description str

Human-readable description of the trunk. Changing this updates the name of the existing trunk.

name str

A unique name for the trunk. Changing this updates the name of an existing trunk.

region str

The region in which to obtain the V2 networking client. A networking client is needed to create a trunk. If omitted, the region argument of the provider is used. Changing this creates a new trunk.

sub_ports Sequence[TrunkSubPortArgs]

The set of ports that will be made subports of the trunk. The structure of each subport is described below.

tags Sequence[str]

A set of string tags for the port.

tenant_id str

The owner of the Trunk. Required if admin wants to create a trunk on behalf of another tenant. Changing this creates a new trunk.

portId String

The ID of the port to be used as the parent port of the trunk. This is the port that should be used as the compute instance network port. Changing this creates a new trunk.

adminStateUp Boolean

Administrative up/down status for the trunk (must be "true" or "false" if provided). Changing this updates the admin_state_up of an existing trunk.

description String

Human-readable description of the trunk. Changing this updates the name of the existing trunk.

name String

A unique name for the trunk. Changing this updates the name of an existing trunk.

region String

The region in which to obtain the V2 networking client. A networking client is needed to create a trunk. If omitted, the region argument of the provider is used. Changing this creates a new trunk.

subPorts List<Property Map>

The set of ports that will be made subports of the trunk. The structure of each subport is described below.

tags List<String>

A set of string tags for the port.

tenantId String

The owner of the Trunk. Required if admin wants to create a trunk on behalf of another tenant. Changing this creates a new trunk.

Outputs

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

AllTags List<string>

The collection of tags assigned on the trunk, which have been explicitly and implicitly added.

Id string

The provider-assigned unique ID for this managed resource.

AllTags []string

The collection of tags assigned on the trunk, which have been explicitly and implicitly added.

Id string

The provider-assigned unique ID for this managed resource.

allTags List<String>

The collection of tags assigned on the trunk, which have been explicitly and implicitly added.

id String

The provider-assigned unique ID for this managed resource.

allTags string[]

The collection of tags assigned on the trunk, which have been explicitly and implicitly added.

id string

The provider-assigned unique ID for this managed resource.

all_tags Sequence[str]

The collection of tags assigned on the trunk, which have been explicitly and implicitly added.

id str

The provider-assigned unique ID for this managed resource.

allTags List<String>

The collection of tags assigned on the trunk, which have been explicitly and implicitly added.

id String

The provider-assigned unique ID for this managed resource.

Look up Existing Trunk Resource

Get an existing Trunk 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?: TrunkState, opts?: CustomResourceOptions): Trunk
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        admin_state_up: Optional[bool] = None,
        all_tags: Optional[Sequence[str]] = None,
        description: Optional[str] = None,
        name: Optional[str] = None,
        port_id: Optional[str] = None,
        region: Optional[str] = None,
        sub_ports: Optional[Sequence[TrunkSubPortArgs]] = None,
        tags: Optional[Sequence[str]] = None,
        tenant_id: Optional[str] = None) -> Trunk
func GetTrunk(ctx *Context, name string, id IDInput, state *TrunkState, opts ...ResourceOption) (*Trunk, error)
public static Trunk Get(string name, Input<string> id, TrunkState? state, CustomResourceOptions? opts = null)
public static Trunk get(String name, Output<String> id, TrunkState 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:
AdminStateUp bool

Administrative up/down status for the trunk (must be "true" or "false" if provided). Changing this updates the admin_state_up of an existing trunk.

AllTags List<string>

The collection of tags assigned on the trunk, which have been explicitly and implicitly added.

Description string

Human-readable description of the trunk. Changing this updates the name of the existing trunk.

Name string

A unique name for the trunk. Changing this updates the name of an existing trunk.

PortId string

The ID of the port to be used as the parent port of the trunk. This is the port that should be used as the compute instance network port. Changing this creates a new trunk.

Region string

The region in which to obtain the V2 networking client. A networking client is needed to create a trunk. If omitted, the region argument of the provider is used. Changing this creates a new trunk.

SubPorts List<Pulumi.OpenStack.Networking.Inputs.TrunkSubPortArgs>

The set of ports that will be made subports of the trunk. The structure of each subport is described below.

Tags List<string>

A set of string tags for the port.

TenantId string

The owner of the Trunk. Required if admin wants to create a trunk on behalf of another tenant. Changing this creates a new trunk.

AdminStateUp bool

Administrative up/down status for the trunk (must be "true" or "false" if provided). Changing this updates the admin_state_up of an existing trunk.

AllTags []string

The collection of tags assigned on the trunk, which have been explicitly and implicitly added.

Description string

Human-readable description of the trunk. Changing this updates the name of the existing trunk.

Name string

A unique name for the trunk. Changing this updates the name of an existing trunk.

PortId string

The ID of the port to be used as the parent port of the trunk. This is the port that should be used as the compute instance network port. Changing this creates a new trunk.

Region string

The region in which to obtain the V2 networking client. A networking client is needed to create a trunk. If omitted, the region argument of the provider is used. Changing this creates a new trunk.

SubPorts []TrunkSubPortArgs

The set of ports that will be made subports of the trunk. The structure of each subport is described below.

Tags []string

A set of string tags for the port.

TenantId string

The owner of the Trunk. Required if admin wants to create a trunk on behalf of another tenant. Changing this creates a new trunk.

adminStateUp Boolean

Administrative up/down status for the trunk (must be "true" or "false" if provided). Changing this updates the admin_state_up of an existing trunk.

allTags List<String>

The collection of tags assigned on the trunk, which have been explicitly and implicitly added.

description String

Human-readable description of the trunk. Changing this updates the name of the existing trunk.

name String

A unique name for the trunk. Changing this updates the name of an existing trunk.

portId String

The ID of the port to be used as the parent port of the trunk. This is the port that should be used as the compute instance network port. Changing this creates a new trunk.

region String

The region in which to obtain the V2 networking client. A networking client is needed to create a trunk. If omitted, the region argument of the provider is used. Changing this creates a new trunk.

subPorts List<TrunkSubPortArgs>

The set of ports that will be made subports of the trunk. The structure of each subport is described below.

tags List<String>

A set of string tags for the port.

tenantId String

The owner of the Trunk. Required if admin wants to create a trunk on behalf of another tenant. Changing this creates a new trunk.

adminStateUp boolean

Administrative up/down status for the trunk (must be "true" or "false" if provided). Changing this updates the admin_state_up of an existing trunk.

allTags string[]

The collection of tags assigned on the trunk, which have been explicitly and implicitly added.

description string

Human-readable description of the trunk. Changing this updates the name of the existing trunk.

name string

A unique name for the trunk. Changing this updates the name of an existing trunk.

portId string

The ID of the port to be used as the parent port of the trunk. This is the port that should be used as the compute instance network port. Changing this creates a new trunk.

region string

The region in which to obtain the V2 networking client. A networking client is needed to create a trunk. If omitted, the region argument of the provider is used. Changing this creates a new trunk.

subPorts TrunkSubPortArgs[]

The set of ports that will be made subports of the trunk. The structure of each subport is described below.

tags string[]

A set of string tags for the port.

tenantId string

The owner of the Trunk. Required if admin wants to create a trunk on behalf of another tenant. Changing this creates a new trunk.

admin_state_up bool

Administrative up/down status for the trunk (must be "true" or "false" if provided). Changing this updates the admin_state_up of an existing trunk.

all_tags Sequence[str]

The collection of tags assigned on the trunk, which have been explicitly and implicitly added.

description str

Human-readable description of the trunk. Changing this updates the name of the existing trunk.

name str

A unique name for the trunk. Changing this updates the name of an existing trunk.

port_id str

The ID of the port to be used as the parent port of the trunk. This is the port that should be used as the compute instance network port. Changing this creates a new trunk.

region str

The region in which to obtain the V2 networking client. A networking client is needed to create a trunk. If omitted, the region argument of the provider is used. Changing this creates a new trunk.

sub_ports Sequence[TrunkSubPortArgs]

The set of ports that will be made subports of the trunk. The structure of each subport is described below.

tags Sequence[str]

A set of string tags for the port.

tenant_id str

The owner of the Trunk. Required if admin wants to create a trunk on behalf of another tenant. Changing this creates a new trunk.

adminStateUp Boolean

Administrative up/down status for the trunk (must be "true" or "false" if provided). Changing this updates the admin_state_up of an existing trunk.

allTags List<String>

The collection of tags assigned on the trunk, which have been explicitly and implicitly added.

description String

Human-readable description of the trunk. Changing this updates the name of the existing trunk.

name String

A unique name for the trunk. Changing this updates the name of an existing trunk.

portId String

The ID of the port to be used as the parent port of the trunk. This is the port that should be used as the compute instance network port. Changing this creates a new trunk.

region String

The region in which to obtain the V2 networking client. A networking client is needed to create a trunk. If omitted, the region argument of the provider is used. Changing this creates a new trunk.

subPorts List<Property Map>

The set of ports that will be made subports of the trunk. The structure of each subport is described below.

tags List<String>

A set of string tags for the port.

tenantId String

The owner of the Trunk. Required if admin wants to create a trunk on behalf of another tenant. Changing this creates a new trunk.

Supporting Types

TrunkSubPort

PortId string

The ID of the port to be made a subport of the trunk.

SegmentationId int

The numeric id of the subport segment.

SegmentationType string

The segmentation technology to use, e.g., "vlan".

PortId string

The ID of the port to be made a subport of the trunk.

SegmentationId int

The numeric id of the subport segment.

SegmentationType string

The segmentation technology to use, e.g., "vlan".

portId String

The ID of the port to be made a subport of the trunk.

segmentationId Integer

The numeric id of the subport segment.

segmentationType String

The segmentation technology to use, e.g., "vlan".

portId string

The ID of the port to be made a subport of the trunk.

segmentationId number

The numeric id of the subport segment.

segmentationType string

The segmentation technology to use, e.g., "vlan".

port_id str

The ID of the port to be made a subport of the trunk.

segmentation_id int

The numeric id of the subport segment.

segmentation_type str

The segmentation technology to use, e.g., "vlan".

portId String

The ID of the port to be made a subport of the trunk.

segmentationId Number

The numeric id of the subport segment.

segmentationType String

The segmentation technology to use, e.g., "vlan".

Package Details

Repository
OpenStack pulumi/pulumi-openstack
License
Apache-2.0
Notes

This Pulumi package is based on the openstack Terraform Provider.