1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. RecoveryMod
  5. getProtectedDatabases
Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi

oci.RecoveryMod.getProtectedDatabases

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi

This data source provides the list of Protected Databases in Oracle Cloud Infrastructure Recovery service.

Lists the protected databases based on the specified parameters.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testProtectedDatabases = oci.RecoveryMod.getProtectedDatabases({
    compartmentId: compartmentId,
    displayName: protectedDatabaseDisplayName,
    id: protectedDatabaseId,
    protectionPolicyId: testProtectionPolicy.id,
    recoveryServiceSubnetId: testRecoveryServiceSubnet.id,
    state: protectedDatabaseState,
});
Copy
import pulumi
import pulumi_oci as oci

test_protected_databases = oci.RecoveryMod.get_protected_databases(compartment_id=compartment_id,
    display_name=protected_database_display_name,
    id=protected_database_id,
    protection_policy_id=test_protection_policy["id"],
    recovery_service_subnet_id=test_recovery_service_subnet["id"],
    state=protected_database_state)
Copy
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/recoverymod"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := recoverymod.GetProtectedDatabases(ctx, &recoverymod.GetProtectedDatabasesArgs{
			CompartmentId:           compartmentId,
			DisplayName:             pulumi.StringRef(protectedDatabaseDisplayName),
			Id:                      pulumi.StringRef(protectedDatabaseId),
			ProtectionPolicyId:      pulumi.StringRef(testProtectionPolicy.Id),
			RecoveryServiceSubnetId: pulumi.StringRef(testRecoveryServiceSubnet.Id),
			State:                   pulumi.StringRef(protectedDatabaseState),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testProtectedDatabases = Oci.RecoveryMod.GetProtectedDatabases.Invoke(new()
    {
        CompartmentId = compartmentId,
        DisplayName = protectedDatabaseDisplayName,
        Id = protectedDatabaseId,
        ProtectionPolicyId = testProtectionPolicy.Id,
        RecoveryServiceSubnetId = testRecoveryServiceSubnet.Id,
        State = protectedDatabaseState,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.RecoveryMod.RecoveryModFunctions;
import com.pulumi.oci.RecoveryMod.inputs.GetProtectedDatabasesArgs;
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 testProtectedDatabases = RecoveryModFunctions.getProtectedDatabases(GetProtectedDatabasesArgs.builder()
            .compartmentId(compartmentId)
            .displayName(protectedDatabaseDisplayName)
            .id(protectedDatabaseId)
            .protectionPolicyId(testProtectionPolicy.id())
            .recoveryServiceSubnetId(testRecoveryServiceSubnet.id())
            .state(protectedDatabaseState)
            .build());

    }
}
Copy
variables:
  testProtectedDatabases:
    fn::invoke:
      function: oci:RecoveryMod:getProtectedDatabases
      arguments:
        compartmentId: ${compartmentId}
        displayName: ${protectedDatabaseDisplayName}
        id: ${protectedDatabaseId}
        protectionPolicyId: ${testProtectionPolicy.id}
        recoveryServiceSubnetId: ${testRecoveryServiceSubnet.id}
        state: ${protectedDatabaseState}
Copy

Using getProtectedDatabases

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 getProtectedDatabases(args: GetProtectedDatabasesArgs, opts?: InvokeOptions): Promise<GetProtectedDatabasesResult>
function getProtectedDatabasesOutput(args: GetProtectedDatabasesOutputArgs, opts?: InvokeOptions): Output<GetProtectedDatabasesResult>
Copy
def get_protected_databases(compartment_id: Optional[str] = None,
                            display_name: Optional[str] = None,
                            filters: Optional[Sequence[_recoverymod.GetProtectedDatabasesFilter]] = None,
                            id: Optional[str] = None,
                            protection_policy_id: Optional[str] = None,
                            recovery_service_subnet_id: Optional[str] = None,
                            state: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetProtectedDatabasesResult
def get_protected_databases_output(compartment_id: Optional[pulumi.Input[str]] = None,
                            display_name: Optional[pulumi.Input[str]] = None,
                            filters: Optional[pulumi.Input[Sequence[pulumi.Input[_recoverymod.GetProtectedDatabasesFilterArgs]]]] = None,
                            id: Optional[pulumi.Input[str]] = None,
                            protection_policy_id: Optional[pulumi.Input[str]] = None,
                            recovery_service_subnet_id: Optional[pulumi.Input[str]] = None,
                            state: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetProtectedDatabasesResult]
Copy
func GetProtectedDatabases(ctx *Context, args *GetProtectedDatabasesArgs, opts ...InvokeOption) (*GetProtectedDatabasesResult, error)
func GetProtectedDatabasesOutput(ctx *Context, args *GetProtectedDatabasesOutputArgs, opts ...InvokeOption) GetProtectedDatabasesResultOutput
Copy

> Note: This function is named GetProtectedDatabases in the Go SDK.

public static class GetProtectedDatabases 
{
    public static Task<GetProtectedDatabasesResult> InvokeAsync(GetProtectedDatabasesArgs args, InvokeOptions? opts = null)
    public static Output<GetProtectedDatabasesResult> Invoke(GetProtectedDatabasesInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetProtectedDatabasesResult> getProtectedDatabases(GetProtectedDatabasesArgs args, InvokeOptions options)
public static Output<GetProtectedDatabasesResult> getProtectedDatabases(GetProtectedDatabasesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:RecoveryMod/getProtectedDatabases:getProtectedDatabases
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

CompartmentId This property is required. string
The compartment OCID.
DisplayName string
A filter to return only resources that match the entire 'displayname' given.
Filters Changes to this property will trigger replacement. List<GetProtectedDatabasesFilter>
Id string
The protected database OCID.
ProtectionPolicyId string
The protection policy OCID.
RecoveryServiceSubnetId string
The recovery service subnet OCID.
State string
A filter to return only the resources that match the specified lifecycle state.
CompartmentId This property is required. string
The compartment OCID.
DisplayName string
A filter to return only resources that match the entire 'displayname' given.
Filters Changes to this property will trigger replacement. []GetProtectedDatabasesFilter
Id string
The protected database OCID.
ProtectionPolicyId string
The protection policy OCID.
RecoveryServiceSubnetId string
The recovery service subnet OCID.
State string
A filter to return only the resources that match the specified lifecycle state.
compartmentId This property is required. String
The compartment OCID.
displayName String
A filter to return only resources that match the entire 'displayname' given.
filters Changes to this property will trigger replacement. List<GetProtectedDatabasesFilter>
id String
The protected database OCID.
protectionPolicyId String
The protection policy OCID.
recoveryServiceSubnetId String
The recovery service subnet OCID.
state String
A filter to return only the resources that match the specified lifecycle state.
compartmentId This property is required. string
The compartment OCID.
displayName string
A filter to return only resources that match the entire 'displayname' given.
filters Changes to this property will trigger replacement. GetProtectedDatabasesFilter[]
id string
The protected database OCID.
protectionPolicyId string
The protection policy OCID.
recoveryServiceSubnetId string
The recovery service subnet OCID.
state string
A filter to return only the resources that match the specified lifecycle state.
compartment_id This property is required. str
The compartment OCID.
display_name str
A filter to return only resources that match the entire 'displayname' given.
filters Changes to this property will trigger replacement. Sequence[recoverymod.GetProtectedDatabasesFilter]
id str
The protected database OCID.
protection_policy_id str
The protection policy OCID.
recovery_service_subnet_id str
The recovery service subnet OCID.
state str
A filter to return only the resources that match the specified lifecycle state.
compartmentId This property is required. String
The compartment OCID.
displayName String
A filter to return only resources that match the entire 'displayname' given.
filters Changes to this property will trigger replacement. List<Property Map>
id String
The protected database OCID.
protectionPolicyId String
The protection policy OCID.
recoveryServiceSubnetId String
The recovery service subnet OCID.
state String
A filter to return only the resources that match the specified lifecycle state.

getProtectedDatabases Result

The following output properties are available:

CompartmentId string
The OCID of the compartment that contains the protected database.
ProtectedDatabaseCollections List<GetProtectedDatabasesProtectedDatabaseCollection>
The list of protected_database_collection.
DisplayName string
The protected database name. You can change the displayName. Avoid entering confidential information.
Filters List<GetProtectedDatabasesFilter>
Id string
The OCID of the protected database.
ProtectionPolicyId string
The OCID of the protection policy associated with the protected database.
RecoveryServiceSubnetId string
Recovery Service Subnet Identifier.
State string
The current state of the Protected Database.
CompartmentId string
The OCID of the compartment that contains the protected database.
ProtectedDatabaseCollections []GetProtectedDatabasesProtectedDatabaseCollection
The list of protected_database_collection.
DisplayName string
The protected database name. You can change the displayName. Avoid entering confidential information.
Filters []GetProtectedDatabasesFilter
Id string
The OCID of the protected database.
ProtectionPolicyId string
The OCID of the protection policy associated with the protected database.
RecoveryServiceSubnetId string
Recovery Service Subnet Identifier.
State string
The current state of the Protected Database.
compartmentId String
The OCID of the compartment that contains the protected database.
protectedDatabaseCollections List<GetProtectedDatabasesProtectedDatabaseCollection>
The list of protected_database_collection.
displayName String
The protected database name. You can change the displayName. Avoid entering confidential information.
filters List<GetProtectedDatabasesFilter>
id String
The OCID of the protected database.
protectionPolicyId String
The OCID of the protection policy associated with the protected database.
recoveryServiceSubnetId String
Recovery Service Subnet Identifier.
state String
The current state of the Protected Database.
compartmentId string
The OCID of the compartment that contains the protected database.
protectedDatabaseCollections GetProtectedDatabasesProtectedDatabaseCollection[]
The list of protected_database_collection.
displayName string
The protected database name. You can change the displayName. Avoid entering confidential information.
filters GetProtectedDatabasesFilter[]
id string
The OCID of the protected database.
protectionPolicyId string
The OCID of the protection policy associated with the protected database.
recoveryServiceSubnetId string
Recovery Service Subnet Identifier.
state string
The current state of the Protected Database.
compartment_id str
The OCID of the compartment that contains the protected database.
protected_database_collections Sequence[recoverymod.GetProtectedDatabasesProtectedDatabaseCollection]
The list of protected_database_collection.
display_name str
The protected database name. You can change the displayName. Avoid entering confidential information.
filters Sequence[recoverymod.GetProtectedDatabasesFilter]
id str
The OCID of the protected database.
protection_policy_id str
The OCID of the protection policy associated with the protected database.
recovery_service_subnet_id str
Recovery Service Subnet Identifier.
state str
The current state of the Protected Database.
compartmentId String
The OCID of the compartment that contains the protected database.
protectedDatabaseCollections List<Property Map>
The list of protected_database_collection.
displayName String
The protected database name. You can change the displayName. Avoid entering confidential information.
filters List<Property Map>
id String
The OCID of the protected database.
protectionPolicyId String
The OCID of the protection policy associated with the protected database.
recoveryServiceSubnetId String
Recovery Service Subnet Identifier.
state String
The current state of the Protected Database.

Supporting Types

GetProtectedDatabasesFilter

Name This property is required. string
Values This property is required. List<string>
Regex bool
Name This property is required. string
Values This property is required. []string
Regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean
name This property is required. string
values This property is required. string[]
regex boolean
name This property is required. str
values This property is required. Sequence[str]
regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean

GetProtectedDatabasesProtectedDatabaseCollection

items This property is required. List<Property Map>

GetProtectedDatabasesProtectedDatabaseCollectionItem

CompartmentId This property is required. string
The compartment OCID.
DatabaseId This property is required. string
The OCID of the protected database.
DatabaseSize This property is required. string
The size of the protected database. XS - Less than 5GB, S - 5GB to 50GB, M - 50GB to 500GB, L - 500GB to 1TB, XL - 1TB to 5TB, XXL - Greater than 5TB.
DbUniqueName This property is required. string
The dbUniqueName for the protected database in Recovery Service. You cannot change the unique name.
DefinedTags This property is required. Dictionary<string, string>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}. For more information, see Resource Tags
DeletionSchedule This property is required. string
DisplayName This property is required. string
A filter to return only resources that match the entire 'displayname' given.
FreeformTags This property is required. Dictionary<string, string>
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
Health This property is required. string
Indicates the protection status of the database.
HealthDetails This property is required. string
A message describing the current health of the protected database.
Id This property is required. string
The protected database OCID.
IsReadOnlyResource This property is required. bool
Indicates whether the protected database is created by Recovery Service or created manually. Set to TRUE for a service-defined protected database. When you enable the OCI-managed automatic backups option for a database and set Recovery Service as the backup destination, then Recovery Service creates the associated protected database resource. Set to FALSE for a user-defined protected database.
IsRedoLogsShipped This property is required. bool
The value TRUE indicates that the protected database is configured to use Real-time data protection, and redo-data is sent from the protected database to Recovery Service. Real-time data protection substantially reduces the window of potential data loss that exists between successive archived redo log backups. For this to be effective, additional configuration is needed on client side.
LifecycleDetails This property is required. string
Detailed description about the current lifecycle state of the protected database. For example, it can be used to provide actionable information for a resource in a Failed state.
Metrics This property is required. List<GetProtectedDatabasesProtectedDatabaseCollectionItemMetric>
Backup performance and storage utilization metrics for the protected database.
Password This property is required. string
PolicyLockedDateTime This property is required. string
An RFC3339 formatted datetime string that specifies the exact date and time for the retention lock to take effect and permanently lock the retention period defined in the policy.
ProtectionPolicyId This property is required. string
The protection policy OCID.
RecoveryServiceSubnets This property is required. List<GetProtectedDatabasesProtectedDatabaseCollectionItemRecoveryServiceSubnet>
List of recovery service subnet resources associated with the protected database.
State This property is required. string
A filter to return only the resources that match the specified lifecycle state.
SubscriptionId This property is required. string
The OCID of the cloud service subscription to which the protected database is linked.
SystemTags This property is required. Dictionary<string, string>
Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}. For more information, see Resource Tags
TimeCreated This property is required. string
An RFC3339 formatted datetime string that indicates the created time for a protected database. For example: '2020-05-22T21:10:29.600Z'
TimeUpdated This property is required. string
An RFC3339 formatted datetime string that indicates the last updated time for a protected database. For example: '2020-05-22T21:10:29.600Z'
VpcUserName This property is required. string
The virtual private catalog (VPC) user credentials that authenticates the protected database to access Recovery Service.
CompartmentId This property is required. string
The compartment OCID.
DatabaseId This property is required. string
The OCID of the protected database.
DatabaseSize This property is required. string
The size of the protected database. XS - Less than 5GB, S - 5GB to 50GB, M - 50GB to 500GB, L - 500GB to 1TB, XL - 1TB to 5TB, XXL - Greater than 5TB.
DbUniqueName This property is required. string
The dbUniqueName for the protected database in Recovery Service. You cannot change the unique name.
DefinedTags This property is required. map[string]string
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}. For more information, see Resource Tags
DeletionSchedule This property is required. string
DisplayName This property is required. string
A filter to return only resources that match the entire 'displayname' given.
FreeformTags This property is required. map[string]string
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
Health This property is required. string
Indicates the protection status of the database.
HealthDetails This property is required. string
A message describing the current health of the protected database.
Id This property is required. string
The protected database OCID.
IsReadOnlyResource This property is required. bool
Indicates whether the protected database is created by Recovery Service or created manually. Set to TRUE for a service-defined protected database. When you enable the OCI-managed automatic backups option for a database and set Recovery Service as the backup destination, then Recovery Service creates the associated protected database resource. Set to FALSE for a user-defined protected database.
IsRedoLogsShipped This property is required. bool
The value TRUE indicates that the protected database is configured to use Real-time data protection, and redo-data is sent from the protected database to Recovery Service. Real-time data protection substantially reduces the window of potential data loss that exists between successive archived redo log backups. For this to be effective, additional configuration is needed on client side.
LifecycleDetails This property is required. string
Detailed description about the current lifecycle state of the protected database. For example, it can be used to provide actionable information for a resource in a Failed state.
Metrics This property is required. []GetProtectedDatabasesProtectedDatabaseCollectionItemMetric
Backup performance and storage utilization metrics for the protected database.
Password This property is required. string
PolicyLockedDateTime This property is required. string
An RFC3339 formatted datetime string that specifies the exact date and time for the retention lock to take effect and permanently lock the retention period defined in the policy.
ProtectionPolicyId This property is required. string
The protection policy OCID.
RecoveryServiceSubnets This property is required. []GetProtectedDatabasesProtectedDatabaseCollectionItemRecoveryServiceSubnet
List of recovery service subnet resources associated with the protected database.
State This property is required. string
A filter to return only the resources that match the specified lifecycle state.
SubscriptionId This property is required. string
The OCID of the cloud service subscription to which the protected database is linked.
SystemTags This property is required. map[string]string
Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}. For more information, see Resource Tags
TimeCreated This property is required. string
An RFC3339 formatted datetime string that indicates the created time for a protected database. For example: '2020-05-22T21:10:29.600Z'
TimeUpdated This property is required. string
An RFC3339 formatted datetime string that indicates the last updated time for a protected database. For example: '2020-05-22T21:10:29.600Z'
VpcUserName This property is required. string
The virtual private catalog (VPC) user credentials that authenticates the protected database to access Recovery Service.
compartmentId This property is required. String
The compartment OCID.
databaseId This property is required. String
The OCID of the protected database.
databaseSize This property is required. String
The size of the protected database. XS - Less than 5GB, S - 5GB to 50GB, M - 50GB to 500GB, L - 500GB to 1TB, XL - 1TB to 5TB, XXL - Greater than 5TB.
dbUniqueName This property is required. String
The dbUniqueName for the protected database in Recovery Service. You cannot change the unique name.
definedTags This property is required. Map<String,String>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}. For more information, see Resource Tags
deletionSchedule This property is required. String
displayName This property is required. String
A filter to return only resources that match the entire 'displayname' given.
freeformTags This property is required. Map<String,String>
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
health This property is required. String
Indicates the protection status of the database.
healthDetails This property is required. String
A message describing the current health of the protected database.
id This property is required. String
The protected database OCID.
isReadOnlyResource This property is required. Boolean
Indicates whether the protected database is created by Recovery Service or created manually. Set to TRUE for a service-defined protected database. When you enable the OCI-managed automatic backups option for a database and set Recovery Service as the backup destination, then Recovery Service creates the associated protected database resource. Set to FALSE for a user-defined protected database.
isRedoLogsShipped This property is required. Boolean
The value TRUE indicates that the protected database is configured to use Real-time data protection, and redo-data is sent from the protected database to Recovery Service. Real-time data protection substantially reduces the window of potential data loss that exists between successive archived redo log backups. For this to be effective, additional configuration is needed on client side.
lifecycleDetails This property is required. String
Detailed description about the current lifecycle state of the protected database. For example, it can be used to provide actionable information for a resource in a Failed state.
metrics This property is required. List<GetProtectedDatabasesProtectedDatabaseCollectionItemMetric>
Backup performance and storage utilization metrics for the protected database.
password This property is required. String
policyLockedDateTime This property is required. String
An RFC3339 formatted datetime string that specifies the exact date and time for the retention lock to take effect and permanently lock the retention period defined in the policy.
protectionPolicyId This property is required. String
The protection policy OCID.
recoveryServiceSubnets This property is required. List<GetProtectedDatabasesProtectedDatabaseCollectionItemRecoveryServiceSubnet>
List of recovery service subnet resources associated with the protected database.
state This property is required. String
A filter to return only the resources that match the specified lifecycle state.
subscriptionId This property is required. String
The OCID of the cloud service subscription to which the protected database is linked.
systemTags This property is required. Map<String,String>
Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}. For more information, see Resource Tags
timeCreated This property is required. String
An RFC3339 formatted datetime string that indicates the created time for a protected database. For example: '2020-05-22T21:10:29.600Z'
timeUpdated This property is required. String
An RFC3339 formatted datetime string that indicates the last updated time for a protected database. For example: '2020-05-22T21:10:29.600Z'
vpcUserName This property is required. String
The virtual private catalog (VPC) user credentials that authenticates the protected database to access Recovery Service.
compartmentId This property is required. string
The compartment OCID.
databaseId This property is required. string
The OCID of the protected database.
databaseSize This property is required. string
The size of the protected database. XS - Less than 5GB, S - 5GB to 50GB, M - 50GB to 500GB, L - 500GB to 1TB, XL - 1TB to 5TB, XXL - Greater than 5TB.
dbUniqueName This property is required. string
The dbUniqueName for the protected database in Recovery Service. You cannot change the unique name.
definedTags This property is required. {[key: string]: string}
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}. For more information, see Resource Tags
deletionSchedule This property is required. string
displayName This property is required. string
A filter to return only resources that match the entire 'displayname' given.
freeformTags This property is required. {[key: string]: string}
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
health This property is required. string
Indicates the protection status of the database.
healthDetails This property is required. string
A message describing the current health of the protected database.
id This property is required. string
The protected database OCID.
isReadOnlyResource This property is required. boolean
Indicates whether the protected database is created by Recovery Service or created manually. Set to TRUE for a service-defined protected database. When you enable the OCI-managed automatic backups option for a database and set Recovery Service as the backup destination, then Recovery Service creates the associated protected database resource. Set to FALSE for a user-defined protected database.
isRedoLogsShipped This property is required. boolean
The value TRUE indicates that the protected database is configured to use Real-time data protection, and redo-data is sent from the protected database to Recovery Service. Real-time data protection substantially reduces the window of potential data loss that exists between successive archived redo log backups. For this to be effective, additional configuration is needed on client side.
lifecycleDetails This property is required. string
Detailed description about the current lifecycle state of the protected database. For example, it can be used to provide actionable information for a resource in a Failed state.
metrics This property is required. GetProtectedDatabasesProtectedDatabaseCollectionItemMetric[]
Backup performance and storage utilization metrics for the protected database.
password This property is required. string
policyLockedDateTime This property is required. string
An RFC3339 formatted datetime string that specifies the exact date and time for the retention lock to take effect and permanently lock the retention period defined in the policy.
protectionPolicyId This property is required. string
The protection policy OCID.
recoveryServiceSubnets This property is required. GetProtectedDatabasesProtectedDatabaseCollectionItemRecoveryServiceSubnet[]
List of recovery service subnet resources associated with the protected database.
state This property is required. string
A filter to return only the resources that match the specified lifecycle state.
subscriptionId This property is required. string
The OCID of the cloud service subscription to which the protected database is linked.
systemTags This property is required. {[key: string]: string}
Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}. For more information, see Resource Tags
timeCreated This property is required. string
An RFC3339 formatted datetime string that indicates the created time for a protected database. For example: '2020-05-22T21:10:29.600Z'
timeUpdated This property is required. string
An RFC3339 formatted datetime string that indicates the last updated time for a protected database. For example: '2020-05-22T21:10:29.600Z'
vpcUserName This property is required. string
The virtual private catalog (VPC) user credentials that authenticates the protected database to access Recovery Service.
compartment_id This property is required. str
The compartment OCID.
database_id This property is required. str
The OCID of the protected database.
database_size This property is required. str
The size of the protected database. XS - Less than 5GB, S - 5GB to 50GB, M - 50GB to 500GB, L - 500GB to 1TB, XL - 1TB to 5TB, XXL - Greater than 5TB.
db_unique_name This property is required. str
The dbUniqueName for the protected database in Recovery Service. You cannot change the unique name.
defined_tags This property is required. Mapping[str, str]
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}. For more information, see Resource Tags
deletion_schedule This property is required. str
display_name This property is required. str
A filter to return only resources that match the entire 'displayname' given.
freeform_tags This property is required. Mapping[str, str]
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
health This property is required. str
Indicates the protection status of the database.
health_details This property is required. str
A message describing the current health of the protected database.
id This property is required. str
The protected database OCID.
is_read_only_resource This property is required. bool
Indicates whether the protected database is created by Recovery Service or created manually. Set to TRUE for a service-defined protected database. When you enable the OCI-managed automatic backups option for a database and set Recovery Service as the backup destination, then Recovery Service creates the associated protected database resource. Set to FALSE for a user-defined protected database.
is_redo_logs_shipped This property is required. bool
The value TRUE indicates that the protected database is configured to use Real-time data protection, and redo-data is sent from the protected database to Recovery Service. Real-time data protection substantially reduces the window of potential data loss that exists between successive archived redo log backups. For this to be effective, additional configuration is needed on client side.
lifecycle_details This property is required. str
Detailed description about the current lifecycle state of the protected database. For example, it can be used to provide actionable information for a resource in a Failed state.
metrics This property is required. Sequence[recoverymod.GetProtectedDatabasesProtectedDatabaseCollectionItemMetric]
Backup performance and storage utilization metrics for the protected database.
password This property is required. str
policy_locked_date_time This property is required. str
An RFC3339 formatted datetime string that specifies the exact date and time for the retention lock to take effect and permanently lock the retention period defined in the policy.
protection_policy_id This property is required. str
The protection policy OCID.
recovery_service_subnets This property is required. Sequence[recoverymod.GetProtectedDatabasesProtectedDatabaseCollectionItemRecoveryServiceSubnet]
List of recovery service subnet resources associated with the protected database.
state This property is required. str
A filter to return only the resources that match the specified lifecycle state.
subscription_id This property is required. str
The OCID of the cloud service subscription to which the protected database is linked.
system_tags This property is required. Mapping[str, str]
Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}. For more information, see Resource Tags
time_created This property is required. str
An RFC3339 formatted datetime string that indicates the created time for a protected database. For example: '2020-05-22T21:10:29.600Z'
time_updated This property is required. str
An RFC3339 formatted datetime string that indicates the last updated time for a protected database. For example: '2020-05-22T21:10:29.600Z'
vpc_user_name This property is required. str
The virtual private catalog (VPC) user credentials that authenticates the protected database to access Recovery Service.
compartmentId This property is required. String
The compartment OCID.
databaseId This property is required. String
The OCID of the protected database.
databaseSize This property is required. String
The size of the protected database. XS - Less than 5GB, S - 5GB to 50GB, M - 50GB to 500GB, L - 500GB to 1TB, XL - 1TB to 5TB, XXL - Greater than 5TB.
dbUniqueName This property is required. String
The dbUniqueName for the protected database in Recovery Service. You cannot change the unique name.
definedTags This property is required. Map<String>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}. For more information, see Resource Tags
deletionSchedule This property is required. String
displayName This property is required. String
A filter to return only resources that match the entire 'displayname' given.
freeformTags This property is required. Map<String>
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
health This property is required. String
Indicates the protection status of the database.
healthDetails This property is required. String
A message describing the current health of the protected database.
id This property is required. String
The protected database OCID.
isReadOnlyResource This property is required. Boolean
Indicates whether the protected database is created by Recovery Service or created manually. Set to TRUE for a service-defined protected database. When you enable the OCI-managed automatic backups option for a database and set Recovery Service as the backup destination, then Recovery Service creates the associated protected database resource. Set to FALSE for a user-defined protected database.
isRedoLogsShipped This property is required. Boolean
The value TRUE indicates that the protected database is configured to use Real-time data protection, and redo-data is sent from the protected database to Recovery Service. Real-time data protection substantially reduces the window of potential data loss that exists between successive archived redo log backups. For this to be effective, additional configuration is needed on client side.
lifecycleDetails This property is required. String
Detailed description about the current lifecycle state of the protected database. For example, it can be used to provide actionable information for a resource in a Failed state.
metrics This property is required. List<Property Map>
Backup performance and storage utilization metrics for the protected database.
password This property is required. String
policyLockedDateTime This property is required. String
An RFC3339 formatted datetime string that specifies the exact date and time for the retention lock to take effect and permanently lock the retention period defined in the policy.
protectionPolicyId This property is required. String
The protection policy OCID.
recoveryServiceSubnets This property is required. List<Property Map>
List of recovery service subnet resources associated with the protected database.
state This property is required. String
A filter to return only the resources that match the specified lifecycle state.
subscriptionId This property is required. String
The OCID of the cloud service subscription to which the protected database is linked.
systemTags This property is required. Map<String>
Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}. For more information, see Resource Tags
timeCreated This property is required. String
An RFC3339 formatted datetime string that indicates the created time for a protected database. For example: '2020-05-22T21:10:29.600Z'
timeUpdated This property is required. String
An RFC3339 formatted datetime string that indicates the last updated time for a protected database. For example: '2020-05-22T21:10:29.600Z'
vpcUserName This property is required. String
The virtual private catalog (VPC) user credentials that authenticates the protected database to access Recovery Service.

GetProtectedDatabasesProtectedDatabaseCollectionItemMetric

BackupSpaceEstimateInGbs This property is required. double
The estimated backup storage space, in gigabytes, required to meet the recovery window goal, including foot print and backups for the protected database.
BackupSpaceUsedInGbs This property is required. double
Backup storage space, in gigabytes, utilized by the protected database. Oracle charges for the total storage used.
CurrentRetentionPeriodInSeconds This property is required. double
Number of seconds backups are currently retained for this database.
DbSizeInGbs This property is required. double
The estimated space, in gigabytes, consumed by the protected database. The database size is based on the size of the data files in the catalog, and does not include archive logs.
IsRedoLogsEnabled This property is required. bool
The value TRUE indicates that the protected database is configured to use Real-time data protection, and redo-data is sent from the protected database to Recovery Service. Real-time data protection substantially reduces the window of potential data loss that exists between successive archived redo log backups.
MinimumRecoveryNeededInDays This property is required. double
Number of days of redo/archive to be applied to recover database.
RetentionPeriodInDays This property is required. double
The maximum number of days to retain backups for a protected database.
UnprotectedWindowInSeconds This property is required. double
This is the time window when there is data loss exposure. The point after which recovery is impossible unless additional redo is available. This is the time we received the last backup or last redo-log shipped.
BackupSpaceEstimateInGbs This property is required. float64
The estimated backup storage space, in gigabytes, required to meet the recovery window goal, including foot print and backups for the protected database.
BackupSpaceUsedInGbs This property is required. float64
Backup storage space, in gigabytes, utilized by the protected database. Oracle charges for the total storage used.
CurrentRetentionPeriodInSeconds This property is required. float64
Number of seconds backups are currently retained for this database.
DbSizeInGbs This property is required. float64
The estimated space, in gigabytes, consumed by the protected database. The database size is based on the size of the data files in the catalog, and does not include archive logs.
IsRedoLogsEnabled This property is required. bool
The value TRUE indicates that the protected database is configured to use Real-time data protection, and redo-data is sent from the protected database to Recovery Service. Real-time data protection substantially reduces the window of potential data loss that exists between successive archived redo log backups.
MinimumRecoveryNeededInDays This property is required. float64
Number of days of redo/archive to be applied to recover database.
RetentionPeriodInDays This property is required. float64
The maximum number of days to retain backups for a protected database.
UnprotectedWindowInSeconds This property is required. float64
This is the time window when there is data loss exposure. The point after which recovery is impossible unless additional redo is available. This is the time we received the last backup or last redo-log shipped.
backupSpaceEstimateInGbs This property is required. Double
The estimated backup storage space, in gigabytes, required to meet the recovery window goal, including foot print and backups for the protected database.
backupSpaceUsedInGbs This property is required. Double
Backup storage space, in gigabytes, utilized by the protected database. Oracle charges for the total storage used.
currentRetentionPeriodInSeconds This property is required. Double
Number of seconds backups are currently retained for this database.
dbSizeInGbs This property is required. Double
The estimated space, in gigabytes, consumed by the protected database. The database size is based on the size of the data files in the catalog, and does not include archive logs.
isRedoLogsEnabled This property is required. Boolean
The value TRUE indicates that the protected database is configured to use Real-time data protection, and redo-data is sent from the protected database to Recovery Service. Real-time data protection substantially reduces the window of potential data loss that exists between successive archived redo log backups.
minimumRecoveryNeededInDays This property is required. Double
Number of days of redo/archive to be applied to recover database.
retentionPeriodInDays This property is required. Double
The maximum number of days to retain backups for a protected database.
unprotectedWindowInSeconds This property is required. Double
This is the time window when there is data loss exposure. The point after which recovery is impossible unless additional redo is available. This is the time we received the last backup or last redo-log shipped.
backupSpaceEstimateInGbs This property is required. number
The estimated backup storage space, in gigabytes, required to meet the recovery window goal, including foot print and backups for the protected database.
backupSpaceUsedInGbs This property is required. number
Backup storage space, in gigabytes, utilized by the protected database. Oracle charges for the total storage used.
currentRetentionPeriodInSeconds This property is required. number
Number of seconds backups are currently retained for this database.
dbSizeInGbs This property is required. number
The estimated space, in gigabytes, consumed by the protected database. The database size is based on the size of the data files in the catalog, and does not include archive logs.
isRedoLogsEnabled This property is required. boolean
The value TRUE indicates that the protected database is configured to use Real-time data protection, and redo-data is sent from the protected database to Recovery Service. Real-time data protection substantially reduces the window of potential data loss that exists between successive archived redo log backups.
minimumRecoveryNeededInDays This property is required. number
Number of days of redo/archive to be applied to recover database.
retentionPeriodInDays This property is required. number
The maximum number of days to retain backups for a protected database.
unprotectedWindowInSeconds This property is required. number
This is the time window when there is data loss exposure. The point after which recovery is impossible unless additional redo is available. This is the time we received the last backup or last redo-log shipped.
backup_space_estimate_in_gbs This property is required. float
The estimated backup storage space, in gigabytes, required to meet the recovery window goal, including foot print and backups for the protected database.
backup_space_used_in_gbs This property is required. float
Backup storage space, in gigabytes, utilized by the protected database. Oracle charges for the total storage used.
current_retention_period_in_seconds This property is required. float
Number of seconds backups are currently retained for this database.
db_size_in_gbs This property is required. float
The estimated space, in gigabytes, consumed by the protected database. The database size is based on the size of the data files in the catalog, and does not include archive logs.
is_redo_logs_enabled This property is required. bool
The value TRUE indicates that the protected database is configured to use Real-time data protection, and redo-data is sent from the protected database to Recovery Service. Real-time data protection substantially reduces the window of potential data loss that exists between successive archived redo log backups.
minimum_recovery_needed_in_days This property is required. float
Number of days of redo/archive to be applied to recover database.
retention_period_in_days This property is required. float
The maximum number of days to retain backups for a protected database.
unprotected_window_in_seconds This property is required. float
This is the time window when there is data loss exposure. The point after which recovery is impossible unless additional redo is available. This is the time we received the last backup or last redo-log shipped.
backupSpaceEstimateInGbs This property is required. Number
The estimated backup storage space, in gigabytes, required to meet the recovery window goal, including foot print and backups for the protected database.
backupSpaceUsedInGbs This property is required. Number
Backup storage space, in gigabytes, utilized by the protected database. Oracle charges for the total storage used.
currentRetentionPeriodInSeconds This property is required. Number
Number of seconds backups are currently retained for this database.
dbSizeInGbs This property is required. Number
The estimated space, in gigabytes, consumed by the protected database. The database size is based on the size of the data files in the catalog, and does not include archive logs.
isRedoLogsEnabled This property is required. Boolean
The value TRUE indicates that the protected database is configured to use Real-time data protection, and redo-data is sent from the protected database to Recovery Service. Real-time data protection substantially reduces the window of potential data loss that exists between successive archived redo log backups.
minimumRecoveryNeededInDays This property is required. Number
Number of days of redo/archive to be applied to recover database.
retentionPeriodInDays This property is required. Number
The maximum number of days to retain backups for a protected database.
unprotectedWindowInSeconds This property is required. Number
This is the time window when there is data loss exposure. The point after which recovery is impossible unless additional redo is available. This is the time we received the last backup or last redo-log shipped.

GetProtectedDatabasesProtectedDatabaseCollectionItemRecoveryServiceSubnet

RecoveryServiceSubnetId This property is required. string
The recovery service subnet OCID.
State This property is required. string
A filter to return only the resources that match the specified lifecycle state.
RecoveryServiceSubnetId This property is required. string
The recovery service subnet OCID.
State This property is required. string
A filter to return only the resources that match the specified lifecycle state.
recoveryServiceSubnetId This property is required. String
The recovery service subnet OCID.
state This property is required. String
A filter to return only the resources that match the specified lifecycle state.
recoveryServiceSubnetId This property is required. string
The recovery service subnet OCID.
state This property is required. string
A filter to return only the resources that match the specified lifecycle state.
recovery_service_subnet_id This property is required. str
The recovery service subnet OCID.
state This property is required. str
A filter to return only the resources that match the specified lifecycle state.
recoveryServiceSubnetId This property is required. String
The recovery service subnet OCID.
state This property is required. String
A filter to return only the resources that match the specified lifecycle state.

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes
This Pulumi package is based on the oci Terraform Provider.
Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi