Oracle Cloud Infrastructure v0.20.0, May 31 23
Oracle Cloud Infrastructure v0.20.0, May 31 23
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
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 = oci_database_autonomous_database_backup.Test_autonomous_database_backup.Id,
});
});
package main
import (
"github.com/pulumi/pulumi-oci/sdk/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: oci_database_autonomous_database_backup.Test_autonomous_database_backup.Id,
}, nil)
if err != nil {
return err
}
return nil
})
}
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(oci_database_autonomous_database_backup.test_autonomous_database_backup().id())
.build());
}
}
import pulumi
import pulumi_oci as oci
test_autonomous_database_backup = oci.Database.get_autonomous_database_backup(autonomous_database_backup_id=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testAutonomousDatabaseBackup = oci.Database.getAutonomousDatabaseBackup({
autonomousDatabaseBackupId: oci_database_autonomous_database_backup.test_autonomous_database_backup.id,
});
variables:
testAutonomousDatabaseBackup:
fn::invoke:
Function: oci:Database:getAutonomousDatabaseBackup
Arguments:
autonomousDatabaseBackupId: ${oci_database_autonomous_database_backup.test_autonomous_database_backup.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 GetAutonomousDatabaseBackup(ctx *Context, args *GetAutonomousDatabaseBackupArgs, opts ...InvokeOption) (*GetAutonomousDatabaseBackupResult, error)
func GetAutonomousDatabaseBackupOutput(ctx *Context, args *GetAutonomousDatabaseBackupOutputArgs, opts ...InvokeOption) GetAutonomousDatabaseBackupResultOutput
> Note: This function is named GetAutonomousDatabaseBackup
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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Database/getAutonomousDatabaseBackup:getAutonomousDatabaseBackup
arguments:
# arguments dictionary
The following arguments are supported:
- Autonomous
Database stringBackup Id The OCID of the Autonomous Database backup.
- Autonomous
Database stringBackup Id The OCID of the Autonomous Database backup.
- autonomous
Database StringBackup Id The OCID of the Autonomous Database backup.
- autonomous
Database stringBackup Id The OCID of the Autonomous Database backup.
- autonomous_
database_ strbackup_ id The OCID of the Autonomous Database backup.
- autonomous
Database StringBackup Id The OCID of the Autonomous Database backup.
getAutonomousDatabaseBackup Result
The following output properties are available:
- Autonomous
Database stringBackup Id - Autonomous
Database stringId The OCID of the Autonomous Database.
- Backup
Destination List<GetDetails Autonomous Database Backup Backup Destination Detail> Backup destination details
- Compartment
Id string The OCID of the compartment.
- Database
Size doubleIn Tbs The size of the database in terabytes at the time the backup was taken.
- Db
Version string A valid Oracle Database version for Autonomous Database.
- Display
Name 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.
- 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 stringId The OCID of the key store.
- Key
Store stringWallet Name The wallet name for Oracle Key Vault.
- Kms
Key stringId The OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations.
- Kms
Key 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.
- Lifecycle
Details string Additional information about the current lifecycle state.
- Retention
Period intIn Days Retention period, in days, for long-term backups
- Size
In doubleTbs The backup size in terrabytes (TB).
- State string
The current state of the backup.
- Time
Available stringTill Timestamp until when the backup will be available
- Time
Ended string The date and time the backup completed.
- Time
Started string The date and time the backup started.
- Type string
The type of backup.
- Vault
Id string
- Autonomous
Database stringBackup Id - Autonomous
Database stringId The OCID of the Autonomous Database.
- Backup
Destination []GetDetails Autonomous Database Backup Backup Destination Detail Backup destination details
- Compartment
Id string The OCID of the compartment.
- Database
Size float64In Tbs The size of the database in terabytes at the time the backup was taken.
- Db
Version string A valid Oracle Database version for Autonomous Database.
- Display
Name 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.
- 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 stringId The OCID of the key store.
- Key
Store stringWallet Name The wallet name for Oracle Key Vault.
- Kms
Key stringId The OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations.
- Kms
Key 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.
- Lifecycle
Details string Additional information about the current lifecycle state.
- Retention
Period intIn Days Retention period, in days, for long-term backups
- Size
In float64Tbs The backup size in terrabytes (TB).
- State string
The current state of the backup.
- Time
Available stringTill Timestamp until when the backup will be available
- Time
Ended string The date and time the backup completed.
- Time
Started string The date and time the backup started.
- Type string
The type of backup.
- Vault
Id string
- autonomous
Database StringBackup Id - autonomous
Database StringId The OCID of the Autonomous Database.
- backup
Destination List<GetDetails Autonomous Backup Backup Destination Detail> Backup destination details
- compartment
Id String The OCID of the compartment.
- database
Size DoubleIn Tbs The size of the database in terabytes at the time the backup was taken.
- db
Version String A valid Oracle Database version for Autonomous Database.
- display
Name 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.
- is
Automatic Boolean Indicates whether the backup is user-initiated or automatic.
- is
Long BooleanTerm Backup - is
Restorable Boolean Indicates whether the backup can be used to restore the associated Autonomous Database.
- key
Store StringId The OCID of the key store.
- key
Store StringWallet Name The wallet name for Oracle Key Vault.
- kms
Key StringId The OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations.
- kms
Key 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.
- lifecycle
Details String Additional information about the current lifecycle state.
- retention
Period IntegerIn Days Retention period, in days, for long-term backups
- size
In DoubleTbs The backup size in terrabytes (TB).
- state String
The current state of the backup.
- time
Available StringTill Timestamp until when the backup will be available
- time
Ended String The date and time the backup completed.
- time
Started String The date and time the backup started.
- type String
The type of backup.
- vault
Id String
- autonomous
Database stringBackup Id - autonomous
Database stringId The OCID of the Autonomous Database.
- backup
Destination GetDetails Autonomous Database Backup Backup Destination Detail[] Backup destination details
- compartment
Id string The OCID of the compartment.
- database
Size numberIn Tbs The size of the database in terabytes at the time the backup was taken.
- db
Version string A valid Oracle Database version for Autonomous Database.
- display
Name 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.
- is
Automatic boolean Indicates whether the backup is user-initiated or automatic.
- is
Long booleanTerm Backup - is
Restorable boolean Indicates whether the backup can be used to restore the associated Autonomous Database.
- key
Store stringId The OCID of the key store.
- key
Store stringWallet Name The wallet name for Oracle Key Vault.
- kms
Key stringId The OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations.
- kms
Key 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.
- lifecycle
Details string Additional information about the current lifecycle state.
- retention
Period numberIn Days Retention period, in days, for long-term backups
- size
In numberTbs The backup size in terrabytes (TB).
- state string
The current state of the backup.
- time
Available stringTill Timestamp until when the backup will be available
- time
Ended string The date and time the backup completed.
- time
Started string The date and time the backup started.
- type string
The type of backup.
- vault
Id string
- autonomous_
database_ strbackup_ id - autonomous_
database_ strid The OCID of the Autonomous Database.
- backup_
destination_ 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.
- 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.
- 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
- autonomous
Database StringBackup Id - autonomous
Database StringId The OCID of the Autonomous Database.
- backup
Destination List<Property Map>Details Backup destination details
- compartment
Id String The OCID of the compartment.
- database
Size NumberIn Tbs The size of the database in terabytes at the time the backup was taken.
- db
Version String A valid Oracle Database version for Autonomous Database.
- display
Name 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.
- is
Automatic Boolean Indicates whether the backup is user-initiated or automatic.
- is
Long BooleanTerm Backup - is
Restorable Boolean Indicates whether the backup can be used to restore the associated Autonomous Database.
- key
Store StringId The OCID of the key store.
- key
Store StringWallet Name The wallet name for Oracle Key Vault.
- kms
Key StringId The OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations.
- kms
Key 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.
- lifecycle
Details String Additional information about the current lifecycle state.
- retention
Period NumberIn Days Retention period, in days, for long-term backups
- size
In NumberTbs The backup size in terrabytes (TB).
- state String
The current state of the backup.
- time
Available StringTill Timestamp until when the backup will be available
- time
Ended String The date and time the backup completed.
- time
Started String The date and time the backup started.
- type String
The type of backup.
- vault
Id String
Supporting Types
GetAutonomousDatabaseBackupBackupDestinationDetail
- Id string
The OCID of the Autonomous Database backup.
- Internet
Proxy string Proxy URL to connect to object store.
- Type string
The type of backup.
- Vpc
Password string For a RECOVERY_APPLIANCE backup destination, the password for the VPC user that is used to access the Recovery Appliance.
- Vpc
User 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.
- Internet
Proxy string Proxy URL to connect to object store.
- Type string
The type of backup.
- Vpc
Password string For a RECOVERY_APPLIANCE backup destination, the password for the VPC user that is used to access the Recovery Appliance.
- Vpc
User 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.
- internet
Proxy String Proxy URL to connect to object store.
- type String
The type of backup.
- vpc
Password String For a RECOVERY_APPLIANCE backup destination, the password for the VPC user that is used to access the Recovery Appliance.
- vpc
User 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.
- internet
Proxy string Proxy URL to connect to object store.
- type string
The type of backup.
- vpc
Password string For a RECOVERY_APPLIANCE backup destination, the password for the VPC user that is used to access the Recovery Appliance.
- vpc
User 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.
- internet
Proxy String Proxy URL to connect to object store.
- type String
The type of backup.
- vpc
Password String For a RECOVERY_APPLIANCE backup destination, the password for the VPC user that is used to access the Recovery Appliance.
- vpc
User 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
oci
Terraform Provider.