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"} * home_type - Represents database will be under oracle managed home or customer managed home * 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 AI Database Serverless does not use key versions, hence is not applicable for Autonomous AI 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. * managed_software_update_details - The database registered for Oracle Managed Database Software Updates. * is_enrolled - If true, database is registered for Oracle Managed Database Software Updates otherwise database is not registered for Oracle Managed Database Software Updates * maintenance_details - Provides details about actual Oracle Managed Database Software Updates scheduled time and version. * time_of_last_readiness_check - The date and time of the last readiness check. * time_of_status_update - The date and time of when the status was updated. * time_scheduled - The date and time of the database was scheduled for update. * update_mode - Oracle Managed Database Software update method, either “ROLLING” or “NONROLLING” * update_readiness_status - The managed software update readiness status * update_readiness_status_details - This field will contain actual cause of update readiness state. * version - The version of the database was scheduled for update. * preference_details - Oracle Managed Database Software Updates schedule will be created based on the provided update preferences * days_of_week - The update should be applied on the database for the selected days of the week. * hour_of_day - The update should be applied on the database for the selected hour of the day. * update_mode - Oracle Managed Database Software update method, either “ROLLING” or “NONROLLING”. Default value is ROLLING. IMPORTANT: Non-rolling Database Software update update involves system down time. * version_scheme_details - The update should be applied on the database for the selected version scheme. * major_version - The update should be applied on the database for the selected major version series. The value can be provided as 23.X.X.X then 23 major version series will be considered.

			The list of supported versions can be obtained using the API for the provided shape /20160918/dbVersions?compartmentId=<compartmentId>&dbSystemShape=ExaDbXS
		* `source` - The update should be applied on the database for the selected version scheme.
		* `version_preference` - The update should be applied on the database for the selected version preference. *_N represents the LATEST version

			For Ex: The current latest version is 23.7.0.0.0, If versionPreference selects option as ORACLE_DB_N then oracle applies the db update with LATEST version (i.e. 23.7.0.0.0) If versionPreference selects option as ORACLE_DB_N_1 then oracle applies the db update with LATEST-1 version (i.e. 23.6.0.0.0) If versionPreference selects option as ORACLE_DB_N_2 then oracle applies the db update with LATEST-2 version (i.e. 23.5.0.0.0)

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.