published on Wednesday, Jul 1, 2026 by ibm-cloud
published on Wednesday, Jul 1, 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_containervnibaremetalattachment" "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_containervnibaremetalattachment" "containerVniBaremetalAttachmentResource" {
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:
- Vlan
Id double - 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 or name to attach the VNI to any available worker. Exactly one of
clusterorworkermust be specified. - Container
Vni stringBaremetal Attachment Id - (String) The unique identifier of the VNI attachment (same as
vni_id). - Resource
Group stringId - The ID of the resource group where the cluster is provisioned. To find the resource group, run
ibmcloud resource groupsor use theibm.ResourceGroupdata source. - Timeouts
Container
Vni Baremetal Attachment Timeouts - Worker string
- The worker ID to attach the VNI to a specific worker. Exactly one of
clusterorworkermust be specified.
- Vlan
Id float64 - 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 or name to attach the VNI to any available worker. Exactly one of
clusterorworkermust be specified. - Container
Vni stringBaremetal Attachment Id - (String) The unique identifier of the VNI attachment (same as
vni_id). - Resource
Group stringId - The ID of the resource group where the cluster is provisioned. To find the resource group, run
ibmcloud resource groupsor use theibm.ResourceGroupdata source. - Timeouts
Container
Vni Baremetal Attachment Timeouts Args - Worker string
- The worker ID to attach the VNI to a specific worker. Exactly one of
clusterorworkermust 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 or name to attach the VNI to any available worker. Exactly one of
clusterorworkermust be specified. - container_
vni_ stringbaremetal_ attachment_ id - (String) The unique identifier of the VNI attachment (same as
vni_id). - resource_
group_ stringid - The ID of the resource group where the cluster is provisioned. To find the resource group, run
ibmcloud resource groupsor use theibm.ResourceGroupdata source. - timeouts object
- worker string
- The worker ID to attach the VNI to a specific worker. Exactly one of
clusterorworkermust be specified.
- vlan
Id Double - 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 Boolean - Whether to delete the VNI when the attachment is destroyed. Default is
false. - cluster String
- The cluster ID or name to attach the VNI to any available worker. Exactly one of
clusterorworkermust be specified. - container
Vni StringBaremetal Attachment Id - (String) The unique identifier of the VNI attachment (same as
vni_id). - resource
Group StringId - The ID of the resource group where the cluster is provisioned. To find the resource group, run
ibmcloud resource groupsor use theibm.ResourceGroupdata source. - timeouts
Container
Vni Baremetal Attachment Timeouts - worker String
- The worker ID to attach the VNI to a specific worker. Exactly one of
clusterorworkermust 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 boolean - Whether to delete the VNI when the attachment is destroyed. Default is
false. - cluster string
- The cluster ID or name to attach the VNI to any available worker. Exactly one of
clusterorworkermust be specified. - container
Vni stringBaremetal Attachment Id - (String) The unique identifier of the VNI attachment (same as
vni_id). - resource
Group stringId - The ID of the resource group where the cluster is provisioned. To find the resource group, run
ibmcloud resource groupsor use theibm.ResourceGroupdata source. - timeouts
Container
Vni Baremetal Attachment Timeouts - worker string
- The worker ID to attach the VNI to a specific worker. Exactly one of
clusterorworkermust 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 or name to attach the VNI to any available worker. Exactly one of
clusterorworkermust be specified. - container_
vni_ strbaremetal_ attachment_ id - (String) The unique identifier of the VNI attachment (same as
vni_id). - resource_
group_ strid - The ID of the resource group where the cluster is provisioned. To find the resource group, run
ibmcloud resource groupsor use theibm.ResourceGroupdata source. - timeouts
Container
Vni Baremetal Attachment Timeouts Args - worker str
- The worker ID to attach the VNI to a specific worker. Exactly one of
clusterorworkermust 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 Boolean - Whether to delete the VNI when the attachment is destroyed. Default is
false. - cluster String
- The cluster ID or name to attach the VNI to any available worker. Exactly one of
clusterorworkermust be specified. - container
Vni StringBaremetal Attachment Id - (String) The unique identifier of the VNI attachment (same as
vni_id). - resource
Group StringId - The ID of the resource group where the cluster is provisioned. To find the resource group, run
ibmcloud resource groupsor use theibm.ResourceGroupdata source. - timeouts Property Map
- worker String
- The worker ID to attach the VNI to a specific worker. Exactly one of
clusterorworkermust be specified.
Outputs
All input properties are implicitly available as output properties. Additionally, the ContainerVniBaremetalAttachment resource produces the following output properties:
- 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.
- 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.
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) -> ContainerVniBaremetalAttachmentfunc 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_containervnibaremetalattachment.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.
- Auto
Delete bool - Whether to delete the VNI when the attachment is destroyed. Default is
false. - Cluster string
- The cluster ID or name to attach the VNI to any available worker. Exactly one of
clusterorworkermust be specified. - Container
Vni stringBaremetal Attachment Id - (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 stringId - The ID of the resource group where the cluster is provisioned. To find the resource group, run
ibmcloud resource groupsor use theibm.ResourceGroupdata source. - Status string
- (String) The status of the attachment.
- Timeouts
Container
Vni Baremetal Attachment Timeouts - Vlan
Id double - 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
clusterorworkermust be specified. - Worker
Id 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 or name to attach the VNI to any available worker. Exactly one of
clusterorworkermust be specified. - Container
Vni stringBaremetal Attachment Id - (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 stringId - The ID of the resource group where the cluster is provisioned. To find the resource group, run
ibmcloud resource groupsor use theibm.ResourceGroupdata source. - Status string
- (String) The status of the attachment.
- Timeouts
Container
Vni Baremetal Attachment Timeouts Args - Vlan
Id float64 - 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
clusterorworkermust be specified. - Worker
Id 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 or name to attach the VNI to any available worker. Exactly one of
clusterorworkermust be specified. - container_
vni_ stringbaremetal_ attachment_ id - (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_ stringid - The ID of the resource group where the cluster is provisioned. To find the resource group, run
ibmcloud resource groupsor use theibm.ResourceGroupdata 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
clusterorworkermust be specified. - worker_
id string - (String) The ID of the worker where the VNI is attached.
- auto
Delete Boolean - Whether to delete the VNI when the attachment is destroyed. Default is
false. - cluster String
- The cluster ID or name to attach the VNI to any available worker. Exactly one of
clusterorworkermust be specified. - container
Vni StringBaremetal Attachment Id - (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 StringId - The ID of the resource group where the cluster is provisioned. To find the resource group, run
ibmcloud resource groupsor use theibm.ResourceGroupdata source. - status String
- (String) The status of the attachment.
- timeouts
Container
Vni Baremetal Attachment Timeouts - vlan
Id Double - 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
clusterorworkermust be specified. - worker
Id String - (String) The ID of the worker where the VNI is attached.
- auto
Delete boolean - Whether to delete the VNI when the attachment is destroyed. Default is
false. - cluster string
- The cluster ID or name to attach the VNI to any available worker. Exactly one of
clusterorworkermust be specified. - container
Vni stringBaremetal Attachment Id - (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 stringId - The ID of the resource group where the cluster is provisioned. To find the resource group, run
ibmcloud resource groupsor use theibm.ResourceGroupdata source. - status string
- (String) The status of the attachment.
- timeouts
Container
Vni Baremetal Attachment Timeouts - 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
clusterorworkermust be specified. - worker
Id 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 or name to attach the VNI to any available worker. Exactly one of
clusterorworkermust be specified. - container_
vni_ strbaremetal_ attachment_ id - (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_ strid - The ID of the resource group where the cluster is provisioned. To find the resource group, run
ibmcloud resource groupsor use theibm.ResourceGroupdata source. - status str
- (String) The status of the attachment.
- timeouts
Container
Vni Baremetal Attachment Timeouts Args - 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
clusterorworkermust be specified. - worker_
id str - (String) The ID of the worker where the VNI is attached.
- auto
Delete Boolean - Whether to delete the VNI when the attachment is destroyed. Default is
false. - cluster String
- The cluster ID or name to attach the VNI to any available worker. Exactly one of
clusterorworkermust be specified. - container
Vni StringBaremetal Attachment Id - (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 StringId - The ID of the resource group where the cluster is provisioned. To find the resource group, run
ibmcloud resource groupsor use theibm.ResourceGroupdata source. - status String
- (String) The status of the attachment.
- timeouts Property Map
- 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
clusterorworkermust be specified. - worker
Id String - (String) The ID of the worker where the VNI is attached.
Supporting Types
ContainerVniBaremetalAttachmentTimeouts, ContainerVniBaremetalAttachmentTimeoutsArgs
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
ibmTerraform Provider.
published on Wednesday, Jul 1, 2026 by ibm-cloud