oci_opsi_awr_hub_source
This resource provides the Awr Hub Source resource in Oracle Cloud Infrastructure Opsi service.
Register Awr Hub source
Example Usage
resource "oci_opsi_awr_hub_source" "test_awr_hub_source" {
#Required
awr_hub_id = oci_opsi_awr_hub.test_awr_hub.id
compartment_id = var.compartment_id
name = var.awr_hub_source_name
type = var.awr_hub_source_type
#Optional
associated_opsi_id = oci_opsi_associated_opsi.test_associated_opsi.id
associated_resource_id = oci_usage_proxy_resource.test_resource.id
defined_tags = {"foo-namespace.bar-key"= "value"}
freeform_tags = {"bar-key"= "value"}
}
Argument Reference
The following arguments are supported:
associated_opsi_id
- (Optional) The OCID of the database id.associated_resource_id
- (Optional) The OCID of the database id.awr_hub_id
- (Required) AWR Hub OCIDcompartment_id
- (Required) (Updatable) The OCID of the compartment.defined_tags
- (Optional) (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:{"foo-namespace.bar-key": "value"}
freeform_tags
- (Optional) (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:{"bar-key": "value"}
name
- (Required) The name of the Awr Hub source database.type
- (Required) (Updatable) source type of the database
** 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:
associated_opsi_id
- The OCID of the database id.associated_resource_id
- The OCID of the database id.awr_hub_id
- AWR Hub OCIDawr_hub_opsi_source_id
- The shorted string of the Awr Hub source database identifier.awr_source_database_id
- DatabaseId of the Source database for which AWR Data will be uploaded to AWR Hub.compartment_id
- The OCID of the compartment.defined_tags
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:{"foo-namespace.bar-key": "value"}
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"}
hours_since_last_import
- Number of hours since last AWR snapshots import happened from the Source database.id
- The OCID of the Awr Hub source database.is_registered_with_awr_hub
- This istrue
if the source databse is registered with a Awr Hub, otherwisefalse
max_snapshot_identifier
- The maximum snapshot identifier of the source database for which AWR data is uploaded to AWR Hub.min_snapshot_identifier
- The minimum snapshot identifier of the source database for which AWR data is uploaded to AWR Hub.name
- The name of the Awr Hub source database.source_mail_box_url
- Opsi Mailbox URL based on the Awr Hub and Awr Hub source.state
- the current state of the source databasestatus
- Indicates the status of a source database in Operations Insightssystem_tags
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:{"orcl-cloud.free-tier-retained": "true"}
time_created
- The time at which the resource was first created. An RFC3339 formatted datetime stringtime_first_snapshot_generated
- The time at which the earliest snapshot was generated in the source database for which data is uploaded to AWR Hub. An RFC3339 formatted datetime stringtime_last_snapshot_generated
- The time at which the latest snapshot was generated in the source database for which data is uploaded to AWR Hub. An RFC3339 formatted datetime stringtime_updated
- The time at which the resource was last updated. An RFC3339 formatted datetime stringtype
- source type of the database
Timeouts
The timeouts
block allows you to specify timeouts for certain operations:
* create
- (Defaults to 20 minutes), when creating the Awr Hub Source
* update
- (Defaults to 20 minutes), when updating the Awr Hub Source
* delete
- (Defaults to 20 minutes), when destroying the Awr Hub Source
Import
AwrHubSources can be imported using the id
, e.g.
$ terraform import oci_opsi_awr_hub_source.test_awr_hub_source "id"