1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DisasterRecovery
  5. DrProtectionGroup
Oracle Cloud Infrastructure v1.10.0 published on Thursday, Sep 7, 2023 by Pulumi

oci.DisasterRecovery.DrProtectionGroup

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.10.0 published on Thursday, Sep 7, 2023 by Pulumi

    This resource provides the Dr Protection Group resource in Oracle Cloud Infrastructure Disaster Recovery service.

    Create a new DR Protection Group.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testDrProtectionGroup = new Oci.DisasterRecovery.DrProtectionGroup("testDrProtectionGroup", new()
        {
            CompartmentId = @var.Compartment_id,
            DisplayName = @var.Dr_protection_group_display_name,
            LogLocation = new Oci.DisasterRecovery.Inputs.DrProtectionGroupLogLocationArgs
            {
                Bucket = @var.Dr_protection_group_log_location_bucket,
                Namespace = @var.Dr_protection_group_log_location_namespace,
            },
            Association = new Oci.DisasterRecovery.Inputs.DrProtectionGroupAssociationArgs
            {
                Role = @var.Dr_protection_group_association_role,
                PeerId = oci_blockchain_peer.Test_peer.Id,
                PeerRegion = @var.Dr_protection_group_association_peer_region,
            },
            DefinedTags = 
            {
                { "Operations.CostCenter", "42" },
            },
            FreeformTags = 
            {
                { "Department", "Finance" },
            },
            Members = new[]
            {
                new Oci.DisasterRecovery.Inputs.DrProtectionGroupMemberArgs
                {
                    MemberId = oci_disaster_recovery_member.Test_member.Id,
                    MemberType = @var.Dr_protection_group_members_member_type,
                    DestinationCapacityReservationId = oci_disaster_recovery_destination_capacity_reservation.Test_destination_capacity_reservation.Id,
                    DestinationCompartmentId = oci_identity_compartment.Test_compartment.Id,
                    DestinationDedicatedVmHostId = oci_core_dedicated_vm_host.Test_dedicated_vm_host.Id,
                    IsMovable = @var.Dr_protection_group_members_is_movable,
                    IsRetainFaultDomain = @var.Dr_protection_group_members_is_retain_fault_domain,
                    PasswordVaultSecretId = oci_vault_secret.Test_secret.Id,
                    VnicMappings = new[]
                    {
                        new Oci.DisasterRecovery.Inputs.DrProtectionGroupMemberVnicMappingArgs
                        {
                            DestinationNsgIdLists = @var.Dr_protection_group_members_vnic_mapping_destination_nsg_id_list,
                            DestinationPrimaryPrivateIpAddress = @var.Dr_protection_group_members_vnic_mapping_destination_primary_private_ip_address,
                            DestinationPrimaryPrivateIpHostnameLabel = @var.Dr_protection_group_members_vnic_mapping_destination_primary_private_ip_hostname_label,
                            DestinationSubnetId = oci_core_subnet.Test_subnet.Id,
                            SourceVnicId = oci_core_vnic.Test_vnic.Id,
                        },
                    },
                    VnicMappings = new[]
                    {
                        new Oci.DisasterRecovery.Inputs.DrProtectionGroupMemberVnicMappingArgs
                        {
                            DestinationNsgIdLists = @var.Dr_protection_group_members_vnic_mappings_destination_nsg_id_list,
                            DestinationPrimaryPrivateIpAddress = @var.Dr_protection_group_members_vnic_mappings_destination_primary_private_ip_address,
                            DestinationPrimaryPrivateIpHostnameLabel = @var.Dr_protection_group_members_vnic_mappings_destination_primary_private_ip_hostname_label,
                            DestinationSubnetId = oci_core_subnet.Test_subnet.Id,
                            SourceVnicId = oci_core_vnic.Test_vnic.Id,
                        },
                    },
                },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/DisasterRecovery"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := DisasterRecovery.NewDrProtectionGroup(ctx, "testDrProtectionGroup", &DisasterRecovery.DrProtectionGroupArgs{
    			CompartmentId: pulumi.Any(_var.Compartment_id),
    			DisplayName:   pulumi.Any(_var.Dr_protection_group_display_name),
    			LogLocation: &disasterrecovery.DrProtectionGroupLogLocationArgs{
    				Bucket:    pulumi.Any(_var.Dr_protection_group_log_location_bucket),
    				Namespace: pulumi.Any(_var.Dr_protection_group_log_location_namespace),
    			},
    			Association: &disasterrecovery.DrProtectionGroupAssociationArgs{
    				Role:       pulumi.Any(_var.Dr_protection_group_association_role),
    				PeerId:     pulumi.Any(oci_blockchain_peer.Test_peer.Id),
    				PeerRegion: pulumi.Any(_var.Dr_protection_group_association_peer_region),
    			},
    			DefinedTags: pulumi.AnyMap{
    				"Operations.CostCenter": pulumi.Any("42"),
    			},
    			FreeformTags: pulumi.AnyMap{
    				"Department": pulumi.Any("Finance"),
    			},
    			Members: disasterrecovery.DrProtectionGroupMemberArray{
    				&disasterrecovery.DrProtectionGroupMemberArgs{
    					MemberId:                         pulumi.Any(oci_disaster_recovery_member.Test_member.Id),
    					MemberType:                       pulumi.Any(_var.Dr_protection_group_members_member_type),
    					DestinationCapacityReservationId: pulumi.Any(oci_disaster_recovery_destination_capacity_reservation.Test_destination_capacity_reservation.Id),
    					DestinationCompartmentId:         pulumi.Any(oci_identity_compartment.Test_compartment.Id),
    					DestinationDedicatedVmHostId:     pulumi.Any(oci_core_dedicated_vm_host.Test_dedicated_vm_host.Id),
    					IsMovable:                        pulumi.Any(_var.Dr_protection_group_members_is_movable),
    					IsRetainFaultDomain:              pulumi.Any(_var.Dr_protection_group_members_is_retain_fault_domain),
    					PasswordVaultSecretId:            pulumi.Any(oci_vault_secret.Test_secret.Id),
    					VnicMappings: disasterrecovery.DrProtectionGroupMemberVnicMappingArray{
    						&disasterrecovery.DrProtectionGroupMemberVnicMappingArgs{
    							DestinationNsgIdLists:                    pulumi.Any(_var.Dr_protection_group_members_vnic_mapping_destination_nsg_id_list),
    							DestinationPrimaryPrivateIpAddress:       pulumi.Any(_var.Dr_protection_group_members_vnic_mapping_destination_primary_private_ip_address),
    							DestinationPrimaryPrivateIpHostnameLabel: pulumi.Any(_var.Dr_protection_group_members_vnic_mapping_destination_primary_private_ip_hostname_label),
    							DestinationSubnetId:                      pulumi.Any(oci_core_subnet.Test_subnet.Id),
    							SourceVnicId:                             pulumi.Any(oci_core_vnic.Test_vnic.Id),
    						},
    					},
    					VnicMappings: disasterrecovery.DrProtectionGroupMemberVnicMappingArray{
    						&disasterrecovery.DrProtectionGroupMemberVnicMappingArgs{
    							DestinationNsgIdLists:                    pulumi.Any(_var.Dr_protection_group_members_vnic_mappings_destination_nsg_id_list),
    							DestinationPrimaryPrivateIpAddress:       pulumi.Any(_var.Dr_protection_group_members_vnic_mappings_destination_primary_private_ip_address),
    							DestinationPrimaryPrivateIpHostnameLabel: pulumi.Any(_var.Dr_protection_group_members_vnic_mappings_destination_primary_private_ip_hostname_label),
    							DestinationSubnetId:                      pulumi.Any(oci_core_subnet.Test_subnet.Id),
    							SourceVnicId:                             pulumi.Any(oci_core_vnic.Test_vnic.Id),
    						},
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.DisasterRecovery.DrProtectionGroup;
    import com.pulumi.oci.DisasterRecovery.DrProtectionGroupArgs;
    import com.pulumi.oci.DisasterRecovery.inputs.DrProtectionGroupLogLocationArgs;
    import com.pulumi.oci.DisasterRecovery.inputs.DrProtectionGroupAssociationArgs;
    import com.pulumi.oci.DisasterRecovery.inputs.DrProtectionGroupMemberArgs;
    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 testDrProtectionGroup = new DrProtectionGroup("testDrProtectionGroup", DrProtectionGroupArgs.builder()        
                .compartmentId(var_.compartment_id())
                .displayName(var_.dr_protection_group_display_name())
                .logLocation(DrProtectionGroupLogLocationArgs.builder()
                    .bucket(var_.dr_protection_group_log_location_bucket())
                    .namespace(var_.dr_protection_group_log_location_namespace())
                    .build())
                .association(DrProtectionGroupAssociationArgs.builder()
                    .role(var_.dr_protection_group_association_role())
                    .peerId(oci_blockchain_peer.test_peer().id())
                    .peerRegion(var_.dr_protection_group_association_peer_region())
                    .build())
                .definedTags(Map.of("Operations.CostCenter", "42"))
                .freeformTags(Map.of("Department", "Finance"))
                .members(DrProtectionGroupMemberArgs.builder()
                    .memberId(oci_disaster_recovery_member.test_member().id())
                    .memberType(var_.dr_protection_group_members_member_type())
                    .destinationCapacityReservationId(oci_disaster_recovery_destination_capacity_reservation.test_destination_capacity_reservation().id())
                    .destinationCompartmentId(oci_identity_compartment.test_compartment().id())
                    .destinationDedicatedVmHostId(oci_core_dedicated_vm_host.test_dedicated_vm_host().id())
                    .isMovable(var_.dr_protection_group_members_is_movable())
                    .isRetainFaultDomain(var_.dr_protection_group_members_is_retain_fault_domain())
                    .passwordVaultSecretId(oci_vault_secret.test_secret().id())
                    .vnicMappings(DrProtectionGroupMemberVnicMappingArgs.builder()
                        .destinationNsgIdLists(var_.dr_protection_group_members_vnic_mapping_destination_nsg_id_list())
                        .destinationPrimaryPrivateIpAddress(var_.dr_protection_group_members_vnic_mapping_destination_primary_private_ip_address())
                        .destinationPrimaryPrivateIpHostnameLabel(var_.dr_protection_group_members_vnic_mapping_destination_primary_private_ip_hostname_label())
                        .destinationSubnetId(oci_core_subnet.test_subnet().id())
                        .sourceVnicId(oci_core_vnic.test_vnic().id())
                        .build())
                    .vnicMappings(DrProtectionGroupMemberVnicMappingArgs.builder()
                        .destinationNsgIdLists(var_.dr_protection_group_members_vnic_mappings_destination_nsg_id_list())
                        .destinationPrimaryPrivateIpAddress(var_.dr_protection_group_members_vnic_mappings_destination_primary_private_ip_address())
                        .destinationPrimaryPrivateIpHostnameLabel(var_.dr_protection_group_members_vnic_mappings_destination_primary_private_ip_hostname_label())
                        .destinationSubnetId(oci_core_subnet.test_subnet().id())
                        .sourceVnicId(oci_core_vnic.test_vnic().id())
                        .build())
                    .build())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_oci as oci
    
    test_dr_protection_group = oci.disaster_recovery.DrProtectionGroup("testDrProtectionGroup",
        compartment_id=var["compartment_id"],
        display_name=var["dr_protection_group_display_name"],
        log_location=oci.disaster_recovery.DrProtectionGroupLogLocationArgs(
            bucket=var["dr_protection_group_log_location_bucket"],
            namespace=var["dr_protection_group_log_location_namespace"],
        ),
        association=oci.disaster_recovery.DrProtectionGroupAssociationArgs(
            role=var["dr_protection_group_association_role"],
            peer_id=oci_blockchain_peer["test_peer"]["id"],
            peer_region=var["dr_protection_group_association_peer_region"],
        ),
        defined_tags={
            "Operations.CostCenter": "42",
        },
        freeform_tags={
            "Department": "Finance",
        },
        members=[oci.disaster_recovery.DrProtectionGroupMemberArgs(
            member_id=oci_disaster_recovery_member["test_member"]["id"],
            member_type=var["dr_protection_group_members_member_type"],
            destination_capacity_reservation_id=oci_disaster_recovery_destination_capacity_reservation["test_destination_capacity_reservation"]["id"],
            destination_compartment_id=oci_identity_compartment["test_compartment"]["id"],
            destination_dedicated_vm_host_id=oci_core_dedicated_vm_host["test_dedicated_vm_host"]["id"],
            is_movable=var["dr_protection_group_members_is_movable"],
            is_retain_fault_domain=var["dr_protection_group_members_is_retain_fault_domain"],
            password_vault_secret_id=oci_vault_secret["test_secret"]["id"],
            vnic_mappings=[oci.disaster_recovery.DrProtectionGroupMemberVnicMappingArgs(
                destination_nsg_id_lists=var["dr_protection_group_members_vnic_mapping_destination_nsg_id_list"],
                destination_primary_private_ip_address=var["dr_protection_group_members_vnic_mapping_destination_primary_private_ip_address"],
                destination_primary_private_ip_hostname_label=var["dr_protection_group_members_vnic_mapping_destination_primary_private_ip_hostname_label"],
                destination_subnet_id=oci_core_subnet["test_subnet"]["id"],
                source_vnic_id=oci_core_vnic["test_vnic"]["id"],
            )],
            vnic_mappings=[oci.disaster_recovery.DrProtectionGroupMemberVnicMappingArgs(
                destination_nsg_id_lists=var["dr_protection_group_members_vnic_mappings_destination_nsg_id_list"],
                destination_primary_private_ip_address=var["dr_protection_group_members_vnic_mappings_destination_primary_private_ip_address"],
                destination_primary_private_ip_hostname_label=var["dr_protection_group_members_vnic_mappings_destination_primary_private_ip_hostname_label"],
                destination_subnet_id=oci_core_subnet["test_subnet"]["id"],
                source_vnic_id=oci_core_vnic["test_vnic"]["id"],
            )],
        )])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testDrProtectionGroup = new oci.disasterrecovery.DrProtectionGroup("testDrProtectionGroup", {
        compartmentId: _var.compartment_id,
        displayName: _var.dr_protection_group_display_name,
        logLocation: {
            bucket: _var.dr_protection_group_log_location_bucket,
            namespace: _var.dr_protection_group_log_location_namespace,
        },
        association: {
            role: _var.dr_protection_group_association_role,
            peerId: oci_blockchain_peer.test_peer.id,
            peerRegion: _var.dr_protection_group_association_peer_region,
        },
        definedTags: {
            "Operations.CostCenter": "42",
        },
        freeformTags: {
            Department: "Finance",
        },
        members: [{
            memberId: oci_disaster_recovery_member.test_member.id,
            memberType: _var.dr_protection_group_members_member_type,
            destinationCapacityReservationId: oci_disaster_recovery_destination_capacity_reservation.test_destination_capacity_reservation.id,
            destinationCompartmentId: oci_identity_compartment.test_compartment.id,
            destinationDedicatedVmHostId: oci_core_dedicated_vm_host.test_dedicated_vm_host.id,
            isMovable: _var.dr_protection_group_members_is_movable,
            isRetainFaultDomain: _var.dr_protection_group_members_is_retain_fault_domain,
            passwordVaultSecretId: oci_vault_secret.test_secret.id,
            vnicMappings: [{
                destinationNsgIdLists: _var.dr_protection_group_members_vnic_mapping_destination_nsg_id_list,
                destinationPrimaryPrivateIpAddress: _var.dr_protection_group_members_vnic_mapping_destination_primary_private_ip_address,
                destinationPrimaryPrivateIpHostnameLabel: _var.dr_protection_group_members_vnic_mapping_destination_primary_private_ip_hostname_label,
                destinationSubnetId: oci_core_subnet.test_subnet.id,
                sourceVnicId: oci_core_vnic.test_vnic.id,
            }],
            vnicMappings: [{
                destinationNsgIdLists: _var.dr_protection_group_members_vnic_mappings_destination_nsg_id_list,
                destinationPrimaryPrivateIpAddress: _var.dr_protection_group_members_vnic_mappings_destination_primary_private_ip_address,
                destinationPrimaryPrivateIpHostnameLabel: _var.dr_protection_group_members_vnic_mappings_destination_primary_private_ip_hostname_label,
                destinationSubnetId: oci_core_subnet.test_subnet.id,
                sourceVnicId: oci_core_vnic.test_vnic.id,
            }],
        }],
    });
    
    resources:
      testDrProtectionGroup:
        type: oci:DisasterRecovery:DrProtectionGroup
        properties:
          #Required
          compartmentId: ${var.compartment_id}
          displayName: ${var.dr_protection_group_display_name}
          logLocation:
            bucket: ${var.dr_protection_group_log_location_bucket}
            namespace: ${var.dr_protection_group_log_location_namespace}
          association:
            role: ${var.dr_protection_group_association_role}
            peerId: ${oci_blockchain_peer.test_peer.id}
            peerRegion: ${var.dr_protection_group_association_peer_region}
          definedTags:
            Operations.CostCenter: '42'
          freeformTags:
            Department: Finance
          members:
            - memberId: ${oci_disaster_recovery_member.test_member.id}
              memberType: ${var.dr_protection_group_members_member_type}
              destinationCapacityReservationId: ${oci_disaster_recovery_destination_capacity_reservation.test_destination_capacity_reservation.id}
              destinationCompartmentId: ${oci_identity_compartment.test_compartment.id}
              destinationDedicatedVmHostId: ${oci_core_dedicated_vm_host.test_dedicated_vm_host.id}
              isMovable: ${var.dr_protection_group_members_is_movable}
              isRetainFaultDomain: ${var.dr_protection_group_members_is_retain_fault_domain}
              passwordVaultSecretId: ${oci_vault_secret.test_secret.id}
              vnicMappings:
                - destinationNsgIdLists: ${var.dr_protection_group_members_vnic_mapping_destination_nsg_id_list}
                  destinationPrimaryPrivateIpAddress: ${var.dr_protection_group_members_vnic_mapping_destination_primary_private_ip_address}
                  destinationPrimaryPrivateIpHostnameLabel: ${var.dr_protection_group_members_vnic_mapping_destination_primary_private_ip_hostname_label}
                  destinationSubnetId: ${oci_core_subnet.test_subnet.id}
                  sourceVnicId: ${oci_core_vnic.test_vnic.id}
              vnicMappings:
                - destinationNsgIdLists: ${var.dr_protection_group_members_vnic_mappings_destination_nsg_id_list}
                  destinationPrimaryPrivateIpAddress: ${var.dr_protection_group_members_vnic_mappings_destination_primary_private_ip_address}
                  destinationPrimaryPrivateIpHostnameLabel: ${var.dr_protection_group_members_vnic_mappings_destination_primary_private_ip_hostname_label}
                  destinationSubnetId: ${oci_core_subnet.test_subnet.id}
                  sourceVnicId: ${oci_core_vnic.test_vnic.id}
    

    Create DrProtectionGroup Resource

    new DrProtectionGroup(name: string, args: DrProtectionGroupArgs, opts?: CustomResourceOptions);
    @overload
    def DrProtectionGroup(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          association: Optional[_disasterrecovery.DrProtectionGroupAssociationArgs] = None,
                          compartment_id: Optional[str] = None,
                          defined_tags: Optional[Mapping[str, Any]] = None,
                          disassociate_trigger: Optional[int] = None,
                          display_name: Optional[str] = None,
                          freeform_tags: Optional[Mapping[str, Any]] = None,
                          log_location: Optional[_disasterrecovery.DrProtectionGroupLogLocationArgs] = None,
                          members: Optional[Sequence[_disasterrecovery.DrProtectionGroupMemberArgs]] = None)
    @overload
    def DrProtectionGroup(resource_name: str,
                          args: DrProtectionGroupArgs,
                          opts: Optional[ResourceOptions] = None)
    func NewDrProtectionGroup(ctx *Context, name string, args DrProtectionGroupArgs, opts ...ResourceOption) (*DrProtectionGroup, error)
    public DrProtectionGroup(string name, DrProtectionGroupArgs args, CustomResourceOptions? opts = null)
    public DrProtectionGroup(String name, DrProtectionGroupArgs args)
    public DrProtectionGroup(String name, DrProtectionGroupArgs args, CustomResourceOptions options)
    
    type: oci:DisasterRecovery:DrProtectionGroup
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args DrProtectionGroupArgs
    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 DrProtectionGroupArgs
    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 DrProtectionGroupArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DrProtectionGroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DrProtectionGroupArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    DrProtectionGroup 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 DrProtectionGroup resource accepts the following input properties:

    CompartmentId string

    (Updatable) The OCID of the compartment in which to create the DR Protection Group. Example: ocid1.compartment.oc1..<unique_id>

    DisplayName string

    (Updatable) The display name of the DR Protection Group. Example: EBS PHX DRPG

    LogLocation DrProtectionGroupLogLocation

    (Updatable) Information about creating an Object Storage log location for a DR Protection Group.

    Association DrProtectionGroupAssociation

    The details for associating this DR Protection Group with a peer (remote) DR Protection Group.

    DefinedTags Dictionary<string, object>

    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"Operations.CostCenter": "42"}

    DisassociateTrigger int

    (Updatable) An optional property when incremented triggers Disassociate. Could be set to any integer value.

    ** 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

    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: {"Department": "Finance"}

    Members List<DrProtectionGroupMember>

    (Updatable) A list of DR Protection Group members.

    CompartmentId string

    (Updatable) The OCID of the compartment in which to create the DR Protection Group. Example: ocid1.compartment.oc1..&lt;unique_id&gt;

    DisplayName string

    (Updatable) The display name of the DR Protection Group. Example: EBS PHX DRPG

    LogLocation DrProtectionGroupLogLocationArgs

    (Updatable) Information about creating an Object Storage log location for a DR Protection Group.

    Association DrProtectionGroupAssociationArgs

    The details for associating this DR Protection Group with a peer (remote) DR Protection Group.

    DefinedTags map[string]interface{}

    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"Operations.CostCenter": "42"}

    DisassociateTrigger int

    (Updatable) An optional property when incremented triggers Disassociate. Could be set to any integer value.

    ** 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

    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: {"Department": "Finance"}

    Members []DrProtectionGroupMemberArgs

    (Updatable) A list of DR Protection Group members.

    compartmentId String

    (Updatable) The OCID of the compartment in which to create the DR Protection Group. Example: ocid1.compartment.oc1..&lt;unique_id&gt;

    displayName String

    (Updatable) The display name of the DR Protection Group. Example: EBS PHX DRPG

    logLocation DrProtectionGroupLogLocation

    (Updatable) Information about creating an Object Storage log location for a DR Protection Group.

    association DrProtectionGroupAssociation

    The details for associating this DR Protection Group with a peer (remote) DR Protection Group.

    definedTags Map<String,Object>

    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"Operations.CostCenter": "42"}

    disassociateTrigger Integer

    (Updatable) An optional property when incremented triggers Disassociate. Could be set to any integer value.

    ** 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

    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: {"Department": "Finance"}

    members List<DrProtectionGroupMember>

    (Updatable) A list of DR Protection Group members.

    compartmentId string

    (Updatable) The OCID of the compartment in which to create the DR Protection Group. Example: ocid1.compartment.oc1..&lt;unique_id&gt;

    displayName string

    (Updatable) The display name of the DR Protection Group. Example: EBS PHX DRPG

    logLocation DrProtectionGroupLogLocation

    (Updatable) Information about creating an Object Storage log location for a DR Protection Group.

    association DrProtectionGroupAssociation

    The details for associating this DR Protection Group with a peer (remote) DR Protection Group.

    definedTags {[key: string]: any}

    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"Operations.CostCenter": "42"}

    disassociateTrigger number

    (Updatable) An optional property when incremented triggers Disassociate. Could be set to any integer value.

    ** 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

    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: {"Department": "Finance"}

    members DrProtectionGroupMember[]

    (Updatable) A list of DR Protection Group members.

    compartment_id str

    (Updatable) The OCID of the compartment in which to create the DR Protection Group. Example: ocid1.compartment.oc1..&lt;unique_id&gt;

    display_name str

    (Updatable) The display name of the DR Protection Group. Example: EBS PHX DRPG

    log_location DrProtectionGroupLogLocationArgs

    (Updatable) Information about creating an Object Storage log location for a DR Protection Group.

    association DrProtectionGroupAssociationArgs

    The details for associating this DR Protection Group with a peer (remote) DR Protection Group.

    defined_tags Mapping[str, Any]

    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"Operations.CostCenter": "42"}

    disassociate_trigger int

    (Updatable) An optional property when incremented triggers Disassociate. Could be set to any integer value.

    ** 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

    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: {"Department": "Finance"}

    members DrProtectionGroupMemberArgs]

    (Updatable) A list of DR Protection Group members.

    compartmentId String

    (Updatable) The OCID of the compartment in which to create the DR Protection Group. Example: ocid1.compartment.oc1..&lt;unique_id&gt;

    displayName String

    (Updatable) The display name of the DR Protection Group. Example: EBS PHX DRPG

    logLocation Property Map

    (Updatable) Information about creating an Object Storage log location for a DR Protection Group.

    association Property Map

    The details for associating this DR Protection Group with a peer (remote) DR Protection Group.

    definedTags Map<Any>

    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"Operations.CostCenter": "42"}

    disassociateTrigger Number

    (Updatable) An optional property when incremented triggers Disassociate. Could be set to any integer value.

    ** 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

    freeformTags Map<Any>

    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"Department": "Finance"}

    members List<Property Map>

    (Updatable) A list of DR Protection Group members.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the DrProtectionGroup resource produces the following output properties:

    Id string

    The provider-assigned unique ID for this managed resource.

    LifeCycleDetails string

    A message describing the DR Protection Group's current state in more detail.

    PeerId string

    The OCID of the peer (remote) DR Protection Group. Example: ocid1.drprotectiongroup.oc1.iad.&lt;unique_id&gt;

    PeerRegion string

    The region of the peer (remote) DR Protection Group. Example: us-ashburn-1

    Role string

    The role of this DR Protection Group.

    State string

    The current state of the DR Protection Group.

    SystemTags Dictionary<string, object>

    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}

    TimeCreated string

    The date and time the DR Protection Group was created. An RFC3339 formatted datetime string. Example: 2019-03-29T09:36:42Z

    TimeUpdated string

    The date and time the DR Protection Group was updated. An RFC3339 formatted datetime string. Example: 2019-03-29T09:36:42Z

    Id string

    The provider-assigned unique ID for this managed resource.

    LifeCycleDetails string

    A message describing the DR Protection Group's current state in more detail.

    PeerId string

    The OCID of the peer (remote) DR Protection Group. Example: ocid1.drprotectiongroup.oc1.iad.&lt;unique_id&gt;

    PeerRegion string

    The region of the peer (remote) DR Protection Group. Example: us-ashburn-1

    Role string

    The role of this DR Protection Group.

    State string

    The current state of the DR Protection Group.

    SystemTags map[string]interface{}

    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}

    TimeCreated string

    The date and time the DR Protection Group was created. An RFC3339 formatted datetime string. Example: 2019-03-29T09:36:42Z

    TimeUpdated string

    The date and time the DR Protection Group was updated. An RFC3339 formatted datetime string. Example: 2019-03-29T09:36:42Z

    id String

    The provider-assigned unique ID for this managed resource.

    lifeCycleDetails String

    A message describing the DR Protection Group's current state in more detail.

    peerId String

    The OCID of the peer (remote) DR Protection Group. Example: ocid1.drprotectiongroup.oc1.iad.&lt;unique_id&gt;

    peerRegion String

    The region of the peer (remote) DR Protection Group. Example: us-ashburn-1

    role String

    The role of this DR Protection Group.

    state String

    The current state of the DR Protection Group.

    systemTags Map<String,Object>

    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}

    timeCreated String

    The date and time the DR Protection Group was created. An RFC3339 formatted datetime string. Example: 2019-03-29T09:36:42Z

    timeUpdated String

    The date and time the DR Protection Group was updated. An RFC3339 formatted datetime string. Example: 2019-03-29T09:36:42Z

    id string

    The provider-assigned unique ID for this managed resource.

    lifeCycleDetails string

    A message describing the DR Protection Group's current state in more detail.

    peerId string

    The OCID of the peer (remote) DR Protection Group. Example: ocid1.drprotectiongroup.oc1.iad.&lt;unique_id&gt;

    peerRegion string

    The region of the peer (remote) DR Protection Group. Example: us-ashburn-1

    role string

    The role of this DR Protection Group.

    state string

    The current state of the DR Protection Group.

    systemTags {[key: string]: any}

    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}

    timeCreated string

    The date and time the DR Protection Group was created. An RFC3339 formatted datetime string. Example: 2019-03-29T09:36:42Z

    timeUpdated string

    The date and time the DR Protection Group was updated. An RFC3339 formatted datetime string. Example: 2019-03-29T09:36:42Z

    id str

    The provider-assigned unique ID for this managed resource.

    life_cycle_details str

    A message describing the DR Protection Group's current state in more detail.

    peer_id str

    The OCID of the peer (remote) DR Protection Group. Example: ocid1.drprotectiongroup.oc1.iad.&lt;unique_id&gt;

    peer_region str

    The region of the peer (remote) DR Protection Group. Example: us-ashburn-1

    role str

    The role of this DR Protection Group.

    state str

    The current state of the DR Protection Group.

    system_tags Mapping[str, Any]

    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}

    time_created str

    The date and time the DR Protection Group was created. An RFC3339 formatted datetime string. Example: 2019-03-29T09:36:42Z

    time_updated str

    The date and time the DR Protection Group was updated. An RFC3339 formatted datetime string. Example: 2019-03-29T09:36:42Z

    id String

    The provider-assigned unique ID for this managed resource.

    lifeCycleDetails String

    A message describing the DR Protection Group's current state in more detail.

    peerId String

    The OCID of the peer (remote) DR Protection Group. Example: ocid1.drprotectiongroup.oc1.iad.&lt;unique_id&gt;

    peerRegion String

    The region of the peer (remote) DR Protection Group. Example: us-ashburn-1

    role String

    The role of this DR Protection Group.

    state String

    The current state of the DR Protection Group.

    systemTags Map<Any>

    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}

    timeCreated String

    The date and time the DR Protection Group was created. An RFC3339 formatted datetime string. Example: 2019-03-29T09:36:42Z

    timeUpdated String

    The date and time the DR Protection Group was updated. An RFC3339 formatted datetime string. Example: 2019-03-29T09:36:42Z

    Look up Existing DrProtectionGroup Resource

    Get an existing DrProtectionGroup 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?: DrProtectionGroupState, opts?: CustomResourceOptions): DrProtectionGroup
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            association: Optional[_disasterrecovery.DrProtectionGroupAssociationArgs] = None,
            compartment_id: Optional[str] = None,
            defined_tags: Optional[Mapping[str, Any]] = None,
            disassociate_trigger: Optional[int] = None,
            display_name: Optional[str] = None,
            freeform_tags: Optional[Mapping[str, Any]] = None,
            life_cycle_details: Optional[str] = None,
            log_location: Optional[_disasterrecovery.DrProtectionGroupLogLocationArgs] = None,
            members: Optional[Sequence[_disasterrecovery.DrProtectionGroupMemberArgs]] = None,
            peer_id: Optional[str] = None,
            peer_region: Optional[str] = None,
            role: Optional[str] = None,
            state: Optional[str] = None,
            system_tags: Optional[Mapping[str, Any]] = None,
            time_created: Optional[str] = None,
            time_updated: Optional[str] = None) -> DrProtectionGroup
    func GetDrProtectionGroup(ctx *Context, name string, id IDInput, state *DrProtectionGroupState, opts ...ResourceOption) (*DrProtectionGroup, error)
    public static DrProtectionGroup Get(string name, Input<string> id, DrProtectionGroupState? state, CustomResourceOptions? opts = null)
    public static DrProtectionGroup get(String name, Output<String> id, DrProtectionGroupState 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:
    Association DrProtectionGroupAssociation

    The details for associating this DR Protection Group with a peer (remote) DR Protection Group.

    CompartmentId string

    (Updatable) The OCID of the compartment in which to create the DR Protection Group. Example: ocid1.compartment.oc1..&lt;unique_id&gt;

    DefinedTags Dictionary<string, object>

    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"Operations.CostCenter": "42"}

    DisassociateTrigger int

    (Updatable) An optional property when incremented triggers Disassociate. Could be set to any integer value.

    ** 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

    DisplayName string

    (Updatable) The display name of the DR Protection Group. Example: EBS PHX DRPG

    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: {"Department": "Finance"}

    LifeCycleDetails string

    A message describing the DR Protection Group's current state in more detail.

    LogLocation DrProtectionGroupLogLocation

    (Updatable) Information about creating an Object Storage log location for a DR Protection Group.

    Members List<DrProtectionGroupMember>

    (Updatable) A list of DR Protection Group members.

    PeerId string

    The OCID of the peer (remote) DR Protection Group. Example: ocid1.drprotectiongroup.oc1.iad.&lt;unique_id&gt;

    PeerRegion string

    The region of the peer (remote) DR Protection Group. Example: us-ashburn-1

    Role string

    The role of this DR Protection Group.

    State string

    The current state of the DR Protection Group.

    SystemTags Dictionary<string, object>

    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}

    TimeCreated string

    The date and time the DR Protection Group was created. An RFC3339 formatted datetime string. Example: 2019-03-29T09:36:42Z

    TimeUpdated string

    The date and time the DR Protection Group was updated. An RFC3339 formatted datetime string. Example: 2019-03-29T09:36:42Z

    Association DrProtectionGroupAssociationArgs

    The details for associating this DR Protection Group with a peer (remote) DR Protection Group.

    CompartmentId string

    (Updatable) The OCID of the compartment in which to create the DR Protection Group. Example: ocid1.compartment.oc1..&lt;unique_id&gt;

    DefinedTags map[string]interface{}

    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"Operations.CostCenter": "42"}

    DisassociateTrigger int

    (Updatable) An optional property when incremented triggers Disassociate. Could be set to any integer value.

    ** 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

    DisplayName string

    (Updatable) The display name of the DR Protection Group. Example: EBS PHX DRPG

    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: {"Department": "Finance"}

    LifeCycleDetails string

    A message describing the DR Protection Group's current state in more detail.

    LogLocation DrProtectionGroupLogLocationArgs

    (Updatable) Information about creating an Object Storage log location for a DR Protection Group.

    Members []DrProtectionGroupMemberArgs

    (Updatable) A list of DR Protection Group members.

    PeerId string

    The OCID of the peer (remote) DR Protection Group. Example: ocid1.drprotectiongroup.oc1.iad.&lt;unique_id&gt;

    PeerRegion string

    The region of the peer (remote) DR Protection Group. Example: us-ashburn-1

    Role string

    The role of this DR Protection Group.

    State string

    The current state of the DR Protection Group.

    SystemTags map[string]interface{}

    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}

    TimeCreated string

    The date and time the DR Protection Group was created. An RFC3339 formatted datetime string. Example: 2019-03-29T09:36:42Z

    TimeUpdated string

    The date and time the DR Protection Group was updated. An RFC3339 formatted datetime string. Example: 2019-03-29T09:36:42Z

    association DrProtectionGroupAssociation

    The details for associating this DR Protection Group with a peer (remote) DR Protection Group.

    compartmentId String

    (Updatable) The OCID of the compartment in which to create the DR Protection Group. Example: ocid1.compartment.oc1..&lt;unique_id&gt;

    definedTags Map<String,Object>

    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"Operations.CostCenter": "42"}

    disassociateTrigger Integer

    (Updatable) An optional property when incremented triggers Disassociate. Could be set to any integer value.

    ** 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

    displayName String

    (Updatable) The display name of the DR Protection Group. Example: EBS PHX DRPG

    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: {"Department": "Finance"}

    lifeCycleDetails String

    A message describing the DR Protection Group's current state in more detail.

    logLocation DrProtectionGroupLogLocation

    (Updatable) Information about creating an Object Storage log location for a DR Protection Group.

    members List<DrProtectionGroupMember>

    (Updatable) A list of DR Protection Group members.

    peerId String

    The OCID of the peer (remote) DR Protection Group. Example: ocid1.drprotectiongroup.oc1.iad.&lt;unique_id&gt;

    peerRegion String

    The region of the peer (remote) DR Protection Group. Example: us-ashburn-1

    role String

    The role of this DR Protection Group.

    state String

    The current state of the DR Protection Group.

    systemTags Map<String,Object>

    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}

    timeCreated String

    The date and time the DR Protection Group was created. An RFC3339 formatted datetime string. Example: 2019-03-29T09:36:42Z

    timeUpdated String

    The date and time the DR Protection Group was updated. An RFC3339 formatted datetime string. Example: 2019-03-29T09:36:42Z

    association DrProtectionGroupAssociation

    The details for associating this DR Protection Group with a peer (remote) DR Protection Group.

    compartmentId string

    (Updatable) The OCID of the compartment in which to create the DR Protection Group. Example: ocid1.compartment.oc1..&lt;unique_id&gt;

    definedTags {[key: string]: any}

    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"Operations.CostCenter": "42"}

    disassociateTrigger number

    (Updatable) An optional property when incremented triggers Disassociate. Could be set to any integer value.

    ** 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

    displayName string

    (Updatable) The display name of the DR Protection Group. Example: EBS PHX DRPG

    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: {"Department": "Finance"}

    lifeCycleDetails string

    A message describing the DR Protection Group's current state in more detail.

    logLocation DrProtectionGroupLogLocation

    (Updatable) Information about creating an Object Storage log location for a DR Protection Group.

    members DrProtectionGroupMember[]

    (Updatable) A list of DR Protection Group members.

    peerId string

    The OCID of the peer (remote) DR Protection Group. Example: ocid1.drprotectiongroup.oc1.iad.&lt;unique_id&gt;

    peerRegion string

    The region of the peer (remote) DR Protection Group. Example: us-ashburn-1

    role string

    The role of this DR Protection Group.

    state string

    The current state of the DR Protection Group.

    systemTags {[key: string]: any}

    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}

    timeCreated string

    The date and time the DR Protection Group was created. An RFC3339 formatted datetime string. Example: 2019-03-29T09:36:42Z

    timeUpdated string

    The date and time the DR Protection Group was updated. An RFC3339 formatted datetime string. Example: 2019-03-29T09:36:42Z

    association DrProtectionGroupAssociationArgs

    The details for associating this DR Protection Group with a peer (remote) DR Protection Group.

    compartment_id str

    (Updatable) The OCID of the compartment in which to create the DR Protection Group. Example: ocid1.compartment.oc1..&lt;unique_id&gt;

    defined_tags Mapping[str, Any]

    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"Operations.CostCenter": "42"}

    disassociate_trigger int

    (Updatable) An optional property when incremented triggers Disassociate. Could be set to any integer value.

    ** 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

    display_name str

    (Updatable) The display name of the DR Protection Group. Example: EBS PHX DRPG

    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: {"Department": "Finance"}

    life_cycle_details str

    A message describing the DR Protection Group's current state in more detail.

    log_location DrProtectionGroupLogLocationArgs

    (Updatable) Information about creating an Object Storage log location for a DR Protection Group.

    members DrProtectionGroupMemberArgs]

    (Updatable) A list of DR Protection Group members.

    peer_id str

    The OCID of the peer (remote) DR Protection Group. Example: ocid1.drprotectiongroup.oc1.iad.&lt;unique_id&gt;

    peer_region str

    The region of the peer (remote) DR Protection Group. Example: us-ashburn-1

    role str

    The role of this DR Protection Group.

    state str

    The current state of the DR Protection Group.

    system_tags Mapping[str, Any]

    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}

    time_created str

    The date and time the DR Protection Group was created. An RFC3339 formatted datetime string. Example: 2019-03-29T09:36:42Z

    time_updated str

    The date and time the DR Protection Group was updated. An RFC3339 formatted datetime string. Example: 2019-03-29T09:36:42Z

    association Property Map

    The details for associating this DR Protection Group with a peer (remote) DR Protection Group.

    compartmentId String

    (Updatable) The OCID of the compartment in which to create the DR Protection Group. Example: ocid1.compartment.oc1..&lt;unique_id&gt;

    definedTags Map<Any>

    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"Operations.CostCenter": "42"}

    disassociateTrigger Number

    (Updatable) An optional property when incremented triggers Disassociate. Could be set to any integer value.

    ** 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

    displayName String

    (Updatable) The display name of the DR Protection Group. Example: EBS PHX DRPG

    freeformTags Map<Any>

    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"Department": "Finance"}

    lifeCycleDetails String

    A message describing the DR Protection Group's current state in more detail.

    logLocation Property Map

    (Updatable) Information about creating an Object Storage log location for a DR Protection Group.

    members List<Property Map>

    (Updatable) A list of DR Protection Group members.

    peerId String

    The OCID of the peer (remote) DR Protection Group. Example: ocid1.drprotectiongroup.oc1.iad.&lt;unique_id&gt;

    peerRegion String

    The region of the peer (remote) DR Protection Group. Example: us-ashburn-1

    role String

    The role of this DR Protection Group.

    state String

    The current state of the DR Protection Group.

    systemTags Map<Any>

    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}

    timeCreated String

    The date and time the DR Protection Group was created. An RFC3339 formatted datetime string. Example: 2019-03-29T09:36:42Z

    timeUpdated String

    The date and time the DR Protection Group was updated. An RFC3339 formatted datetime string. Example: 2019-03-29T09:36:42Z

    Supporting Types

    DrProtectionGroupAssociation, DrProtectionGroupAssociationArgs

    Role string

    The role of this DR Protection Group.

    PeerId string

    The OCID of the peer (remote) DR Protection Group. Example: ocid1.drprotectiongroup.oc1.iad.&lt;unique_id&gt;

    PeerRegion string

    The region of the peer (remote) DR Protection Group. Example: us-ashburn-1

    Role string

    The role of this DR Protection Group.

    PeerId string

    The OCID of the peer (remote) DR Protection Group. Example: ocid1.drprotectiongroup.oc1.iad.&lt;unique_id&gt;

    PeerRegion string

    The region of the peer (remote) DR Protection Group. Example: us-ashburn-1

    role String

    The role of this DR Protection Group.

    peerId String

    The OCID of the peer (remote) DR Protection Group. Example: ocid1.drprotectiongroup.oc1.iad.&lt;unique_id&gt;

    peerRegion String

    The region of the peer (remote) DR Protection Group. Example: us-ashburn-1

    role string

    The role of this DR Protection Group.

    peerId string

    The OCID of the peer (remote) DR Protection Group. Example: ocid1.drprotectiongroup.oc1.iad.&lt;unique_id&gt;

    peerRegion string

    The region of the peer (remote) DR Protection Group. Example: us-ashburn-1

    role str

    The role of this DR Protection Group.

    peer_id str

    The OCID of the peer (remote) DR Protection Group. Example: ocid1.drprotectiongroup.oc1.iad.&lt;unique_id&gt;

    peer_region str

    The region of the peer (remote) DR Protection Group. Example: us-ashburn-1

    role String

    The role of this DR Protection Group.

    peerId String

    The OCID of the peer (remote) DR Protection Group. Example: ocid1.drprotectiongroup.oc1.iad.&lt;unique_id&gt;

    peerRegion String

    The region of the peer (remote) DR Protection Group. Example: us-ashburn-1

    DrProtectionGroupLogLocation, DrProtectionGroupLogLocationArgs

    Bucket string

    (Updatable) The bucket name inside the Object Storage namespace. Example: operation_logs

    Namespace string

    (Updatable) The namespace in Object Storage (Note - this is usually the tenancy name). Example: myocitenancy

    Object string

    The object name inside the Object Storage bucket. Example: switchover_plan_executions

    Bucket string

    (Updatable) The bucket name inside the Object Storage namespace. Example: operation_logs

    Namespace string

    (Updatable) The namespace in Object Storage (Note - this is usually the tenancy name). Example: myocitenancy

    Object string

    The object name inside the Object Storage bucket. Example: switchover_plan_executions

    bucket String

    (Updatable) The bucket name inside the Object Storage namespace. Example: operation_logs

    namespace String

    (Updatable) The namespace in Object Storage (Note - this is usually the tenancy name). Example: myocitenancy

    object String

    The object name inside the Object Storage bucket. Example: switchover_plan_executions

    bucket string

    (Updatable) The bucket name inside the Object Storage namespace. Example: operation_logs

    namespace string

    (Updatable) The namespace in Object Storage (Note - this is usually the tenancy name). Example: myocitenancy

    object string

    The object name inside the Object Storage bucket. Example: switchover_plan_executions

    bucket str

    (Updatable) The bucket name inside the Object Storage namespace. Example: operation_logs

    namespace str

    (Updatable) The namespace in Object Storage (Note - this is usually the tenancy name). Example: myocitenancy

    object str

    The object name inside the Object Storage bucket. Example: switchover_plan_executions

    bucket String

    (Updatable) The bucket name inside the Object Storage namespace. Example: operation_logs

    namespace String

    (Updatable) The namespace in Object Storage (Note - this is usually the tenancy name). Example: myocitenancy

    object String

    The object name inside the Object Storage bucket. Example: switchover_plan_executions

    DrProtectionGroupMember, DrProtectionGroupMemberArgs

    MemberId string

    (Updatable) The OCID of the member. Example: ocid1.instance.oc1.phx.&lt;unique_id&gt;

    MemberType string

    (Updatable) The type of the member.

    DestinationCapacityReservationId string

    (Updatable) The OCID of the capacity reservation in the destination region using which this compute instance should be launched. Example: ocid1.capacityreservation.oc1..&lt;unique_id&gt;

    DestinationCompartmentId string

    (Updatable) The OCID of the compartment for this compute instance in the destination region. Example: ocid1.compartment.oc1..&lt;unique_id&gt;

    DestinationDedicatedVmHostId string

    (Updatable) The OCID of the dedicated VM Host in the destination region where this compute instance should be launched Example: ocid1.dedicatedvmhost.oc1.iad.&lt;unique_id&gt;

    IsMovable bool

    (Updatable) A flag indicating if this compute instance should be moved during DR operations. Example: false

    IsRetainFaultDomain bool

    (Updatable) A flag indicating if this compute instance should be moved to the same fault domain. Compute instance launch will fail if this flag is set to true and capacity is not available in that specific fault domain in the destination region. Example: false

    PasswordVaultSecretId string

    (Updatable) The OCID of the vault secret where the database password is stored. Example: ocid1.vaultsecret.oc1.phx.&lt;unique_id&gt;

    VnicMapping List<DrProtectionGroupMemberVnicMapping>

    (Updatable) A list of Compute Instance VNIC mappings.

    VnicMappings List<DrProtectionGroupMemberVnicMapping>

    (Updatable) A list of Compute Instance VNIC mappings.

    MemberId string

    (Updatable) The OCID of the member. Example: ocid1.instance.oc1.phx.&lt;unique_id&gt;

    MemberType string

    (Updatable) The type of the member.

    DestinationCapacityReservationId string

    (Updatable) The OCID of the capacity reservation in the destination region using which this compute instance should be launched. Example: ocid1.capacityreservation.oc1..&lt;unique_id&gt;

    DestinationCompartmentId string

    (Updatable) The OCID of the compartment for this compute instance in the destination region. Example: ocid1.compartment.oc1..&lt;unique_id&gt;

    DestinationDedicatedVmHostId string

    (Updatable) The OCID of the dedicated VM Host in the destination region where this compute instance should be launched Example: ocid1.dedicatedvmhost.oc1.iad.&lt;unique_id&gt;

    IsMovable bool

    (Updatable) A flag indicating if this compute instance should be moved during DR operations. Example: false

    IsRetainFaultDomain bool

    (Updatable) A flag indicating if this compute instance should be moved to the same fault domain. Compute instance launch will fail if this flag is set to true and capacity is not available in that specific fault domain in the destination region. Example: false

    PasswordVaultSecretId string

    (Updatable) The OCID of the vault secret where the database password is stored. Example: ocid1.vaultsecret.oc1.phx.&lt;unique_id&gt;

    VnicMapping []DrProtectionGroupMemberVnicMapping

    (Updatable) A list of Compute Instance VNIC mappings.

    VnicMappings []DrProtectionGroupMemberVnicMapping

    (Updatable) A list of Compute Instance VNIC mappings.

    memberId String

    (Updatable) The OCID of the member. Example: ocid1.instance.oc1.phx.&lt;unique_id&gt;

    memberType String

    (Updatable) The type of the member.

    destinationCapacityReservationId String

    (Updatable) The OCID of the capacity reservation in the destination region using which this compute instance should be launched. Example: ocid1.capacityreservation.oc1..&lt;unique_id&gt;

    destinationCompartmentId String

    (Updatable) The OCID of the compartment for this compute instance in the destination region. Example: ocid1.compartment.oc1..&lt;unique_id&gt;

    destinationDedicatedVmHostId String

    (Updatable) The OCID of the dedicated VM Host in the destination region where this compute instance should be launched Example: ocid1.dedicatedvmhost.oc1.iad.&lt;unique_id&gt;

    isMovable Boolean

    (Updatable) A flag indicating if this compute instance should be moved during DR operations. Example: false

    isRetainFaultDomain Boolean

    (Updatable) A flag indicating if this compute instance should be moved to the same fault domain. Compute instance launch will fail if this flag is set to true and capacity is not available in that specific fault domain in the destination region. Example: false

    passwordVaultSecretId String

    (Updatable) The OCID of the vault secret where the database password is stored. Example: ocid1.vaultsecret.oc1.phx.&lt;unique_id&gt;

    vnicMapping List<DrProtectionGroupMemberVnicMapping>

    (Updatable) A list of Compute Instance VNIC mappings.

    vnicMappings List<DrProtectionGroupMemberVnicMapping>

    (Updatable) A list of Compute Instance VNIC mappings.

    memberId string

    (Updatable) The OCID of the member. Example: ocid1.instance.oc1.phx.&lt;unique_id&gt;

    memberType string

    (Updatable) The type of the member.

    destinationCapacityReservationId string

    (Updatable) The OCID of the capacity reservation in the destination region using which this compute instance should be launched. Example: ocid1.capacityreservation.oc1..&lt;unique_id&gt;

    destinationCompartmentId string

    (Updatable) The OCID of the compartment for this compute instance in the destination region. Example: ocid1.compartment.oc1..&lt;unique_id&gt;

    destinationDedicatedVmHostId string

    (Updatable) The OCID of the dedicated VM Host in the destination region where this compute instance should be launched Example: ocid1.dedicatedvmhost.oc1.iad.&lt;unique_id&gt;

    isMovable boolean

    (Updatable) A flag indicating if this compute instance should be moved during DR operations. Example: false

    isRetainFaultDomain boolean

    (Updatable) A flag indicating if this compute instance should be moved to the same fault domain. Compute instance launch will fail if this flag is set to true and capacity is not available in that specific fault domain in the destination region. Example: false

    passwordVaultSecretId string

    (Updatable) The OCID of the vault secret where the database password is stored. Example: ocid1.vaultsecret.oc1.phx.&lt;unique_id&gt;

    vnicMapping DrProtectionGroupMemberVnicMapping[]

    (Updatable) A list of Compute Instance VNIC mappings.

    vnicMappings DrProtectionGroupMemberVnicMapping[]

    (Updatable) A list of Compute Instance VNIC mappings.

    member_id str

    (Updatable) The OCID of the member. Example: ocid1.instance.oc1.phx.&lt;unique_id&gt;

    member_type str

    (Updatable) The type of the member.

    destination_capacity_reservation_id str

    (Updatable) The OCID of the capacity reservation in the destination region using which this compute instance should be launched. Example: ocid1.capacityreservation.oc1..&lt;unique_id&gt;

    destination_compartment_id str

    (Updatable) The OCID of the compartment for this compute instance in the destination region. Example: ocid1.compartment.oc1..&lt;unique_id&gt;

    destination_dedicated_vm_host_id str

    (Updatable) The OCID of the dedicated VM Host in the destination region where this compute instance should be launched Example: ocid1.dedicatedvmhost.oc1.iad.&lt;unique_id&gt;

    is_movable bool

    (Updatable) A flag indicating if this compute instance should be moved during DR operations. Example: false

    is_retain_fault_domain bool

    (Updatable) A flag indicating if this compute instance should be moved to the same fault domain. Compute instance launch will fail if this flag is set to true and capacity is not available in that specific fault domain in the destination region. Example: false

    password_vault_secret_id str

    (Updatable) The OCID of the vault secret where the database password is stored. Example: ocid1.vaultsecret.oc1.phx.&lt;unique_id&gt;

    vnic_mapping DrProtectionGroupMemberVnicMapping]

    (Updatable) A list of Compute Instance VNIC mappings.

    vnic_mappings DrProtectionGroupMemberVnicMapping]

    (Updatable) A list of Compute Instance VNIC mappings.

    memberId String

    (Updatable) The OCID of the member. Example: ocid1.instance.oc1.phx.&lt;unique_id&gt;

    memberType String

    (Updatable) The type of the member.

    destinationCapacityReservationId String

    (Updatable) The OCID of the capacity reservation in the destination region using which this compute instance should be launched. Example: ocid1.capacityreservation.oc1..&lt;unique_id&gt;

    destinationCompartmentId String

    (Updatable) The OCID of the compartment for this compute instance in the destination region. Example: ocid1.compartment.oc1..&lt;unique_id&gt;

    destinationDedicatedVmHostId String

    (Updatable) The OCID of the dedicated VM Host in the destination region where this compute instance should be launched Example: ocid1.dedicatedvmhost.oc1.iad.&lt;unique_id&gt;

    isMovable Boolean

    (Updatable) A flag indicating if this compute instance should be moved during DR operations. Example: false

    isRetainFaultDomain Boolean

    (Updatable) A flag indicating if this compute instance should be moved to the same fault domain. Compute instance launch will fail if this flag is set to true and capacity is not available in that specific fault domain in the destination region. Example: false

    passwordVaultSecretId String

    (Updatable) The OCID of the vault secret where the database password is stored. Example: ocid1.vaultsecret.oc1.phx.&lt;unique_id&gt;

    vnicMapping List<Property Map>

    (Updatable) A list of Compute Instance VNIC mappings.

    vnicMappings List<Property Map>

    (Updatable) A list of Compute Instance VNIC mappings.

    DrProtectionGroupMemberVnicMapping, DrProtectionGroupMemberVnicMappingArgs

    DestinationNsgIdLists List<string>

    (Updatable) A list of network security group (NSG) IDs in the destination region which this VNIC should use. Example: [ ocid1.networksecuritygroup.oc1..&lt;unique_id&gt;, ocid1.networksecuritygroup.oc1..&lt;unique_id&gt; ]

    DestinationPrimaryPrivateIpAddress string

    (Updatable) The primary private IP address to assign. This address must belong to the destination subnet. Example: 10.0.3.3

    DestinationPrimaryPrivateIpHostnameLabel string

    (Updatable) The hostname to assign for this primary private IP. The value is the hostname portion of the private IP's fully qualified domain name (FQDN) (for example, bminstance1 in FQDN bminstance1.subnet123.vcn1.oraclevcn.com). Example: bminstance1

    DestinationSubnetId string

    (Updatable) The OCID of the destination (remote) subnet to which this VNIC should connect. Example: ocid1.subnet.oc1..&lt;unique_id&gt;

    SourceVnicId string

    (Updatable) The OCID of the VNIC. Example: ocid1.vnic.oc1..&lt;unique_id&gt;

    DestinationNsgIdLists []string

    (Updatable) A list of network security group (NSG) IDs in the destination region which this VNIC should use. Example: [ ocid1.networksecuritygroup.oc1..&lt;unique_id&gt;, ocid1.networksecuritygroup.oc1..&lt;unique_id&gt; ]

    DestinationPrimaryPrivateIpAddress string

    (Updatable) The primary private IP address to assign. This address must belong to the destination subnet. Example: 10.0.3.3

    DestinationPrimaryPrivateIpHostnameLabel string

    (Updatable) The hostname to assign for this primary private IP. The value is the hostname portion of the private IP's fully qualified domain name (FQDN) (for example, bminstance1 in FQDN bminstance1.subnet123.vcn1.oraclevcn.com). Example: bminstance1

    DestinationSubnetId string

    (Updatable) The OCID of the destination (remote) subnet to which this VNIC should connect. Example: ocid1.subnet.oc1..&lt;unique_id&gt;

    SourceVnicId string

    (Updatable) The OCID of the VNIC. Example: ocid1.vnic.oc1..&lt;unique_id&gt;

    destinationNsgIdLists List<String>

    (Updatable) A list of network security group (NSG) IDs in the destination region which this VNIC should use. Example: [ ocid1.networksecuritygroup.oc1..&lt;unique_id&gt;, ocid1.networksecuritygroup.oc1..&lt;unique_id&gt; ]

    destinationPrimaryPrivateIpAddress String

    (Updatable) The primary private IP address to assign. This address must belong to the destination subnet. Example: 10.0.3.3

    destinationPrimaryPrivateIpHostnameLabel String

    (Updatable) The hostname to assign for this primary private IP. The value is the hostname portion of the private IP's fully qualified domain name (FQDN) (for example, bminstance1 in FQDN bminstance1.subnet123.vcn1.oraclevcn.com). Example: bminstance1

    destinationSubnetId String

    (Updatable) The OCID of the destination (remote) subnet to which this VNIC should connect. Example: ocid1.subnet.oc1..&lt;unique_id&gt;

    sourceVnicId String

    (Updatable) The OCID of the VNIC. Example: ocid1.vnic.oc1..&lt;unique_id&gt;

    destinationNsgIdLists string[]

    (Updatable) A list of network security group (NSG) IDs in the destination region which this VNIC should use. Example: [ ocid1.networksecuritygroup.oc1..&lt;unique_id&gt;, ocid1.networksecuritygroup.oc1..&lt;unique_id&gt; ]

    destinationPrimaryPrivateIpAddress string

    (Updatable) The primary private IP address to assign. This address must belong to the destination subnet. Example: 10.0.3.3

    destinationPrimaryPrivateIpHostnameLabel string

    (Updatable) The hostname to assign for this primary private IP. The value is the hostname portion of the private IP's fully qualified domain name (FQDN) (for example, bminstance1 in FQDN bminstance1.subnet123.vcn1.oraclevcn.com). Example: bminstance1

    destinationSubnetId string

    (Updatable) The OCID of the destination (remote) subnet to which this VNIC should connect. Example: ocid1.subnet.oc1..&lt;unique_id&gt;

    sourceVnicId string

    (Updatable) The OCID of the VNIC. Example: ocid1.vnic.oc1..&lt;unique_id&gt;

    destination_nsg_id_lists Sequence[str]

    (Updatable) A list of network security group (NSG) IDs in the destination region which this VNIC should use. Example: [ ocid1.networksecuritygroup.oc1..&lt;unique_id&gt;, ocid1.networksecuritygroup.oc1..&lt;unique_id&gt; ]

    destination_primary_private_ip_address str

    (Updatable) The primary private IP address to assign. This address must belong to the destination subnet. Example: 10.0.3.3

    destination_primary_private_ip_hostname_label str

    (Updatable) The hostname to assign for this primary private IP. The value is the hostname portion of the private IP's fully qualified domain name (FQDN) (for example, bminstance1 in FQDN bminstance1.subnet123.vcn1.oraclevcn.com). Example: bminstance1

    destination_subnet_id str

    (Updatable) The OCID of the destination (remote) subnet to which this VNIC should connect. Example: ocid1.subnet.oc1..&lt;unique_id&gt;

    source_vnic_id str

    (Updatable) The OCID of the VNIC. Example: ocid1.vnic.oc1..&lt;unique_id&gt;

    destinationNsgIdLists List<String>

    (Updatable) A list of network security group (NSG) IDs in the destination region which this VNIC should use. Example: [ ocid1.networksecuritygroup.oc1..&lt;unique_id&gt;, ocid1.networksecuritygroup.oc1..&lt;unique_id&gt; ]

    destinationPrimaryPrivateIpAddress String

    (Updatable) The primary private IP address to assign. This address must belong to the destination subnet. Example: 10.0.3.3

    destinationPrimaryPrivateIpHostnameLabel String

    (Updatable) The hostname to assign for this primary private IP. The value is the hostname portion of the private IP's fully qualified domain name (FQDN) (for example, bminstance1 in FQDN bminstance1.subnet123.vcn1.oraclevcn.com). Example: bminstance1

    destinationSubnetId String

    (Updatable) The OCID of the destination (remote) subnet to which this VNIC should connect. Example: ocid1.subnet.oc1..&lt;unique_id&gt;

    sourceVnicId String

    (Updatable) The OCID of the VNIC. Example: ocid1.vnic.oc1..&lt;unique_id&gt;

    Import

    DrProtectionGroups can be imported using the id, e.g.

     $ pulumi import oci:DisasterRecovery/drProtectionGroup:DrProtectionGroup test_dr_protection_group "id"
    

    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.10.0 published on Thursday, Sep 7, 2023 by Pulumi