1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. ebs
  5. DiskReplicaGroup
Alibaba Cloud v3.77.0 published on Friday, May 2, 2025 by Pulumi

alicloud.ebs.DiskReplicaGroup

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.77.0 published on Friday, May 2, 2025 by Pulumi

    Provides a Elastic Block Storage(EBS) Disk Replica Group resource.

    consistent replica group.

    For information about Elastic Block Storage(EBS) Disk Replica Group and how to use it, see What is Disk Replica Group.

    NOTE: Available since v1.187.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "tf-example";
    const _default = alicloud.getRegions({
        current: true,
    });
    const defaultGetRegions = _default.then(_default => alicloud.ebs.getRegions({
        regionId: _default.regions?.[0]?.id,
    }));
    const defaultDiskReplicaGroup = new alicloud.ebs.DiskReplicaGroup("default", {
        sourceRegionId: _default.then(_default => _default.regions?.[0]?.id),
        sourceZoneId: defaultGetRegions.then(defaultGetRegions => defaultGetRegions.regions?.[0]?.zones?.[0]?.zoneId),
        destinationRegionId: _default.then(_default => _default.regions?.[0]?.id),
        destinationZoneId: defaultGetRegions.then(defaultGetRegions => defaultGetRegions.regions?.[0]?.zones?.[1]?.zoneId),
        groupName: name,
        description: name,
        rpo: 900,
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "tf-example"
    default = alicloud.get_regions(current=True)
    default_get_regions = alicloud.ebs.get_regions(region_id=default.regions[0].id)
    default_disk_replica_group = alicloud.ebs.DiskReplicaGroup("default",
        source_region_id=default.regions[0].id,
        source_zone_id=default_get_regions.regions[0].zones[0].zone_id,
        destination_region_id=default.regions[0].id,
        destination_zone_id=default_get_regions.regions[0].zones[1].zone_id,
        group_name=name,
        description=name,
        rpo=900)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ebs"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		name := "tf-example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		_default, err := alicloud.GetRegions(ctx, &alicloud.GetRegionsArgs{
    			Current: pulumi.BoolRef(true),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		defaultGetRegions, err := ebs.GetRegions(ctx, &ebs.GetRegionsArgs{
    			RegionId: pulumi.StringRef(_default.Regions[0].Id),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = ebs.NewDiskReplicaGroup(ctx, "default", &ebs.DiskReplicaGroupArgs{
    			SourceRegionId:      pulumi.String(_default.Regions[0].Id),
    			SourceZoneId:        pulumi.String(defaultGetRegions.Regions[0].Zones[0].ZoneId),
    			DestinationRegionId: pulumi.String(_default.Regions[0].Id),
    			DestinationZoneId:   pulumi.String(defaultGetRegions.Regions[0].Zones[1].ZoneId),
    			GroupName:           pulumi.String(name),
    			Description:         pulumi.String(name),
    			Rpo:                 pulumi.Int(900),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "tf-example";
        var @default = AliCloud.GetRegions.Invoke(new()
        {
            Current = true,
        });
    
        var defaultGetRegions = AliCloud.Ebs.GetRegions.Invoke(new()
        {
            RegionId = @default.Apply(getRegionsResult => getRegionsResult.Regions[0]?.Id),
        });
    
        var defaultDiskReplicaGroup = new AliCloud.Ebs.DiskReplicaGroup("default", new()
        {
            SourceRegionId = @default.Apply(@default => @default.Apply(getRegionsResult => getRegionsResult.Regions[0]?.Id)),
            SourceZoneId = defaultGetRegions.Apply(getRegionsResult => getRegionsResult.Regions[0]?.Zones[0]?.ZoneId),
            DestinationRegionId = @default.Apply(@default => @default.Apply(getRegionsResult => getRegionsResult.Regions[0]?.Id)),
            DestinationZoneId = defaultGetRegions.Apply(getRegionsResult => getRegionsResult.Regions[0]?.Zones[1]?.ZoneId),
            GroupName = name,
            Description = name,
            Rpo = 900,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.AlicloudFunctions;
    import com.pulumi.alicloud.ebs.EbsFunctions;
    import com.pulumi.alicloud.ebs.DiskReplicaGroup;
    import com.pulumi.alicloud.ebs.DiskReplicaGroupArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var config = ctx.config();
            final var name = config.get("name").orElse("tf-example");
            final var default = AlicloudFunctions.getRegions(GetRegionsArgs.builder()
                .current(true)
                .build());
    
            final var defaultGetRegions = EbsFunctions.getRegions(GetRegionsArgs.builder()
                .regionId(default_.regions()[0].id())
                .build());
    
            var defaultDiskReplicaGroup = new DiskReplicaGroup("defaultDiskReplicaGroup", DiskReplicaGroupArgs.builder()
                .sourceRegionId(default_.regions()[0].id())
                .sourceZoneId(defaultGetRegions.regions()[0].zones()[0].zoneId())
                .destinationRegionId(default_.regions()[0].id())
                .destinationZoneId(defaultGetRegions.regions()[0].zones()[1].zoneId())
                .groupName(name)
                .description(name)
                .rpo(900)
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: tf-example
    resources:
      defaultDiskReplicaGroup:
        type: alicloud:ebs:DiskReplicaGroup
        name: default
        properties:
          sourceRegionId: ${default.regions[0].id}
          sourceZoneId: ${defaultGetRegions.regions[0].zones[0].zoneId}
          destinationRegionId: ${default.regions[0].id}
          destinationZoneId: ${defaultGetRegions.regions[0].zones[1].zoneId}
          groupName: ${name}
          description: ${name}
          rpo: 900
    variables:
      default:
        fn::invoke:
          function: alicloud:getRegions
          arguments:
            current: true
      defaultGetRegions:
        fn::invoke:
          function: alicloud:ebs:getRegions
          arguments:
            regionId: ${default.regions[0].id}
    

    Create DiskReplicaGroup Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new DiskReplicaGroup(name: string, args: DiskReplicaGroupArgs, opts?: CustomResourceOptions);
    @overload
    def DiskReplicaGroup(resource_name: str,
                         args: DiskReplicaGroupArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def DiskReplicaGroup(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         source_region_id: Optional[str] = None,
                         destination_region_id: Optional[str] = None,
                         destination_zone_id: Optional[str] = None,
                         source_zone_id: Optional[str] = None,
                         pair_ids: Optional[Sequence[str]] = None,
                         one_shot: Optional[bool] = None,
                         description: Optional[str] = None,
                         resource_group_id: Optional[str] = None,
                         reverse_replicate: Optional[bool] = None,
                         rpo: Optional[int] = None,
                         group_name: Optional[str] = None,
                         disk_replica_group_name: Optional[str] = None,
                         status: Optional[str] = None,
                         tags: Optional[Mapping[str, str]] = None)
    func NewDiskReplicaGroup(ctx *Context, name string, args DiskReplicaGroupArgs, opts ...ResourceOption) (*DiskReplicaGroup, error)
    public DiskReplicaGroup(string name, DiskReplicaGroupArgs args, CustomResourceOptions? opts = null)
    public DiskReplicaGroup(String name, DiskReplicaGroupArgs args)
    public DiskReplicaGroup(String name, DiskReplicaGroupArgs args, CustomResourceOptions options)
    
    type: alicloud:ebs:DiskReplicaGroup
    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 DiskReplicaGroupArgs
    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 DiskReplicaGroupArgs
    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 DiskReplicaGroupArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DiskReplicaGroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DiskReplicaGroupArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var diskReplicaGroupResource = new AliCloud.Ebs.DiskReplicaGroup("diskReplicaGroupResource", new()
    {
        SourceRegionId = "string",
        DestinationRegionId = "string",
        DestinationZoneId = "string",
        SourceZoneId = "string",
        PairIds = new[]
        {
            "string",
        },
        OneShot = false,
        Description = "string",
        ResourceGroupId = "string",
        ReverseReplicate = false,
        Rpo = 0,
        DiskReplicaGroupName = "string",
        Status = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := ebs.NewDiskReplicaGroup(ctx, "diskReplicaGroupResource", &ebs.DiskReplicaGroupArgs{
    	SourceRegionId:      pulumi.String("string"),
    	DestinationRegionId: pulumi.String("string"),
    	DestinationZoneId:   pulumi.String("string"),
    	SourceZoneId:        pulumi.String("string"),
    	PairIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	OneShot:              pulumi.Bool(false),
    	Description:          pulumi.String("string"),
    	ResourceGroupId:      pulumi.String("string"),
    	ReverseReplicate:     pulumi.Bool(false),
    	Rpo:                  pulumi.Int(0),
    	DiskReplicaGroupName: pulumi.String("string"),
    	Status:               pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var diskReplicaGroupResource = new DiskReplicaGroup("diskReplicaGroupResource", DiskReplicaGroupArgs.builder()
        .sourceRegionId("string")
        .destinationRegionId("string")
        .destinationZoneId("string")
        .sourceZoneId("string")
        .pairIds("string")
        .oneShot(false)
        .description("string")
        .resourceGroupId("string")
        .reverseReplicate(false)
        .rpo(0)
        .diskReplicaGroupName("string")
        .status("string")
        .tags(Map.of("string", "string"))
        .build());
    
    disk_replica_group_resource = alicloud.ebs.DiskReplicaGroup("diskReplicaGroupResource",
        source_region_id="string",
        destination_region_id="string",
        destination_zone_id="string",
        source_zone_id="string",
        pair_ids=["string"],
        one_shot=False,
        description="string",
        resource_group_id="string",
        reverse_replicate=False,
        rpo=0,
        disk_replica_group_name="string",
        status="string",
        tags={
            "string": "string",
        })
    
    const diskReplicaGroupResource = new alicloud.ebs.DiskReplicaGroup("diskReplicaGroupResource", {
        sourceRegionId: "string",
        destinationRegionId: "string",
        destinationZoneId: "string",
        sourceZoneId: "string",
        pairIds: ["string"],
        oneShot: false,
        description: "string",
        resourceGroupId: "string",
        reverseReplicate: false,
        rpo: 0,
        diskReplicaGroupName: "string",
        status: "string",
        tags: {
            string: "string",
        },
    });
    
    type: alicloud:ebs:DiskReplicaGroup
    properties:
        description: string
        destinationRegionId: string
        destinationZoneId: string
        diskReplicaGroupName: string
        oneShot: false
        pairIds:
            - string
        resourceGroupId: string
        reverseReplicate: false
        rpo: 0
        sourceRegionId: string
        sourceZoneId: string
        status: string
        tags:
            string: string
    

    DiskReplicaGroup Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The DiskReplicaGroup resource accepts the following input properties:

    DestinationRegionId string
    The ID of the region to which the disaster recovery site belongs.
    DestinationZoneId string
    The ID of the zone to which the disaster recovery site belongs.
    SourceRegionId string
    The ID of the region to which the production site belongs.
    SourceZoneId string
    The ID of the zone to which the production site belongs.
    Description string
    The description of the consistent replication group.
    DiskReplicaGroupName string
    Consistent replication group name.
    GroupName string
    . Field 'group_name' has been deprecated from provider version 1.245.0. New field 'disk_replica_group_name' instead.

    Deprecated: Field 'group_name' has been deprecated since provider version 1.245.0. New field 'disk_replica_group_name' instead.

    OneShot bool

    Whether to synchronize immediately. Value range:

    • true: Start data synchronization immediately.
    • false: Data Synchronization starts after the RPO time period.

    Default value: false.

    PairIds List<string>
    List of replication pair IDs contained in a consistent replication group.
    ResourceGroupId string
    resource group ID of enterprise
    ReverseReplicate bool
    Specifies whether to enable the reverse replication sub-feature. Valid values: true and false. Default value: true.
    Rpo int
    The RPO value set by the consistency group in seconds. Currently only 900 seconds are supported.
    Status string
    The status of the consistent replication group. Possible values:

    • invalid: invalid. This state indicates that there is an exception to the replication pair in the consistent replication group.
    • creating: creating.
    • created: created.
    • create_failed: creation failed.
    • manual_syncing: in a single synchronization. If it is the first single synchronization, this status is also displayed in the synchronization.
    • syncing: synchronization. This state is the first time data is copied asynchronously between the master and slave disks.
    • normal: normal. When data replication is completed within the current cycle of asynchronous replication, it will be in this state.
    • stopping: stopping.
    • stopped: stopped.
    • stop_failed: Stop failed.
    • Failover: failover.
    • Failed: failover completed.
    • failover_failed: failover failed.
    • Reprotection: In reverse copy operation.
    • reprotect_failed: reverse replication failed.
    • deleting: deleting.
    • delete_failed: delete failed.
    • deleted: deleted.
    Tags Dictionary<string, string>

    The tag of the resource

    The following arguments will be discarded. Please use new fields as soon as possible:

    DestinationRegionId string
    The ID of the region to which the disaster recovery site belongs.
    DestinationZoneId string
    The ID of the zone to which the disaster recovery site belongs.
    SourceRegionId string
    The ID of the region to which the production site belongs.
    SourceZoneId string
    The ID of the zone to which the production site belongs.
    Description string
    The description of the consistent replication group.
    DiskReplicaGroupName string
    Consistent replication group name.
    GroupName string
    . Field 'group_name' has been deprecated from provider version 1.245.0. New field 'disk_replica_group_name' instead.

    Deprecated: Field 'group_name' has been deprecated since provider version 1.245.0. New field 'disk_replica_group_name' instead.

    OneShot bool

    Whether to synchronize immediately. Value range:

    • true: Start data synchronization immediately.
    • false: Data Synchronization starts after the RPO time period.

    Default value: false.

    PairIds []string
    List of replication pair IDs contained in a consistent replication group.
    ResourceGroupId string
    resource group ID of enterprise
    ReverseReplicate bool
    Specifies whether to enable the reverse replication sub-feature. Valid values: true and false. Default value: true.
    Rpo int
    The RPO value set by the consistency group in seconds. Currently only 900 seconds are supported.
    Status string
    The status of the consistent replication group. Possible values:

    • invalid: invalid. This state indicates that there is an exception to the replication pair in the consistent replication group.
    • creating: creating.
    • created: created.
    • create_failed: creation failed.
    • manual_syncing: in a single synchronization. If it is the first single synchronization, this status is also displayed in the synchronization.
    • syncing: synchronization. This state is the first time data is copied asynchronously between the master and slave disks.
    • normal: normal. When data replication is completed within the current cycle of asynchronous replication, it will be in this state.
    • stopping: stopping.
    • stopped: stopped.
    • stop_failed: Stop failed.
    • Failover: failover.
    • Failed: failover completed.
    • failover_failed: failover failed.
    • Reprotection: In reverse copy operation.
    • reprotect_failed: reverse replication failed.
    • deleting: deleting.
    • delete_failed: delete failed.
    • deleted: deleted.
    Tags map[string]string

    The tag of the resource

    The following arguments will be discarded. Please use new fields as soon as possible:

    destinationRegionId String
    The ID of the region to which the disaster recovery site belongs.
    destinationZoneId String
    The ID of the zone to which the disaster recovery site belongs.
    sourceRegionId String
    The ID of the region to which the production site belongs.
    sourceZoneId String
    The ID of the zone to which the production site belongs.
    description String
    The description of the consistent replication group.
    diskReplicaGroupName String
    Consistent replication group name.
    groupName String
    . Field 'group_name' has been deprecated from provider version 1.245.0. New field 'disk_replica_group_name' instead.

    Deprecated: Field 'group_name' has been deprecated since provider version 1.245.0. New field 'disk_replica_group_name' instead.

    oneShot Boolean

    Whether to synchronize immediately. Value range:

    • true: Start data synchronization immediately.
    • false: Data Synchronization starts after the RPO time period.

    Default value: false.

    pairIds List<String>
    List of replication pair IDs contained in a consistent replication group.
    resourceGroupId String
    resource group ID of enterprise
    reverseReplicate Boolean
    Specifies whether to enable the reverse replication sub-feature. Valid values: true and false. Default value: true.
    rpo Integer
    The RPO value set by the consistency group in seconds. Currently only 900 seconds are supported.
    status String
    The status of the consistent replication group. Possible values:

    • invalid: invalid. This state indicates that there is an exception to the replication pair in the consistent replication group.
    • creating: creating.
    • created: created.
    • create_failed: creation failed.
    • manual_syncing: in a single synchronization. If it is the first single synchronization, this status is also displayed in the synchronization.
    • syncing: synchronization. This state is the first time data is copied asynchronously between the master and slave disks.
    • normal: normal. When data replication is completed within the current cycle of asynchronous replication, it will be in this state.
    • stopping: stopping.
    • stopped: stopped.
    • stop_failed: Stop failed.
    • Failover: failover.
    • Failed: failover completed.
    • failover_failed: failover failed.
    • Reprotection: In reverse copy operation.
    • reprotect_failed: reverse replication failed.
    • deleting: deleting.
    • delete_failed: delete failed.
    • deleted: deleted.
    tags Map<String,String>

    The tag of the resource

    The following arguments will be discarded. Please use new fields as soon as possible:

    destinationRegionId string
    The ID of the region to which the disaster recovery site belongs.
    destinationZoneId string
    The ID of the zone to which the disaster recovery site belongs.
    sourceRegionId string
    The ID of the region to which the production site belongs.
    sourceZoneId string
    The ID of the zone to which the production site belongs.
    description string
    The description of the consistent replication group.
    diskReplicaGroupName string
    Consistent replication group name.
    groupName string
    . Field 'group_name' has been deprecated from provider version 1.245.0. New field 'disk_replica_group_name' instead.

    Deprecated: Field 'group_name' has been deprecated since provider version 1.245.0. New field 'disk_replica_group_name' instead.

    oneShot boolean

    Whether to synchronize immediately. Value range:

    • true: Start data synchronization immediately.
    • false: Data Synchronization starts after the RPO time period.

    Default value: false.

    pairIds string[]
    List of replication pair IDs contained in a consistent replication group.
    resourceGroupId string
    resource group ID of enterprise
    reverseReplicate boolean
    Specifies whether to enable the reverse replication sub-feature. Valid values: true and false. Default value: true.
    rpo number
    The RPO value set by the consistency group in seconds. Currently only 900 seconds are supported.
    status string
    The status of the consistent replication group. Possible values:

    • invalid: invalid. This state indicates that there is an exception to the replication pair in the consistent replication group.
    • creating: creating.
    • created: created.
    • create_failed: creation failed.
    • manual_syncing: in a single synchronization. If it is the first single synchronization, this status is also displayed in the synchronization.
    • syncing: synchronization. This state is the first time data is copied asynchronously between the master and slave disks.
    • normal: normal. When data replication is completed within the current cycle of asynchronous replication, it will be in this state.
    • stopping: stopping.
    • stopped: stopped.
    • stop_failed: Stop failed.
    • Failover: failover.
    • Failed: failover completed.
    • failover_failed: failover failed.
    • Reprotection: In reverse copy operation.
    • reprotect_failed: reverse replication failed.
    • deleting: deleting.
    • delete_failed: delete failed.
    • deleted: deleted.
    tags {[key: string]: string}

    The tag of the resource

    The following arguments will be discarded. Please use new fields as soon as possible:

    destination_region_id str
    The ID of the region to which the disaster recovery site belongs.
    destination_zone_id str
    The ID of the zone to which the disaster recovery site belongs.
    source_region_id str
    The ID of the region to which the production site belongs.
    source_zone_id str
    The ID of the zone to which the production site belongs.
    description str
    The description of the consistent replication group.
    disk_replica_group_name str
    Consistent replication group name.
    group_name str
    . Field 'group_name' has been deprecated from provider version 1.245.0. New field 'disk_replica_group_name' instead.

    Deprecated: Field 'group_name' has been deprecated since provider version 1.245.0. New field 'disk_replica_group_name' instead.

    one_shot bool

    Whether to synchronize immediately. Value range:

    • true: Start data synchronization immediately.
    • false: Data Synchronization starts after the RPO time period.

    Default value: false.

    pair_ids Sequence[str]
    List of replication pair IDs contained in a consistent replication group.
    resource_group_id str
    resource group ID of enterprise
    reverse_replicate bool
    Specifies whether to enable the reverse replication sub-feature. Valid values: true and false. Default value: true.
    rpo int
    The RPO value set by the consistency group in seconds. Currently only 900 seconds are supported.
    status str
    The status of the consistent replication group. Possible values:

    • invalid: invalid. This state indicates that there is an exception to the replication pair in the consistent replication group.
    • creating: creating.
    • created: created.
    • create_failed: creation failed.
    • manual_syncing: in a single synchronization. If it is the first single synchronization, this status is also displayed in the synchronization.
    • syncing: synchronization. This state is the first time data is copied asynchronously between the master and slave disks.
    • normal: normal. When data replication is completed within the current cycle of asynchronous replication, it will be in this state.
    • stopping: stopping.
    • stopped: stopped.
    • stop_failed: Stop failed.
    • Failover: failover.
    • Failed: failover completed.
    • failover_failed: failover failed.
    • Reprotection: In reverse copy operation.
    • reprotect_failed: reverse replication failed.
    • deleting: deleting.
    • delete_failed: delete failed.
    • deleted: deleted.
    tags Mapping[str, str]

    The tag of the resource

    The following arguments will be discarded. Please use new fields as soon as possible:

    destinationRegionId String
    The ID of the region to which the disaster recovery site belongs.
    destinationZoneId String
    The ID of the zone to which the disaster recovery site belongs.
    sourceRegionId String
    The ID of the region to which the production site belongs.
    sourceZoneId String
    The ID of the zone to which the production site belongs.
    description String
    The description of the consistent replication group.
    diskReplicaGroupName String
    Consistent replication group name.
    groupName String
    . Field 'group_name' has been deprecated from provider version 1.245.0. New field 'disk_replica_group_name' instead.

    Deprecated: Field 'group_name' has been deprecated since provider version 1.245.0. New field 'disk_replica_group_name' instead.

    oneShot Boolean

    Whether to synchronize immediately. Value range:

    • true: Start data synchronization immediately.
    • false: Data Synchronization starts after the RPO time period.

    Default value: false.

    pairIds List<String>
    List of replication pair IDs contained in a consistent replication group.
    resourceGroupId String
    resource group ID of enterprise
    reverseReplicate Boolean
    Specifies whether to enable the reverse replication sub-feature. Valid values: true and false. Default value: true.
    rpo Number
    The RPO value set by the consistency group in seconds. Currently only 900 seconds are supported.
    status String
    The status of the consistent replication group. Possible values:

    • invalid: invalid. This state indicates that there is an exception to the replication pair in the consistent replication group.
    • creating: creating.
    • created: created.
    • create_failed: creation failed.
    • manual_syncing: in a single synchronization. If it is the first single synchronization, this status is also displayed in the synchronization.
    • syncing: synchronization. This state is the first time data is copied asynchronously between the master and slave disks.
    • normal: normal. When data replication is completed within the current cycle of asynchronous replication, it will be in this state.
    • stopping: stopping.
    • stopped: stopped.
    • stop_failed: Stop failed.
    • Failover: failover.
    • Failed: failover completed.
    • failover_failed: failover failed.
    • Reprotection: In reverse copy operation.
    • reprotect_failed: reverse replication failed.
    • deleting: deleting.
    • delete_failed: delete failed.
    • deleted: deleted.
    tags Map<String>

    The tag of the resource

    The following arguments will be discarded. Please use new fields as soon as possible:

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing DiskReplicaGroup Resource

    Get an existing DiskReplicaGroup 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?: DiskReplicaGroupState, opts?: CustomResourceOptions): DiskReplicaGroup
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            destination_region_id: Optional[str] = None,
            destination_zone_id: Optional[str] = None,
            disk_replica_group_name: Optional[str] = None,
            group_name: Optional[str] = None,
            one_shot: Optional[bool] = None,
            pair_ids: Optional[Sequence[str]] = None,
            resource_group_id: Optional[str] = None,
            reverse_replicate: Optional[bool] = None,
            rpo: Optional[int] = None,
            source_region_id: Optional[str] = None,
            source_zone_id: Optional[str] = None,
            status: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None) -> DiskReplicaGroup
    func GetDiskReplicaGroup(ctx *Context, name string, id IDInput, state *DiskReplicaGroupState, opts ...ResourceOption) (*DiskReplicaGroup, error)
    public static DiskReplicaGroup Get(string name, Input<string> id, DiskReplicaGroupState? state, CustomResourceOptions? opts = null)
    public static DiskReplicaGroup get(String name, Output<String> id, DiskReplicaGroupState state, CustomResourceOptions options)
    resources:  _:    type: alicloud:ebs:DiskReplicaGroup    get:      id: ${id}
    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:
    Description string
    The description of the consistent replication group.
    DestinationRegionId string
    The ID of the region to which the disaster recovery site belongs.
    DestinationZoneId string
    The ID of the zone to which the disaster recovery site belongs.
    DiskReplicaGroupName string
    Consistent replication group name.
    GroupName string
    . Field 'group_name' has been deprecated from provider version 1.245.0. New field 'disk_replica_group_name' instead.

    Deprecated: Field 'group_name' has been deprecated since provider version 1.245.0. New field 'disk_replica_group_name' instead.

    OneShot bool

    Whether to synchronize immediately. Value range:

    • true: Start data synchronization immediately.
    • false: Data Synchronization starts after the RPO time period.

    Default value: false.

    PairIds List<string>
    List of replication pair IDs contained in a consistent replication group.
    ResourceGroupId string
    resource group ID of enterprise
    ReverseReplicate bool
    Specifies whether to enable the reverse replication sub-feature. Valid values: true and false. Default value: true.
    Rpo int
    The RPO value set by the consistency group in seconds. Currently only 900 seconds are supported.
    SourceRegionId string
    The ID of the region to which the production site belongs.
    SourceZoneId string
    The ID of the zone to which the production site belongs.
    Status string
    The status of the consistent replication group. Possible values:

    • invalid: invalid. This state indicates that there is an exception to the replication pair in the consistent replication group.
    • creating: creating.
    • created: created.
    • create_failed: creation failed.
    • manual_syncing: in a single synchronization. If it is the first single synchronization, this status is also displayed in the synchronization.
    • syncing: synchronization. This state is the first time data is copied asynchronously between the master and slave disks.
    • normal: normal. When data replication is completed within the current cycle of asynchronous replication, it will be in this state.
    • stopping: stopping.
    • stopped: stopped.
    • stop_failed: Stop failed.
    • Failover: failover.
    • Failed: failover completed.
    • failover_failed: failover failed.
    • Reprotection: In reverse copy operation.
    • reprotect_failed: reverse replication failed.
    • deleting: deleting.
    • delete_failed: delete failed.
    • deleted: deleted.
    Tags Dictionary<string, string>

    The tag of the resource

    The following arguments will be discarded. Please use new fields as soon as possible:

    Description string
    The description of the consistent replication group.
    DestinationRegionId string
    The ID of the region to which the disaster recovery site belongs.
    DestinationZoneId string
    The ID of the zone to which the disaster recovery site belongs.
    DiskReplicaGroupName string
    Consistent replication group name.
    GroupName string
    . Field 'group_name' has been deprecated from provider version 1.245.0. New field 'disk_replica_group_name' instead.

    Deprecated: Field 'group_name' has been deprecated since provider version 1.245.0. New field 'disk_replica_group_name' instead.

    OneShot bool

    Whether to synchronize immediately. Value range:

    • true: Start data synchronization immediately.
    • false: Data Synchronization starts after the RPO time period.

    Default value: false.

    PairIds []string
    List of replication pair IDs contained in a consistent replication group.
    ResourceGroupId string
    resource group ID of enterprise
    ReverseReplicate bool
    Specifies whether to enable the reverse replication sub-feature. Valid values: true and false. Default value: true.
    Rpo int
    The RPO value set by the consistency group in seconds. Currently only 900 seconds are supported.
    SourceRegionId string
    The ID of the region to which the production site belongs.
    SourceZoneId string
    The ID of the zone to which the production site belongs.
    Status string
    The status of the consistent replication group. Possible values:

    • invalid: invalid. This state indicates that there is an exception to the replication pair in the consistent replication group.
    • creating: creating.
    • created: created.
    • create_failed: creation failed.
    • manual_syncing: in a single synchronization. If it is the first single synchronization, this status is also displayed in the synchronization.
    • syncing: synchronization. This state is the first time data is copied asynchronously between the master and slave disks.
    • normal: normal. When data replication is completed within the current cycle of asynchronous replication, it will be in this state.
    • stopping: stopping.
    • stopped: stopped.
    • stop_failed: Stop failed.
    • Failover: failover.
    • Failed: failover completed.
    • failover_failed: failover failed.
    • Reprotection: In reverse copy operation.
    • reprotect_failed: reverse replication failed.
    • deleting: deleting.
    • delete_failed: delete failed.
    • deleted: deleted.
    Tags map[string]string

    The tag of the resource

    The following arguments will be discarded. Please use new fields as soon as possible:

    description String
    The description of the consistent replication group.
    destinationRegionId String
    The ID of the region to which the disaster recovery site belongs.
    destinationZoneId String
    The ID of the zone to which the disaster recovery site belongs.
    diskReplicaGroupName String
    Consistent replication group name.
    groupName String
    . Field 'group_name' has been deprecated from provider version 1.245.0. New field 'disk_replica_group_name' instead.

    Deprecated: Field 'group_name' has been deprecated since provider version 1.245.0. New field 'disk_replica_group_name' instead.

    oneShot Boolean

    Whether to synchronize immediately. Value range:

    • true: Start data synchronization immediately.
    • false: Data Synchronization starts after the RPO time period.

    Default value: false.

    pairIds List<String>
    List of replication pair IDs contained in a consistent replication group.
    resourceGroupId String
    resource group ID of enterprise
    reverseReplicate Boolean
    Specifies whether to enable the reverse replication sub-feature. Valid values: true and false. Default value: true.
    rpo Integer
    The RPO value set by the consistency group in seconds. Currently only 900 seconds are supported.
    sourceRegionId String
    The ID of the region to which the production site belongs.
    sourceZoneId String
    The ID of the zone to which the production site belongs.
    status String
    The status of the consistent replication group. Possible values:

    • invalid: invalid. This state indicates that there is an exception to the replication pair in the consistent replication group.
    • creating: creating.
    • created: created.
    • create_failed: creation failed.
    • manual_syncing: in a single synchronization. If it is the first single synchronization, this status is also displayed in the synchronization.
    • syncing: synchronization. This state is the first time data is copied asynchronously between the master and slave disks.
    • normal: normal. When data replication is completed within the current cycle of asynchronous replication, it will be in this state.
    • stopping: stopping.
    • stopped: stopped.
    • stop_failed: Stop failed.
    • Failover: failover.
    • Failed: failover completed.
    • failover_failed: failover failed.
    • Reprotection: In reverse copy operation.
    • reprotect_failed: reverse replication failed.
    • deleting: deleting.
    • delete_failed: delete failed.
    • deleted: deleted.
    tags Map<String,String>

    The tag of the resource

    The following arguments will be discarded. Please use new fields as soon as possible:

    description string
    The description of the consistent replication group.
    destinationRegionId string
    The ID of the region to which the disaster recovery site belongs.
    destinationZoneId string
    The ID of the zone to which the disaster recovery site belongs.
    diskReplicaGroupName string
    Consistent replication group name.
    groupName string
    . Field 'group_name' has been deprecated from provider version 1.245.0. New field 'disk_replica_group_name' instead.

    Deprecated: Field 'group_name' has been deprecated since provider version 1.245.0. New field 'disk_replica_group_name' instead.

    oneShot boolean

    Whether to synchronize immediately. Value range:

    • true: Start data synchronization immediately.
    • false: Data Synchronization starts after the RPO time period.

    Default value: false.

    pairIds string[]
    List of replication pair IDs contained in a consistent replication group.
    resourceGroupId string
    resource group ID of enterprise
    reverseReplicate boolean
    Specifies whether to enable the reverse replication sub-feature. Valid values: true and false. Default value: true.
    rpo number
    The RPO value set by the consistency group in seconds. Currently only 900 seconds are supported.
    sourceRegionId string
    The ID of the region to which the production site belongs.
    sourceZoneId string
    The ID of the zone to which the production site belongs.
    status string
    The status of the consistent replication group. Possible values:

    • invalid: invalid. This state indicates that there is an exception to the replication pair in the consistent replication group.
    • creating: creating.
    • created: created.
    • create_failed: creation failed.
    • manual_syncing: in a single synchronization. If it is the first single synchronization, this status is also displayed in the synchronization.
    • syncing: synchronization. This state is the first time data is copied asynchronously between the master and slave disks.
    • normal: normal. When data replication is completed within the current cycle of asynchronous replication, it will be in this state.
    • stopping: stopping.
    • stopped: stopped.
    • stop_failed: Stop failed.
    • Failover: failover.
    • Failed: failover completed.
    • failover_failed: failover failed.
    • Reprotection: In reverse copy operation.
    • reprotect_failed: reverse replication failed.
    • deleting: deleting.
    • delete_failed: delete failed.
    • deleted: deleted.
    tags {[key: string]: string}

    The tag of the resource

    The following arguments will be discarded. Please use new fields as soon as possible:

    description str
    The description of the consistent replication group.
    destination_region_id str
    The ID of the region to which the disaster recovery site belongs.
    destination_zone_id str
    The ID of the zone to which the disaster recovery site belongs.
    disk_replica_group_name str
    Consistent replication group name.
    group_name str
    . Field 'group_name' has been deprecated from provider version 1.245.0. New field 'disk_replica_group_name' instead.

    Deprecated: Field 'group_name' has been deprecated since provider version 1.245.0. New field 'disk_replica_group_name' instead.

    one_shot bool

    Whether to synchronize immediately. Value range:

    • true: Start data synchronization immediately.
    • false: Data Synchronization starts after the RPO time period.

    Default value: false.

    pair_ids Sequence[str]
    List of replication pair IDs contained in a consistent replication group.
    resource_group_id str
    resource group ID of enterprise
    reverse_replicate bool
    Specifies whether to enable the reverse replication sub-feature. Valid values: true and false. Default value: true.
    rpo int
    The RPO value set by the consistency group in seconds. Currently only 900 seconds are supported.
    source_region_id str
    The ID of the region to which the production site belongs.
    source_zone_id str
    The ID of the zone to which the production site belongs.
    status str
    The status of the consistent replication group. Possible values:

    • invalid: invalid. This state indicates that there is an exception to the replication pair in the consistent replication group.
    • creating: creating.
    • created: created.
    • create_failed: creation failed.
    • manual_syncing: in a single synchronization. If it is the first single synchronization, this status is also displayed in the synchronization.
    • syncing: synchronization. This state is the first time data is copied asynchronously between the master and slave disks.
    • normal: normal. When data replication is completed within the current cycle of asynchronous replication, it will be in this state.
    • stopping: stopping.
    • stopped: stopped.
    • stop_failed: Stop failed.
    • Failover: failover.
    • Failed: failover completed.
    • failover_failed: failover failed.
    • Reprotection: In reverse copy operation.
    • reprotect_failed: reverse replication failed.
    • deleting: deleting.
    • delete_failed: delete failed.
    • deleted: deleted.
    tags Mapping[str, str]

    The tag of the resource

    The following arguments will be discarded. Please use new fields as soon as possible:

    description String
    The description of the consistent replication group.
    destinationRegionId String
    The ID of the region to which the disaster recovery site belongs.
    destinationZoneId String
    The ID of the zone to which the disaster recovery site belongs.
    diskReplicaGroupName String
    Consistent replication group name.
    groupName String
    . Field 'group_name' has been deprecated from provider version 1.245.0. New field 'disk_replica_group_name' instead.

    Deprecated: Field 'group_name' has been deprecated since provider version 1.245.0. New field 'disk_replica_group_name' instead.

    oneShot Boolean

    Whether to synchronize immediately. Value range:

    • true: Start data synchronization immediately.
    • false: Data Synchronization starts after the RPO time period.

    Default value: false.

    pairIds List<String>
    List of replication pair IDs contained in a consistent replication group.
    resourceGroupId String
    resource group ID of enterprise
    reverseReplicate Boolean
    Specifies whether to enable the reverse replication sub-feature. Valid values: true and false. Default value: true.
    rpo Number
    The RPO value set by the consistency group in seconds. Currently only 900 seconds are supported.
    sourceRegionId String
    The ID of the region to which the production site belongs.
    sourceZoneId String
    The ID of the zone to which the production site belongs.
    status String
    The status of the consistent replication group. Possible values:

    • invalid: invalid. This state indicates that there is an exception to the replication pair in the consistent replication group.
    • creating: creating.
    • created: created.
    • create_failed: creation failed.
    • manual_syncing: in a single synchronization. If it is the first single synchronization, this status is also displayed in the synchronization.
    • syncing: synchronization. This state is the first time data is copied asynchronously between the master and slave disks.
    • normal: normal. When data replication is completed within the current cycle of asynchronous replication, it will be in this state.
    • stopping: stopping.
    • stopped: stopped.
    • stop_failed: Stop failed.
    • Failover: failover.
    • Failed: failover completed.
    • failover_failed: failover failed.
    • Reprotection: In reverse copy operation.
    • reprotect_failed: reverse replication failed.
    • deleting: deleting.
    • delete_failed: delete failed.
    • deleted: deleted.
    tags Map<String>

    The tag of the resource

    The following arguments will be discarded. Please use new fields as soon as possible:

    Import

    Elastic Block Storage(EBS) Disk Replica Group can be imported using the id, e.g.

    $ pulumi import alicloud:ebs/diskReplicaGroup:DiskReplicaGroup example <id>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.77.0 published on Friday, May 2, 2025 by Pulumi