1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. SqlserverIncreBackupMigration
tencentcloud 1.81.187 published on Monday, Apr 28, 2025 by tencentcloudstack

tencentcloud.SqlserverIncreBackupMigration

Explore with Pulumi AI

Provides a resource to create a sqlserver incre_backup_migration

Example Usage

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

const example = new tencentcloud.SqlserverIncreBackupMigration("example", {
    backupFiles: [],
    backupMigrationId: "mssql-backup-migration-9tj0sxnz",
    instanceId: "mssql-4gmc5805",
    isRecovery: "YES",
});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

example = tencentcloud.SqlserverIncreBackupMigration("example",
    backup_files=[],
    backup_migration_id="mssql-backup-migration-9tj0sxnz",
    instance_id="mssql-4gmc5805",
    is_recovery="YES")
Copy
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 {
		_, err := tencentcloud.NewSqlserverIncreBackupMigration(ctx, "example", &tencentcloud.SqlserverIncreBackupMigrationArgs{
			BackupFiles:       pulumi.StringArray{},
			BackupMigrationId: pulumi.String("mssql-backup-migration-9tj0sxnz"),
			InstanceId:        pulumi.String("mssql-4gmc5805"),
			IsRecovery:        pulumi.String("YES"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;

return await Deployment.RunAsync(() => 
{
    var example = new Tencentcloud.SqlserverIncreBackupMigration("example", new()
    {
        BackupFiles = new[] {},
        BackupMigrationId = "mssql-backup-migration-9tj0sxnz",
        InstanceId = "mssql-4gmc5805",
        IsRecovery = "YES",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.SqlserverIncreBackupMigration;
import com.pulumi.tencentcloud.SqlserverIncreBackupMigrationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var example = new SqlserverIncreBackupMigration("example", SqlserverIncreBackupMigrationArgs.builder()
            .backupFiles()
            .backupMigrationId("mssql-backup-migration-9tj0sxnz")
            .instanceId("mssql-4gmc5805")
            .isRecovery("YES")
            .build());

    }
}
Copy
resources:
  example:
    type: tencentcloud:SqlserverIncreBackupMigration
    properties:
      backupFiles: []
      backupMigrationId: mssql-backup-migration-9tj0sxnz
      instanceId: mssql-4gmc5805
      isRecovery: YES
Copy

Create SqlserverIncreBackupMigration Resource

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

Constructor syntax

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

@overload
def SqlserverIncreBackupMigration(resource_name: str,
                                  opts: Optional[ResourceOptions] = None,
                                  backup_migration_id: Optional[str] = None,
                                  instance_id: Optional[str] = None,
                                  backup_files: Optional[Sequence[str]] = None,
                                  is_recovery: Optional[str] = None,
                                  sqlserver_incre_backup_migration_id: Optional[str] = None)
func NewSqlserverIncreBackupMigration(ctx *Context, name string, args SqlserverIncreBackupMigrationArgs, opts ...ResourceOption) (*SqlserverIncreBackupMigration, error)
public SqlserverIncreBackupMigration(string name, SqlserverIncreBackupMigrationArgs args, CustomResourceOptions? opts = null)
public SqlserverIncreBackupMigration(String name, SqlserverIncreBackupMigrationArgs args)
public SqlserverIncreBackupMigration(String name, SqlserverIncreBackupMigrationArgs args, CustomResourceOptions options)
type: tencentcloud:SqlserverIncreBackupMigration
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. SqlserverIncreBackupMigrationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. SqlserverIncreBackupMigrationArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. SqlserverIncreBackupMigrationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. SqlserverIncreBackupMigrationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. SqlserverIncreBackupMigrationArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

BackupMigrationId This property is required. string
Backup import task ID, which is returned through the API CreateBackupMigration.
InstanceId This property is required. string
ID of imported target instance.
BackupFiles List<string>
Incremental backup file. If the UploadType of a full backup file is COS_URL, fill in 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.
IsRecovery string
Whether restoration is required. No: not required. Yes: required. Not required by default.
SqlserverIncreBackupMigrationId string
ID of the resource.
BackupMigrationId This property is required. string
Backup import task ID, which is returned through the API CreateBackupMigration.
InstanceId This property is required. string
ID of imported target instance.
BackupFiles []string
Incremental backup file. If the UploadType of a full backup file is COS_URL, fill in 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.
IsRecovery string
Whether restoration is required. No: not required. Yes: required. Not required by default.
SqlserverIncreBackupMigrationId string
ID of the resource.
backupMigrationId This property is required. String
Backup import task ID, which is returned through the API CreateBackupMigration.
instanceId This property is required. String
ID of imported target instance.
backupFiles List<String>
Incremental backup file. If the UploadType of a full backup file is COS_URL, fill in 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.
isRecovery String
Whether restoration is required. No: not required. Yes: required. Not required by default.
sqlserverIncreBackupMigrationId String
ID of the resource.
backupMigrationId This property is required. string
Backup import task ID, which is returned through the API CreateBackupMigration.
instanceId This property is required. string
ID of imported target instance.
backupFiles string[]
Incremental backup file. If the UploadType of a full backup file is COS_URL, fill in 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.
isRecovery string
Whether restoration is required. No: not required. Yes: required. Not required by default.
sqlserverIncreBackupMigrationId string
ID of the resource.
backup_migration_id This property is required. str
Backup import task ID, which is returned through the API CreateBackupMigration.
instance_id This property is required. str
ID of imported target instance.
backup_files Sequence[str]
Incremental backup file. If the UploadType of a full backup file is COS_URL, fill in 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.
is_recovery str
Whether restoration is required. No: not required. Yes: required. Not required by default.
sqlserver_incre_backup_migration_id str
ID of the resource.
backupMigrationId This property is required. String
Backup import task ID, which is returned through the API CreateBackupMigration.
instanceId This property is required. String
ID of imported target instance.
backupFiles List<String>
Incremental backup file. If the UploadType of a full backup file is COS_URL, fill in 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.
isRecovery String
Whether restoration is required. No: not required. Yes: required. Not required by default.
sqlserverIncreBackupMigrationId String
ID of the resource.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
IncrementalMigrationId string
Incremental import task ID.
Id string
The provider-assigned unique ID for this managed resource.
IncrementalMigrationId string
Incremental import task ID.
id String
The provider-assigned unique ID for this managed resource.
incrementalMigrationId String
Incremental import task ID.
id string
The provider-assigned unique ID for this managed resource.
incrementalMigrationId string
Incremental import task ID.
id str
The provider-assigned unique ID for this managed resource.
incremental_migration_id str
Incremental import task ID.
id String
The provider-assigned unique ID for this managed resource.
incrementalMigrationId String
Incremental import task ID.

Look up Existing SqlserverIncreBackupMigration Resource

Get an existing SqlserverIncreBackupMigration 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?: SqlserverIncreBackupMigrationState, opts?: CustomResourceOptions): SqlserverIncreBackupMigration
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        backup_files: Optional[Sequence[str]] = None,
        backup_migration_id: Optional[str] = None,
        incremental_migration_id: Optional[str] = None,
        instance_id: Optional[str] = None,
        is_recovery: Optional[str] = None,
        sqlserver_incre_backup_migration_id: Optional[str] = None) -> SqlserverIncreBackupMigration
func GetSqlserverIncreBackupMigration(ctx *Context, name string, id IDInput, state *SqlserverIncreBackupMigrationState, opts ...ResourceOption) (*SqlserverIncreBackupMigration, error)
public static SqlserverIncreBackupMigration Get(string name, Input<string> id, SqlserverIncreBackupMigrationState? state, CustomResourceOptions? opts = null)
public static SqlserverIncreBackupMigration get(String name, Output<String> id, SqlserverIncreBackupMigrationState state, CustomResourceOptions options)
resources:  _:    type: tencentcloud:SqlserverIncreBackupMigration    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
BackupFiles List<string>
Incremental backup file. If the UploadType of a full backup file is COS_URL, fill in 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.
BackupMigrationId string
Backup import task ID, which is returned through the API CreateBackupMigration.
IncrementalMigrationId string
Incremental import task ID.
InstanceId string
ID of imported target instance.
IsRecovery string
Whether restoration is required. No: not required. Yes: required. Not required by default.
SqlserverIncreBackupMigrationId string
ID of the resource.
BackupFiles []string
Incremental backup file. If the UploadType of a full backup file is COS_URL, fill in 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.
BackupMigrationId string
Backup import task ID, which is returned through the API CreateBackupMigration.
IncrementalMigrationId string
Incremental import task ID.
InstanceId string
ID of imported target instance.
IsRecovery string
Whether restoration is required. No: not required. Yes: required. Not required by default.
SqlserverIncreBackupMigrationId string
ID of the resource.
backupFiles List<String>
Incremental backup file. If the UploadType of a full backup file is COS_URL, fill in 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.
backupMigrationId String
Backup import task ID, which is returned through the API CreateBackupMigration.
incrementalMigrationId String
Incremental import task ID.
instanceId String
ID of imported target instance.
isRecovery String
Whether restoration is required. No: not required. Yes: required. Not required by default.
sqlserverIncreBackupMigrationId String
ID of the resource.
backupFiles string[]
Incremental backup file. If the UploadType of a full backup file is COS_URL, fill in 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.
backupMigrationId string
Backup import task ID, which is returned through the API CreateBackupMigration.
incrementalMigrationId string
Incremental import task ID.
instanceId string
ID of imported target instance.
isRecovery string
Whether restoration is required. No: not required. Yes: required. Not required by default.
sqlserverIncreBackupMigrationId string
ID of the resource.
backup_files Sequence[str]
Incremental backup file. If the UploadType of a full backup file is COS_URL, fill in 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_id str
Backup import task ID, which is returned through the API CreateBackupMigration.
incremental_migration_id str
Incremental import task ID.
instance_id str
ID of imported target instance.
is_recovery str
Whether restoration is required. No: not required. Yes: required. Not required by default.
sqlserver_incre_backup_migration_id str
ID of the resource.
backupFiles List<String>
Incremental backup file. If the UploadType of a full backup file is COS_URL, fill in 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.
backupMigrationId String
Backup import task ID, which is returned through the API CreateBackupMigration.
incrementalMigrationId String
Incremental import task ID.
instanceId String
ID of imported target instance.
isRecovery String
Whether restoration is required. No: not required. Yes: required. Not required by default.
sqlserverIncreBackupMigrationId String
ID of the resource.

Import

sqlserver incre_backup_migration can be imported using the id, e.g.

$ pulumi import tencentcloud:index/sqlserverIncreBackupMigration:SqlserverIncreBackupMigration incre_backup_migration incre_backup_migration_id
Copy

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 tencentcloud Terraform Provider.