1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getPostgresqlXlogs
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.getPostgresqlXlogs

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provide a datasource to query PostgreSQL Xlogs.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const foo = tencentcloud.getPostgresqlXlogs({
        endTime: "2022-01-07 01:02:03",
        instanceId: "postgres-xxxxxxxx",
        startTime: "2022-01-01 00:00:00",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    foo = tencentcloud.get_postgresql_xlogs(end_time="2022-01-07 01:02:03",
        instance_id="postgres-xxxxxxxx",
        start_time="2022-01-01 00:00:00")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.GetPostgresqlXlogs(ctx, &tencentcloud.GetPostgresqlXlogsArgs{
    			EndTime:    pulumi.StringRef("2022-01-07 01:02:03"),
    			InstanceId: "postgres-xxxxxxxx",
    			StartTime:  pulumi.StringRef("2022-01-01 00:00:00"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = Tencentcloud.GetPostgresqlXlogs.Invoke(new()
        {
            EndTime = "2022-01-07 01:02:03",
            InstanceId = "postgres-xxxxxxxx",
            StartTime = "2022-01-01 00:00:00",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TencentcloudFunctions;
    import com.pulumi.tencentcloud.inputs.GetPostgresqlXlogsArgs;
    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 foo = TencentcloudFunctions.getPostgresqlXlogs(GetPostgresqlXlogsArgs.builder()
                .endTime("2022-01-07 01:02:03")
                .instanceId("postgres-xxxxxxxx")
                .startTime("2022-01-01 00:00:00")
                .build());
    
        }
    }
    
    variables:
      foo:
        fn::invoke:
          function: tencentcloud:getPostgresqlXlogs
          arguments:
            endTime: 2022-01-07 01:02:03
            instanceId: postgres-xxxxxxxx
            startTime: 2022-01-01 00:00:00
    

    Using getPostgresqlXlogs

    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 getPostgresqlXlogs(args: GetPostgresqlXlogsArgs, opts?: InvokeOptions): Promise<GetPostgresqlXlogsResult>
    function getPostgresqlXlogsOutput(args: GetPostgresqlXlogsOutputArgs, opts?: InvokeOptions): Output<GetPostgresqlXlogsResult>
    def get_postgresql_xlogs(end_time: Optional[str] = None,
                             id: Optional[str] = None,
                             instance_id: Optional[str] = None,
                             result_output_file: Optional[str] = None,
                             start_time: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetPostgresqlXlogsResult
    def get_postgresql_xlogs_output(end_time: Optional[pulumi.Input[str]] = None,
                             id: Optional[pulumi.Input[str]] = None,
                             instance_id: Optional[pulumi.Input[str]] = None,
                             result_output_file: Optional[pulumi.Input[str]] = None,
                             start_time: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetPostgresqlXlogsResult]
    func GetPostgresqlXlogs(ctx *Context, args *GetPostgresqlXlogsArgs, opts ...InvokeOption) (*GetPostgresqlXlogsResult, error)
    func GetPostgresqlXlogsOutput(ctx *Context, args *GetPostgresqlXlogsOutputArgs, opts ...InvokeOption) GetPostgresqlXlogsResultOutput

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

    public static class GetPostgresqlXlogs 
    {
        public static Task<GetPostgresqlXlogsResult> InvokeAsync(GetPostgresqlXlogsArgs args, InvokeOptions? opts = null)
        public static Output<GetPostgresqlXlogsResult> Invoke(GetPostgresqlXlogsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetPostgresqlXlogsResult> getPostgresqlXlogs(GetPostgresqlXlogsArgs args, InvokeOptions options)
    public static Output<GetPostgresqlXlogsResult> getPostgresqlXlogs(GetPostgresqlXlogsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getPostgresqlXlogs:getPostgresqlXlogs
      arguments:
        # arguments dictionary

    The following arguments are supported:

    InstanceId string
    PostgreSQL instance id.
    EndTime string
    Xlog end time, format yyyy-MM-dd hh:mm:ss.
    Id string
    Xlog id.
    ResultOutputFile string
    Used for save results.
    StartTime string
    Xlog start time, format yyyy-MM-dd hh:mm:ss, start time cannot before 7 days ago.
    InstanceId string
    PostgreSQL instance id.
    EndTime string
    Xlog end time, format yyyy-MM-dd hh:mm:ss.
    Id string
    Xlog id.
    ResultOutputFile string
    Used for save results.
    StartTime string
    Xlog start time, format yyyy-MM-dd hh:mm:ss, start time cannot before 7 days ago.
    instanceId String
    PostgreSQL instance id.
    endTime String
    Xlog end time, format yyyy-MM-dd hh:mm:ss.
    id String
    Xlog id.
    resultOutputFile String
    Used for save results.
    startTime String
    Xlog start time, format yyyy-MM-dd hh:mm:ss, start time cannot before 7 days ago.
    instanceId string
    PostgreSQL instance id.
    endTime string
    Xlog end time, format yyyy-MM-dd hh:mm:ss.
    id string
    Xlog id.
    resultOutputFile string
    Used for save results.
    startTime string
    Xlog start time, format yyyy-MM-dd hh:mm:ss, start time cannot before 7 days ago.
    instance_id str
    PostgreSQL instance id.
    end_time str
    Xlog end time, format yyyy-MM-dd hh:mm:ss.
    id str
    Xlog id.
    result_output_file str
    Used for save results.
    start_time str
    Xlog start time, format yyyy-MM-dd hh:mm:ss, start time cannot before 7 days ago.
    instanceId String
    PostgreSQL instance id.
    endTime String
    Xlog end time, format yyyy-MM-dd hh:mm:ss.
    id String
    Xlog id.
    resultOutputFile String
    Used for save results.
    startTime String
    Xlog start time, format yyyy-MM-dd hh:mm:ss, start time cannot before 7 days ago.

    getPostgresqlXlogs Result

    The following output properties are available:

    Id string
    Xlog id.
    InstanceId string
    Lists List<GetPostgresqlXlogsList>
    List of Xlog query result.
    EndTime string
    Xlog file created end time.
    ResultOutputFile string
    StartTime string
    Xlog file created start time.
    Id string
    Xlog id.
    InstanceId string
    Lists []GetPostgresqlXlogsList
    List of Xlog query result.
    EndTime string
    Xlog file created end time.
    ResultOutputFile string
    StartTime string
    Xlog file created start time.
    id String
    Xlog id.
    instanceId String
    lists List<GetPostgresqlXlogsList>
    List of Xlog query result.
    endTime String
    Xlog file created end time.
    resultOutputFile String
    startTime String
    Xlog file created start time.
    id string
    Xlog id.
    instanceId string
    lists GetPostgresqlXlogsList[]
    List of Xlog query result.
    endTime string
    Xlog file created end time.
    resultOutputFile string
    startTime string
    Xlog file created start time.
    id str
    Xlog id.
    instance_id str
    lists Sequence[GetPostgresqlXlogsList]
    List of Xlog query result.
    end_time str
    Xlog file created end time.
    result_output_file str
    start_time str
    Xlog file created start time.
    id String
    Xlog id.
    instanceId String
    lists List<Property Map>
    List of Xlog query result.
    endTime String
    Xlog file created end time.
    resultOutputFile String
    startTime String
    Xlog file created start time.

    Supporting Types

    GetPostgresqlXlogsList

    EndTime string
    Xlog end time, format yyyy-MM-dd hh:mm:ss.
    ExternalAddr string
    Xlog external download address.
    Id double
    Xlog id.
    InternalAddr string
    Xlog internal download address.
    Size double
    Xlog file size.
    StartTime string
    Xlog start time, format yyyy-MM-dd hh:mm:ss, start time cannot before 7 days ago.
    EndTime string
    Xlog end time, format yyyy-MM-dd hh:mm:ss.
    ExternalAddr string
    Xlog external download address.
    Id float64
    Xlog id.
    InternalAddr string
    Xlog internal download address.
    Size float64
    Xlog file size.
    StartTime string
    Xlog start time, format yyyy-MM-dd hh:mm:ss, start time cannot before 7 days ago.
    endTime String
    Xlog end time, format yyyy-MM-dd hh:mm:ss.
    externalAddr String
    Xlog external download address.
    id Double
    Xlog id.
    internalAddr String
    Xlog internal download address.
    size Double
    Xlog file size.
    startTime String
    Xlog start time, format yyyy-MM-dd hh:mm:ss, start time cannot before 7 days ago.
    endTime string
    Xlog end time, format yyyy-MM-dd hh:mm:ss.
    externalAddr string
    Xlog external download address.
    id number
    Xlog id.
    internalAddr string
    Xlog internal download address.
    size number
    Xlog file size.
    startTime string
    Xlog start time, format yyyy-MM-dd hh:mm:ss, start time cannot before 7 days ago.
    end_time str
    Xlog end time, format yyyy-MM-dd hh:mm:ss.
    external_addr str
    Xlog external download address.
    id float
    Xlog id.
    internal_addr str
    Xlog internal download address.
    size float
    Xlog file size.
    start_time str
    Xlog start time, format yyyy-MM-dd hh:mm:ss, start time cannot before 7 days ago.
    endTime String
    Xlog end time, format yyyy-MM-dd hh:mm:ss.
    externalAddr String
    Xlog external download address.
    id Number
    Xlog id.
    internalAddr String
    Xlog internal download address.
    size Number
    Xlog file size.
    startTime String
    Xlog start time, format yyyy-MM-dd hh:mm:ss, start time cannot before 7 days ago.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack