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

tencentcloud.getCynosdbClusterParamLogs

Explore with Pulumi AI

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

    Use this data source to query detailed information of cynosdb cluster_param_logs

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const clusterParamLogs = tencentcloud.getCynosdbClusterParamLogs({
        clusterId: "cynosdbmysql-bws8h88b",
        instanceIds: ["cynosdbmysql-ins-afqx1hy0"],
        orderBy: "CreateTime",
        orderByType: "DESC",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    cluster_param_logs = tencentcloud.get_cynosdb_cluster_param_logs(cluster_id="cynosdbmysql-bws8h88b",
        instance_ids=["cynosdbmysql-ins-afqx1hy0"],
        order_by="CreateTime",
        order_by_type="DESC")
    
    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.GetCynosdbClusterParamLogs(ctx, &tencentcloud.GetCynosdbClusterParamLogsArgs{
    			ClusterId: "cynosdbmysql-bws8h88b",
    			InstanceIds: []string{
    				"cynosdbmysql-ins-afqx1hy0",
    			},
    			OrderBy:     pulumi.StringRef("CreateTime"),
    			OrderByType: pulumi.StringRef("DESC"),
    		}, 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 clusterParamLogs = Tencentcloud.GetCynosdbClusterParamLogs.Invoke(new()
        {
            ClusterId = "cynosdbmysql-bws8h88b",
            InstanceIds = new[]
            {
                "cynosdbmysql-ins-afqx1hy0",
            },
            OrderBy = "CreateTime",
            OrderByType = "DESC",
        });
    
    });
    
    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.GetCynosdbClusterParamLogsArgs;
    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 clusterParamLogs = TencentcloudFunctions.getCynosdbClusterParamLogs(GetCynosdbClusterParamLogsArgs.builder()
                .clusterId("cynosdbmysql-bws8h88b")
                .instanceIds("cynosdbmysql-ins-afqx1hy0")
                .orderBy("CreateTime")
                .orderByType("DESC")
                .build());
    
        }
    }
    
    variables:
      clusterParamLogs:
        fn::invoke:
          function: tencentcloud:getCynosdbClusterParamLogs
          arguments:
            clusterId: cynosdbmysql-bws8h88b
            instanceIds:
              - cynosdbmysql-ins-afqx1hy0
            orderBy: CreateTime
            orderByType: DESC
    

    Using getCynosdbClusterParamLogs

    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 getCynosdbClusterParamLogs(args: GetCynosdbClusterParamLogsArgs, opts?: InvokeOptions): Promise<GetCynosdbClusterParamLogsResult>
    function getCynosdbClusterParamLogsOutput(args: GetCynosdbClusterParamLogsOutputArgs, opts?: InvokeOptions): Output<GetCynosdbClusterParamLogsResult>
    def get_cynosdb_cluster_param_logs(cluster_id: Optional[str] = None,
                                       id: Optional[str] = None,
                                       instance_ids: Optional[Sequence[str]] = None,
                                       order_by: Optional[str] = None,
                                       order_by_type: Optional[str] = None,
                                       result_output_file: Optional[str] = None,
                                       opts: Optional[InvokeOptions] = None) -> GetCynosdbClusterParamLogsResult
    def get_cynosdb_cluster_param_logs_output(cluster_id: Optional[pulumi.Input[str]] = None,
                                       id: Optional[pulumi.Input[str]] = None,
                                       instance_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                       order_by: Optional[pulumi.Input[str]] = None,
                                       order_by_type: Optional[pulumi.Input[str]] = None,
                                       result_output_file: Optional[pulumi.Input[str]] = None,
                                       opts: Optional[InvokeOptions] = None) -> Output[GetCynosdbClusterParamLogsResult]
    func GetCynosdbClusterParamLogs(ctx *Context, args *GetCynosdbClusterParamLogsArgs, opts ...InvokeOption) (*GetCynosdbClusterParamLogsResult, error)
    func GetCynosdbClusterParamLogsOutput(ctx *Context, args *GetCynosdbClusterParamLogsOutputArgs, opts ...InvokeOption) GetCynosdbClusterParamLogsResultOutput

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

    public static class GetCynosdbClusterParamLogs 
    {
        public static Task<GetCynosdbClusterParamLogsResult> InvokeAsync(GetCynosdbClusterParamLogsArgs args, InvokeOptions? opts = null)
        public static Output<GetCynosdbClusterParamLogsResult> Invoke(GetCynosdbClusterParamLogsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCynosdbClusterParamLogsResult> getCynosdbClusterParamLogs(GetCynosdbClusterParamLogsArgs args, InvokeOptions options)
    public static Output<GetCynosdbClusterParamLogsResult> getCynosdbClusterParamLogs(GetCynosdbClusterParamLogsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getCynosdbClusterParamLogs:getCynosdbClusterParamLogs
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ClusterId string
    Cluster ID.
    Id string
    InstanceIds List<string>
    Instance ID list, used to record specific instances of operations.
    OrderBy string
    Sort field, defining which field to sort based on when returning results.
    OrderByType string
    Define specific sorting rules, limited to one of desc, asc, DESC, or ASC.
    ResultOutputFile string
    Used to save results.
    ClusterId string
    Cluster ID.
    Id string
    InstanceIds []string
    Instance ID list, used to record specific instances of operations.
    OrderBy string
    Sort field, defining which field to sort based on when returning results.
    OrderByType string
    Define specific sorting rules, limited to one of desc, asc, DESC, or ASC.
    ResultOutputFile string
    Used to save results.
    clusterId String
    Cluster ID.
    id String
    instanceIds List<String>
    Instance ID list, used to record specific instances of operations.
    orderBy String
    Sort field, defining which field to sort based on when returning results.
    orderByType String
    Define specific sorting rules, limited to one of desc, asc, DESC, or ASC.
    resultOutputFile String
    Used to save results.
    clusterId string
    Cluster ID.
    id string
    instanceIds string[]
    Instance ID list, used to record specific instances of operations.
    orderBy string
    Sort field, defining which field to sort based on when returning results.
    orderByType string
    Define specific sorting rules, limited to one of desc, asc, DESC, or ASC.
    resultOutputFile string
    Used to save results.
    cluster_id str
    Cluster ID.
    id str
    instance_ids Sequence[str]
    Instance ID list, used to record specific instances of operations.
    order_by str
    Sort field, defining which field to sort based on when returning results.
    order_by_type str
    Define specific sorting rules, limited to one of desc, asc, DESC, or ASC.
    result_output_file str
    Used to save results.
    clusterId String
    Cluster ID.
    id String
    instanceIds List<String>
    Instance ID list, used to record specific instances of operations.
    orderBy String
    Sort field, defining which field to sort based on when returning results.
    orderByType String
    Define specific sorting rules, limited to one of desc, asc, DESC, or ASC.
    resultOutputFile String
    Used to save results.

    getCynosdbClusterParamLogs Result

    The following output properties are available:

    ClusterId string
    Cluster ID.
    ClusterParamLogs List<GetCynosdbClusterParamLogsClusterParamLog>
    Parameter modification record note: This field may return null, indicating that a valid value cannot be obtained.
    Id string
    InstanceIds List<string>
    OrderBy string
    OrderByType string
    ResultOutputFile string
    ClusterId string
    Cluster ID.
    ClusterParamLogs []GetCynosdbClusterParamLogsClusterParamLog
    Parameter modification record note: This field may return null, indicating that a valid value cannot be obtained.
    Id string
    InstanceIds []string
    OrderBy string
    OrderByType string
    ResultOutputFile string
    clusterId String
    Cluster ID.
    clusterParamLogs List<GetCynosdbClusterParamLogsClusterParamLog>
    Parameter modification record note: This field may return null, indicating that a valid value cannot be obtained.
    id String
    instanceIds List<String>
    orderBy String
    orderByType String
    resultOutputFile String
    clusterId string
    Cluster ID.
    clusterParamLogs GetCynosdbClusterParamLogsClusterParamLog[]
    Parameter modification record note: This field may return null, indicating that a valid value cannot be obtained.
    id string
    instanceIds string[]
    orderBy string
    orderByType string
    resultOutputFile string
    cluster_id str
    Cluster ID.
    cluster_param_logs Sequence[GetCynosdbClusterParamLogsClusterParamLog]
    Parameter modification record note: This field may return null, indicating that a valid value cannot be obtained.
    id str
    instance_ids Sequence[str]
    order_by str
    order_by_type str
    result_output_file str
    clusterId String
    Cluster ID.
    clusterParamLogs List<Property Map>
    Parameter modification record note: This field may return null, indicating that a valid value cannot be obtained.
    id String
    instanceIds List<String>
    orderBy String
    orderByType String
    resultOutputFile String

    Supporting Types

    GetCynosdbClusterParamLogsClusterParamLog

    ClusterId string
    Cluster ID.
    CreateTime string
    Creation time.
    CurrentValue string
    Current value.
    InstanceId string
    Instance ID.
    ParamName string
    Parameter Name.
    Status string
    modify state.
    UpdateTime string
    Update time.
    UpdateValue string
    Modified value.
    ClusterId string
    Cluster ID.
    CreateTime string
    Creation time.
    CurrentValue string
    Current value.
    InstanceId string
    Instance ID.
    ParamName string
    Parameter Name.
    Status string
    modify state.
    UpdateTime string
    Update time.
    UpdateValue string
    Modified value.
    clusterId String
    Cluster ID.
    createTime String
    Creation time.
    currentValue String
    Current value.
    instanceId String
    Instance ID.
    paramName String
    Parameter Name.
    status String
    modify state.
    updateTime String
    Update time.
    updateValue String
    Modified value.
    clusterId string
    Cluster ID.
    createTime string
    Creation time.
    currentValue string
    Current value.
    instanceId string
    Instance ID.
    paramName string
    Parameter Name.
    status string
    modify state.
    updateTime string
    Update time.
    updateValue string
    Modified value.
    cluster_id str
    Cluster ID.
    create_time str
    Creation time.
    current_value str
    Current value.
    instance_id str
    Instance ID.
    param_name str
    Parameter Name.
    status str
    modify state.
    update_time str
    Update time.
    update_value str
    Modified value.
    clusterId String
    Cluster ID.
    createTime String
    Creation time.
    currentValue String
    Current value.
    instanceId String
    Instance ID.
    paramName String
    Parameter Name.
    status String
    modify state.
    updateTime String
    Update time.
    updateValue String
    Modified value.

    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