# Source: https://docs.datadoghq.com/ddsql_reference/data_directory/oci/oci.network_subnet.dataset.md

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

# Subnet

A Subnet in Oracle Cloud Infrastructure (OCI) is a logical subdivision of a Virtual Cloud Network (VCN). It provides a range of IP addresses that can be assigned to resources such as compute instances. Subnets can be regional or tied to a specific availability domain, and they control network traffic through security lists and route tables.

```
oci.network_subnet
```

## 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 Subnet.                                                                                                                                                                                                                     |
| cidr_block                 | core | string        | The value to assign to the cidr_block property of this Subnet.                                                                                                                                                                                                                              |
| 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 Subnet.                                                                                                                                                                                                                          |
| created_at                 | core | timestamp     | Time when the resource has been created.                                                                                                                                                                                                                                                    |
| dhcp_options_id            | core | string        | The value to assign to the dhcp_options_id property of this Subnet.                                                                                                                                                                                                                         |
| dns_label                  | core | string        | The value to assign to the dns_label property of this Subnet.                                                                                                                                                                                                                               |
| freeform_tags              | core | hstore        | The value to assign to the freeform_tags property of this Subnet.                                                                                                                                                                                                                           |
| id                         | core | string        | The value to assign to the id property of this Subnet.                                                                                                                                                                                                                                      |
| ipv6_cidr_block            | core | string        | The value to assign to the ipv6_cidr_block property of this Subnet.                                                                                                                                                                                                                         |
| ipv6_cidr_blocks           | core | array<string> | The value to assign to the ipv6_cidr_blocks property of this Subnet.                                                                                                                                                                                                                        |
| ipv6_virtual_router_ip     | core | string        | The value to assign to the ipv6_virtual_router_ip property of this Subnet.                                                                                                                                                                                                                  |
| lifecycle_state            | core | string        | The value to assign to the lifecycle_state property of this Subnet. Allowed values for this property are: "PROVISIONING", "AVAILABLE", "TERMINATING", "TERMINATED", "UPDATING", '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.                                                                                                                                                                                                                                                                  |
| prohibit_internet_ingress  | core | bool          | The value to assign to the prohibit_internet_ingress property of this Subnet.                                                                                                                                                                                                               |
| prohibit_public_ip_on_vnic | core | bool          | The value to assign to the prohibit_public_ip_on_vnic property of this Subnet.                                                                                                                                                                                                              |
| region_id                  | core | string        | The region this resource resides within.                                                                                                                                                                                                                                                    |
| resource_type              | core | string        | The name of the resource type.                                                                                                                                                                                                                                                              |
| route_table_id             | core | string        | The value to assign to the route_table_id property of this Subnet.                                                                                                                                                                                                                          |
| security_list_ids          | core | array<string> | The value to assign to the security_list_ids property of this Subnet.                                                                                                                                                                                                                       |
| subnet_domain_name         | core | string        | The value to assign to the subnet_domain_name property of this Subnet.                                                                                                                                                                                                                      |
| tags                       | core | hstore_csv    |
| time_created               | core | timestamp     | The value to assign to the time_created property of this Subnet.                                                                                                                                                                                                                            |
| updated_at                 | core | timestamp     | Time when the resource has been updated the last time.                                                                                                                                                                                                                                      |
| vcn_id                     | core | string        | The value to assign to the vcn_id property of this Subnet.                                                                                                                                                                                                                                  |
| virtual_router_ip          | core | string        | The value to assign to the virtual_router_ip property of this Subnet.                                                                                                                                                                                                                       |
| virtual_router_mac         | core | string        | The value to assign to the virtual_router_mac property of this Subnet.                                                                                                                                                                                                                      |
| zone_id                    | core | string        | The zone this resource resides within.                                                                                                                                                                                                                                                      |