oci.RecoveryMod.ProtectedDatabase
Explore with Pulumi AI
This resource provides the Protected Database resource in Oracle Cloud Infrastructure Recovery service.
Creates a new Protected Database.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testProtectedDatabase = new oci.recoverymod.ProtectedDatabase("test_protected_database", {
compartmentId: compartmentId,
dbUniqueName: protectedDatabaseDbUniqueName,
displayName: protectedDatabaseDisplayName,
password: protectedDatabasePassword,
protectionPolicyId: testProtectionPolicy.id,
recoveryServiceSubnets: [{
recoveryServiceSubnetId: testRecoveryServiceSubnet.id,
}],
databaseId: testDatabase.id,
databaseSize: protectedDatabaseDatabaseSize,
definedTags: {
"foo-namespace.bar-key": "value",
},
deletionSchedule: "DELETE_AFTER_72_HOURS",
freeformTags: {
"bar-key": "value",
},
isRedoLogsShipped: protectedDatabaseIsRedoLogsShipped,
});
import pulumi
import pulumi_oci as oci
test_protected_database = oci.recovery_mod.ProtectedDatabase("test_protected_database",
compartment_id=compartment_id,
db_unique_name=protected_database_db_unique_name,
display_name=protected_database_display_name,
password=protected_database_password,
protection_policy_id=test_protection_policy["id"],
recovery_service_subnets=[oci.recovery_mod.ProtectedDatabaseRecoveryServiceSubnetArgs(
recovery_service_subnet_id=test_recovery_service_subnet["id"],
)],
database_id=test_database["id"],
database_size=protected_database_database_size,
defined_tags={
"foo-namespace.bar-key": "value",
},
deletion_schedule="DELETE_AFTER_72_HOURS",
freeform_tags={
"bar-key": "value",
},
is_redo_logs_shipped=protected_database_is_redo_logs_shipped)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/go/oci/RecoveryMod"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := RecoveryMod.NewProtectedDatabase(ctx, "test_protected_database", &RecoveryMod.ProtectedDatabaseArgs{
CompartmentId: pulumi.Any(compartmentId),
DbUniqueName: pulumi.Any(protectedDatabaseDbUniqueName),
DisplayName: pulumi.Any(protectedDatabaseDisplayName),
Password: pulumi.Any(protectedDatabasePassword),
ProtectionPolicyId: pulumi.Any(testProtectionPolicy.Id),
RecoveryServiceSubnets: recoverymod.ProtectedDatabaseRecoveryServiceSubnetArray{
&recoverymod.ProtectedDatabaseRecoveryServiceSubnetArgs{
RecoveryServiceSubnetId: pulumi.Any(testRecoveryServiceSubnet.Id),
},
},
DatabaseId: pulumi.Any(testDatabase.Id),
DatabaseSize: pulumi.Any(protectedDatabaseDatabaseSize),
DefinedTags: pulumi.Map{
"foo-namespace.bar-key": pulumi.Any("value"),
},
DeletionSchedule: pulumi.String("DELETE_AFTER_72_HOURS"),
FreeformTags: pulumi.Map{
"bar-key": pulumi.Any("value"),
},
IsRedoLogsShipped: pulumi.Any(protectedDatabaseIsRedoLogsShipped),
})
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 testProtectedDatabase = new Oci.RecoveryMod.ProtectedDatabase("test_protected_database", new()
{
CompartmentId = compartmentId,
DbUniqueName = protectedDatabaseDbUniqueName,
DisplayName = protectedDatabaseDisplayName,
Password = protectedDatabasePassword,
ProtectionPolicyId = testProtectionPolicy.Id,
RecoveryServiceSubnets = new[]
{
new Oci.RecoveryMod.Inputs.ProtectedDatabaseRecoveryServiceSubnetArgs
{
RecoveryServiceSubnetId = testRecoveryServiceSubnet.Id,
},
},
DatabaseId = testDatabase.Id,
DatabaseSize = protectedDatabaseDatabaseSize,
DefinedTags =
{
{ "foo-namespace.bar-key", "value" },
},
DeletionSchedule = "DELETE_AFTER_72_HOURS",
FreeformTags =
{
{ "bar-key", "value" },
},
IsRedoLogsShipped = protectedDatabaseIsRedoLogsShipped,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.RecoveryMod.ProtectedDatabase;
import com.pulumi.oci.RecoveryMod.ProtectedDatabaseArgs;
import com.pulumi.oci.RecoveryMod.inputs.ProtectedDatabaseRecoveryServiceSubnetArgs;
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) {
var testProtectedDatabase = new ProtectedDatabase("testProtectedDatabase", ProtectedDatabaseArgs.builder()
.compartmentId(compartmentId)
.dbUniqueName(protectedDatabaseDbUniqueName)
.displayName(protectedDatabaseDisplayName)
.password(protectedDatabasePassword)
.protectionPolicyId(testProtectionPolicy.id())
.recoveryServiceSubnets(ProtectedDatabaseRecoveryServiceSubnetArgs.builder()
.recoveryServiceSubnetId(testRecoveryServiceSubnet.id())
.build())
.databaseId(testDatabase.id())
.databaseSize(protectedDatabaseDatabaseSize)
.definedTags(Map.of("foo-namespace.bar-key", "value"))
.deletionSchedule("DELETE_AFTER_72_HOURS")
.freeformTags(Map.of("bar-key", "value"))
.isRedoLogsShipped(protectedDatabaseIsRedoLogsShipped)
.build());
}
}
resources:
testProtectedDatabase:
type: oci:RecoveryMod:ProtectedDatabase
name: test_protected_database
properties:
compartmentId: ${compartmentId}
dbUniqueName: ${protectedDatabaseDbUniqueName}
displayName: ${protectedDatabaseDisplayName}
password: ${protectedDatabasePassword}
protectionPolicyId: ${testProtectionPolicy.id}
recoveryServiceSubnets:
- recoveryServiceSubnetId: ${testRecoveryServiceSubnet.id}
databaseId: ${testDatabase.id}
databaseSize: ${protectedDatabaseDatabaseSize}
definedTags:
foo-namespace.bar-key: value
deletionSchedule: DELETE_AFTER_72_HOURS
freeformTags:
bar-key: value
isRedoLogsShipped: ${protectedDatabaseIsRedoLogsShipped}
Create ProtectedDatabase Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ProtectedDatabase(name: string, args: ProtectedDatabaseArgs, opts?: CustomResourceOptions);
@overload
def ProtectedDatabase(resource_name: str,
args: ProtectedDatabaseArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ProtectedDatabase(resource_name: str,
opts: Optional[ResourceOptions] = None,
compartment_id: Optional[str] = None,
db_unique_name: Optional[str] = None,
display_name: Optional[str] = None,
password: Optional[str] = None,
protection_policy_id: Optional[str] = None,
recovery_service_subnets: Optional[Sequence[_recoverymod.ProtectedDatabaseRecoveryServiceSubnetArgs]] = None,
database_id: Optional[str] = None,
database_size: Optional[str] = None,
defined_tags: Optional[Mapping[str, Any]] = None,
deletion_schedule: Optional[str] = None,
freeform_tags: Optional[Mapping[str, Any]] = None,
is_redo_logs_shipped: Optional[bool] = None)
func NewProtectedDatabase(ctx *Context, name string, args ProtectedDatabaseArgs, opts ...ResourceOption) (*ProtectedDatabase, error)
public ProtectedDatabase(string name, ProtectedDatabaseArgs args, CustomResourceOptions? opts = null)
public ProtectedDatabase(String name, ProtectedDatabaseArgs args)
public ProtectedDatabase(String name, ProtectedDatabaseArgs args, CustomResourceOptions options)
type: oci:RecoveryMod:ProtectedDatabase
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ProtectedDatabaseArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ProtectedDatabaseArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ProtectedDatabaseArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ProtectedDatabaseArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ProtectedDatabaseArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var protectedDatabaseResource = new Oci.RecoveryMod.ProtectedDatabase("protectedDatabaseResource", new()
{
CompartmentId = "string",
DbUniqueName = "string",
DisplayName = "string",
Password = "string",
ProtectionPolicyId = "string",
RecoveryServiceSubnets = new[]
{
new Oci.RecoveryMod.Inputs.ProtectedDatabaseRecoveryServiceSubnetArgs
{
RecoveryServiceSubnetId = "string",
State = "string",
},
},
DatabaseId = "string",
DatabaseSize = "string",
DefinedTags =
{
{ "string", "any" },
},
DeletionSchedule = "string",
FreeformTags =
{
{ "string", "any" },
},
IsRedoLogsShipped = false,
});
example, err := RecoveryMod.NewProtectedDatabase(ctx, "protectedDatabaseResource", &RecoveryMod.ProtectedDatabaseArgs{
CompartmentId: pulumi.String("string"),
DbUniqueName: pulumi.String("string"),
DisplayName: pulumi.String("string"),
Password: pulumi.String("string"),
ProtectionPolicyId: pulumi.String("string"),
RecoveryServiceSubnets: recoverymod.ProtectedDatabaseRecoveryServiceSubnetArray{
&recoverymod.ProtectedDatabaseRecoveryServiceSubnetArgs{
RecoveryServiceSubnetId: pulumi.String("string"),
State: pulumi.String("string"),
},
},
DatabaseId: pulumi.String("string"),
DatabaseSize: pulumi.String("string"),
DefinedTags: pulumi.Map{
"string": pulumi.Any("any"),
},
DeletionSchedule: pulumi.String("string"),
FreeformTags: pulumi.Map{
"string": pulumi.Any("any"),
},
IsRedoLogsShipped: pulumi.Bool(false),
})
var protectedDatabaseResource = new ProtectedDatabase("protectedDatabaseResource", ProtectedDatabaseArgs.builder()
.compartmentId("string")
.dbUniqueName("string")
.displayName("string")
.password("string")
.protectionPolicyId("string")
.recoveryServiceSubnets(ProtectedDatabaseRecoveryServiceSubnetArgs.builder()
.recoveryServiceSubnetId("string")
.state("string")
.build())
.databaseId("string")
.databaseSize("string")
.definedTags(Map.of("string", "any"))
.deletionSchedule("string")
.freeformTags(Map.of("string", "any"))
.isRedoLogsShipped(false)
.build());
protected_database_resource = oci.recovery_mod.ProtectedDatabase("protectedDatabaseResource",
compartment_id="string",
db_unique_name="string",
display_name="string",
password="string",
protection_policy_id="string",
recovery_service_subnets=[oci.recovery_mod.ProtectedDatabaseRecoveryServiceSubnetArgs(
recovery_service_subnet_id="string",
state="string",
)],
database_id="string",
database_size="string",
defined_tags={
"string": "any",
},
deletion_schedule="string",
freeform_tags={
"string": "any",
},
is_redo_logs_shipped=False)
const protectedDatabaseResource = new oci.recoverymod.ProtectedDatabase("protectedDatabaseResource", {
compartmentId: "string",
dbUniqueName: "string",
displayName: "string",
password: "string",
protectionPolicyId: "string",
recoveryServiceSubnets: [{
recoveryServiceSubnetId: "string",
state: "string",
}],
databaseId: "string",
databaseSize: "string",
definedTags: {
string: "any",
},
deletionSchedule: "string",
freeformTags: {
string: "any",
},
isRedoLogsShipped: false,
});
type: oci:RecoveryMod:ProtectedDatabase
properties:
compartmentId: string
databaseId: string
databaseSize: string
dbUniqueName: string
definedTags:
string: any
deletionSchedule: string
displayName: string
freeformTags:
string: any
isRedoLogsShipped: false
password: string
protectionPolicyId: string
recoveryServiceSubnets:
- recoveryServiceSubnetId: string
state: string
ProtectedDatabase Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The ProtectedDatabase resource accepts the following input properties:
- Compartment
Id string - (Updatable) The OCID of the compartment that contains the protected database.
- Db
Unique stringName - The dbUniqueName of the protected database in Recovery Service. You cannot change the unique name.
- Display
Name string - (Updatable) The protected database name. You can change the displayName. Avoid entering confidential information.
- Password string
- (Updatable) Password credential which can be used to connect to Protected Database. It must contain at least 2 uppercase, 2 lowercase, 2 numeric and 2 special characters. The special characters must be underscore (_), number sign (https://docs.cloud.oracle.com/iaas/api/#) or hyphen (-). The password must not contain the username "admin", regardless of casing.
- Protection
Policy stringId - (Updatable) The OCID of the protection policy associated with the protected database.
- Recovery
Service List<ProtectedSubnets Database Recovery Service Subnet> - (Updatable) List of recovery service subnet resources associated with the protected database.
- Database
Id string - The OCID of the protected database.
- Database
Size string - (Updatable) 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.
- Dictionary<string, object>
- (Updatable) 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 string - (Updatable) Defines a preferred schedule to delete a protected database after you terminate the source database.
- The default schedule is DELETE_AFTER_72_HOURS, so that the delete operation can occur 72 hours (3 days) after the source database is terminated.
- The alternate schedule is DELETE_AFTER_RETENTION_PERIOD. Specify this option if you want to delete a protected database only after the policy-defined backup retention period expires.
- Dictionary<string, object>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Is
Redo boolLogs Shipped - (Updatable) 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.
- Compartment
Id string - (Updatable) The OCID of the compartment that contains the protected database.
- Db
Unique stringName - The dbUniqueName of the protected database in Recovery Service. You cannot change the unique name.
- Display
Name string - (Updatable) The protected database name. You can change the displayName. Avoid entering confidential information.
- Password string
- (Updatable) Password credential which can be used to connect to Protected Database. It must contain at least 2 uppercase, 2 lowercase, 2 numeric and 2 special characters. The special characters must be underscore (_), number sign (https://docs.cloud.oracle.com/iaas/api/#) or hyphen (-). The password must not contain the username "admin", regardless of casing.
- Protection
Policy stringId - (Updatable) The OCID of the protection policy associated with the protected database.
- Recovery
Service []ProtectedSubnets Database Recovery Service Subnet Args - (Updatable) List of recovery service subnet resources associated with the protected database.
- Database
Id string - The OCID of the protected database.
- Database
Size string - (Updatable) 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.
- map[string]interface{}
- (Updatable) 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 string - (Updatable) Defines a preferred schedule to delete a protected database after you terminate the source database.
- The default schedule is DELETE_AFTER_72_HOURS, so that the delete operation can occur 72 hours (3 days) after the source database is terminated.
- The alternate schedule is DELETE_AFTER_RETENTION_PERIOD. Specify this option if you want to delete a protected database only after the policy-defined backup retention period expires.
- map[string]interface{}
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Is
Redo boolLogs Shipped - (Updatable) 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.
- compartment
Id String - (Updatable) The OCID of the compartment that contains the protected database.
- db
Unique StringName - The dbUniqueName of the protected database in Recovery Service. You cannot change the unique name.
- display
Name String - (Updatable) The protected database name. You can change the displayName. Avoid entering confidential information.
- password String
- (Updatable) Password credential which can be used to connect to Protected Database. It must contain at least 2 uppercase, 2 lowercase, 2 numeric and 2 special characters. The special characters must be underscore (_), number sign (https://docs.cloud.oracle.com/iaas/api/#) or hyphen (-). The password must not contain the username "admin", regardless of casing.
- protection
Policy StringId - (Updatable) The OCID of the protection policy associated with the protected database.
- recovery
Service List<ProtectedSubnets Database Recovery Service Subnet> - (Updatable) List of recovery service subnet resources associated with the protected database.
- database
Id String - The OCID of the protected database.
- database
Size String - (Updatable) 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.
- Map<String,Object>
- (Updatable) 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 String - (Updatable) Defines a preferred schedule to delete a protected database after you terminate the source database.
- The default schedule is DELETE_AFTER_72_HOURS, so that the delete operation can occur 72 hours (3 days) after the source database is terminated.
- The alternate schedule is DELETE_AFTER_RETENTION_PERIOD. Specify this option if you want to delete a protected database only after the policy-defined backup retention period expires.
- Map<String,Object>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- is
Redo BooleanLogs Shipped - (Updatable) 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.
- compartment
Id string - (Updatable) The OCID of the compartment that contains the protected database.
- db
Unique stringName - The dbUniqueName of the protected database in Recovery Service. You cannot change the unique name.
- display
Name string - (Updatable) The protected database name. You can change the displayName. Avoid entering confidential information.
- password string
- (Updatable) Password credential which can be used to connect to Protected Database. It must contain at least 2 uppercase, 2 lowercase, 2 numeric and 2 special characters. The special characters must be underscore (_), number sign (https://docs.cloud.oracle.com/iaas/api/#) or hyphen (-). The password must not contain the username "admin", regardless of casing.
- protection
Policy stringId - (Updatable) The OCID of the protection policy associated with the protected database.
- recovery
Service ProtectedSubnets Database Recovery Service Subnet[] - (Updatable) List of recovery service subnet resources associated with the protected database.
- database
Id string - The OCID of the protected database.
- database
Size string - (Updatable) 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.
- {[key: string]: any}
- (Updatable) 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 string - (Updatable) Defines a preferred schedule to delete a protected database after you terminate the source database.
- The default schedule is DELETE_AFTER_72_HOURS, so that the delete operation can occur 72 hours (3 days) after the source database is terminated.
- The alternate schedule is DELETE_AFTER_RETENTION_PERIOD. Specify this option if you want to delete a protected database only after the policy-defined backup retention period expires.
- {[key: string]: any}
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- is
Redo booleanLogs Shipped - (Updatable) 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.
- compartment_
id str - (Updatable) The OCID of the compartment that contains the protected database.
- db_
unique_ strname - The dbUniqueName of the protected database in Recovery Service. You cannot change the unique name.
- display_
name str - (Updatable) The protected database name. You can change the displayName. Avoid entering confidential information.
- password str
- (Updatable) Password credential which can be used to connect to Protected Database. It must contain at least 2 uppercase, 2 lowercase, 2 numeric and 2 special characters. The special characters must be underscore (_), number sign (https://docs.cloud.oracle.com/iaas/api/#) or hyphen (-). The password must not contain the username "admin", regardless of casing.
- protection_
policy_ strid - (Updatable) The OCID of the protection policy associated with the protected database.
- recovery_
service_ Sequence[recoverymod.subnets Protected Database Recovery Service Subnet Args] - (Updatable) List of recovery service subnet resources associated with the protected database.
- database_
id str - The OCID of the protected database.
- database_
size str - (Updatable) 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.
- Mapping[str, Any]
- (Updatable) 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 - (Updatable) Defines a preferred schedule to delete a protected database after you terminate the source database.
- The default schedule is DELETE_AFTER_72_HOURS, so that the delete operation can occur 72 hours (3 days) after the source database is terminated.
- The alternate schedule is DELETE_AFTER_RETENTION_PERIOD. Specify this option if you want to delete a protected database only after the policy-defined backup retention period expires.
- Mapping[str, Any]
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- is_
redo_ boollogs_ shipped - (Updatable) 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.
- compartment
Id String - (Updatable) The OCID of the compartment that contains the protected database.
- db
Unique StringName - The dbUniqueName of the protected database in Recovery Service. You cannot change the unique name.
- display
Name String - (Updatable) The protected database name. You can change the displayName. Avoid entering confidential information.
- password String
- (Updatable) Password credential which can be used to connect to Protected Database. It must contain at least 2 uppercase, 2 lowercase, 2 numeric and 2 special characters. The special characters must be underscore (_), number sign (https://docs.cloud.oracle.com/iaas/api/#) or hyphen (-). The password must not contain the username "admin", regardless of casing.
- protection
Policy StringId - (Updatable) The OCID of the protection policy associated with the protected database.
- recovery
Service List<Property Map>Subnets - (Updatable) List of recovery service subnet resources associated with the protected database.
- database
Id String - The OCID of the protected database.
- database
Size String - (Updatable) 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.
- Map<Any>
- (Updatable) 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 String - (Updatable) Defines a preferred schedule to delete a protected database after you terminate the source database.
- The default schedule is DELETE_AFTER_72_HOURS, so that the delete operation can occur 72 hours (3 days) after the source database is terminated.
- The alternate schedule is DELETE_AFTER_RETENTION_PERIOD. Specify this option if you want to delete a protected database only after the policy-defined backup retention period expires.
- Map<Any>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- is
Redo BooleanLogs Shipped - (Updatable) 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.
Outputs
All input properties are implicitly available as output properties. Additionally, the ProtectedDatabase resource produces the following output properties:
- Health string
- Indicates the protection status of the database.
- Health
Details string - A message describing the current health of the protected database.
- Id string
- The provider-assigned unique ID for this managed resource.
- 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.
- Lifecycle
Details 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<Protected
Database Metric> - Backup performance and storage utilization metrics for the protected database.
- Policy
Locked 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.
- State string
- The current state of the Protected Database.
- Dictionary<string, object>
- 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 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 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 stringName - The virtual private catalog (VPC) user credentials that authenticates the protected database to access Recovery Service.
- Health string
- Indicates the protection status of the database.
- Health
Details string - A message describing the current health of the protected database.
- Id string
- The provider-assigned unique ID for this managed resource.
- 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.
- Lifecycle
Details 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
[]Protected
Database Metric - Backup performance and storage utilization metrics for the protected database.
- Policy
Locked 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.
- State string
- The current state of the Protected Database.
- map[string]interface{}
- 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 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 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 stringName - The virtual private catalog (VPC) user credentials that authenticates the protected database to access Recovery Service.
- health String
- Indicates the protection status of the database.
- health
Details String - A message describing the current health of the protected database.
- id String
- The provider-assigned unique ID for this managed resource.
- is
Read 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.
- lifecycle
Details 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<Protected
Database Metric> - Backup performance and storage utilization metrics for the protected database.
- policy
Locked 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.
- state String
- The current state of the Protected Database.
- Map<String,Object>
- 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 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 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 StringName - The virtual private catalog (VPC) user credentials that authenticates the protected database to access Recovery Service.
- health string
- Indicates the protection status of the database.
- health
Details string - A message describing the current health of the protected database.
- id string
- The provider-assigned unique ID for this managed resource.
- is
Read 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.
- lifecycle
Details 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
Protected
Database Metric[] - Backup performance and storage utilization metrics for the protected database.
- policy
Locked 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.
- state string
- The current state of the Protected Database.
- {[key: string]: any}
- 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 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 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 stringName - The virtual private catalog (VPC) user credentials that authenticates the protected database to access Recovery Service.
- 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 provider-assigned unique ID for this managed resource.
- 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.
- 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[recoverymod.
Protected Database Metric] - Backup performance and storage utilization metrics for the protected database.
- 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.
- state str
- The current state of the Protected Database.
- Mapping[str, Any]
- 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.
- health String
- Indicates the protection status of the database.
- health
Details String - A message describing the current health of the protected database.
- id String
- The provider-assigned unique ID for this managed resource.
- is
Read 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.
- lifecycle
Details 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.
- policy
Locked 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.
- state String
- The current state of the Protected Database.
- Map<Any>
- 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 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 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 StringName - The virtual private catalog (VPC) user credentials that authenticates the protected database to access Recovery Service.
Look up Existing ProtectedDatabase Resource
Get an existing ProtectedDatabase resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ProtectedDatabaseState, opts?: CustomResourceOptions): ProtectedDatabase
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
compartment_id: Optional[str] = None,
database_id: Optional[str] = None,
database_size: Optional[str] = None,
db_unique_name: Optional[str] = None,
defined_tags: Optional[Mapping[str, Any]] = None,
deletion_schedule: Optional[str] = None,
display_name: Optional[str] = None,
freeform_tags: Optional[Mapping[str, Any]] = None,
health: Optional[str] = None,
health_details: Optional[str] = None,
is_read_only_resource: Optional[bool] = None,
is_redo_logs_shipped: Optional[bool] = None,
lifecycle_details: Optional[str] = None,
metrics: Optional[Sequence[_recoverymod.ProtectedDatabaseMetricArgs]] = None,
password: Optional[str] = None,
policy_locked_date_time: Optional[str] = None,
protection_policy_id: Optional[str] = None,
recovery_service_subnets: Optional[Sequence[_recoverymod.ProtectedDatabaseRecoveryServiceSubnetArgs]] = None,
state: Optional[str] = None,
system_tags: Optional[Mapping[str, Any]] = None,
time_created: Optional[str] = None,
time_updated: Optional[str] = None,
vpc_user_name: Optional[str] = None) -> ProtectedDatabase
func GetProtectedDatabase(ctx *Context, name string, id IDInput, state *ProtectedDatabaseState, opts ...ResourceOption) (*ProtectedDatabase, error)
public static ProtectedDatabase Get(string name, Input<string> id, ProtectedDatabaseState? state, CustomResourceOptions? opts = null)
public static ProtectedDatabase get(String name, Output<String> id, ProtectedDatabaseState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Compartment
Id string - (Updatable) The OCID of the compartment that contains the protected database.
- Database
Id string - The OCID of the protected database.
- Database
Size string - (Updatable) 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 stringName - The dbUniqueName of the protected database in Recovery Service. You cannot change the unique name.
- Dictionary<string, object>
- (Updatable) 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 string - (Updatable) Defines a preferred schedule to delete a protected database after you terminate the source database.
- The default schedule is DELETE_AFTER_72_HOURS, so that the delete operation can occur 72 hours (3 days) after the source database is terminated.
- The alternate schedule is DELETE_AFTER_RETENTION_PERIOD. Specify this option if you want to delete a protected database only after the policy-defined backup retention period expires.
- Display
Name string - (Updatable) The protected database name. You can change the displayName. Avoid entering confidential information.
- Dictionary<string, object>
- (Updatable) 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.
- Health
Details string - A message describing the current health of the protected database.
- 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 - (Updatable) 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.
- Lifecycle
Details 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<Protected
Database Metric> - Backup performance and storage utilization metrics for the protected database.
- Password string
- (Updatable) Password credential which can be used to connect to Protected Database. It must contain at least 2 uppercase, 2 lowercase, 2 numeric and 2 special characters. The special characters must be underscore (_), number sign (https://docs.cloud.oracle.com/iaas/api/#) or hyphen (-). The password must not contain the username "admin", regardless of casing.
- Policy
Locked 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.
- Protection
Policy stringId - (Updatable) The OCID of the protection policy associated with the protected database.
- Recovery
Service List<ProtectedSubnets Database Recovery Service Subnet> - (Updatable) List of recovery service subnet resources associated with the protected database.
- State string
- The current state of the Protected Database.
- Dictionary<string, object>
- 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 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 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 stringName - The virtual private catalog (VPC) user credentials that authenticates the protected database to access Recovery Service.
- Compartment
Id string - (Updatable) The OCID of the compartment that contains the protected database.
- Database
Id string - The OCID of the protected database.
- Database
Size string - (Updatable) 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 stringName - The dbUniqueName of the protected database in Recovery Service. You cannot change the unique name.
- map[string]interface{}
- (Updatable) 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 string - (Updatable) Defines a preferred schedule to delete a protected database after you terminate the source database.
- The default schedule is DELETE_AFTER_72_HOURS, so that the delete operation can occur 72 hours (3 days) after the source database is terminated.
- The alternate schedule is DELETE_AFTER_RETENTION_PERIOD. Specify this option if you want to delete a protected database only after the policy-defined backup retention period expires.
- Display
Name string - (Updatable) The protected database name. You can change the displayName. Avoid entering confidential information.
- map[string]interface{}
- (Updatable) 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.
- Health
Details string - A message describing the current health of the protected database.
- 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 - (Updatable) 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.
- Lifecycle
Details 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
[]Protected
Database Metric Args - Backup performance and storage utilization metrics for the protected database.
- Password string
- (Updatable) Password credential which can be used to connect to Protected Database. It must contain at least 2 uppercase, 2 lowercase, 2 numeric and 2 special characters. The special characters must be underscore (_), number sign (https://docs.cloud.oracle.com/iaas/api/#) or hyphen (-). The password must not contain the username "admin", regardless of casing.
- Policy
Locked 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.
- Protection
Policy stringId - (Updatable) The OCID of the protection policy associated with the protected database.
- Recovery
Service []ProtectedSubnets Database Recovery Service Subnet Args - (Updatable) List of recovery service subnet resources associated with the protected database.
- State string
- The current state of the Protected Database.
- map[string]interface{}
- 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 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 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 stringName - The virtual private catalog (VPC) user credentials that authenticates the protected database to access Recovery Service.
- compartment
Id String - (Updatable) The OCID of the compartment that contains the protected database.
- database
Id String - The OCID of the protected database.
- database
Size String - (Updatable) 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 StringName - The dbUniqueName of the protected database in Recovery Service. You cannot change the unique name.
- Map<String,Object>
- (Updatable) 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 String - (Updatable) Defines a preferred schedule to delete a protected database after you terminate the source database.
- The default schedule is DELETE_AFTER_72_HOURS, so that the delete operation can occur 72 hours (3 days) after the source database is terminated.
- The alternate schedule is DELETE_AFTER_RETENTION_PERIOD. Specify this option if you want to delete a protected database only after the policy-defined backup retention period expires.
- display
Name String - (Updatable) The protected database name. You can change the displayName. Avoid entering confidential information.
- Map<String,Object>
- (Updatable) 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.
- health
Details String - A message describing the current health of the protected database.
- is
Read 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.
- is
Redo BooleanLogs Shipped - (Updatable) 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.
- lifecycle
Details 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<Protected
Database Metric> - Backup performance and storage utilization metrics for the protected database.
- password String
- (Updatable) Password credential which can be used to connect to Protected Database. It must contain at least 2 uppercase, 2 lowercase, 2 numeric and 2 special characters. The special characters must be underscore (_), number sign (https://docs.cloud.oracle.com/iaas/api/#) or hyphen (-). The password must not contain the username "admin", regardless of casing.
- policy
Locked 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.
- protection
Policy StringId - (Updatable) The OCID of the protection policy associated with the protected database.
- recovery
Service List<ProtectedSubnets Database Recovery Service Subnet> - (Updatable) List of recovery service subnet resources associated with the protected database.
- state String
- The current state of the Protected Database.
- Map<String,Object>
- 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 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 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 StringName - The virtual private catalog (VPC) user credentials that authenticates the protected database to access Recovery Service.
- compartment
Id string - (Updatable) The OCID of the compartment that contains the protected database.
- database
Id string - The OCID of the protected database.
- database
Size string - (Updatable) 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 stringName - The dbUniqueName of the protected database in Recovery Service. You cannot change the unique name.
- {[key: string]: any}
- (Updatable) 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 string - (Updatable) Defines a preferred schedule to delete a protected database after you terminate the source database.
- The default schedule is DELETE_AFTER_72_HOURS, so that the delete operation can occur 72 hours (3 days) after the source database is terminated.
- The alternate schedule is DELETE_AFTER_RETENTION_PERIOD. Specify this option if you want to delete a protected database only after the policy-defined backup retention period expires.
- display
Name string - (Updatable) The protected database name. You can change the displayName. Avoid entering confidential information.
- {[key: string]: any}
- (Updatable) 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.
- health
Details string - A message describing the current health of the protected database.
- is
Read 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.
- is
Redo booleanLogs Shipped - (Updatable) 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.
- lifecycle
Details 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
Protected
Database Metric[] - Backup performance and storage utilization metrics for the protected database.
- password string
- (Updatable) Password credential which can be used to connect to Protected Database. It must contain at least 2 uppercase, 2 lowercase, 2 numeric and 2 special characters. The special characters must be underscore (_), number sign (https://docs.cloud.oracle.com/iaas/api/#) or hyphen (-). The password must not contain the username "admin", regardless of casing.
- policy
Locked 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.
- protection
Policy stringId - (Updatable) The OCID of the protection policy associated with the protected database.
- recovery
Service ProtectedSubnets Database Recovery Service Subnet[] - (Updatable) List of recovery service subnet resources associated with the protected database.
- state string
- The current state of the Protected Database.
- {[key: string]: any}
- 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 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 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 stringName - The virtual private catalog (VPC) user credentials that authenticates the protected database to access Recovery Service.
- compartment_
id str - (Updatable) The OCID of the compartment that contains the protected database.
- database_
id str - The OCID of the protected database.
- database_
size str - (Updatable) 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 of the protected database in Recovery Service. You cannot change the unique name.
- Mapping[str, Any]
- (Updatable) 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 - (Updatable) Defines a preferred schedule to delete a protected database after you terminate the source database.
- The default schedule is DELETE_AFTER_72_HOURS, so that the delete operation can occur 72 hours (3 days) after the source database is terminated.
- The alternate schedule is DELETE_AFTER_RETENTION_PERIOD. Specify this option if you want to delete a protected database only after the policy-defined backup retention period expires.
- display_
name str - (Updatable) The protected database name. You can change the displayName. Avoid entering confidential information.
- Mapping[str, Any]
- (Updatable) 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.
- 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 - (Updatable) 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.
- 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[recoverymod.
Protected Database Metric Args] - Backup performance and storage utilization metrics for the protected database.
- password str
- (Updatable) Password credential which can be used to connect to Protected Database. It must contain at least 2 uppercase, 2 lowercase, 2 numeric and 2 special characters. The special characters must be underscore (_), number sign (https://docs.cloud.oracle.com/iaas/api/#) or hyphen (-). The password must not contain the username "admin", regardless of casing.
- 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 - (Updatable) The OCID of the protection policy associated with the protected database.
- recovery_
service_ Sequence[recoverymod.subnets Protected Database Recovery Service Subnet Args] - (Updatable) List of recovery service subnet resources associated with the protected database.
- state str
- The current state of the Protected Database.
- Mapping[str, Any]
- 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.
- compartment
Id String - (Updatable) The OCID of the compartment that contains the protected database.
- database
Id String - The OCID of the protected database.
- database
Size String - (Updatable) 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 StringName - The dbUniqueName of the protected database in Recovery Service. You cannot change the unique name.
- Map<Any>
- (Updatable) 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 String - (Updatable) Defines a preferred schedule to delete a protected database after you terminate the source database.
- The default schedule is DELETE_AFTER_72_HOURS, so that the delete operation can occur 72 hours (3 days) after the source database is terminated.
- The alternate schedule is DELETE_AFTER_RETENTION_PERIOD. Specify this option if you want to delete a protected database only after the policy-defined backup retention period expires.
- display
Name String - (Updatable) The protected database name. You can change the displayName. Avoid entering confidential information.
- Map<Any>
- (Updatable) 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.
- health
Details String - A message describing the current health of the protected database.
- is
Read 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.
- is
Redo BooleanLogs Shipped - (Updatable) 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.
- lifecycle
Details 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
- (Updatable) Password credential which can be used to connect to Protected Database. It must contain at least 2 uppercase, 2 lowercase, 2 numeric and 2 special characters. The special characters must be underscore (_), number sign (https://docs.cloud.oracle.com/iaas/api/#) or hyphen (-). The password must not contain the username "admin", regardless of casing.
- policy
Locked 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.
- protection
Policy StringId - (Updatable) The OCID of the protection policy associated with the protected database.
- recovery
Service List<Property Map>Subnets - (Updatable) List of recovery service subnet resources associated with the protected database.
- state String
- The current state of the Protected Database.
- Map<Any>
- 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 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 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 StringName - The virtual private catalog (VPC) user credentials that authenticates the protected database to access Recovery Service.
Supporting Types
ProtectedDatabaseMetric, ProtectedDatabaseMetricArgs
- Backup
Space 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.
- Backup
Space doubleUsed In Gbs - Backup storage space, in gigabytes, utilized by the protected database. Oracle charges for the total storage used.
- Current
Retention doublePeriod In Seconds - Number of seconds backups are currently retained for this database.
- Db
Size 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.
- 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 doubleNeeded In Days - Number of days of redo/archive to be applied to recover database.
- Retention
Period doubleIn Days - The maximum number of days to retain backups for a protected database.
- Unprotected
Window 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.
- Backup
Space 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.
- Backup
Space float64Used In Gbs - Backup storage space, in gigabytes, utilized by the protected database. Oracle charges for the total storage used.
- Current
Retention float64Period In Seconds - Number of seconds backups are currently retained for this database.
- Db
Size 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.
- 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 float64Needed In Days - Number of days of redo/archive to be applied to recover database.
- Retention
Period float64In Days - The maximum number of days to retain backups for a protected database.
- Unprotected
Window 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.
- backup
Space 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.
- backup
Space DoubleUsed In Gbs - Backup storage space, in gigabytes, utilized by the protected database. Oracle charges for the total storage used.
- current
Retention DoublePeriod In Seconds - Number of seconds backups are currently retained for this database.
- db
Size 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.
- is
Redo 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.
- minimum
Recovery DoubleNeeded In Days - Number of days of redo/archive to be applied to recover database.
- retention
Period DoubleIn Days - The maximum number of days to retain backups for a protected database.
- unprotected
Window 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.
- backup
Space 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.
- backup
Space numberUsed In Gbs - Backup storage space, in gigabytes, utilized by the protected database. Oracle charges for the total storage used.
- current
Retention numberPeriod In Seconds - Number of seconds backups are currently retained for this database.
- db
Size 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.
- is
Redo 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.
- minimum
Recovery numberNeeded In Days - Number of days of redo/archive to be applied to recover database.
- retention
Period numberIn Days - The maximum number of days to retain backups for a protected database.
- unprotected
Window 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.
- backup
Space 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.
- backup
Space NumberUsed In Gbs - Backup storage space, in gigabytes, utilized by the protected database. Oracle charges for the total storage used.
- current
Retention NumberPeriod In Seconds - Number of seconds backups are currently retained for this database.
- db
Size 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.
- is
Redo 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.
- minimum
Recovery NumberNeeded In Days - Number of days of redo/archive to be applied to recover database.
- retention
Period NumberIn Days - The maximum number of days to retain backups for a protected database.
- unprotected
Window 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.
ProtectedDatabaseRecoveryServiceSubnet, ProtectedDatabaseRecoveryServiceSubnetArgs
- Recovery
Service stringSubnet Id (Updatable) The recovery service subnet OCID.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- State string
- The current state of the Protected Database.
- Recovery
Service stringSubnet Id (Updatable) The recovery service subnet OCID.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- State string
- The current state of the Protected Database.
- recovery
Service StringSubnet Id (Updatable) The recovery service subnet OCID.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- state String
- The current state of the Protected Database.
- recovery
Service stringSubnet Id (Updatable) The recovery service subnet OCID.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- state string
- The current state of the Protected Database.
- recovery_
service_ strsubnet_ id (Updatable) The recovery service subnet OCID.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- state str
- The current state of the Protected Database.
- recovery
Service StringSubnet Id (Updatable) The recovery service subnet OCID.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- state String
- The current state of the Protected Database.
Import
ProtectedDatabases can be imported using the id
, e.g.
$ pulumi import oci:RecoveryMod/protectedDatabase:ProtectedDatabase test_protected_database "id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.