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

tencentcloud.ClsCloudProductLogTaskV2

Explore with Pulumi AI

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

    Provides a resource to create a cls cloud product log task

    NOTE: In the destruction of resources, if cascading deletion of logset and topic is required, please set force_delete to true.

    Example Usage

    Create log delivery using the default newly created logset and topic

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.ClsCloudProductLogTaskV2("example", {
        assumerName: "PostgreSQL",
        cloudProductRegion: "gz",
        clsRegion: "ap-guangzhou",
        forceDelete: true,
        instanceId: "postgres-0an6hpv3",
        logType: "PostgreSQL-SLOW",
        logsetName: "tf-example",
        topicName: "tf-example",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.ClsCloudProductLogTaskV2("example",
        assumer_name="PostgreSQL",
        cloud_product_region="gz",
        cls_region="ap-guangzhou",
        force_delete=True,
        instance_id="postgres-0an6hpv3",
        log_type="PostgreSQL-SLOW",
        logset_name="tf-example",
        topic_name="tf-example")
    
    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.NewClsCloudProductLogTaskV2(ctx, "example", &tencentcloud.ClsCloudProductLogTaskV2Args{
    			AssumerName:        pulumi.String("PostgreSQL"),
    			CloudProductRegion: pulumi.String("gz"),
    			ClsRegion:          pulumi.String("ap-guangzhou"),
    			ForceDelete:        pulumi.Bool(true),
    			InstanceId:         pulumi.String("postgres-0an6hpv3"),
    			LogType:            pulumi.String("PostgreSQL-SLOW"),
    			LogsetName:         pulumi.String("tf-example"),
    			TopicName:          pulumi.String("tf-example"),
    		})
    		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 example = new Tencentcloud.ClsCloudProductLogTaskV2("example", new()
        {
            AssumerName = "PostgreSQL",
            CloudProductRegion = "gz",
            ClsRegion = "ap-guangzhou",
            ForceDelete = true,
            InstanceId = "postgres-0an6hpv3",
            LogType = "PostgreSQL-SLOW",
            LogsetName = "tf-example",
            TopicName = "tf-example",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.ClsCloudProductLogTaskV2;
    import com.pulumi.tencentcloud.ClsCloudProductLogTaskV2Args;
    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) {
            var example = new ClsCloudProductLogTaskV2("example", ClsCloudProductLogTaskV2Args.builder()
                .assumerName("PostgreSQL")
                .cloudProductRegion("gz")
                .clsRegion("ap-guangzhou")
                .forceDelete(true)
                .instanceId("postgres-0an6hpv3")
                .logType("PostgreSQL-SLOW")
                .logsetName("tf-example")
                .topicName("tf-example")
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:ClsCloudProductLogTaskV2
        properties:
          assumerName: PostgreSQL
          cloudProductRegion: gz
          clsRegion: ap-guangzhou
          forceDelete: true
          instanceId: postgres-0an6hpv3
          logType: PostgreSQL-SLOW
          logsetName: tf-example
          topicName: tf-example
    

    Create log delivery using existing logset and topic

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.ClsCloudProductLogTaskV2("example", {
        assumerName: "PostgreSQL",
        cloudProductRegion: "gz",
        clsRegion: "ap-guangzhou",
        forceDelete: false,
        instanceId: "postgres-0an6hpv3",
        logType: "PostgreSQL-SLOW",
        logsetId: "ca5b4f56-1174-4eee-bc4c-69e48e0e8c45",
        topicId: "d8177ca9-466b-42f4-a110-5933daf0a83a",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.ClsCloudProductLogTaskV2("example",
        assumer_name="PostgreSQL",
        cloud_product_region="gz",
        cls_region="ap-guangzhou",
        force_delete=False,
        instance_id="postgres-0an6hpv3",
        log_type="PostgreSQL-SLOW",
        logset_id="ca5b4f56-1174-4eee-bc4c-69e48e0e8c45",
        topic_id="d8177ca9-466b-42f4-a110-5933daf0a83a")
    
    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.NewClsCloudProductLogTaskV2(ctx, "example", &tencentcloud.ClsCloudProductLogTaskV2Args{
    			AssumerName:        pulumi.String("PostgreSQL"),
    			CloudProductRegion: pulumi.String("gz"),
    			ClsRegion:          pulumi.String("ap-guangzhou"),
    			ForceDelete:        pulumi.Bool(false),
    			InstanceId:         pulumi.String("postgres-0an6hpv3"),
    			LogType:            pulumi.String("PostgreSQL-SLOW"),
    			LogsetId:           pulumi.String("ca5b4f56-1174-4eee-bc4c-69e48e0e8c45"),
    			TopicId:            pulumi.String("d8177ca9-466b-42f4-a110-5933daf0a83a"),
    		})
    		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 example = new Tencentcloud.ClsCloudProductLogTaskV2("example", new()
        {
            AssumerName = "PostgreSQL",
            CloudProductRegion = "gz",
            ClsRegion = "ap-guangzhou",
            ForceDelete = false,
            InstanceId = "postgres-0an6hpv3",
            LogType = "PostgreSQL-SLOW",
            LogsetId = "ca5b4f56-1174-4eee-bc4c-69e48e0e8c45",
            TopicId = "d8177ca9-466b-42f4-a110-5933daf0a83a",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.ClsCloudProductLogTaskV2;
    import com.pulumi.tencentcloud.ClsCloudProductLogTaskV2Args;
    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) {
            var example = new ClsCloudProductLogTaskV2("example", ClsCloudProductLogTaskV2Args.builder()
                .assumerName("PostgreSQL")
                .cloudProductRegion("gz")
                .clsRegion("ap-guangzhou")
                .forceDelete(false)
                .instanceId("postgres-0an6hpv3")
                .logType("PostgreSQL-SLOW")
                .logsetId("ca5b4f56-1174-4eee-bc4c-69e48e0e8c45")
                .topicId("d8177ca9-466b-42f4-a110-5933daf0a83a")
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:ClsCloudProductLogTaskV2
        properties:
          assumerName: PostgreSQL
          cloudProductRegion: gz
          clsRegion: ap-guangzhou
          forceDelete: false
          instanceId: postgres-0an6hpv3
          logType: PostgreSQL-SLOW
          logsetId: ca5b4f56-1174-4eee-bc4c-69e48e0e8c45
          topicId: d8177ca9-466b-42f4-a110-5933daf0a83a
    

    Create ClsCloudProductLogTaskV2 Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ClsCloudProductLogTaskV2(name: string, args: ClsCloudProductLogTaskV2Args, opts?: CustomResourceOptions);
    @overload
    def ClsCloudProductLogTaskV2(resource_name: str,
                                 args: ClsCloudProductLogTaskV2Args,
                                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def ClsCloudProductLogTaskV2(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 assumer_name: Optional[str] = None,
                                 cloud_product_region: Optional[str] = None,
                                 cls_region: Optional[str] = None,
                                 instance_id: Optional[str] = None,
                                 log_type: Optional[str] = None,
                                 cls_cloud_product_log_task_v2_id: Optional[str] = None,
                                 extend: Optional[str] = None,
                                 force_delete: Optional[bool] = None,
                                 logset_id: Optional[str] = None,
                                 logset_name: Optional[str] = None,
                                 topic_id: Optional[str] = None,
                                 topic_name: Optional[str] = None)
    func NewClsCloudProductLogTaskV2(ctx *Context, name string, args ClsCloudProductLogTaskV2Args, opts ...ResourceOption) (*ClsCloudProductLogTaskV2, error)
    public ClsCloudProductLogTaskV2(string name, ClsCloudProductLogTaskV2Args args, CustomResourceOptions? opts = null)
    public ClsCloudProductLogTaskV2(String name, ClsCloudProductLogTaskV2Args args)
    public ClsCloudProductLogTaskV2(String name, ClsCloudProductLogTaskV2Args args, CustomResourceOptions options)
    
    type: tencentcloud:ClsCloudProductLogTaskV2
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ClsCloudProductLogTaskV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ClsCloudProductLogTaskV2Args
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ClsCloudProductLogTaskV2Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ClsCloudProductLogTaskV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ClsCloudProductLogTaskV2Args
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    ClsCloudProductLogTaskV2 Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The ClsCloudProductLogTaskV2 resource accepts the following input properties:

    AssumerName string
    Cloud product identification, Values: CDS, CWP, CDB, TDSQL-C, MongoDB, TDStore, DCDB, MariaDB, PostgreSQL, BH, APIS.
    CloudProductRegion string
    Cloud product region. There are differences in the input format of different log types in different regions. Please refer to the following example:

    • CDS(all log type): ap-guangzhou
    • CDB-AUDIT: gz
    • TDSQL-C-AUDIT: gz
    • MongoDB-AUDIT: gz
    • MongoDB-SlowLog: ap-guangzhou
    • MongoDB-ErrorLog: ap-guangzhou
    • TDMYSQL-SLOW: gz
    • DCDB(all log type): gz
    • MariaDB(all log type): gz
    • PostgreSQL(all log type): gz
    • BH(all log type): overseas-polaris(Domestic sites overseas)/fsi-polaris(Domestic sites finance)/general-polaris(Domestic sites)/intl-sg-prod(International sites)
    • APIS(all log type): gz.
    ClsRegion string
    CLS target region.
    InstanceId string
    Instance ID.
    LogType string
    Log type, Values: CDS-AUDIT, CDS-RISK, CDB-AUDIT, TDSQL-C-AUDIT, MongoDB-AUDIT, MongoDB-SlowLog, MongoDB-ErrorLog, TDMYSQL-SLOW, DCDB-AUDIT, DCDB-SLOW, DCDB-ERROR, MariaDB-AUDIT, MariaDB-SLOW, MariaDB-ERROR, PostgreSQL-SLOW, PostgreSQL-ERROR, PostgreSQL-AUDIT, BH-FILELOG, BH-COMMANDLOG, APIS-ACCESS.
    ClsCloudProductLogTaskV2Id string
    ID of the resource.
    Extend string
    Log configuration extension information, generally used to store additional log delivery configurations.
    ForceDelete bool
    Indicate whether to forcibly delete the corresponding logset and topic. If set to true, it will be forcibly deleted. Default is false.
    LogsetId string
    Log set ID.
    LogsetName string
    Log set name, required if logset_id is not filled in. If the log set does not exist, it will be automatically created.
    TopicId string
    Log theme ID.
    TopicName string
    The name of the log topic is required when topic_id is not filled in. If the log theme does not exist, it will be automatically created.
    AssumerName string
    Cloud product identification, Values: CDS, CWP, CDB, TDSQL-C, MongoDB, TDStore, DCDB, MariaDB, PostgreSQL, BH, APIS.
    CloudProductRegion string
    Cloud product region. There are differences in the input format of different log types in different regions. Please refer to the following example:

    • CDS(all log type): ap-guangzhou
    • CDB-AUDIT: gz
    • TDSQL-C-AUDIT: gz
    • MongoDB-AUDIT: gz
    • MongoDB-SlowLog: ap-guangzhou
    • MongoDB-ErrorLog: ap-guangzhou
    • TDMYSQL-SLOW: gz
    • DCDB(all log type): gz
    • MariaDB(all log type): gz
    • PostgreSQL(all log type): gz
    • BH(all log type): overseas-polaris(Domestic sites overseas)/fsi-polaris(Domestic sites finance)/general-polaris(Domestic sites)/intl-sg-prod(International sites)
    • APIS(all log type): gz.
    ClsRegion string
    CLS target region.
    InstanceId string
    Instance ID.
    LogType string
    Log type, Values: CDS-AUDIT, CDS-RISK, CDB-AUDIT, TDSQL-C-AUDIT, MongoDB-AUDIT, MongoDB-SlowLog, MongoDB-ErrorLog, TDMYSQL-SLOW, DCDB-AUDIT, DCDB-SLOW, DCDB-ERROR, MariaDB-AUDIT, MariaDB-SLOW, MariaDB-ERROR, PostgreSQL-SLOW, PostgreSQL-ERROR, PostgreSQL-AUDIT, BH-FILELOG, BH-COMMANDLOG, APIS-ACCESS.
    ClsCloudProductLogTaskV2Id string
    ID of the resource.
    Extend string
    Log configuration extension information, generally used to store additional log delivery configurations.
    ForceDelete bool
    Indicate whether to forcibly delete the corresponding logset and topic. If set to true, it will be forcibly deleted. Default is false.
    LogsetId string
    Log set ID.
    LogsetName string
    Log set name, required if logset_id is not filled in. If the log set does not exist, it will be automatically created.
    TopicId string
    Log theme ID.
    TopicName string
    The name of the log topic is required when topic_id is not filled in. If the log theme does not exist, it will be automatically created.
    assumerName String
    Cloud product identification, Values: CDS, CWP, CDB, TDSQL-C, MongoDB, TDStore, DCDB, MariaDB, PostgreSQL, BH, APIS.
    cloudProductRegion String
    Cloud product region. There are differences in the input format of different log types in different regions. Please refer to the following example:

    • CDS(all log type): ap-guangzhou
    • CDB-AUDIT: gz
    • TDSQL-C-AUDIT: gz
    • MongoDB-AUDIT: gz
    • MongoDB-SlowLog: ap-guangzhou
    • MongoDB-ErrorLog: ap-guangzhou
    • TDMYSQL-SLOW: gz
    • DCDB(all log type): gz
    • MariaDB(all log type): gz
    • PostgreSQL(all log type): gz
    • BH(all log type): overseas-polaris(Domestic sites overseas)/fsi-polaris(Domestic sites finance)/general-polaris(Domestic sites)/intl-sg-prod(International sites)
    • APIS(all log type): gz.
    clsRegion String
    CLS target region.
    instanceId String
    Instance ID.
    logType String
    Log type, Values: CDS-AUDIT, CDS-RISK, CDB-AUDIT, TDSQL-C-AUDIT, MongoDB-AUDIT, MongoDB-SlowLog, MongoDB-ErrorLog, TDMYSQL-SLOW, DCDB-AUDIT, DCDB-SLOW, DCDB-ERROR, MariaDB-AUDIT, MariaDB-SLOW, MariaDB-ERROR, PostgreSQL-SLOW, PostgreSQL-ERROR, PostgreSQL-AUDIT, BH-FILELOG, BH-COMMANDLOG, APIS-ACCESS.
    clsCloudProductLogTaskV2Id String
    ID of the resource.
    extend String
    Log configuration extension information, generally used to store additional log delivery configurations.
    forceDelete Boolean
    Indicate whether to forcibly delete the corresponding logset and topic. If set to true, it will be forcibly deleted. Default is false.
    logsetId String
    Log set ID.
    logsetName String
    Log set name, required if logset_id is not filled in. If the log set does not exist, it will be automatically created.
    topicId String
    Log theme ID.
    topicName String
    The name of the log topic is required when topic_id is not filled in. If the log theme does not exist, it will be automatically created.
    assumerName string
    Cloud product identification, Values: CDS, CWP, CDB, TDSQL-C, MongoDB, TDStore, DCDB, MariaDB, PostgreSQL, BH, APIS.
    cloudProductRegion string
    Cloud product region. There are differences in the input format of different log types in different regions. Please refer to the following example:

    • CDS(all log type): ap-guangzhou
    • CDB-AUDIT: gz
    • TDSQL-C-AUDIT: gz
    • MongoDB-AUDIT: gz
    • MongoDB-SlowLog: ap-guangzhou
    • MongoDB-ErrorLog: ap-guangzhou
    • TDMYSQL-SLOW: gz
    • DCDB(all log type): gz
    • MariaDB(all log type): gz
    • PostgreSQL(all log type): gz
    • BH(all log type): overseas-polaris(Domestic sites overseas)/fsi-polaris(Domestic sites finance)/general-polaris(Domestic sites)/intl-sg-prod(International sites)
    • APIS(all log type): gz.
    clsRegion string
    CLS target region.
    instanceId string
    Instance ID.
    logType string
    Log type, Values: CDS-AUDIT, CDS-RISK, CDB-AUDIT, TDSQL-C-AUDIT, MongoDB-AUDIT, MongoDB-SlowLog, MongoDB-ErrorLog, TDMYSQL-SLOW, DCDB-AUDIT, DCDB-SLOW, DCDB-ERROR, MariaDB-AUDIT, MariaDB-SLOW, MariaDB-ERROR, PostgreSQL-SLOW, PostgreSQL-ERROR, PostgreSQL-AUDIT, BH-FILELOG, BH-COMMANDLOG, APIS-ACCESS.
    clsCloudProductLogTaskV2Id string
    ID of the resource.
    extend string
    Log configuration extension information, generally used to store additional log delivery configurations.
    forceDelete boolean
    Indicate whether to forcibly delete the corresponding logset and topic. If set to true, it will be forcibly deleted. Default is false.
    logsetId string
    Log set ID.
    logsetName string
    Log set name, required if logset_id is not filled in. If the log set does not exist, it will be automatically created.
    topicId string
    Log theme ID.
    topicName string
    The name of the log topic is required when topic_id is not filled in. If the log theme does not exist, it will be automatically created.
    assumer_name str
    Cloud product identification, Values: CDS, CWP, CDB, TDSQL-C, MongoDB, TDStore, DCDB, MariaDB, PostgreSQL, BH, APIS.
    cloud_product_region str
    Cloud product region. There are differences in the input format of different log types in different regions. Please refer to the following example:

    • CDS(all log type): ap-guangzhou
    • CDB-AUDIT: gz
    • TDSQL-C-AUDIT: gz
    • MongoDB-AUDIT: gz
    • MongoDB-SlowLog: ap-guangzhou
    • MongoDB-ErrorLog: ap-guangzhou
    • TDMYSQL-SLOW: gz
    • DCDB(all log type): gz
    • MariaDB(all log type): gz
    • PostgreSQL(all log type): gz
    • BH(all log type): overseas-polaris(Domestic sites overseas)/fsi-polaris(Domestic sites finance)/general-polaris(Domestic sites)/intl-sg-prod(International sites)
    • APIS(all log type): gz.
    cls_region str
    CLS target region.
    instance_id str
    Instance ID.
    log_type str
    Log type, Values: CDS-AUDIT, CDS-RISK, CDB-AUDIT, TDSQL-C-AUDIT, MongoDB-AUDIT, MongoDB-SlowLog, MongoDB-ErrorLog, TDMYSQL-SLOW, DCDB-AUDIT, DCDB-SLOW, DCDB-ERROR, MariaDB-AUDIT, MariaDB-SLOW, MariaDB-ERROR, PostgreSQL-SLOW, PostgreSQL-ERROR, PostgreSQL-AUDIT, BH-FILELOG, BH-COMMANDLOG, APIS-ACCESS.
    cls_cloud_product_log_task_v2_id str
    ID of the resource.
    extend str
    Log configuration extension information, generally used to store additional log delivery configurations.
    force_delete bool
    Indicate whether to forcibly delete the corresponding logset and topic. If set to true, it will be forcibly deleted. Default is false.
    logset_id str
    Log set ID.
    logset_name str
    Log set name, required if logset_id is not filled in. If the log set does not exist, it will be automatically created.
    topic_id str
    Log theme ID.
    topic_name str
    The name of the log topic is required when topic_id is not filled in. If the log theme does not exist, it will be automatically created.
    assumerName String
    Cloud product identification, Values: CDS, CWP, CDB, TDSQL-C, MongoDB, TDStore, DCDB, MariaDB, PostgreSQL, BH, APIS.
    cloudProductRegion String
    Cloud product region. There are differences in the input format of different log types in different regions. Please refer to the following example:

    • CDS(all log type): ap-guangzhou
    • CDB-AUDIT: gz
    • TDSQL-C-AUDIT: gz
    • MongoDB-AUDIT: gz
    • MongoDB-SlowLog: ap-guangzhou
    • MongoDB-ErrorLog: ap-guangzhou
    • TDMYSQL-SLOW: gz
    • DCDB(all log type): gz
    • MariaDB(all log type): gz
    • PostgreSQL(all log type): gz
    • BH(all log type): overseas-polaris(Domestic sites overseas)/fsi-polaris(Domestic sites finance)/general-polaris(Domestic sites)/intl-sg-prod(International sites)
    • APIS(all log type): gz.
    clsRegion String
    CLS target region.
    instanceId String
    Instance ID.
    logType String
    Log type, Values: CDS-AUDIT, CDS-RISK, CDB-AUDIT, TDSQL-C-AUDIT, MongoDB-AUDIT, MongoDB-SlowLog, MongoDB-ErrorLog, TDMYSQL-SLOW, DCDB-AUDIT, DCDB-SLOW, DCDB-ERROR, MariaDB-AUDIT, MariaDB-SLOW, MariaDB-ERROR, PostgreSQL-SLOW, PostgreSQL-ERROR, PostgreSQL-AUDIT, BH-FILELOG, BH-COMMANDLOG, APIS-ACCESS.
    clsCloudProductLogTaskV2Id String
    ID of the resource.
    extend String
    Log configuration extension information, generally used to store additional log delivery configurations.
    forceDelete Boolean
    Indicate whether to forcibly delete the corresponding logset and topic. If set to true, it will be forcibly deleted. Default is false.
    logsetId String
    Log set ID.
    logsetName String
    Log set name, required if logset_id is not filled in. If the log set does not exist, it will be automatically created.
    topicId String
    Log theme ID.
    topicName String
    The name of the log topic is required when topic_id is not filled in. If the log theme does not exist, it will be automatically created.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ClsCloudProductLogTaskV2 resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing ClsCloudProductLogTaskV2 Resource

    Get an existing ClsCloudProductLogTaskV2 resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ClsCloudProductLogTaskV2State, opts?: CustomResourceOptions): ClsCloudProductLogTaskV2
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            assumer_name: Optional[str] = None,
            cloud_product_region: Optional[str] = None,
            cls_cloud_product_log_task_v2_id: Optional[str] = None,
            cls_region: Optional[str] = None,
            extend: Optional[str] = None,
            force_delete: Optional[bool] = None,
            instance_id: Optional[str] = None,
            log_type: Optional[str] = None,
            logset_id: Optional[str] = None,
            logset_name: Optional[str] = None,
            topic_id: Optional[str] = None,
            topic_name: Optional[str] = None) -> ClsCloudProductLogTaskV2
    func GetClsCloudProductLogTaskV2(ctx *Context, name string, id IDInput, state *ClsCloudProductLogTaskV2State, opts ...ResourceOption) (*ClsCloudProductLogTaskV2, error)
    public static ClsCloudProductLogTaskV2 Get(string name, Input<string> id, ClsCloudProductLogTaskV2State? state, CustomResourceOptions? opts = null)
    public static ClsCloudProductLogTaskV2 get(String name, Output<String> id, ClsCloudProductLogTaskV2State state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:ClsCloudProductLogTaskV2    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AssumerName string
    Cloud product identification, Values: CDS, CWP, CDB, TDSQL-C, MongoDB, TDStore, DCDB, MariaDB, PostgreSQL, BH, APIS.
    CloudProductRegion string
    Cloud product region. There are differences in the input format of different log types in different regions. Please refer to the following example:

    • CDS(all log type): ap-guangzhou
    • CDB-AUDIT: gz
    • TDSQL-C-AUDIT: gz
    • MongoDB-AUDIT: gz
    • MongoDB-SlowLog: ap-guangzhou
    • MongoDB-ErrorLog: ap-guangzhou
    • TDMYSQL-SLOW: gz
    • DCDB(all log type): gz
    • MariaDB(all log type): gz
    • PostgreSQL(all log type): gz
    • BH(all log type): overseas-polaris(Domestic sites overseas)/fsi-polaris(Domestic sites finance)/general-polaris(Domestic sites)/intl-sg-prod(International sites)
    • APIS(all log type): gz.
    ClsCloudProductLogTaskV2Id string
    ID of the resource.
    ClsRegion string
    CLS target region.
    Extend string
    Log configuration extension information, generally used to store additional log delivery configurations.
    ForceDelete bool
    Indicate whether to forcibly delete the corresponding logset and topic. If set to true, it will be forcibly deleted. Default is false.
    InstanceId string
    Instance ID.
    LogType string
    Log type, Values: CDS-AUDIT, CDS-RISK, CDB-AUDIT, TDSQL-C-AUDIT, MongoDB-AUDIT, MongoDB-SlowLog, MongoDB-ErrorLog, TDMYSQL-SLOW, DCDB-AUDIT, DCDB-SLOW, DCDB-ERROR, MariaDB-AUDIT, MariaDB-SLOW, MariaDB-ERROR, PostgreSQL-SLOW, PostgreSQL-ERROR, PostgreSQL-AUDIT, BH-FILELOG, BH-COMMANDLOG, APIS-ACCESS.
    LogsetId string
    Log set ID.
    LogsetName string
    Log set name, required if logset_id is not filled in. If the log set does not exist, it will be automatically created.
    TopicId string
    Log theme ID.
    TopicName string
    The name of the log topic is required when topic_id is not filled in. If the log theme does not exist, it will be automatically created.
    AssumerName string
    Cloud product identification, Values: CDS, CWP, CDB, TDSQL-C, MongoDB, TDStore, DCDB, MariaDB, PostgreSQL, BH, APIS.
    CloudProductRegion string
    Cloud product region. There are differences in the input format of different log types in different regions. Please refer to the following example:

    • CDS(all log type): ap-guangzhou
    • CDB-AUDIT: gz
    • TDSQL-C-AUDIT: gz
    • MongoDB-AUDIT: gz
    • MongoDB-SlowLog: ap-guangzhou
    • MongoDB-ErrorLog: ap-guangzhou
    • TDMYSQL-SLOW: gz
    • DCDB(all log type): gz
    • MariaDB(all log type): gz
    • PostgreSQL(all log type): gz
    • BH(all log type): overseas-polaris(Domestic sites overseas)/fsi-polaris(Domestic sites finance)/general-polaris(Domestic sites)/intl-sg-prod(International sites)
    • APIS(all log type): gz.
    ClsCloudProductLogTaskV2Id string
    ID of the resource.
    ClsRegion string
    CLS target region.
    Extend string
    Log configuration extension information, generally used to store additional log delivery configurations.
    ForceDelete bool
    Indicate whether to forcibly delete the corresponding logset and topic. If set to true, it will be forcibly deleted. Default is false.
    InstanceId string
    Instance ID.
    LogType string
    Log type, Values: CDS-AUDIT, CDS-RISK, CDB-AUDIT, TDSQL-C-AUDIT, MongoDB-AUDIT, MongoDB-SlowLog, MongoDB-ErrorLog, TDMYSQL-SLOW, DCDB-AUDIT, DCDB-SLOW, DCDB-ERROR, MariaDB-AUDIT, MariaDB-SLOW, MariaDB-ERROR, PostgreSQL-SLOW, PostgreSQL-ERROR, PostgreSQL-AUDIT, BH-FILELOG, BH-COMMANDLOG, APIS-ACCESS.
    LogsetId string
    Log set ID.
    LogsetName string
    Log set name, required if logset_id is not filled in. If the log set does not exist, it will be automatically created.
    TopicId string
    Log theme ID.
    TopicName string
    The name of the log topic is required when topic_id is not filled in. If the log theme does not exist, it will be automatically created.
    assumerName String
    Cloud product identification, Values: CDS, CWP, CDB, TDSQL-C, MongoDB, TDStore, DCDB, MariaDB, PostgreSQL, BH, APIS.
    cloudProductRegion String
    Cloud product region. There are differences in the input format of different log types in different regions. Please refer to the following example:

    • CDS(all log type): ap-guangzhou
    • CDB-AUDIT: gz
    • TDSQL-C-AUDIT: gz
    • MongoDB-AUDIT: gz
    • MongoDB-SlowLog: ap-guangzhou
    • MongoDB-ErrorLog: ap-guangzhou
    • TDMYSQL-SLOW: gz
    • DCDB(all log type): gz
    • MariaDB(all log type): gz
    • PostgreSQL(all log type): gz
    • BH(all log type): overseas-polaris(Domestic sites overseas)/fsi-polaris(Domestic sites finance)/general-polaris(Domestic sites)/intl-sg-prod(International sites)
    • APIS(all log type): gz.
    clsCloudProductLogTaskV2Id String
    ID of the resource.
    clsRegion String
    CLS target region.
    extend String
    Log configuration extension information, generally used to store additional log delivery configurations.
    forceDelete Boolean
    Indicate whether to forcibly delete the corresponding logset and topic. If set to true, it will be forcibly deleted. Default is false.
    instanceId String
    Instance ID.
    logType String
    Log type, Values: CDS-AUDIT, CDS-RISK, CDB-AUDIT, TDSQL-C-AUDIT, MongoDB-AUDIT, MongoDB-SlowLog, MongoDB-ErrorLog, TDMYSQL-SLOW, DCDB-AUDIT, DCDB-SLOW, DCDB-ERROR, MariaDB-AUDIT, MariaDB-SLOW, MariaDB-ERROR, PostgreSQL-SLOW, PostgreSQL-ERROR, PostgreSQL-AUDIT, BH-FILELOG, BH-COMMANDLOG, APIS-ACCESS.
    logsetId String
    Log set ID.
    logsetName String
    Log set name, required if logset_id is not filled in. If the log set does not exist, it will be automatically created.
    topicId String
    Log theme ID.
    topicName String
    The name of the log topic is required when topic_id is not filled in. If the log theme does not exist, it will be automatically created.
    assumerName string
    Cloud product identification, Values: CDS, CWP, CDB, TDSQL-C, MongoDB, TDStore, DCDB, MariaDB, PostgreSQL, BH, APIS.
    cloudProductRegion string
    Cloud product region. There are differences in the input format of different log types in different regions. Please refer to the following example:

    • CDS(all log type): ap-guangzhou
    • CDB-AUDIT: gz
    • TDSQL-C-AUDIT: gz
    • MongoDB-AUDIT: gz
    • MongoDB-SlowLog: ap-guangzhou
    • MongoDB-ErrorLog: ap-guangzhou
    • TDMYSQL-SLOW: gz
    • DCDB(all log type): gz
    • MariaDB(all log type): gz
    • PostgreSQL(all log type): gz
    • BH(all log type): overseas-polaris(Domestic sites overseas)/fsi-polaris(Domestic sites finance)/general-polaris(Domestic sites)/intl-sg-prod(International sites)
    • APIS(all log type): gz.
    clsCloudProductLogTaskV2Id string
    ID of the resource.
    clsRegion string
    CLS target region.
    extend string
    Log configuration extension information, generally used to store additional log delivery configurations.
    forceDelete boolean
    Indicate whether to forcibly delete the corresponding logset and topic. If set to true, it will be forcibly deleted. Default is false.
    instanceId string
    Instance ID.
    logType string
    Log type, Values: CDS-AUDIT, CDS-RISK, CDB-AUDIT, TDSQL-C-AUDIT, MongoDB-AUDIT, MongoDB-SlowLog, MongoDB-ErrorLog, TDMYSQL-SLOW, DCDB-AUDIT, DCDB-SLOW, DCDB-ERROR, MariaDB-AUDIT, MariaDB-SLOW, MariaDB-ERROR, PostgreSQL-SLOW, PostgreSQL-ERROR, PostgreSQL-AUDIT, BH-FILELOG, BH-COMMANDLOG, APIS-ACCESS.
    logsetId string
    Log set ID.
    logsetName string
    Log set name, required if logset_id is not filled in. If the log set does not exist, it will be automatically created.
    topicId string
    Log theme ID.
    topicName string
    The name of the log topic is required when topic_id is not filled in. If the log theme does not exist, it will be automatically created.
    assumer_name str
    Cloud product identification, Values: CDS, CWP, CDB, TDSQL-C, MongoDB, TDStore, DCDB, MariaDB, PostgreSQL, BH, APIS.
    cloud_product_region str
    Cloud product region. There are differences in the input format of different log types in different regions. Please refer to the following example:

    • CDS(all log type): ap-guangzhou
    • CDB-AUDIT: gz
    • TDSQL-C-AUDIT: gz
    • MongoDB-AUDIT: gz
    • MongoDB-SlowLog: ap-guangzhou
    • MongoDB-ErrorLog: ap-guangzhou
    • TDMYSQL-SLOW: gz
    • DCDB(all log type): gz
    • MariaDB(all log type): gz
    • PostgreSQL(all log type): gz
    • BH(all log type): overseas-polaris(Domestic sites overseas)/fsi-polaris(Domestic sites finance)/general-polaris(Domestic sites)/intl-sg-prod(International sites)
    • APIS(all log type): gz.
    cls_cloud_product_log_task_v2_id str
    ID of the resource.
    cls_region str
    CLS target region.
    extend str
    Log configuration extension information, generally used to store additional log delivery configurations.
    force_delete bool
    Indicate whether to forcibly delete the corresponding logset and topic. If set to true, it will be forcibly deleted. Default is false.
    instance_id str
    Instance ID.
    log_type str
    Log type, Values: CDS-AUDIT, CDS-RISK, CDB-AUDIT, TDSQL-C-AUDIT, MongoDB-AUDIT, MongoDB-SlowLog, MongoDB-ErrorLog, TDMYSQL-SLOW, DCDB-AUDIT, DCDB-SLOW, DCDB-ERROR, MariaDB-AUDIT, MariaDB-SLOW, MariaDB-ERROR, PostgreSQL-SLOW, PostgreSQL-ERROR, PostgreSQL-AUDIT, BH-FILELOG, BH-COMMANDLOG, APIS-ACCESS.
    logset_id str
    Log set ID.
    logset_name str
    Log set name, required if logset_id is not filled in. If the log set does not exist, it will be automatically created.
    topic_id str
    Log theme ID.
    topic_name str
    The name of the log topic is required when topic_id is not filled in. If the log theme does not exist, it will be automatically created.
    assumerName String
    Cloud product identification, Values: CDS, CWP, CDB, TDSQL-C, MongoDB, TDStore, DCDB, MariaDB, PostgreSQL, BH, APIS.
    cloudProductRegion String
    Cloud product region. There are differences in the input format of different log types in different regions. Please refer to the following example:

    • CDS(all log type): ap-guangzhou
    • CDB-AUDIT: gz
    • TDSQL-C-AUDIT: gz
    • MongoDB-AUDIT: gz
    • MongoDB-SlowLog: ap-guangzhou
    • MongoDB-ErrorLog: ap-guangzhou
    • TDMYSQL-SLOW: gz
    • DCDB(all log type): gz
    • MariaDB(all log type): gz
    • PostgreSQL(all log type): gz
    • BH(all log type): overseas-polaris(Domestic sites overseas)/fsi-polaris(Domestic sites finance)/general-polaris(Domestic sites)/intl-sg-prod(International sites)
    • APIS(all log type): gz.
    clsCloudProductLogTaskV2Id String
    ID of the resource.
    clsRegion String
    CLS target region.
    extend String
    Log configuration extension information, generally used to store additional log delivery configurations.
    forceDelete Boolean
    Indicate whether to forcibly delete the corresponding logset and topic. If set to true, it will be forcibly deleted. Default is false.
    instanceId String
    Instance ID.
    logType String
    Log type, Values: CDS-AUDIT, CDS-RISK, CDB-AUDIT, TDSQL-C-AUDIT, MongoDB-AUDIT, MongoDB-SlowLog, MongoDB-ErrorLog, TDMYSQL-SLOW, DCDB-AUDIT, DCDB-SLOW, DCDB-ERROR, MariaDB-AUDIT, MariaDB-SLOW, MariaDB-ERROR, PostgreSQL-SLOW, PostgreSQL-ERROR, PostgreSQL-AUDIT, BH-FILELOG, BH-COMMANDLOG, APIS-ACCESS.
    logsetId String
    Log set ID.
    logsetName String
    Log set name, required if logset_id is not filled in. If the log set does not exist, it will be automatically created.
    topicId String
    Log theme ID.
    topicName String
    The name of the log topic is required when topic_id is not filled in. If the log theme does not exist, it will be automatically created.

    Import

    cls cloud product log task can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/clsCloudProductLogTaskV2:ClsCloudProductLogTaskV2 example postgres-1p7xvpc1#PostgreSQL#PostgreSQL-SLOW#gz
    

    To learn more about importing existing cloud resources, see Importing resources.

    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