1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getSqlserverBackupCommands
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.getSqlserverBackupCommands

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 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 dictionary

    The following arguments are supported:

    BackupFileType string
    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.
    DataBaseName string
    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:.
    ResultOutputFile string
    Used to save results.
    BackupFileType string
    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.
    DataBaseName string
    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:.
    ResultOutputFile string
    Used to save results.
    backupFileType String
    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.
    dataBaseName String
    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:.
    resultOutputFile String
    Used to save results.
    backupFileType string
    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.
    dataBaseName string
    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:.
    resultOutputFile string
    Used to save results.
    backup_file_type str
    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_name str
    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_file str
    Used to save results.
    backupFileType String
    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.
    dataBaseName String
    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:.
    resultOutputFile String
    Used to save results.

    getSqlserverBackupCommands Result

    The following output properties are available:

    Supporting Types

    GetSqlserverBackupCommandsList

    Command string
    Create backup command.
    RequestId string
    Request ID.
    Command string
    Create backup command.
    RequestId string
    Request ID.
    command String
    Create backup command.
    requestId String
    Request ID.
    command string
    Create backup command.
    requestId string
    Request ID.
    command str
    Create backup command.
    request_id str
    Request ID.
    command String
    Create backup command.
    requestId String
    Request ID.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack