1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. ebs
  5. DiskReplicaGroup
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.ebs.DiskReplicaGroup

Explore with Pulumi AI

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,
});
Copy
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)
Copy
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
	})
}
Copy
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,
    });

});
Copy
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.inputs.GetRegionsArgs;
import com.pulumi.alicloud.ebs.EbsFunctions;
import com.pulumi.alicloud.ebs.inputs.GetRegionsArgs;
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.applyValue(getRegionsResult -> getRegionsResult.regions()[0].zones()[0].zoneId()))
            .destinationRegionId(default_.regions()[0].id())
            .destinationZoneId(defaultGetRegions.applyValue(getRegionsResult -> getRegionsResult.regions()[0].zones()[1].zoneId()))
            .groupName(name)
            .description(name)
            .rpo(900)
            .build());

    }
}
Copy
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}
Copy

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 This property is required. string
The unique name of the resource.
args This property is required. DiskReplicaGroupArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. DiskReplicaGroupArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. DiskReplicaGroupArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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" },
    },
});
Copy
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"),
	},
})
Copy
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());
Copy
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",
    })
Copy
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",
    },
});
Copy
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
Copy

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
This property is required.
Changes to this property will trigger replacement.
string
The ID of the region to which the disaster recovery site belongs.
DestinationZoneId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the zone to which the disaster recovery site belongs.
SourceRegionId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the region to which the production site belongs.
SourceZoneId
This property is required.
Changes to this property will trigger replacement.
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 Changes to this property will trigger replacement. 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
This property is required.
Changes to this property will trigger replacement.
string
The ID of the region to which the disaster recovery site belongs.
DestinationZoneId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the zone to which the disaster recovery site belongs.
SourceRegionId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the region to which the production site belongs.
SourceZoneId
This property is required.
Changes to this property will trigger replacement.
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 Changes to this property will trigger replacement. 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
This property is required.
Changes to this property will trigger replacement.
String
The ID of the region to which the disaster recovery site belongs.
destinationZoneId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the zone to which the disaster recovery site belongs.
sourceRegionId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the region to which the production site belongs.
sourceZoneId
This property is required.
Changes to this property will trigger replacement.
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 Changes to this property will trigger replacement. 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
This property is required.
Changes to this property will trigger replacement.
string
The ID of the region to which the disaster recovery site belongs.
destinationZoneId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the zone to which the disaster recovery site belongs.
sourceRegionId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the region to which the production site belongs.
sourceZoneId
This property is required.
Changes to this property will trigger replacement.
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 Changes to this property will trigger replacement. 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
This property is required.
Changes to this property will trigger replacement.
str
The ID of the region to which the disaster recovery site belongs.
destination_zone_id
This property is required.
Changes to this property will trigger replacement.
str
The ID of the zone to which the disaster recovery site belongs.
source_region_id
This property is required.
Changes to this property will trigger replacement.
str
The ID of the region to which the production site belongs.
source_zone_id
This property is required.
Changes to this property will trigger replacement.
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 Changes to this property will trigger replacement. 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
This property is required.
Changes to this property will trigger replacement.
String
The ID of the region to which the disaster recovery site belongs.
destinationZoneId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the zone to which the disaster recovery site belongs.
sourceRegionId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the region to which the production site belongs.
sourceZoneId
This property is required.
Changes to this property will trigger replacement.
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 Changes to this property will trigger replacement. 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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 Changes to this property will trigger replacement. string
The ID of the region to which the disaster recovery site belongs.
DestinationZoneId Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. int
The RPO value set by the consistency group in seconds. Currently only 900 seconds are supported.
SourceRegionId Changes to this property will trigger replacement. string
The ID of the region to which the production site belongs.
SourceZoneId Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
The ID of the region to which the disaster recovery site belongs.
DestinationZoneId Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. int
The RPO value set by the consistency group in seconds. Currently only 900 seconds are supported.
SourceRegionId Changes to this property will trigger replacement. string
The ID of the region to which the production site belongs.
SourceZoneId Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. String
The ID of the region to which the disaster recovery site belongs.
destinationZoneId Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. Integer
The RPO value set by the consistency group in seconds. Currently only 900 seconds are supported.
sourceRegionId Changes to this property will trigger replacement. String
The ID of the region to which the production site belongs.
sourceZoneId Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
The ID of the region to which the disaster recovery site belongs.
destinationZoneId Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. number
The RPO value set by the consistency group in seconds. Currently only 900 seconds are supported.
sourceRegionId Changes to this property will trigger replacement. string
The ID of the region to which the production site belongs.
sourceZoneId Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. str
The ID of the region to which the disaster recovery site belongs.
destination_zone_id Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. int
The RPO value set by the consistency group in seconds. Currently only 900 seconds are supported.
source_region_id Changes to this property will trigger replacement. str
The ID of the region to which the production site belongs.
source_zone_id Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. String
The ID of the region to which the disaster recovery site belongs.
destinationZoneId Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. Number
The RPO value set by the consistency group in seconds. Currently only 900 seconds are supported.
sourceRegionId Changes to this property will trigger replacement. String
The ID of the region to which the production site belongs.
sourceZoneId Changes to this property will trigger replacement. 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>
Copy

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.