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

tencentcloud.DbbrainDbDiagReportTask

Explore with Pulumi AI

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

    Provides a resource to create a dbbrain db_diag_report_task

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const dbDiagReportTask = new tencentcloud.DbbrainDbDiagReportTask("dbDiagReportTask", {
        endTime: "%s",
        instanceId: "%s",
        product: "mysql",
        sendMailFlag: 0,
        startTime: "%s",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    db_diag_report_task = tencentcloud.DbbrainDbDiagReportTask("dbDiagReportTask",
        end_time="%s",
        instance_id="%s",
        product="mysql",
        send_mail_flag=0,
        start_time="%s")
    
    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.NewDbbrainDbDiagReportTask(ctx, "dbDiagReportTask", &tencentcloud.DbbrainDbDiagReportTaskArgs{
    			EndTime:      pulumi.String("%s"),
    			InstanceId:   pulumi.String("%s"),
    			Product:      pulumi.String("mysql"),
    			SendMailFlag: pulumi.Float64(0),
    			StartTime:    pulumi.String("%s"),
    		})
    		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 dbDiagReportTask = new Tencentcloud.DbbrainDbDiagReportTask("dbDiagReportTask", new()
        {
            EndTime = "%s",
            InstanceId = "%s",
            Product = "mysql",
            SendMailFlag = 0,
            StartTime = "%s",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.DbbrainDbDiagReportTask;
    import com.pulumi.tencentcloud.DbbrainDbDiagReportTaskArgs;
    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 dbDiagReportTask = new DbbrainDbDiagReportTask("dbDiagReportTask", DbbrainDbDiagReportTaskArgs.builder()
                .endTime("%s")
                .instanceId("%s")
                .product("mysql")
                .sendMailFlag(0)
                .startTime("%s")
                .build());
    
        }
    }
    
    resources:
      dbDiagReportTask:
        type: tencentcloud:DbbrainDbDiagReportTask
        properties:
          endTime: '%s'
          instanceId: '%s'
          product: mysql
          sendMailFlag: 0
          startTime: '%s'
    

    Create DbbrainDbDiagReportTask Resource

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

    Constructor syntax

    new DbbrainDbDiagReportTask(name: string, args: DbbrainDbDiagReportTaskArgs, opts?: CustomResourceOptions);
    @overload
    def DbbrainDbDiagReportTask(resource_name: str,
                                args: DbbrainDbDiagReportTaskArgs,
                                opts: Optional[ResourceOptions] = None)
    
    @overload
    def DbbrainDbDiagReportTask(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                end_time: Optional[str] = None,
                                instance_id: Optional[str] = None,
                                product: Optional[str] = None,
                                send_mail_flag: Optional[float] = None,
                                start_time: Optional[str] = None,
                                contact_groups: Optional[Sequence[float]] = None,
                                contact_people: Optional[Sequence[float]] = None,
                                dbbrain_db_diag_report_task_id: Optional[str] = None)
    func NewDbbrainDbDiagReportTask(ctx *Context, name string, args DbbrainDbDiagReportTaskArgs, opts ...ResourceOption) (*DbbrainDbDiagReportTask, error)
    public DbbrainDbDiagReportTask(string name, DbbrainDbDiagReportTaskArgs args, CustomResourceOptions? opts = null)
    public DbbrainDbDiagReportTask(String name, DbbrainDbDiagReportTaskArgs args)
    public DbbrainDbDiagReportTask(String name, DbbrainDbDiagReportTaskArgs args, CustomResourceOptions options)
    
    type: tencentcloud:DbbrainDbDiagReportTask
    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 DbbrainDbDiagReportTaskArgs
    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 DbbrainDbDiagReportTaskArgs
    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 DbbrainDbDiagReportTaskArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DbbrainDbDiagReportTaskArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DbbrainDbDiagReportTaskArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    EndTime string
    End time, such as 2020-11-09T14:00:00+08:00.
    InstanceId string
    instance id.
    Product string
    Service product type, supported values include: mysql - cloud database MySQL, cynosdb - cloud database CynosDB for MySQL.
    SendMailFlag double
    Whether to send mail: 0 - no, 1 - yes.
    StartTime string
    Start time, such as 2020-11-08T14:00:00+08:00.
    ContactGroups List<double>
    An array of contact group IDs to receive mail from.
    ContactPeople List<double>
    An array of contact IDs to receive emails from.
    DbbrainDbDiagReportTaskId string
    ID of the resource.
    EndTime string
    End time, such as 2020-11-09T14:00:00+08:00.
    InstanceId string
    instance id.
    Product string
    Service product type, supported values include: mysql - cloud database MySQL, cynosdb - cloud database CynosDB for MySQL.
    SendMailFlag float64
    Whether to send mail: 0 - no, 1 - yes.
    StartTime string
    Start time, such as 2020-11-08T14:00:00+08:00.
    ContactGroups []float64
    An array of contact group IDs to receive mail from.
    ContactPeople []float64
    An array of contact IDs to receive emails from.
    DbbrainDbDiagReportTaskId string
    ID of the resource.
    endTime String
    End time, such as 2020-11-09T14:00:00+08:00.
    instanceId String
    instance id.
    product String
    Service product type, supported values include: mysql - cloud database MySQL, cynosdb - cloud database CynosDB for MySQL.
    sendMailFlag Double
    Whether to send mail: 0 - no, 1 - yes.
    startTime String
    Start time, such as 2020-11-08T14:00:00+08:00.
    contactGroups List<Double>
    An array of contact group IDs to receive mail from.
    contactPeople List<Double>
    An array of contact IDs to receive emails from.
    dbbrainDbDiagReportTaskId String
    ID of the resource.
    endTime string
    End time, such as 2020-11-09T14:00:00+08:00.
    instanceId string
    instance id.
    product string
    Service product type, supported values include: mysql - cloud database MySQL, cynosdb - cloud database CynosDB for MySQL.
    sendMailFlag number
    Whether to send mail: 0 - no, 1 - yes.
    startTime string
    Start time, such as 2020-11-08T14:00:00+08:00.
    contactGroups number[]
    An array of contact group IDs to receive mail from.
    contactPeople number[]
    An array of contact IDs to receive emails from.
    dbbrainDbDiagReportTaskId string
    ID of the resource.
    end_time str
    End time, such as 2020-11-09T14:00:00+08:00.
    instance_id str
    instance id.
    product str
    Service product type, supported values include: mysql - cloud database MySQL, cynosdb - cloud database CynosDB for MySQL.
    send_mail_flag float
    Whether to send mail: 0 - no, 1 - yes.
    start_time str
    Start time, such as 2020-11-08T14:00:00+08:00.
    contact_groups Sequence[float]
    An array of contact group IDs to receive mail from.
    contact_people Sequence[float]
    An array of contact IDs to receive emails from.
    dbbrain_db_diag_report_task_id str
    ID of the resource.
    endTime String
    End time, such as 2020-11-09T14:00:00+08:00.
    instanceId String
    instance id.
    product String
    Service product type, supported values include: mysql - cloud database MySQL, cynosdb - cloud database CynosDB for MySQL.
    sendMailFlag Number
    Whether to send mail: 0 - no, 1 - yes.
    startTime String
    Start time, such as 2020-11-08T14:00:00+08:00.
    contactGroups List<Number>
    An array of contact group IDs to receive mail from.
    contactPeople List<Number>
    An array of contact IDs to receive emails from.
    dbbrainDbDiagReportTaskId String
    ID of the resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the DbbrainDbDiagReportTask 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 DbbrainDbDiagReportTask Resource

    Get an existing DbbrainDbDiagReportTask 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?: DbbrainDbDiagReportTaskState, opts?: CustomResourceOptions): DbbrainDbDiagReportTask
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            contact_groups: Optional[Sequence[float]] = None,
            contact_people: Optional[Sequence[float]] = None,
            dbbrain_db_diag_report_task_id: Optional[str] = None,
            end_time: Optional[str] = None,
            instance_id: Optional[str] = None,
            product: Optional[str] = None,
            send_mail_flag: Optional[float] = None,
            start_time: Optional[str] = None) -> DbbrainDbDiagReportTask
    func GetDbbrainDbDiagReportTask(ctx *Context, name string, id IDInput, state *DbbrainDbDiagReportTaskState, opts ...ResourceOption) (*DbbrainDbDiagReportTask, error)
    public static DbbrainDbDiagReportTask Get(string name, Input<string> id, DbbrainDbDiagReportTaskState? state, CustomResourceOptions? opts = null)
    public static DbbrainDbDiagReportTask get(String name, Output<String> id, DbbrainDbDiagReportTaskState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:DbbrainDbDiagReportTask    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:
    ContactGroups List<double>
    An array of contact group IDs to receive mail from.
    ContactPeople List<double>
    An array of contact IDs to receive emails from.
    DbbrainDbDiagReportTaskId string
    ID of the resource.
    EndTime string
    End time, such as 2020-11-09T14:00:00+08:00.
    InstanceId string
    instance id.
    Product string
    Service product type, supported values include: mysql - cloud database MySQL, cynosdb - cloud database CynosDB for MySQL.
    SendMailFlag double
    Whether to send mail: 0 - no, 1 - yes.
    StartTime string
    Start time, such as 2020-11-08T14:00:00+08:00.
    ContactGroups []float64
    An array of contact group IDs to receive mail from.
    ContactPeople []float64
    An array of contact IDs to receive emails from.
    DbbrainDbDiagReportTaskId string
    ID of the resource.
    EndTime string
    End time, such as 2020-11-09T14:00:00+08:00.
    InstanceId string
    instance id.
    Product string
    Service product type, supported values include: mysql - cloud database MySQL, cynosdb - cloud database CynosDB for MySQL.
    SendMailFlag float64
    Whether to send mail: 0 - no, 1 - yes.
    StartTime string
    Start time, such as 2020-11-08T14:00:00+08:00.
    contactGroups List<Double>
    An array of contact group IDs to receive mail from.
    contactPeople List<Double>
    An array of contact IDs to receive emails from.
    dbbrainDbDiagReportTaskId String
    ID of the resource.
    endTime String
    End time, such as 2020-11-09T14:00:00+08:00.
    instanceId String
    instance id.
    product String
    Service product type, supported values include: mysql - cloud database MySQL, cynosdb - cloud database CynosDB for MySQL.
    sendMailFlag Double
    Whether to send mail: 0 - no, 1 - yes.
    startTime String
    Start time, such as 2020-11-08T14:00:00+08:00.
    contactGroups number[]
    An array of contact group IDs to receive mail from.
    contactPeople number[]
    An array of contact IDs to receive emails from.
    dbbrainDbDiagReportTaskId string
    ID of the resource.
    endTime string
    End time, such as 2020-11-09T14:00:00+08:00.
    instanceId string
    instance id.
    product string
    Service product type, supported values include: mysql - cloud database MySQL, cynosdb - cloud database CynosDB for MySQL.
    sendMailFlag number
    Whether to send mail: 0 - no, 1 - yes.
    startTime string
    Start time, such as 2020-11-08T14:00:00+08:00.
    contact_groups Sequence[float]
    An array of contact group IDs to receive mail from.
    contact_people Sequence[float]
    An array of contact IDs to receive emails from.
    dbbrain_db_diag_report_task_id str
    ID of the resource.
    end_time str
    End time, such as 2020-11-09T14:00:00+08:00.
    instance_id str
    instance id.
    product str
    Service product type, supported values include: mysql - cloud database MySQL, cynosdb - cloud database CynosDB for MySQL.
    send_mail_flag float
    Whether to send mail: 0 - no, 1 - yes.
    start_time str
    Start time, such as 2020-11-08T14:00:00+08:00.
    contactGroups List<Number>
    An array of contact group IDs to receive mail from.
    contactPeople List<Number>
    An array of contact IDs to receive emails from.
    dbbrainDbDiagReportTaskId String
    ID of the resource.
    endTime String
    End time, such as 2020-11-09T14:00:00+08:00.
    instanceId String
    instance id.
    product String
    Service product type, supported values include: mysql - cloud database MySQL, cynosdb - cloud database CynosDB for MySQL.
    sendMailFlag Number
    Whether to send mail: 0 - no, 1 - yes.
    startTime String
    Start time, such as 2020-11-08T14:00:00+08:00.

    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