1. Packages
  2. Volcengine
  3. API Docs
  4. rds_postgresql
  5. getInstanceFailoverLogs
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 failover logs

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@pulumi/volcengine";
    
    const example = volcengine.rds_postgresql.getInstanceFailoverLogs({
        instanceId: "postgres-72******9f58",
        limit: 1000,
        queryEndTime: "2025-12-12T17:00:00Z",
        queryStartTime: "2025-12-10T16:00:00Z",
    });
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    example = volcengine.rds_postgresql.get_instance_failover_logs(instance_id="postgres-72******9f58",
        limit=1000,
        query_end_time="2025-12-12T17:00:00Z",
        query_start_time="2025-12-10T16:00:00Z")
    
    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.GetInstanceFailoverLogs(ctx, &rds_postgresql.GetInstanceFailoverLogsArgs{
    			InstanceId:     "postgres-72******9f58",
    			Limit:          pulumi.IntRef(1000),
    			QueryEndTime:   pulumi.StringRef("2025-12-12T17:00:00Z"),
    			QueryStartTime: pulumi.StringRef("2025-12-10T16:00:00Z"),
    		}, 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.GetInstanceFailoverLogs.Invoke(new()
        {
            InstanceId = "postgres-72******9f58",
            Limit = 1000,
            QueryEndTime = "2025-12-12T17:00:00Z",
            QueryStartTime = "2025-12-10T16:00:00Z",
        });
    
    });
    
    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.GetInstanceFailoverLogsArgs;
    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.getInstanceFailoverLogs(GetInstanceFailoverLogsArgs.builder()
                .instanceId("postgres-72******9f58")
                .limit(1000)
                .queryEndTime("2025-12-12T17:00:00Z")
                .queryStartTime("2025-12-10T16:00:00Z")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: volcengine:rds_postgresql:getInstanceFailoverLogs
          Arguments:
            instanceId: postgres-72******9f58
            limit: 1000
            queryEndTime: 2025-12-12T17:00:00Z
            queryStartTime: 2025-12-10T16:00:00Z
    

    Using getInstanceFailoverLogs

    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 getInstanceFailoverLogs(args: GetInstanceFailoverLogsArgs, opts?: InvokeOptions): Promise<GetInstanceFailoverLogsResult>
    function getInstanceFailoverLogsOutput(args: GetInstanceFailoverLogsOutputArgs, opts?: InvokeOptions): Output<GetInstanceFailoverLogsResult>
    def get_instance_failover_logs(instance_id: Optional[str] = None,
                                   limit: Optional[int] = None,
                                   output_file: Optional[str] = None,
                                   query_end_time: Optional[str] = None,
                                   query_start_time: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetInstanceFailoverLogsResult
    def get_instance_failover_logs_output(instance_id: Optional[pulumi.Input[str]] = None,
                                   limit: Optional[pulumi.Input[int]] = None,
                                   output_file: Optional[pulumi.Input[str]] = None,
                                   query_end_time: Optional[pulumi.Input[str]] = None,
                                   query_start_time: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetInstanceFailoverLogsResult]
    func GetInstanceFailoverLogs(ctx *Context, args *GetInstanceFailoverLogsArgs, opts ...InvokeOption) (*GetInstanceFailoverLogsResult, error)
    func GetInstanceFailoverLogsOutput(ctx *Context, args *GetInstanceFailoverLogsOutputArgs, opts ...InvokeOption) GetInstanceFailoverLogsResultOutput

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

    public static class GetInstanceFailoverLogs 
    {
        public static Task<GetInstanceFailoverLogsResult> InvokeAsync(GetInstanceFailoverLogsArgs args, InvokeOptions? opts = null)
        public static Output<GetInstanceFailoverLogsResult> Invoke(GetInstanceFailoverLogsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetInstanceFailoverLogsResult> getInstanceFailoverLogs(GetInstanceFailoverLogsArgs args, InvokeOptions options)
    public static Output<GetInstanceFailoverLogsResult> getInstanceFailoverLogs(GetInstanceFailoverLogsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: volcengine:rds_postgresql/getInstanceFailoverLogs:getInstanceFailoverLogs
      arguments:
        # arguments dictionary

    The following arguments are supported:

    InstanceId string
    The ID of the PostgreSQL instance.
    Limit int
    The number of records per page. Max: 1000, Min: 1.
    OutputFile string
    File name where to save data source results.
    QueryEndTime string
    The end time of the query. Format: yyyy-MM-ddTHH:mmZ (UTC time).
    QueryStartTime string
    The start time of the query. Format: yyyy-MM-ddTHH:mmZ (UTC time).
    InstanceId string
    The ID of the PostgreSQL instance.
    Limit int
    The number of records per page. Max: 1000, Min: 1.
    OutputFile string
    File name where to save data source results.
    QueryEndTime string
    The end time of the query. Format: yyyy-MM-ddTHH:mmZ (UTC time).
    QueryStartTime string
    The start time of the query. Format: yyyy-MM-ddTHH:mmZ (UTC time).
    instanceId String
    The ID of the PostgreSQL instance.
    limit Integer
    The number of records per page. Max: 1000, Min: 1.
    outputFile String
    File name where to save data source results.
    queryEndTime String
    The end time of the query. Format: yyyy-MM-ddTHH:mmZ (UTC time).
    queryStartTime String
    The start time of the query. Format: yyyy-MM-ddTHH:mmZ (UTC time).
    instanceId string
    The ID of the PostgreSQL instance.
    limit number
    The number of records per page. Max: 1000, Min: 1.
    outputFile string
    File name where to save data source results.
    queryEndTime string
    The end time of the query. Format: yyyy-MM-ddTHH:mmZ (UTC time).
    queryStartTime string
    The start time of the query. Format: yyyy-MM-ddTHH:mmZ (UTC time).
    instance_id str
    The ID of the PostgreSQL instance.
    limit int
    The number of records per page. Max: 1000, Min: 1.
    output_file str
    File name where to save data source results.
    query_end_time str
    The end time of the query. Format: yyyy-MM-ddTHH:mmZ (UTC time).
    query_start_time str
    The start time of the query. Format: yyyy-MM-ddTHH:mmZ (UTC time).
    instanceId String
    The ID of the PostgreSQL instance.
    limit Number
    The number of records per page. Max: 1000, Min: 1.
    outputFile String
    File name where to save data source results.
    queryEndTime String
    The end time of the query. Format: yyyy-MM-ddTHH:mmZ (UTC time).
    queryStartTime String
    The start time of the query. Format: yyyy-MM-ddTHH:mmZ (UTC time).

    getInstanceFailoverLogs Result

    The following output properties are available:

    FailoverLogs List<GetInstanceFailoverLogsFailoverLog>
    The collection of failover logs.
    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceId string
    TotalCount int
    The total count of query.
    Limit int
    OutputFile string
    QueryEndTime string
    QueryStartTime string
    FailoverLogs []GetInstanceFailoverLogsFailoverLog
    The collection of failover logs.
    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceId string
    TotalCount int
    The total count of query.
    Limit int
    OutputFile string
    QueryEndTime string
    QueryStartTime string
    failoverLogs List<GetInstanceFailoverLogsFailoverLog>
    The collection of failover logs.
    id String
    The provider-assigned unique ID for this managed resource.
    instanceId String
    totalCount Integer
    The total count of query.
    limit Integer
    outputFile String
    queryEndTime String
    queryStartTime String
    failoverLogs GetInstanceFailoverLogsFailoverLog[]
    The collection of failover logs.
    id string
    The provider-assigned unique ID for this managed resource.
    instanceId string
    totalCount number
    The total count of query.
    limit number
    outputFile string
    queryEndTime string
    queryStartTime string
    failover_logs Sequence[GetInstanceFailoverLogsFailoverLog]
    The collection of failover logs.
    id str
    The provider-assigned unique ID for this managed resource.
    instance_id str
    total_count int
    The total count of query.
    limit int
    output_file str
    query_end_time str
    query_start_time str
    failoverLogs List<Property Map>
    The collection of failover logs.
    id String
    The provider-assigned unique ID for this managed resource.
    instanceId String
    totalCount Number
    The total count of query.
    limit Number
    outputFile String
    queryEndTime String
    queryStartTime String

    Supporting Types

    GetInstanceFailoverLogsFailoverLog

    FailoverTime string
    The time when the failover occurred. Format: yyyy-MM-ddTHH:mm:ss.sssZ (UTC time).
    FailoverType string
    The type of the failover, such as User or System.
    NewMasterNodeId string
    The node ID of the new master after failover.
    OldMasterNodeId string
    The node ID of the old master before failover.
    FailoverTime string
    The time when the failover occurred. Format: yyyy-MM-ddTHH:mm:ss.sssZ (UTC time).
    FailoverType string
    The type of the failover, such as User or System.
    NewMasterNodeId string
    The node ID of the new master after failover.
    OldMasterNodeId string
    The node ID of the old master before failover.
    failoverTime String
    The time when the failover occurred. Format: yyyy-MM-ddTHH:mm:ss.sssZ (UTC time).
    failoverType String
    The type of the failover, such as User or System.
    newMasterNodeId String
    The node ID of the new master after failover.
    oldMasterNodeId String
    The node ID of the old master before failover.
    failoverTime string
    The time when the failover occurred. Format: yyyy-MM-ddTHH:mm:ss.sssZ (UTC time).
    failoverType string
    The type of the failover, such as User or System.
    newMasterNodeId string
    The node ID of the new master after failover.
    oldMasterNodeId string
    The node ID of the old master before failover.
    failover_time str
    The time when the failover occurred. Format: yyyy-MM-ddTHH:mm:ss.sssZ (UTC time).
    failover_type str
    The type of the failover, such as User or System.
    new_master_node_id str
    The node ID of the new master after failover.
    old_master_node_id str
    The node ID of the old master before failover.
    failoverTime String
    The time when the failover occurred. Format: yyyy-MM-ddTHH:mm:ss.sssZ (UTC time).
    failoverType String
    The type of the failover, such as User or System.
    newMasterNodeId String
    The node ID of the new master after failover.
    oldMasterNodeId String
    The node ID of the old master before failover.

    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