1. Packages
  2. Volcengine
  3. API Docs
  4. rds_postgresql
  5. getInstanceRecoverableTimes
Volcengine v0.0.43 published on Friday, Jan 16, 2026 by Volcengine
volcengine logo
Volcengine v0.0.43 published on Friday, Jan 16, 2026 by Volcengine

    Use this data source to query detailed information of rds postgresql instance recoverable times

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@pulumi/volcengine";
    
    const example = volcengine.rds_postgresql.getInstanceRecoverableTimes({
        instanceId: "postgres-72715e0d9f58",
    });
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    example = volcengine.rds_postgresql.get_instance_recoverable_times(instance_id="postgres-72715e0d9f58")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/rds_postgresql"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := rds_postgresql.GetInstanceRecoverableTimes(ctx, &rds_postgresql.GetInstanceRecoverableTimesArgs{
    			InstanceId: "postgres-72715e0d9f58",
    		}, 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 example = Volcengine.Rds_postgresql.GetInstanceRecoverableTimes.Invoke(new()
        {
            InstanceId = "postgres-72715e0d9f58",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.volcengine.rds_postgresql.Rds_postgresqlFunctions;
    import com.pulumi.volcengine.rds_postgresql.inputs.GetInstanceRecoverableTimesArgs;
    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 example = Rds_postgresqlFunctions.getInstanceRecoverableTimes(GetInstanceRecoverableTimesArgs.builder()
                .instanceId("postgres-72715e0d9f58")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: volcengine:rds_postgresql:getInstanceRecoverableTimes
          Arguments:
            instanceId: postgres-72715e0d9f58
    

    Using getInstanceRecoverableTimes

    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 getInstanceRecoverableTimes(args: GetInstanceRecoverableTimesArgs, opts?: InvokeOptions): Promise<GetInstanceRecoverableTimesResult>
    function getInstanceRecoverableTimesOutput(args: GetInstanceRecoverableTimesOutputArgs, opts?: InvokeOptions): Output<GetInstanceRecoverableTimesResult>
    def get_instance_recoverable_times(instance_id: Optional[str] = None,
                                       output_file: Optional[str] = None,
                                       opts: Optional[InvokeOptions] = None) -> GetInstanceRecoverableTimesResult
    def get_instance_recoverable_times_output(instance_id: Optional[pulumi.Input[str]] = None,
                                       output_file: Optional[pulumi.Input[str]] = None,
                                       opts: Optional[InvokeOptions] = None) -> Output[GetInstanceRecoverableTimesResult]
    func GetInstanceRecoverableTimes(ctx *Context, args *GetInstanceRecoverableTimesArgs, opts ...InvokeOption) (*GetInstanceRecoverableTimesResult, error)
    func GetInstanceRecoverableTimesOutput(ctx *Context, args *GetInstanceRecoverableTimesOutputArgs, opts ...InvokeOption) GetInstanceRecoverableTimesResultOutput

    > Note: This function is named GetInstanceRecoverableTimes in the Go SDK.

    public static class GetInstanceRecoverableTimes 
    {
        public static Task<GetInstanceRecoverableTimesResult> InvokeAsync(GetInstanceRecoverableTimesArgs args, InvokeOptions? opts = null)
        public static Output<GetInstanceRecoverableTimesResult> Invoke(GetInstanceRecoverableTimesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetInstanceRecoverableTimesResult> getInstanceRecoverableTimes(GetInstanceRecoverableTimesArgs args, InvokeOptions options)
    public static Output<GetInstanceRecoverableTimesResult> getInstanceRecoverableTimes(GetInstanceRecoverableTimesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: volcengine:rds_postgresql/getInstanceRecoverableTimes:getInstanceRecoverableTimes
      arguments:
        # arguments dictionary

    The following arguments are supported:

    InstanceId string
    The id of the Postgresql instance.
    OutputFile string
    File name where to save data source results.
    InstanceId string
    The id of the Postgresql instance.
    OutputFile string
    File name where to save data source results.
    instanceId String
    The id of the Postgresql instance.
    outputFile String
    File name where to save data source results.
    instanceId string
    The id of the Postgresql instance.
    outputFile string
    File name where to save data source results.
    instance_id str
    The id of the Postgresql instance.
    output_file str
    File name where to save data source results.
    instanceId String
    The id of the Postgresql instance.
    outputFile String
    File name where to save data source results.

    getInstanceRecoverableTimes Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceId string
    RecoverableTimeInfos List<GetInstanceRecoverableTimesRecoverableTimeInfo>
    The earliest and latest recoverable times of the instance (UTC time). If it is empty, it indicates that the instance is currently unrecoverable.
    TotalCount int
    The total count of query.
    OutputFile string
    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceId string
    RecoverableTimeInfos []GetInstanceRecoverableTimesRecoverableTimeInfo
    The earliest and latest recoverable times of the instance (UTC time). If it is empty, it indicates that the instance is currently unrecoverable.
    TotalCount int
    The total count of query.
    OutputFile string
    id String
    The provider-assigned unique ID for this managed resource.
    instanceId String
    recoverableTimeInfos List<GetInstanceRecoverableTimesRecoverableTimeInfo>
    The earliest and latest recoverable times of the instance (UTC time). If it is empty, it indicates that the instance is currently unrecoverable.
    totalCount Integer
    The total count of query.
    outputFile String
    id string
    The provider-assigned unique ID for this managed resource.
    instanceId string
    recoverableTimeInfos GetInstanceRecoverableTimesRecoverableTimeInfo[]
    The earliest and latest recoverable times of the instance (UTC time). If it is empty, it indicates that the instance is currently unrecoverable.
    totalCount number
    The total count of query.
    outputFile string
    id str
    The provider-assigned unique ID for this managed resource.
    instance_id str
    recoverable_time_infos Sequence[GetInstanceRecoverableTimesRecoverableTimeInfo]
    The earliest and latest recoverable times of the instance (UTC time). If it is empty, it indicates that the instance is currently unrecoverable.
    total_count int
    The total count of query.
    output_file str
    id String
    The provider-assigned unique ID for this managed resource.
    instanceId String
    recoverableTimeInfos List<Property Map>
    The earliest and latest recoverable times of the instance (UTC time). If it is empty, it indicates that the instance is currently unrecoverable.
    totalCount Number
    The total count of query.
    outputFile String

    Supporting Types

    GetInstanceRecoverableTimesRecoverableTimeInfo

    EarliestRecoverableTime string
    The earliest recoverable time of the instance (UTC time).
    LatestRecoverableTime string
    The latest recoverable time of the instance (UTC time).
    EarliestRecoverableTime string
    The earliest recoverable time of the instance (UTC time).
    LatestRecoverableTime string
    The latest recoverable time of the instance (UTC time).
    earliestRecoverableTime String
    The earliest recoverable time of the instance (UTC time).
    latestRecoverableTime String
    The latest recoverable time of the instance (UTC time).
    earliestRecoverableTime string
    The earliest recoverable time of the instance (UTC time).
    latestRecoverableTime string
    The latest recoverable time of the instance (UTC time).
    earliest_recoverable_time str
    The earliest recoverable time of the instance (UTC time).
    latest_recoverable_time str
    The latest recoverable time of the instance (UTC time).
    earliestRecoverableTime String
    The earliest recoverable time of the instance (UTC time).
    latestRecoverableTime String
    The latest recoverable time of the instance (UTC 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.43 published on Friday, Jan 16, 2026 by Volcengine
      Meet Neo: Your AI Platform Teammate