1. Packages
  2. Packages
  3. Ibm Provider
  4. API Docs
  5. ContainerVniBaremetalAttachment
Viewing docs for ibm 2.5.0-beta0
published on Thursday, Jul 23, 2026 by ibm-cloud
Viewing docs for ibm 2.5.0-beta0
published on Thursday, Jul 23, 2026 by ibm-cloud

    Attach a Virtual Network Interface (VNI) to a bare metal worker node in a Red Hat OpenShift on IBM Cloud cluster. VNIs provide network connectivity for bare metal workers. This feature is currently supported for OpenShift clusters only.

    Example Usage

    Attach VNI to a specific worker

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const attachment = new ibm.ContainerVniBaremetalAttachment("attachment", {
        vniId: "r006-1234abcd-5678-90ef-1234-567890abcdef",
        vlanId: 100,
        worker: "kube-c4u8l44d0hf4s8k25u90-mycluster-bm-000001",
        autoDelete: false,
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    attachment = ibm.ContainerVniBaremetalAttachment("attachment",
        vni_id="r006-1234abcd-5678-90ef-1234-567890abcdef",
        vlan_id=100,
        worker="kube-c4u8l44d0hf4s8k25u90-mycluster-bm-000001",
        auto_delete=False)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/v2/ibm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ibm.NewContainerVniBaremetalAttachment(ctx, "attachment", &ibm.ContainerVniBaremetalAttachmentArgs{
    			VniId:      pulumi.String("r006-1234abcd-5678-90ef-1234-567890abcdef"),
    			VlanId:     pulumi.Float64(100),
    			Worker:     pulumi.String("kube-c4u8l44d0hf4s8k25u90-mycluster-bm-000001"),
    			AutoDelete: pulumi.Bool(false),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ibm = Pulumi.Ibm;
    
    return await Deployment.RunAsync(() => 
    {
        var attachment = new Ibm.ContainerVniBaremetalAttachment("attachment", new()
        {
            VniId = "r006-1234abcd-5678-90ef-1234-567890abcdef",
            VlanId = 100,
            Worker = "kube-c4u8l44d0hf4s8k25u90-mycluster-bm-000001",
            AutoDelete = false,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.ContainerVniBaremetalAttachment;
    import com.pulumi.ibm.ContainerVniBaremetalAttachmentArgs;
    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 attachment = new ContainerVniBaremetalAttachment("attachment", ContainerVniBaremetalAttachmentArgs.builder()
                .vniId("r006-1234abcd-5678-90ef-1234-567890abcdef")
                .vlanId(100.0)
                .worker("kube-c4u8l44d0hf4s8k25u90-mycluster-bm-000001")
                .autoDelete(false)
                .build());
    
        }
    }
    
    resources:
      attachment:
        type: ibm:ContainerVniBaremetalAttachment
        properties:
          vniId: r006-1234abcd-5678-90ef-1234-567890abcdef
          vlanId: 100
          worker: kube-c4u8l44d0hf4s8k25u90-mycluster-bm-000001
          autoDelete: false
    
    Example coming soon!
    

    Attach VNI to any available worker in a cluster

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const attachment = new ibm.ContainerVniBaremetalAttachment("attachment", {
        vniId: "r006-1234abcd-5678-90ef-1234-567890abcdef",
        vlanId: 100,
        cluster: "mycluster",
        autoDelete: false,
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    attachment = ibm.ContainerVniBaremetalAttachment("attachment",
        vni_id="r006-1234abcd-5678-90ef-1234-567890abcdef",
        vlan_id=100,
        cluster="mycluster",
        auto_delete=False)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/v2/ibm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ibm.NewContainerVniBaremetalAttachment(ctx, "attachment", &ibm.ContainerVniBaremetalAttachmentArgs{
    			VniId:      pulumi.String("r006-1234abcd-5678-90ef-1234-567890abcdef"),
    			VlanId:     pulumi.Float64(100),
    			Cluster:    pulumi.String("mycluster"),
    			AutoDelete: pulumi.Bool(false),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ibm = Pulumi.Ibm;
    
    return await Deployment.RunAsync(() => 
    {
        var attachment = new Ibm.ContainerVniBaremetalAttachment("attachment", new()
        {
            VniId = "r006-1234abcd-5678-90ef-1234-567890abcdef",
            VlanId = 100,
            Cluster = "mycluster",
            AutoDelete = false,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.ContainerVniBaremetalAttachment;
    import com.pulumi.ibm.ContainerVniBaremetalAttachmentArgs;
    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 attachment = new ContainerVniBaremetalAttachment("attachment", ContainerVniBaremetalAttachmentArgs.builder()
                .vniId("r006-1234abcd-5678-90ef-1234-567890abcdef")
                .vlanId(100.0)
                .cluster("mycluster")
                .autoDelete(false)
                .build());
    
        }
    }
    
    resources:
      attachment:
        type: ibm:ContainerVniBaremetalAttachment
        properties:
          vniId: r006-1234abcd-5678-90ef-1234-567890abcdef
          vlanId: 100
          cluster: mycluster
          autoDelete: false
    
    Example coming soon!
    

    Create ContainerVniBaremetalAttachment Resource

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

    Constructor syntax

    new ContainerVniBaremetalAttachment(name: string, args: ContainerVniBaremetalAttachmentArgs, opts?: CustomResourceOptions);
    @overload
    def ContainerVniBaremetalAttachment(resource_name: str,
                                        args: ContainerVniBaremetalAttachmentArgs,
                                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def ContainerVniBaremetalAttachment(resource_name: str,
                                        opts: Optional[ResourceOptions] = None,
                                        vlan_id: Optional[float] = None,
                                        vni_id: Optional[str] = None,
                                        auto_delete: Optional[bool] = None,
                                        cluster: Optional[str] = None,
                                        container_vni_baremetal_attachment_id: Optional[str] = None,
                                        resource_group_id: Optional[str] = None,
                                        timeouts: Optional[ContainerVniBaremetalAttachmentTimeoutsArgs] = None,
                                        worker: Optional[str] = None)
    func NewContainerVniBaremetalAttachment(ctx *Context, name string, args ContainerVniBaremetalAttachmentArgs, opts ...ResourceOption) (*ContainerVniBaremetalAttachment, error)
    public ContainerVniBaremetalAttachment(string name, ContainerVniBaremetalAttachmentArgs args, CustomResourceOptions? opts = null)
    public ContainerVniBaremetalAttachment(String name, ContainerVniBaremetalAttachmentArgs args)
    public ContainerVniBaremetalAttachment(String name, ContainerVniBaremetalAttachmentArgs args, CustomResourceOptions options)
    
    type: ibm:ContainerVniBaremetalAttachment
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "ibm_container_vni_baremetal_attachment" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args ContainerVniBaremetalAttachmentArgs
    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 ContainerVniBaremetalAttachmentArgs
    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 ContainerVniBaremetalAttachmentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ContainerVniBaremetalAttachmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ContainerVniBaremetalAttachmentArgs
    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 containerVniBaremetalAttachmentResource = new Ibm.ContainerVniBaremetalAttachment("containerVniBaremetalAttachmentResource", new()
    {
        VlanId = 0,
        VniId = "string",
        AutoDelete = false,
        Cluster = "string",
        ContainerVniBaremetalAttachmentId = "string",
        ResourceGroupId = "string",
        Timeouts = new Ibm.Inputs.ContainerVniBaremetalAttachmentTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
        },
        Worker = "string",
    });
    
    example, err := ibm.NewContainerVniBaremetalAttachment(ctx, "containerVniBaremetalAttachmentResource", &ibm.ContainerVniBaremetalAttachmentArgs{
    	VlanId:                            pulumi.Float64(0),
    	VniId:                             pulumi.String("string"),
    	AutoDelete:                        pulumi.Bool(false),
    	Cluster:                           pulumi.String("string"),
    	ContainerVniBaremetalAttachmentId: pulumi.String("string"),
    	ResourceGroupId:                   pulumi.String("string"),
    	Timeouts: &ibm.ContainerVniBaremetalAttachmentTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    	},
    	Worker: pulumi.String("string"),
    })
    
    resource "ibm_container_vni_baremetal_attachment" "containerVniBaremetalAttachmentResource" {
      lifecycle {
        create_before_destroy = true
      }
      vlan_id                               = 0
      vni_id                                = "string"
      auto_delete                           = false
      cluster                               = "string"
      container_vni_baremetal_attachment_id = "string"
      resource_group_id                     = "string"
      timeouts = {
        create = "string"
        delete = "string"
      }
      worker = "string"
    }
    
    var containerVniBaremetalAttachmentResource = new ContainerVniBaremetalAttachment("containerVniBaremetalAttachmentResource", ContainerVniBaremetalAttachmentArgs.builder()
        .vlanId(0.0)
        .vniId("string")
        .autoDelete(false)
        .cluster("string")
        .containerVniBaremetalAttachmentId("string")
        .resourceGroupId("string")
        .timeouts(ContainerVniBaremetalAttachmentTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .build())
        .worker("string")
        .build());
    
    container_vni_baremetal_attachment_resource = ibm.ContainerVniBaremetalAttachment("containerVniBaremetalAttachmentResource",
        vlan_id=float(0),
        vni_id="string",
        auto_delete=False,
        cluster="string",
        container_vni_baremetal_attachment_id="string",
        resource_group_id="string",
        timeouts={
            "create": "string",
            "delete": "string",
        },
        worker="string")
    
    const containerVniBaremetalAttachmentResource = new ibm.ContainerVniBaremetalAttachment("containerVniBaremetalAttachmentResource", {
        vlanId: 0,
        vniId: "string",
        autoDelete: false,
        cluster: "string",
        containerVniBaremetalAttachmentId: "string",
        resourceGroupId: "string",
        timeouts: {
            create: "string",
            "delete": "string",
        },
        worker: "string",
    });
    
    type: ibm:ContainerVniBaremetalAttachment
    properties:
        autoDelete: false
        cluster: string
        containerVniBaremetalAttachmentId: string
        resourceGroupId: string
        timeouts:
            create: string
            delete: string
        vlanId: 0
        vniId: string
        worker: string
    

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

    VlanId double
    The VLAN ID for the bare metal worker. Valid range is 1-500.
    VniId string
    The ID of the VNI to attach to the bare metal worker.
    AutoDelete bool
    Whether to delete the VNI when the attachment is destroyed. Default is false.
    Cluster string
    The cluster ID to attach the VNI to any available worker. Exactly one of cluster or worker must be specified.
    ContainerVniBaremetalAttachmentId string
    (String) The unique identifier of the VNI attachment (same as vni_id).
    ResourceGroupId string
    The ID of the resource group where the cluster is provisioned. To find the resource group, run ibmcloud resource groups or use the ibm.ResourceGroup data source.
    Timeouts ContainerVniBaremetalAttachmentTimeouts
    Worker string
    The worker ID to attach the VNI to a specific worker. Exactly one of cluster or worker must be specified.
    VlanId float64
    The VLAN ID for the bare metal worker. Valid range is 1-500.
    VniId string
    The ID of the VNI to attach to the bare metal worker.
    AutoDelete bool
    Whether to delete the VNI when the attachment is destroyed. Default is false.
    Cluster string
    The cluster ID to attach the VNI to any available worker. Exactly one of cluster or worker must be specified.
    ContainerVniBaremetalAttachmentId string
    (String) The unique identifier of the VNI attachment (same as vni_id).
    ResourceGroupId string
    The ID of the resource group where the cluster is provisioned. To find the resource group, run ibmcloud resource groups or use the ibm.ResourceGroup data source.
    Timeouts ContainerVniBaremetalAttachmentTimeoutsArgs
    Worker string
    The worker ID to attach the VNI to a specific worker. Exactly one of cluster or worker must be specified.
    vlan_id number
    The VLAN ID for the bare metal worker. Valid range is 1-500.
    vni_id string
    The ID of the VNI to attach to the bare metal worker.
    auto_delete bool
    Whether to delete the VNI when the attachment is destroyed. Default is false.
    cluster string
    The cluster ID to attach the VNI to any available worker. Exactly one of cluster or worker must be specified.
    container_vni_baremetal_attachment_id string
    (String) The unique identifier of the VNI attachment (same as vni_id).
    resource_group_id string
    The ID of the resource group where the cluster is provisioned. To find the resource group, run ibmcloud resource groups or use the ibm.ResourceGroup data source.
    timeouts object
    worker string
    The worker ID to attach the VNI to a specific worker. Exactly one of cluster or worker must be specified.
    vlanId Double
    The VLAN ID for the bare metal worker. Valid range is 1-500.
    vniId String
    The ID of the VNI to attach to the bare metal worker.
    autoDelete Boolean
    Whether to delete the VNI when the attachment is destroyed. Default is false.
    cluster String
    The cluster ID to attach the VNI to any available worker. Exactly one of cluster or worker must be specified.
    containerVniBaremetalAttachmentId String
    (String) The unique identifier of the VNI attachment (same as vni_id).
    resourceGroupId String
    The ID of the resource group where the cluster is provisioned. To find the resource group, run ibmcloud resource groups or use the ibm.ResourceGroup data source.
    timeouts ContainerVniBaremetalAttachmentTimeouts
    worker String
    The worker ID to attach the VNI to a specific worker. Exactly one of cluster or worker must be specified.
    vlanId number
    The VLAN ID for the bare metal worker. Valid range is 1-500.
    vniId string
    The ID of the VNI to attach to the bare metal worker.
    autoDelete boolean
    Whether to delete the VNI when the attachment is destroyed. Default is false.
    cluster string
    The cluster ID to attach the VNI to any available worker. Exactly one of cluster or worker must be specified.
    containerVniBaremetalAttachmentId string
    (String) The unique identifier of the VNI attachment (same as vni_id).
    resourceGroupId string
    The ID of the resource group where the cluster is provisioned. To find the resource group, run ibmcloud resource groups or use the ibm.ResourceGroup data source.
    timeouts ContainerVniBaremetalAttachmentTimeouts
    worker string
    The worker ID to attach the VNI to a specific worker. Exactly one of cluster or worker must be specified.
    vlan_id float
    The VLAN ID for the bare metal worker. Valid range is 1-500.
    vni_id str
    The ID of the VNI to attach to the bare metal worker.
    auto_delete bool
    Whether to delete the VNI when the attachment is destroyed. Default is false.
    cluster str
    The cluster ID to attach the VNI to any available worker. Exactly one of cluster or worker must be specified.
    container_vni_baremetal_attachment_id str
    (String) The unique identifier of the VNI attachment (same as vni_id).
    resource_group_id str
    The ID of the resource group where the cluster is provisioned. To find the resource group, run ibmcloud resource groups or use the ibm.ResourceGroup data source.
    timeouts ContainerVniBaremetalAttachmentTimeoutsArgs
    worker str
    The worker ID to attach the VNI to a specific worker. Exactly one of cluster or worker must be specified.
    vlanId Number
    The VLAN ID for the bare metal worker. Valid range is 1-500.
    vniId String
    The ID of the VNI to attach to the bare metal worker.
    autoDelete Boolean
    Whether to delete the VNI when the attachment is destroyed. Default is false.
    cluster String
    The cluster ID to attach the VNI to any available worker. Exactly one of cluster or worker must be specified.
    containerVniBaremetalAttachmentId String
    (String) The unique identifier of the VNI attachment (same as vni_id).
    resourceGroupId String
    The ID of the resource group where the cluster is provisioned. To find the resource group, run ibmcloud resource groups or use the ibm.ResourceGroup data source.
    timeouts Property Map
    worker String
    The worker ID to attach the VNI to a specific worker. Exactly one of cluster or worker must be specified.

    Outputs

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

    CreatedAt string
    (String) The timestamp when the attachment was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    (String) The status of the attachment.
    WorkerId string
    (String) The ID of the worker where the VNI is attached.
    CreatedAt string
    (String) The timestamp when the attachment was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    (String) The status of the attachment.
    WorkerId string
    (String) The ID of the worker where the VNI is attached.
    created_at string
    (String) The timestamp when the attachment was created.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    (String) The status of the attachment.
    worker_id string
    (String) The ID of the worker where the VNI is attached.
    createdAt String
    (String) The timestamp when the attachment was created.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    (String) The status of the attachment.
    workerId String
    (String) The ID of the worker where the VNI is attached.
    createdAt string
    (String) The timestamp when the attachment was created.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    (String) The status of the attachment.
    workerId string
    (String) The ID of the worker where the VNI is attached.
    created_at str
    (String) The timestamp when the attachment was created.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    (String) The status of the attachment.
    worker_id str
    (String) The ID of the worker where the VNI is attached.
    createdAt String
    (String) The timestamp when the attachment was created.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    (String) The status of the attachment.
    workerId String
    (String) The ID of the worker where the VNI is attached.

    Look up Existing ContainerVniBaremetalAttachment Resource

    Get an existing ContainerVniBaremetalAttachment 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?: ContainerVniBaremetalAttachmentState, opts?: CustomResourceOptions): ContainerVniBaremetalAttachment
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            auto_delete: Optional[bool] = None,
            cluster: Optional[str] = None,
            container_vni_baremetal_attachment_id: Optional[str] = None,
            created_at: Optional[str] = None,
            resource_group_id: Optional[str] = None,
            status: Optional[str] = None,
            timeouts: Optional[ContainerVniBaremetalAttachmentTimeoutsArgs] = None,
            vlan_id: Optional[float] = None,
            vni_id: Optional[str] = None,
            worker: Optional[str] = None,
            worker_id: Optional[str] = None) -> ContainerVniBaremetalAttachment
    func GetContainerVniBaremetalAttachment(ctx *Context, name string, id IDInput, state *ContainerVniBaremetalAttachmentState, opts ...ResourceOption) (*ContainerVniBaremetalAttachment, error)
    public static ContainerVniBaremetalAttachment Get(string name, Input<string> id, ContainerVniBaremetalAttachmentState? state, CustomResourceOptions? opts = null)
    public static ContainerVniBaremetalAttachment get(String name, Output<String> id, ContainerVniBaremetalAttachmentState state, CustomResourceOptions options)
    resources:  _:    type: ibm:ContainerVniBaremetalAttachment    get:      id: ${id}
    import {
      to = ibm_container_vni_baremetal_attachment.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.
    The following state arguments are supported:
    AutoDelete bool
    Whether to delete the VNI when the attachment is destroyed. Default is false.
    Cluster string
    The cluster ID to attach the VNI to any available worker. Exactly one of cluster or worker must be specified.
    ContainerVniBaremetalAttachmentId string
    (String) The unique identifier of the VNI attachment (same as vni_id).
    CreatedAt string
    (String) The timestamp when the attachment was created.
    ResourceGroupId string
    The ID of the resource group where the cluster is provisioned. To find the resource group, run ibmcloud resource groups or use the ibm.ResourceGroup data source.
    Status string
    (String) The status of the attachment.
    Timeouts ContainerVniBaremetalAttachmentTimeouts
    VlanId double
    The VLAN ID for the bare metal worker. Valid range is 1-500.
    VniId string
    The ID of the VNI to attach to the bare metal worker.
    Worker string
    The worker ID to attach the VNI to a specific worker. Exactly one of cluster or worker must be specified.
    WorkerId string
    (String) The ID of the worker where the VNI is attached.
    AutoDelete bool
    Whether to delete the VNI when the attachment is destroyed. Default is false.
    Cluster string
    The cluster ID to attach the VNI to any available worker. Exactly one of cluster or worker must be specified.
    ContainerVniBaremetalAttachmentId string
    (String) The unique identifier of the VNI attachment (same as vni_id).
    CreatedAt string
    (String) The timestamp when the attachment was created.
    ResourceGroupId string
    The ID of the resource group where the cluster is provisioned. To find the resource group, run ibmcloud resource groups or use the ibm.ResourceGroup data source.
    Status string
    (String) The status of the attachment.
    Timeouts ContainerVniBaremetalAttachmentTimeoutsArgs
    VlanId float64
    The VLAN ID for the bare metal worker. Valid range is 1-500.
    VniId string
    The ID of the VNI to attach to the bare metal worker.
    Worker string
    The worker ID to attach the VNI to a specific worker. Exactly one of cluster or worker must be specified.
    WorkerId string
    (String) The ID of the worker where the VNI is attached.
    auto_delete bool
    Whether to delete the VNI when the attachment is destroyed. Default is false.
    cluster string
    The cluster ID to attach the VNI to any available worker. Exactly one of cluster or worker must be specified.
    container_vni_baremetal_attachment_id string
    (String) The unique identifier of the VNI attachment (same as vni_id).
    created_at string
    (String) The timestamp when the attachment was created.
    resource_group_id string
    The ID of the resource group where the cluster is provisioned. To find the resource group, run ibmcloud resource groups or use the ibm.ResourceGroup data source.
    status string
    (String) The status of the attachment.
    timeouts object
    vlan_id number
    The VLAN ID for the bare metal worker. Valid range is 1-500.
    vni_id string
    The ID of the VNI to attach to the bare metal worker.
    worker string
    The worker ID to attach the VNI to a specific worker. Exactly one of cluster or worker must be specified.
    worker_id string
    (String) The ID of the worker where the VNI is attached.
    autoDelete Boolean
    Whether to delete the VNI when the attachment is destroyed. Default is false.
    cluster String
    The cluster ID to attach the VNI to any available worker. Exactly one of cluster or worker must be specified.
    containerVniBaremetalAttachmentId String
    (String) The unique identifier of the VNI attachment (same as vni_id).
    createdAt String
    (String) The timestamp when the attachment was created.
    resourceGroupId String
    The ID of the resource group where the cluster is provisioned. To find the resource group, run ibmcloud resource groups or use the ibm.ResourceGroup data source.
    status String
    (String) The status of the attachment.
    timeouts ContainerVniBaremetalAttachmentTimeouts
    vlanId Double
    The VLAN ID for the bare metal worker. Valid range is 1-500.
    vniId String
    The ID of the VNI to attach to the bare metal worker.
    worker String
    The worker ID to attach the VNI to a specific worker. Exactly one of cluster or worker must be specified.
    workerId String
    (String) The ID of the worker where the VNI is attached.
    autoDelete boolean
    Whether to delete the VNI when the attachment is destroyed. Default is false.
    cluster string
    The cluster ID to attach the VNI to any available worker. Exactly one of cluster or worker must be specified.
    containerVniBaremetalAttachmentId string
    (String) The unique identifier of the VNI attachment (same as vni_id).
    createdAt string
    (String) The timestamp when the attachment was created.
    resourceGroupId string
    The ID of the resource group where the cluster is provisioned. To find the resource group, run ibmcloud resource groups or use the ibm.ResourceGroup data source.
    status string
    (String) The status of the attachment.
    timeouts ContainerVniBaremetalAttachmentTimeouts
    vlanId number
    The VLAN ID for the bare metal worker. Valid range is 1-500.
    vniId string
    The ID of the VNI to attach to the bare metal worker.
    worker string
    The worker ID to attach the VNI to a specific worker. Exactly one of cluster or worker must be specified.
    workerId string
    (String) The ID of the worker where the VNI is attached.
    auto_delete bool
    Whether to delete the VNI when the attachment is destroyed. Default is false.
    cluster str
    The cluster ID to attach the VNI to any available worker. Exactly one of cluster or worker must be specified.
    container_vni_baremetal_attachment_id str
    (String) The unique identifier of the VNI attachment (same as vni_id).
    created_at str
    (String) The timestamp when the attachment was created.
    resource_group_id str
    The ID of the resource group where the cluster is provisioned. To find the resource group, run ibmcloud resource groups or use the ibm.ResourceGroup data source.
    status str
    (String) The status of the attachment.
    timeouts ContainerVniBaremetalAttachmentTimeoutsArgs
    vlan_id float
    The VLAN ID for the bare metal worker. Valid range is 1-500.
    vni_id str
    The ID of the VNI to attach to the bare metal worker.
    worker str
    The worker ID to attach the VNI to a specific worker. Exactly one of cluster or worker must be specified.
    worker_id str
    (String) The ID of the worker where the VNI is attached.
    autoDelete Boolean
    Whether to delete the VNI when the attachment is destroyed. Default is false.
    cluster String
    The cluster ID to attach the VNI to any available worker. Exactly one of cluster or worker must be specified.
    containerVniBaremetalAttachmentId String
    (String) The unique identifier of the VNI attachment (same as vni_id).
    createdAt String
    (String) The timestamp when the attachment was created.
    resourceGroupId String
    The ID of the resource group where the cluster is provisioned. To find the resource group, run ibmcloud resource groups or use the ibm.ResourceGroup data source.
    status String
    (String) The status of the attachment.
    timeouts Property Map
    vlanId Number
    The VLAN ID for the bare metal worker. Valid range is 1-500.
    vniId String
    The ID of the VNI to attach to the bare metal worker.
    worker String
    The worker ID to attach the VNI to a specific worker. Exactly one of cluster or worker must be specified.
    workerId String
    (String) The ID of the worker where the VNI is attached.

    Supporting Types

    ContainerVniBaremetalAttachmentTimeouts, ContainerVniBaremetalAttachmentTimeoutsArgs

    Create string
    Delete string
    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

    The ibm_container_vni_baremetal_attachment resource can be imported by using the VNI ID.

    $ pulumi import ibm:index/containerVniBaremetalAttachment:ContainerVniBaremetalAttachment attachment r006-1234abcd-5678-90ef-1234-567890abcdef
    

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

    Package Details

    Repository
    ibm ibm-cloud/terraform-provider-ibm
    License
    Notes
    This Pulumi package is based on the ibm Terraform Provider.
    Viewing docs for ibm 2.5.0-beta0
    published on Thursday, Jul 23, 2026 by ibm-cloud

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial