1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. SmsTask
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.SmsTask

Explore with Pulumi AI

flexibleengine logo
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

    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:

    OsType string
    Specifies the OS type of the source server. The value can be WINDOWS and LINUX. Changing this parameter will create a new resource.
    SourceServerId string
    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.
    MigrationIp 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.
    ProjectId 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.
    SmsTaskId string
    The resource ID in UUID format.
    StartTargetServer bool
    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.
    TargetServerDisks List<SmsTaskTargetServerDisk>
    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.
    TargetServerId string
    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 SmsTaskTimeouts
    UsePublicIp bool
    Specifies whether to use a public IP address for migration. The default value is true. Changing this parameter will create a new resource.
    VmTemplateId string
    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.
    OsType string
    Specifies the OS type of the source server. The value can be WINDOWS and LINUX. Changing this parameter will create a new resource.
    SourceServerId string
    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.
    MigrationIp 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.
    ProjectId 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.
    SmsTaskId string
    The resource ID in UUID format.
    StartTargetServer bool
    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.
    TargetServerDisks []SmsTaskTargetServerDiskArgs
    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.
    TargetServerId string
    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 SmsTaskTimeoutsArgs
    UsePublicIp bool
    Specifies whether to use a public IP address for migration. The default value is true. Changing this parameter will create a new resource.
    VmTemplateId string
    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.
    osType String
    Specifies the OS type of the source server. The value can be WINDOWS and LINUX. Changing this parameter will create a new resource.
    sourceServerId String
    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.
    migrationIp 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.
    projectId 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.
    smsTaskId String
    The resource ID in UUID format.
    startTargetServer Boolean
    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.
    targetServerDisks List<SmsTaskTargetServerDisk>
    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.
    targetServerId String
    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 SmsTaskTimeouts
    usePublicIp Boolean
    Specifies whether to use a public IP address for migration. The default value is true. Changing this parameter will create a new resource.
    vmTemplateId String
    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.
    osType string
    Specifies the OS type of the source server. The value can be WINDOWS and LINUX. Changing this parameter will create a new resource.
    sourceServerId string
    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.
    migrationIp 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.
    projectId 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.
    smsTaskId string
    The resource ID in UUID format.
    startTargetServer boolean
    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.
    targetServerDisks SmsTaskTargetServerDisk[]
    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.
    targetServerId string
    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 SmsTaskTimeouts
    usePublicIp boolean
    Specifies whether to use a public IP address for migration. The default value is true. Changing this parameter will create a new resource.
    vmTemplateId string
    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_id str
    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_id str
    The resource ID in UUID format.
    start_target_server bool
    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_disks Sequence[SmsTaskTargetServerDiskArgs]
    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_id str
    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 SmsTaskTimeoutsArgs
    use_public_ip bool
    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_id str
    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.
    osType String
    Specifies the OS type of the source server. The value can be WINDOWS and LINUX. Changing this parameter will create a new resource.
    sourceServerId String
    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.
    migrationIp 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.
    projectId 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.
    smsTaskId String
    The resource ID in UUID format.
    startTargetServer Boolean
    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.
    targetServerDisks List<Property Map>
    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.
    targetServerId String
    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
    usePublicIp Boolean
    Specifies whether to use a public IP address for migration. The default value is true. Changing this parameter will create a new resource.
    vmTemplateId String
    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:

    EnterpriseProjectId string
    The enterprise project id of the target server.
    Id string
    The provider-assigned unique ID for this managed resource.
    MigrateSpeed double
    The migration rate, in MB/s.
    State string
    The status of the migration task.
    TargetServerName string
    The name of the target server.
    EnterpriseProjectId string
    The enterprise project id of the target server.
    Id string
    The provider-assigned unique ID for this managed resource.
    MigrateSpeed float64
    The migration rate, in MB/s.
    State string
    The status of the migration task.
    TargetServerName string
    The name of the target server.
    enterpriseProjectId String
    The enterprise project id of the target server.
    id String
    The provider-assigned unique ID for this managed resource.
    migrateSpeed Double
    The migration rate, in MB/s.
    state String
    The status of the migration task.
    targetServerName String
    The name of the target server.
    enterpriseProjectId string
    The enterprise project id of the target server.
    id string
    The provider-assigned unique ID for this managed resource.
    migrateSpeed number
    The migration rate, in MB/s.
    state string
    The status of the migration task.
    targetServerName string
    The name of the target server.
    enterprise_project_id str
    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_name str
    The name of the target server.
    enterpriseProjectId String
    The enterprise project id of the target server.
    id String
    The provider-assigned unique ID for this managed resource.
    migrateSpeed Number
    The migration rate, in MB/s.
    state String
    The status of the migration task.
    targetServerName String
    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.
    The following state arguments are supported:
    Action string
    Specifies the operation after the task is created. The value can be start, stop and restart.
    EnterpriseProjectId string
    The enterprise project id of the target server.
    MigrateSpeed double
    The migration rate, in MB/s.
    MigrationIp 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.
    OsType string
    Specifies the OS type of the source server. The value can be WINDOWS and LINUX. Changing this parameter will create a new resource.
    ProjectId 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.
    SmsTaskId string
    The resource ID in UUID format.
    SourceServerId string
    Specifies the ID of the source server. Changing this parameter will create a new resource.
    StartTargetServer bool
    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.
    TargetServerDisks List<SmsTaskTargetServerDisk>
    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.
    TargetServerId string
    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.
    TargetServerName string
    The name of the target server.
    Timeouts SmsTaskTimeouts
    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.
    UsePublicIp bool
    Specifies whether to use a public IP address for migration. The default value is true. Changing this parameter will create a new resource.
    VmTemplateId string
    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.
    EnterpriseProjectId string
    The enterprise project id of the target server.
    MigrateSpeed float64
    The migration rate, in MB/s.
    MigrationIp 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.
    OsType string
    Specifies the OS type of the source server. The value can be WINDOWS and LINUX. Changing this parameter will create a new resource.
    ProjectId 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.
    SmsTaskId string
    The resource ID in UUID format.
    SourceServerId string
    Specifies the ID of the source server. Changing this parameter will create a new resource.
    StartTargetServer bool
    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.
    TargetServerDisks []SmsTaskTargetServerDiskArgs
    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.
    TargetServerId string
    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.
    TargetServerName string
    The name of the target server.
    Timeouts SmsTaskTimeoutsArgs
    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.
    UsePublicIp bool
    Specifies whether to use a public IP address for migration. The default value is true. Changing this parameter will create a new resource.
    VmTemplateId string
    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.
    enterpriseProjectId String
    The enterprise project id of the target server.
    migrateSpeed Double
    The migration rate, in MB/s.
    migrationIp 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.
    osType String
    Specifies the OS type of the source server. The value can be WINDOWS and LINUX. Changing this parameter will create a new resource.
    projectId 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.
    smsTaskId String
    The resource ID in UUID format.
    sourceServerId String
    Specifies the ID of the source server. Changing this parameter will create a new resource.
    startTargetServer Boolean
    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.
    targetServerDisks List<SmsTaskTargetServerDisk>
    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.
    targetServerId String
    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.
    targetServerName String
    The name of the target server.
    timeouts SmsTaskTimeouts
    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.
    usePublicIp Boolean
    Specifies whether to use a public IP address for migration. The default value is true. Changing this parameter will create a new resource.
    vmTemplateId String
    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.
    enterpriseProjectId string
    The enterprise project id of the target server.
    migrateSpeed number
    The migration rate, in MB/s.
    migrationIp 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.
    osType string
    Specifies the OS type of the source server. The value can be WINDOWS and LINUX. Changing this parameter will create a new resource.
    projectId 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.
    smsTaskId string
    The resource ID in UUID format.
    sourceServerId string
    Specifies the ID of the source server. Changing this parameter will create a new resource.
    startTargetServer boolean
    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.
    targetServerDisks SmsTaskTargetServerDisk[]
    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.
    targetServerId string
    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.
    targetServerName string
    The name of the target server.
    timeouts SmsTaskTimeouts
    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.
    usePublicIp boolean
    Specifies whether to use a public IP address for migration. The default value is true. Changing this parameter will create a new resource.
    vmTemplateId string
    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_id str
    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_id str
    The resource ID in UUID format.
    source_server_id str
    Specifies the ID of the source server. Changing this parameter will create a new resource.
    start_target_server bool
    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_disks Sequence[SmsTaskTargetServerDiskArgs]
    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_id str
    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_name str
    The name of the target server.
    timeouts SmsTaskTimeoutsArgs
    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_ip bool
    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_id str
    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.
    enterpriseProjectId String
    The enterprise project id of the target server.
    migrateSpeed Number
    The migration rate, in MB/s.
    migrationIp 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.
    osType String
    Specifies the OS type of the source server. The value can be WINDOWS and LINUX. Changing this parameter will create a new resource.
    projectId 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.
    smsTaskId String
    The resource ID in UUID format.
    sourceServerId String
    Specifies the ID of the source server. Changing this parameter will create a new resource.
    startTargetServer Boolean
    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.
    targetServerDisks List<Property Map>
    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.
    targetServerId String
    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.
    targetServerName String
    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.
    usePublicIp Boolean
    Specifies whether to use a public IP address for migration. The default value is true. Changing this parameter will create a new resource.
    vmTemplateId String
    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

    DeviceType 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.
    DiskId string
    Specifies the disk index, e.g. "0". Changing this parameter will create a new resource.
    PhysicalVolumes List<SmsTaskTargetServerDiskPhysicalVolume>

    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:

    UsedSize double
    Specifies the used space in MB. Changing this parameter will create a new resource.
    DeviceType 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.
    DiskId string
    Specifies the disk index, e.g. "0". Changing this parameter will create a new resource.
    PhysicalVolumes []SmsTaskTargetServerDiskPhysicalVolume

    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:

    UsedSize float64
    Specifies the used space in MB. Changing this parameter will create a new resource.
    deviceType 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.
    diskId String
    Specifies the disk index, e.g. "0". Changing this parameter will create a new resource.
    physicalVolumes List<SmsTaskTargetServerDiskPhysicalVolume>

    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:

    usedSize Double
    Specifies the used space in MB. Changing this parameter will create a new resource.
    deviceType 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.
    diskId string
    Specifies the disk index, e.g. "0". Changing this parameter will create a new resource.
    physicalVolumes SmsTaskTargetServerDiskPhysicalVolume[]

    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:

    usedSize 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[SmsTaskTargetServerDiskPhysicalVolume]

    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.
    deviceType 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.
    diskId String
    Specifies the disk index, e.g. "0". Changing this parameter will create a new resource.
    physicalVolumes 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:

    usedSize Number
    Specifies the used space in MB. Changing this parameter will create a new resource.

    SmsTaskTargetServerDiskPhysicalVolume, SmsTaskTargetServerDiskPhysicalVolumeArgs

    DeviceType string
    Specifies the partition type. The value can be NORMAL and OS. Changing this parameter will create a new resource.
    FileSystem 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.
    MountPoint 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.
    UsedSize 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.
    DeviceType string
    Specifies the partition type. The value can be NORMAL and OS. Changing this parameter will create a new resource.
    FileSystem 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.
    MountPoint 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.
    UsedSize 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.
    deviceType String
    Specifies the partition type. The value can be NORMAL and OS. Changing this parameter will create a new resource.
    fileSystem 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.
    mountPoint 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.
    usedSize 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.
    deviceType string
    Specifies the partition type. The value can be NORMAL and OS. Changing this parameter will create a new resource.
    fileSystem 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.
    mountPoint 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.
    usedSize 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.
    deviceType String
    Specifies the partition type. The value can be NORMAL and OS. Changing this parameter will create a new resource.
    fileSystem 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.
    mountPoint 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.
    usedSize 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

    Create string
    Delete string
    Update string
    Create string
    Delete string
    Update string
    create String
    delete String
    update String
    create string
    delete string
    update string
    create str
    delete str
    update str
    create String
    delete String
    update String

    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.
    flexibleengine logo
    flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud