Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
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 getPitrTimeWindows
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 getPitrTimeWindows(args: GetPitrTimeWindowsArgs, opts?: InvokeOptions): Promise<GetPitrTimeWindowsResult>
function getPitrTimeWindowsOutput(args: GetPitrTimeWindowsOutputArgs, opts?: InvokeOptions): Output<GetPitrTimeWindowsResult>def get_pitr_time_windows(ids: Optional[Sequence[str]] = None,
output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPitrTimeWindowsResult
def get_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[GetPitrTimeWindowsResult]func GetPitrTimeWindows(ctx *Context, args *GetPitrTimeWindowsArgs, opts ...InvokeOption) (*GetPitrTimeWindowsResult, error)
func GetPitrTimeWindowsOutput(ctx *Context, args *GetPitrTimeWindowsOutputArgs, opts ...InvokeOption) GetPitrTimeWindowsResultOutput> Note: This function is named GetPitrTimeWindows in the Go SDK.
public static class GetPitrTimeWindows
{
public static Task<GetPitrTimeWindowsResult> InvokeAsync(GetPitrTimeWindowsArgs args, InvokeOptions? opts = null)
public static Output<GetPitrTimeWindowsResult> Invoke(GetPitrTimeWindowsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetPitrTimeWindowsResult> getPitrTimeWindows(GetPitrTimeWindowsArgs args, InvokeOptions options)
public static Output<GetPitrTimeWindowsResult> getPitrTimeWindows(GetPitrTimeWindowsArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:redis/getPitrTimeWindows:getPitrTimeWindows
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.
getPitrTimeWindows Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Periods
List<Get
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
[]Get
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<Get
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
Get
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[Get
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
GetPitrTimeWindowsPeriod
- 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.
Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
