1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. SdrsProtectedInstanceV1
opentelekomcloud 1.36.35 published on Monday, Apr 14, 2025 by opentelekomcloud

opentelekomcloud.SdrsProtectedInstanceV1

Explore with Pulumi AI

Up-to-date reference of API arguments for SDRS protected instance you can get at documentation portal

Manages a SDRS protected instance resource within OpenTelekomCloud.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";

const group1 = new opentelekomcloud.SdrsProtectiongroupV1("group1", {
    sourceAvailabilityZone: "eu-de-01",
    targetAvailabilityZone: "eu-de-02",
    domainId: _var.domain_id,
    sourceVpcId: _var.vpc_id,
    drType: "migration",
});
const instance1EcsInstanceV1 = new opentelekomcloud.EcsInstanceV1("instance1EcsInstanceV1", {
    imageId: _var.image_id,
    flavor: _var.flavor,
    vpcId: _var.vpc_id,
    nics: [{
        networkId: _var.network_id,
    }],
    availabilityZone: "eu-de-01",
});
const instance1SdrsProtectedInstanceV1 = new opentelekomcloud.SdrsProtectedInstanceV1("instance1SdrsProtectedInstanceV1", {
    description: "some interesting description",
    groupId: group1.sdrsProtectiongroupV1Id,
    serverId: instance1EcsInstanceV1.ecsInstanceV1Id,
    deleteTargetServer: true,
    tags: {
        muh: "value-create",
        kuh: "value-create",
    },
});
Copy
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud

group1 = opentelekomcloud.SdrsProtectiongroupV1("group1",
    source_availability_zone="eu-de-01",
    target_availability_zone="eu-de-02",
    domain_id=var["domain_id"],
    source_vpc_id=var["vpc_id"],
    dr_type="migration")
instance1_ecs_instance_v1 = opentelekomcloud.EcsInstanceV1("instance1EcsInstanceV1",
    image_id=var["image_id"],
    flavor=var["flavor"],
    vpc_id=var["vpc_id"],
    nics=[{
        "network_id": var["network_id"],
    }],
    availability_zone="eu-de-01")
instance1_sdrs_protected_instance_v1 = opentelekomcloud.SdrsProtectedInstanceV1("instance1SdrsProtectedInstanceV1",
    description="some interesting description",
    group_id=group1.sdrs_protectiongroup_v1_id,
    server_id=instance1_ecs_instance_v1.ecs_instance_v1_id,
    delete_target_server=True,
    tags={
        "muh": "value-create",
        "kuh": "value-create",
    })
Copy
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 {
		group1, err := opentelekomcloud.NewSdrsProtectiongroupV1(ctx, "group1", &opentelekomcloud.SdrsProtectiongroupV1Args{
			SourceAvailabilityZone: pulumi.String("eu-de-01"),
			TargetAvailabilityZone: pulumi.String("eu-de-02"),
			DomainId:               pulumi.Any(_var.Domain_id),
			SourceVpcId:            pulumi.Any(_var.Vpc_id),
			DrType:                 pulumi.String("migration"),
		})
		if err != nil {
			return err
		}
		instance1EcsInstanceV1, err := opentelekomcloud.NewEcsInstanceV1(ctx, "instance1EcsInstanceV1", &opentelekomcloud.EcsInstanceV1Args{
			ImageId: pulumi.Any(_var.Image_id),
			Flavor:  pulumi.Any(_var.Flavor),
			VpcId:   pulumi.Any(_var.Vpc_id),
			Nics: opentelekomcloud.EcsInstanceV1NicArray{
				&opentelekomcloud.EcsInstanceV1NicArgs{
					NetworkId: pulumi.Any(_var.Network_id),
				},
			},
			AvailabilityZone: pulumi.String("eu-de-01"),
		})
		if err != nil {
			return err
		}
		_, err = opentelekomcloud.NewSdrsProtectedInstanceV1(ctx, "instance1SdrsProtectedInstanceV1", &opentelekomcloud.SdrsProtectedInstanceV1Args{
			Description:        pulumi.String("some interesting description"),
			GroupId:            group1.SdrsProtectiongroupV1Id,
			ServerId:           instance1EcsInstanceV1.EcsInstanceV1Id,
			DeleteTargetServer: pulumi.Bool(true),
			Tags: pulumi.StringMap{
				"muh": pulumi.String("value-create"),
				"kuh": pulumi.String("value-create"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;

return await Deployment.RunAsync(() => 
{
    var group1 = new Opentelekomcloud.SdrsProtectiongroupV1("group1", new()
    {
        SourceAvailabilityZone = "eu-de-01",
        TargetAvailabilityZone = "eu-de-02",
        DomainId = @var.Domain_id,
        SourceVpcId = @var.Vpc_id,
        DrType = "migration",
    });

    var instance1EcsInstanceV1 = new Opentelekomcloud.EcsInstanceV1("instance1EcsInstanceV1", new()
    {
        ImageId = @var.Image_id,
        Flavor = @var.Flavor,
        VpcId = @var.Vpc_id,
        Nics = new[]
        {
            new Opentelekomcloud.Inputs.EcsInstanceV1NicArgs
            {
                NetworkId = @var.Network_id,
            },
        },
        AvailabilityZone = "eu-de-01",
    });

    var instance1SdrsProtectedInstanceV1 = new Opentelekomcloud.SdrsProtectedInstanceV1("instance1SdrsProtectedInstanceV1", new()
    {
        Description = "some interesting description",
        GroupId = group1.SdrsProtectiongroupV1Id,
        ServerId = instance1EcsInstanceV1.EcsInstanceV1Id,
        DeleteTargetServer = true,
        Tags = 
        {
            { "muh", "value-create" },
            { "kuh", "value-create" },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.SdrsProtectiongroupV1;
import com.pulumi.opentelekomcloud.SdrsProtectiongroupV1Args;
import com.pulumi.opentelekomcloud.EcsInstanceV1;
import com.pulumi.opentelekomcloud.EcsInstanceV1Args;
import com.pulumi.opentelekomcloud.inputs.EcsInstanceV1NicArgs;
import com.pulumi.opentelekomcloud.SdrsProtectedInstanceV1;
import com.pulumi.opentelekomcloud.SdrsProtectedInstanceV1Args;
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 group1 = new SdrsProtectiongroupV1("group1", SdrsProtectiongroupV1Args.builder()
            .sourceAvailabilityZone("eu-de-01")
            .targetAvailabilityZone("eu-de-02")
            .domainId(var_.domain_id())
            .sourceVpcId(var_.vpc_id())
            .drType("migration")
            .build());

        var instance1EcsInstanceV1 = new EcsInstanceV1("instance1EcsInstanceV1", EcsInstanceV1Args.builder()
            .imageId(var_.image_id())
            .flavor(var_.flavor())
            .vpcId(var_.vpc_id())
            .nics(EcsInstanceV1NicArgs.builder()
                .networkId(var_.network_id())
                .build())
            .availabilityZone("eu-de-01")
            .build());

        var instance1SdrsProtectedInstanceV1 = new SdrsProtectedInstanceV1("instance1SdrsProtectedInstanceV1", SdrsProtectedInstanceV1Args.builder()
            .description("some interesting description")
            .groupId(group1.sdrsProtectiongroupV1Id())
            .serverId(instance1EcsInstanceV1.ecsInstanceV1Id())
            .deleteTargetServer(true)
            .tags(Map.ofEntries(
                Map.entry("muh", "value-create"),
                Map.entry("kuh", "value-create")
            ))
            .build());

    }
}
Copy
resources:
  group1:
    type: opentelekomcloud:SdrsProtectiongroupV1
    properties:
      sourceAvailabilityZone: eu-de-01
      targetAvailabilityZone: eu-de-02
      domainId: ${var.domain_id}
      sourceVpcId: ${var.vpc_id}
      drType: migration
  instance1EcsInstanceV1:
    type: opentelekomcloud:EcsInstanceV1
    properties:
      imageId: ${var.image_id}
      flavor: ${var.flavor}
      vpcId: ${var.vpc_id}
      nics:
        - networkId: ${var.network_id}
      availabilityZone: eu-de-01
  instance1SdrsProtectedInstanceV1:
    type: opentelekomcloud:SdrsProtectedInstanceV1
    properties:
      description: some interesting description
      groupId: ${group1.sdrsProtectiongroupV1Id}
      serverId: ${instance1EcsInstanceV1.ecsInstanceV1Id}
      deleteTargetServer: true
      tags:
        muh: value-create
        kuh: value-create
Copy

Create SdrsProtectedInstanceV1 Resource

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

Constructor syntax

new SdrsProtectedInstanceV1(name: string, args: SdrsProtectedInstanceV1Args, opts?: CustomResourceOptions);
@overload
def SdrsProtectedInstanceV1(resource_name: str,
                            args: SdrsProtectedInstanceV1Args,
                            opts: Optional[ResourceOptions] = None)

@overload
def SdrsProtectedInstanceV1(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            group_id: Optional[str] = None,
                            server_id: Optional[str] = None,
                            delete_target_eip: Optional[bool] = None,
                            delete_target_server: Optional[bool] = None,
                            description: Optional[str] = None,
                            ip_address: Optional[str] = None,
                            name: Optional[str] = None,
                            sdrs_protected_instance_v1_id: Optional[str] = None,
                            subnet_id: Optional[str] = None,
                            tags: Optional[Mapping[str, str]] = None,
                            timeouts: Optional[SdrsProtectedInstanceV1TimeoutsArgs] = None)
func NewSdrsProtectedInstanceV1(ctx *Context, name string, args SdrsProtectedInstanceV1Args, opts ...ResourceOption) (*SdrsProtectedInstanceV1, error)
public SdrsProtectedInstanceV1(string name, SdrsProtectedInstanceV1Args args, CustomResourceOptions? opts = null)
public SdrsProtectedInstanceV1(String name, SdrsProtectedInstanceV1Args args)
public SdrsProtectedInstanceV1(String name, SdrsProtectedInstanceV1Args args, CustomResourceOptions options)
type: opentelekomcloud:SdrsProtectedInstanceV1
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. SdrsProtectedInstanceV1Args
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. SdrsProtectedInstanceV1Args
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. SdrsProtectedInstanceV1Args
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. SdrsProtectedInstanceV1Args
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. SdrsProtectedInstanceV1Args
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 sdrsProtectedInstanceV1Resource = new Opentelekomcloud.SdrsProtectedInstanceV1("sdrsProtectedInstanceV1Resource", new()
{
    GroupId = "string",
    ServerId = "string",
    DeleteTargetEip = false,
    DeleteTargetServer = false,
    Description = "string",
    IpAddress = "string",
    Name = "string",
    SdrsProtectedInstanceV1Id = "string",
    SubnetId = "string",
    Tags = 
    {
        { "string", "string" },
    },
    Timeouts = new Opentelekomcloud.Inputs.SdrsProtectedInstanceV1TimeoutsArgs
    {
        Create = "string",
        Delete = "string",
    },
});
Copy
example, err := opentelekomcloud.NewSdrsProtectedInstanceV1(ctx, "sdrsProtectedInstanceV1Resource", &opentelekomcloud.SdrsProtectedInstanceV1Args{
GroupId: pulumi.String("string"),
ServerId: pulumi.String("string"),
DeleteTargetEip: pulumi.Bool(false),
DeleteTargetServer: pulumi.Bool(false),
Description: pulumi.String("string"),
IpAddress: pulumi.String("string"),
Name: pulumi.String("string"),
SdrsProtectedInstanceV1Id: pulumi.String("string"),
SubnetId: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Timeouts: &.SdrsProtectedInstanceV1TimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
})
Copy
var sdrsProtectedInstanceV1Resource = new SdrsProtectedInstanceV1("sdrsProtectedInstanceV1Resource", SdrsProtectedInstanceV1Args.builder()
    .groupId("string")
    .serverId("string")
    .deleteTargetEip(false)
    .deleteTargetServer(false)
    .description("string")
    .ipAddress("string")
    .name("string")
    .sdrsProtectedInstanceV1Id("string")
    .subnetId("string")
    .tags(Map.of("string", "string"))
    .timeouts(SdrsProtectedInstanceV1TimeoutsArgs.builder()
        .create("string")
        .delete("string")
        .build())
    .build());
Copy
sdrs_protected_instance_v1_resource = opentelekomcloud.SdrsProtectedInstanceV1("sdrsProtectedInstanceV1Resource",
    group_id="string",
    server_id="string",
    delete_target_eip=False,
    delete_target_server=False,
    description="string",
    ip_address="string",
    name="string",
    sdrs_protected_instance_v1_id="string",
    subnet_id="string",
    tags={
        "string": "string",
    },
    timeouts={
        "create": "string",
        "delete": "string",
    })
Copy
const sdrsProtectedInstanceV1Resource = new opentelekomcloud.SdrsProtectedInstanceV1("sdrsProtectedInstanceV1Resource", {
    groupId: "string",
    serverId: "string",
    deleteTargetEip: false,
    deleteTargetServer: false,
    description: "string",
    ipAddress: "string",
    name: "string",
    sdrsProtectedInstanceV1Id: "string",
    subnetId: "string",
    tags: {
        string: "string",
    },
    timeouts: {
        create: "string",
        "delete": "string",
    },
});
Copy
type: opentelekomcloud:SdrsProtectedInstanceV1
properties:
    deleteTargetEip: false
    deleteTargetServer: false
    description: string
    groupId: string
    ipAddress: string
    name: string
    sdrsProtectedInstanceV1Id: string
    serverId: string
    subnetId: string
    tags:
        string: string
    timeouts:
        create: string
        delete: string
Copy

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

GroupId This property is required. string
Specifies the ID of the protection group where a protected instance is added. Changing this will create a new resource.
ServerId This property is required. string

Specifies the ID of the protected ECS instance. Changing this will create a new resource.

When the API is successfully invoked, the disaster recovery instance will be automatically created.

DeleteTargetEip bool
Specifies whether to delete the EIP of the DR site server. The default value is false.
DeleteTargetServer bool
Specifies whether to delete the DR site server. The default value is false.
Description string
The description of a protected instance. Changing this creates a new instance. Changing this will create a new resource.
IpAddress string
Specifies the IP address of the primary NIC on the DR site server. This parameter is valid only when subnet_id is specified. Changing this will create a new resource.
Name string
The name of a protected instance.
SdrsProtectedInstanceV1Id string
ID of the protected instance.
SubnetId string
Specifies the network ID of the subnet. Changing this will create a new resource.
Tags Dictionary<string, string>
Tags key/value pairs to associate with the instance.
Timeouts SdrsProtectedInstanceV1Timeouts
GroupId This property is required. string
Specifies the ID of the protection group where a protected instance is added. Changing this will create a new resource.
ServerId This property is required. string

Specifies the ID of the protected ECS instance. Changing this will create a new resource.

When the API is successfully invoked, the disaster recovery instance will be automatically created.

DeleteTargetEip bool
Specifies whether to delete the EIP of the DR site server. The default value is false.
DeleteTargetServer bool
Specifies whether to delete the DR site server. The default value is false.
Description string
The description of a protected instance. Changing this creates a new instance. Changing this will create a new resource.
IpAddress string
Specifies the IP address of the primary NIC on the DR site server. This parameter is valid only when subnet_id is specified. Changing this will create a new resource.
Name string
The name of a protected instance.
SdrsProtectedInstanceV1Id string
ID of the protected instance.
SubnetId string
Specifies the network ID of the subnet. Changing this will create a new resource.
Tags map[string]string
Tags key/value pairs to associate with the instance.
Timeouts SdrsProtectedInstanceV1TimeoutsArgs
groupId This property is required. String
Specifies the ID of the protection group where a protected instance is added. Changing this will create a new resource.
serverId This property is required. String

Specifies the ID of the protected ECS instance. Changing this will create a new resource.

When the API is successfully invoked, the disaster recovery instance will be automatically created.

deleteTargetEip Boolean
Specifies whether to delete the EIP of the DR site server. The default value is false.
deleteTargetServer Boolean
Specifies whether to delete the DR site server. The default value is false.
description String
The description of a protected instance. Changing this creates a new instance. Changing this will create a new resource.
ipAddress String
Specifies the IP address of the primary NIC on the DR site server. This parameter is valid only when subnet_id is specified. Changing this will create a new resource.
name String
The name of a protected instance.
sdrsProtectedInstanceV1Id String
ID of the protected instance.
subnetId String
Specifies the network ID of the subnet. Changing this will create a new resource.
tags Map<String,String>
Tags key/value pairs to associate with the instance.
timeouts SdrsProtectedInstanceV1Timeouts
groupId This property is required. string
Specifies the ID of the protection group where a protected instance is added. Changing this will create a new resource.
serverId This property is required. string

Specifies the ID of the protected ECS instance. Changing this will create a new resource.

When the API is successfully invoked, the disaster recovery instance will be automatically created.

deleteTargetEip boolean
Specifies whether to delete the EIP of the DR site server. The default value is false.
deleteTargetServer boolean
Specifies whether to delete the DR site server. The default value is false.
description string
The description of a protected instance. Changing this creates a new instance. Changing this will create a new resource.
ipAddress string
Specifies the IP address of the primary NIC on the DR site server. This parameter is valid only when subnet_id is specified. Changing this will create a new resource.
name string
The name of a protected instance.
sdrsProtectedInstanceV1Id string
ID of the protected instance.
subnetId string
Specifies the network ID of the subnet. Changing this will create a new resource.
tags {[key: string]: string}
Tags key/value pairs to associate with the instance.
timeouts SdrsProtectedInstanceV1Timeouts
group_id This property is required. str
Specifies the ID of the protection group where a protected instance is added. Changing this will create a new resource.
server_id This property is required. str

Specifies the ID of the protected ECS instance. Changing this will create a new resource.

When the API is successfully invoked, the disaster recovery instance will be automatically created.

delete_target_eip bool
Specifies whether to delete the EIP of the DR site server. The default value is false.
delete_target_server bool
Specifies whether to delete the DR site server. The default value is false.
description str
The description of a protected instance. Changing this creates a new instance. Changing this will create a new resource.
ip_address str
Specifies the IP address of the primary NIC on the DR site server. This parameter is valid only when subnet_id is specified. Changing this will create a new resource.
name str
The name of a protected instance.
sdrs_protected_instance_v1_id str
ID of the protected instance.
subnet_id str
Specifies the network ID of the subnet. Changing this will create a new resource.
tags Mapping[str, str]
Tags key/value pairs to associate with the instance.
timeouts SdrsProtectedInstanceV1TimeoutsArgs
groupId This property is required. String
Specifies the ID of the protection group where a protected instance is added. Changing this will create a new resource.
serverId This property is required. String

Specifies the ID of the protected ECS instance. Changing this will create a new resource.

When the API is successfully invoked, the disaster recovery instance will be automatically created.

deleteTargetEip Boolean
Specifies whether to delete the EIP of the DR site server. The default value is false.
deleteTargetServer Boolean
Specifies whether to delete the DR site server. The default value is false.
description String
The description of a protected instance. Changing this creates a new instance. Changing this will create a new resource.
ipAddress String
Specifies the IP address of the primary NIC on the DR site server. This parameter is valid only when subnet_id is specified. Changing this will create a new resource.
name String
The name of a protected instance.
sdrsProtectedInstanceV1Id String
ID of the protected instance.
subnetId String
Specifies the network ID of the subnet. Changing this will create a new resource.
tags Map<String>
Tags key/value pairs to associate with the instance.
timeouts Property Map

Outputs

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

CreatedAt string
Specifies the time when a protected instance was created.
Id string
The provider-assigned unique ID for this managed resource.
PriorityStation string
Specifies the current production site AZ of the protection group containing the protected instance.
TargetId string
Specifies the DR site server ID.
UpdatedAt string
Specifies the time when a protected instance was updated.
CreatedAt string
Specifies the time when a protected instance was created.
Id string
The provider-assigned unique ID for this managed resource.
PriorityStation string
Specifies the current production site AZ of the protection group containing the protected instance.
TargetId string
Specifies the DR site server ID.
UpdatedAt string
Specifies the time when a protected instance was updated.
createdAt String
Specifies the time when a protected instance was created.
id String
The provider-assigned unique ID for this managed resource.
priorityStation String
Specifies the current production site AZ of the protection group containing the protected instance.
targetId String
Specifies the DR site server ID.
updatedAt String
Specifies the time when a protected instance was updated.
createdAt string
Specifies the time when a protected instance was created.
id string
The provider-assigned unique ID for this managed resource.
priorityStation string
Specifies the current production site AZ of the protection group containing the protected instance.
targetId string
Specifies the DR site server ID.
updatedAt string
Specifies the time when a protected instance was updated.
created_at str
Specifies the time when a protected instance was created.
id str
The provider-assigned unique ID for this managed resource.
priority_station str
Specifies the current production site AZ of the protection group containing the protected instance.
target_id str
Specifies the DR site server ID.
updated_at str
Specifies the time when a protected instance was updated.
createdAt String
Specifies the time when a protected instance was created.
id String
The provider-assigned unique ID for this managed resource.
priorityStation String
Specifies the current production site AZ of the protection group containing the protected instance.
targetId String
Specifies the DR site server ID.
updatedAt String
Specifies the time when a protected instance was updated.

Look up Existing SdrsProtectedInstanceV1 Resource

Get an existing SdrsProtectedInstanceV1 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?: SdrsProtectedInstanceV1State, opts?: CustomResourceOptions): SdrsProtectedInstanceV1
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        created_at: Optional[str] = None,
        delete_target_eip: Optional[bool] = None,
        delete_target_server: Optional[bool] = None,
        description: Optional[str] = None,
        group_id: Optional[str] = None,
        ip_address: Optional[str] = None,
        name: Optional[str] = None,
        priority_station: Optional[str] = None,
        sdrs_protected_instance_v1_id: Optional[str] = None,
        server_id: Optional[str] = None,
        subnet_id: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None,
        target_id: Optional[str] = None,
        timeouts: Optional[SdrsProtectedInstanceV1TimeoutsArgs] = None,
        updated_at: Optional[str] = None) -> SdrsProtectedInstanceV1
func GetSdrsProtectedInstanceV1(ctx *Context, name string, id IDInput, state *SdrsProtectedInstanceV1State, opts ...ResourceOption) (*SdrsProtectedInstanceV1, error)
public static SdrsProtectedInstanceV1 Get(string name, Input<string> id, SdrsProtectedInstanceV1State? state, CustomResourceOptions? opts = null)
public static SdrsProtectedInstanceV1 get(String name, Output<String> id, SdrsProtectedInstanceV1State state, CustomResourceOptions options)
resources:  _:    type: opentelekomcloud:SdrsProtectedInstanceV1    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:
CreatedAt string
Specifies the time when a protected instance was created.
DeleteTargetEip bool
Specifies whether to delete the EIP of the DR site server. The default value is false.
DeleteTargetServer bool
Specifies whether to delete the DR site server. The default value is false.
Description string
The description of a protected instance. Changing this creates a new instance. Changing this will create a new resource.
GroupId string
Specifies the ID of the protection group where a protected instance is added. Changing this will create a new resource.
IpAddress string
Specifies the IP address of the primary NIC on the DR site server. This parameter is valid only when subnet_id is specified. Changing this will create a new resource.
Name string
The name of a protected instance.
PriorityStation string
Specifies the current production site AZ of the protection group containing the protected instance.
SdrsProtectedInstanceV1Id string
ID of the protected instance.
ServerId string

Specifies the ID of the protected ECS instance. Changing this will create a new resource.

When the API is successfully invoked, the disaster recovery instance will be automatically created.

SubnetId string
Specifies the network ID of the subnet. Changing this will create a new resource.
Tags Dictionary<string, string>
Tags key/value pairs to associate with the instance.
TargetId string
Specifies the DR site server ID.
Timeouts SdrsProtectedInstanceV1Timeouts
UpdatedAt string
Specifies the time when a protected instance was updated.
CreatedAt string
Specifies the time when a protected instance was created.
DeleteTargetEip bool
Specifies whether to delete the EIP of the DR site server. The default value is false.
DeleteTargetServer bool
Specifies whether to delete the DR site server. The default value is false.
Description string
The description of a protected instance. Changing this creates a new instance. Changing this will create a new resource.
GroupId string
Specifies the ID of the protection group where a protected instance is added. Changing this will create a new resource.
IpAddress string
Specifies the IP address of the primary NIC on the DR site server. This parameter is valid only when subnet_id is specified. Changing this will create a new resource.
Name string
The name of a protected instance.
PriorityStation string
Specifies the current production site AZ of the protection group containing the protected instance.
SdrsProtectedInstanceV1Id string
ID of the protected instance.
ServerId string

Specifies the ID of the protected ECS instance. Changing this will create a new resource.

When the API is successfully invoked, the disaster recovery instance will be automatically created.

SubnetId string
Specifies the network ID of the subnet. Changing this will create a new resource.
Tags map[string]string
Tags key/value pairs to associate with the instance.
TargetId string
Specifies the DR site server ID.
Timeouts SdrsProtectedInstanceV1TimeoutsArgs
UpdatedAt string
Specifies the time when a protected instance was updated.
createdAt String
Specifies the time when a protected instance was created.
deleteTargetEip Boolean
Specifies whether to delete the EIP of the DR site server. The default value is false.
deleteTargetServer Boolean
Specifies whether to delete the DR site server. The default value is false.
description String
The description of a protected instance. Changing this creates a new instance. Changing this will create a new resource.
groupId String
Specifies the ID of the protection group where a protected instance is added. Changing this will create a new resource.
ipAddress String
Specifies the IP address of the primary NIC on the DR site server. This parameter is valid only when subnet_id is specified. Changing this will create a new resource.
name String
The name of a protected instance.
priorityStation String
Specifies the current production site AZ of the protection group containing the protected instance.
sdrsProtectedInstanceV1Id String
ID of the protected instance.
serverId String

Specifies the ID of the protected ECS instance. Changing this will create a new resource.

When the API is successfully invoked, the disaster recovery instance will be automatically created.

subnetId String
Specifies the network ID of the subnet. Changing this will create a new resource.
tags Map<String,String>
Tags key/value pairs to associate with the instance.
targetId String
Specifies the DR site server ID.
timeouts SdrsProtectedInstanceV1Timeouts
updatedAt String
Specifies the time when a protected instance was updated.
createdAt string
Specifies the time when a protected instance was created.
deleteTargetEip boolean
Specifies whether to delete the EIP of the DR site server. The default value is false.
deleteTargetServer boolean
Specifies whether to delete the DR site server. The default value is false.
description string
The description of a protected instance. Changing this creates a new instance. Changing this will create a new resource.
groupId string
Specifies the ID of the protection group where a protected instance is added. Changing this will create a new resource.
ipAddress string
Specifies the IP address of the primary NIC on the DR site server. This parameter is valid only when subnet_id is specified. Changing this will create a new resource.
name string
The name of a protected instance.
priorityStation string
Specifies the current production site AZ of the protection group containing the protected instance.
sdrsProtectedInstanceV1Id string
ID of the protected instance.
serverId string

Specifies the ID of the protected ECS instance. Changing this will create a new resource.

When the API is successfully invoked, the disaster recovery instance will be automatically created.

subnetId string
Specifies the network ID of the subnet. Changing this will create a new resource.
tags {[key: string]: string}
Tags key/value pairs to associate with the instance.
targetId string
Specifies the DR site server ID.
timeouts SdrsProtectedInstanceV1Timeouts
updatedAt string
Specifies the time when a protected instance was updated.
created_at str
Specifies the time when a protected instance was created.
delete_target_eip bool
Specifies whether to delete the EIP of the DR site server. The default value is false.
delete_target_server bool
Specifies whether to delete the DR site server. The default value is false.
description str
The description of a protected instance. Changing this creates a new instance. Changing this will create a new resource.
group_id str
Specifies the ID of the protection group where a protected instance is added. Changing this will create a new resource.
ip_address str
Specifies the IP address of the primary NIC on the DR site server. This parameter is valid only when subnet_id is specified. Changing this will create a new resource.
name str
The name of a protected instance.
priority_station str
Specifies the current production site AZ of the protection group containing the protected instance.
sdrs_protected_instance_v1_id str
ID of the protected instance.
server_id str

Specifies the ID of the protected ECS instance. Changing this will create a new resource.

When the API is successfully invoked, the disaster recovery instance will be automatically created.

subnet_id str
Specifies the network ID of the subnet. Changing this will create a new resource.
tags Mapping[str, str]
Tags key/value pairs to associate with the instance.
target_id str
Specifies the DR site server ID.
timeouts SdrsProtectedInstanceV1TimeoutsArgs
updated_at str
Specifies the time when a protected instance was updated.
createdAt String
Specifies the time when a protected instance was created.
deleteTargetEip Boolean
Specifies whether to delete the EIP of the DR site server. The default value is false.
deleteTargetServer Boolean
Specifies whether to delete the DR site server. The default value is false.
description String
The description of a protected instance. Changing this creates a new instance. Changing this will create a new resource.
groupId String
Specifies the ID of the protection group where a protected instance is added. Changing this will create a new resource.
ipAddress String
Specifies the IP address of the primary NIC on the DR site server. This parameter is valid only when subnet_id is specified. Changing this will create a new resource.
name String
The name of a protected instance.
priorityStation String
Specifies the current production site AZ of the protection group containing the protected instance.
sdrsProtectedInstanceV1Id String
ID of the protected instance.
serverId String

Specifies the ID of the protected ECS instance. Changing this will create a new resource.

When the API is successfully invoked, the disaster recovery instance will be automatically created.

subnetId String
Specifies the network ID of the subnet. Changing this will create a new resource.
tags Map<String>
Tags key/value pairs to associate with the instance.
targetId String
Specifies the DR site server ID.
timeouts Property Map
updatedAt String
Specifies the time when a protected instance was updated.

Supporting Types

SdrsProtectedInstanceV1Timeouts
, SdrsProtectedInstanceV1TimeoutsArgs

Create string
Delete string
Create string
Delete string
create String
delete String
create string
delete string
create str
delete str
create String
delete String

Import

Protected instances can be imported using the id, e.g.

$ pulumi import opentelekomcloud:index/sdrsProtectedInstanceV1:SdrsProtectedInstanceV1 instance_1 7117d38e-4c8f-4624-a505-bd96b97d024c
Copy

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.