tencentcloud.ClsCloudProductLogTaskV2
Explore with Pulumi AI
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
totrue
.
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:
- Assumer
Name string - Cloud product identification, Values: CDS, CWP, CDB, TDSQL-C, MongoDB, TDStore, DCDB, MariaDB, PostgreSQL, BH, APIS.
- Cloud
Product stringRegion - 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 string - CLS target region.
- Instance
Id string - Instance ID.
- Log
Type 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.
- Cls
Cloud stringProduct Log Task V2Id - ID of the resource.
- Extend string
- 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 string - Log set ID.
- Logset
Name string - 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 string - Log theme ID.
- Topic
Name 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 string - Cloud product identification, Values: CDS, CWP, CDB, TDSQL-C, MongoDB, TDStore, DCDB, MariaDB, PostgreSQL, BH, APIS.
- Cloud
Product stringRegion - 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 string - CLS target region.
- Instance
Id string - Instance ID.
- Log
Type 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.
- Cls
Cloud stringProduct Log Task V2Id - ID of the resource.
- Extend string
- 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 string - Log set ID.
- Logset
Name string - 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 string - Log theme ID.
- Topic
Name 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 String - Cloud product identification, Values: CDS, CWP, CDB, TDSQL-C, MongoDB, TDStore, DCDB, MariaDB, PostgreSQL, BH, APIS.
- cloud
Product StringRegion - 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 String - CLS target region.
- instance
Id String - Instance ID.
- log
Type 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.
- cls
Cloud StringProduct Log Task V2Id - ID of the resource.
- extend String
- Log configuration extension information, generally used to store additional log delivery configurations.
- force
Delete Boolean - Indicate whether to forcibly delete the corresponding logset and topic. If set to true, it will be forcibly deleted. Default is false.
- logset
Id String - Log set ID.
- logset
Name String - 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 String - Log theme ID.
- topic
Name 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 string - Cloud product identification, Values: CDS, CWP, CDB, TDSQL-C, MongoDB, TDStore, DCDB, MariaDB, PostgreSQL, BH, APIS.
- cloud
Product stringRegion - 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 string - CLS target region.
- instance
Id string - Instance ID.
- log
Type 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.
- cls
Cloud stringProduct Log Task V2Id - ID of the resource.
- extend string
- Log configuration extension information, generally used to store additional log delivery configurations.
- force
Delete boolean - Indicate whether to forcibly delete the corresponding logset and topic. If set to true, it will be forcibly deleted. Default is false.
- logset
Id string - Log set ID.
- logset
Name string - 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 string - Log theme ID.
- topic
Name 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_ strregion - 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_ strproduct_ log_ task_ v2_ id - 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.
- assumer
Name String - Cloud product identification, Values: CDS, CWP, CDB, TDSQL-C, MongoDB, TDStore, DCDB, MariaDB, PostgreSQL, BH, APIS.
- cloud
Product StringRegion - 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 String - CLS target region.
- instance
Id String - Instance ID.
- log
Type 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.
- cls
Cloud StringProduct Log Task V2Id - ID of the resource.
- extend String
- Log configuration extension information, generally used to store additional log delivery configurations.
- force
Delete Boolean - Indicate whether to forcibly delete the corresponding logset and topic. If set to true, it will be forcibly deleted. Default is false.
- logset
Id String - Log set ID.
- logset
Name String - 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 String - Log theme ID.
- topic
Name 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.
- Assumer
Name string - Cloud product identification, Values: CDS, CWP, CDB, TDSQL-C, MongoDB, TDStore, DCDB, MariaDB, PostgreSQL, BH, APIS.
- Cloud
Product stringRegion - 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 stringProduct Log Task V2Id - ID of the resource.
- Cls
Region string - CLS target region.
- Extend string
- 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 string - Instance ID.
- Log
Type 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.
- Logset
Id string - Log set ID.
- Logset
Name string - 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 string - Log theme ID.
- Topic
Name 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 string - Cloud product identification, Values: CDS, CWP, CDB, TDSQL-C, MongoDB, TDStore, DCDB, MariaDB, PostgreSQL, BH, APIS.
- Cloud
Product stringRegion - 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 stringProduct Log Task V2Id - ID of the resource.
- Cls
Region string - CLS target region.
- Extend string
- 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 string - Instance ID.
- Log
Type 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.
- Logset
Id string - Log set ID.
- Logset
Name string - 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 string - Log theme ID.
- Topic
Name 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 String - Cloud product identification, Values: CDS, CWP, CDB, TDSQL-C, MongoDB, TDStore, DCDB, MariaDB, PostgreSQL, BH, APIS.
- cloud
Product StringRegion - 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 StringProduct Log Task V2Id - ID of the resource.
- cls
Region String - CLS target region.
- extend String
- Log configuration extension information, generally used to store additional log delivery configurations.
- force
Delete Boolean - Indicate whether to forcibly delete the corresponding logset and topic. If set to true, it will be forcibly deleted. Default is false.
- instance
Id String - Instance ID.
- log
Type 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.
- logset
Id String - Log set ID.
- logset
Name String - 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 String - Log theme ID.
- topic
Name 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 string - Cloud product identification, Values: CDS, CWP, CDB, TDSQL-C, MongoDB, TDStore, DCDB, MariaDB, PostgreSQL, BH, APIS.
- cloud
Product stringRegion - 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 stringProduct Log Task V2Id - ID of the resource.
- cls
Region string - CLS target region.
- extend string
- Log configuration extension information, generally used to store additional log delivery configurations.
- force
Delete boolean - Indicate whether to forcibly delete the corresponding logset and topic. If set to true, it will be forcibly deleted. Default is false.
- instance
Id string - Instance ID.
- log
Type 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.
- logset
Id string - Log set ID.
- logset
Name string - 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 string - Log theme ID.
- topic
Name 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_ strregion - 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_ strproduct_ log_ task_ v2_ id - 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.
- assumer
Name String - Cloud product identification, Values: CDS, CWP, CDB, TDSQL-C, MongoDB, TDStore, DCDB, MariaDB, PostgreSQL, BH, APIS.
- cloud
Product StringRegion - 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 StringProduct Log Task V2Id - ID of the resource.
- cls
Region String - CLS target region.
- extend String
- Log configuration extension information, generally used to store additional log delivery configurations.
- force
Delete Boolean - Indicate whether to forcibly delete the corresponding logset and topic. If set to true, it will be forcibly deleted. Default is false.
- instance
Id String - Instance ID.
- log
Type 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.
- logset
Id String - Log set ID.
- logset
Name String - 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 String - Log theme ID.
- topic
Name 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.