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",
},
});
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",
})
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
})
}
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" },
},
});
});
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());
}
}
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
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 string
- The unique name of the resource.
- args SdrsProtectedInstanceV1Args
- 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 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 string
- The unique name of the resource.
- args SdrsProtectedInstanceV1Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SdrsProtectedInstanceV1Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
},
});
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: &opentelekomcloud.SdrsProtectedInstanceV1TimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
})
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());
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",
})
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",
},
});
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
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:
- Group
Id string - Specifies the ID of the protection group where a protected instance is added. Changing this will create a new resource.
- Server
Id 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.
- Delete
Target boolEip - Specifies whether to delete the EIP of the DR site server. The default value is
false
. - Delete
Target boolServer - 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.
- Ip
Address 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.
- Sdrs
Protected stringInstance V1Id - ID of the protected instance.
- Subnet
Id string - Specifies the network ID of the subnet. Changing this will create a new resource.
- Dictionary<string, string>
- Tags key/value pairs to associate with the instance.
- Timeouts
Sdrs
Protected Instance V1Timeouts
- Group
Id string - Specifies the ID of the protection group where a protected instance is added. Changing this will create a new resource.
- Server
Id 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.
- Delete
Target boolEip - Specifies whether to delete the EIP of the DR site server. The default value is
false
. - Delete
Target boolServer - 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.
- Ip
Address 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.
- Sdrs
Protected stringInstance V1Id - ID of the protected instance.
- Subnet
Id string - Specifies the network ID of the subnet. Changing this will create a new resource.
- map[string]string
- Tags key/value pairs to associate with the instance.
- Timeouts
Sdrs
Protected Instance V1Timeouts Args
- group
Id String - Specifies the ID of the protection group where a protected instance is added. Changing this will create a new resource.
- server
Id 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.
- delete
Target BooleanEip - Specifies whether to delete the EIP of the DR site server. The default value is
false
. - delete
Target BooleanServer - 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.
- ip
Address 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.
- sdrs
Protected StringInstance V1Id - ID of the protected instance.
- subnet
Id String - Specifies the network ID of the subnet. Changing this will create a new resource.
- Map<String,String>
- Tags key/value pairs to associate with the instance.
- timeouts
Sdrs
Protected Instance V1Timeouts
- group
Id string - Specifies the ID of the protection group where a protected instance is added. Changing this will create a new resource.
- server
Id 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.
- delete
Target booleanEip - Specifies whether to delete the EIP of the DR site server. The default value is
false
. - delete
Target booleanServer - 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.
- ip
Address 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.
- sdrs
Protected stringInstance V1Id - ID of the protected instance.
- subnet
Id string - Specifies the network ID of the subnet. Changing this will create a new resource.
- {[key: string]: string}
- Tags key/value pairs to associate with the instance.
- timeouts
Sdrs
Protected Instance V1Timeouts
- group_
id str - Specifies the ID of the protection group where a protected instance is added. Changing this will create a new resource.
- 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.
- delete_
target_ booleip - Specifies whether to delete the EIP of the DR site server. The default value is
false
. - delete_
target_ boolserver - 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_ strinstance_ v1_ id - ID of the protected instance.
- subnet_
id str - Specifies the network ID of the subnet. Changing this will create a new resource.
- Mapping[str, str]
- Tags key/value pairs to associate with the instance.
- timeouts
Sdrs
Protected Instance V1Timeouts Args
- group
Id String - Specifies the ID of the protection group where a protected instance is added. Changing this will create a new resource.
- server
Id 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.
- delete
Target BooleanEip - Specifies whether to delete the EIP of the DR site server. The default value is
false
. - delete
Target BooleanServer - 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.
- ip
Address 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.
- sdrs
Protected StringInstance V1Id - ID of the protected instance.
- subnet
Id String - Specifies the network ID of the subnet. Changing this will create a new resource.
- 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:
- Created
At string - Specifies the time when a protected instance was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Priority
Station string - Specifies the current production site AZ of the protection group containing the protected instance.
- Target
Id string - Specifies the DR site server ID.
- Updated
At string - Specifies the time when a protected instance was updated.
- Created
At string - Specifies the time when a protected instance was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Priority
Station string - Specifies the current production site AZ of the protection group containing the protected instance.
- Target
Id string - Specifies the DR site server ID.
- Updated
At string - Specifies the time when a protected instance was updated.
- created
At String - Specifies the time when a protected instance was created.
- id String
- The provider-assigned unique ID for this managed resource.
- priority
Station String - Specifies the current production site AZ of the protection group containing the protected instance.
- target
Id String - Specifies the DR site server ID.
- updated
At String - Specifies the time when a protected instance was updated.
- created
At string - Specifies the time when a protected instance was created.
- id string
- The provider-assigned unique ID for this managed resource.
- priority
Station string - Specifies the current production site AZ of the protection group containing the protected instance.
- target
Id string - Specifies the DR site server ID.
- updated
At 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.
- created
At String - Specifies the time when a protected instance was created.
- id String
- The provider-assigned unique ID for this managed resource.
- priority
Station String - Specifies the current production site AZ of the protection group containing the protected instance.
- target
Id String - Specifies the DR site server ID.
- updated
At 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
- 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.
- Created
At string - Specifies the time when a protected instance was created.
- Delete
Target boolEip - Specifies whether to delete the EIP of the DR site server. The default value is
false
. - Delete
Target boolServer - 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.
- Group
Id string - Specifies the ID of the protection group where a protected instance is added. Changing this will create a new resource.
- Ip
Address 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.
- Priority
Station string - Specifies the current production site AZ of the protection group containing the protected instance.
- Sdrs
Protected stringInstance V1Id - ID of the protected instance.
- Server
Id 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.
- Subnet
Id string - Specifies the network ID of the subnet. Changing this will create a new resource.
- Dictionary<string, string>
- Tags key/value pairs to associate with the instance.
- Target
Id string - Specifies the DR site server ID.
- Timeouts
Sdrs
Protected Instance V1Timeouts - Updated
At string - Specifies the time when a protected instance was updated.
- Created
At string - Specifies the time when a protected instance was created.
- Delete
Target boolEip - Specifies whether to delete the EIP of the DR site server. The default value is
false
. - Delete
Target boolServer - 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.
- Group
Id string - Specifies the ID of the protection group where a protected instance is added. Changing this will create a new resource.
- Ip
Address 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.
- Priority
Station string - Specifies the current production site AZ of the protection group containing the protected instance.
- Sdrs
Protected stringInstance V1Id - ID of the protected instance.
- Server
Id 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.
- Subnet
Id string - Specifies the network ID of the subnet. Changing this will create a new resource.
- map[string]string
- Tags key/value pairs to associate with the instance.
- Target
Id string - Specifies the DR site server ID.
- Timeouts
Sdrs
Protected Instance V1Timeouts Args - Updated
At string - Specifies the time when a protected instance was updated.
- created
At String - Specifies the time when a protected instance was created.
- delete
Target BooleanEip - Specifies whether to delete the EIP of the DR site server. The default value is
false
. - delete
Target BooleanServer - 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.
- group
Id String - Specifies the ID of the protection group where a protected instance is added. Changing this will create a new resource.
- ip
Address 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.
- priority
Station String - Specifies the current production site AZ of the protection group containing the protected instance.
- sdrs
Protected StringInstance V1Id - ID of the protected instance.
- server
Id 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.
- subnet
Id String - Specifies the network ID of the subnet. Changing this will create a new resource.
- Map<String,String>
- Tags key/value pairs to associate with the instance.
- target
Id String - Specifies the DR site server ID.
- timeouts
Sdrs
Protected Instance V1Timeouts - updated
At String - Specifies the time when a protected instance was updated.
- created
At string - Specifies the time when a protected instance was created.
- delete
Target booleanEip - Specifies whether to delete the EIP of the DR site server. The default value is
false
. - delete
Target booleanServer - 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.
- group
Id string - Specifies the ID of the protection group where a protected instance is added. Changing this will create a new resource.
- ip
Address 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.
- priority
Station string - Specifies the current production site AZ of the protection group containing the protected instance.
- sdrs
Protected stringInstance V1Id - ID of the protected instance.
- server
Id 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.
- subnet
Id string - Specifies the network ID of the subnet. Changing this will create a new resource.
- {[key: string]: string}
- Tags key/value pairs to associate with the instance.
- target
Id string - Specifies the DR site server ID.
- timeouts
Sdrs
Protected Instance V1Timeouts - updated
At string - Specifies the time when a protected instance was updated.
- created_
at str - Specifies the time when a protected instance was created.
- delete_
target_ booleip - Specifies whether to delete the EIP of the DR site server. The default value is
false
. - delete_
target_ boolserver - 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_ strinstance_ v1_ id - 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.
- Mapping[str, str]
- Tags key/value pairs to associate with the instance.
- target_
id str - Specifies the DR site server ID.
- timeouts
Sdrs
Protected Instance V1Timeouts Args - updated_
at str - Specifies the time when a protected instance was updated.
- created
At String - Specifies the time when a protected instance was created.
- delete
Target BooleanEip - Specifies whether to delete the EIP of the DR site server. The default value is
false
. - delete
Target BooleanServer - 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.
- group
Id String - Specifies the ID of the protection group where a protected instance is added. Changing this will create a new resource.
- ip
Address 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.
- priority
Station String - Specifies the current production site AZ of the protection group containing the protected instance.
- sdrs
Protected StringInstance V1Id - ID of the protected instance.
- server
Id 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.
- subnet
Id String - Specifies the network ID of the subnet. Changing this will create a new resource.
- Map<String>
- Tags key/value pairs to associate with the instance.
- target
Id String - Specifies the DR site server ID.
- timeouts Property Map
- updated
At String - Specifies the time when a protected instance was updated.
Supporting Types
SdrsProtectedInstanceV1Timeouts, SdrsProtectedInstanceV1TimeoutsArgs
Import
Protected instances can be imported using the id
, e.g.
$ pulumi import opentelekomcloud:index/sdrsProtectedInstanceV1:SdrsProtectedInstanceV1 instance_1 7117d38e-4c8f-4624-a505-bd96b97d024c
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.