1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getDcdbLogFiles
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack

tencentcloud.getDcdbLogFiles

Explore with Pulumi AI

tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack

Use this data source to query detailed information of dcdb log_files

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";

const logFiles = tencentcloud.getDcdbLogFiles({
    instanceId: local.dcdb_id,
    shardId: "shard-1b5r04az",
    type: 1,
});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

log_files = tencentcloud.get_dcdb_log_files(instance_id=local["dcdb_id"],
    shard_id="shard-1b5r04az",
    type=1)
Copy
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.GetDcdbLogFiles(ctx, &tencentcloud.GetDcdbLogFilesArgs{
			InstanceId: local.Dcdb_id,
			ShardId:    "shard-1b5r04az",
			Type:       1,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;

return await Deployment.RunAsync(() => 
{
    var logFiles = Tencentcloud.GetDcdbLogFiles.Invoke(new()
    {
        InstanceId = local.Dcdb_id,
        ShardId = "shard-1b5r04az",
        Type = 1,
    });

});
Copy
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.GetDcdbLogFilesArgs;
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 logFiles = TencentcloudFunctions.getDcdbLogFiles(GetDcdbLogFilesArgs.builder()
            .instanceId(local.dcdb_id())
            .shardId("shard-1b5r04az")
            .type(1)
            .build());

    }
}
Copy
variables:
  logFiles:
    fn::invoke:
      function: tencentcloud:getDcdbLogFiles
      arguments:
        instanceId: ${local.dcdb_id}
        shardId: shard-1b5r04az
        type: 1
Copy

Using getDcdbLogFiles

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 getDcdbLogFiles(args: GetDcdbLogFilesArgs, opts?: InvokeOptions): Promise<GetDcdbLogFilesResult>
function getDcdbLogFilesOutput(args: GetDcdbLogFilesOutputArgs, opts?: InvokeOptions): Output<GetDcdbLogFilesResult>
Copy
def get_dcdb_log_files(id: Optional[str] = None,
                       instance_id: Optional[str] = None,
                       result_output_file: Optional[str] = None,
                       shard_id: Optional[str] = None,
                       type: Optional[float] = None,
                       opts: Optional[InvokeOptions] = None) -> GetDcdbLogFilesResult
def get_dcdb_log_files_output(id: Optional[pulumi.Input[str]] = None,
                       instance_id: Optional[pulumi.Input[str]] = None,
                       result_output_file: Optional[pulumi.Input[str]] = None,
                       shard_id: Optional[pulumi.Input[str]] = None,
                       type: Optional[pulumi.Input[float]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetDcdbLogFilesResult]
Copy
func GetDcdbLogFiles(ctx *Context, args *GetDcdbLogFilesArgs, opts ...InvokeOption) (*GetDcdbLogFilesResult, error)
func GetDcdbLogFilesOutput(ctx *Context, args *GetDcdbLogFilesOutputArgs, opts ...InvokeOption) GetDcdbLogFilesResultOutput
Copy

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

public static class GetDcdbLogFiles 
{
    public static Task<GetDcdbLogFilesResult> InvokeAsync(GetDcdbLogFilesArgs args, InvokeOptions? opts = null)
    public static Output<GetDcdbLogFilesResult> Invoke(GetDcdbLogFilesInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetDcdbLogFilesResult> getDcdbLogFiles(GetDcdbLogFilesArgs args, InvokeOptions options)
public static Output<GetDcdbLogFilesResult> getDcdbLogFiles(GetDcdbLogFilesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: tencentcloud:index/getDcdbLogFiles:getDcdbLogFiles
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

InstanceId This property is required. string
Instance ID in the format of tdsqlshard-ow728lmc.
ShardId This property is required. string
Instance shard ID in the format of shard-rc754ljk.
Type This property is required. double
Requested log type. Valid values: 1 (binlog), 2 (cold backup), 3 (errlog), 4 (slowlog).
Id string
ResultOutputFile string
Used to save results.
InstanceId This property is required. string
Instance ID in the format of tdsqlshard-ow728lmc.
ShardId This property is required. string
Instance shard ID in the format of shard-rc754ljk.
Type This property is required. float64
Requested log type. Valid values: 1 (binlog), 2 (cold backup), 3 (errlog), 4 (slowlog).
Id string
ResultOutputFile string
Used to save results.
instanceId This property is required. String
Instance ID in the format of tdsqlshard-ow728lmc.
shardId This property is required. String
Instance shard ID in the format of shard-rc754ljk.
type This property is required. Double
Requested log type. Valid values: 1 (binlog), 2 (cold backup), 3 (errlog), 4 (slowlog).
id String
resultOutputFile String
Used to save results.
instanceId This property is required. string
Instance ID in the format of tdsqlshard-ow728lmc.
shardId This property is required. string
Instance shard ID in the format of shard-rc754ljk.
type This property is required. number
Requested log type. Valid values: 1 (binlog), 2 (cold backup), 3 (errlog), 4 (slowlog).
id string
resultOutputFile string
Used to save results.
instance_id This property is required. str
Instance ID in the format of tdsqlshard-ow728lmc.
shard_id This property is required. str
Instance shard ID in the format of shard-rc754ljk.
type This property is required. float
Requested log type. Valid values: 1 (binlog), 2 (cold backup), 3 (errlog), 4 (slowlog).
id str
result_output_file str
Used to save results.
instanceId This property is required. String
Instance ID in the format of tdsqlshard-ow728lmc.
shardId This property is required. String
Instance shard ID in the format of shard-rc754ljk.
type This property is required. Number
Requested log type. Valid values: 1 (binlog), 2 (cold backup), 3 (errlog), 4 (slowlog).
id String
resultOutputFile String
Used to save results.

getDcdbLogFiles Result

The following output properties are available:

Files List<GetDcdbLogFilesFile>
Information such as uri, length, and mtime (modification time).
Id string
InstanceId string
NormalPrefix string
For an instance in a common network, this prefix plus URI can be used as the download address.
ShardId string
Type double
VpcPrefix string
For an instance in a VPC, this prefix plus URI can be used as the download address.
ResultOutputFile string
Files []GetDcdbLogFilesFile
Information such as uri, length, and mtime (modification time).
Id string
InstanceId string
NormalPrefix string
For an instance in a common network, this prefix plus URI can be used as the download address.
ShardId string
Type float64
VpcPrefix string
For an instance in a VPC, this prefix plus URI can be used as the download address.
ResultOutputFile string
files List<GetDcdbLogFilesFile>
Information such as uri, length, and mtime (modification time).
id String
instanceId String
normalPrefix String
For an instance in a common network, this prefix plus URI can be used as the download address.
shardId String
type Double
vpcPrefix String
For an instance in a VPC, this prefix plus URI can be used as the download address.
resultOutputFile String
files GetDcdbLogFilesFile[]
Information such as uri, length, and mtime (modification time).
id string
instanceId string
normalPrefix string
For an instance in a common network, this prefix plus URI can be used as the download address.
shardId string
type number
vpcPrefix string
For an instance in a VPC, this prefix plus URI can be used as the download address.
resultOutputFile string
files Sequence[GetDcdbLogFilesFile]
Information such as uri, length, and mtime (modification time).
id str
instance_id str
normal_prefix str
For an instance in a common network, this prefix plus URI can be used as the download address.
shard_id str
type float
vpc_prefix str
For an instance in a VPC, this prefix plus URI can be used as the download address.
result_output_file str
files List<Property Map>
Information such as uri, length, and mtime (modification time).
id String
instanceId String
normalPrefix String
For an instance in a common network, this prefix plus URI can be used as the download address.
shardId String
type Number
vpcPrefix String
For an instance in a VPC, this prefix plus URI can be used as the download address.
resultOutputFile String

Supporting Types

GetDcdbLogFilesFile

FileName This property is required. string
Filename.
Length This property is required. double
File length.
Mtime This property is required. double
Last modified time of log.
Uri This property is required. string
Uniform resource identifier (URI) used during log download.
FileName This property is required. string
Filename.
Length This property is required. float64
File length.
Mtime This property is required. float64
Last modified time of log.
Uri This property is required. string
Uniform resource identifier (URI) used during log download.
fileName This property is required. String
Filename.
length This property is required. Double
File length.
mtime This property is required. Double
Last modified time of log.
uri This property is required. String
Uniform resource identifier (URI) used during log download.
fileName This property is required. string
Filename.
length This property is required. number
File length.
mtime This property is required. number
Last modified time of log.
uri This property is required. string
Uniform resource identifier (URI) used during log download.
file_name This property is required. str
Filename.
length This property is required. float
File length.
mtime This property is required. float
Last modified time of log.
uri This property is required. str
Uniform resource identifier (URI) used during log download.
fileName This property is required. String
Filename.
length This property is required. Number
File length.
mtime This property is required. Number
Last modified time of log.
uri This property is required. String
Uniform resource identifier (URI) used during log download.

Package Details

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