This data source provides the list of Dhcp Options in Oracle Cloud Infrastructure Core service.
Lists the sets of DHCP options in the specified VCN and specified compartment. If the VCN ID is not provided, then the list includes the sets of DHCP options from all VCNs in the specified compartment. The response includes the default set of options that automatically comes with each VCN, plus any other sets you've created.
data "oci_core_dhcp_options" "test_dhcp_options" {
#Required
compartment_id = var.compartment_id
#Optional
display_name = var.dhcp_options_display_name
state = var.dhcp_options_state
vcn_id = oci_core_vcn.test_vcn.id
}
The following arguments are supported:
compartment_id
- (Required) The OCID of the compartment.display_name
- (Optional) A filter to return only resources that match the given display name exactly. state
- (Optional) A filter to only return resources that match the given lifecycle state. The state value is case-insensitive. vcn_id
- (Optional) The OCID of the VCN.The following attributes are exported:
options
- The list of options.The following attributes are exported:
compartment_id
- The OCID of the compartment containing the set of DHCP options.defined_tags
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
display_name
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. domain_name_type
- The search domain name type of DHCP optionsfreeform_tags
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
id
- Oracle ID (OCID) for the set of DHCP options.options
- The collection of individual DHCP options.
custom_dns_servers
- If you set serverType
to CustomDnsServer
, specify the IP address of at least one DNS server of your choice (three maximum). search_domain_names
- A single search domain name according to RFC 952 and RFC 1123. During a DNS query, the OS will append this search domain name to the value being queried.
If you set DhcpDnsOption to VcnLocalPlusInternet
, and you assign a DNS label to the VCN during creation, the search domain name in the VCN's default set of DHCP options is automatically set to the VCN domain (for example, vcn1.oraclevcn.com
).
If you don't want to use a search domain name, omit this option from the set of DHCP options. Do not include this option with an empty list of search domain names, or with an empty string as the value for any search domain name.
server_type
-
type
- The specific DHCP option. Either DomainNameServer
(for DhcpDnsOption) or SearchDomain
(for DhcpSearchDomainOption). state
- The current state of the set of DHCP options.time_created
- Date and time the set of DHCP options was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
vcn_id
- The OCID of the VCN the set of DHCP options belongs to.