flexibleengine.SmsTask
Explore with Pulumi AI
Manages an SMS migration task resource within FlexibleEngine.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
const config = new pulumi.Config();
const sourceServer = config.requireObject("sourceServer");
const templateId = config.requireObject("templateId");
const migration = new flexibleengine.SmsTask("migration", {
type: "MIGRATE_FILE",
osType: "LINUX",
sourceServerId: sourceServer,
vmTemplateId: templateId,
action: "start",
});
import pulumi
import pulumi_flexibleengine as flexibleengine
config = pulumi.Config()
source_server = config.require_object("sourceServer")
template_id = config.require_object("templateId")
migration = flexibleengine.SmsTask("migration",
type="MIGRATE_FILE",
os_type="LINUX",
source_server_id=source_server,
vm_template_id=template_id,
action="start")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
sourceServer := cfg.RequireObject("sourceServer")
templateId := cfg.RequireObject("templateId")
_, err := flexibleengine.NewSmsTask(ctx, "migration", &flexibleengine.SmsTaskArgs{
Type: pulumi.String("MIGRATE_FILE"),
OsType: pulumi.String("LINUX"),
SourceServerId: pulumi.Any(sourceServer),
VmTemplateId: pulumi.Any(templateId),
Action: pulumi.String("start"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var sourceServer = config.RequireObject<dynamic>("sourceServer");
var templateId = config.RequireObject<dynamic>("templateId");
var migration = new Flexibleengine.SmsTask("migration", new()
{
Type = "MIGRATE_FILE",
OsType = "LINUX",
SourceServerId = sourceServer,
VmTemplateId = templateId,
Action = "start",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.SmsTask;
import com.pulumi.flexibleengine.SmsTaskArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var config = ctx.config();
final var sourceServer = config.get("sourceServer");
final var templateId = config.get("templateId");
var migration = new SmsTask("migration", SmsTaskArgs.builder()
.type("MIGRATE_FILE")
.osType("LINUX")
.sourceServerId(sourceServer)
.vmTemplateId(templateId)
.action("start")
.build());
}
}
configuration:
sourceServer:
type: dynamic
templateId:
type: dynamic
resources:
migration:
type: flexibleengine:SmsTask
properties:
type: MIGRATE_FILE
osType: LINUX
sourceServerId: ${sourceServer}
vmTemplateId: ${templateId}
action: start
Create SmsTask Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SmsTask(name: string, args: SmsTaskArgs, opts?: CustomResourceOptions);
@overload
def SmsTask(resource_name: str,
args: SmsTaskArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SmsTask(resource_name: str,
opts: Optional[ResourceOptions] = None,
source_server_id: Optional[str] = None,
type: Optional[str] = None,
os_type: Optional[str] = None,
project_id: Optional[str] = None,
region: Optional[str] = None,
sms_task_id: Optional[str] = None,
action: Optional[str] = None,
start_target_server: Optional[bool] = None,
syncing: Optional[bool] = None,
target_server_disks: Optional[Sequence[SmsTaskTargetServerDiskArgs]] = None,
target_server_id: Optional[str] = None,
timeouts: Optional[SmsTaskTimeoutsArgs] = None,
migration_ip: Optional[str] = None,
use_public_ip: Optional[bool] = None,
vm_template_id: Optional[str] = None)
func NewSmsTask(ctx *Context, name string, args SmsTaskArgs, opts ...ResourceOption) (*SmsTask, error)
public SmsTask(string name, SmsTaskArgs args, CustomResourceOptions? opts = null)
public SmsTask(String name, SmsTaskArgs args)
public SmsTask(String name, SmsTaskArgs args, CustomResourceOptions options)
type: flexibleengine:SmsTask
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 SmsTaskArgs
- 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 SmsTaskArgs
- 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 SmsTaskArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SmsTaskArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SmsTaskArgs
- 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 smsTaskResource = new Flexibleengine.SmsTask("smsTaskResource", new()
{
SourceServerId = "string",
Type = "string",
OsType = "string",
ProjectId = "string",
Region = "string",
SmsTaskId = "string",
Action = "string",
StartTargetServer = false,
Syncing = false,
TargetServerDisks = new[]
{
new Flexibleengine.Inputs.SmsTaskTargetServerDiskArgs
{
DeviceType = "string",
Name = "string",
Size = 0,
DiskId = "string",
PhysicalVolumes = new[]
{
new Flexibleengine.Inputs.SmsTaskTargetServerDiskPhysicalVolumeArgs
{
DeviceType = "string",
FileSystem = "string",
Index = 0,
MountPoint = "string",
Name = "string",
Size = 0,
UsedSize = 0,
Uuid = "string",
},
},
UsedSize = 0,
},
},
TargetServerId = "string",
Timeouts = new Flexibleengine.Inputs.SmsTaskTimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
MigrationIp = "string",
UsePublicIp = false,
VmTemplateId = "string",
});
example, err := flexibleengine.NewSmsTask(ctx, "smsTaskResource", &flexibleengine.SmsTaskArgs{
SourceServerId: pulumi.String("string"),
Type: pulumi.String("string"),
OsType: pulumi.String("string"),
ProjectId: pulumi.String("string"),
Region: pulumi.String("string"),
SmsTaskId: pulumi.String("string"),
Action: pulumi.String("string"),
StartTargetServer: pulumi.Bool(false),
Syncing: pulumi.Bool(false),
TargetServerDisks: flexibleengine.SmsTaskTargetServerDiskArray{
&flexibleengine.SmsTaskTargetServerDiskArgs{
DeviceType: pulumi.String("string"),
Name: pulumi.String("string"),
Size: pulumi.Float64(0),
DiskId: pulumi.String("string"),
PhysicalVolumes: flexibleengine.SmsTaskTargetServerDiskPhysicalVolumeArray{
&flexibleengine.SmsTaskTargetServerDiskPhysicalVolumeArgs{
DeviceType: pulumi.String("string"),
FileSystem: pulumi.String("string"),
Index: pulumi.Float64(0),
MountPoint: pulumi.String("string"),
Name: pulumi.String("string"),
Size: pulumi.Float64(0),
UsedSize: pulumi.Float64(0),
Uuid: pulumi.String("string"),
},
},
UsedSize: pulumi.Float64(0),
},
},
TargetServerId: pulumi.String("string"),
Timeouts: &flexibleengine.SmsTaskTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
MigrationIp: pulumi.String("string"),
UsePublicIp: pulumi.Bool(false),
VmTemplateId: pulumi.String("string"),
})
var smsTaskResource = new SmsTask("smsTaskResource", SmsTaskArgs.builder()
.sourceServerId("string")
.type("string")
.osType("string")
.projectId("string")
.region("string")
.smsTaskId("string")
.action("string")
.startTargetServer(false)
.syncing(false)
.targetServerDisks(SmsTaskTargetServerDiskArgs.builder()
.deviceType("string")
.name("string")
.size(0)
.diskId("string")
.physicalVolumes(SmsTaskTargetServerDiskPhysicalVolumeArgs.builder()
.deviceType("string")
.fileSystem("string")
.index(0)
.mountPoint("string")
.name("string")
.size(0)
.usedSize(0)
.uuid("string")
.build())
.usedSize(0)
.build())
.targetServerId("string")
.timeouts(SmsTaskTimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.migrationIp("string")
.usePublicIp(false)
.vmTemplateId("string")
.build());
sms_task_resource = flexibleengine.SmsTask("smsTaskResource",
source_server_id="string",
type="string",
os_type="string",
project_id="string",
region="string",
sms_task_id="string",
action="string",
start_target_server=False,
syncing=False,
target_server_disks=[{
"device_type": "string",
"name": "string",
"size": 0,
"disk_id": "string",
"physical_volumes": [{
"device_type": "string",
"file_system": "string",
"index": 0,
"mount_point": "string",
"name": "string",
"size": 0,
"used_size": 0,
"uuid": "string",
}],
"used_size": 0,
}],
target_server_id="string",
timeouts={
"create": "string",
"delete": "string",
"update": "string",
},
migration_ip="string",
use_public_ip=False,
vm_template_id="string")
const smsTaskResource = new flexibleengine.SmsTask("smsTaskResource", {
sourceServerId: "string",
type: "string",
osType: "string",
projectId: "string",
region: "string",
smsTaskId: "string",
action: "string",
startTargetServer: false,
syncing: false,
targetServerDisks: [{
deviceType: "string",
name: "string",
size: 0,
diskId: "string",
physicalVolumes: [{
deviceType: "string",
fileSystem: "string",
index: 0,
mountPoint: "string",
name: "string",
size: 0,
usedSize: 0,
uuid: "string",
}],
usedSize: 0,
}],
targetServerId: "string",
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
migrationIp: "string",
usePublicIp: false,
vmTemplateId: "string",
});
type: flexibleengine:SmsTask
properties:
action: string
migrationIp: string
osType: string
projectId: string
region: string
smsTaskId: string
sourceServerId: string
startTargetServer: false
syncing: false
targetServerDisks:
- deviceType: string
diskId: string
name: string
physicalVolumes:
- deviceType: string
fileSystem: string
index: 0
mountPoint: string
name: string
size: 0
usedSize: 0
uuid: string
size: 0
usedSize: 0
targetServerId: string
timeouts:
create: string
delete: string
update: string
type: string
usePublicIp: false
vmTemplateId: string
SmsTask 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 SmsTask resource accepts the following input properties:
- Os
Type string - Specifies the OS type of the source server. The value can be WINDOWS and LINUX. Changing this parameter will create a new resource.
- Source
Server stringId - Specifies the ID of the source server. Changing this parameter will create a new resource.
- Type string
- Specifies the type of the migration task. Available values are
MIGRATE_FILE(file-level migration) and MIGRATE_BLOCK(block-level migration).
Changing this parameter will create a new resource.
- For Linux servers, SMS supports block-level and file-level migrations. Block-level migration has high efficiency but poor compatibility while file-level migration has low efficiency but excellent compatibility.
- For Windows servers, SMS only supports highly efficient block-level migration.
- Action string
- Specifies the operation after the task is created. The value can be start, stop and restart.
- Migration
Ip string - Specifies the IP address of the target server. Use the EIP of the target server if the migration network type is Internet. Use the private IP address of the target server if the migration network type is Direct Connect or VPN. Changing this parameter will create a new resource.
- Project
Id string Specifies the project ID where the target server is located. If omitted, the default project in the region will be used. Changing this parameter will create a new resource.
The
target_server_disks
block supports:- Region string
- Specifies the region where the target server is located. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- Sms
Task stringId - The resource ID in UUID format.
- Start
Target boolServer - Specifies whether to start the target server after the migration.
The default value is
true
. Changing this parameter will create a new resource. - Syncing bool
- Specifies whether to perform a continuous synchronization after the first replication.
The default value is
false
. Changing this parameter will create a new resource. - Target
Server List<SmsDisks Task Target Server Disk> - Specifies the disk configurations of the target server. If omitted, it will be obtained from the source server. The object is documented below. Changing this parameter will create a new resource.
- Target
Server stringId - Specifies the existing server ID as the target server.
This parameter and
vm_template_id
are alternative. Changing this parameter will create a new resource. - Timeouts
Sms
Task Timeouts - Use
Public boolIp - Specifies whether to use a public IP address for migration.
The default value is
true
. Changing this parameter will create a new resource. - Vm
Template stringId - Specifies the template used to create the target server automatically.
This parameter and
target_server_id
are alternative. Changing this parameter will create a new resource.
- Os
Type string - Specifies the OS type of the source server. The value can be WINDOWS and LINUX. Changing this parameter will create a new resource.
- Source
Server stringId - Specifies the ID of the source server. Changing this parameter will create a new resource.
- Type string
- Specifies the type of the migration task. Available values are
MIGRATE_FILE(file-level migration) and MIGRATE_BLOCK(block-level migration).
Changing this parameter will create a new resource.
- For Linux servers, SMS supports block-level and file-level migrations. Block-level migration has high efficiency but poor compatibility while file-level migration has low efficiency but excellent compatibility.
- For Windows servers, SMS only supports highly efficient block-level migration.
- Action string
- Specifies the operation after the task is created. The value can be start, stop and restart.
- Migration
Ip string - Specifies the IP address of the target server. Use the EIP of the target server if the migration network type is Internet. Use the private IP address of the target server if the migration network type is Direct Connect or VPN. Changing this parameter will create a new resource.
- Project
Id string Specifies the project ID where the target server is located. If omitted, the default project in the region will be used. Changing this parameter will create a new resource.
The
target_server_disks
block supports:- Region string
- Specifies the region where the target server is located. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- Sms
Task stringId - The resource ID in UUID format.
- Start
Target boolServer - Specifies whether to start the target server after the migration.
The default value is
true
. Changing this parameter will create a new resource. - Syncing bool
- Specifies whether to perform a continuous synchronization after the first replication.
The default value is
false
. Changing this parameter will create a new resource. - Target
Server []SmsDisks Task Target Server Disk Args - Specifies the disk configurations of the target server. If omitted, it will be obtained from the source server. The object is documented below. Changing this parameter will create a new resource.
- Target
Server stringId - Specifies the existing server ID as the target server.
This parameter and
vm_template_id
are alternative. Changing this parameter will create a new resource. - Timeouts
Sms
Task Timeouts Args - Use
Public boolIp - Specifies whether to use a public IP address for migration.
The default value is
true
. Changing this parameter will create a new resource. - Vm
Template stringId - Specifies the template used to create the target server automatically.
This parameter and
target_server_id
are alternative. Changing this parameter will create a new resource.
- os
Type String - Specifies the OS type of the source server. The value can be WINDOWS and LINUX. Changing this parameter will create a new resource.
- source
Server StringId - Specifies the ID of the source server. Changing this parameter will create a new resource.
- type String
- Specifies the type of the migration task. Available values are
MIGRATE_FILE(file-level migration) and MIGRATE_BLOCK(block-level migration).
Changing this parameter will create a new resource.
- For Linux servers, SMS supports block-level and file-level migrations. Block-level migration has high efficiency but poor compatibility while file-level migration has low efficiency but excellent compatibility.
- For Windows servers, SMS only supports highly efficient block-level migration.
- action String
- Specifies the operation after the task is created. The value can be start, stop and restart.
- migration
Ip String - Specifies the IP address of the target server. Use the EIP of the target server if the migration network type is Internet. Use the private IP address of the target server if the migration network type is Direct Connect or VPN. Changing this parameter will create a new resource.
- project
Id String Specifies the project ID where the target server is located. If omitted, the default project in the region will be used. Changing this parameter will create a new resource.
The
target_server_disks
block supports:- region String
- Specifies the region where the target server is located. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- sms
Task StringId - The resource ID in UUID format.
- start
Target BooleanServer - Specifies whether to start the target server after the migration.
The default value is
true
. Changing this parameter will create a new resource. - syncing Boolean
- Specifies whether to perform a continuous synchronization after the first replication.
The default value is
false
. Changing this parameter will create a new resource. - target
Server List<SmsDisks Task Target Server Disk> - Specifies the disk configurations of the target server. If omitted, it will be obtained from the source server. The object is documented below. Changing this parameter will create a new resource.
- target
Server StringId - Specifies the existing server ID as the target server.
This parameter and
vm_template_id
are alternative. Changing this parameter will create a new resource. - timeouts
Sms
Task Timeouts - use
Public BooleanIp - Specifies whether to use a public IP address for migration.
The default value is
true
. Changing this parameter will create a new resource. - vm
Template StringId - Specifies the template used to create the target server automatically.
This parameter and
target_server_id
are alternative. Changing this parameter will create a new resource.
- os
Type string - Specifies the OS type of the source server. The value can be WINDOWS and LINUX. Changing this parameter will create a new resource.
- source
Server stringId - Specifies the ID of the source server. Changing this parameter will create a new resource.
- type string
- Specifies the type of the migration task. Available values are
MIGRATE_FILE(file-level migration) and MIGRATE_BLOCK(block-level migration).
Changing this parameter will create a new resource.
- For Linux servers, SMS supports block-level and file-level migrations. Block-level migration has high efficiency but poor compatibility while file-level migration has low efficiency but excellent compatibility.
- For Windows servers, SMS only supports highly efficient block-level migration.
- action string
- Specifies the operation after the task is created. The value can be start, stop and restart.
- migration
Ip string - Specifies the IP address of the target server. Use the EIP of the target server if the migration network type is Internet. Use the private IP address of the target server if the migration network type is Direct Connect or VPN. Changing this parameter will create a new resource.
- project
Id string Specifies the project ID where the target server is located. If omitted, the default project in the region will be used. Changing this parameter will create a new resource.
The
target_server_disks
block supports:- region string
- Specifies the region where the target server is located. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- sms
Task stringId - The resource ID in UUID format.
- start
Target booleanServer - Specifies whether to start the target server after the migration.
The default value is
true
. Changing this parameter will create a new resource. - syncing boolean
- Specifies whether to perform a continuous synchronization after the first replication.
The default value is
false
. Changing this parameter will create a new resource. - target
Server SmsDisks Task Target Server Disk[] - Specifies the disk configurations of the target server. If omitted, it will be obtained from the source server. The object is documented below. Changing this parameter will create a new resource.
- target
Server stringId - Specifies the existing server ID as the target server.
This parameter and
vm_template_id
are alternative. Changing this parameter will create a new resource. - timeouts
Sms
Task Timeouts - use
Public booleanIp - Specifies whether to use a public IP address for migration.
The default value is
true
. Changing this parameter will create a new resource. - vm
Template stringId - Specifies the template used to create the target server automatically.
This parameter and
target_server_id
are alternative. Changing this parameter will create a new resource.
- os_
type str - Specifies the OS type of the source server. The value can be WINDOWS and LINUX. Changing this parameter will create a new resource.
- source_
server_ strid - Specifies the ID of the source server. Changing this parameter will create a new resource.
- type str
- Specifies the type of the migration task. Available values are
MIGRATE_FILE(file-level migration) and MIGRATE_BLOCK(block-level migration).
Changing this parameter will create a new resource.
- For Linux servers, SMS supports block-level and file-level migrations. Block-level migration has high efficiency but poor compatibility while file-level migration has low efficiency but excellent compatibility.
- For Windows servers, SMS only supports highly efficient block-level migration.
- action str
- Specifies the operation after the task is created. The value can be start, stop and restart.
- migration_
ip str - Specifies the IP address of the target server. Use the EIP of the target server if the migration network type is Internet. Use the private IP address of the target server if the migration network type is Direct Connect or VPN. Changing this parameter will create a new resource.
- project_
id str Specifies the project ID where the target server is located. If omitted, the default project in the region will be used. Changing this parameter will create a new resource.
The
target_server_disks
block supports:- region str
- Specifies the region where the target server is located. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- sms_
task_ strid - The resource ID in UUID format.
- start_
target_ boolserver - Specifies whether to start the target server after the migration.
The default value is
true
. Changing this parameter will create a new resource. - syncing bool
- Specifies whether to perform a continuous synchronization after the first replication.
The default value is
false
. Changing this parameter will create a new resource. - target_
server_ Sequence[Smsdisks Task Target Server Disk Args] - Specifies the disk configurations of the target server. If omitted, it will be obtained from the source server. The object is documented below. Changing this parameter will create a new resource.
- target_
server_ strid - Specifies the existing server ID as the target server.
This parameter and
vm_template_id
are alternative. Changing this parameter will create a new resource. - timeouts
Sms
Task Timeouts Args - use_
public_ boolip - Specifies whether to use a public IP address for migration.
The default value is
true
. Changing this parameter will create a new resource. - vm_
template_ strid - Specifies the template used to create the target server automatically.
This parameter and
target_server_id
are alternative. Changing this parameter will create a new resource.
- os
Type String - Specifies the OS type of the source server. The value can be WINDOWS and LINUX. Changing this parameter will create a new resource.
- source
Server StringId - Specifies the ID of the source server. Changing this parameter will create a new resource.
- type String
- Specifies the type of the migration task. Available values are
MIGRATE_FILE(file-level migration) and MIGRATE_BLOCK(block-level migration).
Changing this parameter will create a new resource.
- For Linux servers, SMS supports block-level and file-level migrations. Block-level migration has high efficiency but poor compatibility while file-level migration has low efficiency but excellent compatibility.
- For Windows servers, SMS only supports highly efficient block-level migration.
- action String
- Specifies the operation after the task is created. The value can be start, stop and restart.
- migration
Ip String - Specifies the IP address of the target server. Use the EIP of the target server if the migration network type is Internet. Use the private IP address of the target server if the migration network type is Direct Connect or VPN. Changing this parameter will create a new resource.
- project
Id String Specifies the project ID where the target server is located. If omitted, the default project in the region will be used. Changing this parameter will create a new resource.
The
target_server_disks
block supports:- region String
- Specifies the region where the target server is located. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- sms
Task StringId - The resource ID in UUID format.
- start
Target BooleanServer - Specifies whether to start the target server after the migration.
The default value is
true
. Changing this parameter will create a new resource. - syncing Boolean
- Specifies whether to perform a continuous synchronization after the first replication.
The default value is
false
. Changing this parameter will create a new resource. - target
Server List<Property Map>Disks - Specifies the disk configurations of the target server. If omitted, it will be obtained from the source server. The object is documented below. Changing this parameter will create a new resource.
- target
Server StringId - Specifies the existing server ID as the target server.
This parameter and
vm_template_id
are alternative. Changing this parameter will create a new resource. - timeouts Property Map
- use
Public BooleanIp - Specifies whether to use a public IP address for migration.
The default value is
true
. Changing this parameter will create a new resource. - vm
Template StringId - Specifies the template used to create the target server automatically.
This parameter and
target_server_id
are alternative. Changing this parameter will create a new resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the SmsTask resource produces the following output properties:
- Enterprise
Project stringId - The enterprise project id of the target server.
- Id string
- The provider-assigned unique ID for this managed resource.
- Migrate
Speed double - The migration rate, in MB/s.
- State string
- The status of the migration task.
- Target
Server stringName - The name of the target server.
- Enterprise
Project stringId - The enterprise project id of the target server.
- Id string
- The provider-assigned unique ID for this managed resource.
- Migrate
Speed float64 - The migration rate, in MB/s.
- State string
- The status of the migration task.
- Target
Server stringName - The name of the target server.
- enterprise
Project StringId - The enterprise project id of the target server.
- id String
- The provider-assigned unique ID for this managed resource.
- migrate
Speed Double - The migration rate, in MB/s.
- state String
- The status of the migration task.
- target
Server StringName - The name of the target server.
- enterprise
Project stringId - The enterprise project id of the target server.
- id string
- The provider-assigned unique ID for this managed resource.
- migrate
Speed number - The migration rate, in MB/s.
- state string
- The status of the migration task.
- target
Server stringName - The name of the target server.
- enterprise_
project_ strid - The enterprise project id of the target server.
- id str
- The provider-assigned unique ID for this managed resource.
- migrate_
speed float - The migration rate, in MB/s.
- state str
- The status of the migration task.
- target_
server_ strname - The name of the target server.
- enterprise
Project StringId - The enterprise project id of the target server.
- id String
- The provider-assigned unique ID for this managed resource.
- migrate
Speed Number - The migration rate, in MB/s.
- state String
- The status of the migration task.
- target
Server StringName - The name of the target server.
Look up Existing SmsTask Resource
Get an existing SmsTask 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?: SmsTaskState, opts?: CustomResourceOptions): SmsTask
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
action: Optional[str] = None,
enterprise_project_id: Optional[str] = None,
migrate_speed: Optional[float] = None,
migration_ip: Optional[str] = None,
os_type: Optional[str] = None,
project_id: Optional[str] = None,
region: Optional[str] = None,
sms_task_id: Optional[str] = None,
source_server_id: Optional[str] = None,
start_target_server: Optional[bool] = None,
state: Optional[str] = None,
syncing: Optional[bool] = None,
target_server_disks: Optional[Sequence[SmsTaskTargetServerDiskArgs]] = None,
target_server_id: Optional[str] = None,
target_server_name: Optional[str] = None,
timeouts: Optional[SmsTaskTimeoutsArgs] = None,
type: Optional[str] = None,
use_public_ip: Optional[bool] = None,
vm_template_id: Optional[str] = None) -> SmsTask
func GetSmsTask(ctx *Context, name string, id IDInput, state *SmsTaskState, opts ...ResourceOption) (*SmsTask, error)
public static SmsTask Get(string name, Input<string> id, SmsTaskState? state, CustomResourceOptions? opts = null)
public static SmsTask get(String name, Output<String> id, SmsTaskState state, CustomResourceOptions options)
resources: _: type: flexibleengine:SmsTask 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.
- Action string
- Specifies the operation after the task is created. The value can be start, stop and restart.
- Enterprise
Project stringId - The enterprise project id of the target server.
- Migrate
Speed double - The migration rate, in MB/s.
- Migration
Ip string - Specifies the IP address of the target server. Use the EIP of the target server if the migration network type is Internet. Use the private IP address of the target server if the migration network type is Direct Connect or VPN. Changing this parameter will create a new resource.
- Os
Type string - Specifies the OS type of the source server. The value can be WINDOWS and LINUX. Changing this parameter will create a new resource.
- Project
Id string Specifies the project ID where the target server is located. If omitted, the default project in the region will be used. Changing this parameter will create a new resource.
The
target_server_disks
block supports:- Region string
- Specifies the region where the target server is located. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- Sms
Task stringId - The resource ID in UUID format.
- Source
Server stringId - Specifies the ID of the source server. Changing this parameter will create a new resource.
- Start
Target boolServer - Specifies whether to start the target server after the migration.
The default value is
true
. Changing this parameter will create a new resource. - State string
- The status of the migration task.
- Syncing bool
- Specifies whether to perform a continuous synchronization after the first replication.
The default value is
false
. Changing this parameter will create a new resource. - Target
Server List<SmsDisks Task Target Server Disk> - Specifies the disk configurations of the target server. If omitted, it will be obtained from the source server. The object is documented below. Changing this parameter will create a new resource.
- Target
Server stringId - Specifies the existing server ID as the target server.
This parameter and
vm_template_id
are alternative. Changing this parameter will create a new resource. - Target
Server stringName - The name of the target server.
- Timeouts
Sms
Task Timeouts - Type string
- Specifies the type of the migration task. Available values are
MIGRATE_FILE(file-level migration) and MIGRATE_BLOCK(block-level migration).
Changing this parameter will create a new resource.
- For Linux servers, SMS supports block-level and file-level migrations. Block-level migration has high efficiency but poor compatibility while file-level migration has low efficiency but excellent compatibility.
- For Windows servers, SMS only supports highly efficient block-level migration.
- Use
Public boolIp - Specifies whether to use a public IP address for migration.
The default value is
true
. Changing this parameter will create a new resource. - Vm
Template stringId - Specifies the template used to create the target server automatically.
This parameter and
target_server_id
are alternative. Changing this parameter will create a new resource.
- Action string
- Specifies the operation after the task is created. The value can be start, stop and restart.
- Enterprise
Project stringId - The enterprise project id of the target server.
- Migrate
Speed float64 - The migration rate, in MB/s.
- Migration
Ip string - Specifies the IP address of the target server. Use the EIP of the target server if the migration network type is Internet. Use the private IP address of the target server if the migration network type is Direct Connect or VPN. Changing this parameter will create a new resource.
- Os
Type string - Specifies the OS type of the source server. The value can be WINDOWS and LINUX. Changing this parameter will create a new resource.
- Project
Id string Specifies the project ID where the target server is located. If omitted, the default project in the region will be used. Changing this parameter will create a new resource.
The
target_server_disks
block supports:- Region string
- Specifies the region where the target server is located. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- Sms
Task stringId - The resource ID in UUID format.
- Source
Server stringId - Specifies the ID of the source server. Changing this parameter will create a new resource.
- Start
Target boolServer - Specifies whether to start the target server after the migration.
The default value is
true
. Changing this parameter will create a new resource. - State string
- The status of the migration task.
- Syncing bool
- Specifies whether to perform a continuous synchronization after the first replication.
The default value is
false
. Changing this parameter will create a new resource. - Target
Server []SmsDisks Task Target Server Disk Args - Specifies the disk configurations of the target server. If omitted, it will be obtained from the source server. The object is documented below. Changing this parameter will create a new resource.
- Target
Server stringId - Specifies the existing server ID as the target server.
This parameter and
vm_template_id
are alternative. Changing this parameter will create a new resource. - Target
Server stringName - The name of the target server.
- Timeouts
Sms
Task Timeouts Args - Type string
- Specifies the type of the migration task. Available values are
MIGRATE_FILE(file-level migration) and MIGRATE_BLOCK(block-level migration).
Changing this parameter will create a new resource.
- For Linux servers, SMS supports block-level and file-level migrations. Block-level migration has high efficiency but poor compatibility while file-level migration has low efficiency but excellent compatibility.
- For Windows servers, SMS only supports highly efficient block-level migration.
- Use
Public boolIp - Specifies whether to use a public IP address for migration.
The default value is
true
. Changing this parameter will create a new resource. - Vm
Template stringId - Specifies the template used to create the target server automatically.
This parameter and
target_server_id
are alternative. Changing this parameter will create a new resource.
- action String
- Specifies the operation after the task is created. The value can be start, stop and restart.
- enterprise
Project StringId - The enterprise project id of the target server.
- migrate
Speed Double - The migration rate, in MB/s.
- migration
Ip String - Specifies the IP address of the target server. Use the EIP of the target server if the migration network type is Internet. Use the private IP address of the target server if the migration network type is Direct Connect or VPN. Changing this parameter will create a new resource.
- os
Type String - Specifies the OS type of the source server. The value can be WINDOWS and LINUX. Changing this parameter will create a new resource.
- project
Id String Specifies the project ID where the target server is located. If omitted, the default project in the region will be used. Changing this parameter will create a new resource.
The
target_server_disks
block supports:- region String
- Specifies the region where the target server is located. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- sms
Task StringId - The resource ID in UUID format.
- source
Server StringId - Specifies the ID of the source server. Changing this parameter will create a new resource.
- start
Target BooleanServer - Specifies whether to start the target server after the migration.
The default value is
true
. Changing this parameter will create a new resource. - state String
- The status of the migration task.
- syncing Boolean
- Specifies whether to perform a continuous synchronization after the first replication.
The default value is
false
. Changing this parameter will create a new resource. - target
Server List<SmsDisks Task Target Server Disk> - Specifies the disk configurations of the target server. If omitted, it will be obtained from the source server. The object is documented below. Changing this parameter will create a new resource.
- target
Server StringId - Specifies the existing server ID as the target server.
This parameter and
vm_template_id
are alternative. Changing this parameter will create a new resource. - target
Server StringName - The name of the target server.
- timeouts
Sms
Task Timeouts - type String
- Specifies the type of the migration task. Available values are
MIGRATE_FILE(file-level migration) and MIGRATE_BLOCK(block-level migration).
Changing this parameter will create a new resource.
- For Linux servers, SMS supports block-level and file-level migrations. Block-level migration has high efficiency but poor compatibility while file-level migration has low efficiency but excellent compatibility.
- For Windows servers, SMS only supports highly efficient block-level migration.
- use
Public BooleanIp - Specifies whether to use a public IP address for migration.
The default value is
true
. Changing this parameter will create a new resource. - vm
Template StringId - Specifies the template used to create the target server automatically.
This parameter and
target_server_id
are alternative. Changing this parameter will create a new resource.
- action string
- Specifies the operation after the task is created. The value can be start, stop and restart.
- enterprise
Project stringId - The enterprise project id of the target server.
- migrate
Speed number - The migration rate, in MB/s.
- migration
Ip string - Specifies the IP address of the target server. Use the EIP of the target server if the migration network type is Internet. Use the private IP address of the target server if the migration network type is Direct Connect or VPN. Changing this parameter will create a new resource.
- os
Type string - Specifies the OS type of the source server. The value can be WINDOWS and LINUX. Changing this parameter will create a new resource.
- project
Id string Specifies the project ID where the target server is located. If omitted, the default project in the region will be used. Changing this parameter will create a new resource.
The
target_server_disks
block supports:- region string
- Specifies the region where the target server is located. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- sms
Task stringId - The resource ID in UUID format.
- source
Server stringId - Specifies the ID of the source server. Changing this parameter will create a new resource.
- start
Target booleanServer - Specifies whether to start the target server after the migration.
The default value is
true
. Changing this parameter will create a new resource. - state string
- The status of the migration task.
- syncing boolean
- Specifies whether to perform a continuous synchronization after the first replication.
The default value is
false
. Changing this parameter will create a new resource. - target
Server SmsDisks Task Target Server Disk[] - Specifies the disk configurations of the target server. If omitted, it will be obtained from the source server. The object is documented below. Changing this parameter will create a new resource.
- target
Server stringId - Specifies the existing server ID as the target server.
This parameter and
vm_template_id
are alternative. Changing this parameter will create a new resource. - target
Server stringName - The name of the target server.
- timeouts
Sms
Task Timeouts - type string
- Specifies the type of the migration task. Available values are
MIGRATE_FILE(file-level migration) and MIGRATE_BLOCK(block-level migration).
Changing this parameter will create a new resource.
- For Linux servers, SMS supports block-level and file-level migrations. Block-level migration has high efficiency but poor compatibility while file-level migration has low efficiency but excellent compatibility.
- For Windows servers, SMS only supports highly efficient block-level migration.
- use
Public booleanIp - Specifies whether to use a public IP address for migration.
The default value is
true
. Changing this parameter will create a new resource. - vm
Template stringId - Specifies the template used to create the target server automatically.
This parameter and
target_server_id
are alternative. Changing this parameter will create a new resource.
- action str
- Specifies the operation after the task is created. The value can be start, stop and restart.
- enterprise_
project_ strid - The enterprise project id of the target server.
- migrate_
speed float - The migration rate, in MB/s.
- migration_
ip str - Specifies the IP address of the target server. Use the EIP of the target server if the migration network type is Internet. Use the private IP address of the target server if the migration network type is Direct Connect or VPN. Changing this parameter will create a new resource.
- os_
type str - Specifies the OS type of the source server. The value can be WINDOWS and LINUX. Changing this parameter will create a new resource.
- project_
id str Specifies the project ID where the target server is located. If omitted, the default project in the region will be used. Changing this parameter will create a new resource.
The
target_server_disks
block supports:- region str
- Specifies the region where the target server is located. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- sms_
task_ strid - The resource ID in UUID format.
- source_
server_ strid - Specifies the ID of the source server. Changing this parameter will create a new resource.
- start_
target_ boolserver - Specifies whether to start the target server after the migration.
The default value is
true
. Changing this parameter will create a new resource. - state str
- The status of the migration task.
- syncing bool
- Specifies whether to perform a continuous synchronization after the first replication.
The default value is
false
. Changing this parameter will create a new resource. - target_
server_ Sequence[Smsdisks Task Target Server Disk Args] - Specifies the disk configurations of the target server. If omitted, it will be obtained from the source server. The object is documented below. Changing this parameter will create a new resource.
- target_
server_ strid - Specifies the existing server ID as the target server.
This parameter and
vm_template_id
are alternative. Changing this parameter will create a new resource. - target_
server_ strname - The name of the target server.
- timeouts
Sms
Task Timeouts Args - type str
- Specifies the type of the migration task. Available values are
MIGRATE_FILE(file-level migration) and MIGRATE_BLOCK(block-level migration).
Changing this parameter will create a new resource.
- For Linux servers, SMS supports block-level and file-level migrations. Block-level migration has high efficiency but poor compatibility while file-level migration has low efficiency but excellent compatibility.
- For Windows servers, SMS only supports highly efficient block-level migration.
- use_
public_ boolip - Specifies whether to use a public IP address for migration.
The default value is
true
. Changing this parameter will create a new resource. - vm_
template_ strid - Specifies the template used to create the target server automatically.
This parameter and
target_server_id
are alternative. Changing this parameter will create a new resource.
- action String
- Specifies the operation after the task is created. The value can be start, stop and restart.
- enterprise
Project StringId - The enterprise project id of the target server.
- migrate
Speed Number - The migration rate, in MB/s.
- migration
Ip String - Specifies the IP address of the target server. Use the EIP of the target server if the migration network type is Internet. Use the private IP address of the target server if the migration network type is Direct Connect or VPN. Changing this parameter will create a new resource.
- os
Type String - Specifies the OS type of the source server. The value can be WINDOWS and LINUX. Changing this parameter will create a new resource.
- project
Id String Specifies the project ID where the target server is located. If omitted, the default project in the region will be used. Changing this parameter will create a new resource.
The
target_server_disks
block supports:- region String
- Specifies the region where the target server is located. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- sms
Task StringId - The resource ID in UUID format.
- source
Server StringId - Specifies the ID of the source server. Changing this parameter will create a new resource.
- start
Target BooleanServer - Specifies whether to start the target server after the migration.
The default value is
true
. Changing this parameter will create a new resource. - state String
- The status of the migration task.
- syncing Boolean
- Specifies whether to perform a continuous synchronization after the first replication.
The default value is
false
. Changing this parameter will create a new resource. - target
Server List<Property Map>Disks - Specifies the disk configurations of the target server. If omitted, it will be obtained from the source server. The object is documented below. Changing this parameter will create a new resource.
- target
Server StringId - Specifies the existing server ID as the target server.
This parameter and
vm_template_id
are alternative. Changing this parameter will create a new resource. - target
Server StringName - The name of the target server.
- timeouts Property Map
- type String
- Specifies the type of the migration task. Available values are
MIGRATE_FILE(file-level migration) and MIGRATE_BLOCK(block-level migration).
Changing this parameter will create a new resource.
- For Linux servers, SMS supports block-level and file-level migrations. Block-level migration has high efficiency but poor compatibility while file-level migration has low efficiency but excellent compatibility.
- For Windows servers, SMS only supports highly efficient block-level migration.
- use
Public BooleanIp - Specifies whether to use a public IP address for migration.
The default value is
true
. Changing this parameter will create a new resource. - vm
Template StringId - Specifies the template used to create the target server automatically.
This parameter and
target_server_id
are alternative. Changing this parameter will create a new resource.
Supporting Types
SmsTaskTargetServerDisk, SmsTaskTargetServerDiskArgs
- Device
Type string - Specifies the partition type. The value can be NORMAL and OS. Changing this parameter will create a new resource.
- Name string
- Specifies the volume name. In Windows, it indicates the drive letter, and in Linux, it indicates the device ID, e.g. "/dev/sda1". Changing this parameter will create a new resource.
- Size double
- Specifies the volume size in MB. Changing this parameter will create a new resource.
- Disk
Id string - Specifies the disk index, e.g. "0". Changing this parameter will create a new resource.
- Physical
Volumes List<SmsTask Target Server Disk Physical Volume> Specifies an array of physical volume informations. The object is documented below. Changing this parameter will create a new resource.
The
physical_volumes
block supports:- Used
Size double - Specifies the used space in MB. Changing this parameter will create a new resource.
- Device
Type string - Specifies the partition type. The value can be NORMAL and OS. Changing this parameter will create a new resource.
- Name string
- Specifies the volume name. In Windows, it indicates the drive letter, and in Linux, it indicates the device ID, e.g. "/dev/sda1". Changing this parameter will create a new resource.
- Size float64
- Specifies the volume size in MB. Changing this parameter will create a new resource.
- Disk
Id string - Specifies the disk index, e.g. "0". Changing this parameter will create a new resource.
- Physical
Volumes []SmsTask Target Server Disk Physical Volume Specifies an array of physical volume informations. The object is documented below. Changing this parameter will create a new resource.
The
physical_volumes
block supports:- Used
Size float64 - Specifies the used space in MB. Changing this parameter will create a new resource.
- device
Type String - Specifies the partition type. The value can be NORMAL and OS. Changing this parameter will create a new resource.
- name String
- Specifies the volume name. In Windows, it indicates the drive letter, and in Linux, it indicates the device ID, e.g. "/dev/sda1". Changing this parameter will create a new resource.
- size Double
- Specifies the volume size in MB. Changing this parameter will create a new resource.
- disk
Id String - Specifies the disk index, e.g. "0". Changing this parameter will create a new resource.
- physical
Volumes List<SmsTask Target Server Disk Physical Volume> Specifies an array of physical volume informations. The object is documented below. Changing this parameter will create a new resource.
The
physical_volumes
block supports:- used
Size Double - Specifies the used space in MB. Changing this parameter will create a new resource.
- device
Type string - Specifies the partition type. The value can be NORMAL and OS. Changing this parameter will create a new resource.
- name string
- Specifies the volume name. In Windows, it indicates the drive letter, and in Linux, it indicates the device ID, e.g. "/dev/sda1". Changing this parameter will create a new resource.
- size number
- Specifies the volume size in MB. Changing this parameter will create a new resource.
- disk
Id string - Specifies the disk index, e.g. "0". Changing this parameter will create a new resource.
- physical
Volumes SmsTask Target Server Disk Physical Volume[] Specifies an array of physical volume informations. The object is documented below. Changing this parameter will create a new resource.
The
physical_volumes
block supports:- used
Size number - Specifies the used space in MB. Changing this parameter will create a new resource.
- device_
type str - Specifies the partition type. The value can be NORMAL and OS. Changing this parameter will create a new resource.
- name str
- Specifies the volume name. In Windows, it indicates the drive letter, and in Linux, it indicates the device ID, e.g. "/dev/sda1". Changing this parameter will create a new resource.
- size float
- Specifies the volume size in MB. Changing this parameter will create a new resource.
- disk_
id str - Specifies the disk index, e.g. "0". Changing this parameter will create a new resource.
- physical_
volumes Sequence[SmsTask Target Server Disk Physical Volume] Specifies an array of physical volume informations. The object is documented below. Changing this parameter will create a new resource.
The
physical_volumes
block supports:- used_
size float - Specifies the used space in MB. Changing this parameter will create a new resource.
- device
Type String - Specifies the partition type. The value can be NORMAL and OS. Changing this parameter will create a new resource.
- name String
- Specifies the volume name. In Windows, it indicates the drive letter, and in Linux, it indicates the device ID, e.g. "/dev/sda1". Changing this parameter will create a new resource.
- size Number
- Specifies the volume size in MB. Changing this parameter will create a new resource.
- disk
Id String - Specifies the disk index, e.g. "0". Changing this parameter will create a new resource.
- physical
Volumes List<Property Map> Specifies an array of physical volume informations. The object is documented below. Changing this parameter will create a new resource.
The
physical_volumes
block supports:- used
Size Number - Specifies the used space in MB. Changing this parameter will create a new resource.
SmsTaskTargetServerDiskPhysicalVolume, SmsTaskTargetServerDiskPhysicalVolumeArgs
- Device
Type string - Specifies the partition type. The value can be NORMAL and OS. Changing this parameter will create a new resource.
- File
System string - Specifies the file system type, e.g. "ext4". Changing this parameter will create a new resource.
- Index double
- Specifies the serial number of the volume. Changing this parameter will create a new resource.
- Mount
Point string - Specifies the mount point, e.g. "/". Changing this parameter will create a new resource.
- Name string
- Specifies the volume name. In Windows, it indicates the drive letter, and in Linux, it indicates the device ID, e.g. "/dev/sda1". Changing this parameter will create a new resource.
- Size double
- Specifies the volume size in MB. Changing this parameter will create a new resource.
- Used
Size double - Specifies the used space in MB. Changing this parameter will create a new resource.
- Uuid string
- Specifies the GUID of the volume. Changing this parameter will create a new resource.
- Device
Type string - Specifies the partition type. The value can be NORMAL and OS. Changing this parameter will create a new resource.
- File
System string - Specifies the file system type, e.g. "ext4". Changing this parameter will create a new resource.
- Index float64
- Specifies the serial number of the volume. Changing this parameter will create a new resource.
- Mount
Point string - Specifies the mount point, e.g. "/". Changing this parameter will create a new resource.
- Name string
- Specifies the volume name. In Windows, it indicates the drive letter, and in Linux, it indicates the device ID, e.g. "/dev/sda1". Changing this parameter will create a new resource.
- Size float64
- Specifies the volume size in MB. Changing this parameter will create a new resource.
- Used
Size float64 - Specifies the used space in MB. Changing this parameter will create a new resource.
- Uuid string
- Specifies the GUID of the volume. Changing this parameter will create a new resource.
- device
Type String - Specifies the partition type. The value can be NORMAL and OS. Changing this parameter will create a new resource.
- file
System String - Specifies the file system type, e.g. "ext4". Changing this parameter will create a new resource.
- index Double
- Specifies the serial number of the volume. Changing this parameter will create a new resource.
- mount
Point String - Specifies the mount point, e.g. "/". Changing this parameter will create a new resource.
- name String
- Specifies the volume name. In Windows, it indicates the drive letter, and in Linux, it indicates the device ID, e.g. "/dev/sda1". Changing this parameter will create a new resource.
- size Double
- Specifies the volume size in MB. Changing this parameter will create a new resource.
- used
Size Double - Specifies the used space in MB. Changing this parameter will create a new resource.
- uuid String
- Specifies the GUID of the volume. Changing this parameter will create a new resource.
- device
Type string - Specifies the partition type. The value can be NORMAL and OS. Changing this parameter will create a new resource.
- file
System string - Specifies the file system type, e.g. "ext4". Changing this parameter will create a new resource.
- index number
- Specifies the serial number of the volume. Changing this parameter will create a new resource.
- mount
Point string - Specifies the mount point, e.g. "/". Changing this parameter will create a new resource.
- name string
- Specifies the volume name. In Windows, it indicates the drive letter, and in Linux, it indicates the device ID, e.g. "/dev/sda1". Changing this parameter will create a new resource.
- size number
- Specifies the volume size in MB. Changing this parameter will create a new resource.
- used
Size number - Specifies the used space in MB. Changing this parameter will create a new resource.
- uuid string
- Specifies the GUID of the volume. Changing this parameter will create a new resource.
- device_
type str - Specifies the partition type. The value can be NORMAL and OS. Changing this parameter will create a new resource.
- file_
system str - Specifies the file system type, e.g. "ext4". Changing this parameter will create a new resource.
- index float
- Specifies the serial number of the volume. Changing this parameter will create a new resource.
- mount_
point str - Specifies the mount point, e.g. "/". Changing this parameter will create a new resource.
- name str
- Specifies the volume name. In Windows, it indicates the drive letter, and in Linux, it indicates the device ID, e.g. "/dev/sda1". Changing this parameter will create a new resource.
- size float
- Specifies the volume size in MB. Changing this parameter will create a new resource.
- used_
size float - Specifies the used space in MB. Changing this parameter will create a new resource.
- uuid str
- Specifies the GUID of the volume. Changing this parameter will create a new resource.
- device
Type String - Specifies the partition type. The value can be NORMAL and OS. Changing this parameter will create a new resource.
- file
System String - Specifies the file system type, e.g. "ext4". Changing this parameter will create a new resource.
- index Number
- Specifies the serial number of the volume. Changing this parameter will create a new resource.
- mount
Point String - Specifies the mount point, e.g. "/". Changing this parameter will create a new resource.
- name String
- Specifies the volume name. In Windows, it indicates the drive letter, and in Linux, it indicates the device ID, e.g. "/dev/sda1". Changing this parameter will create a new resource.
- size Number
- Specifies the volume size in MB. Changing this parameter will create a new resource.
- used
Size Number - Specifies the used space in MB. Changing this parameter will create a new resource.
- uuid String
- Specifies the GUID of the volume. Changing this parameter will create a new resource.
SmsTaskTimeouts, SmsTaskTimeoutsArgs
Import
SMS migration tasks can be imported by id
, e.g.
$ pulumi import flexibleengine:index/smsTask:SmsTask demo 6402c49b-7d9a-413e-8b5f-a7307f7d5679
Note that the imported state may not be identical to your resource definition, due to some attributes missing from the
API response. The missing attributes include: use_public_ip
, syncing
and action
.
It is generally recommended running pulumi preview
after importing a migration task.
You can then decide if changes should be applied to the task, or the resource definition should be
updated to align with the task. Also you can ignore changes as below.
hcl
resource “flexibleengine_sms_task” “demo” {
...
lifecycle {
ignore_changes = [
use_public_ip, syncing, action,
]
}
}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
- License
- Notes
- This Pulumi package is based on the
flexibleengine
Terraform Provider.