tencentcloud 1.81.191 published on Friday, May 9, 2025 by tencentcloudstack
tencentcloud.getSqlserverBackupCommands
Explore with Pulumi AI
tencentcloud 1.81.191 published on Friday, May 9, 2025 by tencentcloudstack
Use this data source to query detailed information of sqlserver datasource_backup_command
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = tencentcloud.getSqlserverBackupCommands({
    backupFileType: "FULL",
    dataBaseName: "keep-publish-instance",
    isRecovery: "NO",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.get_sqlserver_backup_commands(backup_file_type="FULL",
    data_base_name="keep-publish-instance",
    is_recovery="NO")
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.GetSqlserverBackupCommands(ctx, &tencentcloud.GetSqlserverBackupCommandsArgs{
			BackupFileType: "FULL",
			DataBaseName:   "keep-publish-instance",
			IsRecovery:     "NO",
		}, nil)
		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 = Tencentcloud.GetSqlserverBackupCommands.Invoke(new()
    {
        BackupFileType = "FULL",
        DataBaseName = "keep-publish-instance",
        IsRecovery = "NO",
    });
});
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.GetSqlserverBackupCommandsArgs;
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 example = TencentcloudFunctions.getSqlserverBackupCommands(GetSqlserverBackupCommandsArgs.builder()
            .backupFileType("FULL")
            .dataBaseName("keep-publish-instance")
            .isRecovery("NO")
            .build());
    }
}
variables:
  example:
    fn::invoke:
      function: tencentcloud:getSqlserverBackupCommands
      arguments:
        backupFileType: FULL
        dataBaseName: keep-publish-instance
        isRecovery: NO
Using getSqlserverBackupCommands
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getSqlserverBackupCommands(args: GetSqlserverBackupCommandsArgs, opts?: InvokeOptions): Promise<GetSqlserverBackupCommandsResult>
function getSqlserverBackupCommandsOutput(args: GetSqlserverBackupCommandsOutputArgs, opts?: InvokeOptions): Output<GetSqlserverBackupCommandsResult>def get_sqlserver_backup_commands(backup_file_type: Optional[str] = None,
                                  data_base_name: Optional[str] = None,
                                  id: Optional[str] = None,
                                  is_recovery: Optional[str] = None,
                                  local_path: Optional[str] = None,
                                  result_output_file: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetSqlserverBackupCommandsResult
def get_sqlserver_backup_commands_output(backup_file_type: Optional[pulumi.Input[str]] = None,
                                  data_base_name: Optional[pulumi.Input[str]] = None,
                                  id: Optional[pulumi.Input[str]] = None,
                                  is_recovery: Optional[pulumi.Input[str]] = None,
                                  local_path: Optional[pulumi.Input[str]] = None,
                                  result_output_file: Optional[pulumi.Input[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetSqlserverBackupCommandsResult]func GetSqlserverBackupCommands(ctx *Context, args *GetSqlserverBackupCommandsArgs, opts ...InvokeOption) (*GetSqlserverBackupCommandsResult, error)
func GetSqlserverBackupCommandsOutput(ctx *Context, args *GetSqlserverBackupCommandsOutputArgs, opts ...InvokeOption) GetSqlserverBackupCommandsResultOutput> Note: This function is named GetSqlserverBackupCommands in the Go SDK.
public static class GetSqlserverBackupCommands 
{
    public static Task<GetSqlserverBackupCommandsResult> InvokeAsync(GetSqlserverBackupCommandsArgs args, InvokeOptions? opts = null)
    public static Output<GetSqlserverBackupCommandsResult> Invoke(GetSqlserverBackupCommandsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSqlserverBackupCommandsResult> getSqlserverBackupCommands(GetSqlserverBackupCommandsArgs args, InvokeOptions options)
public static Output<GetSqlserverBackupCommandsResult> getSqlserverBackupCommands(GetSqlserverBackupCommandsArgs args, InvokeOptions options)
fn::invoke:
  function: tencentcloud:index/getSqlserverBackupCommands:getSqlserverBackupCommands
  arguments:
    # arguments dictionaryThe following arguments are supported:
- BackupFile stringType 
- Backup file type. Full: full backup. FULL_LOG: full backup which needs log increments. FULL_DIFF: full backup which needs differential increments. LOG: log backup. DIFF: differential backup.
- DataBase stringName 
- Database name.
- IsRecovery string
- Whether restoration is required. No: not required. Yes: required.
- Id string
- LocalPath string
- Storage path of backup files. If this parameter is left empty, the default storage path will be D:.
- ResultOutput stringFile 
- Used to save results.
- BackupFile stringType 
- Backup file type. Full: full backup. FULL_LOG: full backup which needs log increments. FULL_DIFF: full backup which needs differential increments. LOG: log backup. DIFF: differential backup.
- DataBase stringName 
- Database name.
- IsRecovery string
- Whether restoration is required. No: not required. Yes: required.
- Id string
- LocalPath string
- Storage path of backup files. If this parameter is left empty, the default storage path will be D:.
- ResultOutput stringFile 
- Used to save results.
- backupFile StringType 
- Backup file type. Full: full backup. FULL_LOG: full backup which needs log increments. FULL_DIFF: full backup which needs differential increments. LOG: log backup. DIFF: differential backup.
- dataBase StringName 
- Database name.
- isRecovery String
- Whether restoration is required. No: not required. Yes: required.
- id String
- localPath String
- Storage path of backup files. If this parameter is left empty, the default storage path will be D:.
- resultOutput StringFile 
- Used to save results.
- backupFile stringType 
- Backup file type. Full: full backup. FULL_LOG: full backup which needs log increments. FULL_DIFF: full backup which needs differential increments. LOG: log backup. DIFF: differential backup.
- dataBase stringName 
- Database name.
- isRecovery string
- Whether restoration is required. No: not required. Yes: required.
- id string
- localPath string
- Storage path of backup files. If this parameter is left empty, the default storage path will be D:.
- resultOutput stringFile 
- Used to save results.
- backup_file_ strtype 
- Backup file type. Full: full backup. FULL_LOG: full backup which needs log increments. FULL_DIFF: full backup which needs differential increments. LOG: log backup. DIFF: differential backup.
- data_base_ strname 
- Database name.
- is_recovery str
- Whether restoration is required. No: not required. Yes: required.
- id str
- local_path str
- Storage path of backup files. If this parameter is left empty, the default storage path will be D:.
- result_output_ strfile 
- Used to save results.
- backupFile StringType 
- Backup file type. Full: full backup. FULL_LOG: full backup which needs log increments. FULL_DIFF: full backup which needs differential increments. LOG: log backup. DIFF: differential backup.
- dataBase StringName 
- Database name.
- isRecovery String
- Whether restoration is required. No: not required. Yes: required.
- id String
- localPath String
- Storage path of backup files. If this parameter is left empty, the default storage path will be D:.
- resultOutput StringFile 
- Used to save results.
getSqlserverBackupCommands Result
The following output properties are available:
- BackupFile stringType 
- DataBase stringName 
- Id string
- IsRecovery string
- Lists
List<GetSqlserver Backup Commands List> 
- Command list.
- LocalPath string
- ResultOutput stringFile 
- BackupFile stringType 
- DataBase stringName 
- Id string
- IsRecovery string
- Lists
[]GetSqlserver Backup Commands List 
- Command list.
- LocalPath string
- ResultOutput stringFile 
- backupFile StringType 
- dataBase StringName 
- id String
- isRecovery String
- lists
List<GetSqlserver Backup Commands List> 
- Command list.
- localPath String
- resultOutput StringFile 
- backupFile stringType 
- dataBase stringName 
- id string
- isRecovery string
- lists
GetSqlserver Backup Commands List[] 
- Command list.
- localPath string
- resultOutput stringFile 
- backup_file_ strtype 
- data_base_ strname 
- id str
- is_recovery str
- lists
Sequence[GetSqlserver Backup Commands List] 
- Command list.
- local_path str
- result_output_ strfile 
- backupFile StringType 
- dataBase StringName 
- id String
- isRecovery String
- lists List<Property Map>
- Command list.
- localPath String
- resultOutput StringFile 
Supporting Types
GetSqlserverBackupCommandsList    
- command str
- Create backup command.
- request_id str
- Request ID.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the tencentcloudTerraform Provider.
tencentcloud 1.81.191 published on Friday, May 9, 2025 by tencentcloudstack