Skip to main content

autonomous_database_backups

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

Overview

Nameautonomous_database_backups
TypeResource
Idaws.odb.autonomous_database_backups

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
autonomous_database_backup_arnstringThe Amazon Resource Name (ARN) of the Autonomous Database backup. (pattern: <code>arn:(?:aws|aws-cn|aws-us-gov|aws-iso-{0,1}[a-z]{0,1}):[a-z0-9-]+:[a-z0-9-]*:[0-9]+:[a-z0-9-]+/[a-z0-9-_]{6,64}</code>)
autonomous_database_backup_idstringThe unique identifier of the Autonomous Database backup. (pattern: <code>[a-zA-Z0-9_~.-]+</code>)
autonomous_database_idstringThe unique identifier of the Autonomous Database that the backup was created from. (pattern: <code>[a-zA-Z0-9_~.-]+</code>)
db_versionstringThe Oracle Database software version of the Autonomous Database backup.
display_namestringThe user-friendly name of the Autonomous Database backup.
is_automaticbooleanIndicates whether the backup was created automatically.
ocidstringThe Oracle Cloud Identifier (OCID) of the Autonomous Database backup.
retention_period_in_daysintegerThe retention period, in days, for the Autonomous Database backup.
size_in_tbsnumber (double)The size of the Autonomous Database backup, in terabytes (TB).
statusstringThe current status of the Autonomous Database backup. (ACTIVE, CREATING, UPDATING, DELETING, FAILED)
status_reasonstringAdditional information about the current status of the Autonomous Database backup, if applicable.
time_available_tillstring (date-time)The date and time until which the Autonomous Database backup is available for restore.
time_endedstring (date-time)The date and time when the Autonomous Database backup ended.
time_startedstring (date-time)The date and time when the Autonomous Database backup started.
type_stringThe type of the Autonomous Database backup. (INCREMENTAL, FULL, LONGTERM, VIRTUAL_FULL, CUMULATIVE_INCREMENTAL, ROLL_FORWARD_IMAGE_COPY)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_autonomous_database_backupselectregionGets information about a specific Autonomous Database backup.
list_autonomous_database_backupsselectregionLists the backups of the specified Autonomous Database.
create_autonomous_database_backupinsertregion, autonomousDatabaseIdCreates a new backup of the specified Autonomous Database.
update_autonomous_database_backupupdateregion, autonomousDatabaseBackupIdUpdates the properties of an Autonomous Database backup.
delete_autonomous_database_backupdeleteregionDeletes the specified Autonomous Database backup.

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
regionstringAWS region (default: us-east-1)

SELECT examples

Gets information about a specific Autonomous Database backup.

SELECT
autonomous_database_backup_arn,
autonomous_database_backup_id,
autonomous_database_id,
db_version,
display_name,
is_automatic,
ocid,
retention_period_in_days,
size_in_tbs,
status,
status_reason,
time_available_till,
time_ended,
time_started,
type_
FROM aws.odb.autonomous_database_backups
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a new backup of the specified Autonomous Database.

INSERT INTO aws.odb.autonomous_database_backups (
autonomousDatabaseId,
displayName,
retentionPeriodInDays,
clientToken,
tags,
region
)
SELECT
'{{ autonomousDatabaseId }}' /* required */,
'{{ displayName }}',
{{ retentionPeriodInDays }},
'{{ clientToken }}',
'{{ tags }}',
'{{ region }}'
RETURNING
autonomous_database_backup_id,
display_name,
status,
status_reason
;

UPDATE examples

Updates the properties of an Autonomous Database backup.

UPDATE aws.odb.autonomous_database_backups
SET
autonomousDatabaseBackupId = '{{ autonomousDatabaseBackupId }}',
retentionPeriodInDays = {{ retentionPeriodInDays }}
WHERE
region = '{{ region }}' --required
AND autonomousDatabaseBackupId = '{{ autonomousDatabaseBackupId }}' --required
RETURNING
autonomous_database_backup_id,
display_name,
status,
status_reason;

DELETE examples

Deletes the specified Autonomous Database backup.

DELETE FROM aws.odb.autonomous_database_backups
WHERE region = '{{ region }}' --required
;