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

tencentcloud.CynosdbExportInstanceErrorLogs

Explore with Pulumi AI

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

    Provides a resource to create a cynosdb export_instance_error_logs

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const exportInstanceErrorLogs = new tencentcloud.CynosdbExportInstanceErrorLogs("exportInstanceErrorLogs", {
        endTime: "2022-01-01 14:00:00",
        fileType: "csv",
        instanceId: "cynosdbmysql-ins-afqx1hy0",
        keyWords: ["content"],
        logLevels: ["note"],
        orderBy: "Timestamp",
        orderByType: "ASC",
        startTime: "2022-01-01 12:00:00",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    export_instance_error_logs = tencentcloud.CynosdbExportInstanceErrorLogs("exportInstanceErrorLogs",
        end_time="2022-01-01 14:00:00",
        file_type="csv",
        instance_id="cynosdbmysql-ins-afqx1hy0",
        key_words=["content"],
        log_levels=["note"],
        order_by="Timestamp",
        order_by_type="ASC",
        start_time="2022-01-01 12:00:00")
    
    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.NewCynosdbExportInstanceErrorLogs(ctx, "exportInstanceErrorLogs", &tencentcloud.CynosdbExportInstanceErrorLogsArgs{
    			EndTime:    pulumi.String("2022-01-01 14:00:00"),
    			FileType:   pulumi.String("csv"),
    			InstanceId: pulumi.String("cynosdbmysql-ins-afqx1hy0"),
    			KeyWords: pulumi.StringArray{
    				pulumi.String("content"),
    			},
    			LogLevels: pulumi.StringArray{
    				pulumi.String("note"),
    			},
    			OrderBy:     pulumi.String("Timestamp"),
    			OrderByType: pulumi.String("ASC"),
    			StartTime:   pulumi.String("2022-01-01 12:00:00"),
    		})
    		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 exportInstanceErrorLogs = new Tencentcloud.CynosdbExportInstanceErrorLogs("exportInstanceErrorLogs", new()
        {
            EndTime = "2022-01-01 14:00:00",
            FileType = "csv",
            InstanceId = "cynosdbmysql-ins-afqx1hy0",
            KeyWords = new[]
            {
                "content",
            },
            LogLevels = new[]
            {
                "note",
            },
            OrderBy = "Timestamp",
            OrderByType = "ASC",
            StartTime = "2022-01-01 12:00:00",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.CynosdbExportInstanceErrorLogs;
    import com.pulumi.tencentcloud.CynosdbExportInstanceErrorLogsArgs;
    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 exportInstanceErrorLogs = new CynosdbExportInstanceErrorLogs("exportInstanceErrorLogs", CynosdbExportInstanceErrorLogsArgs.builder()
                .endTime("2022-01-01 14:00:00")
                .fileType("csv")
                .instanceId("cynosdbmysql-ins-afqx1hy0")
                .keyWords("content")
                .logLevels("note")
                .orderBy("Timestamp")
                .orderByType("ASC")
                .startTime("2022-01-01 12:00:00")
                .build());
    
        }
    }
    
    resources:
      exportInstanceErrorLogs:
        type: tencentcloud:CynosdbExportInstanceErrorLogs
        properties:
          endTime: 2022-01-01 14:00:00
          fileType: csv
          instanceId: cynosdbmysql-ins-afqx1hy0
          keyWords:
            - content
          logLevels:
            - note
          orderBy: Timestamp
          orderByType: ASC
          startTime: 2022-01-01 12:00:00
    

    Create CynosdbExportInstanceErrorLogs Resource

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

    Constructor syntax

    new CynosdbExportInstanceErrorLogs(name: string, args: CynosdbExportInstanceErrorLogsArgs, opts?: CustomResourceOptions);
    @overload
    def CynosdbExportInstanceErrorLogs(resource_name: str,
                                       args: CynosdbExportInstanceErrorLogsArgs,
                                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def CynosdbExportInstanceErrorLogs(resource_name: str,
                                       opts: Optional[ResourceOptions] = None,
                                       instance_id: Optional[str] = None,
                                       cynosdb_export_instance_error_logs_id: Optional[str] = None,
                                       end_time: Optional[str] = None,
                                       file_type: Optional[str] = None,
                                       key_words: Optional[Sequence[str]] = None,
                                       log_levels: Optional[Sequence[str]] = None,
                                       order_by: Optional[str] = None,
                                       order_by_type: Optional[str] = None,
                                       start_time: Optional[str] = None)
    func NewCynosdbExportInstanceErrorLogs(ctx *Context, name string, args CynosdbExportInstanceErrorLogsArgs, opts ...ResourceOption) (*CynosdbExportInstanceErrorLogs, error)
    public CynosdbExportInstanceErrorLogs(string name, CynosdbExportInstanceErrorLogsArgs args, CustomResourceOptions? opts = null)
    public CynosdbExportInstanceErrorLogs(String name, CynosdbExportInstanceErrorLogsArgs args)
    public CynosdbExportInstanceErrorLogs(String name, CynosdbExportInstanceErrorLogsArgs args, CustomResourceOptions options)
    
    type: tencentcloud:CynosdbExportInstanceErrorLogs
    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 CynosdbExportInstanceErrorLogsArgs
    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 CynosdbExportInstanceErrorLogsArgs
    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 CynosdbExportInstanceErrorLogsArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CynosdbExportInstanceErrorLogsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CynosdbExportInstanceErrorLogsArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    CynosdbExportInstanceErrorLogs 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 CynosdbExportInstanceErrorLogs resource accepts the following input properties:

    InstanceId string
    Instance ID.
    CynosdbExportInstanceErrorLogsId string
    ID of the resource.
    EndTime string
    Latest log time.
    FileType string
    File type, optional values: csv, original.
    KeyWords List<string>
    keyword.
    LogLevels List<string>
    Log level.
    OrderBy string
    Optional value Timestamp.
    OrderByType string
    ASC or DESC.
    StartTime string
    Log earliest time.
    InstanceId string
    Instance ID.
    CynosdbExportInstanceErrorLogsId string
    ID of the resource.
    EndTime string
    Latest log time.
    FileType string
    File type, optional values: csv, original.
    KeyWords []string
    keyword.
    LogLevels []string
    Log level.
    OrderBy string
    Optional value Timestamp.
    OrderByType string
    ASC or DESC.
    StartTime string
    Log earliest time.
    instanceId String
    Instance ID.
    cynosdbExportInstanceErrorLogsId String
    ID of the resource.
    endTime String
    Latest log time.
    fileType String
    File type, optional values: csv, original.
    keyWords List<String>
    keyword.
    logLevels List<String>
    Log level.
    orderBy String
    Optional value Timestamp.
    orderByType String
    ASC or DESC.
    startTime String
    Log earliest time.
    instanceId string
    Instance ID.
    cynosdbExportInstanceErrorLogsId string
    ID of the resource.
    endTime string
    Latest log time.
    fileType string
    File type, optional values: csv, original.
    keyWords string[]
    keyword.
    logLevels string[]
    Log level.
    orderBy string
    Optional value Timestamp.
    orderByType string
    ASC or DESC.
    startTime string
    Log earliest time.
    instance_id str
    Instance ID.
    cynosdb_export_instance_error_logs_id str
    ID of the resource.
    end_time str
    Latest log time.
    file_type str
    File type, optional values: csv, original.
    key_words Sequence[str]
    keyword.
    log_levels Sequence[str]
    Log level.
    order_by str
    Optional value Timestamp.
    order_by_type str
    ASC or DESC.
    start_time str
    Log earliest time.
    instanceId String
    Instance ID.
    cynosdbExportInstanceErrorLogsId String
    ID of the resource.
    endTime String
    Latest log time.
    fileType String
    File type, optional values: csv, original.
    keyWords List<String>
    keyword.
    logLevels List<String>
    Log level.
    orderBy String
    Optional value Timestamp.
    orderByType String
    ASC or DESC.
    startTime String
    Log earliest time.

    Outputs

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

    ErrorLogItemExports List<CynosdbExportInstanceErrorLogsErrorLogItemExport>
    List of instances in the read-write instance group.
    Id string
    The provider-assigned unique ID for this managed resource.
    ErrorLogItemExports []CynosdbExportInstanceErrorLogsErrorLogItemExport
    List of instances in the read-write instance group.
    Id string
    The provider-assigned unique ID for this managed resource.
    errorLogItemExports List<CynosdbExportInstanceErrorLogsErrorLogItemExport>
    List of instances in the read-write instance group.
    id String
    The provider-assigned unique ID for this managed resource.
    errorLogItemExports CynosdbExportInstanceErrorLogsErrorLogItemExport[]
    List of instances in the read-write instance group.
    id string
    The provider-assigned unique ID for this managed resource.
    error_log_item_exports Sequence[CynosdbExportInstanceErrorLogsErrorLogItemExport]
    List of instances in the read-write instance group.
    id str
    The provider-assigned unique ID for this managed resource.
    errorLogItemExports List<Property Map>
    List of instances in the read-write instance group.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing CynosdbExportInstanceErrorLogs Resource

    Get an existing CynosdbExportInstanceErrorLogs 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?: CynosdbExportInstanceErrorLogsState, opts?: CustomResourceOptions): CynosdbExportInstanceErrorLogs
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cynosdb_export_instance_error_logs_id: Optional[str] = None,
            end_time: Optional[str] = None,
            error_log_item_exports: Optional[Sequence[CynosdbExportInstanceErrorLogsErrorLogItemExportArgs]] = None,
            file_type: Optional[str] = None,
            instance_id: Optional[str] = None,
            key_words: Optional[Sequence[str]] = None,
            log_levels: Optional[Sequence[str]] = None,
            order_by: Optional[str] = None,
            order_by_type: Optional[str] = None,
            start_time: Optional[str] = None) -> CynosdbExportInstanceErrorLogs
    func GetCynosdbExportInstanceErrorLogs(ctx *Context, name string, id IDInput, state *CynosdbExportInstanceErrorLogsState, opts ...ResourceOption) (*CynosdbExportInstanceErrorLogs, error)
    public static CynosdbExportInstanceErrorLogs Get(string name, Input<string> id, CynosdbExportInstanceErrorLogsState? state, CustomResourceOptions? opts = null)
    public static CynosdbExportInstanceErrorLogs get(String name, Output<String> id, CynosdbExportInstanceErrorLogsState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:CynosdbExportInstanceErrorLogs    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:
    CynosdbExportInstanceErrorLogsId string
    ID of the resource.
    EndTime string
    Latest log time.
    ErrorLogItemExports List<CynosdbExportInstanceErrorLogsErrorLogItemExport>
    List of instances in the read-write instance group.
    FileType string
    File type, optional values: csv, original.
    InstanceId string
    Instance ID.
    KeyWords List<string>
    keyword.
    LogLevels List<string>
    Log level.
    OrderBy string
    Optional value Timestamp.
    OrderByType string
    ASC or DESC.
    StartTime string
    Log earliest time.
    CynosdbExportInstanceErrorLogsId string
    ID of the resource.
    EndTime string
    Latest log time.
    ErrorLogItemExports []CynosdbExportInstanceErrorLogsErrorLogItemExportArgs
    List of instances in the read-write instance group.
    FileType string
    File type, optional values: csv, original.
    InstanceId string
    Instance ID.
    KeyWords []string
    keyword.
    LogLevels []string
    Log level.
    OrderBy string
    Optional value Timestamp.
    OrderByType string
    ASC or DESC.
    StartTime string
    Log earliest time.
    cynosdbExportInstanceErrorLogsId String
    ID of the resource.
    endTime String
    Latest log time.
    errorLogItemExports List<CynosdbExportInstanceErrorLogsErrorLogItemExport>
    List of instances in the read-write instance group.
    fileType String
    File type, optional values: csv, original.
    instanceId String
    Instance ID.
    keyWords List<String>
    keyword.
    logLevels List<String>
    Log level.
    orderBy String
    Optional value Timestamp.
    orderByType String
    ASC or DESC.
    startTime String
    Log earliest time.
    cynosdbExportInstanceErrorLogsId string
    ID of the resource.
    endTime string
    Latest log time.
    errorLogItemExports CynosdbExportInstanceErrorLogsErrorLogItemExport[]
    List of instances in the read-write instance group.
    fileType string
    File type, optional values: csv, original.
    instanceId string
    Instance ID.
    keyWords string[]
    keyword.
    logLevels string[]
    Log level.
    orderBy string
    Optional value Timestamp.
    orderByType string
    ASC or DESC.
    startTime string
    Log earliest time.
    cynosdb_export_instance_error_logs_id str
    ID of the resource.
    end_time str
    Latest log time.
    error_log_item_exports Sequence[CynosdbExportInstanceErrorLogsErrorLogItemExportArgs]
    List of instances in the read-write instance group.
    file_type str
    File type, optional values: csv, original.
    instance_id str
    Instance ID.
    key_words Sequence[str]
    keyword.
    log_levels Sequence[str]
    Log level.
    order_by str
    Optional value Timestamp.
    order_by_type str
    ASC or DESC.
    start_time str
    Log earliest time.
    cynosdbExportInstanceErrorLogsId String
    ID of the resource.
    endTime String
    Latest log time.
    errorLogItemExports List<Property Map>
    List of instances in the read-write instance group.
    fileType String
    File type, optional values: csv, original.
    instanceId String
    Instance ID.
    keyWords List<String>
    keyword.
    logLevels List<String>
    Log level.
    orderBy String
    Optional value Timestamp.
    orderByType String
    ASC or DESC.
    startTime String
    Log earliest time.

    Supporting Types

    CynosdbExportInstanceErrorLogsErrorLogItemExport, CynosdbExportInstanceErrorLogsErrorLogItemExportArgs

    Content string
    log content.
    Level string
    Log level, optional values note, warning, error.
    Timestamp string
    time.
    Content string
    log content.
    Level string
    Log level, optional values note, warning, error.
    Timestamp string
    time.
    content String
    log content.
    level String
    Log level, optional values note, warning, error.
    timestamp String
    time.
    content string
    log content.
    level string
    Log level, optional values note, warning, error.
    timestamp string
    time.
    content str
    log content.
    level str
    Log level, optional values note, warning, error.
    timestamp str
    time.
    content String
    log content.
    level String
    Log level, optional values note, warning, error.
    timestamp String
    time.

    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