Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.Database.getBackupDestination
Explore with Pulumi AI
This data source provides details about a specific Backup Destination resource in Oracle Cloud Infrastructure Database service.
Gets information about the specified backup destination in an Exadata Cloud@Customer system.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testBackupDestination = oci.Database.getBackupDestination({
backupDestinationId: testBackupDestinationOciDatabaseBackupDestination.id,
});
import pulumi
import pulumi_oci as oci
test_backup_destination = oci.Database.get_backup_destination(backup_destination_id=test_backup_destination_oci_database_backup_destination["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.GetBackupDestination(ctx, &database.GetBackupDestinationArgs{
BackupDestinationId: testBackupDestinationOciDatabaseBackupDestination.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 testBackupDestination = Oci.Database.GetBackupDestination.Invoke(new()
{
BackupDestinationId = testBackupDestinationOciDatabaseBackupDestination.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.GetBackupDestinationArgs;
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 testBackupDestination = DatabaseFunctions.getBackupDestination(GetBackupDestinationArgs.builder()
.backupDestinationId(testBackupDestinationOciDatabaseBackupDestination.id())
.build());
}
}
variables:
testBackupDestination:
fn::invoke:
Function: oci:Database:getBackupDestination
Arguments:
backupDestinationId: ${testBackupDestinationOciDatabaseBackupDestination.id}
Using getBackupDestination
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 getBackupDestination(args: GetBackupDestinationArgs, opts?: InvokeOptions): Promise<GetBackupDestinationResult>
function getBackupDestinationOutput(args: GetBackupDestinationOutputArgs, opts?: InvokeOptions): Output<GetBackupDestinationResult>
def get_backup_destination(backup_destination_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetBackupDestinationResult
def get_backup_destination_output(backup_destination_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetBackupDestinationResult]
func GetBackupDestination(ctx *Context, args *GetBackupDestinationArgs, opts ...InvokeOption) (*GetBackupDestinationResult, error)
func GetBackupDestinationOutput(ctx *Context, args *GetBackupDestinationOutputArgs, opts ...InvokeOption) GetBackupDestinationResultOutput
> Note: This function is named GetBackupDestination
in the Go SDK.
public static class GetBackupDestination
{
public static Task<GetBackupDestinationResult> InvokeAsync(GetBackupDestinationArgs args, InvokeOptions? opts = null)
public static Output<GetBackupDestinationResult> Invoke(GetBackupDestinationInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetBackupDestinationResult> getBackupDestination(GetBackupDestinationArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Database/getBackupDestination:getBackupDestination
arguments:
# arguments dictionary
The following arguments are supported:
- Backup
Destination stringId - The OCID of the backup destination.
- Backup
Destination stringId - The OCID of the backup destination.
- backup
Destination StringId - The OCID of the backup destination.
- backup
Destination stringId - The OCID of the backup destination.
- backup_
destination_ strid - The OCID of the backup destination.
- backup
Destination StringId - The OCID of the backup destination.
getBackupDestination Result
The following output properties are available:
- Associated
Databases List<GetBackup Destination Associated Database> - List of databases associated with the backup destination.
- Backup
Destination stringId - Compartment
Id string - The OCID of the compartment.
- Connection
String string - For a RECOVERY_APPLIANCE backup destination, the connection string for connecting to the Recovery Appliance.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- Display
Name string - The user-provided name of the backup destination.
- Dictionary<string, string>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- Id string
- The OCID of the backup destination.
- Lifecycle
Details string - A descriptive text associated with the lifecycleState. Typically contains additional displayable text
- Local
Mount stringPoint Path - The local directory path on each VM cluster node where the NFS server location is mounted. The local directory path and the NFS server location must each be the same across all of the VM cluster nodes. Ensure that the NFS mount is maintained continuously on all of the VM cluster nodes.
- Mount
Type List<GetDetails Backup Destination Mount Type Detail> - Nfs
Mount stringType - NFS Mount type for backup destination.
- Nfs
Server stringExport - Specifies the directory on which to mount the file system
- Nfs
Servers List<string> - Host names or IP addresses for NFS Auto mount.
- State string
- The current lifecycle state of the backup destination.
- Time
Created string - The date and time the backup destination was created.
- Type string
- Type of the backup destination.
- Vpc
Users List<string> - For a RECOVERY_APPLIANCE backup destination, the Virtual Private Catalog (VPC) users that are used to access the Recovery Appliance.
- Associated
Databases []GetBackup Destination Associated Database - List of databases associated with the backup destination.
- Backup
Destination stringId - Compartment
Id string - The OCID of the compartment.
- Connection
String string - For a RECOVERY_APPLIANCE backup destination, the connection string for connecting to the Recovery Appliance.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- Display
Name string - The user-provided name of the backup destination.
- map[string]string
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- Id string
- The OCID of the backup destination.
- Lifecycle
Details string - A descriptive text associated with the lifecycleState. Typically contains additional displayable text
- Local
Mount stringPoint Path - The local directory path on each VM cluster node where the NFS server location is mounted. The local directory path and the NFS server location must each be the same across all of the VM cluster nodes. Ensure that the NFS mount is maintained continuously on all of the VM cluster nodes.
- Mount
Type []GetDetails Backup Destination Mount Type Detail - Nfs
Mount stringType - NFS Mount type for backup destination.
- Nfs
Server stringExport - Specifies the directory on which to mount the file system
- Nfs
Servers []string - Host names or IP addresses for NFS Auto mount.
- State string
- The current lifecycle state of the backup destination.
- Time
Created string - The date and time the backup destination was created.
- Type string
- Type of the backup destination.
- Vpc
Users []string - For a RECOVERY_APPLIANCE backup destination, the Virtual Private Catalog (VPC) users that are used to access the Recovery Appliance.
- associated
Databases List<GetBackup Destination Associated> - List of databases associated with the backup destination.
- backup
Destination StringId - compartment
Id String - The OCID of the compartment.
- connection
String String - For a RECOVERY_APPLIANCE backup destination, the connection string for connecting to the Recovery Appliance.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- display
Name String - The user-provided name of the backup destination.
- Map<String,String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- id String
- The OCID of the backup destination.
- lifecycle
Details String - A descriptive text associated with the lifecycleState. Typically contains additional displayable text
- local
Mount StringPoint Path - The local directory path on each VM cluster node where the NFS server location is mounted. The local directory path and the NFS server location must each be the same across all of the VM cluster nodes. Ensure that the NFS mount is maintained continuously on all of the VM cluster nodes.
- mount
Type List<GetDetails Backup Destination Mount Type Detail> - nfs
Mount StringType - NFS Mount type for backup destination.
- nfs
Server StringExport - Specifies the directory on which to mount the file system
- nfs
Servers List<String> - Host names or IP addresses for NFS Auto mount.
- state String
- The current lifecycle state of the backup destination.
- time
Created String - The date and time the backup destination was created.
- type String
- Type of the backup destination.
- vpc
Users List<String> - For a RECOVERY_APPLIANCE backup destination, the Virtual Private Catalog (VPC) users that are used to access the Recovery Appliance.
- associated
Databases GetBackup Destination Associated Database[] - List of databases associated with the backup destination.
- backup
Destination stringId - compartment
Id string - The OCID of the compartment.
- connection
String string - For a RECOVERY_APPLIANCE backup destination, the connection string for connecting to the Recovery Appliance.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- display
Name string - The user-provided name of the backup destination.
- {[key: string]: string}
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- id string
- The OCID of the backup destination.
- lifecycle
Details string - A descriptive text associated with the lifecycleState. Typically contains additional displayable text
- local
Mount stringPoint Path - The local directory path on each VM cluster node where the NFS server location is mounted. The local directory path and the NFS server location must each be the same across all of the VM cluster nodes. Ensure that the NFS mount is maintained continuously on all of the VM cluster nodes.
- mount
Type GetDetails Backup Destination Mount Type Detail[] - nfs
Mount stringType - NFS Mount type for backup destination.
- nfs
Server stringExport - Specifies the directory on which to mount the file system
- nfs
Servers string[] - Host names or IP addresses for NFS Auto mount.
- state string
- The current lifecycle state of the backup destination.
- time
Created string - The date and time the backup destination was created.
- type string
- Type of the backup destination.
- vpc
Users string[] - For a RECOVERY_APPLIANCE backup destination, the Virtual Private Catalog (VPC) users that are used to access the Recovery Appliance.
- associated_
databases Sequence[database.Get Backup Destination Associated Database] - List of databases associated with the backup destination.
- backup_
destination_ strid - compartment_
id str - The OCID of the compartment.
- connection_
string str - For a RECOVERY_APPLIANCE backup destination, the connection string for connecting to the Recovery Appliance.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- display_
name str - The user-provided name of the backup destination.
- Mapping[str, str]
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- id str
- The OCID of the backup destination.
- lifecycle_
details str - A descriptive text associated with the lifecycleState. Typically contains additional displayable text
- local_
mount_ strpoint_ path - The local directory path on each VM cluster node where the NFS server location is mounted. The local directory path and the NFS server location must each be the same across all of the VM cluster nodes. Ensure that the NFS mount is maintained continuously on all of the VM cluster nodes.
- mount_
type_ Sequence[database.details Get Backup Destination Mount Type Detail] - nfs_
mount_ strtype - NFS Mount type for backup destination.
- nfs_
server_ strexport - Specifies the directory on which to mount the file system
- nfs_
servers Sequence[str] - Host names or IP addresses for NFS Auto mount.
- state str
- The current lifecycle state of the backup destination.
- time_
created str - The date and time the backup destination was created.
- type str
- Type of the backup destination.
- vpc_
users Sequence[str] - For a RECOVERY_APPLIANCE backup destination, the Virtual Private Catalog (VPC) users that are used to access the Recovery Appliance.
- associated
Databases List<Property Map> - List of databases associated with the backup destination.
- backup
Destination StringId - compartment
Id String - The OCID of the compartment.
- connection
String String - For a RECOVERY_APPLIANCE backup destination, the connection string for connecting to the Recovery Appliance.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- display
Name String - The user-provided name of the backup destination.
- Map<String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- id String
- The OCID of the backup destination.
- lifecycle
Details String - A descriptive text associated with the lifecycleState. Typically contains additional displayable text
- local
Mount StringPoint Path - The local directory path on each VM cluster node where the NFS server location is mounted. The local directory path and the NFS server location must each be the same across all of the VM cluster nodes. Ensure that the NFS mount is maintained continuously on all of the VM cluster nodes.
- mount
Type List<Property Map>Details - nfs
Mount StringType - NFS Mount type for backup destination.
- nfs
Server StringExport - Specifies the directory on which to mount the file system
- nfs
Servers List<String> - Host names or IP addresses for NFS Auto mount.
- state String
- The current lifecycle state of the backup destination.
- time
Created String - The date and time the backup destination was created.
- type String
- Type of the backup destination.
- vpc
Users List<String> - For a RECOVERY_APPLIANCE backup destination, the Virtual Private Catalog (VPC) users that are used to access the Recovery Appliance.
Supporting Types
GetBackupDestinationAssociatedDatabase
GetBackupDestinationMountTypeDetail
- Local
Mount stringPoint Path - The local directory path on each VM cluster node where the NFS server location is mounted. The local directory path and the NFS server location must each be the same across all of the VM cluster nodes. Ensure that the NFS mount is maintained continuously on all of the VM cluster nodes.
- Mount
Type string - Nfs
Server stringExport - Specifies the directory on which to mount the file system
- Nfs
Servers List<string> - Host names or IP addresses for NFS Auto mount.
- Local
Mount stringPoint Path - The local directory path on each VM cluster node where the NFS server location is mounted. The local directory path and the NFS server location must each be the same across all of the VM cluster nodes. Ensure that the NFS mount is maintained continuously on all of the VM cluster nodes.
- Mount
Type string - Nfs
Server stringExport - Specifies the directory on which to mount the file system
- Nfs
Servers []string - Host names or IP addresses for NFS Auto mount.
- local
Mount StringPoint Path - The local directory path on each VM cluster node where the NFS server location is mounted. The local directory path and the NFS server location must each be the same across all of the VM cluster nodes. Ensure that the NFS mount is maintained continuously on all of the VM cluster nodes.
- mount
Type String - nfs
Server StringExport - Specifies the directory on which to mount the file system
- nfs
Servers List<String> - Host names or IP addresses for NFS Auto mount.
- local
Mount stringPoint Path - The local directory path on each VM cluster node where the NFS server location is mounted. The local directory path and the NFS server location must each be the same across all of the VM cluster nodes. Ensure that the NFS mount is maintained continuously on all of the VM cluster nodes.
- mount
Type string - nfs
Server stringExport - Specifies the directory on which to mount the file system
- nfs
Servers string[] - Host names or IP addresses for NFS Auto mount.
- local_
mount_ strpoint_ path - The local directory path on each VM cluster node where the NFS server location is mounted. The local directory path and the NFS server location must each be the same across all of the VM cluster nodes. Ensure that the NFS mount is maintained continuously on all of the VM cluster nodes.
- mount_
type str - nfs_
server_ strexport - Specifies the directory on which to mount the file system
- nfs_
servers Sequence[str] - Host names or IP addresses for NFS Auto mount.
- local
Mount StringPoint Path - The local directory path on each VM cluster node where the NFS server location is mounted. The local directory path and the NFS server location must each be the same across all of the VM cluster nodes. Ensure that the NFS mount is maintained continuously on all of the VM cluster nodes.
- mount
Type String - nfs
Server StringExport - Specifies the directory on which to mount the file system
- nfs
Servers List<String> - Host names or IP addresses for NFS Auto mount.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.