1. Packages
  2. Volcengine
  3. API Docs
  4. redis
  5. PitrTimeWindows
Volcengine v0.0.37 published on Wednesday, Oct 22, 2025 by Volcengine

volcengine.redis.PitrTimeWindows

Get Started
volcengine logo
Volcengine v0.0.37 published on Wednesday, Oct 22, 2025 by Volcengine
    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) PitrTimeWindowsResultOutput
    public 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 dictionary

    The following arguments are supported:

    Ids List<string>
    The ids of the instances.
    OutputFile string
    File name where to save data source results.
    Ids []string
    The ids of the instances.
    OutputFile string
    File name where to save data source results.
    ids List<String>
    The ids of the instances.
    outputFile String
    File name where to save data source results.
    ids string[]
    The ids of the instances.
    outputFile 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.
    outputFile 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<PitrTimeWindowsPeriod>
    The list of time windows.
    TotalCount int
    The total count of redis instances time window query.
    OutputFile string
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    Periods []PitrTimeWindowsPeriod
    The list of time windows.
    TotalCount int
    The total count of redis instances time window query.
    OutputFile string
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    periods List<PitrTimeWindowsPeriod>
    The list of time windows.
    totalCount Integer
    The total count of redis instances time window query.
    outputFile String
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    periods PitrTimeWindowsPeriod[]
    The list of time windows.
    totalCount number
    The total count of redis instances time window query.
    outputFile string
    id str
    The provider-assigned unique ID for this managed resource.
    ids Sequence[str]
    periods Sequence[PitrTimeWindowsPeriod]
    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.
    totalCount Number
    The total count of redis instances time window query.
    outputFile String

    Supporting Types

    PitrTimeWindowsPeriod

    EndTime string
    Recoverable end time (UTC time) supported when restoring data by point in time.
    InstanceId string
    The instance id.
    StartTime string
    The recoverable start time (in UTC time) supported when restoring data by point in time.
    EndTime string
    Recoverable end time (UTC time) supported when restoring data by point in time.
    InstanceId string
    The instance id.
    StartTime string
    The recoverable start time (in UTC time) supported when restoring data by point in time.
    endTime String
    Recoverable end time (UTC time) supported when restoring data by point in time.
    instanceId String
    The instance id.
    startTime String
    The recoverable start time (in UTC time) supported when restoring data by point in time.
    endTime string
    Recoverable end time (UTC time) supported when restoring data by point in time.
    instanceId string
    The instance id.
    startTime 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.
    endTime String
    Recoverable end time (UTC time) supported when restoring data by point in time.
    instanceId String
    The instance id.
    startTime 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 volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.37 published on Wednesday, Oct 22, 2025 by Volcengine
      Meet Neo: Your AI Platform Teammate