Volcengine v0.0.43 published on Friday, Jan 16, 2026 by Volcengine
Volcengine v0.0.43 published on Friday, Jan 16, 2026 by Volcengine
Deprecated: volcengine.rds_postgresql.InstanceFailoverLogs has been deprecated in favor of volcengine.rds_postgresql.getInstanceFailoverLogs
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 InstanceFailoverLogs
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 instanceFailoverLogs(args: InstanceFailoverLogsArgs, opts?: InvokeOptions): Promise<InstanceFailoverLogsResult>
function instanceFailoverLogsOutput(args: InstanceFailoverLogsOutputArgs, opts?: InvokeOptions): Output<InstanceFailoverLogsResult>def 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) -> InstanceFailoverLogsResult
def 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[InstanceFailoverLogsResult]func InstanceFailoverLogs(ctx *Context, args *InstanceFailoverLogsArgs, opts ...InvokeOption) (*InstanceFailoverLogsResult, error)
func InstanceFailoverLogsOutput(ctx *Context, args *InstanceFailoverLogsOutputArgs, opts ...InvokeOption) InstanceFailoverLogsResultOutputpublic static class InstanceFailoverLogs
{
public static Task<InstanceFailoverLogsResult> InvokeAsync(InstanceFailoverLogsArgs args, InvokeOptions? opts = null)
public static Output<InstanceFailoverLogsResult> Invoke(InstanceFailoverLogsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<InstanceFailoverLogsResult> instanceFailoverLogs(InstanceFailoverLogsArgs args, InvokeOptions options)
public static Output<InstanceFailoverLogsResult> instanceFailoverLogs(InstanceFailoverLogsArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:rds_postgresql:InstanceFailoverLogs
arguments:
# arguments dictionaryThe following arguments are supported:
- Instance
Id string - The ID of the PostgreSQL instance.
- Limit int
- The number of records per page. Max: 1000, Min: 1.
- Output
File string - File name where to save data source results.
- Query
End stringTime - The end time of the query. Format: yyyy-MM-ddTHH:mmZ (UTC time).
- Query
Start stringTime - The start time of the query. Format: yyyy-MM-ddTHH:mmZ (UTC time).
- Instance
Id string - The ID of the PostgreSQL instance.
- Limit int
- The number of records per page. Max: 1000, Min: 1.
- Output
File string - File name where to save data source results.
- Query
End stringTime - The end time of the query. Format: yyyy-MM-ddTHH:mmZ (UTC time).
- Query
Start stringTime - The start time of the query. Format: yyyy-MM-ddTHH:mmZ (UTC time).
- instance
Id String - The ID of the PostgreSQL instance.
- limit Integer
- The number of records per page. Max: 1000, Min: 1.
- output
File String - File name where to save data source results.
- query
End StringTime - The end time of the query. Format: yyyy-MM-ddTHH:mmZ (UTC time).
- query
Start StringTime - The start time of the query. Format: yyyy-MM-ddTHH:mmZ (UTC time).
- instance
Id string - The ID of the PostgreSQL instance.
- limit number
- The number of records per page. Max: 1000, Min: 1.
- output
File string - File name where to save data source results.
- query
End stringTime - The end time of the query. Format: yyyy-MM-ddTHH:mmZ (UTC time).
- query
Start stringTime - 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_ strtime - The end time of the query. Format: yyyy-MM-ddTHH:mmZ (UTC time).
- query_
start_ strtime - The start time of the query. Format: yyyy-MM-ddTHH:mmZ (UTC time).
- instance
Id String - The ID of the PostgreSQL instance.
- limit Number
- The number of records per page. Max: 1000, Min: 1.
- output
File String - File name where to save data source results.
- query
End StringTime - The end time of the query. Format: yyyy-MM-ddTHH:mmZ (UTC time).
- query
Start StringTime - The start time of the query. Format: yyyy-MM-ddTHH:mmZ (UTC time).
InstanceFailoverLogs Result
The following output properties are available:
- Failover
Logs List<InstanceFailover Logs Failover Log> - The collection of failover logs.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Id string - Total
Count int - The total count of query.
- Limit int
- Output
File string - Query
End stringTime - Query
Start stringTime
- Failover
Logs []InstanceFailover Logs Failover Log - The collection of failover logs.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Id string - Total
Count int - The total count of query.
- Limit int
- Output
File string - Query
End stringTime - Query
Start stringTime
- failover
Logs List<InstanceFailover Logs Failover Log> - The collection of failover logs.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Id String - total
Count Integer - The total count of query.
- limit Integer
- output
File String - query
End StringTime - query
Start StringTime
- failover
Logs InstanceFailover Logs Failover Log[] - The collection of failover logs.
- id string
- The provider-assigned unique ID for this managed resource.
- instance
Id string - total
Count number - The total count of query.
- limit number
- output
File string - query
End stringTime - query
Start stringTime
- failover_
logs Sequence[InstanceFailover Logs Failover Log] - 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_ strtime - query_
start_ strtime
- failover
Logs List<Property Map> - The collection of failover logs.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Id String - total
Count Number - The total count of query.
- limit Number
- output
File String - query
End StringTime - query
Start StringTime
Supporting Types
InstanceFailoverLogsFailoverLog
- Failover
Time string - The time when the failover occurred. Format: yyyy-MM-ddTHH:mm:ss.sssZ (UTC time).
- Failover
Type string - The type of the failover, such as User or System.
- New
Master stringNode Id - The node ID of the new master after failover.
- Old
Master stringNode Id - The node ID of the old master before failover.
- Failover
Time string - The time when the failover occurred. Format: yyyy-MM-ddTHH:mm:ss.sssZ (UTC time).
- Failover
Type string - The type of the failover, such as User or System.
- New
Master stringNode Id - The node ID of the new master after failover.
- Old
Master stringNode Id - The node ID of the old master before failover.
- failover
Time String - The time when the failover occurred. Format: yyyy-MM-ddTHH:mm:ss.sssZ (UTC time).
- failover
Type String - The type of the failover, such as User or System.
- new
Master StringNode Id - The node ID of the new master after failover.
- old
Master StringNode Id - The node ID of the old master before failover.
- failover
Time string - The time when the failover occurred. Format: yyyy-MM-ddTHH:mm:ss.sssZ (UTC time).
- failover
Type string - The type of the failover, such as User or System.
- new
Master stringNode Id - The node ID of the new master after failover.
- old
Master stringNode Id - 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_ strnode_ id - The node ID of the new master after failover.
- old_
master_ strnode_ id - The node ID of the old master before failover.
- failover
Time String - The time when the failover occurred. Format: yyyy-MM-ddTHH:mm:ss.sssZ (UTC time).
- failover
Type String - The type of the failover, such as User or System.
- new
Master StringNode Id - The node ID of the new master after failover.
- old
Master StringNode Id - 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
volcengineTerraform Provider.
Volcengine v0.0.43 published on Friday, Jan 16, 2026 by Volcengine
