Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.Database.getBackupDestinations
Explore with Pulumi AI
This data source provides the list of Backup Destinations in Oracle Cloud Infrastructure Database service.
Gets a list of backup destinations in the specified compartment.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testBackupDestinations = oci.Database.getBackupDestinations({
    compartmentId: compartmentId,
    type: backupDestinationType,
});
import pulumi
import pulumi_oci as oci
test_backup_destinations = oci.Database.get_backup_destinations(compartment_id=compartment_id,
    type=backup_destination_type)
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.GetBackupDestinations(ctx, &database.GetBackupDestinationsArgs{
			CompartmentId: compartmentId,
			Type:          pulumi.StringRef(backupDestinationType),
		}, 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 testBackupDestinations = Oci.Database.GetBackupDestinations.Invoke(new()
    {
        CompartmentId = compartmentId,
        Type = backupDestinationType,
    });
});
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.GetBackupDestinationsArgs;
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 testBackupDestinations = DatabaseFunctions.getBackupDestinations(GetBackupDestinationsArgs.builder()
            .compartmentId(compartmentId)
            .type(backupDestinationType)
            .build());
    }
}
variables:
  testBackupDestinations:
    fn::invoke:
      Function: oci:Database:getBackupDestinations
      Arguments:
        compartmentId: ${compartmentId}
        type: ${backupDestinationType}
Using getBackupDestinations
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 getBackupDestinations(args: GetBackupDestinationsArgs, opts?: InvokeOptions): Promise<GetBackupDestinationsResult>
function getBackupDestinationsOutput(args: GetBackupDestinationsOutputArgs, opts?: InvokeOptions): Output<GetBackupDestinationsResult>def get_backup_destinations(compartment_id: Optional[str] = None,
                            filters: Optional[Sequence[_database.GetBackupDestinationsFilter]] = None,
                            type: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetBackupDestinationsResult
def get_backup_destinations_output(compartment_id: Optional[pulumi.Input[str]] = None,
                            filters: Optional[pulumi.Input[Sequence[pulumi.Input[_database.GetBackupDestinationsFilterArgs]]]] = None,
                            type: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetBackupDestinationsResult]func GetBackupDestinations(ctx *Context, args *GetBackupDestinationsArgs, opts ...InvokeOption) (*GetBackupDestinationsResult, error)
func GetBackupDestinationsOutput(ctx *Context, args *GetBackupDestinationsOutputArgs, opts ...InvokeOption) GetBackupDestinationsResultOutput> Note: This function is named GetBackupDestinations in the Go SDK.
public static class GetBackupDestinations 
{
    public static Task<GetBackupDestinationsResult> InvokeAsync(GetBackupDestinationsArgs args, InvokeOptions? opts = null)
    public static Output<GetBackupDestinationsResult> Invoke(GetBackupDestinationsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetBackupDestinationsResult> getBackupDestinations(GetBackupDestinationsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: oci:Database/getBackupDestinations:getBackupDestinations
  arguments:
    # arguments dictionaryThe following arguments are supported:
- CompartmentId string
- The compartment OCID.
- Filters
List<GetBackup Destinations Filter> 
- Type string
- A filter to return only resources that match the given type of the Backup Destination.
- CompartmentId string
- The compartment OCID.
- Filters
[]GetBackup Destinations Filter 
- Type string
- A filter to return only resources that match the given type of the Backup Destination.
- compartmentId String
- The compartment OCID.
- filters
List<GetBackup Destinations Filter> 
- type String
- A filter to return only resources that match the given type of the Backup Destination.
- compartmentId string
- The compartment OCID.
- filters
GetBackup Destinations Filter[] 
- type string
- A filter to return only resources that match the given type of the Backup Destination.
- compartment_id str
- The compartment OCID.
- filters
Sequence[database.Get Backup Destinations Filter] 
- type str
- A filter to return only resources that match the given type of the Backup Destination.
- compartmentId String
- The compartment OCID.
- filters List<Property Map>
- type String
- A filter to return only resources that match the given type of the Backup Destination.
getBackupDestinations Result
The following output properties are available:
- BackupDestinations List<GetBackup Destinations Backup Destination> 
- The list of backup_destinations.
- CompartmentId string
- The OCID of the compartment.
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
List<GetBackup Destinations Filter> 
- Type string
- Type of the backup destination.
- BackupDestinations []GetBackup Destinations Backup Destination 
- The list of backup_destinations.
- CompartmentId string
- The OCID of the compartment.
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
[]GetBackup Destinations Filter 
- Type string
- Type of the backup destination.
- backupDestinations List<GetBackup Destinations Backup Destination> 
- The list of backup_destinations.
- compartmentId String
- The OCID of the compartment.
- id String
- The provider-assigned unique ID for this managed resource.
- filters
List<GetBackup Destinations Filter> 
- type String
- Type of the backup destination.
- backupDestinations GetBackup Destinations Backup Destination[] 
- The list of backup_destinations.
- compartmentId string
- The OCID of the compartment.
- id string
- The provider-assigned unique ID for this managed resource.
- filters
GetBackup Destinations Filter[] 
- type string
- Type of the backup destination.
- backup_destinations Sequence[database.Get Backup Destinations Backup Destination] 
- The list of backup_destinations.
- compartment_id str
- The OCID of the compartment.
- id str
- The provider-assigned unique ID for this managed resource.
- filters
Sequence[database.Get Backup Destinations Filter] 
- type str
- Type of the backup destination.
- backupDestinations List<Property Map>
- The list of backup_destinations.
- compartmentId String
- The OCID of the compartment.
- id String
- The provider-assigned unique ID for this managed resource.
- filters List<Property Map>
- type String
- Type of the backup destination.
Supporting Types
GetBackupDestinationsBackupDestination    
- AssociatedDatabases List<GetBackup Destinations Backup Destination Associated Database> 
- List of databases associated with the backup destination.
- CompartmentId string
- The compartment OCID.
- ConnectionString 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.
- DisplayName 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.
- LifecycleDetails string
- A descriptive text associated with the lifecycleState. Typically contains additional displayable text
- LocalMount 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.
- MountType List<GetDetails Backup Destinations Backup Destination Mount Type Detail> 
- NfsMount stringType 
- NFS Mount type for backup destination.
- NfsServer stringExport 
- Specifies the directory on which to mount the file system
- NfsServers List<string>
- Host names or IP addresses for NFS Auto mount.
- State string
- The current lifecycle state of the backup destination.
- TimeCreated string
- The date and time the backup destination was created.
- Type string
- A filter to return only resources that match the given type of the Backup Destination.
- VpcUsers List<string>
- For a RECOVERY_APPLIANCE backup destination, the Virtual Private Catalog (VPC) users that are used to access the Recovery Appliance.
- AssociatedDatabases []GetBackup Destinations Backup Destination Associated Database 
- List of databases associated with the backup destination.
- CompartmentId string
- The compartment OCID.
- ConnectionString 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.
- DisplayName 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.
- LifecycleDetails string
- A descriptive text associated with the lifecycleState. Typically contains additional displayable text
- LocalMount 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.
- MountType []GetDetails Backup Destinations Backup Destination Mount Type Detail 
- NfsMount stringType 
- NFS Mount type for backup destination.
- NfsServer stringExport 
- Specifies the directory on which to mount the file system
- NfsServers []string
- Host names or IP addresses for NFS Auto mount.
- State string
- The current lifecycle state of the backup destination.
- TimeCreated string
- The date and time the backup destination was created.
- Type string
- A filter to return only resources that match the given type of the Backup Destination.
- VpcUsers []string
- For a RECOVERY_APPLIANCE backup destination, the Virtual Private Catalog (VPC) users that are used to access the Recovery Appliance.
- associatedDatabases List<GetBackup Destinations Backup Destination Associated> 
- List of databases associated with the backup destination.
- compartmentId String
- The compartment OCID.
- connectionString 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.
- displayName 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.
- lifecycleDetails String
- A descriptive text associated with the lifecycleState. Typically contains additional displayable text
- localMount 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.
- mountType List<GetDetails Backup Destinations Backup Destination Mount Type Detail> 
- nfsMount StringType 
- NFS Mount type for backup destination.
- nfsServer StringExport 
- Specifies the directory on which to mount the file system
- nfsServers List<String>
- Host names or IP addresses for NFS Auto mount.
- state String
- The current lifecycle state of the backup destination.
- timeCreated String
- The date and time the backup destination was created.
- type String
- A filter to return only resources that match the given type of the Backup Destination.
- vpcUsers List<String>
- For a RECOVERY_APPLIANCE backup destination, the Virtual Private Catalog (VPC) users that are used to access the Recovery Appliance.
- associatedDatabases GetBackup Destinations Backup Destination Associated Database[] 
- List of databases associated with the backup destination.
- compartmentId string
- The compartment OCID.
- connectionString 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.
- displayName 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.
- lifecycleDetails string
- A descriptive text associated with the lifecycleState. Typically contains additional displayable text
- localMount 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.
- mountType GetDetails Backup Destinations Backup Destination Mount Type Detail[] 
- nfsMount stringType 
- NFS Mount type for backup destination.
- nfsServer stringExport 
- Specifies the directory on which to mount the file system
- nfsServers string[]
- Host names or IP addresses for NFS Auto mount.
- state string
- The current lifecycle state of the backup destination.
- timeCreated string
- The date and time the backup destination was created.
- type string
- A filter to return only resources that match the given type of the Backup Destination.
- vpcUsers 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 Destinations Backup Destination Associated Database] 
- List of databases associated with the backup destination.
- compartment_id str
- The compartment OCID.
- 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 Destinations 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
- A filter to return only resources that match the given 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.
- associatedDatabases List<Property Map>
- List of databases associated with the backup destination.
- compartmentId String
- The compartment OCID.
- connectionString 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.
- displayName 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.
- lifecycleDetails String
- A descriptive text associated with the lifecycleState. Typically contains additional displayable text
- localMount 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.
- mountType List<Property Map>Details 
- nfsMount StringType 
- NFS Mount type for backup destination.
- nfsServer StringExport 
- Specifies the directory on which to mount the file system
- nfsServers List<String>
- Host names or IP addresses for NFS Auto mount.
- state String
- The current lifecycle state of the backup destination.
- timeCreated String
- The date and time the backup destination was created.
- type String
- A filter to return only resources that match the given type of the Backup Destination.
- vpcUsers List<String>
- For a RECOVERY_APPLIANCE backup destination, the Virtual Private Catalog (VPC) users that are used to access the Recovery Appliance.
GetBackupDestinationsBackupDestinationAssociatedDatabase      
GetBackupDestinationsBackupDestinationMountTypeDetail       
- LocalMount 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.
- MountType string
- NfsServer stringExport 
- Specifies the directory on which to mount the file system
- NfsServers List<string>
- Host names or IP addresses for NFS Auto mount.
- LocalMount 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.
- MountType string
- NfsServer stringExport 
- Specifies the directory on which to mount the file system
- NfsServers []string
- Host names or IP addresses for NFS Auto mount.
- localMount 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.
- mountType String
- nfsServer StringExport 
- Specifies the directory on which to mount the file system
- nfsServers List<String>
- Host names or IP addresses for NFS Auto mount.
- localMount 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.
- mountType string
- nfsServer stringExport 
- Specifies the directory on which to mount the file system
- nfsServers 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.
- localMount 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.
- mountType String
- nfsServer StringExport 
- Specifies the directory on which to mount the file system
- nfsServers List<String>
- Host names or IP addresses for NFS Auto mount.
GetBackupDestinationsFilter   
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.