Data Source: oci_core_drgs
This data source provides the list of Drgs in Oracle Cloud Infrastructure Core service.
Lists the DRGs in the specified compartment.
Example Usage
data "oci_core_drgs" "test_drgs" {
#Required
compartment_id = var.compartment_id
}
Argument Reference
The following arguments are supported:
compartment_id
- (Required) The OCID of the compartment.
Attributes Reference
The following attributes are exported:
drgs
- The list of drgs.
Drg Reference
The following attributes are exported:
compartment_id
- The OCID of the compartment containing the DRG.default_drg_route_tables
- The default DRG route table for this DRG. Each network type has a default DRG route table.You can update a network type to use a different DRG route table, but each network type must have a default DRG route table. You cannot delete a default DRG route table.
ipsec_tunnel
- The OCID of the default DRG route table assigned to DRG attachments of type IPSEC_TUNNEL on creation.remote_peering_connection
- The OCID of the default DRG route table to be assigned to DRG attachments of type REMOTE_PEERING_CONNECTION on creation.vcn
- The OCID of the default DRG route table to be assigned to DRG attachments of type VCN on creation.virtual_circuit
- The OCID of the default DRG route table to be assigned to DRG attachments of type VIRTUAL_CIRCUIT on creation.
default_export_drg_route_distribution_id
- The OCID of this DRG’s default export route distribution for the DRG attachments.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.freeform_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
- The DRG’s Oracle ID (OCID).state
- The DRG’s current state.time_created
- The date and time the DRG was created, in the format defined by RFC3339. Example:2016-08-25T21:10:29.600Z