oci_stack_monitoring_monitored_resources_search_association
This resource provides the Monitored Resources Search Association resource in Oracle Cloud Infrastructure Stack Monitoring service.
Search associations in the given compartment based on the search criteria.
Example Usage
resource "oci_stack_monitoring_monitored_resources_search_association" "test_monitored_resources_search_association" {
#Required
compartment_id = var.compartment_id
#Optional
association_type = var.monitored_resources_search_association_association_type
destination_resource_id = oci_stack_monitoring_destination_resource.test_destination_resource.id
destination_resource_name = var.monitored_resources_search_association_destination_resource_name
destination_resource_type = var.monitored_resources_search_association_destination_resource_type
source_resource_id = oci_stack_monitoring_source_resource.test_source_resource.id
source_resource_name = var.monitored_resources_search_association_source_resource_name
source_resource_type = var.monitored_resources_search_association_source_resource_type
}
Argument Reference
The following arguments are supported:
association_type
- (Optional) Association type filter to search associated resources.compartment_id
- (Required) Compartment Identifier OCID.destination_resource_id
- (Optional) Destination Monitored Resource Identifier OCID.destination_resource_name
- (Optional) Source Monitored Resource Name.destination_resource_type
- (Optional) Source Monitored Resource Type.source_resource_id
- (Optional) Source Monitored Resource Identifier OCID.source_resource_name
- (Optional) Source Monitored Resource Name.source_resource_type
- (Optional) Source Monitored Resource Type.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
Attributes Reference
The following attributes are exported:
items
- List of Monitored Resource Associations.association_type
- Association type between source and destination resources.defined_tags
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:{"foo-namespace.bar-key": "value"}
destination_resource_details
- Association Resource Details.compartment_id
- Compartment Identifier OCID.name
- Monitored Resource Name.type
- Monitored Resource Type.
destination_resource_id
- Destination Monitored Resource Identifier OCID.freeform_tags
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:{"bar-key": "value"}
source_resource_details
- Association Resource Details.compartment_id
- Compartment Identifier OCID.name
- Monitored Resource Name.type
- Monitored Resource Type.
source_resource_id
- Source Monitored Resource Identifier OCID.system_tags
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:{"orcl-cloud.free-tier-retained": "true"}
time_created
- The association creation time. An RFC3339 formatted datetime string.
Timeouts
The timeouts
block allows you to specify timeouts for certain operations:
* create
- (Defaults to 20 minutes), when creating the Monitored Resources Search Association
* update
- (Defaults to 20 minutes), when updating the Monitored Resources Search Association
* delete
- (Defaults to 20 minutes), when destroying the Monitored Resources Search Association
Import
MonitoredResourcesSearchAssociations can be imported using the id
, e.g.
$ terraform import oci_stack_monitoring_monitored_resources_search_association.test_monitored_resources_search_association "id"