equinix.metal.Port
Explore with Pulumi AI
Create Port Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Port(name: string, args: PortArgs, opts?: CustomResourceOptions);
@overload
def Port(resource_name: str,
args: PortArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Port(resource_name: str,
opts: Optional[ResourceOptions] = None,
bonded: Optional[bool] = None,
port_id: Optional[str] = None,
layer2: Optional[bool] = None,
native_vlan_id: Optional[str] = None,
reset_on_delete: Optional[bool] = None,
vlan_ids: Optional[Sequence[str]] = None,
vxlan_ids: Optional[Sequence[int]] = None)
func NewPort(ctx *Context, name string, args PortArgs, opts ...ResourceOption) (*Port, error)
public Port(string name, PortArgs args, CustomResourceOptions? opts = null)
type: equinix:metal:Port
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 PortArgs
- 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 PortArgs
- 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 PortArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PortArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PortArgs
- 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 portResource = new Equinix.Metal.Port("portResource", new()
{
Bonded = false,
PortId = "string",
Layer2 = false,
NativeVlanId = "string",
ResetOnDelete = false,
VlanIds = new[]
{
"string",
},
VxlanIds = new[]
{
0,
},
});
example, err := metal.NewPort(ctx, "portResource", &metal.PortArgs{
Bonded: pulumi.Bool(false),
PortId: pulumi.String("string"),
Layer2: pulumi.Bool(false),
NativeVlanId: pulumi.String("string"),
ResetOnDelete: pulumi.Bool(false),
VlanIds: pulumi.StringArray{
pulumi.String("string"),
},
VxlanIds: pulumi.IntArray{
pulumi.Int(0),
},
})
var portResource = new Port("portResource", PortArgs.builder()
.bonded(false)
.portId("string")
.layer2(false)
.nativeVlanId("string")
.resetOnDelete(false)
.vlanIds("string")
.vxlanIds(0)
.build());
port_resource = equinix.metal.Port("portResource",
bonded=False,
port_id="string",
layer2=False,
native_vlan_id="string",
reset_on_delete=False,
vlan_ids=["string"],
vxlan_ids=[0])
const portResource = new equinix.metal.Port("portResource", {
bonded: false,
portId: "string",
layer2: false,
nativeVlanId: "string",
resetOnDelete: false,
vlanIds: ["string"],
vxlanIds: [0],
});
type: equinix:metal:Port
properties:
bonded: false
layer2: false
nativeVlanId: string
portId: string
resetOnDelete: false
vlanIds:
- string
vxlanIds:
- 0
Port 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 Port resource accepts the following input properties:
- Bonded bool
- Whether the port should be bonded.
- Port
Id string - ID of the port to read.
- Layer2 bool
- Whether to put the port to Layer 2 mode, valid only for bond ports.
- Native
Vlan stringId - UUID of a VLAN to assign as a native VLAN. It must be one of attached VLANs (from
vlan_ids
parameter). - Reset
On boolDelete - Behavioral setting to reset the port to default settings (layer3 bonded mode without any vlan attached) before delete/destroy.
- Vlan
Ids List<string> - List of VLAN UUIDs to attach to the port, valid only for L2 and Hybrid ports.
- Vxlan
Ids List<int> - List of VXLAN IDs to attach to the port, valid only for L2 and Hybrid ports.
- Bonded bool
- Whether the port should be bonded.
- Port
Id string - ID of the port to read.
- Layer2 bool
- Whether to put the port to Layer 2 mode, valid only for bond ports.
- Native
Vlan stringId - UUID of a VLAN to assign as a native VLAN. It must be one of attached VLANs (from
vlan_ids
parameter). - Reset
On boolDelete - Behavioral setting to reset the port to default settings (layer3 bonded mode without any vlan attached) before delete/destroy.
- Vlan
Ids []string - List of VLAN UUIDs to attach to the port, valid only for L2 and Hybrid ports.
- Vxlan
Ids []int - List of VXLAN IDs to attach to the port, valid only for L2 and Hybrid ports.
- bonded Boolean
- Whether the port should be bonded.
- port
Id String - ID of the port to read.
- layer2 Boolean
- Whether to put the port to Layer 2 mode, valid only for bond ports.
- native
Vlan StringId - UUID of a VLAN to assign as a native VLAN. It must be one of attached VLANs (from
vlan_ids
parameter). - reset
On BooleanDelete - Behavioral setting to reset the port to default settings (layer3 bonded mode without any vlan attached) before delete/destroy.
- vlan
Ids List<String> - List of VLAN UUIDs to attach to the port, valid only for L2 and Hybrid ports.
- vxlan
Ids List<Integer> - List of VXLAN IDs to attach to the port, valid only for L2 and Hybrid ports.
- bonded boolean
- Whether the port should be bonded.
- port
Id string - ID of the port to read.
- layer2 boolean
- Whether to put the port to Layer 2 mode, valid only for bond ports.
- native
Vlan stringId - UUID of a VLAN to assign as a native VLAN. It must be one of attached VLANs (from
vlan_ids
parameter). - reset
On booleanDelete - Behavioral setting to reset the port to default settings (layer3 bonded mode without any vlan attached) before delete/destroy.
- vlan
Ids string[] - List of VLAN UUIDs to attach to the port, valid only for L2 and Hybrid ports.
- vxlan
Ids number[] - List of VXLAN IDs to attach to the port, valid only for L2 and Hybrid ports.
- bonded bool
- Whether the port should be bonded.
- port_
id str - ID of the port to read.
- layer2 bool
- Whether to put the port to Layer 2 mode, valid only for bond ports.
- native_
vlan_ strid - UUID of a VLAN to assign as a native VLAN. It must be one of attached VLANs (from
vlan_ids
parameter). - reset_
on_ booldelete - Behavioral setting to reset the port to default settings (layer3 bonded mode without any vlan attached) before delete/destroy.
- vlan_
ids Sequence[str] - List of VLAN UUIDs to attach to the port, valid only for L2 and Hybrid ports.
- vxlan_
ids Sequence[int] - List of VXLAN IDs to attach to the port, valid only for L2 and Hybrid ports.
- bonded Boolean
- Whether the port should be bonded.
- port
Id String - ID of the port to read.
- layer2 Boolean
- Whether to put the port to Layer 2 mode, valid only for bond ports.
- native
Vlan StringId - UUID of a VLAN to assign as a native VLAN. It must be one of attached VLANs (from
vlan_ids
parameter). - reset
On BooleanDelete - Behavioral setting to reset the port to default settings (layer3 bonded mode without any vlan attached) before delete/destroy.
- vlan
Ids List<String> - List of VLAN UUIDs to attach to the port, valid only for L2 and Hybrid ports.
- vxlan
Ids List<Number> - List of VXLAN IDs to attach to the port, valid only for L2 and Hybrid ports.
Outputs
All input properties are implicitly available as output properties. Additionally, the Port resource produces the following output properties:
- Bond
Id string - UUID of the bond port.
- Bond
Name string - Name of the bond port.
- Disbond
Supported bool - Flag indicating whether the port can be removed from a bond.
- Id string
- The provider-assigned unique ID for this managed resource.
- Mac string
- MAC address of the port.
- Name string
- Name of the port, e.g.
bond0
oreth0
. - Network
Type string - One of layer2-bonded, layer2-individual, layer3, hybrid and hybrid-bonded. This attribute is only set on bond ports.
- Type string
- Type is either "NetworkBondPort" for bond ports or "NetworkPort" for bondable ethernet ports.
- Bond
Id string - UUID of the bond port.
- Bond
Name string - Name of the bond port.
- Disbond
Supported bool - Flag indicating whether the port can be removed from a bond.
- Id string
- The provider-assigned unique ID for this managed resource.
- Mac string
- MAC address of the port.
- Name string
- Name of the port, e.g.
bond0
oreth0
. - Network
Type string - One of layer2-bonded, layer2-individual, layer3, hybrid and hybrid-bonded. This attribute is only set on bond ports.
- Type string
- Type is either "NetworkBondPort" for bond ports or "NetworkPort" for bondable ethernet ports.
- bond
Id String - UUID of the bond port.
- bond
Name String - Name of the bond port.
- disbond
Supported Boolean - Flag indicating whether the port can be removed from a bond.
- id String
- The provider-assigned unique ID for this managed resource.
- mac String
- MAC address of the port.
- name String
- Name of the port, e.g.
bond0
oreth0
. - network
Type String - One of layer2-bonded, layer2-individual, layer3, hybrid and hybrid-bonded. This attribute is only set on bond ports.
- type String
- Type is either "NetworkBondPort" for bond ports or "NetworkPort" for bondable ethernet ports.
- bond
Id string - UUID of the bond port.
- bond
Name string - Name of the bond port.
- disbond
Supported boolean - Flag indicating whether the port can be removed from a bond.
- id string
- The provider-assigned unique ID for this managed resource.
- mac string
- MAC address of the port.
- name string
- Name of the port, e.g.
bond0
oreth0
. - network
Type string - One of layer2-bonded, layer2-individual, layer3, hybrid and hybrid-bonded. This attribute is only set on bond ports.
- type string
- Type is either "NetworkBondPort" for bond ports or "NetworkPort" for bondable ethernet ports.
- bond_
id str - UUID of the bond port.
- bond_
name str - Name of the bond port.
- disbond_
supported bool - Flag indicating whether the port can be removed from a bond.
- id str
- The provider-assigned unique ID for this managed resource.
- mac str
- MAC address of the port.
- name str
- Name of the port, e.g.
bond0
oreth0
. - network_
type str - One of layer2-bonded, layer2-individual, layer3, hybrid and hybrid-bonded. This attribute is only set on bond ports.
- type str
- Type is either "NetworkBondPort" for bond ports or "NetworkPort" for bondable ethernet ports.
- bond
Id String - UUID of the bond port.
- bond
Name String - Name of the bond port.
- disbond
Supported Boolean - Flag indicating whether the port can be removed from a bond.
- id String
- The provider-assigned unique ID for this managed resource.
- mac String
- MAC address of the port.
- name String
- Name of the port, e.g.
bond0
oreth0
. - network
Type String - One of layer2-bonded, layer2-individual, layer3, hybrid and hybrid-bonded. This attribute is only set on bond ports.
- type String
- Type is either "NetworkBondPort" for bond ports or "NetworkPort" for bondable ethernet ports.
Look up Existing Port Resource
Get an existing Port 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?: PortState, opts?: CustomResourceOptions): Port
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
bond_id: Optional[str] = None,
bond_name: Optional[str] = None,
bonded: Optional[bool] = None,
disbond_supported: Optional[bool] = None,
layer2: Optional[bool] = None,
mac: Optional[str] = None,
name: Optional[str] = None,
native_vlan_id: Optional[str] = None,
network_type: Optional[str] = None,
port_id: Optional[str] = None,
reset_on_delete: Optional[bool] = None,
type: Optional[str] = None,
vlan_ids: Optional[Sequence[str]] = None,
vxlan_ids: Optional[Sequence[int]] = None) -> Port
func GetPort(ctx *Context, name string, id IDInput, state *PortState, opts ...ResourceOption) (*Port, error)
public static Port Get(string name, Input<string> id, PortState? state, CustomResourceOptions? opts = null)
public static Port get(String name, Output<String> id, PortState 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.
- Bond
Id string - UUID of the bond port.
- Bond
Name string - Name of the bond port.
- Bonded bool
- Whether the port should be bonded.
- Disbond
Supported bool - Flag indicating whether the port can be removed from a bond.
- Layer2 bool
- Whether to put the port to Layer 2 mode, valid only for bond ports.
- Mac string
- MAC address of the port.
- Name string
- Name of the port, e.g.
bond0
oreth0
. - Native
Vlan stringId - UUID of a VLAN to assign as a native VLAN. It must be one of attached VLANs (from
vlan_ids
parameter). - Network
Type string - One of layer2-bonded, layer2-individual, layer3, hybrid and hybrid-bonded. This attribute is only set on bond ports.
- Port
Id string - ID of the port to read.
- Reset
On boolDelete - Behavioral setting to reset the port to default settings (layer3 bonded mode without any vlan attached) before delete/destroy.
- Type string
- Type is either "NetworkBondPort" for bond ports or "NetworkPort" for bondable ethernet ports.
- Vlan
Ids List<string> - List of VLAN UUIDs to attach to the port, valid only for L2 and Hybrid ports.
- Vxlan
Ids List<int> - List of VXLAN IDs to attach to the port, valid only for L2 and Hybrid ports.
- Bond
Id string - UUID of the bond port.
- Bond
Name string - Name of the bond port.
- Bonded bool
- Whether the port should be bonded.
- Disbond
Supported bool - Flag indicating whether the port can be removed from a bond.
- Layer2 bool
- Whether to put the port to Layer 2 mode, valid only for bond ports.
- Mac string
- MAC address of the port.
- Name string
- Name of the port, e.g.
bond0
oreth0
. - Native
Vlan stringId - UUID of a VLAN to assign as a native VLAN. It must be one of attached VLANs (from
vlan_ids
parameter). - Network
Type string - One of layer2-bonded, layer2-individual, layer3, hybrid and hybrid-bonded. This attribute is only set on bond ports.
- Port
Id string - ID of the port to read.
- Reset
On boolDelete - Behavioral setting to reset the port to default settings (layer3 bonded mode without any vlan attached) before delete/destroy.
- Type string
- Type is either "NetworkBondPort" for bond ports or "NetworkPort" for bondable ethernet ports.
- Vlan
Ids []string - List of VLAN UUIDs to attach to the port, valid only for L2 and Hybrid ports.
- Vxlan
Ids []int - List of VXLAN IDs to attach to the port, valid only for L2 and Hybrid ports.
- bond
Id String - UUID of the bond port.
- bond
Name String - Name of the bond port.
- bonded Boolean
- Whether the port should be bonded.
- disbond
Supported Boolean - Flag indicating whether the port can be removed from a bond.
- layer2 Boolean
- Whether to put the port to Layer 2 mode, valid only for bond ports.
- mac String
- MAC address of the port.
- name String
- Name of the port, e.g.
bond0
oreth0
. - native
Vlan StringId - UUID of a VLAN to assign as a native VLAN. It must be one of attached VLANs (from
vlan_ids
parameter). - network
Type String - One of layer2-bonded, layer2-individual, layer3, hybrid and hybrid-bonded. This attribute is only set on bond ports.
- port
Id String - ID of the port to read.
- reset
On BooleanDelete - Behavioral setting to reset the port to default settings (layer3 bonded mode without any vlan attached) before delete/destroy.
- type String
- Type is either "NetworkBondPort" for bond ports or "NetworkPort" for bondable ethernet ports.
- vlan
Ids List<String> - List of VLAN UUIDs to attach to the port, valid only for L2 and Hybrid ports.
- vxlan
Ids List<Integer> - List of VXLAN IDs to attach to the port, valid only for L2 and Hybrid ports.
- bond
Id string - UUID of the bond port.
- bond
Name string - Name of the bond port.
- bonded boolean
- Whether the port should be bonded.
- disbond
Supported boolean - Flag indicating whether the port can be removed from a bond.
- layer2 boolean
- Whether to put the port to Layer 2 mode, valid only for bond ports.
- mac string
- MAC address of the port.
- name string
- Name of the port, e.g.
bond0
oreth0
. - native
Vlan stringId - UUID of a VLAN to assign as a native VLAN. It must be one of attached VLANs (from
vlan_ids
parameter). - network
Type string - One of layer2-bonded, layer2-individual, layer3, hybrid and hybrid-bonded. This attribute is only set on bond ports.
- port
Id string - ID of the port to read.
- reset
On booleanDelete - Behavioral setting to reset the port to default settings (layer3 bonded mode without any vlan attached) before delete/destroy.
- type string
- Type is either "NetworkBondPort" for bond ports or "NetworkPort" for bondable ethernet ports.
- vlan
Ids string[] - List of VLAN UUIDs to attach to the port, valid only for L2 and Hybrid ports.
- vxlan
Ids number[] - List of VXLAN IDs to attach to the port, valid only for L2 and Hybrid ports.
- bond_
id str - UUID of the bond port.
- bond_
name str - Name of the bond port.
- bonded bool
- Whether the port should be bonded.
- disbond_
supported bool - Flag indicating whether the port can be removed from a bond.
- layer2 bool
- Whether to put the port to Layer 2 mode, valid only for bond ports.
- mac str
- MAC address of the port.
- name str
- Name of the port, e.g.
bond0
oreth0
. - native_
vlan_ strid - UUID of a VLAN to assign as a native VLAN. It must be one of attached VLANs (from
vlan_ids
parameter). - network_
type str - One of layer2-bonded, layer2-individual, layer3, hybrid and hybrid-bonded. This attribute is only set on bond ports.
- port_
id str - ID of the port to read.
- reset_
on_ booldelete - Behavioral setting to reset the port to default settings (layer3 bonded mode without any vlan attached) before delete/destroy.
- type str
- Type is either "NetworkBondPort" for bond ports or "NetworkPort" for bondable ethernet ports.
- vlan_
ids Sequence[str] - List of VLAN UUIDs to attach to the port, valid only for L2 and Hybrid ports.
- vxlan_
ids Sequence[int] - List of VXLAN IDs to attach to the port, valid only for L2 and Hybrid ports.
- bond
Id String - UUID of the bond port.
- bond
Name String - Name of the bond port.
- bonded Boolean
- Whether the port should be bonded.
- disbond
Supported Boolean - Flag indicating whether the port can be removed from a bond.
- layer2 Boolean
- Whether to put the port to Layer 2 mode, valid only for bond ports.
- mac String
- MAC address of the port.
- name String
- Name of the port, e.g.
bond0
oreth0
. - native
Vlan StringId - UUID of a VLAN to assign as a native VLAN. It must be one of attached VLANs (from
vlan_ids
parameter). - network
Type String - One of layer2-bonded, layer2-individual, layer3, hybrid and hybrid-bonded. This attribute is only set on bond ports.
- port
Id String - ID of the port to read.
- reset
On BooleanDelete - Behavioral setting to reset the port to default settings (layer3 bonded mode without any vlan attached) before delete/destroy.
- type String
- Type is either "NetworkBondPort" for bond ports or "NetworkPort" for bondable ethernet ports.
- vlan
Ids List<String> - List of VLAN UUIDs to attach to the port, valid only for L2 and Hybrid ports.
- vxlan
Ids List<Number> - List of VXLAN IDs to attach to the port, valid only for L2 and Hybrid ports.
Package Details
- Repository
- equinix equinix/pulumi-equinix
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
equinix
Terraform Provider.