opentelekomcloud.SdrsReplicationPairV1
Explore with Pulumi AI
Up-to-date reference of API arguments for SDRS replication pair you can get at documentation portal
Manages a SDRS replication pair resource within OpenTelekomCloud.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const dom1 = opentelekomcloud.getSdrsDomainV1({});
const volume1 = new opentelekomcloud.EvsVolumeV3("volume1", {
description: "first test volume",
availabilityZone: "eu-de-02",
volumeType: "SATA",
size: 12,
});
const group1 = new opentelekomcloud.SdrsProtectiongroupV1("group1", {
description: "test description",
sourceAvailabilityZone: "eu-de-01",
targetAvailabilityZone: "eu-de-02",
domainId: dom1.then(dom1 => dom1.id),
sourceVpcId: _var.vpc_id,
drType: "migration",
});
const pair1 = new opentelekomcloud.SdrsReplicationPairV1("pair1", {
groupId: group1.sdrsProtectiongroupV1Id,
volumeId: volume1.evsVolumeV3Id,
description: "description",
deleteTargetVolume: true,
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
dom1 = opentelekomcloud.get_sdrs_domain_v1()
volume1 = opentelekomcloud.EvsVolumeV3("volume1",
description="first test volume",
availability_zone="eu-de-02",
volume_type="SATA",
size=12)
group1 = opentelekomcloud.SdrsProtectiongroupV1("group1",
description="test description",
source_availability_zone="eu-de-01",
target_availability_zone="eu-de-02",
domain_id=dom1.id,
source_vpc_id=var["vpc_id"],
dr_type="migration")
pair1 = opentelekomcloud.SdrsReplicationPairV1("pair1",
group_id=group1.sdrs_protectiongroup_v1_id,
volume_id=volume1.evs_volume_v3_id,
description="description",
delete_target_volume=True)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
dom1, err := opentelekomcloud.GetSdrsDomainV1(ctx, &opentelekomcloud.GetSdrsDomainV1Args{}, nil)
if err != nil {
return err
}
volume1, err := opentelekomcloud.NewEvsVolumeV3(ctx, "volume1", &opentelekomcloud.EvsVolumeV3Args{
Description: pulumi.String("first test volume"),
AvailabilityZone: pulumi.String("eu-de-02"),
VolumeType: pulumi.String("SATA"),
Size: pulumi.Float64(12),
})
if err != nil {
return err
}
group1, err := opentelekomcloud.NewSdrsProtectiongroupV1(ctx, "group1", &opentelekomcloud.SdrsProtectiongroupV1Args{
Description: pulumi.String("test description"),
SourceAvailabilityZone: pulumi.String("eu-de-01"),
TargetAvailabilityZone: pulumi.String("eu-de-02"),
DomainId: pulumi.String(dom1.Id),
SourceVpcId: pulumi.Any(_var.Vpc_id),
DrType: pulumi.String("migration"),
})
if err != nil {
return err
}
_, err = opentelekomcloud.NewSdrsReplicationPairV1(ctx, "pair1", &opentelekomcloud.SdrsReplicationPairV1Args{
GroupId: group1.SdrsProtectiongroupV1Id,
VolumeId: volume1.EvsVolumeV3Id,
Description: pulumi.String("description"),
DeleteTargetVolume: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() =>
{
var dom1 = Opentelekomcloud.GetSdrsDomainV1.Invoke();
var volume1 = new Opentelekomcloud.EvsVolumeV3("volume1", new()
{
Description = "first test volume",
AvailabilityZone = "eu-de-02",
VolumeType = "SATA",
Size = 12,
});
var group1 = new Opentelekomcloud.SdrsProtectiongroupV1("group1", new()
{
Description = "test description",
SourceAvailabilityZone = "eu-de-01",
TargetAvailabilityZone = "eu-de-02",
DomainId = dom1.Apply(getSdrsDomainV1Result => getSdrsDomainV1Result.Id),
SourceVpcId = @var.Vpc_id,
DrType = "migration",
});
var pair1 = new Opentelekomcloud.SdrsReplicationPairV1("pair1", new()
{
GroupId = group1.SdrsProtectiongroupV1Id,
VolumeId = volume1.EvsVolumeV3Id,
Description = "description",
DeleteTargetVolume = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.OpentelekomcloudFunctions;
import com.pulumi.opentelekomcloud.inputs.GetSdrsDomainV1Args;
import com.pulumi.opentelekomcloud.EvsVolumeV3;
import com.pulumi.opentelekomcloud.EvsVolumeV3Args;
import com.pulumi.opentelekomcloud.SdrsProtectiongroupV1;
import com.pulumi.opentelekomcloud.SdrsProtectiongroupV1Args;
import com.pulumi.opentelekomcloud.SdrsReplicationPairV1;
import com.pulumi.opentelekomcloud.SdrsReplicationPairV1Args;
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 dom1 = OpentelekomcloudFunctions.getSdrsDomainV1();
var volume1 = new EvsVolumeV3("volume1", EvsVolumeV3Args.builder()
.description("first test volume")
.availabilityZone("eu-de-02")
.volumeType("SATA")
.size(12)
.build());
var group1 = new SdrsProtectiongroupV1("group1", SdrsProtectiongroupV1Args.builder()
.description("test description")
.sourceAvailabilityZone("eu-de-01")
.targetAvailabilityZone("eu-de-02")
.domainId(dom1.applyValue(getSdrsDomainV1Result -> getSdrsDomainV1Result.id()))
.sourceVpcId(var_.vpc_id())
.drType("migration")
.build());
var pair1 = new SdrsReplicationPairV1("pair1", SdrsReplicationPairV1Args.builder()
.groupId(group1.sdrsProtectiongroupV1Id())
.volumeId(volume1.evsVolumeV3Id())
.description("description")
.deleteTargetVolume(true)
.build());
}
}
resources:
volume1:
type: opentelekomcloud:EvsVolumeV3
properties:
description: first test volume
availabilityZone: eu-de-02
volumeType: SATA
size: 12
group1:
type: opentelekomcloud:SdrsProtectiongroupV1
properties:
description: test description
sourceAvailabilityZone: eu-de-01
targetAvailabilityZone: eu-de-02
domainId: ${dom1.id}
sourceVpcId: ${var.vpc_id}
drType: migration
pair1:
type: opentelekomcloud:SdrsReplicationPairV1
properties:
groupId: ${group1.sdrsProtectiongroupV1Id}
volumeId: ${volume1.evsVolumeV3Id}
description: description
deleteTargetVolume: true
variables:
dom1:
fn::invoke:
function: opentelekomcloud:getSdrsDomainV1
arguments: {}
Create SdrsReplicationPairV1 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SdrsReplicationPairV1(name: string, args: SdrsReplicationPairV1Args, opts?: CustomResourceOptions);
@overload
def SdrsReplicationPairV1(resource_name: str,
args: SdrsReplicationPairV1Args,
opts: Optional[ResourceOptions] = None)
@overload
def SdrsReplicationPairV1(resource_name: str,
opts: Optional[ResourceOptions] = None,
group_id: Optional[str] = None,
volume_id: Optional[str] = None,
delete_target_volume: Optional[bool] = None,
description: Optional[str] = None,
name: Optional[str] = None,
sdrs_replication_pair_v1_id: Optional[str] = None,
timeouts: Optional[SdrsReplicationPairV1TimeoutsArgs] = None)
func NewSdrsReplicationPairV1(ctx *Context, name string, args SdrsReplicationPairV1Args, opts ...ResourceOption) (*SdrsReplicationPairV1, error)
public SdrsReplicationPairV1(string name, SdrsReplicationPairV1Args args, CustomResourceOptions? opts = null)
public SdrsReplicationPairV1(String name, SdrsReplicationPairV1Args args)
public SdrsReplicationPairV1(String name, SdrsReplicationPairV1Args args, CustomResourceOptions options)
type: opentelekomcloud:SdrsReplicationPairV1
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args SdrsReplicationPairV1Args
- 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 SdrsReplicationPairV1Args
- 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 SdrsReplicationPairV1Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SdrsReplicationPairV1Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SdrsReplicationPairV1Args
- 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 sdrsReplicationPairV1Resource = new Opentelekomcloud.SdrsReplicationPairV1("sdrsReplicationPairV1Resource", new()
{
GroupId = "string",
VolumeId = "string",
DeleteTargetVolume = false,
Description = "string",
Name = "string",
SdrsReplicationPairV1Id = "string",
Timeouts = new Opentelekomcloud.Inputs.SdrsReplicationPairV1TimeoutsArgs
{
Create = "string",
Delete = "string",
},
});
example, err := opentelekomcloud.NewSdrsReplicationPairV1(ctx, "sdrsReplicationPairV1Resource", &opentelekomcloud.SdrsReplicationPairV1Args{
GroupId: pulumi.String("string"),
VolumeId: pulumi.String("string"),
DeleteTargetVolume: pulumi.Bool(false),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
SdrsReplicationPairV1Id: pulumi.String("string"),
Timeouts: &opentelekomcloud.SdrsReplicationPairV1TimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
})
var sdrsReplicationPairV1Resource = new SdrsReplicationPairV1("sdrsReplicationPairV1Resource", SdrsReplicationPairV1Args.builder()
.groupId("string")
.volumeId("string")
.deleteTargetVolume(false)
.description("string")
.name("string")
.sdrsReplicationPairV1Id("string")
.timeouts(SdrsReplicationPairV1TimeoutsArgs.builder()
.create("string")
.delete("string")
.build())
.build());
sdrs_replication_pair_v1_resource = opentelekomcloud.SdrsReplicationPairV1("sdrsReplicationPairV1Resource",
group_id="string",
volume_id="string",
delete_target_volume=False,
description="string",
name="string",
sdrs_replication_pair_v1_id="string",
timeouts={
"create": "string",
"delete": "string",
})
const sdrsReplicationPairV1Resource = new opentelekomcloud.SdrsReplicationPairV1("sdrsReplicationPairV1Resource", {
groupId: "string",
volumeId: "string",
deleteTargetVolume: false,
description: "string",
name: "string",
sdrsReplicationPairV1Id: "string",
timeouts: {
create: "string",
"delete": "string",
},
});
type: opentelekomcloud:SdrsReplicationPairV1
properties:
deleteTargetVolume: false
description: string
groupId: string
name: string
sdrsReplicationPairV1Id: string
timeouts:
create: string
delete: string
volumeId: string
SdrsReplicationPairV1 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 SdrsReplicationPairV1 resource accepts the following input properties:
- Group
Id string - Specifies the ID of a protection group.
- Volume
Id string - Specifies the ID of the production site disk. When the provider is successfully invoked, the disaster recovery site disk will be automatically created.
- Delete
Target boolVolume - Specifies whether to delete the disaster recovery site disk. The default value is false.
- Description string
- Specifies the description of a replication pair. The value can contain a maximum of 64 characters and angle brackets (<) and (>) are not allowed.
- Name string
- Specifies the name of a replication pair. The name can contain a maximum of 64 characters. The value can contain only letters (a to z and A to Z), digits (0 to 9), dots (.), underscores (_), and hyphens (-).
- Sdrs
Replication stringPair V1Id - The resource ID.
- Timeouts
Sdrs
Replication Pair V1Timeouts
- Group
Id string - Specifies the ID of a protection group.
- Volume
Id string - Specifies the ID of the production site disk. When the provider is successfully invoked, the disaster recovery site disk will be automatically created.
- Delete
Target boolVolume - Specifies whether to delete the disaster recovery site disk. The default value is false.
- Description string
- Specifies the description of a replication pair. The value can contain a maximum of 64 characters and angle brackets (<) and (>) are not allowed.
- Name string
- Specifies the name of a replication pair. The name can contain a maximum of 64 characters. The value can contain only letters (a to z and A to Z), digits (0 to 9), dots (.), underscores (_), and hyphens (-).
- Sdrs
Replication stringPair V1Id - The resource ID.
- Timeouts
Sdrs
Replication Pair V1Timeouts Args
- group
Id String - Specifies the ID of a protection group.
- volume
Id String - Specifies the ID of the production site disk. When the provider is successfully invoked, the disaster recovery site disk will be automatically created.
- delete
Target BooleanVolume - Specifies whether to delete the disaster recovery site disk. The default value is false.
- description String
- Specifies the description of a replication pair. The value can contain a maximum of 64 characters and angle brackets (<) and (>) are not allowed.
- name String
- Specifies the name of a replication pair. The name can contain a maximum of 64 characters. The value can contain only letters (a to z and A to Z), digits (0 to 9), dots (.), underscores (_), and hyphens (-).
- sdrs
Replication StringPair V1Id - The resource ID.
- timeouts
Sdrs
Replication Pair V1Timeouts
- group
Id string - Specifies the ID of a protection group.
- volume
Id string - Specifies the ID of the production site disk. When the provider is successfully invoked, the disaster recovery site disk will be automatically created.
- delete
Target booleanVolume - Specifies whether to delete the disaster recovery site disk. The default value is false.
- description string
- Specifies the description of a replication pair. The value can contain a maximum of 64 characters and angle brackets (<) and (>) are not allowed.
- name string
- Specifies the name of a replication pair. The name can contain a maximum of 64 characters. The value can contain only letters (a to z and A to Z), digits (0 to 9), dots (.), underscores (_), and hyphens (-).
- sdrs
Replication stringPair V1Id - The resource ID.
- timeouts
Sdrs
Replication Pair V1Timeouts
- group_
id str - Specifies the ID of a protection group.
- volume_
id str - Specifies the ID of the production site disk. When the provider is successfully invoked, the disaster recovery site disk will be automatically created.
- delete_
target_ boolvolume - Specifies whether to delete the disaster recovery site disk. The default value is false.
- description str
- Specifies the description of a replication pair. The value can contain a maximum of 64 characters and angle brackets (<) and (>) are not allowed.
- name str
- Specifies the name of a replication pair. The name can contain a maximum of 64 characters. The value can contain only letters (a to z and A to Z), digits (0 to 9), dots (.), underscores (_), and hyphens (-).
- sdrs_
replication_ strpair_ v1_ id - The resource ID.
- timeouts
Sdrs
Replication Pair V1Timeouts Args
- group
Id String - Specifies the ID of a protection group.
- volume
Id String - Specifies the ID of the production site disk. When the provider is successfully invoked, the disaster recovery site disk will be automatically created.
- delete
Target BooleanVolume - Specifies whether to delete the disaster recovery site disk. The default value is false.
- description String
- Specifies the description of a replication pair. The value can contain a maximum of 64 characters and angle brackets (<) and (>) are not allowed.
- name String
- Specifies the name of a replication pair. The name can contain a maximum of 64 characters. The value can contain only letters (a to z and A to Z), digits (0 to 9), dots (.), underscores (_), and hyphens (-).
- sdrs
Replication StringPair V1Id - The resource ID.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the SdrsReplicationPairV1 resource produces the following output properties:
- Fault
Level string - The fault level of a replication pair.
- 0: No fault occurs.
- 2: The disk of the current production site does not have read/write permissions. In this case, you are advised to perform a failover.
- 5: The replication link is disconnected. In this case, a failover is not allowed. Contact the customer service to obtain service support.
- Id string
- The provider-assigned unique ID for this managed resource.
- Region string
- The resource region.
- Replication
Model string - The replication mode of a replication pair. The default value is hypermetro, indicating synchronous replication.
- Status string
- The status of a replication pair.
- Target
Volume stringId - The ID of the disk in the protection availability zone.
- Fault
Level string - The fault level of a replication pair.
- 0: No fault occurs.
- 2: The disk of the current production site does not have read/write permissions. In this case, you are advised to perform a failover.
- 5: The replication link is disconnected. In this case, a failover is not allowed. Contact the customer service to obtain service support.
- Id string
- The provider-assigned unique ID for this managed resource.
- Region string
- The resource region.
- Replication
Model string - The replication mode of a replication pair. The default value is hypermetro, indicating synchronous replication.
- Status string
- The status of a replication pair.
- Target
Volume stringId - The ID of the disk in the protection availability zone.
- fault
Level String - The fault level of a replication pair.
- 0: No fault occurs.
- 2: The disk of the current production site does not have read/write permissions. In this case, you are advised to perform a failover.
- 5: The replication link is disconnected. In this case, a failover is not allowed. Contact the customer service to obtain service support.
- id String
- The provider-assigned unique ID for this managed resource.
- region String
- The resource region.
- replication
Model String - The replication mode of a replication pair. The default value is hypermetro, indicating synchronous replication.
- status String
- The status of a replication pair.
- target
Volume StringId - The ID of the disk in the protection availability zone.
- fault
Level string - The fault level of a replication pair.
- 0: No fault occurs.
- 2: The disk of the current production site does not have read/write permissions. In this case, you are advised to perform a failover.
- 5: The replication link is disconnected. In this case, a failover is not allowed. Contact the customer service to obtain service support.
- id string
- The provider-assigned unique ID for this managed resource.
- region string
- The resource region.
- replication
Model string - The replication mode of a replication pair. The default value is hypermetro, indicating synchronous replication.
- status string
- The status of a replication pair.
- target
Volume stringId - The ID of the disk in the protection availability zone.
- fault_
level str - The fault level of a replication pair.
- 0: No fault occurs.
- 2: The disk of the current production site does not have read/write permissions. In this case, you are advised to perform a failover.
- 5: The replication link is disconnected. In this case, a failover is not allowed. Contact the customer service to obtain service support.
- id str
- The provider-assigned unique ID for this managed resource.
- region str
- The resource region.
- replication_
model str - The replication mode of a replication pair. The default value is hypermetro, indicating synchronous replication.
- status str
- The status of a replication pair.
- target_
volume_ strid - The ID of the disk in the protection availability zone.
- fault
Level String - The fault level of a replication pair.
- 0: No fault occurs.
- 2: The disk of the current production site does not have read/write permissions. In this case, you are advised to perform a failover.
- 5: The replication link is disconnected. In this case, a failover is not allowed. Contact the customer service to obtain service support.
- id String
- The provider-assigned unique ID for this managed resource.
- region String
- The resource region.
- replication
Model String - The replication mode of a replication pair. The default value is hypermetro, indicating synchronous replication.
- status String
- The status of a replication pair.
- target
Volume StringId - The ID of the disk in the protection availability zone.
Look up Existing SdrsReplicationPairV1 Resource
Get an existing SdrsReplicationPairV1 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?: SdrsReplicationPairV1State, opts?: CustomResourceOptions): SdrsReplicationPairV1
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
delete_target_volume: Optional[bool] = None,
description: Optional[str] = None,
fault_level: Optional[str] = None,
group_id: Optional[str] = None,
name: Optional[str] = None,
region: Optional[str] = None,
replication_model: Optional[str] = None,
sdrs_replication_pair_v1_id: Optional[str] = None,
status: Optional[str] = None,
target_volume_id: Optional[str] = None,
timeouts: Optional[SdrsReplicationPairV1TimeoutsArgs] = None,
volume_id: Optional[str] = None) -> SdrsReplicationPairV1
func GetSdrsReplicationPairV1(ctx *Context, name string, id IDInput, state *SdrsReplicationPairV1State, opts ...ResourceOption) (*SdrsReplicationPairV1, error)
public static SdrsReplicationPairV1 Get(string name, Input<string> id, SdrsReplicationPairV1State? state, CustomResourceOptions? opts = null)
public static SdrsReplicationPairV1 get(String name, Output<String> id, SdrsReplicationPairV1State state, CustomResourceOptions options)
resources: _: type: opentelekomcloud:SdrsReplicationPairV1 get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Delete
Target boolVolume - Specifies whether to delete the disaster recovery site disk. The default value is false.
- Description string
- Specifies the description of a replication pair. The value can contain a maximum of 64 characters and angle brackets (<) and (>) are not allowed.
- Fault
Level string - The fault level of a replication pair.
- 0: No fault occurs.
- 2: The disk of the current production site does not have read/write permissions. In this case, you are advised to perform a failover.
- 5: The replication link is disconnected. In this case, a failover is not allowed. Contact the customer service to obtain service support.
- Group
Id string - Specifies the ID of a protection group.
- Name string
- Specifies the name of a replication pair. The name can contain a maximum of 64 characters. The value can contain only letters (a to z and A to Z), digits (0 to 9), dots (.), underscores (_), and hyphens (-).
- Region string
- The resource region.
- Replication
Model string - The replication mode of a replication pair. The default value is hypermetro, indicating synchronous replication.
- Sdrs
Replication stringPair V1Id - The resource ID.
- Status string
- The status of a replication pair.
- Target
Volume stringId - The ID of the disk in the protection availability zone.
- Timeouts
Sdrs
Replication Pair V1Timeouts - Volume
Id string - Specifies the ID of the production site disk. When the provider is successfully invoked, the disaster recovery site disk will be automatically created.
- Delete
Target boolVolume - Specifies whether to delete the disaster recovery site disk. The default value is false.
- Description string
- Specifies the description of a replication pair. The value can contain a maximum of 64 characters and angle brackets (<) and (>) are not allowed.
- Fault
Level string - The fault level of a replication pair.
- 0: No fault occurs.
- 2: The disk of the current production site does not have read/write permissions. In this case, you are advised to perform a failover.
- 5: The replication link is disconnected. In this case, a failover is not allowed. Contact the customer service to obtain service support.
- Group
Id string - Specifies the ID of a protection group.
- Name string
- Specifies the name of a replication pair. The name can contain a maximum of 64 characters. The value can contain only letters (a to z and A to Z), digits (0 to 9), dots (.), underscores (_), and hyphens (-).
- Region string
- The resource region.
- Replication
Model string - The replication mode of a replication pair. The default value is hypermetro, indicating synchronous replication.
- Sdrs
Replication stringPair V1Id - The resource ID.
- Status string
- The status of a replication pair.
- Target
Volume stringId - The ID of the disk in the protection availability zone.
- Timeouts
Sdrs
Replication Pair V1Timeouts Args - Volume
Id string - Specifies the ID of the production site disk. When the provider is successfully invoked, the disaster recovery site disk will be automatically created.
- delete
Target BooleanVolume - Specifies whether to delete the disaster recovery site disk. The default value is false.
- description String
- Specifies the description of a replication pair. The value can contain a maximum of 64 characters and angle brackets (<) and (>) are not allowed.
- fault
Level String - The fault level of a replication pair.
- 0: No fault occurs.
- 2: The disk of the current production site does not have read/write permissions. In this case, you are advised to perform a failover.
- 5: The replication link is disconnected. In this case, a failover is not allowed. Contact the customer service to obtain service support.
- group
Id String - Specifies the ID of a protection group.
- name String
- Specifies the name of a replication pair. The name can contain a maximum of 64 characters. The value can contain only letters (a to z and A to Z), digits (0 to 9), dots (.), underscores (_), and hyphens (-).
- region String
- The resource region.
- replication
Model String - The replication mode of a replication pair. The default value is hypermetro, indicating synchronous replication.
- sdrs
Replication StringPair V1Id - The resource ID.
- status String
- The status of a replication pair.
- target
Volume StringId - The ID of the disk in the protection availability zone.
- timeouts
Sdrs
Replication Pair V1Timeouts - volume
Id String - Specifies the ID of the production site disk. When the provider is successfully invoked, the disaster recovery site disk will be automatically created.
- delete
Target booleanVolume - Specifies whether to delete the disaster recovery site disk. The default value is false.
- description string
- Specifies the description of a replication pair. The value can contain a maximum of 64 characters and angle brackets (<) and (>) are not allowed.
- fault
Level string - The fault level of a replication pair.
- 0: No fault occurs.
- 2: The disk of the current production site does not have read/write permissions. In this case, you are advised to perform a failover.
- 5: The replication link is disconnected. In this case, a failover is not allowed. Contact the customer service to obtain service support.
- group
Id string - Specifies the ID of a protection group.
- name string
- Specifies the name of a replication pair. The name can contain a maximum of 64 characters. The value can contain only letters (a to z and A to Z), digits (0 to 9), dots (.), underscores (_), and hyphens (-).
- region string
- The resource region.
- replication
Model string - The replication mode of a replication pair. The default value is hypermetro, indicating synchronous replication.
- sdrs
Replication stringPair V1Id - The resource ID.
- status string
- The status of a replication pair.
- target
Volume stringId - The ID of the disk in the protection availability zone.
- timeouts
Sdrs
Replication Pair V1Timeouts - volume
Id string - Specifies the ID of the production site disk. When the provider is successfully invoked, the disaster recovery site disk will be automatically created.
- delete_
target_ boolvolume - Specifies whether to delete the disaster recovery site disk. The default value is false.
- description str
- Specifies the description of a replication pair. The value can contain a maximum of 64 characters and angle brackets (<) and (>) are not allowed.
- fault_
level str - The fault level of a replication pair.
- 0: No fault occurs.
- 2: The disk of the current production site does not have read/write permissions. In this case, you are advised to perform a failover.
- 5: The replication link is disconnected. In this case, a failover is not allowed. Contact the customer service to obtain service support.
- group_
id str - Specifies the ID of a protection group.
- name str
- Specifies the name of a replication pair. The name can contain a maximum of 64 characters. The value can contain only letters (a to z and A to Z), digits (0 to 9), dots (.), underscores (_), and hyphens (-).
- region str
- The resource region.
- replication_
model str - The replication mode of a replication pair. The default value is hypermetro, indicating synchronous replication.
- sdrs_
replication_ strpair_ v1_ id - The resource ID.
- status str
- The status of a replication pair.
- target_
volume_ strid - The ID of the disk in the protection availability zone.
- timeouts
Sdrs
Replication Pair V1Timeouts Args - volume_
id str - Specifies the ID of the production site disk. When the provider is successfully invoked, the disaster recovery site disk will be automatically created.
- delete
Target BooleanVolume - Specifies whether to delete the disaster recovery site disk. The default value is false.
- description String
- Specifies the description of a replication pair. The value can contain a maximum of 64 characters and angle brackets (<) and (>) are not allowed.
- fault
Level String - The fault level of a replication pair.
- 0: No fault occurs.
- 2: The disk of the current production site does not have read/write permissions. In this case, you are advised to perform a failover.
- 5: The replication link is disconnected. In this case, a failover is not allowed. Contact the customer service to obtain service support.
- group
Id String - Specifies the ID of a protection group.
- name String
- Specifies the name of a replication pair. The name can contain a maximum of 64 characters. The value can contain only letters (a to z and A to Z), digits (0 to 9), dots (.), underscores (_), and hyphens (-).
- region String
- The resource region.
- replication
Model String - The replication mode of a replication pair. The default value is hypermetro, indicating synchronous replication.
- sdrs
Replication StringPair V1Id - The resource ID.
- status String
- The status of a replication pair.
- target
Volume StringId - The ID of the disk in the protection availability zone.
- timeouts Property Map
- volume
Id String - Specifies the ID of the production site disk. When the provider is successfully invoked, the disaster recovery site disk will be automatically created.
Supporting Types
SdrsReplicationPairV1Timeouts, SdrsReplicationPairV1TimeoutsArgs
Import
The SDRS replication pair can be imported using the id
, e.g.
bash
$ pulumi import opentelekomcloud:index/sdrsReplicationPairV1:SdrsReplicationPairV1 test <id>
Note that the imported state may not be identical to your resource definition, due to some attributes missing from the
API response, security or some other reason. The missing attributes include: delete_target_volume
.
It is generally recommended running pulumi preview
after importing a resource.
You can then decide if changes should be applied to the resource, or the resource definition should be updated to align
with the resource. Also, you can ignore changes as below.
resource “opentelekomcloud_sdrs_replication_pair_v1” “test” {
…
lifecycle {
ignore_changes = [
delete_target_volume,
]
}
}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloud
Terraform Provider.