published on Friday, Sep 11, 2026 by vmware
published on Friday, Sep 11, 2026 by vmware
This resource provides a way to configure tags on Bare Metal Server Interfaces discovered and managed by NSX-T. Tags applied to bare metal server interfaces can be used in dynamic group membership criteria and security policies.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as nsxt from "@pulumi/nsxt";
// Discover bare metal server interfaces
const serverInterfaces = nsxt.getPolicyBaremetalServerInterfaces({
bmsExternalId: "71be0142-2ed1-1d53-9c60-5564cf4b7e2e",
});
// Apply tags to a specific interface
const eth0Tags = new nsxt.PolicyBaremetalServerInterfaceTags("eth0_tags", {
externalId: serverInterfaces.then(serverInterfaces => serverInterfaces.results?.[0]?.externalId),
tags: [
{
scope: "network-type",
tag: "data-plane",
},
{
scope: "vlan",
tag: "100",
},
{
scope: "speed",
tag: "10Gbps",
},
],
});
// Use tagged interfaces in a dynamic group
const dataPlaneInterfaces = new nsxt.PolicyGroup("data_plane_interfaces", {
displayName: "Data-Plane-Interfaces",
description: "Dynamic group of data plane interfaces",
groupType: "BareMetalServer",
criterias: [{
conditions: [{
key: "Tag",
memberType: "BareMetalServerInterface",
operator: "EQUALS",
value: "network-type|data-plane",
}],
}],
});
import pulumi
import pulumi_nsxt as nsxt
# Discover bare metal server interfaces
server_interfaces = nsxt.get_policy_baremetal_server_interfaces(bms_external_id="71be0142-2ed1-1d53-9c60-5564cf4b7e2e")
# Apply tags to a specific interface
eth0_tags = nsxt.PolicyBaremetalServerInterfaceTags("eth0_tags",
external_id=server_interfaces.results[0].external_id,
tags=[
{
"scope": "network-type",
"tag": "data-plane",
},
{
"scope": "vlan",
"tag": "100",
},
{
"scope": "speed",
"tag": "10Gbps",
},
])
# Use tagged interfaces in a dynamic group
data_plane_interfaces = nsxt.PolicyGroup("data_plane_interfaces",
display_name="Data-Plane-Interfaces",
description="Dynamic group of data plane interfaces",
group_type="BareMetalServer",
criterias=[{
"conditions": [{
"key": "Tag",
"member_type": "BareMetalServerInterface",
"operator": "EQUALS",
"value": "network-type|data-plane",
}],
}])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/nsxt/v3/nsxt"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Discover bare metal server interfaces
serverInterfaces, err := nsxt.LookupPolicyBaremetalServerInterfaces(ctx, &nsxt.LookupPolicyBaremetalServerInterfacesArgs{
BmsExternalId: pulumi.StringRef("71be0142-2ed1-1d53-9c60-5564cf4b7e2e"),
}, nil)
if err != nil {
return err
}
// Apply tags to a specific interface
_, err = nsxt.NewPolicyBaremetalServerInterfaceTags(ctx, "eth0_tags", &nsxt.PolicyBaremetalServerInterfaceTagsArgs{
ExternalId: pulumi.String(serverInterfaces.Results[0].ExternalId),
Tags: nsxt.PolicyBaremetalServerInterfaceTagsTagArray{
&nsxt.PolicyBaremetalServerInterfaceTagsTagArgs{
Scope: pulumi.String("network-type"),
Tag: pulumi.String("data-plane"),
},
&nsxt.PolicyBaremetalServerInterfaceTagsTagArgs{
Scope: pulumi.String("vlan"),
Tag: pulumi.String("100"),
},
&nsxt.PolicyBaremetalServerInterfaceTagsTagArgs{
Scope: pulumi.String("speed"),
Tag: pulumi.String("10Gbps"),
},
},
})
if err != nil {
return err
}
// Use tagged interfaces in a dynamic group
_, err = nsxt.NewPolicyGroup(ctx, "data_plane_interfaces", &nsxt.PolicyGroupArgs{
DisplayName: pulumi.String("Data-Plane-Interfaces"),
Description: pulumi.String("Dynamic group of data plane interfaces"),
GroupType: pulumi.String("BareMetalServer"),
Criterias: nsxt.PolicyGroupCriteriaArray{
&nsxt.PolicyGroupCriteriaArgs{
Conditions: nsxt.PolicyGroupCriteriaConditionArray{
&nsxt.PolicyGroupCriteriaConditionArgs{
Key: pulumi.String("Tag"),
MemberType: pulumi.String("BareMetalServerInterface"),
Operator: pulumi.String("EQUALS"),
Value: pulumi.String("network-type|data-plane"),
},
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Nsxt = Pulumi.Nsxt;
return await Deployment.RunAsync(() =>
{
// Discover bare metal server interfaces
var serverInterfaces = Nsxt.GetPolicyBaremetalServerInterfaces.Invoke(new()
{
BmsExternalId = "71be0142-2ed1-1d53-9c60-5564cf4b7e2e",
});
// Apply tags to a specific interface
var eth0Tags = new Nsxt.PolicyBaremetalServerInterfaceTags("eth0_tags", new()
{
ExternalId = serverInterfaces.Apply(getPolicyBaremetalServerInterfacesResult => getPolicyBaremetalServerInterfacesResult.Results[0]?.ExternalId),
Tags = new[]
{
new Nsxt.Inputs.PolicyBaremetalServerInterfaceTagsTagArgs
{
Scope = "network-type",
Tag = "data-plane",
},
new Nsxt.Inputs.PolicyBaremetalServerInterfaceTagsTagArgs
{
Scope = "vlan",
Tag = "100",
},
new Nsxt.Inputs.PolicyBaremetalServerInterfaceTagsTagArgs
{
Scope = "speed",
Tag = "10Gbps",
},
},
});
// Use tagged interfaces in a dynamic group
var dataPlaneInterfaces = new Nsxt.PolicyGroup("data_plane_interfaces", new()
{
DisplayName = "Data-Plane-Interfaces",
Description = "Dynamic group of data plane interfaces",
GroupType = "BareMetalServer",
Criterias = new[]
{
new Nsxt.Inputs.PolicyGroupCriteriaArgs
{
Conditions = new[]
{
new Nsxt.Inputs.PolicyGroupCriteriaConditionArgs
{
Key = "Tag",
MemberType = "BareMetalServerInterface",
Operator = "EQUALS",
Value = "network-type|data-plane",
},
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.nsxt.NsxtFunctions;
import com.pulumi.nsxt.inputs.GetPolicyBaremetalServerInterfacesArgs;
import com.pulumi.nsxt.PolicyBaremetalServerInterfaceTags;
import com.pulumi.nsxt.PolicyBaremetalServerInterfaceTagsArgs;
import com.pulumi.nsxt.inputs.PolicyBaremetalServerInterfaceTagsTagArgs;
import com.pulumi.nsxt.PolicyGroup;
import com.pulumi.nsxt.PolicyGroupArgs;
import com.pulumi.nsxt.inputs.PolicyGroupCriteriaArgs;
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) {
// Discover bare metal server interfaces
final var serverInterfaces = NsxtFunctions.getPolicyBaremetalServerInterfaces(GetPolicyBaremetalServerInterfacesArgs.builder()
.bmsExternalId("71be0142-2ed1-1d53-9c60-5564cf4b7e2e")
.build());
// Apply tags to a specific interface
var eth0Tags = new PolicyBaremetalServerInterfaceTags("eth0Tags", PolicyBaremetalServerInterfaceTagsArgs.builder()
.externalId(serverInterfaces.results()[0].externalId())
.tags(
PolicyBaremetalServerInterfaceTagsTagArgs.builder()
.scope("network-type")
.tag("data-plane")
.build(),
PolicyBaremetalServerInterfaceTagsTagArgs.builder()
.scope("vlan")
.tag("100")
.build(),
PolicyBaremetalServerInterfaceTagsTagArgs.builder()
.scope("speed")
.tag("10Gbps")
.build())
.build());
// Use tagged interfaces in a dynamic group
var dataPlaneInterfaces = new PolicyGroup("dataPlaneInterfaces", PolicyGroupArgs.builder()
.displayName("Data-Plane-Interfaces")
.description("Dynamic group of data plane interfaces")
.groupType("BareMetalServer")
.criterias(PolicyGroupCriteriaArgs.builder()
.conditions(PolicyGroupCriteriaConditionArgs.builder()
.key("Tag")
.memberType("BareMetalServerInterface")
.operator("EQUALS")
.value("network-type|data-plane")
.build())
.build())
.build());
}
}
resources:
# Apply tags to a specific interface
eth0Tags:
type: nsxt:PolicyBaremetalServerInterfaceTags
name: eth0_tags
properties:
externalId: ${serverInterfaces.results[0].externalId}
tags:
- scope: network-type
tag: data-plane
- scope: vlan
tag: '100'
- scope: speed
tag: 10Gbps
# Use tagged interfaces in a dynamic group
dataPlaneInterfaces:
type: nsxt:PolicyGroup
name: data_plane_interfaces
properties:
displayName: Data-Plane-Interfaces
description: Dynamic group of data plane interfaces
groupType: BareMetalServer
criterias:
- conditions:
- key: Tag
memberType: BareMetalServerInterface
operator: EQUALS
value: network-type|data-plane
variables:
# Discover bare metal server interfaces
serverInterfaces:
fn::invoke:
function: nsxt:getPolicyBaremetalServerInterfaces
arguments:
bmsExternalId: 71be0142-2ed1-1d53-9c60-5564cf4b7e2e
Example coming soon!
Example with Interface Filtering
import * as pulumi from "@pulumi/pulumi";
import * as nsxt from "@pulumi/nsxt";
// Tag only non-management interfaces
const dataInterfaces: nsxt.PolicyBaremetalServerInterfaceTags[] = [];
for (const range of Object.entries(.filter(([idx, iface]) => !iface.isMgmtInterface && iface.state == "UP").reduce((__obj, [idx, iface]) => ({ ...__obj, [idx]: iface.externalId }))).map(([k, v]) => ({key: k, value: v}))) {
dataInterfaces.push(new nsxt.PolicyBaremetalServerInterfaceTags(`data_interfaces-${range.key}`, {
externalId: range.value,
tags: [
{
scope: "interface-role",
tag: "data-plane",
},
{
scope: "managed-by",
tag: "terraform",
},
],
}));
}
// Create group for high-speed interfaces
const highSpeedInterfaces = new nsxt.PolicyGroup("high_speed_interfaces", {
displayName: "High-Speed-Interfaces",
groupType: "BareMetalServer",
criterias: [
{
conditions: [{
key: "Tag",
memberType: "BareMetalServerInterface",
operator: "EQUALS",
value: "speed|10Gbps",
}],
},
{
conditions: [{
key: "Tag",
memberType: "BareMetalServerInterface",
operator: "EQUALS",
value: "speed|25Gbps",
}],
},
],
conjunctions: [{
operator: "OR",
}],
});
import pulumi
import pulumi_nsxt as nsxt
# Tag only non-management interfaces
data_interfaces = []
for range in [{"key": k, "value": v} for [k, v] in enumerate({idx: iface.external_id for idx, iface in all.results if not iface.is_mgmt_interface and iface.state == UP})]:
data_interfaces.append(nsxt.PolicyBaremetalServerInterfaceTags(f"data_interfaces-{range['key']}",
external_id=range["value"],
tags=[
{
"scope": "interface-role",
"tag": "data-plane",
},
{
"scope": "managed-by",
"tag": "terraform",
},
]))
# Create group for high-speed interfaces
high_speed_interfaces = nsxt.PolicyGroup("high_speed_interfaces",
display_name="High-Speed-Interfaces",
group_type="BareMetalServer",
criterias=[
{
"conditions": [{
"key": "Tag",
"member_type": "BareMetalServerInterface",
"operator": "EQUALS",
"value": "speed|10Gbps",
}],
},
{
"conditions": [{
"key": "Tag",
"member_type": "BareMetalServerInterface",
"operator": "EQUALS",
"value": "speed|25Gbps",
}],
},
],
conjunctions=[{
"operator": "OR",
}])
Example coming soon!
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Nsxt = Pulumi.Nsxt;
return await Deployment.RunAsync(() =>
{
// Tag only non-management interfaces
var dataInterfaces = new List<Nsxt.PolicyBaremetalServerInterfaceTags>();
foreach (var range in .ToDictionary(item => {
var idx = item.Key;
return idx;
}, item => {
var iface = item.Value;
return iface.ExternalId;
}).Select(pair => new { pair.Key, pair.Value }))
{
dataInterfaces.Add(new Nsxt.PolicyBaremetalServerInterfaceTags($"data_interfaces-{range.Key}", new()
{
ExternalId = range.Value,
Tags = new[]
{
new Nsxt.Inputs.PolicyBaremetalServerInterfaceTagsTagArgs
{
Scope = "interface-role",
Tag = "data-plane",
},
new Nsxt.Inputs.PolicyBaremetalServerInterfaceTagsTagArgs
{
Scope = "managed-by",
Tag = "terraform",
},
},
}));
}
// Create group for high-speed interfaces
var highSpeedInterfaces = new Nsxt.PolicyGroup("high_speed_interfaces", new()
{
DisplayName = "High-Speed-Interfaces",
GroupType = "BareMetalServer",
Criterias = new[]
{
new Nsxt.Inputs.PolicyGroupCriteriaArgs
{
Conditions = new[]
{
new Nsxt.Inputs.PolicyGroupCriteriaConditionArgs
{
Key = "Tag",
MemberType = "BareMetalServerInterface",
Operator = "EQUALS",
Value = "speed|10Gbps",
},
},
},
new Nsxt.Inputs.PolicyGroupCriteriaArgs
{
Conditions = new[]
{
new Nsxt.Inputs.PolicyGroupCriteriaConditionArgs
{
Key = "Tag",
MemberType = "BareMetalServerInterface",
Operator = "EQUALS",
Value = "speed|25Gbps",
},
},
},
},
Conjunctions = new[]
{
new Nsxt.Inputs.PolicyGroupConjunctionArgs
{
Operator = "OR",
},
},
});
});
Example coming soon!
resources:
# Tag only non-management interfaces
dataInterfaces:
type: nsxt:PolicyBaremetalServerInterfaceTags
name: data_interfaces
properties:
externalId: ${range.value}
tags:
- scope: interface-role
tag: data-plane
- scope: managed-by
tag: terraform
options: {}
# Create group for high-speed interfaces
highSpeedInterfaces:
type: nsxt:PolicyGroup
name: high_speed_interfaces
properties:
displayName: High-Speed-Interfaces
groupType: BareMetalServer
criterias:
- conditions:
- key: Tag
memberType: BareMetalServerInterface
operator: EQUALS
value: speed|10Gbps
- conditions:
- key: Tag
memberType: BareMetalServerInterface
operator: EQUALS
value: speed|25Gbps
conjunctions:
- operator: OR
Example coming soon!
Create PolicyBaremetalServerInterfaceTags Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PolicyBaremetalServerInterfaceTags(name: string, args: PolicyBaremetalServerInterfaceTagsArgs, opts?: CustomResourceOptions);@overload
def PolicyBaremetalServerInterfaceTags(resource_name: str,
args: PolicyBaremetalServerInterfaceTagsArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PolicyBaremetalServerInterfaceTags(resource_name: str,
opts: Optional[ResourceOptions] = None,
external_id: Optional[str] = None,
policy_baremetal_server_interface_tags_id: Optional[str] = None,
tags: Optional[Sequence[PolicyBaremetalServerInterfaceTagsTagArgs]] = None)func NewPolicyBaremetalServerInterfaceTags(ctx *Context, name string, args PolicyBaremetalServerInterfaceTagsArgs, opts ...ResourceOption) (*PolicyBaremetalServerInterfaceTags, error)public PolicyBaremetalServerInterfaceTags(string name, PolicyBaremetalServerInterfaceTagsArgs args, CustomResourceOptions? opts = null)
public PolicyBaremetalServerInterfaceTags(String name, PolicyBaremetalServerInterfaceTagsArgs args)
public PolicyBaremetalServerInterfaceTags(String name, PolicyBaremetalServerInterfaceTagsArgs args, CustomResourceOptions options)
type: nsxt:PolicyBaremetalServerInterfaceTags
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "nsxt_policy_baremetal_server_interface_tags" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args PolicyBaremetalServerInterfaceTagsArgs
- 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 PolicyBaremetalServerInterfaceTagsArgs
- 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 PolicyBaremetalServerInterfaceTagsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PolicyBaremetalServerInterfaceTagsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PolicyBaremetalServerInterfaceTagsArgs
- 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 policyBaremetalServerInterfaceTagsResource = new Nsxt.PolicyBaremetalServerInterfaceTags("policyBaremetalServerInterfaceTagsResource", new()
{
ExternalId = "string",
PolicyBaremetalServerInterfaceTagsId = "string",
Tags = new[]
{
new Nsxt.Inputs.PolicyBaremetalServerInterfaceTagsTagArgs
{
Scope = "string",
Tag = "string",
},
},
});
example, err := nsxt.NewPolicyBaremetalServerInterfaceTags(ctx, "policyBaremetalServerInterfaceTagsResource", &nsxt.PolicyBaremetalServerInterfaceTagsArgs{
ExternalId: pulumi.String("string"),
PolicyBaremetalServerInterfaceTagsId: pulumi.String("string"),
Tags: nsxt.PolicyBaremetalServerInterfaceTagsTagArray{
&nsxt.PolicyBaremetalServerInterfaceTagsTagArgs{
Scope: pulumi.String("string"),
Tag: pulumi.String("string"),
},
},
})
resource "nsxt_policy_baremetal_server_interface_tags" "policyBaremetalServerInterfaceTagsResource" {
lifecycle {
create_before_destroy = true
}
external_id = "string"
policy_baremetal_server_interface_tags_id = "string"
tags {
scope = "string"
tag = "string"
}
}
var policyBaremetalServerInterfaceTagsResource = new PolicyBaremetalServerInterfaceTags("policyBaremetalServerInterfaceTagsResource", PolicyBaremetalServerInterfaceTagsArgs.builder()
.externalId("string")
.policyBaremetalServerInterfaceTagsId("string")
.tags(PolicyBaremetalServerInterfaceTagsTagArgs.builder()
.scope("string")
.tag("string")
.build())
.build());
policy_baremetal_server_interface_tags_resource = nsxt.PolicyBaremetalServerInterfaceTags("policyBaremetalServerInterfaceTagsResource",
external_id="string",
policy_baremetal_server_interface_tags_id="string",
tags=[{
"scope": "string",
"tag": "string",
}])
const policyBaremetalServerInterfaceTagsResource = new nsxt.PolicyBaremetalServerInterfaceTags("policyBaremetalServerInterfaceTagsResource", {
externalId: "string",
policyBaremetalServerInterfaceTagsId: "string",
tags: [{
scope: "string",
tag: "string",
}],
});
type: nsxt:PolicyBaremetalServerInterfaceTags
properties:
externalId: string
policyBaremetalServerInterfaceTagsId: string
tags:
- scope: string
tag: string
PolicyBaremetalServerInterfaceTags 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 PolicyBaremetalServerInterfaceTags resource accepts the following input properties:
- External
Id string - External ID of the bare metal server interface to tag. This is typically obtained from the
nsxt.getPolicyBaremetalServerInterfacesdata source. - string
- ID of the bare metal server interface being tagged.
-
List<Policy
Baremetal Server Interface Tags Tag> - A list of scope + tag pairs to associate with this bare metal server interface. Default is empty (no tags applied).
- External
Id string - External ID of the bare metal server interface to tag. This is typically obtained from the
nsxt.getPolicyBaremetalServerInterfacesdata source. - string
- ID of the bare metal server interface being tagged.
-
[]Policy
Baremetal Server Interface Tags Tag Args - A list of scope + tag pairs to associate with this bare metal server interface. Default is empty (no tags applied).
- external_
id string - External ID of the bare metal server interface to tag. This is typically obtained from the
nsxt.getPolicyBaremetalServerInterfacesdata source. - string
- ID of the bare metal server interface being tagged.
- list(object)
- A list of scope + tag pairs to associate with this bare metal server interface. Default is empty (no tags applied).
- external
Id String - External ID of the bare metal server interface to tag. This is typically obtained from the
nsxt.getPolicyBaremetalServerInterfacesdata source. - String
- ID of the bare metal server interface being tagged.
-
List<Policy
Baremetal Server Interface Tags Tag> - A list of scope + tag pairs to associate with this bare metal server interface. Default is empty (no tags applied).
- external
Id string - External ID of the bare metal server interface to tag. This is typically obtained from the
nsxt.getPolicyBaremetalServerInterfacesdata source. - string
- ID of the bare metal server interface being tagged.
-
Policy
Baremetal Server Interface Tags Tag[] - A list of scope + tag pairs to associate with this bare metal server interface. Default is empty (no tags applied).
- external_
id str - External ID of the bare metal server interface to tag. This is typically obtained from the
nsxt.getPolicyBaremetalServerInterfacesdata source. - str
- ID of the bare metal server interface being tagged.
-
Sequence[Policy
Baremetal Server Interface Tags Tag Args] - A list of scope + tag pairs to associate with this bare metal server interface. Default is empty (no tags applied).
- external
Id String - External ID of the bare metal server interface to tag. This is typically obtained from the
nsxt.getPolicyBaremetalServerInterfacesdata source. - String
- ID of the bare metal server interface being tagged.
- List<Property Map>
- A list of scope + tag pairs to associate with this bare metal server interface. Default is empty (no tags applied).
Outputs
All input properties are implicitly available as output properties. Additionally, the PolicyBaremetalServerInterfaceTags 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 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 PolicyBaremetalServerInterfaceTags Resource
Get an existing PolicyBaremetalServerInterfaceTags 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?: PolicyBaremetalServerInterfaceTagsState, opts?: CustomResourceOptions): PolicyBaremetalServerInterfaceTags@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
external_id: Optional[str] = None,
policy_baremetal_server_interface_tags_id: Optional[str] = None,
tags: Optional[Sequence[PolicyBaremetalServerInterfaceTagsTagArgs]] = None) -> PolicyBaremetalServerInterfaceTagsfunc GetPolicyBaremetalServerInterfaceTags(ctx *Context, name string, id IDInput, state *PolicyBaremetalServerInterfaceTagsState, opts ...ResourceOption) (*PolicyBaremetalServerInterfaceTags, error)public static PolicyBaremetalServerInterfaceTags Get(string name, Input<string> id, PolicyBaremetalServerInterfaceTagsState? state, CustomResourceOptions? opts = null)public static PolicyBaremetalServerInterfaceTags get(String name, Output<String> id, PolicyBaremetalServerInterfaceTagsState state, CustomResourceOptions options)resources: _: type: nsxt:PolicyBaremetalServerInterfaceTags get: id: ${id}import {
to = nsxt_policy_baremetal_server_interface_tags.example
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.
- External
Id string - External ID of the bare metal server interface to tag. This is typically obtained from the
nsxt.getPolicyBaremetalServerInterfacesdata source. - string
- ID of the bare metal server interface being tagged.
-
List<Policy
Baremetal Server Interface Tags Tag> - A list of scope + tag pairs to associate with this bare metal server interface. Default is empty (no tags applied).
- External
Id string - External ID of the bare metal server interface to tag. This is typically obtained from the
nsxt.getPolicyBaremetalServerInterfacesdata source. - string
- ID of the bare metal server interface being tagged.
-
[]Policy
Baremetal Server Interface Tags Tag Args - A list of scope + tag pairs to associate with this bare metal server interface. Default is empty (no tags applied).
- external_
id string - External ID of the bare metal server interface to tag. This is typically obtained from the
nsxt.getPolicyBaremetalServerInterfacesdata source. - string
- ID of the bare metal server interface being tagged.
- list(object)
- A list of scope + tag pairs to associate with this bare metal server interface. Default is empty (no tags applied).
- external
Id String - External ID of the bare metal server interface to tag. This is typically obtained from the
nsxt.getPolicyBaremetalServerInterfacesdata source. - String
- ID of the bare metal server interface being tagged.
-
List<Policy
Baremetal Server Interface Tags Tag> - A list of scope + tag pairs to associate with this bare metal server interface. Default is empty (no tags applied).
- external
Id string - External ID of the bare metal server interface to tag. This is typically obtained from the
nsxt.getPolicyBaremetalServerInterfacesdata source. - string
- ID of the bare metal server interface being tagged.
-
Policy
Baremetal Server Interface Tags Tag[] - A list of scope + tag pairs to associate with this bare metal server interface. Default is empty (no tags applied).
- external_
id str - External ID of the bare metal server interface to tag. This is typically obtained from the
nsxt.getPolicyBaremetalServerInterfacesdata source. - str
- ID of the bare metal server interface being tagged.
-
Sequence[Policy
Baremetal Server Interface Tags Tag Args] - A list of scope + tag pairs to associate with this bare metal server interface. Default is empty (no tags applied).
- external
Id String - External ID of the bare metal server interface to tag. This is typically obtained from the
nsxt.getPolicyBaremetalServerInterfacesdata source. - String
- ID of the bare metal server interface being tagged.
- List<Property Map>
- A list of scope + tag pairs to associate with this bare metal server interface. Default is empty (no tags applied).
Supporting Types
PolicyBaremetalServerInterfaceTagsTag, PolicyBaremetalServerInterfaceTagsTagArgs
Import
An NSX Policy Bare Metal Server Interface Tags resource can be imported using the interface external ID:
$ pulumi import nsxt:index/policyBaremetalServerInterfaceTags:PolicyBaremetalServerInterfaceTags eth0_tags 71be0142-2ed1-1d53-9c60-02005b4b7246
The above command imports the interface tags for the interface with external ID 71be0142-2ed1-1d53-9c60-02005b4b7246.
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- nsxt vmware/terraform-provider-nsxt
- License
- Notes
- This Pulumi package is based on the
nsxtTerraform Provider.
published on Friday, Sep 11, 2026 by vmware