---
title: VNIC Attachment
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: Docs > DDSQL Reference > Data Directory > VNIC Attachment
---

# VNIC Attachment

A VNIC Attachment in Oracle Cloud Infrastructure links a virtual network interface card (VNIC) to a compute instance. It enables the instance to communicate on a specified subnet and defines network characteristics such as private IPs, security lists, and optional public IPs. This attachment is essential for providing network connectivity to the instance.

```
oci.compute_vnic_attachment
```

## Fields

| Title               | ID   | Type       | Data Type                                                                                                                                                                                                                                                                       | Description |
| ------------------- | ---- | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
| _key                | core | string     |
| availability_domain | core | string     | The value to assign to the availability_domain property of this VnicAttachment.                                                                                                                                                                                                 |
| cloud_account_id    | core | string     | The identifier of the related cloud account. The concept of an account might have different names in different cloud providers. AWS is calling it account, GCP calls it project and Azure uses the term subscription.                                                           |
| cloud_account_name  | core | string     | The name of the account this resource belongs to.                                                                                                                                                                                                                               |
| cloud_provider      | core | string     | The name of the cloud provider.                                                                                                                                                                                                                                                 |
| cloud_tags          | core | hstore     |
| compartment_id      | core | string     | The value to assign to the compartment_id property of this VnicAttachment.                                                                                                                                                                                                      |
| created_at          | core | timestamp  | Time when the resource has been created.                                                                                                                                                                                                                                        |
| freeform_tags       | core | hstore     | The value to assign to the freeform_tags property of this Instance.                                                                                                                                                                                                             |
| id                  | core | string     | The value to assign to the id property of this VnicAttachment.                                                                                                                                                                                                                  |
| instance_id         | core | string     | The value to assign to the instance_id property of this VnicAttachment.                                                                                                                                                                                                         |
| lifecycle_state     | core | string     | The value to assign to the lifecycle_state property of this VnicAttachment. Allowed values for this property are: "ATTACHING", "ATTACHED", "DETACHING", "DETACHED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. |
| name                | core | string     | The name of this resource.                                                                                                                                                                                                                                                      |
| nic_index           | core | int64      | The value to assign to the nic_index property of this VnicAttachment.                                                                                                                                                                                                           |
| oci_display_name    | core | string     |
| region_id           | core | string     | The region this resource resides within.                                                                                                                                                                                                                                        |
| resource_type       | core | string     | The name of the resource type.                                                                                                                                                                                                                                                  |
| subnet_id           | core | string     | The value to assign to the subnet_id property of this VnicAttachment.                                                                                                                                                                                                           |
| tags                | core | hstore_csv |
| tenancy_ocid        | core | string     | The OCID of the tenancy containing the resource.                                                                                                                                                                                                                                |
| time_created        | core | timestamp  | The value to assign to the time_created property of this VnicAttachment.                                                                                                                                                                                                        |
| updated_at          | core | timestamp  | Time when the resource has been updated the last time.                                                                                                                                                                                                                          |
| vlan_id             | core | string     | The value to assign to the vlan_id property of this VnicAttachment.                                                                                                                                                                                                             |
| vlan_tag            | core | int64      | The value to assign to the vlan_tag property of this VnicAttachment.                                                                                                                                                                                                            |
| vnic_id             | core | string     | The value to assign to the vnic_id property of this VnicAttachment.                                                                                                                                                                                                             |
| zone_id             | core | string     | The zone this resource resides within.                                                                                                                                                                                                                                          |
