Volcengine v0.0.37 published on Wednesday, Oct 22, 2025 by Volcengine
volcengine.redis.PitrTimeWindows
Deprecated: volcengine.redis.PitrTimeWindows has been deprecated in favor of volcengine.redis.getPitrTimeWindows
Use this data source to query detailed information of redis pitr time periods
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const default = volcengine.redis.getPitrTimeWindows({
ids: [
"redis-cnlficlt4974swtbz",
"redis-cnlfq69d1y1tnguxz",
],
});
import pulumi
import pulumi_volcengine as volcengine
default = volcengine.redis.get_pitr_time_windows(ids=[
"redis-cnlficlt4974swtbz",
"redis-cnlfq69d1y1tnguxz",
])
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/redis"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := redis.GetPitrTimeWindows(ctx, &redis.GetPitrTimeWindowsArgs{
Ids: []string{
"redis-cnlficlt4974swtbz",
"redis-cnlfq69d1y1tnguxz",
},
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var @default = Volcengine.Redis.GetPitrTimeWindows.Invoke(new()
{
Ids = new[]
{
"redis-cnlficlt4974swtbz",
"redis-cnlfq69d1y1tnguxz",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.redis.RedisFunctions;
import com.pulumi.volcengine.redis.inputs.GetPitrTimeWindowsArgs;
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 default = RedisFunctions.getPitrTimeWindows(GetPitrTimeWindowsArgs.builder()
.ids(
"redis-cnlficlt4974swtbz",
"redis-cnlfq69d1y1tnguxz")
.build());
}
}
variables:
default:
fn::invoke:
Function: volcengine:redis:getPitrTimeWindows
Arguments:
ids:
- redis-cnlficlt4974swtbz
- redis-cnlfq69d1y1tnguxz
Using PitrTimeWindows
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 pitrTimeWindows(args: PitrTimeWindowsArgs, opts?: InvokeOptions): Promise<PitrTimeWindowsResult>
function pitrTimeWindowsOutput(args: PitrTimeWindowsOutputArgs, opts?: InvokeOptions): Output<PitrTimeWindowsResult>def pitr_time_windows(ids: Optional[Sequence[str]] = None,
output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> PitrTimeWindowsResult
def pitr_time_windows_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[PitrTimeWindowsResult]func PitrTimeWindows(ctx *Context, args *PitrTimeWindowsArgs, opts ...InvokeOption) (*PitrTimeWindowsResult, error)
func PitrTimeWindowsOutput(ctx *Context, args *PitrTimeWindowsOutputArgs, opts ...InvokeOption) PitrTimeWindowsResultOutputpublic static class PitrTimeWindows
{
public static Task<PitrTimeWindowsResult> InvokeAsync(PitrTimeWindowsArgs args, InvokeOptions? opts = null)
public static Output<PitrTimeWindowsResult> Invoke(PitrTimeWindowsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<PitrTimeWindowsResult> pitrTimeWindows(PitrTimeWindowsArgs args, InvokeOptions options)
public static Output<PitrTimeWindowsResult> pitrTimeWindows(PitrTimeWindowsArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:redis:PitrTimeWindows
arguments:
# arguments dictionaryThe following arguments are supported:
- Ids List<string>
- The ids of the instances.
- Output
File string - File name where to save data source results.
- Ids []string
- The ids of the instances.
- Output
File string - File name where to save data source results.
- ids List<String>
- The ids of the instances.
- output
File String - File name where to save data source results.
- ids string[]
- The ids of the instances.
- output
File string - File name where to save data source results.
- ids Sequence[str]
- The ids of the instances.
- output_
file str - File name where to save data source results.
- ids List<String>
- The ids of the instances.
- output
File String - File name where to save data source results.
PitrTimeWindows Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Periods
List<Pitr
Time Windows Period> - The list of time windows.
- Total
Count int - The total count of redis instances time window query.
- Output
File string
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Periods
[]Pitr
Time Windows Period - The list of time windows.
- Total
Count int - The total count of redis instances time window query.
- Output
File string
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- periods
List<Pitr
Time Windows Period> - The list of time windows.
- total
Count Integer - The total count of redis instances time window query.
- output
File String
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- periods
Pitr
Time Windows Period[] - The list of time windows.
- total
Count number - The total count of redis instances time window query.
- output
File string
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- periods
Sequence[Pitr
Time Windows Period] - The list of time windows.
- total_
count int - The total count of redis instances time window query.
- output_
file str
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- periods List<Property Map>
- The list of time windows.
- total
Count Number - The total count of redis instances time window query.
- output
File String
Supporting Types
PitrTimeWindowsPeriod
- End
Time string - Recoverable end time (UTC time) supported when restoring data by point in time.
- Instance
Id string - The instance id.
- Start
Time string - The recoverable start time (in UTC time) supported when restoring data by point in time.
- End
Time string - Recoverable end time (UTC time) supported when restoring data by point in time.
- Instance
Id string - The instance id.
- Start
Time string - The recoverable start time (in UTC time) supported when restoring data by point in time.
- end
Time String - Recoverable end time (UTC time) supported when restoring data by point in time.
- instance
Id String - The instance id.
- start
Time String - The recoverable start time (in UTC time) supported when restoring data by point in time.
- end
Time string - Recoverable end time (UTC time) supported when restoring data by point in time.
- instance
Id string - The instance id.
- start
Time string - The recoverable start time (in UTC time) supported when restoring data by point in time.
- end_
time str - Recoverable end time (UTC time) supported when restoring data by point in time.
- instance_
id str - The instance id.
- start_
time str - The recoverable start time (in UTC time) supported when restoring data by point in time.
- end
Time String - Recoverable end time (UTC time) supported when restoring data by point in time.
- instance
Id String - The instance id.
- start
Time String - The recoverable start time (in UTC time) supported when restoring data by point in time.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengineTerraform Provider.
