tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
tencentcloud.getRedisBackup
Start a Neo task
Explain and create a tencentcloud.getRedisBackup resource
tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
Use this data source to query detailed information of redis backup
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const backup = tencentcloud.getRedisBackup({
instanceId: "crs-c1nl9rpv",
beginTime: "2023-04-07 03:57:30",
endTime: "2023-04-07 03:57:56",
statuses: [2],
instanceName: "Keep-terraform",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
backup = tencentcloud.get_redis_backup(instance_id="crs-c1nl9rpv",
begin_time="2023-04-07 03:57:30",
end_time="2023-04-07 03:57:56",
statuses=[2],
instance_name="Keep-terraform")
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.GetRedisBackup(ctx, &tencentcloud.GetRedisBackupArgs{
InstanceId: pulumi.StringRef("crs-c1nl9rpv"),
BeginTime: pulumi.StringRef("2023-04-07 03:57:30"),
EndTime: pulumi.StringRef("2023-04-07 03:57:56"),
Statuses: []float64{
2,
},
InstanceName: pulumi.StringRef("Keep-terraform"),
}, 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 backup = Tencentcloud.GetRedisBackup.Invoke(new()
{
InstanceId = "crs-c1nl9rpv",
BeginTime = "2023-04-07 03:57:30",
EndTime = "2023-04-07 03:57:56",
Statuses = new[]
{
2,
},
InstanceName = "Keep-terraform",
});
});
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.GetRedisBackupArgs;
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 backup = TencentcloudFunctions.getRedisBackup(GetRedisBackupArgs.builder()
.instanceId("crs-c1nl9rpv")
.beginTime("2023-04-07 03:57:30")
.endTime("2023-04-07 03:57:56")
.statuses(2)
.instanceName("Keep-terraform")
.build());
}
}
variables:
backup:
fn::invoke:
function: tencentcloud:getRedisBackup
arguments:
instanceId: crs-c1nl9rpv
beginTime: 2023-04-07 03:57:30
endTime: 2023-04-07 03:57:56
statuses:
- 2
instanceName: Keep-terraform
Using getRedisBackup
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 getRedisBackup(args: GetRedisBackupArgs, opts?: InvokeOptions): Promise<GetRedisBackupResult>
function getRedisBackupOutput(args: GetRedisBackupOutputArgs, opts?: InvokeOptions): Output<GetRedisBackupResult>def get_redis_backup(begin_time: Optional[str] = None,
end_time: Optional[str] = None,
id: Optional[str] = None,
instance_id: Optional[str] = None,
instance_name: Optional[str] = None,
result_output_file: Optional[str] = None,
statuses: Optional[Sequence[float]] = None,
opts: Optional[InvokeOptions] = None) -> GetRedisBackupResult
def get_redis_backup_output(begin_time: 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,
instance_name: Optional[pulumi.Input[str]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
statuses: Optional[pulumi.Input[Sequence[pulumi.Input[float]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetRedisBackupResult]func GetRedisBackup(ctx *Context, args *GetRedisBackupArgs, opts ...InvokeOption) (*GetRedisBackupResult, error)
func GetRedisBackupOutput(ctx *Context, args *GetRedisBackupOutputArgs, opts ...InvokeOption) GetRedisBackupResultOutput> Note: This function is named GetRedisBackup in the Go SDK.
public static class GetRedisBackup
{
public static Task<GetRedisBackupResult> InvokeAsync(GetRedisBackupArgs args, InvokeOptions? opts = null)
public static Output<GetRedisBackupResult> Invoke(GetRedisBackupInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetRedisBackupResult> getRedisBackup(GetRedisBackupArgs args, InvokeOptions options)
public static Output<GetRedisBackupResult> getRedisBackup(GetRedisBackupArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getRedisBackup:getRedisBackup
arguments:
# arguments dictionaryThe following arguments are supported:
- Begin
Time string - start time, such as 2017-02-08 19:09:26.Query the list of backups that the instance started backing up during the [beginTime, endTime] time period.
- End
Time string - End time, such as 2017-02-08 19:09:26.Query the list of backups that the instance started backing up during the [beginTime, endTime] time period.
- Id string
- Instance
Id string - The ID of instance.
- Instance
Name string - Instance name, which supports fuzzy search based on instance name.
- Result
Output stringFile - Used to save results.
- Statuses List<double>
- Status of the backup task:1: Backup is in the process.2: The backup is normal.3: Backup to RDB file processing.4: RDB conversion completed.-1: The backup has expired.-2: Backup deleted.
- Begin
Time string - start time, such as 2017-02-08 19:09:26.Query the list of backups that the instance started backing up during the [beginTime, endTime] time period.
- End
Time string - End time, such as 2017-02-08 19:09:26.Query the list of backups that the instance started backing up during the [beginTime, endTime] time period.
- Id string
- Instance
Id string - The ID of instance.
- Instance
Name string - Instance name, which supports fuzzy search based on instance name.
- Result
Output stringFile - Used to save results.
- Statuses []float64
- Status of the backup task:1: Backup is in the process.2: The backup is normal.3: Backup to RDB file processing.4: RDB conversion completed.-1: The backup has expired.-2: Backup deleted.
- begin
Time String - start time, such as 2017-02-08 19:09:26.Query the list of backups that the instance started backing up during the [beginTime, endTime] time period.
- end
Time String - End time, such as 2017-02-08 19:09:26.Query the list of backups that the instance started backing up during the [beginTime, endTime] time period.
- id String
- instance
Id String - The ID of instance.
- instance
Name String - Instance name, which supports fuzzy search based on instance name.
- result
Output StringFile - Used to save results.
- statuses List<Double>
- Status of the backup task:1: Backup is in the process.2: The backup is normal.3: Backup to RDB file processing.4: RDB conversion completed.-1: The backup has expired.-2: Backup deleted.
- begin
Time string - start time, such as 2017-02-08 19:09:26.Query the list of backups that the instance started backing up during the [beginTime, endTime] time period.
- end
Time string - End time, such as 2017-02-08 19:09:26.Query the list of backups that the instance started backing up during the [beginTime, endTime] time period.
- id string
- instance
Id string - The ID of instance.
- instance
Name string - Instance name, which supports fuzzy search based on instance name.
- result
Output stringFile - Used to save results.
- statuses number[]
- Status of the backup task:1: Backup is in the process.2: The backup is normal.3: Backup to RDB file processing.4: RDB conversion completed.-1: The backup has expired.-2: Backup deleted.
- begin_
time str - start time, such as 2017-02-08 19:09:26.Query the list of backups that the instance started backing up during the [beginTime, endTime] time period.
- end_
time str - End time, such as 2017-02-08 19:09:26.Query the list of backups that the instance started backing up during the [beginTime, endTime] time period.
- id str
- instance_
id str - The ID of instance.
- instance_
name str - Instance name, which supports fuzzy search based on instance name.
- result_
output_ strfile - Used to save results.
- statuses Sequence[float]
- Status of the backup task:1: Backup is in the process.2: The backup is normal.3: Backup to RDB file processing.4: RDB conversion completed.-1: The backup has expired.-2: Backup deleted.
- begin
Time String - start time, such as 2017-02-08 19:09:26.Query the list of backups that the instance started backing up during the [beginTime, endTime] time period.
- end
Time String - End time, such as 2017-02-08 19:09:26.Query the list of backups that the instance started backing up during the [beginTime, endTime] time period.
- id String
- instance
Id String - The ID of instance.
- instance
Name String - Instance name, which supports fuzzy search based on instance name.
- result
Output StringFile - Used to save results.
- statuses List<Number>
- Status of the backup task:1: Backup is in the process.2: The backup is normal.3: Backup to RDB file processing.4: RDB conversion completed.-1: The backup has expired.-2: Backup deleted.
getRedisBackup Result
The following output properties are available:
- Backup
Sets List<GetRedis Backup Backup Set> - An array of backups for the instance.
- Id string
- Begin
Time string - End
Time string - Backup end time.
- Instance
Id string - The ID of instance.
- Instance
Name string - The name of instance.
- Result
Output stringFile - Statuses List<double>
- Backup status.1: The backup is locked by another process.2: The backup is normal and not locked by any process.-1: The backup has expired.3: The backup is being exported.4: The backup export is successful.
- Backup
Sets []GetRedis Backup Backup Set - An array of backups for the instance.
- Id string
- Begin
Time string - End
Time string - Backup end time.
- Instance
Id string - The ID of instance.
- Instance
Name string - The name of instance.
- Result
Output stringFile - Statuses []float64
- Backup status.1: The backup is locked by another process.2: The backup is normal and not locked by any process.-1: The backup has expired.3: The backup is being exported.4: The backup export is successful.
- backup
Sets List<GetRedis Backup Backup Set> - An array of backups for the instance.
- id String
- begin
Time String - end
Time String - Backup end time.
- instance
Id String - The ID of instance.
- instance
Name String - The name of instance.
- result
Output StringFile - statuses List<Double>
- Backup status.1: The backup is locked by another process.2: The backup is normal and not locked by any process.-1: The backup has expired.3: The backup is being exported.4: The backup export is successful.
- backup
Sets GetRedis Backup Backup Set[] - An array of backups for the instance.
- id string
- begin
Time string - end
Time string - Backup end time.
- instance
Id string - The ID of instance.
- instance
Name string - The name of instance.
- result
Output stringFile - statuses number[]
- Backup status.1: The backup is locked by another process.2: The backup is normal and not locked by any process.-1: The backup has expired.3: The backup is being exported.4: The backup export is successful.
- backup_
sets Sequence[GetRedis Backup Backup Set] - An array of backups for the instance.
- id str
- begin_
time str - end_
time str - Backup end time.
- instance_
id str - The ID of instance.
- instance_
name str - The name of instance.
- result_
output_ strfile - statuses Sequence[float]
- Backup status.1: The backup is locked by another process.2: The backup is normal and not locked by any process.-1: The backup has expired.3: The backup is being exported.4: The backup export is successful.
- backup
Sets List<Property Map> - An array of backups for the instance.
- id String
- begin
Time String - end
Time String - Backup end time.
- instance
Id String - The ID of instance.
- instance
Name String - The name of instance.
- result
Output StringFile - statuses List<Number>
- Backup status.1: The backup is locked by another process.2: The backup is normal and not locked by any process.-1: The backup has expired.3: The backup is being exported.4: The backup export is successful.
Supporting Types
GetRedisBackupBackupSet
- Backup
Id string - Backup ID.
- Backup
Size double - Internal fields, which can be ignored by the user.
- Backup
Type string - Backup type.1: User-initiated manual backup.0: System-initiated backup in the early morning.
- End
Time string - End time, such as 2017-02-08 19:09:26.Query the list of backups that the instance started backing up during the [beginTime, endTime] time period.
- Expire
Time string - Backup file expiration time.
- File
Type string - Back up file types.
- Full
Backup double - Internal fields, which can be ignored by the user.
- Instance
Id string - The ID of instance.
- Instance
Name string - Instance name, which supports fuzzy search based on instance name.
- Instance
Type double - Internal fields, which can be ignored by the user.
- Locked double
- Whether the backup is locked.0: Not locked.1: Has been locked.
- Region string
- The region where the backup is located.
- Remark string
- Notes information for the backup.
- Start
Time string - Backup start time.
- Status double
- Status of the backup task:1: Backup is in the process.2: The backup is normal.3: Backup to RDB file processing.4: RDB conversion completed.-1: The backup has expired.-2: Backup deleted.
- Backup
Id string - Backup ID.
- Backup
Size float64 - Internal fields, which can be ignored by the user.
- Backup
Type string - Backup type.1: User-initiated manual backup.0: System-initiated backup in the early morning.
- End
Time string - End time, such as 2017-02-08 19:09:26.Query the list of backups that the instance started backing up during the [beginTime, endTime] time period.
- Expire
Time string - Backup file expiration time.
- File
Type string - Back up file types.
- Full
Backup float64 - Internal fields, which can be ignored by the user.
- Instance
Id string - The ID of instance.
- Instance
Name string - Instance name, which supports fuzzy search based on instance name.
- Instance
Type float64 - Internal fields, which can be ignored by the user.
- Locked float64
- Whether the backup is locked.0: Not locked.1: Has been locked.
- Region string
- The region where the backup is located.
- Remark string
- Notes information for the backup.
- Start
Time string - Backup start time.
- Status float64
- Status of the backup task:1: Backup is in the process.2: The backup is normal.3: Backup to RDB file processing.4: RDB conversion completed.-1: The backup has expired.-2: Backup deleted.
- backup
Id String - Backup ID.
- backup
Size Double - Internal fields, which can be ignored by the user.
- backup
Type String - Backup type.1: User-initiated manual backup.0: System-initiated backup in the early morning.
- end
Time String - End time, such as 2017-02-08 19:09:26.Query the list of backups that the instance started backing up during the [beginTime, endTime] time period.
- expire
Time String - Backup file expiration time.
- file
Type String - Back up file types.
- full
Backup Double - Internal fields, which can be ignored by the user.
- instance
Id String - The ID of instance.
- instance
Name String - Instance name, which supports fuzzy search based on instance name.
- instance
Type Double - Internal fields, which can be ignored by the user.
- locked Double
- Whether the backup is locked.0: Not locked.1: Has been locked.
- region String
- The region where the backup is located.
- remark String
- Notes information for the backup.
- start
Time String - Backup start time.
- status Double
- Status of the backup task:1: Backup is in the process.2: The backup is normal.3: Backup to RDB file processing.4: RDB conversion completed.-1: The backup has expired.-2: Backup deleted.
- backup
Id string - Backup ID.
- backup
Size number - Internal fields, which can be ignored by the user.
- backup
Type string - Backup type.1: User-initiated manual backup.0: System-initiated backup in the early morning.
- end
Time string - End time, such as 2017-02-08 19:09:26.Query the list of backups that the instance started backing up during the [beginTime, endTime] time period.
- expire
Time string - Backup file expiration time.
- file
Type string - Back up file types.
- full
Backup number - Internal fields, which can be ignored by the user.
- instance
Id string - The ID of instance.
- instance
Name string - Instance name, which supports fuzzy search based on instance name.
- instance
Type number - Internal fields, which can be ignored by the user.
- locked number
- Whether the backup is locked.0: Not locked.1: Has been locked.
- region string
- The region where the backup is located.
- remark string
- Notes information for the backup.
- start
Time string - Backup start time.
- status number
- Status of the backup task:1: Backup is in the process.2: The backup is normal.3: Backup to RDB file processing.4: RDB conversion completed.-1: The backup has expired.-2: Backup deleted.
- backup_
id str - Backup ID.
- backup_
size float - Internal fields, which can be ignored by the user.
- backup_
type str - Backup type.1: User-initiated manual backup.0: System-initiated backup in the early morning.
- end_
time str - End time, such as 2017-02-08 19:09:26.Query the list of backups that the instance started backing up during the [beginTime, endTime] time period.
- expire_
time str - Backup file expiration time.
- file_
type str - Back up file types.
- full_
backup float - Internal fields, which can be ignored by the user.
- instance_
id str - The ID of instance.
- instance_
name str - Instance name, which supports fuzzy search based on instance name.
- instance_
type float - Internal fields, which can be ignored by the user.
- locked float
- Whether the backup is locked.0: Not locked.1: Has been locked.
- region str
- The region where the backup is located.
- remark str
- Notes information for the backup.
- start_
time str - Backup start time.
- status float
- Status of the backup task:1: Backup is in the process.2: The backup is normal.3: Backup to RDB file processing.4: RDB conversion completed.-1: The backup has expired.-2: Backup deleted.
- backup
Id String - Backup ID.
- backup
Size Number - Internal fields, which can be ignored by the user.
- backup
Type String - Backup type.1: User-initiated manual backup.0: System-initiated backup in the early morning.
- end
Time String - End time, such as 2017-02-08 19:09:26.Query the list of backups that the instance started backing up during the [beginTime, endTime] time period.
- expire
Time String - Backup file expiration time.
- file
Type String - Back up file types.
- full
Backup Number - Internal fields, which can be ignored by the user.
- instance
Id String - The ID of instance.
- instance
Name String - Instance name, which supports fuzzy search based on instance name.
- instance
Type Number - Internal fields, which can be ignored by the user.
- locked Number
- Whether the backup is locked.0: Not locked.1: Has been locked.
- region String
- The region where the backup is located.
- remark String
- Notes information for the backup.
- start
Time String - Backup start time.
- status Number
- Status of the backup task:1: Backup is in the process.2: The backup is normal.3: Backup to RDB file processing.4: RDB conversion completed.-1: The backup has expired.-2: Backup deleted.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
