1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. RecoveryMod
  5. ProtectedDatabase
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

oci.RecoveryMod.ProtectedDatabase

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

    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("testProtectedDatabase", {
        compartmentId: _var.compartment_id,
        dbUniqueName: _var.protected_database_db_unique_name,
        displayName: _var.protected_database_display_name,
        password: _var.protected_database_password,
        protectionPolicyId: oci_recovery_protection_policy.test_protection_policy.id,
        recoveryServiceSubnets: [{
            recoveryServiceSubnetId: oci_recovery_recovery_service_subnet.test_recovery_service_subnet.id,
        }],
        databaseId: oci_database_database.test_database.id,
        databaseSize: _var.protected_database_database_size,
        definedTags: {
            "foo-namespace.bar-key": "value",
        },
        freeformTags: {
            "bar-key": "value",
        },
        isRedoLogsShipped: _var.protected_database_is_redo_logs_shipped,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_protected_database = oci.recovery_mod.ProtectedDatabase("testProtectedDatabase",
        compartment_id=var["compartment_id"],
        db_unique_name=var["protected_database_db_unique_name"],
        display_name=var["protected_database_display_name"],
        password=var["protected_database_password"],
        protection_policy_id=oci_recovery_protection_policy["test_protection_policy"]["id"],
        recovery_service_subnets=[oci.recovery_mod.ProtectedDatabaseRecoveryServiceSubnetArgs(
            recovery_service_subnet_id=oci_recovery_recovery_service_subnet["test_recovery_service_subnet"]["id"],
        )],
        database_id=oci_database_database["test_database"]["id"],
        database_size=var["protected_database_database_size"],
        defined_tags={
            "foo-namespace.bar-key": "value",
        },
        freeform_tags={
            "bar-key": "value",
        },
        is_redo_logs_shipped=var["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, "testProtectedDatabase", &RecoveryMod.ProtectedDatabaseArgs{
    			CompartmentId:      pulumi.Any(_var.Compartment_id),
    			DbUniqueName:       pulumi.Any(_var.Protected_database_db_unique_name),
    			DisplayName:        pulumi.Any(_var.Protected_database_display_name),
    			Password:           pulumi.Any(_var.Protected_database_password),
    			ProtectionPolicyId: pulumi.Any(oci_recovery_protection_policy.Test_protection_policy.Id),
    			RecoveryServiceSubnets: recoverymod.ProtectedDatabaseRecoveryServiceSubnetArray{
    				&recoverymod.ProtectedDatabaseRecoveryServiceSubnetArgs{
    					RecoveryServiceSubnetId: pulumi.Any(oci_recovery_recovery_service_subnet.Test_recovery_service_subnet.Id),
    				},
    			},
    			DatabaseId:   pulumi.Any(oci_database_database.Test_database.Id),
    			DatabaseSize: pulumi.Any(_var.Protected_database_database_size),
    			DefinedTags: pulumi.Map{
    				"foo-namespace.bar-key": pulumi.Any("value"),
    			},
    			FreeformTags: pulumi.Map{
    				"bar-key": pulumi.Any("value"),
    			},
    			IsRedoLogsShipped: pulumi.Any(_var.Protected_database_is_redo_logs_shipped),
    		})
    		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("testProtectedDatabase", new()
        {
            CompartmentId = @var.Compartment_id,
            DbUniqueName = @var.Protected_database_db_unique_name,
            DisplayName = @var.Protected_database_display_name,
            Password = @var.Protected_database_password,
            ProtectionPolicyId = oci_recovery_protection_policy.Test_protection_policy.Id,
            RecoveryServiceSubnets = new[]
            {
                new Oci.RecoveryMod.Inputs.ProtectedDatabaseRecoveryServiceSubnetArgs
                {
                    RecoveryServiceSubnetId = oci_recovery_recovery_service_subnet.Test_recovery_service_subnet.Id,
                },
            },
            DatabaseId = oci_database_database.Test_database.Id,
            DatabaseSize = @var.Protected_database_database_size,
            DefinedTags = 
            {
                { "foo-namespace.bar-key", "value" },
            },
            FreeformTags = 
            {
                { "bar-key", "value" },
            },
            IsRedoLogsShipped = @var.Protected_database_is_redo_logs_shipped,
        });
    
    });
    
    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(var_.compartment_id())
                .dbUniqueName(var_.protected_database_db_unique_name())
                .displayName(var_.protected_database_display_name())
                .password(var_.protected_database_password())
                .protectionPolicyId(oci_recovery_protection_policy.test_protection_policy().id())
                .recoveryServiceSubnets(ProtectedDatabaseRecoveryServiceSubnetArgs.builder()
                    .recoveryServiceSubnetId(oci_recovery_recovery_service_subnet.test_recovery_service_subnet().id())
                    .build())
                .databaseId(oci_database_database.test_database().id())
                .databaseSize(var_.protected_database_database_size())
                .definedTags(Map.of("foo-namespace.bar-key", "value"))
                .freeformTags(Map.of("bar-key", "value"))
                .isRedoLogsShipped(var_.protected_database_is_redo_logs_shipped())
                .build());
    
        }
    }
    
    resources:
      testProtectedDatabase:
        type: oci:RecoveryMod:ProtectedDatabase
        properties:
          #Required
          compartmentId: ${var.compartment_id}
          dbUniqueName: ${var.protected_database_db_unique_name}
          displayName: ${var.protected_database_display_name}
          password: ${var.protected_database_password}
          protectionPolicyId: ${oci_recovery_protection_policy.test_protection_policy.id}
          recoveryServiceSubnets:
            - recoveryServiceSubnetId: ${oci_recovery_recovery_service_subnet.test_recovery_service_subnet.id}
          #Optional
          databaseId: ${oci_database_database.test_database.id}
          databaseSize: ${var.protected_database_database_size}
          definedTags:
            foo-namespace.bar-key: value
          freeformTags:
            bar-key: value
          isRedoLogsShipped: ${var.protected_database_is_redo_logs_shipped}
    

    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,
                          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.

    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" },
        },
        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"),
    	},
    	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"))
        .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",
        },
        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",
        },
        freeformTags: {
            string: "any",
        },
        isRedoLogsShipped: false,
    });
    
    type: oci:RecoveryMod:ProtectedDatabase
    properties:
        compartmentId: string
        databaseId: string
        databaseSize: string
        dbUniqueName: string
        definedTags:
            string: any
        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:

    CompartmentId string
    (Updatable) The OCID of the compartment that contains the protected database.
    DbUniqueName string
    The dbUniqueName of the protected database in Recovery Service. You cannot change the unique name.
    DisplayName 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.
    ProtectionPolicyId string
    (Updatable) The OCID of the protection policy associated with the protected database.
    RecoveryServiceSubnets List<ProtectedDatabaseRecoveryServiceSubnet>
    (Updatable) List of recovery service subnet resources associated with the protected database.
    DatabaseId string
    The OCID of the protected database.
    DatabaseSize 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.
    DefinedTags 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
    FreeformTags 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"}
    IsRedoLogsShipped bool
    (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.
    CompartmentId string
    (Updatable) The OCID of the compartment that contains the protected database.
    DbUniqueName string
    The dbUniqueName of the protected database in Recovery Service. You cannot change the unique name.
    DisplayName 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.
    ProtectionPolicyId string
    (Updatable) The OCID of the protection policy associated with the protected database.
    RecoveryServiceSubnets []ProtectedDatabaseRecoveryServiceSubnetArgs
    (Updatable) List of recovery service subnet resources associated with the protected database.
    DatabaseId string
    The OCID of the protected database.
    DatabaseSize 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.
    DefinedTags 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
    FreeformTags 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"}
    IsRedoLogsShipped bool
    (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.
    compartmentId String
    (Updatable) The OCID of the compartment that contains the protected database.
    dbUniqueName String
    The dbUniqueName of the protected database in Recovery Service. You cannot change the unique name.
    displayName 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.
    protectionPolicyId String
    (Updatable) The OCID of the protection policy associated with the protected database.
    recoveryServiceSubnets List<ProtectedDatabaseRecoveryServiceSubnet>
    (Updatable) List of recovery service subnet resources associated with the protected database.
    databaseId String
    The OCID of the protected database.
    databaseSize 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.
    definedTags 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
    freeformTags 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"}
    isRedoLogsShipped Boolean
    (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.
    compartmentId string
    (Updatable) The OCID of the compartment that contains the protected database.
    dbUniqueName string
    The dbUniqueName of the protected database in Recovery Service. You cannot change the unique name.
    displayName 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.
    protectionPolicyId string
    (Updatable) The OCID of the protection policy associated with the protected database.
    recoveryServiceSubnets ProtectedDatabaseRecoveryServiceSubnet[]
    (Updatable) List of recovery service subnet resources associated with the protected database.
    databaseId string
    The OCID of the protected database.
    databaseSize 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.
    definedTags {[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
    freeformTags {[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"}
    isRedoLogsShipped boolean
    (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_name str
    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_id str
    (Updatable) The OCID of the protection policy associated with the protected database.
    recovery_service_subnets Sequence[recoverymod.ProtectedDatabaseRecoveryServiceSubnetArgs]
    (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.
    defined_tags 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
    freeform_tags 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_logs_shipped bool
    (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.
    compartmentId String
    (Updatable) The OCID of the compartment that contains the protected database.
    dbUniqueName String
    The dbUniqueName of the protected database in Recovery Service. You cannot change the unique name.
    displayName 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.
    protectionPolicyId String
    (Updatable) The OCID of the protection policy associated with the protected database.
    recoveryServiceSubnets List<Property Map>
    (Updatable) List of recovery service subnet resources associated with the protected database.
    databaseId String
    The OCID of the protected database.
    databaseSize 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.
    definedTags 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
    freeformTags 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"}
    isRedoLogsShipped Boolean
    (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. Allowed values are:

    • HEALTHY
    • WARNING
    • ALERT
    HealthDetails string
    A message describing the current health of the protected database.
    Id string
    The provider-assigned unique ID for this managed resource.
    IsReadOnlyResource 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.
    LifecycleDetails string
    Detailed description about the current lifecycle state of the protected database. For example, it can be used to provide actionable information for a resource in a Failed state.
    Metrics List<ProtectedDatabaseMetric>
    Backup performance and storage utilization metrics for the protected database.
    State string
    The current state of the Protected Database.
    SystemTags 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
    TimeCreated string
    An RFC3339 formatted datetime string that indicates the created time for a protected database. For example: '2020-05-22T21:10:29.600Z'
    TimeUpdated string
    An RFC3339 formatted datetime string that indicates the last updated time for a protected database. For example: '2020-05-22T21:10:29.600Z'
    VpcUserName string
    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. Allowed values are:

    • HEALTHY
    • WARNING
    • ALERT
    HealthDetails string
    A message describing the current health of the protected database.
    Id string
    The provider-assigned unique ID for this managed resource.
    IsReadOnlyResource 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.
    LifecycleDetails string
    Detailed description about the current lifecycle state of the protected database. For example, it can be used to provide actionable information for a resource in a Failed state.
    Metrics []ProtectedDatabaseMetric
    Backup performance and storage utilization metrics for the protected database.
    State string
    The current state of the Protected Database.
    SystemTags 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
    TimeCreated string
    An RFC3339 formatted datetime string that indicates the created time for a protected database. For example: '2020-05-22T21:10:29.600Z'
    TimeUpdated string
    An RFC3339 formatted datetime string that indicates the last updated time for a protected database. For example: '2020-05-22T21:10:29.600Z'
    VpcUserName string
    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. Allowed values are:

    • HEALTHY
    • WARNING
    • ALERT
    healthDetails String
    A message describing the current health of the protected database.
    id String
    The provider-assigned unique ID for this managed resource.
    isReadOnlyResource 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.
    lifecycleDetails String
    Detailed description about the current lifecycle state of the protected database. For example, it can be used to provide actionable information for a resource in a Failed state.
    metrics List<ProtectedDatabaseMetric>
    Backup performance and storage utilization metrics for the protected database.
    state String
    The current state of the Protected Database.
    systemTags 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
    timeCreated String
    An RFC3339 formatted datetime string that indicates the created time for a protected database. For example: '2020-05-22T21:10:29.600Z'
    timeUpdated String
    An RFC3339 formatted datetime string that indicates the last updated time for a protected database. For example: '2020-05-22T21:10:29.600Z'
    vpcUserName String
    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. Allowed values are:

    • HEALTHY
    • WARNING
    • ALERT
    healthDetails string
    A message describing the current health of the protected database.
    id string
    The provider-assigned unique ID for this managed resource.
    isReadOnlyResource 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.
    lifecycleDetails string
    Detailed description about the current lifecycle state of the protected database. For example, it can be used to provide actionable information for a resource in a Failed state.
    metrics ProtectedDatabaseMetric[]
    Backup performance and storage utilization metrics for the protected database.
    state string
    The current state of the Protected Database.
    systemTags {[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
    timeCreated string
    An RFC3339 formatted datetime string that indicates the created time for a protected database. For example: '2020-05-22T21:10:29.600Z'
    timeUpdated string
    An RFC3339 formatted datetime string that indicates the last updated time for a protected database. For example: '2020-05-22T21:10:29.600Z'
    vpcUserName string
    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. Allowed values are:

    • HEALTHY
    • WARNING
    • ALERT
    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_only_resource 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.
    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.ProtectedDatabaseMetric]
    Backup performance and storage utilization metrics for the protected database.
    state str
    The current state of the Protected Database.
    system_tags 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_name str
    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. Allowed values are:

    • HEALTHY
    • WARNING
    • ALERT
    healthDetails String
    A message describing the current health of the protected database.
    id String
    The provider-assigned unique ID for this managed resource.
    isReadOnlyResource 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.
    lifecycleDetails String
    Detailed description about the current lifecycle state of the protected database. For example, it can be used to provide actionable information for a resource in a Failed state.
    metrics List<Property Map>
    Backup performance and storage utilization metrics for the protected database.
    state String
    The current state of the Protected Database.
    systemTags 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
    timeCreated String
    An RFC3339 formatted datetime string that indicates the created time for a protected database. For example: '2020-05-22T21:10:29.600Z'
    timeUpdated String
    An RFC3339 formatted datetime string that indicates the last updated time for a protected database. For example: '2020-05-22T21:10:29.600Z'
    vpcUserName String
    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,
            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,
            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.
    The following state arguments are supported:
    CompartmentId string
    (Updatable) The OCID of the compartment that contains the protected database.
    DatabaseId string
    The OCID of the protected database.
    DatabaseSize 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.
    DbUniqueName string
    The dbUniqueName of the protected database in Recovery Service. You cannot change the unique name.
    DefinedTags 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
    DisplayName string
    (Updatable) The protected database name. You can change the displayName. Avoid entering confidential information.
    FreeformTags 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. Allowed values are:

    • HEALTHY
    • WARNING
    • ALERT
    HealthDetails string
    A message describing the current health of the protected database.
    IsReadOnlyResource bool
    Indicates whether the protected database is created by Recovery Service or created manually. Set to TRUE for a service-defined protected database. When you enable the OCI-managed automatic backups option for a database and set Recovery Service as the backup destination, then Recovery Service creates the associated protected database resource. Set to FALSE for a user-defined protected database.
    IsRedoLogsShipped bool
    (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.
    LifecycleDetails string
    Detailed description about the current lifecycle state of the protected database. For example, it can be used to provide actionable information for a resource in a Failed state.
    Metrics List<ProtectedDatabaseMetric>
    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.
    ProtectionPolicyId string
    (Updatable) The OCID of the protection policy associated with the protected database.
    RecoveryServiceSubnets List<ProtectedDatabaseRecoveryServiceSubnet>
    (Updatable) List of recovery service subnet resources associated with the protected database.
    State string
    The current state of the Protected Database.
    SystemTags 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
    TimeCreated string
    An RFC3339 formatted datetime string that indicates the created time for a protected database. For example: '2020-05-22T21:10:29.600Z'
    TimeUpdated string
    An RFC3339 formatted datetime string that indicates the last updated time for a protected database. For example: '2020-05-22T21:10:29.600Z'
    VpcUserName string
    The virtual private catalog (VPC) user credentials that authenticates the protected database to access Recovery Service.
    CompartmentId string
    (Updatable) The OCID of the compartment that contains the protected database.
    DatabaseId string
    The OCID of the protected database.
    DatabaseSize 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.
    DbUniqueName string
    The dbUniqueName of the protected database in Recovery Service. You cannot change the unique name.
    DefinedTags 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
    DisplayName string
    (Updatable) The protected database name. You can change the displayName. Avoid entering confidential information.
    FreeformTags 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. Allowed values are:

    • HEALTHY
    • WARNING
    • ALERT
    HealthDetails string
    A message describing the current health of the protected database.
    IsReadOnlyResource bool
    Indicates whether the protected database is created by Recovery Service or created manually. Set to TRUE for a service-defined protected database. When you enable the OCI-managed automatic backups option for a database and set Recovery Service as the backup destination, then Recovery Service creates the associated protected database resource. Set to FALSE for a user-defined protected database.
    IsRedoLogsShipped bool
    (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.
    LifecycleDetails string
    Detailed description about the current lifecycle state of the protected database. For example, it can be used to provide actionable information for a resource in a Failed state.
    Metrics []ProtectedDatabaseMetricArgs
    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.
    ProtectionPolicyId string
    (Updatable) The OCID of the protection policy associated with the protected database.
    RecoveryServiceSubnets []ProtectedDatabaseRecoveryServiceSubnetArgs
    (Updatable) List of recovery service subnet resources associated with the protected database.
    State string
    The current state of the Protected Database.
    SystemTags 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
    TimeCreated string
    An RFC3339 formatted datetime string that indicates the created time for a protected database. For example: '2020-05-22T21:10:29.600Z'
    TimeUpdated string
    An RFC3339 formatted datetime string that indicates the last updated time for a protected database. For example: '2020-05-22T21:10:29.600Z'
    VpcUserName string
    The virtual private catalog (VPC) user credentials that authenticates the protected database to access Recovery Service.
    compartmentId String
    (Updatable) The OCID of the compartment that contains the protected database.
    databaseId String
    The OCID of the protected database.
    databaseSize 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.
    dbUniqueName String
    The dbUniqueName of the protected database in Recovery Service. You cannot change the unique name.
    definedTags 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
    displayName String
    (Updatable) The protected database name. You can change the displayName. Avoid entering confidential information.
    freeformTags 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. Allowed values are:

    • HEALTHY
    • WARNING
    • ALERT
    healthDetails String
    A message describing the current health of the protected database.
    isReadOnlyResource Boolean
    Indicates whether the protected database is created by Recovery Service or created manually. Set to TRUE for a service-defined protected database. When you enable the OCI-managed automatic backups option for a database and set Recovery Service as the backup destination, then Recovery Service creates the associated protected database resource. Set to FALSE for a user-defined protected database.
    isRedoLogsShipped Boolean
    (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.
    lifecycleDetails String
    Detailed description about the current lifecycle state of the protected database. For example, it can be used to provide actionable information for a resource in a Failed state.
    metrics List<ProtectedDatabaseMetric>
    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.
    protectionPolicyId String
    (Updatable) The OCID of the protection policy associated with the protected database.
    recoveryServiceSubnets List<ProtectedDatabaseRecoveryServiceSubnet>
    (Updatable) List of recovery service subnet resources associated with the protected database.
    state String
    The current state of the Protected Database.
    systemTags 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
    timeCreated String
    An RFC3339 formatted datetime string that indicates the created time for a protected database. For example: '2020-05-22T21:10:29.600Z'
    timeUpdated String
    An RFC3339 formatted datetime string that indicates the last updated time for a protected database. For example: '2020-05-22T21:10:29.600Z'
    vpcUserName String
    The virtual private catalog (VPC) user credentials that authenticates the protected database to access Recovery Service.
    compartmentId string
    (Updatable) The OCID of the compartment that contains the protected database.
    databaseId string
    The OCID of the protected database.
    databaseSize 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.
    dbUniqueName string
    The dbUniqueName of the protected database in Recovery Service. You cannot change the unique name.
    definedTags {[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
    displayName string
    (Updatable) The protected database name. You can change the displayName. Avoid entering confidential information.
    freeformTags {[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. Allowed values are:

    • HEALTHY
    • WARNING
    • ALERT
    healthDetails string
    A message describing the current health of the protected database.
    isReadOnlyResource boolean
    Indicates whether the protected database is created by Recovery Service or created manually. Set to TRUE for a service-defined protected database. When you enable the OCI-managed automatic backups option for a database and set Recovery Service as the backup destination, then Recovery Service creates the associated protected database resource. Set to FALSE for a user-defined protected database.
    isRedoLogsShipped boolean
    (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.
    lifecycleDetails string
    Detailed description about the current lifecycle state of the protected database. For example, it can be used to provide actionable information for a resource in a Failed state.
    metrics ProtectedDatabaseMetric[]
    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.
    protectionPolicyId string
    (Updatable) The OCID of the protection policy associated with the protected database.
    recoveryServiceSubnets ProtectedDatabaseRecoveryServiceSubnet[]
    (Updatable) List of recovery service subnet resources associated with the protected database.
    state string
    The current state of the Protected Database.
    systemTags {[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
    timeCreated string
    An RFC3339 formatted datetime string that indicates the created time for a protected database. For example: '2020-05-22T21:10:29.600Z'
    timeUpdated string
    An RFC3339 formatted datetime string that indicates the last updated time for a protected database. For example: '2020-05-22T21:10:29.600Z'
    vpcUserName string
    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_name str
    The dbUniqueName of the protected database in Recovery Service. You cannot change the unique name.
    defined_tags 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
    display_name str
    (Updatable) The protected database name. You can change the displayName. Avoid entering confidential information.
    freeform_tags 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. Allowed values are:

    • HEALTHY
    • WARNING
    • ALERT
    health_details str
    A message describing the current health of the protected database.
    is_read_only_resource 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 bool
    (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.ProtectedDatabaseMetricArgs]
    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.
    protection_policy_id str
    (Updatable) The OCID of the protection policy associated with the protected database.
    recovery_service_subnets Sequence[recoverymod.ProtectedDatabaseRecoveryServiceSubnetArgs]
    (Updatable) List of recovery service subnet resources associated with the protected database.
    state str
    The current state of the Protected Database.
    system_tags 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_name str
    The virtual private catalog (VPC) user credentials that authenticates the protected database to access Recovery Service.
    compartmentId String
    (Updatable) The OCID of the compartment that contains the protected database.
    databaseId String
    The OCID of the protected database.
    databaseSize 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.
    dbUniqueName String
    The dbUniqueName of the protected database in Recovery Service. You cannot change the unique name.
    definedTags 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
    displayName String
    (Updatable) The protected database name. You can change the displayName. Avoid entering confidential information.
    freeformTags 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. Allowed values are:

    • HEALTHY
    • WARNING
    • ALERT
    healthDetails String
    A message describing the current health of the protected database.
    isReadOnlyResource Boolean
    Indicates whether the protected database is created by Recovery Service or created manually. Set to TRUE for a service-defined protected database. When you enable the OCI-managed automatic backups option for a database and set Recovery Service as the backup destination, then Recovery Service creates the associated protected database resource. Set to FALSE for a user-defined protected database.
    isRedoLogsShipped Boolean
    (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.
    lifecycleDetails String
    Detailed description about the current lifecycle state of the protected database. For example, it can be used to provide actionable information for a resource in a Failed state.
    metrics List<Property Map>
    Backup performance and storage utilization metrics for the protected database.
    password String
    (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.
    protectionPolicyId String
    (Updatable) The OCID of the protection policy associated with the protected database.
    recoveryServiceSubnets List<Property Map>
    (Updatable) List of recovery service subnet resources associated with the protected database.
    state String
    The current state of the Protected Database.
    systemTags 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
    timeCreated String
    An RFC3339 formatted datetime string that indicates the created time for a protected database. For example: '2020-05-22T21:10:29.600Z'
    timeUpdated String
    An RFC3339 formatted datetime string that indicates the last updated time for a protected database. For example: '2020-05-22T21:10:29.600Z'
    vpcUserName String
    The virtual private catalog (VPC) user credentials that authenticates the protected database to access Recovery Service.

    Supporting Types

    ProtectedDatabaseMetric, ProtectedDatabaseMetricArgs

    BackupSpaceEstimateInGbs double
    The estimated backup storage space, in gigabytes, required to meet the recovery window goal, including foot print and backups for the protected database.
    BackupSpaceUsedInGbs double
    Backup storage space, in gigabytes, utilized by the protected database. Oracle charges for the total storage used.
    CurrentRetentionPeriodInSeconds double
    Number of seconds backups are currently retained for this database.
    DbSizeInGbs double
    The estimated space, in gigabytes, consumed by the protected database. The database size is based on the size of the data files in the catalog, and does not include archive logs.
    IsRedoLogsEnabled 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.
    RetentionPeriodInDays double
    The maximum number of days to retain backups for a protected database.
    UnprotectedWindowInSeconds double
    This is the time window when there is data loss exposure. The point after which recovery is impossible unless additional redo is available. This is the time we received the last backup or last redo-log shipped.
    BackupSpaceEstimateInGbs float64
    The estimated backup storage space, in gigabytes, required to meet the recovery window goal, including foot print and backups for the protected database.
    BackupSpaceUsedInGbs float64
    Backup storage space, in gigabytes, utilized by the protected database. Oracle charges for the total storage used.
    CurrentRetentionPeriodInSeconds float64
    Number of seconds backups are currently retained for this database.
    DbSizeInGbs float64
    The estimated space, in gigabytes, consumed by the protected database. The database size is based on the size of the data files in the catalog, and does not include archive logs.
    IsRedoLogsEnabled 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.
    RetentionPeriodInDays float64
    The maximum number of days to retain backups for a protected database.
    UnprotectedWindowInSeconds float64
    This is the time window when there is data loss exposure. The point after which recovery is impossible unless additional redo is available. This is the time we received the last backup or last redo-log shipped.
    backupSpaceEstimateInGbs Double
    The estimated backup storage space, in gigabytes, required to meet the recovery window goal, including foot print and backups for the protected database.
    backupSpaceUsedInGbs Double
    Backup storage space, in gigabytes, utilized by the protected database. Oracle charges for the total storage used.
    currentRetentionPeriodInSeconds Double
    Number of seconds backups are currently retained for this database.
    dbSizeInGbs Double
    The estimated space, in gigabytes, consumed by the protected database. The database size is based on the size of the data files in the catalog, and does not include archive logs.
    isRedoLogsEnabled 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.
    retentionPeriodInDays Double
    The maximum number of days to retain backups for a protected database.
    unprotectedWindowInSeconds Double
    This is the time window when there is data loss exposure. The point after which recovery is impossible unless additional redo is available. This is the time we received the last backup or last redo-log shipped.
    backupSpaceEstimateInGbs number
    The estimated backup storage space, in gigabytes, required to meet the recovery window goal, including foot print and backups for the protected database.
    backupSpaceUsedInGbs number
    Backup storage space, in gigabytes, utilized by the protected database. Oracle charges for the total storage used.
    currentRetentionPeriodInSeconds number
    Number of seconds backups are currently retained for this database.
    dbSizeInGbs number
    The estimated space, in gigabytes, consumed by the protected database. The database size is based on the size of the data files in the catalog, and does not include archive logs.
    isRedoLogsEnabled 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.
    retentionPeriodInDays number
    The maximum number of days to retain backups for a protected database.
    unprotectedWindowInSeconds 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 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 float
    Backup storage space, in gigabytes, utilized by the protected database. Oracle charges for the total storage used.
    current_retention_period_in_seconds float
    Number of seconds backups are currently retained for this database.
    db_size_in_gbs 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 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.
    retention_period_in_days float
    The maximum number of days to retain backups for a protected database.
    unprotected_window_in_seconds float
    This is the time window when there is data loss exposure. The point after which recovery is impossible unless additional redo is available. This is the time we received the last backup or last redo-log shipped.
    backupSpaceEstimateInGbs Number
    The estimated backup storage space, in gigabytes, required to meet the recovery window goal, including foot print and backups for the protected database.
    backupSpaceUsedInGbs Number
    Backup storage space, in gigabytes, utilized by the protected database. Oracle charges for the total storage used.
    currentRetentionPeriodInSeconds Number
    Number of seconds backups are currently retained for this database.
    dbSizeInGbs Number
    The estimated space, in gigabytes, consumed by the protected database. The database size is based on the size of the data files in the catalog, and does not include archive logs.
    isRedoLogsEnabled 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.
    retentionPeriodInDays Number
    The maximum number of days to retain backups for a protected database.
    unprotectedWindowInSeconds 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.

    ProtectedDatabaseRecoveryServiceSubnet, ProtectedDatabaseRecoveryServiceSubnetArgs

    RecoveryServiceSubnetId string

    (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.
    RecoveryServiceSubnetId string

    (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.
    recoveryServiceSubnetId String

    (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.
    recoveryServiceSubnetId string

    (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_subnet_id str

    (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.
    recoveryServiceSubnetId String

    (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.
    oci logo
    Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi