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",
});
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")
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
})
}
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",
});
});
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());
}
}
resources:
example:
type: tencentcloud:SqlserverIncreBackupMigration
properties:
backupFiles: []
backupMigrationId: mssql-backup-migration-9tj0sxnz
instanceId: mssql-4gmc5805
isRecovery: YES
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 string
- The unique name of the resource.
- args SqlserverIncreBackupMigrationArgs
- 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 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 string
- The unique name of the resource.
- args SqlserverIncreBackupMigrationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SqlserverIncreBackupMigrationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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:
- Backup
Migration stringId - Backup import task ID, which is returned through the API CreateBackupMigration.
- Instance
Id string - ID of imported target instance.
- Backup
Files 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.
- Is
Recovery string - Whether restoration is required. No: not required. Yes: required. Not required by default.
- Sqlserver
Incre stringBackup Migration Id - ID of the resource.
- Backup
Migration stringId - Backup import task ID, which is returned through the API CreateBackupMigration.
- Instance
Id string - ID of imported target instance.
- Backup
Files []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.
- Is
Recovery string - Whether restoration is required. No: not required. Yes: required. Not required by default.
- Sqlserver
Incre stringBackup Migration Id - ID of the resource.
- backup
Migration StringId - Backup import task ID, which is returned through the API CreateBackupMigration.
- instance
Id String - ID of imported target instance.
- backup
Files 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.
- is
Recovery String - Whether restoration is required. No: not required. Yes: required. Not required by default.
- sqlserver
Incre StringBackup Migration Id - ID of the resource.
- backup
Migration stringId - Backup import task ID, which is returned through the API CreateBackupMigration.
- instance
Id string - ID of imported target instance.
- backup
Files 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.
- is
Recovery string - Whether restoration is required. No: not required. Yes: required. Not required by default.
- sqlserver
Incre stringBackup Migration Id - ID of the resource.
- backup_
migration_ strid - Backup import task ID, which is returned through the API CreateBackupMigration.
- instance_
id 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_ strbackup_ migration_ id - ID of the resource.
- backup
Migration StringId - Backup import task ID, which is returned through the API CreateBackupMigration.
- instance
Id String - ID of imported target instance.
- backup
Files 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.
- is
Recovery String - Whether restoration is required. No: not required. Yes: required. Not required by default.
- sqlserver
Incre StringBackup Migration Id - 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.
- Incremental
Migration stringId - Incremental import task ID.
- Id string
- The provider-assigned unique ID for this managed resource.
- Incremental
Migration stringId - Incremental import task ID.
- id String
- The provider-assigned unique ID for this managed resource.
- incremental
Migration StringId - Incremental import task ID.
- id string
- The provider-assigned unique ID for this managed resource.
- incremental
Migration stringId - Incremental import task ID.
- id str
- The provider-assigned unique ID for this managed resource.
- incremental_
migration_ strid - Incremental import task ID.
- id String
- The provider-assigned unique ID for this managed resource.
- incremental
Migration StringId - 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
- 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.
- Backup
Files 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.
- Backup
Migration stringId - Backup import task ID, which is returned through the API CreateBackupMigration.
- Incremental
Migration stringId - Incremental import task ID.
- Instance
Id string - ID of imported target instance.
- Is
Recovery string - Whether restoration is required. No: not required. Yes: required. Not required by default.
- Sqlserver
Incre stringBackup Migration Id - ID of the resource.
- Backup
Files []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.
- Backup
Migration stringId - Backup import task ID, which is returned through the API CreateBackupMigration.
- Incremental
Migration stringId - Incremental import task ID.
- Instance
Id string - ID of imported target instance.
- Is
Recovery string - Whether restoration is required. No: not required. Yes: required. Not required by default.
- Sqlserver
Incre stringBackup Migration Id - ID of the resource.
- backup
Files 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.
- backup
Migration StringId - Backup import task ID, which is returned through the API CreateBackupMigration.
- incremental
Migration StringId - Incremental import task ID.
- instance
Id String - ID of imported target instance.
- is
Recovery String - Whether restoration is required. No: not required. Yes: required. Not required by default.
- sqlserver
Incre StringBackup Migration Id - ID of the resource.
- backup
Files 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.
- backup
Migration stringId - Backup import task ID, which is returned through the API CreateBackupMigration.
- incremental
Migration stringId - Incremental import task ID.
- instance
Id string - ID of imported target instance.
- is
Recovery string - Whether restoration is required. No: not required. Yes: required. Not required by default.
- sqlserver
Incre stringBackup Migration Id - 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_ strid - Backup import task ID, which is returned through the API CreateBackupMigration.
- incremental_
migration_ strid - 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_ strbackup_ migration_ id - ID of the resource.
- backup
Files 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.
- backup
Migration StringId - Backup import task ID, which is returned through the API CreateBackupMigration.
- incremental
Migration StringId - Incremental import task ID.
- instance
Id String - ID of imported target instance.
- is
Recovery String - Whether restoration is required. No: not required. Yes: required. Not required by default.
- sqlserver
Incre StringBackup Migration Id - 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
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.