tencentcloud.DbbrainDbDiagReportTask
Explore with Pulumi AI
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:
- End
Time string - End time, such as 2020-11-09T14:00:00+08:00.
- Instance
Id string - instance id.
- Product string
- Service product type, supported values include: mysql - cloud database MySQL, cynosdb - cloud database CynosDB for MySQL.
- Send
Mail doubleFlag - Whether to send mail: 0 - no, 1 - yes.
- Start
Time string - Start time, such as 2020-11-08T14:00:00+08:00.
- Contact
Groups List<double> - An array of contact group IDs to receive mail from.
- Contact
People List<double> - An array of contact IDs to receive emails from.
- Dbbrain
Db stringDiag Report Task Id - ID of the resource.
- End
Time string - End time, such as 2020-11-09T14:00:00+08:00.
- Instance
Id string - instance id.
- Product string
- Service product type, supported values include: mysql - cloud database MySQL, cynosdb - cloud database CynosDB for MySQL.
- Send
Mail float64Flag - Whether to send mail: 0 - no, 1 - yes.
- Start
Time string - Start time, such as 2020-11-08T14:00:00+08:00.
- Contact
Groups []float64 - An array of contact group IDs to receive mail from.
- Contact
People []float64 - An array of contact IDs to receive emails from.
- Dbbrain
Db stringDiag Report Task Id - ID of the resource.
- end
Time String - End time, such as 2020-11-09T14:00:00+08:00.
- instance
Id String - instance id.
- product String
- Service product type, supported values include: mysql - cloud database MySQL, cynosdb - cloud database CynosDB for MySQL.
- send
Mail DoubleFlag - Whether to send mail: 0 - no, 1 - yes.
- start
Time String - Start time, such as 2020-11-08T14:00:00+08:00.
- contact
Groups List<Double> - An array of contact group IDs to receive mail from.
- contact
People List<Double> - An array of contact IDs to receive emails from.
- dbbrain
Db StringDiag Report Task Id - ID of the resource.
- end
Time string - End time, such as 2020-11-09T14:00:00+08:00.
- instance
Id string - instance id.
- product string
- Service product type, supported values include: mysql - cloud database MySQL, cynosdb - cloud database CynosDB for MySQL.
- send
Mail numberFlag - Whether to send mail: 0 - no, 1 - yes.
- start
Time string - Start time, such as 2020-11-08T14:00:00+08:00.
- contact
Groups number[] - An array of contact group IDs to receive mail from.
- contact
People number[] - An array of contact IDs to receive emails from.
- dbbrain
Db stringDiag Report Task Id - 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_ floatflag - 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_ strdiag_ report_ task_ id - ID of the resource.
- end
Time String - End time, such as 2020-11-09T14:00:00+08:00.
- instance
Id String - instance id.
- product String
- Service product type, supported values include: mysql - cloud database MySQL, cynosdb - cloud database CynosDB for MySQL.
- send
Mail NumberFlag - Whether to send mail: 0 - no, 1 - yes.
- start
Time String - Start time, such as 2020-11-08T14:00:00+08:00.
- contact
Groups List<Number> - An array of contact group IDs to receive mail from.
- contact
People List<Number> - An array of contact IDs to receive emails from.
- dbbrain
Db StringDiag Report Task Id - 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.
- Contact
Groups List<double> - An array of contact group IDs to receive mail from.
- Contact
People List<double> - An array of contact IDs to receive emails from.
- Dbbrain
Db stringDiag Report Task Id - ID of the resource.
- End
Time string - End time, such as 2020-11-09T14:00:00+08:00.
- Instance
Id string - instance id.
- Product string
- Service product type, supported values include: mysql - cloud database MySQL, cynosdb - cloud database CynosDB for MySQL.
- Send
Mail doubleFlag - Whether to send mail: 0 - no, 1 - yes.
- Start
Time string - Start time, such as 2020-11-08T14:00:00+08:00.
- Contact
Groups []float64 - An array of contact group IDs to receive mail from.
- Contact
People []float64 - An array of contact IDs to receive emails from.
- Dbbrain
Db stringDiag Report Task Id - ID of the resource.
- End
Time string - End time, such as 2020-11-09T14:00:00+08:00.
- Instance
Id string - instance id.
- Product string
- Service product type, supported values include: mysql - cloud database MySQL, cynosdb - cloud database CynosDB for MySQL.
- Send
Mail float64Flag - Whether to send mail: 0 - no, 1 - yes.
- Start
Time string - Start time, such as 2020-11-08T14:00:00+08:00.
- contact
Groups List<Double> - An array of contact group IDs to receive mail from.
- contact
People List<Double> - An array of contact IDs to receive emails from.
- dbbrain
Db StringDiag Report Task Id - ID of the resource.
- end
Time String - End time, such as 2020-11-09T14:00:00+08:00.
- instance
Id String - instance id.
- product String
- Service product type, supported values include: mysql - cloud database MySQL, cynosdb - cloud database CynosDB for MySQL.
- send
Mail DoubleFlag - Whether to send mail: 0 - no, 1 - yes.
- start
Time String - Start time, such as 2020-11-08T14:00:00+08:00.
- contact
Groups number[] - An array of contact group IDs to receive mail from.
- contact
People number[] - An array of contact IDs to receive emails from.
- dbbrain
Db stringDiag Report Task Id - ID of the resource.
- end
Time string - End time, such as 2020-11-09T14:00:00+08:00.
- instance
Id string - instance id.
- product string
- Service product type, supported values include: mysql - cloud database MySQL, cynosdb - cloud database CynosDB for MySQL.
- send
Mail numberFlag - Whether to send mail: 0 - no, 1 - yes.
- start
Time 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_ strdiag_ report_ task_ id - 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_ floatflag - Whether to send mail: 0 - no, 1 - yes.
- start_
time str - Start time, such as 2020-11-08T14:00:00+08:00.
- contact
Groups List<Number> - An array of contact group IDs to receive mail from.
- contact
People List<Number> - An array of contact IDs to receive emails from.
- dbbrain
Db StringDiag Report Task Id - ID of the resource.
- end
Time String - End time, such as 2020-11-09T14:00:00+08:00.
- instance
Id String - instance id.
- product String
- Service product type, supported values include: mysql - cloud database MySQL, cynosdb - cloud database CynosDB for MySQL.
- send
Mail NumberFlag - Whether to send mail: 0 - no, 1 - yes.
- start
Time 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.