tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getSqlserverBackups
Explore with Pulumi AI
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
Use this data source to query the list of SQL Server backups.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const foo = tencentcloud.getSqlserverBackups({
endTime: "2020-06-22 00:00:00",
instanceId: "mssql-3cdq7kx5",
startTime: "2020-06-17 00:00:00",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
foo = tencentcloud.get_sqlserver_backups(end_time="2020-06-22 00:00:00",
instance_id="mssql-3cdq7kx5",
start_time="2020-06-17 00:00:00")
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.GetSqlserverBackups(ctx, &tencentcloud.GetSqlserverBackupsArgs{
EndTime: "2020-06-22 00:00:00",
InstanceId: "mssql-3cdq7kx5",
StartTime: "2020-06-17 00:00:00",
}, 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 foo = Tencentcloud.GetSqlserverBackups.Invoke(new()
{
EndTime = "2020-06-22 00:00:00",
InstanceId = "mssql-3cdq7kx5",
StartTime = "2020-06-17 00:00:00",
});
});
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.GetSqlserverBackupsArgs;
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 foo = TencentcloudFunctions.getSqlserverBackups(GetSqlserverBackupsArgs.builder()
.endTime("2020-06-22 00:00:00")
.instanceId("mssql-3cdq7kx5")
.startTime("2020-06-17 00:00:00")
.build());
}
}
variables:
foo:
fn::invoke:
function: tencentcloud:getSqlserverBackups
arguments:
endTime: 2020-06-22 00:00:00
instanceId: mssql-3cdq7kx5
startTime: 2020-06-17 00:00:00
Using getSqlserverBackups
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 getSqlserverBackups(args: GetSqlserverBackupsArgs, opts?: InvokeOptions): Promise<GetSqlserverBackupsResult>
function getSqlserverBackupsOutput(args: GetSqlserverBackupsOutputArgs, opts?: InvokeOptions): Output<GetSqlserverBackupsResult>
def get_sqlserver_backups(backup_name: Optional[str] = None,
end_time: Optional[str] = None,
id: Optional[str] = None,
instance_id: Optional[str] = None,
result_output_file: Optional[str] = None,
start_time: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSqlserverBackupsResult
def get_sqlserver_backups_output(backup_name: Optional[pulumi.Input[str]] = None,
end_time: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
instance_id: Optional[pulumi.Input[str]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
start_time: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSqlserverBackupsResult]
func GetSqlserverBackups(ctx *Context, args *GetSqlserverBackupsArgs, opts ...InvokeOption) (*GetSqlserverBackupsResult, error)
func GetSqlserverBackupsOutput(ctx *Context, args *GetSqlserverBackupsOutputArgs, opts ...InvokeOption) GetSqlserverBackupsResultOutput
> Note: This function is named GetSqlserverBackups
in the Go SDK.
public static class GetSqlserverBackups
{
public static Task<GetSqlserverBackupsResult> InvokeAsync(GetSqlserverBackupsArgs args, InvokeOptions? opts = null)
public static Output<GetSqlserverBackupsResult> Invoke(GetSqlserverBackupsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSqlserverBackupsResult> getSqlserverBackups(GetSqlserverBackupsArgs args, InvokeOptions options)
public static Output<GetSqlserverBackupsResult> getSqlserverBackups(GetSqlserverBackupsArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getSqlserverBackups:getSqlserverBackups
arguments:
# arguments dictionary
The following arguments are supported:
- End
Time string - End time of the instance list, like yyyy-MM-dd HH:mm:ss.
- Instance
Id string - Instance ID.
- Start
Time string - Start time of the instance list, like yyyy-MM-dd HH:mm:ss.
- Backup
Name string - Id string
- ID of the backup.
- Result
Output stringFile - Used to store results.
- End
Time string - End time of the instance list, like yyyy-MM-dd HH:mm:ss.
- Instance
Id string - Instance ID.
- Start
Time string - Start time of the instance list, like yyyy-MM-dd HH:mm:ss.
- Backup
Name string - Id string
- ID of the backup.
- Result
Output stringFile - Used to store results.
- end
Time String - End time of the instance list, like yyyy-MM-dd HH:mm:ss.
- instance
Id String - Instance ID.
- start
Time String - Start time of the instance list, like yyyy-MM-dd HH:mm:ss.
- backup
Name String - id String
- ID of the backup.
- result
Output StringFile - Used to store results.
- end
Time string - End time of the instance list, like yyyy-MM-dd HH:mm:ss.
- instance
Id string - Instance ID.
- start
Time string - Start time of the instance list, like yyyy-MM-dd HH:mm:ss.
- backup
Name string - id string
- ID of the backup.
- result
Output stringFile - Used to store results.
- end_
time str - End time of the instance list, like yyyy-MM-dd HH:mm:ss.
- instance_
id str - Instance ID.
- start_
time str - Start time of the instance list, like yyyy-MM-dd HH:mm:ss.
- backup_
name str - id str
- ID of the backup.
- result_
output_ strfile - Used to store results.
- end
Time String - End time of the instance list, like yyyy-MM-dd HH:mm:ss.
- instance
Id String - Instance ID.
- start
Time String - Start time of the instance list, like yyyy-MM-dd HH:mm:ss.
- backup
Name String - id String
- ID of the backup.
- result
Output StringFile - Used to store results.
getSqlserverBackups Result
The following output properties are available:
- End
Time string - End time of the backup.
- Id string
- ID of the backup.
- Instance
Id string - Instance ID.
- Lists
List<Get
Sqlserver Backups List> - A list of SQL Server backup. Each element contains the following attributes:
- Start
Time string - Start time of the backup.
- Backup
Name string - Result
Output stringFile
- End
Time string - End time of the backup.
- Id string
- ID of the backup.
- Instance
Id string - Instance ID.
- Lists
[]Get
Sqlserver Backups List - A list of SQL Server backup. Each element contains the following attributes:
- Start
Time string - Start time of the backup.
- Backup
Name string - Result
Output stringFile
- end
Time String - End time of the backup.
- id String
- ID of the backup.
- instance
Id String - Instance ID.
- lists
List<Get
Sqlserver Backups List> - A list of SQL Server backup. Each element contains the following attributes:
- start
Time String - Start time of the backup.
- backup
Name String - result
Output StringFile
- end
Time string - End time of the backup.
- id string
- ID of the backup.
- instance
Id string - Instance ID.
- lists
Get
Sqlserver Backups List[] - A list of SQL Server backup. Each element contains the following attributes:
- start
Time string - Start time of the backup.
- backup
Name string - result
Output stringFile
- end_
time str - End time of the backup.
- id str
- ID of the backup.
- instance_
id str - Instance ID.
- lists
Sequence[Get
Sqlserver Backups List] - A list of SQL Server backup. Each element contains the following attributes:
- start_
time str - Start time of the backup.
- backup_
name str - result_
output_ strfile
- end
Time String - End time of the backup.
- id String
- ID of the backup.
- instance
Id String - Instance ID.
- lists List<Property Map>
- A list of SQL Server backup. Each element contains the following attributes:
- start
Time String - Start time of the backup.
- backup
Name String - result
Output StringFile
Supporting Types
GetSqlserverBackupsList
- Db
Lists List<string> - Database name list of the backup.
- End
Time string - End time of the instance list, like yyyy-MM-dd HH:mm:ss.
- File
Name string - File name of the backup.
- Id string
- ID of the backup.
- Instance
Id string - Instance ID.
- Internet
Url string - URL for downloads externally.
- Intranet
Url string - URL for downloads internally.
- Size double
- The size of backup file. Unit is KB.
- Start
Time string - Start time of the instance list, like yyyy-MM-dd HH:mm:ss.
- Status double
- Status of the backup.
1
for creating,2
for successfully created, 3 for failed. - Strategy double
- Strategy of the backup.
0
for instance backup,1
for multi-databases backup. - Trigger
Model double - The way to trigger backup.
0
for timed trigger,1
for manual trigger.
- Db
Lists []string - Database name list of the backup.
- End
Time string - End time of the instance list, like yyyy-MM-dd HH:mm:ss.
- File
Name string - File name of the backup.
- Id string
- ID of the backup.
- Instance
Id string - Instance ID.
- Internet
Url string - URL for downloads externally.
- Intranet
Url string - URL for downloads internally.
- Size float64
- The size of backup file. Unit is KB.
- Start
Time string - Start time of the instance list, like yyyy-MM-dd HH:mm:ss.
- Status float64
- Status of the backup.
1
for creating,2
for successfully created, 3 for failed. - Strategy float64
- Strategy of the backup.
0
for instance backup,1
for multi-databases backup. - Trigger
Model float64 - The way to trigger backup.
0
for timed trigger,1
for manual trigger.
- db
Lists List<String> - Database name list of the backup.
- end
Time String - End time of the instance list, like yyyy-MM-dd HH:mm:ss.
- file
Name String - File name of the backup.
- id String
- ID of the backup.
- instance
Id String - Instance ID.
- internet
Url String - URL for downloads externally.
- intranet
Url String - URL for downloads internally.
- size Double
- The size of backup file. Unit is KB.
- start
Time String - Start time of the instance list, like yyyy-MM-dd HH:mm:ss.
- status Double
- Status of the backup.
1
for creating,2
for successfully created, 3 for failed. - strategy Double
- Strategy of the backup.
0
for instance backup,1
for multi-databases backup. - trigger
Model Double - The way to trigger backup.
0
for timed trigger,1
for manual trigger.
- db
Lists string[] - Database name list of the backup.
- end
Time string - End time of the instance list, like yyyy-MM-dd HH:mm:ss.
- file
Name string - File name of the backup.
- id string
- ID of the backup.
- instance
Id string - Instance ID.
- internet
Url string - URL for downloads externally.
- intranet
Url string - URL for downloads internally.
- size number
- The size of backup file. Unit is KB.
- start
Time string - Start time of the instance list, like yyyy-MM-dd HH:mm:ss.
- status number
- Status of the backup.
1
for creating,2
for successfully created, 3 for failed. - strategy number
- Strategy of the backup.
0
for instance backup,1
for multi-databases backup. - trigger
Model number - The way to trigger backup.
0
for timed trigger,1
for manual trigger.
- db_
lists Sequence[str] - Database name list of the backup.
- end_
time str - End time of the instance list, like yyyy-MM-dd HH:mm:ss.
- file_
name str - File name of the backup.
- id str
- ID of the backup.
- instance_
id str - Instance ID.
- internet_
url str - URL for downloads externally.
- intranet_
url str - URL for downloads internally.
- size float
- The size of backup file. Unit is KB.
- start_
time str - Start time of the instance list, like yyyy-MM-dd HH:mm:ss.
- status float
- Status of the backup.
1
for creating,2
for successfully created, 3 for failed. - strategy float
- Strategy of the backup.
0
for instance backup,1
for multi-databases backup. - trigger_
model float - The way to trigger backup.
0
for timed trigger,1
for manual trigger.
- db
Lists List<String> - Database name list of the backup.
- end
Time String - End time of the instance list, like yyyy-MM-dd HH:mm:ss.
- file
Name String - File name of the backup.
- id String
- ID of the backup.
- instance
Id String - Instance ID.
- internet
Url String - URL for downloads externally.
- intranet
Url String - URL for downloads internally.
- size Number
- The size of backup file. Unit is KB.
- start
Time String - Start time of the instance list, like yyyy-MM-dd HH:mm:ss.
- status Number
- Status of the backup.
1
for creating,2
for successfully created, 3 for failed. - strategy Number
- Strategy of the backup.
0
for instance backup,1
for multi-databases backup. - trigger
Model Number - The way to trigger backup.
0
for timed trigger,1
for manual trigger.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack