tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack
tencentcloud.getPostgresqlXlogs
Explore with Pulumi AI
tencentcloud 1.81.183 published on Wednesday, Apr 16, 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 dictionaryThe following arguments are supported:
- Instance
Id string - PostgreSQL instance id.
 - End
Time string - Xlog end time, format 
yyyy-MM-dd hh:mm:ss. - Id string
 - Xlog id.
 - Result
Output stringFile  - Used for save results.
 - Start
Time string - Xlog start time, format 
yyyy-MM-dd hh:mm:ss, start time cannot before 7 days ago. 
- Instance
Id string - PostgreSQL instance id.
 - End
Time string - Xlog end time, format 
yyyy-MM-dd hh:mm:ss. - Id string
 - Xlog id.
 - Result
Output stringFile  - Used for save results.
 - Start
Time string - Xlog start time, format 
yyyy-MM-dd hh:mm:ss, start time cannot before 7 days ago. 
- instance
Id String - PostgreSQL instance id.
 - end
Time String - Xlog end time, format 
yyyy-MM-dd hh:mm:ss. - id String
 - Xlog id.
 - result
Output StringFile  - Used for save results.
 - start
Time String - Xlog start time, format 
yyyy-MM-dd hh:mm:ss, start time cannot before 7 days ago. 
- instance
Id string - PostgreSQL instance id.
 - end
Time string - Xlog end time, format 
yyyy-MM-dd hh:mm:ss. - id string
 - Xlog id.
 - result
Output stringFile  - Used for save results.
 - start
Time 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_ strfile  - Used for save results.
 - start_
time str - Xlog start time, format 
yyyy-MM-dd hh:mm:ss, start time cannot before 7 days ago. 
- instance
Id String - PostgreSQL instance id.
 - end
Time String - Xlog end time, format 
yyyy-MM-dd hh:mm:ss. - id String
 - Xlog id.
 - result
Output StringFile  - Used for save results.
 - start
Time 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.
 - Instance
Id string - Lists
List<Get
Postgresql Xlogs List>  - List of Xlog query result.
 - End
Time string - Xlog file created end time.
 - Result
Output stringFile  - Start
Time string - Xlog file created start time.
 
- Id string
 - Xlog id.
 - Instance
Id string - Lists
[]Get
Postgresql Xlogs List  - List of Xlog query result.
 - End
Time string - Xlog file created end time.
 - Result
Output stringFile  - Start
Time string - Xlog file created start time.
 
- id String
 - Xlog id.
 - instance
Id String - lists
List<Get
Postgresql Xlogs List>  - List of Xlog query result.
 - end
Time String - Xlog file created end time.
 - result
Output StringFile  - start
Time String - Xlog file created start time.
 
- id string
 - Xlog id.
 - instance
Id string - lists
Get
Postgresql Xlogs List[]  - List of Xlog query result.
 - end
Time string - Xlog file created end time.
 - result
Output stringFile  - start
Time string - Xlog file created start time.
 
- id str
 - Xlog id.
 - instance_
id str - lists
Sequence[Get
Postgresql Xlogs List]  - List of Xlog query result.
 - end_
time str - Xlog file created end time.
 - result_
output_ strfile  - start_
time str - Xlog file created start time.
 
- id String
 - Xlog id.
 - instance
Id String - lists List<Property Map>
 - List of Xlog query result.
 - end
Time String - Xlog file created end time.
 - result
Output StringFile  - start
Time String - Xlog file created start time.
 
Supporting Types
GetPostgresqlXlogsList   
- End
Time string - Xlog end time, format 
yyyy-MM-dd hh:mm:ss. - External
Addr string - Xlog external download address.
 - Id double
 - Xlog id.
 - Internal
Addr string - Xlog internal download address.
 - Size double
 - Xlog file size.
 - Start
Time string - Xlog start time, format 
yyyy-MM-dd hh:mm:ss, start time cannot before 7 days ago. 
- End
Time string - Xlog end time, format 
yyyy-MM-dd hh:mm:ss. - External
Addr string - Xlog external download address.
 - Id float64
 - Xlog id.
 - Internal
Addr string - Xlog internal download address.
 - Size float64
 - Xlog file size.
 - Start
Time string - Xlog start time, format 
yyyy-MM-dd hh:mm:ss, start time cannot before 7 days ago. 
- end
Time String - Xlog end time, format 
yyyy-MM-dd hh:mm:ss. - external
Addr String - Xlog external download address.
 - id Double
 - Xlog id.
 - internal
Addr String - Xlog internal download address.
 - size Double
 - Xlog file size.
 - start
Time String - Xlog start time, format 
yyyy-MM-dd hh:mm:ss, start time cannot before 7 days ago. 
- end
Time string - Xlog end time, format 
yyyy-MM-dd hh:mm:ss. - external
Addr string - Xlog external download address.
 - id number
 - Xlog id.
 - internal
Addr string - Xlog internal download address.
 - size number
 - Xlog file size.
 - start
Time 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. 
- end
Time String - Xlog end time, format 
yyyy-MM-dd hh:mm:ss. - external
Addr String - Xlog external download address.
 - id Number
 - Xlog id.
 - internal
Addr String - Xlog internal download address.
 - size Number
 - Xlog file size.
 - start
Time 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 
tencentcloudTerraform Provider. 
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack