oci_database_management_cloud_asm
This resource provides the Cloud Asm resource in Oracle Cloud Infrastructure Database Management service. Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/database-management/latest/CloudAsm
Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/databasemanagement
Updates the cloud ASM specified by cloudAsmId.
Example Usage
resource "oci_database_management_cloud_asm" "test_cloud_asm" {
#Required
cloud_asm_id = oci_database_management_cloud_asm.test_cloud_asm.id
#Optional
cloud_connector_id = oci_database_management_cloud_connector.test_cloud_connector.id
defined_tags = {"Operations.CostCenter"= "42"}
freeform_tags = {"Department"= "Finance"}
}
Argument Reference
The following arguments are supported:
cloud_asm_id- (Required) The OCID of the cloud ASM.cloud_connector_id- (Optional) (Updatable) The OCID of the cloud connector.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"}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"}
** 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:
additional_details- The additional details of the cloud ASM defined in{"key": "value"}format. Example:{"bar-key": "value"}cloud_connector_id- The OCID of the cloud connector.cloud_db_system_id- The OCID of the cloud DB system that the ASM is a part of.compartment_id- The OCID of the compartment.component_name- The name of the cloud ASM.dbaas_id- The OCID in DBaas service.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- The user-friendly name for the cloud ASM. The name does not have to be unique.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"}grid_home- The directory in which ASM is installed. This is the same directory in which Oracle Grid Infrastructure is installed.id- The OCID of the cloud ASM.is_cluster- Indicates whether the ASM is a cluster ASM or not.is_flex_enabled- Indicates whether Oracle Flex ASM is enabled or not.lifecycle_details- Additional information about the current lifecycle state.serviced_databases- The list of databases that are serviced by the ASM.compartment_id- The OCID of the compartment in which the cloud database resides.database_sub_type- The subtype of Oracle Database. Indicates whether the database is a Container Database, Pluggable Database, Non-container Database, Autonomous Database, or Autonomous Container Database.database_type- The type of Oracle Database installation.db_unique_name- The unique name of the cloud database.dbaas_id- The OCID of the existing Dbaas Oracle Cloud Infrastructure resource matching the discovered DB system component.disk_groups- The list of ASM disk groups used by the database.display_name- The user-friendly name for the database. The name does not have to be unique.id- The OCID of the cloud database.is_managed- Indicates whether the database is a Managed Database or not.
state- The current lifecycle state of the cloud ASM.system_tags- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example:{"orcl-cloud.free-tier-retained": "true"}time_created- The date and time the cloud ASM was created.time_updated- The date and time the cloud ASM was last updated.version- The ASM version.
Timeouts
The timeouts block allows you to specify timeouts for certain operations:
* create - (Defaults to 20 minutes), when creating the Cloud Asm
* update - (Defaults to 20 minutes), when updating the Cloud Asm
* delete - (Defaults to 20 minutes), when destroying the Cloud Asm
Import
CloudAsms can be imported using the id, e.g.
$ terraform import oci_database_management_cloud_asm.test_cloud_asm "id"