Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Database.getAutonomousDatabaseBackup
Explore with Pulumi AI
This data source provides details about a specific Autonomous Database Backup resource in Oracle Cloud Infrastructure Database service.
Gets information about the specified Autonomous Database backup.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testAutonomousDatabaseBackup = oci.Database.getAutonomousDatabaseBackup({
    autonomousDatabaseBackupId: testAutonomousDatabaseBackupOciDatabaseAutonomousDatabaseBackup.id,
});
import pulumi
import pulumi_oci as oci
test_autonomous_database_backup = oci.Database.get_autonomous_database_backup(autonomous_database_backup_id=test_autonomous_database_backup_oci_database_autonomous_database_backup["id"])
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/database"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := database.GetAutonomousDatabaseBackup(ctx, &database.GetAutonomousDatabaseBackupArgs{
			AutonomousDatabaseBackupId: testAutonomousDatabaseBackupOciDatabaseAutonomousDatabaseBackup.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() => 
{
    var testAutonomousDatabaseBackup = Oci.Database.GetAutonomousDatabaseBackup.Invoke(new()
    {
        AutonomousDatabaseBackupId = testAutonomousDatabaseBackupOciDatabaseAutonomousDatabaseBackup.Id,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Database.DatabaseFunctions;
import com.pulumi.oci.Database.inputs.GetAutonomousDatabaseBackupArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var testAutonomousDatabaseBackup = DatabaseFunctions.getAutonomousDatabaseBackup(GetAutonomousDatabaseBackupArgs.builder()
            .autonomousDatabaseBackupId(testAutonomousDatabaseBackupOciDatabaseAutonomousDatabaseBackup.id())
            .build());
    }
}
variables:
  testAutonomousDatabaseBackup:
    fn::invoke:
      function: oci:Database:getAutonomousDatabaseBackup
      arguments:
        autonomousDatabaseBackupId: ${testAutonomousDatabaseBackupOciDatabaseAutonomousDatabaseBackup.id}
Using getAutonomousDatabaseBackup
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getAutonomousDatabaseBackup(args: GetAutonomousDatabaseBackupArgs, opts?: InvokeOptions): Promise<GetAutonomousDatabaseBackupResult>
function getAutonomousDatabaseBackupOutput(args: GetAutonomousDatabaseBackupOutputArgs, opts?: InvokeOptions): Output<GetAutonomousDatabaseBackupResult>def get_autonomous_database_backup(autonomous_database_backup_id: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetAutonomousDatabaseBackupResult
def get_autonomous_database_backup_output(autonomous_database_backup_id: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetAutonomousDatabaseBackupResult]func LookupAutonomousDatabaseBackup(ctx *Context, args *LookupAutonomousDatabaseBackupArgs, opts ...InvokeOption) (*LookupAutonomousDatabaseBackupResult, error)
func LookupAutonomousDatabaseBackupOutput(ctx *Context, args *LookupAutonomousDatabaseBackupOutputArgs, opts ...InvokeOption) LookupAutonomousDatabaseBackupResultOutput> Note: This function is named LookupAutonomousDatabaseBackup in the Go SDK.
public static class GetAutonomousDatabaseBackup 
{
    public static Task<GetAutonomousDatabaseBackupResult> InvokeAsync(GetAutonomousDatabaseBackupArgs args, InvokeOptions? opts = null)
    public static Output<GetAutonomousDatabaseBackupResult> Invoke(GetAutonomousDatabaseBackupInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetAutonomousDatabaseBackupResult> getAutonomousDatabaseBackup(GetAutonomousDatabaseBackupArgs args, InvokeOptions options)
public static Output<GetAutonomousDatabaseBackupResult> getAutonomousDatabaseBackup(GetAutonomousDatabaseBackupArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Database/getAutonomousDatabaseBackup:getAutonomousDatabaseBackup
  arguments:
    # arguments dictionaryThe following arguments are supported:
- AutonomousDatabase stringBackup Id 
- The OCID of the Autonomous Database backup.
- AutonomousDatabase stringBackup Id 
- The OCID of the Autonomous Database backup.
- autonomousDatabase StringBackup Id 
- The OCID of the Autonomous Database backup.
- autonomousDatabase stringBackup Id 
- The OCID of the Autonomous Database backup.
- autonomous_database_ strbackup_ id 
- The OCID of the Autonomous Database backup.
- autonomousDatabase StringBackup Id 
- The OCID of the Autonomous Database backup.
getAutonomousDatabaseBackup Result
The following output properties are available:
- AutonomousDatabase stringBackup Id 
- AutonomousDatabase stringId 
- The OCID of the Autonomous Database.
- BackupDestination List<GetDetails Autonomous Database Backup Backup Destination Detail> 
- Backup destination details
- CompartmentId string
- The OCID of the compartment.
- DatabaseSize doubleIn Tbs 
- The size of the database in terabytes at the time the backup was taken.
- DbVersion string
- A valid Oracle Database version for Autonomous Database.
- DisplayName string
- The user-friendly name for the backup. The name does not have to be unique.
- Id string
- The OCID of the Autonomous Database backup.
- IsAutomatic bool
- Indicates whether the backup is user-initiated or automatic.
- IsLong boolTerm Backup 
- IsRestorable bool
- Indicates whether the backup can be used to restore the associated Autonomous Database.
- KeyStore stringId 
- The OCID of the key store of Oracle Vault.
- KeyStore stringWallet Name 
- The wallet name for Oracle Key Vault.
- KmsKey stringId 
- The OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations.
- KmsKey stringVersion 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.
- LifecycleDetails string
- Additional information about the current lifecycle state.
- RetentionPeriod intIn Days 
- Retention period, in days, for long-term backups
- SizeIn doubleTbs 
- The backup size in terrabytes (TB).
- State string
- The current state of the backup.
- TimeAvailable stringTill 
- Timestamp until when the backup will be available
- TimeEnded string
- The date and time the backup completed.
- TimeStarted string
- The date and time the backup started.
- Type string
- The type of backup.
- VaultId string
- The OCID of the Oracle Cloud Infrastructure vault. This parameter and secretIdare required for Customer Managed Keys.
- AutonomousDatabase stringBackup Id 
- AutonomousDatabase stringId 
- The OCID of the Autonomous Database.
- BackupDestination []GetDetails Autonomous Database Backup Backup Destination Detail 
- Backup destination details
- CompartmentId string
- The OCID of the compartment.
- DatabaseSize float64In Tbs 
- The size of the database in terabytes at the time the backup was taken.
- DbVersion string
- A valid Oracle Database version for Autonomous Database.
- DisplayName string
- The user-friendly name for the backup. The name does not have to be unique.
- Id string
- The OCID of the Autonomous Database backup.
- IsAutomatic bool
- Indicates whether the backup is user-initiated or automatic.
- IsLong boolTerm Backup 
- IsRestorable bool
- Indicates whether the backup can be used to restore the associated Autonomous Database.
- KeyStore stringId 
- The OCID of the key store of Oracle Vault.
- KeyStore stringWallet Name 
- The wallet name for Oracle Key Vault.
- KmsKey stringId 
- The OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations.
- KmsKey stringVersion 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.
- LifecycleDetails string
- Additional information about the current lifecycle state.
- RetentionPeriod intIn Days 
- Retention period, in days, for long-term backups
- SizeIn float64Tbs 
- The backup size in terrabytes (TB).
- State string
- The current state of the backup.
- TimeAvailable stringTill 
- Timestamp until when the backup will be available
- TimeEnded string
- The date and time the backup completed.
- TimeStarted string
- The date and time the backup started.
- Type string
- The type of backup.
- VaultId string
- The OCID of the Oracle Cloud Infrastructure vault. This parameter and secretIdare required for Customer Managed Keys.
- autonomousDatabase StringBackup Id 
- autonomousDatabase StringId 
- The OCID of the Autonomous Database.
- backupDestination List<GetDetails Autonomous Backup Backup Destination Detail> 
- Backup destination details
- compartmentId String
- The OCID of the compartment.
- databaseSize DoubleIn Tbs 
- The size of the database in terabytes at the time the backup was taken.
- dbVersion String
- A valid Oracle Database version for Autonomous Database.
- displayName String
- The user-friendly name for the backup. The name does not have to be unique.
- id String
- The OCID of the Autonomous Database backup.
- isAutomatic Boolean
- Indicates whether the backup is user-initiated or automatic.
- isLong BooleanTerm Backup 
- isRestorable Boolean
- Indicates whether the backup can be used to restore the associated Autonomous Database.
- keyStore StringId 
- The OCID of the key store of Oracle Vault.
- keyStore StringWallet Name 
- The wallet name for Oracle Key Vault.
- kmsKey StringId 
- The OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations.
- kmsKey StringVersion 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.
- lifecycleDetails String
- Additional information about the current lifecycle state.
- retentionPeriod IntegerIn Days 
- Retention period, in days, for long-term backups
- sizeIn DoubleTbs 
- The backup size in terrabytes (TB).
- state String
- The current state of the backup.
- timeAvailable StringTill 
- Timestamp until when the backup will be available
- timeEnded String
- The date and time the backup completed.
- timeStarted String
- The date and time the backup started.
- type String
- The type of backup.
- vaultId String
- The OCID of the Oracle Cloud Infrastructure vault. This parameter and secretIdare required for Customer Managed Keys.
- autonomousDatabase stringBackup Id 
- autonomousDatabase stringId 
- The OCID of the Autonomous Database.
- backupDestination GetDetails Autonomous Database Backup Backup Destination Detail[] 
- Backup destination details
- compartmentId string
- The OCID of the compartment.
- databaseSize numberIn Tbs 
- The size of the database in terabytes at the time the backup was taken.
- dbVersion string
- A valid Oracle Database version for Autonomous Database.
- displayName string
- The user-friendly name for the backup. The name does not have to be unique.
- id string
- The OCID of the Autonomous Database backup.
- isAutomatic boolean
- Indicates whether the backup is user-initiated or automatic.
- isLong booleanTerm Backup 
- isRestorable boolean
- Indicates whether the backup can be used to restore the associated Autonomous Database.
- keyStore stringId 
- The OCID of the key store of Oracle Vault.
- keyStore stringWallet Name 
- The wallet name for Oracle Key Vault.
- kmsKey stringId 
- The OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations.
- kmsKey stringVersion 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.
- lifecycleDetails string
- Additional information about the current lifecycle state.
- retentionPeriod numberIn Days 
- Retention period, in days, for long-term backups
- sizeIn numberTbs 
- The backup size in terrabytes (TB).
- state string
- The current state of the backup.
- timeAvailable stringTill 
- Timestamp until when the backup will be available
- timeEnded string
- The date and time the backup completed.
- timeStarted string
- The date and time the backup started.
- type string
- The type of backup.
- vaultId string
- The OCID of the Oracle Cloud Infrastructure vault. This parameter and secretIdare required for Customer Managed Keys.
- autonomous_database_ strbackup_ id 
- autonomous_database_ strid 
- The OCID of the Autonomous Database.
- backup_destination_ Sequence[Getdetails Autonomous Database Backup Backup Destination Detail] 
- Backup destination details
- compartment_id str
- The OCID of the compartment.
- database_size_ floatin_ tbs 
- The size of the database in terabytes at the time the backup was taken.
- db_version str
- A valid Oracle Database version for Autonomous Database.
- display_name str
- The user-friendly name for the backup. The name does not have to be unique.
- id str
- The OCID of the Autonomous Database backup.
- is_automatic bool
- Indicates whether the backup is user-initiated or automatic.
- is_long_ boolterm_ backup 
- is_restorable bool
- Indicates whether the backup can be used to restore the associated Autonomous Database.
- key_store_ strid 
- The OCID of the key store of Oracle Vault.
- key_store_ strwallet_ name 
- The wallet name for Oracle Key Vault.
- kms_key_ strid 
- The OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations.
- kms_key_ strversion_ 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.
- lifecycle_details str
- Additional information about the current lifecycle state.
- retention_period_ intin_ days 
- Retention period, in days, for long-term backups
- size_in_ floattbs 
- The backup size in terrabytes (TB).
- state str
- The current state of the backup.
- time_available_ strtill 
- Timestamp until when the backup will be available
- time_ended str
- The date and time the backup completed.
- time_started str
- The date and time the backup started.
- type str
- The type of backup.
- vault_id str
- The OCID of the Oracle Cloud Infrastructure vault. This parameter and secretIdare required for Customer Managed Keys.
- autonomousDatabase StringBackup Id 
- autonomousDatabase StringId 
- The OCID of the Autonomous Database.
- backupDestination List<Property Map>Details 
- Backup destination details
- compartmentId String
- The OCID of the compartment.
- databaseSize NumberIn Tbs 
- The size of the database in terabytes at the time the backup was taken.
- dbVersion String
- A valid Oracle Database version for Autonomous Database.
- displayName String
- The user-friendly name for the backup. The name does not have to be unique.
- id String
- The OCID of the Autonomous Database backup.
- isAutomatic Boolean
- Indicates whether the backup is user-initiated or automatic.
- isLong BooleanTerm Backup 
- isRestorable Boolean
- Indicates whether the backup can be used to restore the associated Autonomous Database.
- keyStore StringId 
- The OCID of the key store of Oracle Vault.
- keyStore StringWallet Name 
- The wallet name for Oracle Key Vault.
- kmsKey StringId 
- The OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations.
- kmsKey StringVersion 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.
- lifecycleDetails String
- Additional information about the current lifecycle state.
- retentionPeriod NumberIn Days 
- Retention period, in days, for long-term backups
- sizeIn NumberTbs 
- The backup size in terrabytes (TB).
- state String
- The current state of the backup.
- timeAvailable StringTill 
- Timestamp until when the backup will be available
- timeEnded String
- The date and time the backup completed.
- timeStarted String
- The date and time the backup started.
- type String
- The type of backup.
- vaultId String
- The OCID of the Oracle Cloud Infrastructure vault. This parameter and secretIdare required for Customer Managed Keys.
Supporting Types
GetAutonomousDatabaseBackupBackupDestinationDetail      
- Id string
- The OCID of the Autonomous Database backup.
- InternetProxy string
- Proxy URL to connect to object store.
- Type string
- The type of backup.
- VpcPassword string
- For a RECOVERY_APPLIANCE backup destination, the password for the VPC user that is used to access the Recovery Appliance.
- VpcUser string
- For a RECOVERY_APPLIANCE backup destination, the Virtual Private Catalog (VPC) user that is used to access the Recovery Appliance.
- Id string
- The OCID of the Autonomous Database backup.
- InternetProxy string
- Proxy URL to connect to object store.
- Type string
- The type of backup.
- VpcPassword string
- For a RECOVERY_APPLIANCE backup destination, the password for the VPC user that is used to access the Recovery Appliance.
- VpcUser string
- For a RECOVERY_APPLIANCE backup destination, the Virtual Private Catalog (VPC) user that is used to access the Recovery Appliance.
- id String
- The OCID of the Autonomous Database backup.
- internetProxy String
- Proxy URL to connect to object store.
- type String
- The type of backup.
- vpcPassword String
- For a RECOVERY_APPLIANCE backup destination, the password for the VPC user that is used to access the Recovery Appliance.
- vpcUser String
- For a RECOVERY_APPLIANCE backup destination, the Virtual Private Catalog (VPC) user that is used to access the Recovery Appliance.
- id string
- The OCID of the Autonomous Database backup.
- internetProxy string
- Proxy URL to connect to object store.
- type string
- The type of backup.
- vpcPassword string
- For a RECOVERY_APPLIANCE backup destination, the password for the VPC user that is used to access the Recovery Appliance.
- vpcUser string
- For a RECOVERY_APPLIANCE backup destination, the Virtual Private Catalog (VPC) user that is used to access the Recovery Appliance.
- id str
- The OCID of the Autonomous Database backup.
- internet_proxy str
- Proxy URL to connect to object store.
- type str
- The type of backup.
- vpc_password str
- For a RECOVERY_APPLIANCE backup destination, the password for the VPC user that is used to access the Recovery Appliance.
- vpc_user str
- For a RECOVERY_APPLIANCE backup destination, the Virtual Private Catalog (VPC) user that is used to access the Recovery Appliance.
- id String
- The OCID of the Autonomous Database backup.
- internetProxy String
- Proxy URL to connect to object store.
- type String
- The type of backup.
- vpcPassword String
- For a RECOVERY_APPLIANCE backup destination, the password for the VPC user that is used to access the Recovery Appliance.
- vpcUser String
- For a RECOVERY_APPLIANCE backup destination, the Virtual Private Catalog (VPC) user that is used to access the Recovery Appliance.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.