Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.RecoveryMod.getProtectedDatabases
Explore with Pulumi AI
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,
});
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)
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
	})
}
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,
    });
});
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());
    }
}
variables:
  testProtectedDatabases:
    fn::invoke:
      function: oci:RecoveryMod:getProtectedDatabases
      arguments:
        compartmentId: ${compartmentId}
        displayName: ${protectedDatabaseDisplayName}
        id: ${protectedDatabaseId}
        protectionPolicyId: ${testProtectionPolicy.id}
        recoveryServiceSubnetId: ${testRecoveryServiceSubnet.id}
        state: ${protectedDatabaseState}
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>def get_protected_databases(compartment_id: Optional[str] = None,
                            display_name: Optional[str] = None,
                            filters: Optional[Sequence[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[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]func GetProtectedDatabases(ctx *Context, args *GetProtectedDatabasesArgs, opts ...InvokeOption) (*GetProtectedDatabasesResult, error)
func GetProtectedDatabasesOutput(ctx *Context, args *GetProtectedDatabasesOutputArgs, opts ...InvokeOption) GetProtectedDatabasesResultOutput> 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)
}public static CompletableFuture<GetProtectedDatabasesResult> getProtectedDatabases(GetProtectedDatabasesArgs args, InvokeOptions options)
public static Output<GetProtectedDatabasesResult> getProtectedDatabases(GetProtectedDatabasesArgs args, InvokeOptions options)
fn::invoke:
  function: oci:RecoveryMod/getProtectedDatabases:getProtectedDatabases
  arguments:
    # arguments dictionaryThe following arguments are supported:
- CompartmentId string
- The compartment OCID.
- DisplayName string
- A filter to return only resources that match the entire 'displayname' given.
- Filters
List<GetProtected Databases Filter> 
- Id string
- The protected database OCID.
- ProtectionPolicy stringId 
- The protection policy OCID.
- RecoveryService stringSubnet Id 
- The recovery service subnet OCID.
- State string
- A filter to return only the resources that match the specified lifecycle state.
- CompartmentId string
- The compartment OCID.
- DisplayName string
- A filter to return only resources that match the entire 'displayname' given.
- Filters
[]GetProtected Databases Filter 
- Id string
- The protected database OCID.
- ProtectionPolicy stringId 
- The protection policy OCID.
- RecoveryService stringSubnet Id 
- The recovery service subnet OCID.
- State string
- A filter to return only the resources that match the specified lifecycle state.
- compartmentId String
- The compartment OCID.
- displayName String
- A filter to return only resources that match the entire 'displayname' given.
- filters
List<GetProtected Databases Filter> 
- id String
- The protected database OCID.
- protectionPolicy StringId 
- The protection policy OCID.
- recoveryService StringSubnet Id 
- The recovery service subnet OCID.
- state String
- A filter to return only the resources that match the specified lifecycle state.
- compartmentId string
- The compartment OCID.
- displayName string
- A filter to return only resources that match the entire 'displayname' given.
- filters
GetProtected Databases Filter[] 
- id string
- The protected database OCID.
- protectionPolicy stringId 
- The protection policy OCID.
- recoveryService stringSubnet Id 
- The recovery service subnet OCID.
- state string
- A filter to return only the resources that match the specified lifecycle state.
- compartment_id str
- The compartment OCID.
- display_name str
- A filter to return only resources that match the entire 'displayname' given.
- filters
Sequence[GetProtected Databases Filter] 
- id str
- The protected database OCID.
- protection_policy_ strid 
- The protection policy OCID.
- recovery_service_ strsubnet_ id 
- The recovery service subnet OCID.
- state str
- A filter to return only the resources that match the specified lifecycle state.
- compartmentId String
- The compartment OCID.
- displayName String
- A filter to return only resources that match the entire 'displayname' given.
- filters List<Property Map>
- id String
- The protected database OCID.
- protectionPolicy StringId 
- The protection policy OCID.
- recoveryService StringSubnet Id 
- 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.
- ProtectedDatabase List<GetCollections Protected Databases Protected Database Collection> 
- The list of protected_database_collection.
- DisplayName string
- The protected database name. You can change the displayName. Avoid entering confidential information.
- Filters
List<GetProtected Databases Filter> 
- Id string
- The OCID of the protected database.
- ProtectionPolicy stringId 
- The OCID of the protection policy associated with the protected database.
- RecoveryService stringSubnet Id 
- 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.
- ProtectedDatabase []GetCollections Protected Databases Protected Database Collection 
- The list of protected_database_collection.
- DisplayName string
- The protected database name. You can change the displayName. Avoid entering confidential information.
- Filters
[]GetProtected Databases Filter 
- Id string
- The OCID of the protected database.
- ProtectionPolicy stringId 
- The OCID of the protection policy associated with the protected database.
- RecoveryService stringSubnet Id 
- 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.
- protectedDatabase List<GetCollections Protected Databases Protected Database Collection> 
- The list of protected_database_collection.
- displayName String
- The protected database name. You can change the displayName. Avoid entering confidential information.
- filters
List<GetProtected Databases Filter> 
- id String
- The OCID of the protected database.
- protectionPolicy StringId 
- The OCID of the protection policy associated with the protected database.
- recoveryService StringSubnet Id 
- 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.
- protectedDatabase GetCollections Protected Databases Protected Database Collection[] 
- The list of protected_database_collection.
- displayName string
- The protected database name. You can change the displayName. Avoid entering confidential information.
- filters
GetProtected Databases Filter[] 
- id string
- The OCID of the protected database.
- protectionPolicy stringId 
- The OCID of the protection policy associated with the protected database.
- recoveryService stringSubnet Id 
- 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_ Sequence[Getcollections Protected Databases Protected Database Collection] 
- The list of protected_database_collection.
- display_name str
- The protected database name. You can change the displayName. Avoid entering confidential information.
- filters
Sequence[GetProtected Databases Filter] 
- id str
- The OCID of the protected database.
- protection_policy_ strid 
- The OCID of the protection policy associated with the protected database.
- recovery_service_ strsubnet_ id 
- 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.
- protectedDatabase List<Property Map>Collections 
- 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.
- protectionPolicy StringId 
- The OCID of the protection policy associated with the protected database.
- recoveryService StringSubnet Id 
- Recovery Service Subnet Identifier.
- state String
- The current state of the Protected Database.
Supporting Types
GetProtectedDatabasesFilter   
GetProtectedDatabasesProtectedDatabaseCollection     
GetProtectedDatabasesProtectedDatabaseCollectionItem      
- CompartmentId string
- The compartment OCID.
- DatabaseId string
- The OCID of the protected database.
- DatabaseSize 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.
- DbUnique stringName 
- The dbUniqueName for the protected database in Recovery Service. You cannot change the unique name.
- 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 string
- DisplayName string
- A filter to return only resources that match the entire 'displayname' given.
- 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 string
- Indicates the protection status of the database.
- HealthDetails string
- A message describing the current health of the protected database.
- Id string
- The protected database OCID.
- IsRead boolOnly Resource 
- 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.
- IsRedo boolLogs Shipped 
- 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 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
List<GetProtected Databases Protected Database Collection Item Metric> 
- Backup performance and storage utilization metrics for the protected database.
- Password string
- PolicyLocked stringDate Time 
- 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.
- ProtectionPolicy stringId 
- The protection policy OCID.
- RecoveryService List<GetSubnets Protected Databases Protected Database Collection Item Recovery Service Subnet> 
- List of recovery service subnet resources associated with the protected database.
- State string
- A filter to return only the resources that match the specified lifecycle state.
- SubscriptionId string
- The OCID of the cloud service subscription to which the protected database is linked.
- 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 string
- An RFC3339 formatted datetime string that indicates the created time for a protected database. For example: '2020-05-22T21:10:29.600Z'
- TimeUpdated string
- An RFC3339 formatted datetime string that indicates the last updated time for a protected database. For example: '2020-05-22T21:10:29.600Z'
- VpcUser stringName 
- The virtual private catalog (VPC) user credentials that authenticates the protected database to access Recovery Service.
- CompartmentId string
- The compartment OCID.
- DatabaseId string
- The OCID of the protected database.
- DatabaseSize 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.
- DbUnique stringName 
- The dbUniqueName for the protected database in Recovery Service. You cannot change the unique name.
- 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 string
- DisplayName string
- A filter to return only resources that match the entire 'displayname' given.
- 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 string
- Indicates the protection status of the database.
- HealthDetails string
- A message describing the current health of the protected database.
- Id string
- The protected database OCID.
- IsRead boolOnly Resource 
- 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.
- IsRedo boolLogs Shipped 
- 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 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
[]GetProtected Databases Protected Database Collection Item Metric 
- Backup performance and storage utilization metrics for the protected database.
- Password string
- PolicyLocked stringDate Time 
- 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.
- ProtectionPolicy stringId 
- The protection policy OCID.
- RecoveryService []GetSubnets Protected Databases Protected Database Collection Item Recovery Service Subnet 
- List of recovery service subnet resources associated with the protected database.
- State string
- A filter to return only the resources that match the specified lifecycle state.
- SubscriptionId string
- The OCID of the cloud service subscription to which the protected database is linked.
- 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 string
- An RFC3339 formatted datetime string that indicates the created time for a protected database. For example: '2020-05-22T21:10:29.600Z'
- TimeUpdated string
- An RFC3339 formatted datetime string that indicates the last updated time for a protected database. For example: '2020-05-22T21:10:29.600Z'
- VpcUser stringName 
- The virtual private catalog (VPC) user credentials that authenticates the protected database to access Recovery Service.
- compartmentId String
- The compartment OCID.
- databaseId String
- The OCID of the protected database.
- databaseSize 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.
- dbUnique StringName 
- The dbUniqueName for the protected database in Recovery Service. You cannot change the unique name.
- 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 String
- displayName String
- A filter to return only resources that match the entire 'displayname' given.
- 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 String
- Indicates the protection status of the database.
- healthDetails String
- A message describing the current health of the protected database.
- id String
- The protected database OCID.
- isRead BooleanOnly Resource 
- 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.
- isRedo BooleanLogs Shipped 
- 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 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
List<GetProtected Databases Protected Database Collection Item Metric> 
- Backup performance and storage utilization metrics for the protected database.
- password String
- policyLocked StringDate Time 
- 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.
- protectionPolicy StringId 
- The protection policy OCID.
- recoveryService List<GetSubnets Protected Databases Protected Database Collection Item Recovery Service Subnet> 
- List of recovery service subnet resources associated with the protected database.
- state String
- A filter to return only the resources that match the specified lifecycle state.
- subscriptionId String
- The OCID of the cloud service subscription to which the protected database is linked.
- 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 String
- An RFC3339 formatted datetime string that indicates the created time for a protected database. For example: '2020-05-22T21:10:29.600Z'
- timeUpdated String
- An RFC3339 formatted datetime string that indicates the last updated time for a protected database. For example: '2020-05-22T21:10:29.600Z'
- vpcUser StringName 
- The virtual private catalog (VPC) user credentials that authenticates the protected database to access Recovery Service.
- compartmentId string
- The compartment OCID.
- databaseId string
- The OCID of the protected database.
- databaseSize 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.
- dbUnique stringName 
- The dbUniqueName for the protected database in Recovery Service. You cannot change the unique name.
- {[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 string
- displayName string
- A filter to return only resources that match the entire 'displayname' given.
- {[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 string
- Indicates the protection status of the database.
- healthDetails string
- A message describing the current health of the protected database.
- id string
- The protected database OCID.
- isRead booleanOnly Resource 
- 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.
- isRedo booleanLogs Shipped 
- 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 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
GetProtected Databases Protected Database Collection Item Metric[] 
- Backup performance and storage utilization metrics for the protected database.
- password string
- policyLocked stringDate Time 
- 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.
- protectionPolicy stringId 
- The protection policy OCID.
- recoveryService GetSubnets Protected Databases Protected Database Collection Item Recovery Service Subnet[] 
- List of recovery service subnet resources associated with the protected database.
- state string
- A filter to return only the resources that match the specified lifecycle state.
- subscriptionId string
- The OCID of the cloud service subscription to which the protected database is linked.
- {[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 string
- An RFC3339 formatted datetime string that indicates the created time for a protected database. For example: '2020-05-22T21:10:29.600Z'
- timeUpdated string
- An RFC3339 formatted datetime string that indicates the last updated time for a protected database. For example: '2020-05-22T21:10:29.600Z'
- vpcUser stringName 
- The virtual private catalog (VPC) user credentials that authenticates the protected database to access Recovery Service.
- compartment_id str
- The compartment OCID.
- database_id str
- The OCID of the protected database.
- database_size 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_ strname 
- The dbUniqueName for the protected database in Recovery Service. You cannot change the unique name.
- 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 str
- display_name str
- A filter to return only resources that match the entire 'displayname' given.
- 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 str
- Indicates the protection status of the database.
- health_details str
- A message describing the current health of the protected database.
- id str
- The protected database OCID.
- is_read_ boolonly_ resource 
- 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_ boollogs_ shipped 
- 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 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
Sequence[GetProtected Databases Protected Database Collection Item Metric] 
- Backup performance and storage utilization metrics for the protected database.
- password str
- policy_locked_ strdate_ time 
- 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_ strid 
- The protection policy OCID.
- recovery_service_ Sequence[Getsubnets Protected Databases Protected Database Collection Item Recovery Service Subnet] 
- List of recovery service subnet resources associated with the protected database.
- state str
- A filter to return only the resources that match the specified lifecycle state.
- subscription_id str
- The OCID of the cloud service subscription to which the protected database is linked.
- 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 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 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_ strname 
- The virtual private catalog (VPC) user credentials that authenticates the protected database to access Recovery Service.
- compartmentId String
- The compartment OCID.
- databaseId String
- The OCID of the protected database.
- databaseSize 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.
- dbUnique StringName 
- The dbUniqueName for the protected database in Recovery Service. You cannot change the unique name.
- 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 String
- displayName String
- A filter to return only resources that match the entire 'displayname' given.
- 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 String
- Indicates the protection status of the database.
- healthDetails String
- A message describing the current health of the protected database.
- id String
- The protected database OCID.
- isRead BooleanOnly Resource 
- 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.
- isRedo BooleanLogs Shipped 
- 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 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 List<Property Map>
- Backup performance and storage utilization metrics for the protected database.
- password String
- policyLocked StringDate Time 
- 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.
- protectionPolicy StringId 
- The protection policy OCID.
- recoveryService List<Property Map>Subnets 
- List of recovery service subnet resources associated with the protected database.
- state String
- A filter to return only the resources that match the specified lifecycle state.
- subscriptionId String
- The OCID of the cloud service subscription to which the protected database is linked.
- 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 String
- An RFC3339 formatted datetime string that indicates the created time for a protected database. For example: '2020-05-22T21:10:29.600Z'
- timeUpdated String
- An RFC3339 formatted datetime string that indicates the last updated time for a protected database. For example: '2020-05-22T21:10:29.600Z'
- vpcUser StringName 
- The virtual private catalog (VPC) user credentials that authenticates the protected database to access Recovery Service.
GetProtectedDatabasesProtectedDatabaseCollectionItemMetric       
- BackupSpace doubleEstimate In Gbs 
- The estimated backup storage space, in gigabytes, required to meet the recovery window goal, including foot print and backups for the protected database.
- BackupSpace doubleUsed In Gbs 
- Backup storage space, in gigabytes, utilized by the protected database. Oracle charges for the total storage used.
- CurrentRetention doublePeriod In Seconds 
- Number of seconds backups are currently retained for this database.
- DbSize doubleIn Gbs 
- 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.
- IsRedo boolLogs Enabled 
- 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.
- MinimumRecovery doubleNeeded In Days 
- Number of days of redo/archive to be applied to recover database.
- RetentionPeriod doubleIn Days 
- The maximum number of days to retain backups for a protected database.
- UnprotectedWindow doubleIn Seconds 
- 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.
- BackupSpace float64Estimate In Gbs 
- The estimated backup storage space, in gigabytes, required to meet the recovery window goal, including foot print and backups for the protected database.
- BackupSpace float64Used In Gbs 
- Backup storage space, in gigabytes, utilized by the protected database. Oracle charges for the total storage used.
- CurrentRetention float64Period In Seconds 
- Number of seconds backups are currently retained for this database.
- DbSize float64In Gbs 
- 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.
- IsRedo boolLogs Enabled 
- 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.
- MinimumRecovery float64Needed In Days 
- Number of days of redo/archive to be applied to recover database.
- RetentionPeriod float64In Days 
- The maximum number of days to retain backups for a protected database.
- UnprotectedWindow float64In Seconds 
- 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.
- backupSpace DoubleEstimate In Gbs 
- The estimated backup storage space, in gigabytes, required to meet the recovery window goal, including foot print and backups for the protected database.
- backupSpace DoubleUsed In Gbs 
- Backup storage space, in gigabytes, utilized by the protected database. Oracle charges for the total storage used.
- currentRetention DoublePeriod In Seconds 
- Number of seconds backups are currently retained for this database.
- dbSize DoubleIn Gbs 
- 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.
- isRedo BooleanLogs Enabled 
- 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.
- minimumRecovery DoubleNeeded In Days 
- Number of days of redo/archive to be applied to recover database.
- retentionPeriod DoubleIn Days 
- The maximum number of days to retain backups for a protected database.
- unprotectedWindow DoubleIn Seconds 
- 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.
- backupSpace numberEstimate In Gbs 
- The estimated backup storage space, in gigabytes, required to meet the recovery window goal, including foot print and backups for the protected database.
- backupSpace numberUsed In Gbs 
- Backup storage space, in gigabytes, utilized by the protected database. Oracle charges for the total storage used.
- currentRetention numberPeriod In Seconds 
- Number of seconds backups are currently retained for this database.
- dbSize numberIn Gbs 
- 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.
- isRedo booleanLogs Enabled 
- 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.
- minimumRecovery numberNeeded In Days 
- Number of days of redo/archive to be applied to recover database.
- retentionPeriod numberIn Days 
- The maximum number of days to retain backups for a protected database.
- unprotectedWindow numberIn Seconds 
- 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_ floatestimate_ in_ gbs 
- 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_ floatused_ in_ gbs 
- Backup storage space, in gigabytes, utilized by the protected database. Oracle charges for the total storage used.
- current_retention_ floatperiod_ in_ seconds 
- Number of seconds backups are currently retained for this database.
- db_size_ floatin_ gbs 
- 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_ boollogs_ enabled 
- 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_ floatneeded_ in_ days 
- Number of days of redo/archive to be applied to recover database.
- retention_period_ floatin_ days 
- The maximum number of days to retain backups for a protected database.
- unprotected_window_ floatin_ seconds 
- 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.
- backupSpace NumberEstimate In Gbs 
- The estimated backup storage space, in gigabytes, required to meet the recovery window goal, including foot print and backups for the protected database.
- backupSpace NumberUsed In Gbs 
- Backup storage space, in gigabytes, utilized by the protected database. Oracle charges for the total storage used.
- currentRetention NumberPeriod In Seconds 
- Number of seconds backups are currently retained for this database.
- dbSize NumberIn Gbs 
- 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.
- isRedo BooleanLogs Enabled 
- 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.
- minimumRecovery NumberNeeded In Days 
- Number of days of redo/archive to be applied to recover database.
- retentionPeriod NumberIn Days 
- The maximum number of days to retain backups for a protected database.
- unprotectedWindow NumberIn Seconds 
- 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         
- RecoveryService stringSubnet Id 
- The recovery service subnet OCID.
- State string
- A filter to return only the resources that match the specified lifecycle state.
- RecoveryService stringSubnet Id 
- The recovery service subnet OCID.
- State string
- A filter to return only the resources that match the specified lifecycle state.
- recoveryService StringSubnet Id 
- The recovery service subnet OCID.
- state String
- A filter to return only the resources that match the specified lifecycle state.
- recoveryService stringSubnet Id 
- The recovery service subnet OCID.
- state string
- A filter to return only the resources that match the specified lifecycle state.
- recovery_service_ strsubnet_ id 
- The recovery service subnet OCID.
- state str
- A filter to return only the resources that match the specified lifecycle state.
- recoveryService StringSubnet Id 
- The recovery service subnet OCID.
- state 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 ociTerraform Provider.