Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 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[_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]
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 dictionary
The following arguments are supported:
- Compartment
Id This property is required. string - The compartment OCID.
- Display
Name string - A filter to return only resources that match the entire 'displayname' given.
- Filters
Changes to this property will trigger replacement.
Protected Databases Filter> - Id string
- The protected database OCID.
- Protection
Policy stringId - The protection policy OCID.
- Recovery
Service stringSubnet Id - 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. string - The compartment OCID.
- Display
Name string - A filter to return only resources that match the entire 'displayname' given.
- Filters
Changes to this property will trigger replacement.
Protected Databases Filter - Id string
- The protected database OCID.
- Protection
Policy stringId - The protection policy OCID.
- Recovery
Service stringSubnet Id - 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. String - The compartment OCID.
- display
Name String - A filter to return only resources that match the entire 'displayname' given.
- filters
Changes to this property will trigger replacement.
Protected Databases Filter> - id String
- The protected database OCID.
- protection
Policy StringId - The protection policy OCID.
- recovery
Service StringSubnet Id - 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. string - The compartment OCID.
- display
Name string - A filter to return only resources that match the entire 'displayname' given.
- filters
Changes to this property will trigger replacement.
Protected Databases Filter[] - id string
- The protected database OCID.
- protection
Policy stringId - The protection policy OCID.
- recovery
Service stringSubnet Id - 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.
Get Protected 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.
- compartment
Id This property is required. String - The compartment OCID.
- display
Name String - A filter to return only resources that match the entire 'displayname' given.
- filters
Changes to this property will trigger replacement.
- id String
- The protected database OCID.
- protection
Policy StringId - The protection policy OCID.
- recovery
Service 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:
- Compartment
Id string - The OCID of the compartment that contains the protected database.
- Protected
Database List<GetCollections Protected Databases Protected Database Collection> - The list of protected_database_collection.
- Display
Name string - The protected database name. You can change the displayName. Avoid entering confidential information.
- Filters
List<Get
Protected Databases Filter> - Id string
- The OCID of the protected database.
- Protection
Policy stringId - The OCID of the protection policy associated with the protected database.
- Recovery
Service stringSubnet Id - Recovery Service Subnet Identifier.
- State string
- The current state of the Protected Database.
- Compartment
Id string - The OCID of the compartment that contains the protected database.
- Protected
Database []GetCollections Protected Databases Protected Database Collection - The list of protected_database_collection.
- Display
Name string - The protected database name. You can change the displayName. Avoid entering confidential information.
- Filters
[]Get
Protected Databases Filter - Id string
- The OCID of the protected database.
- Protection
Policy stringId - The OCID of the protection policy associated with the protected database.
- Recovery
Service stringSubnet Id - Recovery Service Subnet Identifier.
- State string
- The current state of the Protected Database.
- compartment
Id String - The OCID of the compartment that contains the protected database.
- protected
Database List<GetCollections Protected Databases Protected Database Collection> - The list of protected_database_collection.
- display
Name String - The protected database name. You can change the displayName. Avoid entering confidential information.
- filters
List<Get
Protected Databases Filter> - id String
- The OCID of the protected database.
- protection
Policy StringId - The OCID of the protection policy associated with the protected database.
- recovery
Service StringSubnet Id - Recovery Service Subnet Identifier.
- state String
- The current state of the Protected Database.
- compartment
Id string - The OCID of the compartment that contains the protected database.
- protected
Database GetCollections Protected Databases Protected Database Collection[] - The list of protected_database_collection.
- display
Name string - The protected database name. You can change the displayName. Avoid entering confidential information.
- filters
Get
Protected Databases Filter[] - id string
- The OCID of the protected database.
- protection
Policy stringId - The OCID of the protection policy associated with the protected database.
- recovery
Service 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[recoverymod.collections Get 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[recoverymod.
Get Protected 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.
- compartment
Id String - The OCID of the compartment that contains the protected database.
- protected
Database List<Property Map>Collections - The list of protected_database_collection.
- display
Name 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.
- protection
Policy StringId - The OCID of the protection policy associated with the protected database.
- recovery
Service StringSubnet Id - Recovery Service Subnet Identifier.
- state String
- The current state of the Protected Database.
Supporting Types
GetProtectedDatabasesFilter
GetProtectedDatabasesProtectedDatabaseCollection
- Items
This property is required. List<GetProtected Databases Protected Database Collection Item>
- Items
This property is required. []GetProtected Databases Protected Database Collection Item
- items
This property is required. List<GetProtected Databases Protected Database Collection Item>
- items
This property is required. GetProtected Databases Protected Database Collection Item[]
- items
This property is required. Sequence[recoverymod.Get Protected Databases Protected Database Collection Item]
- items
This property is required. List<Property Map>
GetProtectedDatabasesProtectedDatabaseCollectionItem
- Compartment
Id This property is required. string - The compartment OCID.
- Database
Id This property is required. string - The OCID of the protected database.
- Database
Size 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.
- Db
Unique Name This property is required. string - The dbUniqueName for the protected database in Recovery Service. You cannot change the unique name.
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 - Deletion
Schedule This property is required. string - Display
Name This property is required. string - A filter to return only resources that match the entire 'displayname' given.
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.
- Health
Details 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.
- 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. 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<GetProtected Databases Protected Database Collection Item Metric> - Backup performance and storage utilization metrics for the protected database.
- Password
This property is required. string - Policy
Locked Date Time 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.
- Protection
Policy Id This property is required. string - The protection policy OCID.
- Recovery
Service Subnets This property is required. List<GetProtected Databases Protected Database Collection Item Recovery Service Subnet> - 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.
- Subscription
Id This property is required. string - The OCID of the cloud service subscription to which the protected database is linked.
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 - Time
Created 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'
- Time
Updated 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'
- Vpc
User Name 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. string - The compartment OCID.
- Database
Id This property is required. string - The OCID of the protected database.
- Database
Size 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.
- Db
Unique Name This property is required. string - The dbUniqueName for the protected database in Recovery Service. You cannot change the unique name.
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 - Deletion
Schedule This property is required. string - Display
Name This property is required. string - A filter to return only resources that match the entire 'displayname' given.
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.
- Health
Details 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.
- 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. 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. []GetProtected Databases Protected Database Collection Item Metric - Backup performance and storage utilization metrics for the protected database.
- Password
This property is required. string - Policy
Locked Date Time 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.
- Protection
Policy Id This property is required. string - The protection policy OCID.
- Recovery
Service Subnets This property is required. []GetProtected Databases Protected Database Collection Item Recovery Service Subnet - 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.
- Subscription
Id This property is required. string - The OCID of the cloud service subscription to which the protected database is linked.
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 - Time
Created 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'
- Time
Updated 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'
- Vpc
User Name 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. String - The compartment OCID.
- database
Id This property is required. String - The OCID of the protected database.
- database
Size 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.
- db
Unique Name This property is required. String - The dbUniqueName for the protected database in Recovery Service. You cannot change the unique name.
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 - deletion
Schedule This property is required. String - display
Name This property is required. String - A filter to return only resources that match the entire 'displayname' given.
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.
- health
Details 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.
- is
Read Only Resource 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.
- is
Redo Logs Shipped 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.
- lifecycle
Details 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<GetProtected Databases Protected Database Collection Item Metric> - Backup performance and storage utilization metrics for the protected database.
- password
This property is required. String - policy
Locked Date Time 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.
- protection
Policy Id This property is required. String - The protection policy OCID.
- recovery
Service Subnets This property is required. List<GetProtected Databases Protected Database Collection Item Recovery Service Subnet> - 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.
- subscription
Id This property is required. String - The OCID of the cloud service subscription to which the protected database is linked.
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 - time
Created 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'
- time
Updated 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'
- vpc
User Name 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. string - The compartment OCID.
- database
Id This property is required. string - The OCID of the protected database.
- database
Size 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.
- db
Unique Name This property is required. string - The dbUniqueName for the protected database in Recovery Service. You cannot change the unique name.
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 - deletion
Schedule This property is required. string - display
Name This property is required. string - A filter to return only resources that match the entire 'displayname' given.
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.
- health
Details 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.
- is
Read Only Resource 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.
- is
Redo Logs Shipped 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.
- lifecycle
Details 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. GetProtected Databases Protected Database Collection Item Metric[] - Backup performance and storage utilization metrics for the protected database.
- password
This property is required. string - policy
Locked Date Time 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.
- protection
Policy Id This property is required. string - The protection policy OCID.
- recovery
Service Subnets This property is required. GetProtected Databases Protected Database Collection Item Recovery Service Subnet[] - 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.
- subscription
Id This property is required. string - The OCID of the cloud service subscription to which the protected database is linked.
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 - time
Created 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'
- time
Updated 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'
- vpc
User Name 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.
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.
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.Get Protected Databases Protected Database Collection Item Metric] - 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.Get Protected Databases Protected Database Collection Item Recovery Service Subnet] - 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.
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.
- compartment
Id This property is required. String - The compartment OCID.
- database
Id This property is required. String - The OCID of the protected database.
- database
Size 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.
- db
Unique Name This property is required. String - The dbUniqueName for the protected database in Recovery Service. You cannot change the unique name.
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 - deletion
Schedule This property is required. String - display
Name This property is required. String - A filter to return only resources that match the entire 'displayname' given.
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.
- health
Details 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.
- is
Read Only Resource 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.
- is
Redo Logs Shipped 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.
- lifecycle
Details 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 - policy
Locked Date Time 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.
- protection
Policy Id This property is required. String - The protection policy OCID.
- recovery
Service Subnets 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.
- subscription
Id This property is required. String - The OCID of the cloud service subscription to which the protected database is linked.
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 - time
Created 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'
- time
Updated 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'
- vpc
User Name This property is required. String - The virtual private catalog (VPC) user credentials that authenticates the protected database to access Recovery Service.
GetProtectedDatabasesProtectedDatabaseCollectionItemMetric
- Backup
Space Estimate In Gbs 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.
- Backup
Space Used In Gbs This property is required. double - 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. double - Number of seconds backups are currently retained for this database.
- Db
Size In Gbs 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.
- 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. double - Number of days of redo/archive to be applied to recover database.
- Retention
Period In Days This property is required. double - The maximum number of days to retain backups for a protected database.
- Unprotected
Window In Seconds 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.
- Backup
Space Estimate In Gbs 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.
- Backup
Space Used In Gbs This property is required. float64 - 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. float64 - Number of seconds backups are currently retained for this database.
- Db
Size In Gbs 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.
- 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. float64 - Number of days of redo/archive to be applied to recover database.
- Retention
Period In Days This property is required. float64 - The maximum number of days to retain backups for a protected database.
- Unprotected
Window In Seconds 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.
- backup
Space Estimate In Gbs 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.
- backup
Space Used In Gbs This property is required. Double - 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. Double - Number of seconds backups are currently retained for this database.
- db
Size In Gbs 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.
- is
Redo Logs Enabled 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.
- minimum
Recovery Needed In Days This property is required. Double - Number of days of redo/archive to be applied to recover database.
- retention
Period In Days This property is required. Double - The maximum number of days to retain backups for a protected database.
- unprotected
Window In Seconds 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.
- backup
Space Estimate In Gbs 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.
- backup
Space Used In Gbs This property is required. number - 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. number - Number of seconds backups are currently retained for this database.
- db
Size In Gbs 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.
- is
Redo Logs Enabled 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.
- minimum
Recovery Needed In Days This property is required. number - Number of days of redo/archive to be applied to recover database.
- retention
Period In Days This property is required. number - The maximum number of days to retain backups for a protected database.
- unprotected
Window In Seconds 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.
- backup
Space Estimate In Gbs 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.
- backup
Space Used In Gbs This property is required. Number - 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. Number - Number of seconds backups are currently retained for this database.
- db
Size In Gbs 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.
- is
Redo Logs Enabled 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.
- minimum
Recovery Needed In Days This property is required. Number - Number of days of redo/archive to be applied to recover database.
- retention
Period In Days This property is required. Number - The maximum number of days to retain backups for a protected database.
- unprotected
Window In Seconds 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
- Recovery
Service Subnet Id 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. 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. 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. 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.
- recovery
Service Subnet Id 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.