oci_database_cloud_database_management

This resource provides the Database Management resource in Oracle Cloud Infrastructure Database service. Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/database/latest/CloudDatabaseManagement Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/database Enable / Update / Disable database management for the specified Oracle Database instance.

Database Management requires USER_NAME, PASSWORD_SECRET_ID and PRIVATE_END_POINT_ID. database.0.database_management_config is updated to appropriate managementType and managementStatus for the specified Oracle Database instance.

Example Usage

resource "oci_database_cloud_database_management" "test" {
  database_id           = oci_database_database.test_database.id
  management_type       = var.database_cloud_database_management_details_management_type
  private_end_point_id  = var.database_cloud_database_management_details_private_end_point_id
  service_name          = var.database_cloud_database_management_details_service_name
  credentialdetails {
    user_name           = var.database_cloud_database_management_details_user_name
    password_secret_id  = var.database_cloud_database_management_details_password_secret_id
  }
  enable_management     = var.database_cloud_database_management_details_enable_management
  port = var.cloud_database_management_port
  protocol = var.cloud_database_management_protocol
  role = var.cloud_database_management_role
  ssl_secret_id = oci_vault_secret.test_secret.id
}

Argument Reference

The following arguments are supported:

** 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:

The database workload type. * defined_tags - Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. * encryption_key_location_details - Types of providers supported for managing database encryption keys * azure_encryption_key_id - Provide the key OCID of a registered Azure key. * hsm_password - Provide the HSM password as you would in RDBMS for External HSM. * provider_type - Use ‘EXTERNAL’ for creating a new database or migrating a database key to an External HSM. Use ‘AZURE’ for creating a new database or migrating a database key to Azure. * 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 database. * is_cdb - True if the database is a container database. * key_store_id - The OCID of the key store of Oracle Vault. * key_store_wallet_name - The wallet name for Oracle Key Vault. * kms_key_id - The OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. * kms_key_version_id - The OCID of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. If none is specified, the current key version (latest) of the Key Id is used for the operation. Autonomous Database Serverless does not use key versions, hence is not applicable for Autonomous Database Serverless instances. * last_backup_duration_in_seconds - The duration when the latest database backup created. * last_backup_timestamp - The date and time when the latest database backup was created. * last_failed_backup_timestamp - The date and time when the latest database backup failed. * lifecycle_details - Additional information about the current lifecycle state. * ncharacter_set - The national character set for the database. * pdb_name - The name of the pluggable database. The name must begin with an alphabetic character and can contain a maximum of thirty alphanumeric characters. Special characters are not permitted. Pluggable database should not be same as database name. * sid_prefix - Specifies a prefix for the Oracle SID of the database to be created. * source_database_point_in_time_recovery_timestamp - Point in time recovery timeStamp of the source database at which cloned database system is cloned from the source database system, as described in RFC 3339 * state - The current state of the database. * system_tags - System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. * time_created - The date and time the database was created. * vault_id - The OCID of the Oracle Cloud Infrastructure vault. This parameter and secretId are required for Customer Managed Keys. * vm_cluster_id - The OCID of the VM cluster.

Timeouts

The timeouts block allows you to specify timeouts for certain operations: * create - (Defaults to 20 minutes), when creating the Cloud Database Management * update - (Defaults to 20 minutes), when updating the Cloud Database Management * delete - (Defaults to 20 minutes), when destroying the Cloud Database Management

Import

Import is not supported for this resource.