oci_dbmulticloud_multi_cloud_resource_discovery
This resource provides the Multi Cloud Resource Discovery resource in Oracle Cloud Infrastructure Dbmulticloud service. Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/database-multicloud-integrations/latest/MultiCloudResourceDiscovery
Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/dbmulticloud
Discovers Multicloud Resource and their associated resources based on the information provided.
Example Usage
resource "oci_dbmulticloud_multi_cloud_resource_discovery" "test_multi_cloud_resource_discovery" {
#Required
compartment_id = var.compartment_id
display_name = var.multi_cloud_resource_discovery_display_name
oracle_db_connector_id = oci_dbmulticloud_oracle_db_connector.test_oracle_db_connector.id
resource_type = var.multi_cloud_resource_discovery_resource_type
#Optional
defined_tags = {"Operations.CostCenter"= "42"}
freeform_tags = {"Department"= "Finance"}
resources_filter = var.multi_cloud_resource_discovery_resources_filter
}
Argument Reference
The following arguments are supported:
compartment_id- (Required) (Updatable) The OCID of the compartment that contains Multicloud Resource Discovery resource.defined_tags- (Optional) (Updatable) 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- (Required) (Updatable) Display name of the Multicloud Resource Discovery resource.freeform_tags- (Optional) (Updatable) 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"}oracle_db_connector_id- (Required) (Updatable) The OCID of the Oracle DB Connector resource.resource_type- (Required) (Updatable) Resource Type to discover.resources_filter- (Optional) Discover resource using attributes as key-value pair. For GCP supported attributes (keyRing) For Azure supported attributes (keyVault) GCP Example{"keyRing": "projects/db-mc-dataplane/locations/global/keyRings/dbmci-keyring"}or{"keyRing": "dbmci-keyring"}Azure Example{"keyVault": "/subscriptions/fd42b73d-5f28-4a23-ae7c-ca08c625fe07/resourceGroups/yumfei0808Test/providers/Microsoft.KeyVault/managedHSMs/orp7HSM001"}or{"keyVault": "orp7HSM001"}
** 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:
compartment_id- The OCID of the compartment that contains Multicloud Resource Discovery resource.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- Display name of the Multicloud Resource Discovery resource.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 OCID of the Multicloud Resource Discovery resourcelast_modification- Description of the latest modification of the Multicloud Resource Discovery resource.lifecycle_state_details- Description of the current lifecycle state in more detail.oracle_db_connector_id- The OCID of the Oracle DB Connector resource.resource_type- Resource Type to discover.resources- List of All Discovered resources.id- The ID of the Discovered Resource.location- Discovered Resource Location.name- Discovered Resource Name.properties- Discovered Resource’s properties.resource_group- Discovered Resource Group Name.type- Discovered Resource Type.
resources_filter- Discover resource using attributes as key-value pair. For GCP supported attributes (keyRing) For Azure supported attributes (keyVault) GCP Example{"keyRing": "projects/db-mc-dataplane/locations/global/keyRings/dbmci-keyring"}or{"keyRing": "dbmci-keyring"}Azure Example{"keyVault": "/subscriptions/fd42b73d-5f28-4a23-ae7c-ca08c625fe07/resourceGroups/yumfei0808Test/providers/Microsoft.KeyVault/managedHSMs/orp7HSM001"}or{"keyVault": "orp7HSM001"}state- The current lifecycle state of the discovered resource.system_tags- System tags for this resource. Each key is predefined and scoped to a namespace. Example:{"orcl-cloud.free-tier-retained": "true"}time_created- Time when the Multicloud Discovery Resource was created in RFC 3339 timestamp format, e.g. ‘2020-05-22T21:10:29.600Z’time_updated- Time when the Multicloud Discovery Resource was last modified, expressed in RFC 3339 timestamp format, e.g. ‘2020-05-22T21:10:29.600Z’
Timeouts
The timeouts block allows you to specify timeouts for certain operations:
* create - (Defaults to 20 minutes), when creating the Multi Cloud Resource Discovery
* update - (Defaults to 20 minutes), when updating the Multi Cloud Resource Discovery
* delete - (Defaults to 20 minutes), when destroying the Multi Cloud Resource Discovery
Import
MultiCloudResourceDiscoveries can be imported using the id, e.g.
$ terraform import oci_dbmulticloud_multi_cloud_resource_discovery.test_multi_cloud_resource_discovery "id"