Skip to main content

autonomous_database_backups

Creates, updates, deletes, gets or lists an autonomous_database_backups resource.

Overview​

Nameautonomous_database_backups
TypeResource
Idoci.database.autonomous_database_backups

Fields​

The following fields are returned by SELECT queries:

The Autonomous AI Database backup.

NameDatatypeDescription
idstringThe [OCID](/Content/General/Concepts/identifiers.htm) of the Autonomous AI Database backup.
autonomousDatabaseIdstringThe [OCID](/Content/General/Concepts/identifiers.htm) of the Autonomous AI Database.
backupDestinationDetailsobjectBackup destination details
compartmentIdstringThe [OCID](/Content/General/Concepts/identifiers.htm) of the compartment.
databaseSizeInTBsnumber (integer)The size of the database in terabytes at the time the backup was taken.
dbVersionstringA valid Oracle AI Database version for Autonomous AI Database. When you specify 23ai for dbversion, the system will provision a 23ai database, but the UI will display it as 26ai. When you specify 26ai for dbversion, the system will provision and display a 26ai database as expected. For new databases, it is recommended to use either 19c or 26ai. Note Starting December 2026, 23ai will not be supported as a valid value for this parameter.
displayNamestringThe user-friendly name for the backup. The name does not have to be unique.
infrastructureTypestringThe infrastructure type this resource belongs to. (CLOUD, CLOUD_AT_CUSTOMER)
isAutomaticbooleanIndicates whether the backup is user-initiated or automatic.
isRestorablebooleanIndicates whether the backup can be used to restore the associated Autonomous AI Database.
keyStoreIdstringThe [OCID](/Content/General/Concepts/identifiers.htm) of the key store of Oracle Vault.
keyStoreWalletNamestringThe wallet name for Oracle Key Vault.
kmsKeyIdstringThe OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations.
kmsKeyVersionIdstringThe 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.
lifecycleDetailsstringAdditional information about the current lifecycle state.
lifecycleStatestringThe current state of the backup. (CREATING, ACTIVE, DELETING, DELETED, FAILED, UPDATING)
regionstringName of the region in which backup is taken in.
retentionPeriodInDaysintegerRetention period, in days, for long-term backups
sizeInTBsnumber (double)The backup size in terrabytes (TB).
sourceDatabaseDetailsobjectSource Autonomous AI Database details.
timeAvailableTillstring (date-time)Timestamp until when the backup will be available
timeEndedstring (date-time)The date and time the backup completed.
timeStartedstring (date-time)The date and time the backup started.
typestringThe type of backup. (INCREMENTAL, FULL, LONGTERM, VIRTUAL_FULL, CUMULATIVE_INCREMENTAL, ROLL_FORWARD_IMAGE_COPY)
vaultIdstringThe [OCID](/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](/Content/KeyManagement/Concepts/keyoverview.htm#concepts). This parameter and secretId are required for Customer Managed Keys.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectautonomousDatabaseBackupId, regionopc-request-idGets information about the specified Autonomous AI Database backup.
listselectregionautonomousDatabaseId, compartmentId, limit, page, sortBy, sortOrder, lifecycleState, displayName, type, backupDestinationId, keyStoreId, infrastructureType, opc-request-idGets a list of Autonomous AI Database backups based on either the autonomousDatabaseId or compartmentId specified as a query parameter.<br />
createinsertregion, autonomousDatabaseIdopc-retry-token, opc-request-idCreates a new Autonomous AI Database backup for the specified database based on the provided request parameters.<br />
updateupdateautonomousDatabaseBackupId, regionif-match, opc-request-idUpdates the Autonomous AI Database backup of the specified database based on the request parameters.<br />
deletedeleteautonomousDatabaseBackupId, regionif-match, opc-request-idDeletes a long-term backup. You cannot delete other backups using this API.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
autonomousDatabaseBackupIdstringThe [OCID](/Content/General/Concepts/identifiers.htm) of the Autonomous AI Database backup.
regionstringOCI region identifier (e.g. us-ashburn-1, ap-sydney-1); resolves from OCI_REGION when not supplied in the query. (default: us-ashburn-1, x-stackQL-envVar: OCI_REGION)
autonomousDatabaseIdstringThe database [OCID](/Content/General/Concepts/identifiers.htm).
backupDestinationIdstringA filter to return only resources that have the given backup destination id.
compartmentIdstringThe compartment [OCID](/Content/General/Concepts/identifiers.htm).
displayNamestringA filter to return only resources that match the entire display name given. The match is not case sensitive.
if-matchstringFor optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.
infrastructureTypestringA filter to return only resources that match the given Infrastructure Type.
keyStoreIdstringA filter to return only resources that have the given key store id.
lifecycleStatestringA filter to return only resources that match the given lifecycle state exactly.
limitintegerThe maximum number of items to return per page.
opc-request-idstringUnique identifier for the request.
opc-retry-tokenstringA token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations (for example, if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected).
pagestringThe pagination token to continue listing from.
sortBystringThe field to sort by. You can provide one sort order (sortOrder). Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME sort order is case sensitive. Note: If you do not include the availability domain filter, the resources are grouped by availability domain, then sorted.
sortOrderstringThe sort order to use, either ascending (ASC) or descending (DESC).
typestringA filter to return only backups that matches with the given type of Backup.

SELECT examples​

Gets information about the specified Autonomous AI Database backup.

SELECT
id,
autonomousDatabaseId,
backupDestinationDetails,
compartmentId,
databaseSizeInTBs,
dbVersion,
displayName,
infrastructureType,
isAutomatic,
isRestorable,
keyStoreId,
keyStoreWalletName,
kmsKeyId,
kmsKeyVersionId,
lifecycleDetails,
lifecycleState,
region,
retentionPeriodInDays,
sizeInTBs,
sourceDatabaseDetails,
timeAvailableTill,
timeEnded,
timeStarted,
type,
vaultId
FROM oci.database.autonomous_database_backups
WHERE autonomousDatabaseBackupId = '{{ autonomousDatabaseBackupId }}' -- required
AND region = '{{ region }}' -- required
AND opc-request-id = '{{ opc-request-id }}'
;

INSERT examples​

Creates a new Autonomous AI Database backup for the specified database based on the provided request parameters.<br />

INSERT INTO oci.database.autonomous_database_backups (
autonomousDatabaseId,
backupDestinationDetails,
displayName,
isLongTermBackup,
retentionPeriodInDays,
region,
opc-retry-token,
opc-request-id
)
SELECT
'{{ autonomousDatabaseId }}' /* required */,
'{{ backupDestinationDetails }}',
'{{ displayName }}',
{{ isLongTermBackup }},
{{ retentionPeriodInDays }},
'{{ region }}',
'{{ opc-retry-token }}',
'{{ opc-request-id }}'
RETURNING
id,
autonomousDatabaseId,
backupDestinationDetails,
compartmentId,
databaseSizeInTBs,
dbVersion,
displayName,
infrastructureType,
isAutomatic,
isRestorable,
keyStoreId,
keyStoreWalletName,
kmsKeyId,
kmsKeyVersionId,
lifecycleDetails,
lifecycleState,
region,
retentionPeriodInDays,
sizeInTBs,
sourceDatabaseDetails,
timeAvailableTill,
timeEnded,
timeStarted,
type,
vaultId
;

UPDATE examples​

Updates the Autonomous AI Database backup of the specified database based on the request parameters.<br />

UPDATE oci.database.autonomous_database_backups
SET
retentionPeriodInDays = {{ retentionPeriodInDays }}
WHERE
autonomousDatabaseBackupId = '{{ autonomousDatabaseBackupId }}' --required
AND region = '{{ region }}' --required
AND if-match = '{{ if-match}}'
AND opc-request-id = '{{ opc-request-id}}'
RETURNING
id,
autonomousDatabaseId,
backupDestinationDetails,
compartmentId,
databaseSizeInTBs,
dbVersion,
displayName,
infrastructureType,
isAutomatic,
isRestorable,
keyStoreId,
keyStoreWalletName,
kmsKeyId,
kmsKeyVersionId,
lifecycleDetails,
lifecycleState,
region,
retentionPeriodInDays,
sizeInTBs,
sourceDatabaseDetails,
timeAvailableTill,
timeEnded,
timeStarted,
type,
vaultId;

DELETE examples​

Deletes a long-term backup. You cannot delete other backups using this API.

DELETE FROM oci.database.autonomous_database_backups
WHERE autonomousDatabaseBackupId = '{{ autonomousDatabaseBackupId }}' --required
AND region = '{{ region }}' --required
AND if-match = '{{ if-match }}'
AND opc-request-id = '{{ opc-request-id }}'
;