Alibaba Cloud v3.38.0, Jun 2 23
Alibaba Cloud v3.38.0, Jun 2 23
alicloud.ebs.DiskReplicaPair
Explore with Pulumi AI
Provides a Ebs Disk Replica Pair resource.
For information about Ebs Disk Replica Pair and how to use it, see What is Disk Replica Pair.
NOTE: Available in v1.196.0+.
Example Usage
Basic Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var defaultEcsDisk = new AliCloud.Ecs.EcsDisk("defaultEcsDisk", new()
{
ZoneId = "cn-hangzhou-onebox-nebula",
Category = "cloud_essd",
DeleteAutoSnapshot = true,
DeleteWithInstance = true,
Description = "Test For Terraform",
DiskName = @var.Name,
EnableAutoSnapshot = true,
Encrypted = true,
Size = 500,
Tags =
{
{ "Created", "TF" },
{ "Environment", "Acceptance-test" },
},
});
var defaultone = new AliCloud.Ecs.EcsDisk("defaultone", new()
{
ZoneId = "cn-hangzhou-onebox-nebula-b",
Category = "cloud_essd",
DeleteAutoSnapshot = true,
DeleteWithInstance = true,
Description = "Test For Terraform",
DiskName = @var.Name,
EnableAutoSnapshot = true,
Encrypted = true,
Size = 500,
Tags =
{
{ "Created", "TF" },
{ "Environment", "Acceptance-test" },
},
});
var defaultDiskReplicaPair = new AliCloud.Ebs.DiskReplicaPair("defaultDiskReplicaPair", new()
{
DestinationDiskId = defaultEcsDisk.Id,
DestinationRegionId = "cn-hangzhou-onebox-nebula",
Bandwidth = "10240",
DestinationZoneId = "cn-hangzhou-onebox-nebula-e",
SourceZoneId = "cn-hangzhou-onebox-nebula-b",
DiskId = defaultone.Id,
Description = "abc",
});
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ebs"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
defaultEcsDisk, err := ecs.NewEcsDisk(ctx, "defaultEcsDisk", &ecs.EcsDiskArgs{
ZoneId: pulumi.String("cn-hangzhou-onebox-nebula"),
Category: pulumi.String("cloud_essd"),
DeleteAutoSnapshot: pulumi.Bool(true),
DeleteWithInstance: pulumi.Bool(true),
Description: pulumi.String("Test For Terraform"),
DiskName: pulumi.Any(_var.Name),
EnableAutoSnapshot: pulumi.Bool(true),
Encrypted: pulumi.Bool(true),
Size: pulumi.Int(500),
Tags: pulumi.AnyMap{
"Created": pulumi.Any("TF"),
"Environment": pulumi.Any("Acceptance-test"),
},
})
if err != nil {
return err
}
defaultone, err := ecs.NewEcsDisk(ctx, "defaultone", &ecs.EcsDiskArgs{
ZoneId: pulumi.String("cn-hangzhou-onebox-nebula-b"),
Category: pulumi.String("cloud_essd"),
DeleteAutoSnapshot: pulumi.Bool(true),
DeleteWithInstance: pulumi.Bool(true),
Description: pulumi.String("Test For Terraform"),
DiskName: pulumi.Any(_var.Name),
EnableAutoSnapshot: pulumi.Bool(true),
Encrypted: pulumi.Bool(true),
Size: pulumi.Int(500),
Tags: pulumi.AnyMap{
"Created": pulumi.Any("TF"),
"Environment": pulumi.Any("Acceptance-test"),
},
})
if err != nil {
return err
}
_, err = ebs.NewDiskReplicaPair(ctx, "defaultDiskReplicaPair", &ebs.DiskReplicaPairArgs{
DestinationDiskId: defaultEcsDisk.ID(),
DestinationRegionId: pulumi.String("cn-hangzhou-onebox-nebula"),
Bandwidth: pulumi.String("10240"),
DestinationZoneId: pulumi.String("cn-hangzhou-onebox-nebula-e"),
SourceZoneId: pulumi.String("cn-hangzhou-onebox-nebula-b"),
DiskId: defaultone.ID(),
Description: pulumi.String("abc"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.ecs.EcsDisk;
import com.pulumi.alicloud.ecs.EcsDiskArgs;
import com.pulumi.alicloud.ebs.DiskReplicaPair;
import com.pulumi.alicloud.ebs.DiskReplicaPairArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var defaultEcsDisk = new EcsDisk("defaultEcsDisk", EcsDiskArgs.builder()
.zoneId("cn-hangzhou-onebox-nebula")
.category("cloud_essd")
.deleteAutoSnapshot("true")
.deleteWithInstance("true")
.description("Test For Terraform")
.diskName(var_.name())
.enableAutoSnapshot("true")
.encrypted("true")
.size("500")
.tags(Map.ofEntries(
Map.entry("Created", "TF"),
Map.entry("Environment", "Acceptance-test")
))
.build());
var defaultone = new EcsDisk("defaultone", EcsDiskArgs.builder()
.zoneId("cn-hangzhou-onebox-nebula-b")
.category("cloud_essd")
.deleteAutoSnapshot("true")
.deleteWithInstance("true")
.description("Test For Terraform")
.diskName(var_.name())
.enableAutoSnapshot("true")
.encrypted("true")
.size("500")
.tags(Map.ofEntries(
Map.entry("Created", "TF"),
Map.entry("Environment", "Acceptance-test")
))
.build());
var defaultDiskReplicaPair = new DiskReplicaPair("defaultDiskReplicaPair", DiskReplicaPairArgs.builder()
.destinationDiskId(defaultEcsDisk.id())
.destinationRegionId("cn-hangzhou-onebox-nebula")
.bandwidth(10240)
.destinationZoneId("cn-hangzhou-onebox-nebula-e")
.sourceZoneId("cn-hangzhou-onebox-nebula-b")
.diskId(defaultone.id())
.description("abc")
.build());
}
}
import pulumi
import pulumi_alicloud as alicloud
default_ecs_disk = alicloud.ecs.EcsDisk("defaultEcsDisk",
zone_id="cn-hangzhou-onebox-nebula",
category="cloud_essd",
delete_auto_snapshot=True,
delete_with_instance=True,
description="Test For Terraform",
disk_name=var["name"],
enable_auto_snapshot=True,
encrypted=True,
size=500,
tags={
"Created": "TF",
"Environment": "Acceptance-test",
})
defaultone = alicloud.ecs.EcsDisk("defaultone",
zone_id="cn-hangzhou-onebox-nebula-b",
category="cloud_essd",
delete_auto_snapshot=True,
delete_with_instance=True,
description="Test For Terraform",
disk_name=var["name"],
enable_auto_snapshot=True,
encrypted=True,
size=500,
tags={
"Created": "TF",
"Environment": "Acceptance-test",
})
default_disk_replica_pair = alicloud.ebs.DiskReplicaPair("defaultDiskReplicaPair",
destination_disk_id=default_ecs_disk.id,
destination_region_id="cn-hangzhou-onebox-nebula",
bandwidth="10240",
destination_zone_id="cn-hangzhou-onebox-nebula-e",
source_zone_id="cn-hangzhou-onebox-nebula-b",
disk_id=defaultone.id,
description="abc")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const defaultEcsDisk = new alicloud.ecs.EcsDisk("defaultEcsDisk", {
zoneId: "cn-hangzhou-onebox-nebula",
category: "cloud_essd",
deleteAutoSnapshot: true,
deleteWithInstance: true,
description: "Test For Terraform",
diskName: _var.name,
enableAutoSnapshot: true,
encrypted: true,
size: 500,
tags: {
Created: "TF",
Environment: "Acceptance-test",
},
});
const defaultone = new alicloud.ecs.EcsDisk("defaultone", {
zoneId: "cn-hangzhou-onebox-nebula-b",
category: "cloud_essd",
deleteAutoSnapshot: true,
deleteWithInstance: true,
description: "Test For Terraform",
diskName: _var.name,
enableAutoSnapshot: true,
encrypted: true,
size: 500,
tags: {
Created: "TF",
Environment: "Acceptance-test",
},
});
const defaultDiskReplicaPair = new alicloud.ebs.DiskReplicaPair("defaultDiskReplicaPair", {
destinationDiskId: defaultEcsDisk.id,
destinationRegionId: "cn-hangzhou-onebox-nebula",
bandwidth: "10240",
destinationZoneId: "cn-hangzhou-onebox-nebula-e",
sourceZoneId: "cn-hangzhou-onebox-nebula-b",
diskId: defaultone.id,
description: "abc",
});
resources:
defaultEcsDisk:
type: alicloud:ecs:EcsDisk
properties:
zoneId: cn-hangzhou-onebox-nebula
category: cloud_essd
deleteAutoSnapshot: 'true'
deleteWithInstance: 'true'
description: Test For Terraform
diskName: ${var.name}
enableAutoSnapshot: 'true'
encrypted: 'true'
size: '500'
tags:
Created: TF
Environment: Acceptance-test
defaultone:
type: alicloud:ecs:EcsDisk
properties:
zoneId: cn-hangzhou-onebox-nebula-b
category: cloud_essd
deleteAutoSnapshot: 'true'
deleteWithInstance: 'true'
description: Test For Terraform
diskName: ${var.name}
enableAutoSnapshot: 'true'
encrypted: 'true'
size: '500'
tags:
Created: TF
Environment: Acceptance-test
defaultDiskReplicaPair:
type: alicloud:ebs:DiskReplicaPair
properties:
destinationDiskId: ${defaultEcsDisk.id}
destinationRegionId: cn-hangzhou-onebox-nebula
bandwidth: 10240
destinationZoneId: cn-hangzhou-onebox-nebula-e
sourceZoneId: cn-hangzhou-onebox-nebula-b
diskId: ${defaultone.id}
description: abc
Create DiskReplicaPair Resource
new DiskReplicaPair(name: string, args: DiskReplicaPairArgs, opts?: CustomResourceOptions);
@overload
def DiskReplicaPair(resource_name: str,
opts: Optional[ResourceOptions] = None,
bandwidth: Optional[str] = None,
description: Optional[str] = None,
destination_disk_id: Optional[str] = None,
destination_region_id: Optional[str] = None,
destination_zone_id: Optional[str] = None,
disk_id: Optional[str] = None,
pair_name: Optional[str] = None,
payment_type: Optional[str] = None,
period: Optional[str] = None,
period_unit: Optional[str] = None,
replica_pair_id: Optional[str] = None,
rpo: Optional[str] = None,
source_zone_id: Optional[str] = None)
@overload
def DiskReplicaPair(resource_name: str,
args: DiskReplicaPairArgs,
opts: Optional[ResourceOptions] = None)
func NewDiskReplicaPair(ctx *Context, name string, args DiskReplicaPairArgs, opts ...ResourceOption) (*DiskReplicaPair, error)
public DiskReplicaPair(string name, DiskReplicaPairArgs args, CustomResourceOptions? opts = null)
public DiskReplicaPair(String name, DiskReplicaPairArgs args)
public DiskReplicaPair(String name, DiskReplicaPairArgs args, CustomResourceOptions options)
type: alicloud:ebs:DiskReplicaPair
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DiskReplicaPairArgs
- 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 DiskReplicaPairArgs
- 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 DiskReplicaPairArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DiskReplicaPairArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DiskReplicaPairArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
DiskReplicaPair Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The DiskReplicaPair resource accepts the following input properties:
- Destination
Disk stringId The ID of the standby disk.
- Destination
Region stringId The ID of the region to which the disaster recovery site belongs.
- Destination
Zone stringId The ID of the zone to which the disaster recovery site belongs.
- Disk
Id string The ID of the primary disk.
- Source
Zone stringId The ID of the zone to which the production site belongs.
- Bandwidth string
The bandwidth for asynchronous data replication between cloud disks. The unit is Kbps. Value range:-10240 Kbps: equal to 10 Mbps.-20480 Kbps: equal to 20 Mbps.-51200 Kbps: equal to 50 Mbps.-102400 Kbps: equal to 100 Mbps.Default value: 10240.This parameter cannot be specified when the ChargeType value is POSTPAY. The system value is 0, which indicates that the disk is dynamically allocated according to data write changes during asynchronous replication.
- Description string
The description of the asynchronous replication relationship. 2 to 256 English or Chinese characters in length and cannot start with' http:// 'or' https.
- Pair
Name string The name of the asynchronous replication relationship. The length must be 2 to 128 characters in length and must start with a letter or Chinese name. It cannot start with http:// or https. It can contain Chinese, English, numbers, half-width colons (:), underscores (_), half-width periods (.), or dashes (-).
- Payment
Type string The payment type of the resource
- Period string
The length of the purchase for the asynchronous replication relationship. When ChargeType=PrePay, this parameter is mandatory. The unit of duration is specified by PeriodUnit and takes on a range of values. When PeriodUnit=Week, this parameter takes values in the range
1
,2
,3
and4
. When PeriodUnit=Month, the parameter takes on the values1
,2
,3
,4
,5
,6
,7
,8
,9
,12
,24
,36
,48
,60
.- Period
Unit string The units of asynchronous replication relationship purchase length. Valid values:
Week
andMonth
. Default value:Month
.- Replica
Pair stringId The first ID of the resource
- Rpo string
The RPO value set by the consistency group in seconds. Currently only 900 seconds are supported.
- Destination
Disk stringId The ID of the standby disk.
- Destination
Region stringId The ID of the region to which the disaster recovery site belongs.
- Destination
Zone stringId The ID of the zone to which the disaster recovery site belongs.
- Disk
Id string The ID of the primary disk.
- Source
Zone stringId The ID of the zone to which the production site belongs.
- Bandwidth string
The bandwidth for asynchronous data replication between cloud disks. The unit is Kbps. Value range:-10240 Kbps: equal to 10 Mbps.-20480 Kbps: equal to 20 Mbps.-51200 Kbps: equal to 50 Mbps.-102400 Kbps: equal to 100 Mbps.Default value: 10240.This parameter cannot be specified when the ChargeType value is POSTPAY. The system value is 0, which indicates that the disk is dynamically allocated according to data write changes during asynchronous replication.
- Description string
The description of the asynchronous replication relationship. 2 to 256 English or Chinese characters in length and cannot start with' http:// 'or' https.
- Pair
Name string The name of the asynchronous replication relationship. The length must be 2 to 128 characters in length and must start with a letter or Chinese name. It cannot start with http:// or https. It can contain Chinese, English, numbers, half-width colons (:), underscores (_), half-width periods (.), or dashes (-).
- Payment
Type string The payment type of the resource
- Period string
The length of the purchase for the asynchronous replication relationship. When ChargeType=PrePay, this parameter is mandatory. The unit of duration is specified by PeriodUnit and takes on a range of values. When PeriodUnit=Week, this parameter takes values in the range
1
,2
,3
and4
. When PeriodUnit=Month, the parameter takes on the values1
,2
,3
,4
,5
,6
,7
,8
,9
,12
,24
,36
,48
,60
.- Period
Unit string The units of asynchronous replication relationship purchase length. Valid values:
Week
andMonth
. Default value:Month
.- Replica
Pair stringId The first ID of the resource
- Rpo string
The RPO value set by the consistency group in seconds. Currently only 900 seconds are supported.
- destination
Disk StringId The ID of the standby disk.
- destination
Region StringId The ID of the region to which the disaster recovery site belongs.
- destination
Zone StringId The ID of the zone to which the disaster recovery site belongs.
- disk
Id String The ID of the primary disk.
- source
Zone StringId The ID of the zone to which the production site belongs.
- bandwidth String
The bandwidth for asynchronous data replication between cloud disks. The unit is Kbps. Value range:-10240 Kbps: equal to 10 Mbps.-20480 Kbps: equal to 20 Mbps.-51200 Kbps: equal to 50 Mbps.-102400 Kbps: equal to 100 Mbps.Default value: 10240.This parameter cannot be specified when the ChargeType value is POSTPAY. The system value is 0, which indicates that the disk is dynamically allocated according to data write changes during asynchronous replication.
- description String
The description of the asynchronous replication relationship. 2 to 256 English or Chinese characters in length and cannot start with' http:// 'or' https.
- pair
Name String The name of the asynchronous replication relationship. The length must be 2 to 128 characters in length and must start with a letter or Chinese name. It cannot start with http:// or https. It can contain Chinese, English, numbers, half-width colons (:), underscores (_), half-width periods (.), or dashes (-).
- payment
Type String The payment type of the resource
- period String
The length of the purchase for the asynchronous replication relationship. When ChargeType=PrePay, this parameter is mandatory. The unit of duration is specified by PeriodUnit and takes on a range of values. When PeriodUnit=Week, this parameter takes values in the range
1
,2
,3
and4
. When PeriodUnit=Month, the parameter takes on the values1
,2
,3
,4
,5
,6
,7
,8
,9
,12
,24
,36
,48
,60
.- period
Unit String The units of asynchronous replication relationship purchase length. Valid values:
Week
andMonth
. Default value:Month
.- replica
Pair StringId The first ID of the resource
- rpo String
The RPO value set by the consistency group in seconds. Currently only 900 seconds are supported.
- destination
Disk stringId The ID of the standby disk.
- destination
Region stringId The ID of the region to which the disaster recovery site belongs.
- destination
Zone stringId The ID of the zone to which the disaster recovery site belongs.
- disk
Id string The ID of the primary disk.
- source
Zone stringId The ID of the zone to which the production site belongs.
- bandwidth string
The bandwidth for asynchronous data replication between cloud disks. The unit is Kbps. Value range:-10240 Kbps: equal to 10 Mbps.-20480 Kbps: equal to 20 Mbps.-51200 Kbps: equal to 50 Mbps.-102400 Kbps: equal to 100 Mbps.Default value: 10240.This parameter cannot be specified when the ChargeType value is POSTPAY. The system value is 0, which indicates that the disk is dynamically allocated according to data write changes during asynchronous replication.
- description string
The description of the asynchronous replication relationship. 2 to 256 English or Chinese characters in length and cannot start with' http:// 'or' https.
- pair
Name string The name of the asynchronous replication relationship. The length must be 2 to 128 characters in length and must start with a letter or Chinese name. It cannot start with http:// or https. It can contain Chinese, English, numbers, half-width colons (:), underscores (_), half-width periods (.), or dashes (-).
- payment
Type string The payment type of the resource
- period string
The length of the purchase for the asynchronous replication relationship. When ChargeType=PrePay, this parameter is mandatory. The unit of duration is specified by PeriodUnit and takes on a range of values. When PeriodUnit=Week, this parameter takes values in the range
1
,2
,3
and4
. When PeriodUnit=Month, the parameter takes on the values1
,2
,3
,4
,5
,6
,7
,8
,9
,12
,24
,36
,48
,60
.- period
Unit string The units of asynchronous replication relationship purchase length. Valid values:
Week
andMonth
. Default value:Month
.- replica
Pair stringId The first ID of the resource
- rpo string
The RPO value set by the consistency group in seconds. Currently only 900 seconds are supported.
- destination_
disk_ strid The ID of the standby disk.
- destination_
region_ strid The ID of the region to which the disaster recovery site belongs.
- destination_
zone_ strid The ID of the zone to which the disaster recovery site belongs.
- disk_
id str The ID of the primary disk.
- source_
zone_ strid The ID of the zone to which the production site belongs.
- bandwidth str
The bandwidth for asynchronous data replication between cloud disks. The unit is Kbps. Value range:-10240 Kbps: equal to 10 Mbps.-20480 Kbps: equal to 20 Mbps.-51200 Kbps: equal to 50 Mbps.-102400 Kbps: equal to 100 Mbps.Default value: 10240.This parameter cannot be specified when the ChargeType value is POSTPAY. The system value is 0, which indicates that the disk is dynamically allocated according to data write changes during asynchronous replication.
- description str
The description of the asynchronous replication relationship. 2 to 256 English or Chinese characters in length and cannot start with' http:// 'or' https.
- pair_
name str The name of the asynchronous replication relationship. The length must be 2 to 128 characters in length and must start with a letter or Chinese name. It cannot start with http:// or https. It can contain Chinese, English, numbers, half-width colons (:), underscores (_), half-width periods (.), or dashes (-).
- payment_
type str The payment type of the resource
- period str
The length of the purchase for the asynchronous replication relationship. When ChargeType=PrePay, this parameter is mandatory. The unit of duration is specified by PeriodUnit and takes on a range of values. When PeriodUnit=Week, this parameter takes values in the range
1
,2
,3
and4
. When PeriodUnit=Month, the parameter takes on the values1
,2
,3
,4
,5
,6
,7
,8
,9
,12
,24
,36
,48
,60
.- period_
unit str The units of asynchronous replication relationship purchase length. Valid values:
Week
andMonth
. Default value:Month
.- replica_
pair_ strid The first ID of the resource
- rpo str
The RPO value set by the consistency group in seconds. Currently only 900 seconds are supported.
- destination
Disk StringId The ID of the standby disk.
- destination
Region StringId The ID of the region to which the disaster recovery site belongs.
- destination
Zone StringId The ID of the zone to which the disaster recovery site belongs.
- disk
Id String The ID of the primary disk.
- source
Zone StringId The ID of the zone to which the production site belongs.
- bandwidth String
The bandwidth for asynchronous data replication between cloud disks. The unit is Kbps. Value range:-10240 Kbps: equal to 10 Mbps.-20480 Kbps: equal to 20 Mbps.-51200 Kbps: equal to 50 Mbps.-102400 Kbps: equal to 100 Mbps.Default value: 10240.This parameter cannot be specified when the ChargeType value is POSTPAY. The system value is 0, which indicates that the disk is dynamically allocated according to data write changes during asynchronous replication.
- description String
The description of the asynchronous replication relationship. 2 to 256 English or Chinese characters in length and cannot start with' http:// 'or' https.
- pair
Name String The name of the asynchronous replication relationship. The length must be 2 to 128 characters in length and must start with a letter or Chinese name. It cannot start with http:// or https. It can contain Chinese, English, numbers, half-width colons (:), underscores (_), half-width periods (.), or dashes (-).
- payment
Type String The payment type of the resource
- period String
The length of the purchase for the asynchronous replication relationship. When ChargeType=PrePay, this parameter is mandatory. The unit of duration is specified by PeriodUnit and takes on a range of values. When PeriodUnit=Week, this parameter takes values in the range
1
,2
,3
and4
. When PeriodUnit=Month, the parameter takes on the values1
,2
,3
,4
,5
,6
,7
,8
,9
,12
,24
,36
,48
,60
.- period
Unit String The units of asynchronous replication relationship purchase length. Valid values:
Week
andMonth
. Default value:Month
.- replica
Pair StringId The first ID of the resource
- rpo String
The RPO value set by the consistency group in seconds. Currently only 900 seconds are supported.
Outputs
All input properties are implicitly available as output properties. Additionally, the DiskReplicaPair resource produces the following output properties:
- Create
Time string The creation time of the resource
- Id string
The provider-assigned unique ID for this managed resource.
- Resource
Group stringId The ID of the resource group
- Status string
The status of the resource
- Create
Time string The creation time of the resource
- Id string
The provider-assigned unique ID for this managed resource.
- Resource
Group stringId The ID of the resource group
- Status string
The status of the resource
- create
Time String The creation time of the resource
- id String
The provider-assigned unique ID for this managed resource.
- resource
Group StringId The ID of the resource group
- status String
The status of the resource
- create
Time string The creation time of the resource
- id string
The provider-assigned unique ID for this managed resource.
- resource
Group stringId The ID of the resource group
- status string
The status of the resource
- create_
time str The creation time of the resource
- id str
The provider-assigned unique ID for this managed resource.
- resource_
group_ strid The ID of the resource group
- status str
The status of the resource
- create
Time String The creation time of the resource
- id String
The provider-assigned unique ID for this managed resource.
- resource
Group StringId The ID of the resource group
- status String
The status of the resource
Look up Existing DiskReplicaPair Resource
Get an existing DiskReplicaPair 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?: DiskReplicaPairState, opts?: CustomResourceOptions): DiskReplicaPair
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
bandwidth: Optional[str] = None,
create_time: Optional[str] = None,
description: Optional[str] = None,
destination_disk_id: Optional[str] = None,
destination_region_id: Optional[str] = None,
destination_zone_id: Optional[str] = None,
disk_id: Optional[str] = None,
pair_name: Optional[str] = None,
payment_type: Optional[str] = None,
period: Optional[str] = None,
period_unit: Optional[str] = None,
replica_pair_id: Optional[str] = None,
resource_group_id: Optional[str] = None,
rpo: Optional[str] = None,
source_zone_id: Optional[str] = None,
status: Optional[str] = None) -> DiskReplicaPair
func GetDiskReplicaPair(ctx *Context, name string, id IDInput, state *DiskReplicaPairState, opts ...ResourceOption) (*DiskReplicaPair, error)
public static DiskReplicaPair Get(string name, Input<string> id, DiskReplicaPairState? state, CustomResourceOptions? opts = null)
public static DiskReplicaPair get(String name, Output<String> id, DiskReplicaPairState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Bandwidth string
The bandwidth for asynchronous data replication between cloud disks. The unit is Kbps. Value range:-10240 Kbps: equal to 10 Mbps.-20480 Kbps: equal to 20 Mbps.-51200 Kbps: equal to 50 Mbps.-102400 Kbps: equal to 100 Mbps.Default value: 10240.This parameter cannot be specified when the ChargeType value is POSTPAY. The system value is 0, which indicates that the disk is dynamically allocated according to data write changes during asynchronous replication.
- Create
Time string The creation time of the resource
- Description string
The description of the asynchronous replication relationship. 2 to 256 English or Chinese characters in length and cannot start with' http:// 'or' https.
- Destination
Disk stringId The ID of the standby disk.
- Destination
Region stringId The ID of the region to which the disaster recovery site belongs.
- Destination
Zone stringId The ID of the zone to which the disaster recovery site belongs.
- Disk
Id string The ID of the primary disk.
- Pair
Name string The name of the asynchronous replication relationship. The length must be 2 to 128 characters in length and must start with a letter or Chinese name. It cannot start with http:// or https. It can contain Chinese, English, numbers, half-width colons (:), underscores (_), half-width periods (.), or dashes (-).
- Payment
Type string The payment type of the resource
- Period string
The length of the purchase for the asynchronous replication relationship. When ChargeType=PrePay, this parameter is mandatory. The unit of duration is specified by PeriodUnit and takes on a range of values. When PeriodUnit=Week, this parameter takes values in the range
1
,2
,3
and4
. When PeriodUnit=Month, the parameter takes on the values1
,2
,3
,4
,5
,6
,7
,8
,9
,12
,24
,36
,48
,60
.- Period
Unit string The units of asynchronous replication relationship purchase length. Valid values:
Week
andMonth
. Default value:Month
.- Replica
Pair stringId The first ID of the resource
- Resource
Group stringId The ID of the resource group
- Rpo string
The RPO value set by the consistency group in seconds. Currently only 900 seconds are supported.
- Source
Zone stringId The ID of the zone to which the production site belongs.
- Status string
The status of the resource
- Bandwidth string
The bandwidth for asynchronous data replication between cloud disks. The unit is Kbps. Value range:-10240 Kbps: equal to 10 Mbps.-20480 Kbps: equal to 20 Mbps.-51200 Kbps: equal to 50 Mbps.-102400 Kbps: equal to 100 Mbps.Default value: 10240.This parameter cannot be specified when the ChargeType value is POSTPAY. The system value is 0, which indicates that the disk is dynamically allocated according to data write changes during asynchronous replication.
- Create
Time string The creation time of the resource
- Description string
The description of the asynchronous replication relationship. 2 to 256 English or Chinese characters in length and cannot start with' http:// 'or' https.
- Destination
Disk stringId The ID of the standby disk.
- Destination
Region stringId The ID of the region to which the disaster recovery site belongs.
- Destination
Zone stringId The ID of the zone to which the disaster recovery site belongs.
- Disk
Id string The ID of the primary disk.
- Pair
Name string The name of the asynchronous replication relationship. The length must be 2 to 128 characters in length and must start with a letter or Chinese name. It cannot start with http:// or https. It can contain Chinese, English, numbers, half-width colons (:), underscores (_), half-width periods (.), or dashes (-).
- Payment
Type string The payment type of the resource
- Period string
The length of the purchase for the asynchronous replication relationship. When ChargeType=PrePay, this parameter is mandatory. The unit of duration is specified by PeriodUnit and takes on a range of values. When PeriodUnit=Week, this parameter takes values in the range
1
,2
,3
and4
. When PeriodUnit=Month, the parameter takes on the values1
,2
,3
,4
,5
,6
,7
,8
,9
,12
,24
,36
,48
,60
.- Period
Unit string The units of asynchronous replication relationship purchase length. Valid values:
Week
andMonth
. Default value:Month
.- Replica
Pair stringId The first ID of the resource
- Resource
Group stringId The ID of the resource group
- Rpo string
The RPO value set by the consistency group in seconds. Currently only 900 seconds are supported.
- Source
Zone stringId The ID of the zone to which the production site belongs.
- Status string
The status of the resource
- bandwidth String
The bandwidth for asynchronous data replication between cloud disks. The unit is Kbps. Value range:-10240 Kbps: equal to 10 Mbps.-20480 Kbps: equal to 20 Mbps.-51200 Kbps: equal to 50 Mbps.-102400 Kbps: equal to 100 Mbps.Default value: 10240.This parameter cannot be specified when the ChargeType value is POSTPAY. The system value is 0, which indicates that the disk is dynamically allocated according to data write changes during asynchronous replication.
- create
Time String The creation time of the resource
- description String
The description of the asynchronous replication relationship. 2 to 256 English or Chinese characters in length and cannot start with' http:// 'or' https.
- destination
Disk StringId The ID of the standby disk.
- destination
Region StringId The ID of the region to which the disaster recovery site belongs.
- destination
Zone StringId The ID of the zone to which the disaster recovery site belongs.
- disk
Id String The ID of the primary disk.
- pair
Name String The name of the asynchronous replication relationship. The length must be 2 to 128 characters in length and must start with a letter or Chinese name. It cannot start with http:// or https. It can contain Chinese, English, numbers, half-width colons (:), underscores (_), half-width periods (.), or dashes (-).
- payment
Type String The payment type of the resource
- period String
The length of the purchase for the asynchronous replication relationship. When ChargeType=PrePay, this parameter is mandatory. The unit of duration is specified by PeriodUnit and takes on a range of values. When PeriodUnit=Week, this parameter takes values in the range
1
,2
,3
and4
. When PeriodUnit=Month, the parameter takes on the values1
,2
,3
,4
,5
,6
,7
,8
,9
,12
,24
,36
,48
,60
.- period
Unit String The units of asynchronous replication relationship purchase length. Valid values:
Week
andMonth
. Default value:Month
.- replica
Pair StringId The first ID of the resource
- resource
Group StringId The ID of the resource group
- rpo String
The RPO value set by the consistency group in seconds. Currently only 900 seconds are supported.
- source
Zone StringId The ID of the zone to which the production site belongs.
- status String
The status of the resource
- bandwidth string
The bandwidth for asynchronous data replication between cloud disks. The unit is Kbps. Value range:-10240 Kbps: equal to 10 Mbps.-20480 Kbps: equal to 20 Mbps.-51200 Kbps: equal to 50 Mbps.-102400 Kbps: equal to 100 Mbps.Default value: 10240.This parameter cannot be specified when the ChargeType value is POSTPAY. The system value is 0, which indicates that the disk is dynamically allocated according to data write changes during asynchronous replication.
- create
Time string The creation time of the resource
- description string
The description of the asynchronous replication relationship. 2 to 256 English or Chinese characters in length and cannot start with' http:// 'or' https.
- destination
Disk stringId The ID of the standby disk.
- destination
Region stringId The ID of the region to which the disaster recovery site belongs.
- destination
Zone stringId The ID of the zone to which the disaster recovery site belongs.
- disk
Id string The ID of the primary disk.
- pair
Name string The name of the asynchronous replication relationship. The length must be 2 to 128 characters in length and must start with a letter or Chinese name. It cannot start with http:// or https. It can contain Chinese, English, numbers, half-width colons (:), underscores (_), half-width periods (.), or dashes (-).
- payment
Type string The payment type of the resource
- period string
The length of the purchase for the asynchronous replication relationship. When ChargeType=PrePay, this parameter is mandatory. The unit of duration is specified by PeriodUnit and takes on a range of values. When PeriodUnit=Week, this parameter takes values in the range
1
,2
,3
and4
. When PeriodUnit=Month, the parameter takes on the values1
,2
,3
,4
,5
,6
,7
,8
,9
,12
,24
,36
,48
,60
.- period
Unit string The units of asynchronous replication relationship purchase length. Valid values:
Week
andMonth
. Default value:Month
.- replica
Pair stringId The first ID of the resource
- resource
Group stringId The ID of the resource group
- rpo string
The RPO value set by the consistency group in seconds. Currently only 900 seconds are supported.
- source
Zone stringId The ID of the zone to which the production site belongs.
- status string
The status of the resource
- bandwidth str
The bandwidth for asynchronous data replication between cloud disks. The unit is Kbps. Value range:-10240 Kbps: equal to 10 Mbps.-20480 Kbps: equal to 20 Mbps.-51200 Kbps: equal to 50 Mbps.-102400 Kbps: equal to 100 Mbps.Default value: 10240.This parameter cannot be specified when the ChargeType value is POSTPAY. The system value is 0, which indicates that the disk is dynamically allocated according to data write changes during asynchronous replication.
- create_
time str The creation time of the resource
- description str
The description of the asynchronous replication relationship. 2 to 256 English or Chinese characters in length and cannot start with' http:// 'or' https.
- destination_
disk_ strid The ID of the standby disk.
- destination_
region_ strid The ID of the region to which the disaster recovery site belongs.
- destination_
zone_ strid The ID of the zone to which the disaster recovery site belongs.
- disk_
id str The ID of the primary disk.
- pair_
name str The name of the asynchronous replication relationship. The length must be 2 to 128 characters in length and must start with a letter or Chinese name. It cannot start with http:// or https. It can contain Chinese, English, numbers, half-width colons (:), underscores (_), half-width periods (.), or dashes (-).
- payment_
type str The payment type of the resource
- period str
The length of the purchase for the asynchronous replication relationship. When ChargeType=PrePay, this parameter is mandatory. The unit of duration is specified by PeriodUnit and takes on a range of values. When PeriodUnit=Week, this parameter takes values in the range
1
,2
,3
and4
. When PeriodUnit=Month, the parameter takes on the values1
,2
,3
,4
,5
,6
,7
,8
,9
,12
,24
,36
,48
,60
.- period_
unit str The units of asynchronous replication relationship purchase length. Valid values:
Week
andMonth
. Default value:Month
.- replica_
pair_ strid The first ID of the resource
- resource_
group_ strid The ID of the resource group
- rpo str
The RPO value set by the consistency group in seconds. Currently only 900 seconds are supported.
- source_
zone_ strid The ID of the zone to which the production site belongs.
- status str
The status of the resource
- bandwidth String
The bandwidth for asynchronous data replication between cloud disks. The unit is Kbps. Value range:-10240 Kbps: equal to 10 Mbps.-20480 Kbps: equal to 20 Mbps.-51200 Kbps: equal to 50 Mbps.-102400 Kbps: equal to 100 Mbps.Default value: 10240.This parameter cannot be specified when the ChargeType value is POSTPAY. The system value is 0, which indicates that the disk is dynamically allocated according to data write changes during asynchronous replication.
- create
Time String The creation time of the resource
- description String
The description of the asynchronous replication relationship. 2 to 256 English or Chinese characters in length and cannot start with' http:// 'or' https.
- destination
Disk StringId The ID of the standby disk.
- destination
Region StringId The ID of the region to which the disaster recovery site belongs.
- destination
Zone StringId The ID of the zone to which the disaster recovery site belongs.
- disk
Id String The ID of the primary disk.
- pair
Name String The name of the asynchronous replication relationship. The length must be 2 to 128 characters in length and must start with a letter or Chinese name. It cannot start with http:// or https. It can contain Chinese, English, numbers, half-width colons (:), underscores (_), half-width periods (.), or dashes (-).
- payment
Type String The payment type of the resource
- period String
The length of the purchase for the asynchronous replication relationship. When ChargeType=PrePay, this parameter is mandatory. The unit of duration is specified by PeriodUnit and takes on a range of values. When PeriodUnit=Week, this parameter takes values in the range
1
,2
,3
and4
. When PeriodUnit=Month, the parameter takes on the values1
,2
,3
,4
,5
,6
,7
,8
,9
,12
,24
,36
,48
,60
.- period
Unit String The units of asynchronous replication relationship purchase length. Valid values:
Week
andMonth
. Default value:Month
.- replica
Pair StringId The first ID of the resource
- resource
Group StringId The ID of the resource group
- rpo String
The RPO value set by the consistency group in seconds. Currently only 900 seconds are supported.
- source
Zone StringId The ID of the zone to which the production site belongs.
- status String
The status of the resource
Import
Ebs Disk Replica Pair can be imported using the id, e.g.
$ pulumi import alicloud:ebs/diskReplicaPair:DiskReplicaPair example <id>
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.