tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getDcdbLogFiles
Explore with Pulumi AI
tencentcloud 1.81.189 published on Wednesday, Apr 30, 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,
});
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)
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
})
}
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,
});
});
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());
}
}
variables:
logFiles:
fn::invoke:
function: tencentcloud:getDcdbLogFiles
arguments:
instanceId: ${local.dcdb_id}
shardId: shard-1b5r04az
type: 1
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>
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]
func GetDcdbLogFiles(ctx *Context, args *GetDcdbLogFilesArgs, opts ...InvokeOption) (*GetDcdbLogFilesResult, error)
func GetDcdbLogFilesOutput(ctx *Context, args *GetDcdbLogFilesOutputArgs, opts ...InvokeOption) GetDcdbLogFilesResultOutput
> 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)
}
public static CompletableFuture<GetDcdbLogFilesResult> getDcdbLogFiles(GetDcdbLogFilesArgs args, InvokeOptions options)
public static Output<GetDcdbLogFilesResult> getDcdbLogFiles(GetDcdbLogFilesArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getDcdbLogFiles:getDcdbLogFiles
arguments:
# arguments dictionary
The following arguments are supported:
- Instance
Id string - Instance ID in the format of
tdsqlshard-ow728lmc
. - string
- Instance shard ID in the format of
shard-rc754ljk
. - Type double
- Requested log type. Valid values: 1 (binlog), 2 (cold backup), 3 (errlog), 4 (slowlog).
- Id string
- Result
Output stringFile - Used to save results.
- Instance
Id string - Instance ID in the format of
tdsqlshard-ow728lmc
. - string
- Instance shard ID in the format of
shard-rc754ljk
. - Type float64
- Requested log type. Valid values: 1 (binlog), 2 (cold backup), 3 (errlog), 4 (slowlog).
- Id string
- Result
Output stringFile - Used to save results.
- instance
Id String - Instance ID in the format of
tdsqlshard-ow728lmc
. - String
- Instance shard ID in the format of
shard-rc754ljk
. - type Double
- Requested log type. Valid values: 1 (binlog), 2 (cold backup), 3 (errlog), 4 (slowlog).
- id String
- result
Output StringFile - Used to save results.
- instance
Id string - Instance ID in the format of
tdsqlshard-ow728lmc
. - string
- Instance shard ID in the format of
shard-rc754ljk
. - type number
- Requested log type. Valid values: 1 (binlog), 2 (cold backup), 3 (errlog), 4 (slowlog).
- id string
- result
Output stringFile - Used to save results.
- instance_
id str - Instance ID in the format of
tdsqlshard-ow728lmc
. - str
- Instance shard ID in the format of
shard-rc754ljk
. - type float
- Requested log type. Valid values: 1 (binlog), 2 (cold backup), 3 (errlog), 4 (slowlog).
- id str
- result_
output_ strfile - Used to save results.
- instance
Id String - Instance ID in the format of
tdsqlshard-ow728lmc
. - String
- Instance shard ID in the format of
shard-rc754ljk
. - type Number
- Requested log type. Valid values: 1 (binlog), 2 (cold backup), 3 (errlog), 4 (slowlog).
- id String
- result
Output StringFile - Used to save results.
getDcdbLogFiles Result
The following output properties are available:
- Files
List<Get
Dcdb Log Files File> - Information such as
uri
,length
, andmtime
(modification time). - Id string
- Instance
Id string - Normal
Prefix string - For an instance in a common network, this prefix plus URI can be used as the download address.
- string
- Type double
- Vpc
Prefix string - For an instance in a VPC, this prefix plus URI can be used as the download address.
- Result
Output stringFile
- Files
[]Get
Dcdb Log Files File - Information such as
uri
,length
, andmtime
(modification time). - Id string
- Instance
Id string - Normal
Prefix string - For an instance in a common network, this prefix plus URI can be used as the download address.
- string
- Type float64
- Vpc
Prefix string - For an instance in a VPC, this prefix plus URI can be used as the download address.
- Result
Output stringFile
- files
List<Get
Dcdb Log Files File> - Information such as
uri
,length
, andmtime
(modification time). - id String
- instance
Id String - normal
Prefix String - For an instance in a common network, this prefix plus URI can be used as the download address.
- String
- type Double
- vpc
Prefix String - For an instance in a VPC, this prefix plus URI can be used as the download address.
- result
Output StringFile
- files
Get
Dcdb Log Files File[] - Information such as
uri
,length
, andmtime
(modification time). - id string
- instance
Id string - normal
Prefix string - For an instance in a common network, this prefix plus URI can be used as the download address.
- string
- type number
- vpc
Prefix string - For an instance in a VPC, this prefix plus URI can be used as the download address.
- result
Output stringFile
- files
Sequence[Get
Dcdb Log Files File] - Information such as
uri
,length
, andmtime
(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.
- 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_ strfile
- files List<Property Map>
- Information such as
uri
,length
, andmtime
(modification time). - id String
- instance
Id String - normal
Prefix String - For an instance in a common network, this prefix plus URI can be used as the download address.
- String
- type Number
- vpc
Prefix String - For an instance in a VPC, this prefix plus URI can be used as the download address.
- result
Output StringFile
Supporting Types
GetDcdbLogFilesFile
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack