tencentcloud.SqlserverFullBackupMigration
Explore with Pulumi AI
Provides a resource to create a sqlserver full_backup_migration
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const zones = tencentcloud.getAvailabilityZonesByProduct({
    product: "sqlserver",
});
const vpc = new tencentcloud.Vpc("vpc", {cidrBlock: "10.0.0.0/16"});
const subnet = new tencentcloud.Subnet("subnet", {
    availabilityZone: zones.then(zones => zones.zones?.[4]?.name),
    vpcId: vpc.vpcId,
    cidrBlock: "10.0.0.0/16",
    isMulticast: false,
});
const securityGroup = new tencentcloud.SecurityGroup("securityGroup", {description: "desc."});
const exampleSqlserverBasicInstance = new tencentcloud.SqlserverBasicInstance("exampleSqlserverBasicInstance", {
    availabilityZone: zones.then(zones => zones.zones?.[4]?.name),
    chargeType: "POSTPAID_BY_HOUR",
    vpcId: vpc.vpcId,
    subnetId: subnet.subnetId,
    projectId: 0,
    memory: 4,
    storage: 100,
    cpu: 2,
    machineType: "CLOUD_PREMIUM",
    maintenanceWeekSets: [
        1,
        2,
        3,
    ],
    maintenanceStartTime: "09:00",
    maintenanceTimeSpan: 3,
    securityGroups: [securityGroup.securityGroupId],
    tags: {
        test: "test",
    },
});
const exampleSqlserverDb = new tencentcloud.SqlserverDb("exampleSqlserverDb", {
    instanceId: exampleSqlserverBasicInstance.sqlserverBasicInstanceId,
    charset: "Chinese_PRC_BIN",
    remark: "test-remark",
});
const exampleSqlserverGeneralBackup = new tencentcloud.SqlserverGeneralBackup("exampleSqlserverGeneralBackup", {
    instanceId: exampleSqlserverDb.instanceId,
    backupName: "tf_example_backup",
    strategy: 0,
});
const exampleSqlserverBackups = tencentcloud.getSqlserverBackupsOutput({
    instanceId: exampleSqlserverDb.instanceId,
    backupName: exampleSqlserverGeneralBackup.backupName,
    startTime: "2023-07-25 00:00:00",
    endTime: "2023-08-04 00:00:00",
});
const exampleSqlserverFullBackupMigration = new tencentcloud.SqlserverFullBackupMigration("exampleSqlserverFullBackupMigration", {
    instanceId: exampleSqlserverGeneralBackup.instanceId,
    recoveryType: "FULL",
    uploadType: "COS_URL",
    migrationName: "migration_test",
    backupFiles: [exampleSqlserverBackups.apply(exampleSqlserverBackups => exampleSqlserverBackups.lists?.[0]?.internetUrl)],
});
import pulumi
import pulumi_tencentcloud as tencentcloud
zones = tencentcloud.get_availability_zones_by_product(product="sqlserver")
vpc = tencentcloud.Vpc("vpc", cidr_block="10.0.0.0/16")
subnet = tencentcloud.Subnet("subnet",
    availability_zone=zones.zones[4].name,
    vpc_id=vpc.vpc_id,
    cidr_block="10.0.0.0/16",
    is_multicast=False)
security_group = tencentcloud.SecurityGroup("securityGroup", description="desc.")
example_sqlserver_basic_instance = tencentcloud.SqlserverBasicInstance("exampleSqlserverBasicInstance",
    availability_zone=zones.zones[4].name,
    charge_type="POSTPAID_BY_HOUR",
    vpc_id=vpc.vpc_id,
    subnet_id=subnet.subnet_id,
    project_id=0,
    memory=4,
    storage=100,
    cpu=2,
    machine_type="CLOUD_PREMIUM",
    maintenance_week_sets=[
        1,
        2,
        3,
    ],
    maintenance_start_time="09:00",
    maintenance_time_span=3,
    security_groups=[security_group.security_group_id],
    tags={
        "test": "test",
    })
example_sqlserver_db = tencentcloud.SqlserverDb("exampleSqlserverDb",
    instance_id=example_sqlserver_basic_instance.sqlserver_basic_instance_id,
    charset="Chinese_PRC_BIN",
    remark="test-remark")
example_sqlserver_general_backup = tencentcloud.SqlserverGeneralBackup("exampleSqlserverGeneralBackup",
    instance_id=example_sqlserver_db.instance_id,
    backup_name="tf_example_backup",
    strategy=0)
example_sqlserver_backups = tencentcloud.get_sqlserver_backups_output(instance_id=example_sqlserver_db.instance_id,
    backup_name=example_sqlserver_general_backup.backup_name,
    start_time="2023-07-25 00:00:00",
    end_time="2023-08-04 00:00:00")
example_sqlserver_full_backup_migration = tencentcloud.SqlserverFullBackupMigration("exampleSqlserverFullBackupMigration",
    instance_id=example_sqlserver_general_backup.instance_id,
    recovery_type="FULL",
    upload_type="COS_URL",
    migration_name="migration_test",
    backup_files=[example_sqlserver_backups.lists[0].internet_url])
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		zones, err := tencentcloud.GetAvailabilityZonesByProduct(ctx, &tencentcloud.GetAvailabilityZonesByProductArgs{
			Product: "sqlserver",
		}, nil)
		if err != nil {
			return err
		}
		vpc, err := tencentcloud.NewVpc(ctx, "vpc", &tencentcloud.VpcArgs{
			CidrBlock: pulumi.String("10.0.0.0/16"),
		})
		if err != nil {
			return err
		}
		subnet, err := tencentcloud.NewSubnet(ctx, "subnet", &tencentcloud.SubnetArgs{
			AvailabilityZone: pulumi.String(zones.Zones[4].Name),
			VpcId:            vpc.VpcId,
			CidrBlock:        pulumi.String("10.0.0.0/16"),
			IsMulticast:      pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		securityGroup, err := tencentcloud.NewSecurityGroup(ctx, "securityGroup", &tencentcloud.SecurityGroupArgs{
			Description: pulumi.String("desc."),
		})
		if err != nil {
			return err
		}
		exampleSqlserverBasicInstance, err := tencentcloud.NewSqlserverBasicInstance(ctx, "exampleSqlserverBasicInstance", &tencentcloud.SqlserverBasicInstanceArgs{
			AvailabilityZone: pulumi.String(zones.Zones[4].Name),
			ChargeType:       pulumi.String("POSTPAID_BY_HOUR"),
			VpcId:            vpc.VpcId,
			SubnetId:         subnet.SubnetId,
			ProjectId:        pulumi.Float64(0),
			Memory:           pulumi.Float64(4),
			Storage:          pulumi.Float64(100),
			Cpu:              pulumi.Float64(2),
			MachineType:      pulumi.String("CLOUD_PREMIUM"),
			MaintenanceWeekSets: pulumi.Float64Array{
				pulumi.Float64(1),
				pulumi.Float64(2),
				pulumi.Float64(3),
			},
			MaintenanceStartTime: pulumi.String("09:00"),
			MaintenanceTimeSpan:  pulumi.Float64(3),
			SecurityGroups: pulumi.StringArray{
				securityGroup.SecurityGroupId,
			},
			Tags: pulumi.StringMap{
				"test": pulumi.String("test"),
			},
		})
		if err != nil {
			return err
		}
		exampleSqlserverDb, err := tencentcloud.NewSqlserverDb(ctx, "exampleSqlserverDb", &tencentcloud.SqlserverDbArgs{
			InstanceId: exampleSqlserverBasicInstance.SqlserverBasicInstanceId,
			Charset:    pulumi.String("Chinese_PRC_BIN"),
			Remark:     pulumi.String("test-remark"),
		})
		if err != nil {
			return err
		}
		exampleSqlserverGeneralBackup, err := tencentcloud.NewSqlserverGeneralBackup(ctx, "exampleSqlserverGeneralBackup", &tencentcloud.SqlserverGeneralBackupArgs{
			InstanceId: exampleSqlserverDb.InstanceId,
			BackupName: pulumi.String("tf_example_backup"),
			Strategy:   pulumi.Float64(0),
		})
		if err != nil {
			return err
		}
		exampleSqlserverBackups := tencentcloud.GetSqlserverBackupsOutput(ctx, tencentcloud.GetSqlserverBackupsOutputArgs{
			InstanceId: exampleSqlserverDb.InstanceId,
			BackupName: exampleSqlserverGeneralBackup.BackupName,
			StartTime:  pulumi.String("2023-07-25 00:00:00"),
			EndTime:    pulumi.String("2023-08-04 00:00:00"),
		}, nil)
		_, err = tencentcloud.NewSqlserverFullBackupMigration(ctx, "exampleSqlserverFullBackupMigration", &tencentcloud.SqlserverFullBackupMigrationArgs{
			InstanceId:    exampleSqlserverGeneralBackup.InstanceId,
			RecoveryType:  pulumi.String("FULL"),
			UploadType:    pulumi.String("COS_URL"),
			MigrationName: pulumi.String("migration_test"),
			BackupFiles: pulumi.StringArray{
				pulumi.String(exampleSqlserverBackups.ApplyT(func(exampleSqlserverBackups tencentcloud.GetSqlserverBackupsResult) (*string, error) {
					return &exampleSqlserverBackups.Lists[0].InternetUrl, nil
				}).(pulumi.StringPtrOutput)),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() => 
{
    var zones = Tencentcloud.GetAvailabilityZonesByProduct.Invoke(new()
    {
        Product = "sqlserver",
    });
    var vpc = new Tencentcloud.Vpc("vpc", new()
    {
        CidrBlock = "10.0.0.0/16",
    });
    var subnet = new Tencentcloud.Subnet("subnet", new()
    {
        AvailabilityZone = zones.Apply(getAvailabilityZonesByProductResult => getAvailabilityZonesByProductResult.Zones[4]?.Name),
        VpcId = vpc.VpcId,
        CidrBlock = "10.0.0.0/16",
        IsMulticast = false,
    });
    var securityGroup = new Tencentcloud.SecurityGroup("securityGroup", new()
    {
        Description = "desc.",
    });
    var exampleSqlserverBasicInstance = new Tencentcloud.SqlserverBasicInstance("exampleSqlserverBasicInstance", new()
    {
        AvailabilityZone = zones.Apply(getAvailabilityZonesByProductResult => getAvailabilityZonesByProductResult.Zones[4]?.Name),
        ChargeType = "POSTPAID_BY_HOUR",
        VpcId = vpc.VpcId,
        SubnetId = subnet.SubnetId,
        ProjectId = 0,
        Memory = 4,
        Storage = 100,
        Cpu = 2,
        MachineType = "CLOUD_PREMIUM",
        MaintenanceWeekSets = new[]
        {
            1,
            2,
            3,
        },
        MaintenanceStartTime = "09:00",
        MaintenanceTimeSpan = 3,
        SecurityGroups = new[]
        {
            securityGroup.SecurityGroupId,
        },
        Tags = 
        {
            { "test", "test" },
        },
    });
    var exampleSqlserverDb = new Tencentcloud.SqlserverDb("exampleSqlserverDb", new()
    {
        InstanceId = exampleSqlserverBasicInstance.SqlserverBasicInstanceId,
        Charset = "Chinese_PRC_BIN",
        Remark = "test-remark",
    });
    var exampleSqlserverGeneralBackup = new Tencentcloud.SqlserverGeneralBackup("exampleSqlserverGeneralBackup", new()
    {
        InstanceId = exampleSqlserverDb.InstanceId,
        BackupName = "tf_example_backup",
        Strategy = 0,
    });
    var exampleSqlserverBackups = Tencentcloud.GetSqlserverBackups.Invoke(new()
    {
        InstanceId = exampleSqlserverDb.InstanceId,
        BackupName = exampleSqlserverGeneralBackup.BackupName,
        StartTime = "2023-07-25 00:00:00",
        EndTime = "2023-08-04 00:00:00",
    });
    var exampleSqlserverFullBackupMigration = new Tencentcloud.SqlserverFullBackupMigration("exampleSqlserverFullBackupMigration", new()
    {
        InstanceId = exampleSqlserverGeneralBackup.InstanceId,
        RecoveryType = "FULL",
        UploadType = "COS_URL",
        MigrationName = "migration_test",
        BackupFiles = new[]
        {
            exampleSqlserverBackups.Apply(getSqlserverBackupsResult => getSqlserverBackupsResult.Lists[0]?.InternetUrl),
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetAvailabilityZonesByProductArgs;
import com.pulumi.tencentcloud.Vpc;
import com.pulumi.tencentcloud.VpcArgs;
import com.pulumi.tencentcloud.Subnet;
import com.pulumi.tencentcloud.SubnetArgs;
import com.pulumi.tencentcloud.SecurityGroup;
import com.pulumi.tencentcloud.SecurityGroupArgs;
import com.pulumi.tencentcloud.SqlserverBasicInstance;
import com.pulumi.tencentcloud.SqlserverBasicInstanceArgs;
import com.pulumi.tencentcloud.SqlserverDb;
import com.pulumi.tencentcloud.SqlserverDbArgs;
import com.pulumi.tencentcloud.SqlserverGeneralBackup;
import com.pulumi.tencentcloud.SqlserverGeneralBackupArgs;
import com.pulumi.tencentcloud.inputs.GetSqlserverBackupsArgs;
import com.pulumi.tencentcloud.SqlserverFullBackupMigration;
import com.pulumi.tencentcloud.SqlserverFullBackupMigrationArgs;
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 zones = TencentcloudFunctions.getAvailabilityZonesByProduct(GetAvailabilityZonesByProductArgs.builder()
            .product("sqlserver")
            .build());
        var vpc = new Vpc("vpc", VpcArgs.builder()
            .cidrBlock("10.0.0.0/16")
            .build());
        var subnet = new Subnet("subnet", SubnetArgs.builder()
            .availabilityZone(zones.applyValue(getAvailabilityZonesByProductResult -> getAvailabilityZonesByProductResult.zones()[4].name()))
            .vpcId(vpc.vpcId())
            .cidrBlock("10.0.0.0/16")
            .isMulticast(false)
            .build());
        var securityGroup = new SecurityGroup("securityGroup", SecurityGroupArgs.builder()
            .description("desc.")
            .build());
        var exampleSqlserverBasicInstance = new SqlserverBasicInstance("exampleSqlserverBasicInstance", SqlserverBasicInstanceArgs.builder()
            .availabilityZone(zones.applyValue(getAvailabilityZonesByProductResult -> getAvailabilityZonesByProductResult.zones()[4].name()))
            .chargeType("POSTPAID_BY_HOUR")
            .vpcId(vpc.vpcId())
            .subnetId(subnet.subnetId())
            .projectId(0)
            .memory(4)
            .storage(100)
            .cpu(2)
            .machineType("CLOUD_PREMIUM")
            .maintenanceWeekSets(            
                1,
                2,
                3)
            .maintenanceStartTime("09:00")
            .maintenanceTimeSpan(3)
            .securityGroups(securityGroup.securityGroupId())
            .tags(Map.of("test", "test"))
            .build());
        var exampleSqlserverDb = new SqlserverDb("exampleSqlserverDb", SqlserverDbArgs.builder()
            .instanceId(exampleSqlserverBasicInstance.sqlserverBasicInstanceId())
            .charset("Chinese_PRC_BIN")
            .remark("test-remark")
            .build());
        var exampleSqlserverGeneralBackup = new SqlserverGeneralBackup("exampleSqlserverGeneralBackup", SqlserverGeneralBackupArgs.builder()
            .instanceId(exampleSqlserverDb.instanceId())
            .backupName("tf_example_backup")
            .strategy(0)
            .build());
        final var exampleSqlserverBackups = TencentcloudFunctions.getSqlserverBackups(GetSqlserverBackupsArgs.builder()
            .instanceId(exampleSqlserverDb.instanceId())
            .backupName(exampleSqlserverGeneralBackup.backupName())
            .startTime("2023-07-25 00:00:00")
            .endTime("2023-08-04 00:00:00")
            .build());
        var exampleSqlserverFullBackupMigration = new SqlserverFullBackupMigration("exampleSqlserverFullBackupMigration", SqlserverFullBackupMigrationArgs.builder()
            .instanceId(exampleSqlserverGeneralBackup.instanceId())
            .recoveryType("FULL")
            .uploadType("COS_URL")
            .migrationName("migration_test")
            .backupFiles(exampleSqlserverBackups.applyValue(getSqlserverBackupsResult -> getSqlserverBackupsResult).applyValue(exampleSqlserverBackups -> exampleSqlserverBackups.applyValue(getSqlserverBackupsResult -> getSqlserverBackupsResult.lists()[0].internetUrl())))
            .build());
    }
}
resources:
  vpc:
    type: tencentcloud:Vpc
    properties:
      cidrBlock: 10.0.0.0/16
  subnet:
    type: tencentcloud:Subnet
    properties:
      availabilityZone: ${zones.zones[4].name}
      vpcId: ${vpc.vpcId}
      cidrBlock: 10.0.0.0/16
      isMulticast: false
  securityGroup:
    type: tencentcloud:SecurityGroup
    properties:
      description: desc.
  exampleSqlserverBasicInstance:
    type: tencentcloud:SqlserverBasicInstance
    properties:
      availabilityZone: ${zones.zones[4].name}
      chargeType: POSTPAID_BY_HOUR
      vpcId: ${vpc.vpcId}
      subnetId: ${subnet.subnetId}
      projectId: 0
      memory: 4
      storage: 100
      cpu: 2
      machineType: CLOUD_PREMIUM
      maintenanceWeekSets:
        - 1
        - 2
        - 3
      maintenanceStartTime: 09:00
      maintenanceTimeSpan: 3
      securityGroups:
        - ${securityGroup.securityGroupId}
      tags:
        test: test
  exampleSqlserverDb:
    type: tencentcloud:SqlserverDb
    properties:
      instanceId: ${exampleSqlserverBasicInstance.sqlserverBasicInstanceId}
      charset: Chinese_PRC_BIN
      remark: test-remark
  exampleSqlserverGeneralBackup:
    type: tencentcloud:SqlserverGeneralBackup
    properties:
      instanceId: ${exampleSqlserverDb.instanceId}
      backupName: tf_example_backup
      strategy: 0
  exampleSqlserverFullBackupMigration:
    type: tencentcloud:SqlserverFullBackupMigration
    properties:
      instanceId: ${exampleSqlserverGeneralBackup.instanceId}
      recoveryType: FULL
      uploadType: COS_URL
      migrationName: migration_test
      backupFiles:
        - ${exampleSqlserverBackups.lists[0].internetUrl}
variables:
  zones:
    fn::invoke:
      function: tencentcloud:getAvailabilityZonesByProduct
      arguments:
        product: sqlserver
  exampleSqlserverBackups:
    fn::invoke:
      function: tencentcloud:getSqlserverBackups
      arguments:
        instanceId: ${exampleSqlserverDb.instanceId}
        backupName: ${exampleSqlserverGeneralBackup.backupName}
        startTime: 2023-07-25 00:00:00
        endTime: 2023-08-04 00:00:00
Create SqlserverFullBackupMigration Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SqlserverFullBackupMigration(name: string, args: SqlserverFullBackupMigrationArgs, opts?: CustomResourceOptions);@overload
def SqlserverFullBackupMigration(resource_name: str,
                                 args: SqlserverFullBackupMigrationArgs,
                                 opts: Optional[ResourceOptions] = None)
@overload
def SqlserverFullBackupMigration(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 instance_id: Optional[str] = None,
                                 migration_name: Optional[str] = None,
                                 recovery_type: Optional[str] = None,
                                 upload_type: Optional[str] = None,
                                 backup_files: Optional[Sequence[str]] = None,
                                 sqlserver_full_backup_migration_id: Optional[str] = None)func NewSqlserverFullBackupMigration(ctx *Context, name string, args SqlserverFullBackupMigrationArgs, opts ...ResourceOption) (*SqlserverFullBackupMigration, error)public SqlserverFullBackupMigration(string name, SqlserverFullBackupMigrationArgs args, CustomResourceOptions? opts = null)
public SqlserverFullBackupMigration(String name, SqlserverFullBackupMigrationArgs args)
public SqlserverFullBackupMigration(String name, SqlserverFullBackupMigrationArgs args, CustomResourceOptions options)
type: tencentcloud:SqlserverFullBackupMigration
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 SqlserverFullBackupMigrationArgs
- 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 SqlserverFullBackupMigrationArgs
- 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 SqlserverFullBackupMigrationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SqlserverFullBackupMigrationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SqlserverFullBackupMigrationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
SqlserverFullBackupMigration 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 SqlserverFullBackupMigration resource accepts the following input properties:
- InstanceId string
- ID of imported target instance.
- MigrationName string
- Task name.
- RecoveryType string
- Migration task restoration type. FULL: full backup restoration, FULL_LOG: full backup and transaction log restoration, FULL_DIFF: full backup and differential backup restoration.
- UploadType string
- Backup upload type. COS_URL: the backup is stored in users Cloud Object Storage, with URL provided. COS_UPLOAD: the backup is stored in the applications Cloud Object Storage and needs to be uploaded by the user.
- BackupFiles List<string>
- If the UploadType is COS_URL, fill in the URL here. If the UploadType is COS_UPLOAD, fill in the name of the backup file here. Only 1 backup file is supported, but a backup file can involve multiple databases.
- SqlserverFull stringBackup Migration Id 
- ID of the resource.
- InstanceId string
- ID of imported target instance.
- MigrationName string
- Task name.
- RecoveryType string
- Migration task restoration type. FULL: full backup restoration, FULL_LOG: full backup and transaction log restoration, FULL_DIFF: full backup and differential backup restoration.
- UploadType string
- Backup upload type. COS_URL: the backup is stored in users Cloud Object Storage, with URL provided. COS_UPLOAD: the backup is stored in the applications Cloud Object Storage and needs to be uploaded by the user.
- BackupFiles []string
- If the UploadType is COS_URL, fill in the URL here. If the UploadType is COS_UPLOAD, fill in the name of the backup file here. Only 1 backup file is supported, but a backup file can involve multiple databases.
- SqlserverFull stringBackup Migration Id 
- ID of the resource.
- instanceId String
- ID of imported target instance.
- migrationName String
- Task name.
- recoveryType String
- Migration task restoration type. FULL: full backup restoration, FULL_LOG: full backup and transaction log restoration, FULL_DIFF: full backup and differential backup restoration.
- uploadType String
- Backup upload type. COS_URL: the backup is stored in users Cloud Object Storage, with URL provided. COS_UPLOAD: the backup is stored in the applications Cloud Object Storage and needs to be uploaded by the user.
- backupFiles List<String>
- If the UploadType is COS_URL, fill in the URL here. If the UploadType is COS_UPLOAD, fill in the name of the backup file here. Only 1 backup file is supported, but a backup file can involve multiple databases.
- sqlserverFull StringBackup Migration Id 
- ID of the resource.
- instanceId string
- ID of imported target instance.
- migrationName string
- Task name.
- recoveryType string
- Migration task restoration type. FULL: full backup restoration, FULL_LOG: full backup and transaction log restoration, FULL_DIFF: full backup and differential backup restoration.
- uploadType string
- Backup upload type. COS_URL: the backup is stored in users Cloud Object Storage, with URL provided. COS_UPLOAD: the backup is stored in the applications Cloud Object Storage and needs to be uploaded by the user.
- backupFiles string[]
- If the UploadType is COS_URL, fill in the URL here. If the UploadType is COS_UPLOAD, fill in the name of the backup file here. Only 1 backup file is supported, but a backup file can involve multiple databases.
- sqlserverFull stringBackup Migration Id 
- ID of the resource.
- instance_id str
- ID of imported target instance.
- migration_name str
- Task name.
- recovery_type str
- Migration task restoration type. FULL: full backup restoration, FULL_LOG: full backup and transaction log restoration, FULL_DIFF: full backup and differential backup restoration.
- upload_type str
- Backup upload type. COS_URL: the backup is stored in users Cloud Object Storage, with URL provided. COS_UPLOAD: the backup is stored in the applications Cloud Object Storage and needs to be uploaded by the user.
- backup_files Sequence[str]
- If the UploadType is COS_URL, fill in the URL here. If the UploadType is COS_UPLOAD, fill in the name of the backup file here. Only 1 backup file is supported, but a backup file can involve multiple databases.
- sqlserver_full_ strbackup_ migration_ id 
- ID of the resource.
- instanceId String
- ID of imported target instance.
- migrationName String
- Task name.
- recoveryType String
- Migration task restoration type. FULL: full backup restoration, FULL_LOG: full backup and transaction log restoration, FULL_DIFF: full backup and differential backup restoration.
- uploadType String
- Backup upload type. COS_URL: the backup is stored in users Cloud Object Storage, with URL provided. COS_UPLOAD: the backup is stored in the applications Cloud Object Storage and needs to be uploaded by the user.
- backupFiles List<String>
- If the UploadType is COS_URL, fill in the URL here. If the UploadType is COS_UPLOAD, fill in the name of the backup file here. Only 1 backup file is supported, but a backup file can involve multiple databases.
- sqlserverFull StringBackup Migration Id 
- ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the SqlserverFullBackupMigration resource produces the following output properties:
- BackupMigration stringId 
- Backup import task ID.
- Id string
- The provider-assigned unique ID for this managed resource.
- BackupMigration stringId 
- Backup import task ID.
- Id string
- The provider-assigned unique ID for this managed resource.
- backupMigration StringId 
- Backup import task ID.
- id String
- The provider-assigned unique ID for this managed resource.
- backupMigration stringId 
- Backup import task ID.
- id string
- The provider-assigned unique ID for this managed resource.
- backup_migration_ strid 
- Backup import task ID.
- id str
- The provider-assigned unique ID for this managed resource.
- backupMigration StringId 
- Backup import task ID.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing SqlserverFullBackupMigration Resource
Get an existing SqlserverFullBackupMigration 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?: SqlserverFullBackupMigrationState, opts?: CustomResourceOptions): SqlserverFullBackupMigration@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        backup_files: Optional[Sequence[str]] = None,
        backup_migration_id: Optional[str] = None,
        instance_id: Optional[str] = None,
        migration_name: Optional[str] = None,
        recovery_type: Optional[str] = None,
        sqlserver_full_backup_migration_id: Optional[str] = None,
        upload_type: Optional[str] = None) -> SqlserverFullBackupMigrationfunc GetSqlserverFullBackupMigration(ctx *Context, name string, id IDInput, state *SqlserverFullBackupMigrationState, opts ...ResourceOption) (*SqlserverFullBackupMigration, error)public static SqlserverFullBackupMigration Get(string name, Input<string> id, SqlserverFullBackupMigrationState? state, CustomResourceOptions? opts = null)public static SqlserverFullBackupMigration get(String name, Output<String> id, SqlserverFullBackupMigrationState state, CustomResourceOptions options)resources:  _:    type: tencentcloud:SqlserverFullBackupMigration    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.
- BackupFiles List<string>
- If the UploadType is COS_URL, fill in the URL here. If the UploadType is COS_UPLOAD, fill in the name of the backup file here. Only 1 backup file is supported, but a backup file can involve multiple databases.
- BackupMigration stringId 
- Backup import task ID.
- InstanceId string
- ID of imported target instance.
- MigrationName string
- Task name.
- RecoveryType string
- Migration task restoration type. FULL: full backup restoration, FULL_LOG: full backup and transaction log restoration, FULL_DIFF: full backup and differential backup restoration.
- SqlserverFull stringBackup Migration Id 
- ID of the resource.
- UploadType string
- Backup upload type. COS_URL: the backup is stored in users Cloud Object Storage, with URL provided. COS_UPLOAD: the backup is stored in the applications Cloud Object Storage and needs to be uploaded by the user.
- BackupFiles []string
- If the UploadType is COS_URL, fill in the URL here. If the UploadType is COS_UPLOAD, fill in the name of the backup file here. Only 1 backup file is supported, but a backup file can involve multiple databases.
- BackupMigration stringId 
- Backup import task ID.
- InstanceId string
- ID of imported target instance.
- MigrationName string
- Task name.
- RecoveryType string
- Migration task restoration type. FULL: full backup restoration, FULL_LOG: full backup and transaction log restoration, FULL_DIFF: full backup and differential backup restoration.
- SqlserverFull stringBackup Migration Id 
- ID of the resource.
- UploadType string
- Backup upload type. COS_URL: the backup is stored in users Cloud Object Storage, with URL provided. COS_UPLOAD: the backup is stored in the applications Cloud Object Storage and needs to be uploaded by the user.
- backupFiles List<String>
- If the UploadType is COS_URL, fill in the URL here. If the UploadType is COS_UPLOAD, fill in the name of the backup file here. Only 1 backup file is supported, but a backup file can involve multiple databases.
- backupMigration StringId 
- Backup import task ID.
- instanceId String
- ID of imported target instance.
- migrationName String
- Task name.
- recoveryType String
- Migration task restoration type. FULL: full backup restoration, FULL_LOG: full backup and transaction log restoration, FULL_DIFF: full backup and differential backup restoration.
- sqlserverFull StringBackup Migration Id 
- ID of the resource.
- uploadType String
- Backup upload type. COS_URL: the backup is stored in users Cloud Object Storage, with URL provided. COS_UPLOAD: the backup is stored in the applications Cloud Object Storage and needs to be uploaded by the user.
- backupFiles string[]
- If the UploadType is COS_URL, fill in the URL here. If the UploadType is COS_UPLOAD, fill in the name of the backup file here. Only 1 backup file is supported, but a backup file can involve multiple databases.
- backupMigration stringId 
- Backup import task ID.
- instanceId string
- ID of imported target instance.
- migrationName string
- Task name.
- recoveryType string
- Migration task restoration type. FULL: full backup restoration, FULL_LOG: full backup and transaction log restoration, FULL_DIFF: full backup and differential backup restoration.
- sqlserverFull stringBackup Migration Id 
- ID of the resource.
- uploadType string
- Backup upload type. COS_URL: the backup is stored in users Cloud Object Storage, with URL provided. COS_UPLOAD: the backup is stored in the applications Cloud Object Storage and needs to be uploaded by the user.
- backup_files Sequence[str]
- If the UploadType is COS_URL, fill in the URL here. If the UploadType is COS_UPLOAD, fill in the name of the backup file here. Only 1 backup file is supported, but a backup file can involve multiple databases.
- backup_migration_ strid 
- Backup import task ID.
- instance_id str
- ID of imported target instance.
- migration_name str
- Task name.
- recovery_type str
- Migration task restoration type. FULL: full backup restoration, FULL_LOG: full backup and transaction log restoration, FULL_DIFF: full backup and differential backup restoration.
- sqlserver_full_ strbackup_ migration_ id 
- ID of the resource.
- upload_type str
- Backup upload type. COS_URL: the backup is stored in users Cloud Object Storage, with URL provided. COS_UPLOAD: the backup is stored in the applications Cloud Object Storage and needs to be uploaded by the user.
- backupFiles List<String>
- If the UploadType is COS_URL, fill in the URL here. If the UploadType is COS_UPLOAD, fill in the name of the backup file here. Only 1 backup file is supported, but a backup file can involve multiple databases.
- backupMigration StringId 
- Backup import task ID.
- instanceId String
- ID of imported target instance.
- migrationName String
- Task name.
- recoveryType String
- Migration task restoration type. FULL: full backup restoration, FULL_LOG: full backup and transaction log restoration, FULL_DIFF: full backup and differential backup restoration.
- sqlserverFull StringBackup Migration Id 
- ID of the resource.
- uploadType String
- Backup upload type. COS_URL: the backup is stored in users Cloud Object Storage, with URL provided. COS_UPLOAD: the backup is stored in the applications Cloud Object Storage and needs to be uploaded by the user.
Import
sqlserver full_backup_migration can be imported using the id, e.g.
$ pulumi import tencentcloud:index/sqlserverFullBackupMigration:SqlserverFullBackupMigration example mssql-si2823jyl#mssql-backup-migration-cg0ffgqt
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the tencentcloudTerraform Provider.