oci.Database.getAutonomousDatabaseBackup
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 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=oci_database_autonomous_database_backup["test_autonomous_database_backup"]["id"])
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.
- 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.
- 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
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.
- State string
The current state of the backup.
- 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.
- 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.
- 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
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.
- State string
The current state of the backup.
- 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.
- 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.
- 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
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.
- state String
The current state of the backup.
- 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.
- 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.
- 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
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.
- state string
The current state of the backup.
- 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.
- 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.
- 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_
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.
- state str
The current state of the backup.
- 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.
- 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.
- 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
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.
- state String
The current state of the backup.
- 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
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.