Data Source: oci_multicloud_network_anchors
This data source provides the list of Network Anchors in Oracle Cloud Infrastructure Multicloud service.
Gets a list of NetworkAnchors.
Example Usage
data "oci_multicloud_network_anchors" "test_network_anchors" {
#Required
external_location = var.external_location
subscription_id = var.subscription_id
subscription_service_name = var.subscription_service_name
#Optional
compartment_id = var.compartment_id
network_anchor_lifecycle_state = var.network_anchor_lifecycle_state
display_name = var.display_name
network_anchor_oci_subnet_id = var.network_anchor_oci_subnet_id
network_anchor_oci_vcn_id = var.network_anchor_oci_vcn_id
id = var.id
}
Argument Reference
The following arguments are supported:
external_location
- (Required) OMHub Control Plane must know underlying CSP CP Region External Location Name.subscription_id
- (Required) The OCID of the subscription in which to list resources.subscription_service_name
- (Required) The subscription service name values from [ORACLEDBATAZURE, ORACLEDBATGOOGLE, ORACLEDBATAWS]compartment_id
- (Optional) The OCID of the compartment in which to list resources.network_anchor_lifecycle_state
- (Optional) A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.display_name
- (Optional) A filter to return only resources that match the given display name exactly.network_anchor_oci_subnet_id
- (Optional) A filter to return only NetworkAnchor resources that match the given Oracle Cloud Infrastructure subnet Id.network_anchor_oci_vcn_id
- (Optional) A filter to return only NetworkAnchor resources that match the given Oracle Cloud Infrastructure Vcn Id.id
- (Optional) The OCID of the NetworkAnchor.
Note: one of the arguments compartment_id
or id
must be specified.
Attributes Reference
The following attributes are exported:
network_anchor_collection
- The list of NetworkAnchor.
NetworkAnchor Reference
The following attributes are exported:
items
- List of NetworkAnchorSummaryid
- The OCID of the NetworkAnchor.display_name
- A user-friendly name. Does not have to be unique, and it’s changeable.compartment_id
- The OCID of the compartment.resource_anchor_id
- Oracle Cloud Infrastructure resource anchor Id (OCID).vcn_id
- Oracle Cloud Infrastructure VCN OCID. CSP can not set this property.cluster_placement_group_id
- The CPG ID in which Network Anchor will be created.time_created
- The date and time the NetworkAnchor was created, in the format defined by RFC 3339. Example:2016-08-25T21:10:29.600Z
time_updated
- The date and time the NetworkAnchor was updated, in the format defined by RFC 3339. Example:2016-08-25T21:10:29.600Z
network_anchor_lifecycle_state
- The current state of the NetworkAnchor.lifecycle_details
- A message that describes the current state of the NetworkAnchor in more detail. For example, can be used to provide actionable information for a resource in the Failed state.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"}
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"}
system_tags
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:{"orcl-cloud.free-tier-retained": "true"}