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

tencentcloud.ElasticsearchDiagnose

Explore with Pulumi AI

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

    Provides a resource to create a elasticsearch diagnose

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const diagnose = new tencentcloud.ElasticsearchDiagnose("diagnose", {
        cronTime: "15:00:00",
        instanceId: "es-xxxxxx",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    diagnose = tencentcloud.ElasticsearchDiagnose("diagnose",
        cron_time="15:00:00",
        instance_id="es-xxxxxx")
    
    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.NewElasticsearchDiagnose(ctx, "diagnose", &tencentcloud.ElasticsearchDiagnoseArgs{
    			CronTime:   pulumi.String("15:00:00"),
    			InstanceId: pulumi.String("es-xxxxxx"),
    		})
    		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 diagnose = new Tencentcloud.ElasticsearchDiagnose("diagnose", new()
        {
            CronTime = "15:00:00",
            InstanceId = "es-xxxxxx",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.ElasticsearchDiagnose;
    import com.pulumi.tencentcloud.ElasticsearchDiagnoseArgs;
    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 diagnose = new ElasticsearchDiagnose("diagnose", ElasticsearchDiagnoseArgs.builder()
                .cronTime("15:00:00")
                .instanceId("es-xxxxxx")
                .build());
    
        }
    }
    
    resources:
      diagnose:
        type: tencentcloud:ElasticsearchDiagnose
        properties:
          cronTime: 15:00:00
          instanceId: es-xxxxxx
    

    Create ElasticsearchDiagnose Resource

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

    Constructor syntax

    new ElasticsearchDiagnose(name: string, args: ElasticsearchDiagnoseArgs, opts?: CustomResourceOptions);
    @overload
    def ElasticsearchDiagnose(resource_name: str,
                              args: ElasticsearchDiagnoseArgs,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def ElasticsearchDiagnose(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              instance_id: Optional[str] = None,
                              cron_time: Optional[str] = None,
                              elasticsearch_diagnose_id: Optional[str] = None)
    func NewElasticsearchDiagnose(ctx *Context, name string, args ElasticsearchDiagnoseArgs, opts ...ResourceOption) (*ElasticsearchDiagnose, error)
    public ElasticsearchDiagnose(string name, ElasticsearchDiagnoseArgs args, CustomResourceOptions? opts = null)
    public ElasticsearchDiagnose(String name, ElasticsearchDiagnoseArgs args)
    public ElasticsearchDiagnose(String name, ElasticsearchDiagnoseArgs args, CustomResourceOptions options)
    
    type: tencentcloud:ElasticsearchDiagnose
    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 ElasticsearchDiagnoseArgs
    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 ElasticsearchDiagnoseArgs
    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 ElasticsearchDiagnoseArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ElasticsearchDiagnoseArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ElasticsearchDiagnoseArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    InstanceId string
    Instance id.
    CronTime string
    Intelligent operation and maintenance staff regularly patrol the inspection time every day, the time format is HH:00:00, such as 15:00:00.
    ElasticsearchDiagnoseId string
    ID of the resource.
    InstanceId string
    Instance id.
    CronTime string
    Intelligent operation and maintenance staff regularly patrol the inspection time every day, the time format is HH:00:00, such as 15:00:00.
    ElasticsearchDiagnoseId string
    ID of the resource.
    instanceId String
    Instance id.
    cronTime String
    Intelligent operation and maintenance staff regularly patrol the inspection time every day, the time format is HH:00:00, such as 15:00:00.
    elasticsearchDiagnoseId String
    ID of the resource.
    instanceId string
    Instance id.
    cronTime string
    Intelligent operation and maintenance staff regularly patrol the inspection time every day, the time format is HH:00:00, such as 15:00:00.
    elasticsearchDiagnoseId string
    ID of the resource.
    instance_id str
    Instance id.
    cron_time str
    Intelligent operation and maintenance staff regularly patrol the inspection time every day, the time format is HH:00:00, such as 15:00:00.
    elasticsearch_diagnose_id str
    ID of the resource.
    instanceId String
    Instance id.
    cronTime String
    Intelligent operation and maintenance staff regularly patrol the inspection time every day, the time format is HH:00:00, such as 15:00:00.
    elasticsearchDiagnoseId String
    ID of the resource.

    Outputs

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

    DiagnoseJobMetas List<ElasticsearchDiagnoseDiagnoseJobMeta>
    Diagnostic items and meta-information of intelligent operation and maintenance.
    Id string
    The provider-assigned unique ID for this managed resource.
    MaxCount double
    The maximum number of manual triggers per day for intelligent operation and maintenance staff.
    DiagnoseJobMetas []ElasticsearchDiagnoseDiagnoseJobMeta
    Diagnostic items and meta-information of intelligent operation and maintenance.
    Id string
    The provider-assigned unique ID for this managed resource.
    MaxCount float64
    The maximum number of manual triggers per day for intelligent operation and maintenance staff.
    diagnoseJobMetas List<ElasticsearchDiagnoseDiagnoseJobMeta>
    Diagnostic items and meta-information of intelligent operation and maintenance.
    id String
    The provider-assigned unique ID for this managed resource.
    maxCount Double
    The maximum number of manual triggers per day for intelligent operation and maintenance staff.
    diagnoseJobMetas ElasticsearchDiagnoseDiagnoseJobMeta[]
    Diagnostic items and meta-information of intelligent operation and maintenance.
    id string
    The provider-assigned unique ID for this managed resource.
    maxCount number
    The maximum number of manual triggers per day for intelligent operation and maintenance staff.
    diagnose_job_metas Sequence[ElasticsearchDiagnoseDiagnoseJobMeta]
    Diagnostic items and meta-information of intelligent operation and maintenance.
    id str
    The provider-assigned unique ID for this managed resource.
    max_count float
    The maximum number of manual triggers per day for intelligent operation and maintenance staff.
    diagnoseJobMetas List<Property Map>
    Diagnostic items and meta-information of intelligent operation and maintenance.
    id String
    The provider-assigned unique ID for this managed resource.
    maxCount Number
    The maximum number of manual triggers per day for intelligent operation and maintenance staff.

    Look up Existing ElasticsearchDiagnose Resource

    Get an existing ElasticsearchDiagnose 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?: ElasticsearchDiagnoseState, opts?: CustomResourceOptions): ElasticsearchDiagnose
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cron_time: Optional[str] = None,
            diagnose_job_metas: Optional[Sequence[ElasticsearchDiagnoseDiagnoseJobMetaArgs]] = None,
            elasticsearch_diagnose_id: Optional[str] = None,
            instance_id: Optional[str] = None,
            max_count: Optional[float] = None) -> ElasticsearchDiagnose
    func GetElasticsearchDiagnose(ctx *Context, name string, id IDInput, state *ElasticsearchDiagnoseState, opts ...ResourceOption) (*ElasticsearchDiagnose, error)
    public static ElasticsearchDiagnose Get(string name, Input<string> id, ElasticsearchDiagnoseState? state, CustomResourceOptions? opts = null)
    public static ElasticsearchDiagnose get(String name, Output<String> id, ElasticsearchDiagnoseState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:ElasticsearchDiagnose    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:
    CronTime string
    Intelligent operation and maintenance staff regularly patrol the inspection time every day, the time format is HH:00:00, such as 15:00:00.
    DiagnoseJobMetas List<ElasticsearchDiagnoseDiagnoseJobMeta>
    Diagnostic items and meta-information of intelligent operation and maintenance.
    ElasticsearchDiagnoseId string
    ID of the resource.
    InstanceId string
    Instance id.
    MaxCount double
    The maximum number of manual triggers per day for intelligent operation and maintenance staff.
    CronTime string
    Intelligent operation and maintenance staff regularly patrol the inspection time every day, the time format is HH:00:00, such as 15:00:00.
    DiagnoseJobMetas []ElasticsearchDiagnoseDiagnoseJobMetaArgs
    Diagnostic items and meta-information of intelligent operation and maintenance.
    ElasticsearchDiagnoseId string
    ID of the resource.
    InstanceId string
    Instance id.
    MaxCount float64
    The maximum number of manual triggers per day for intelligent operation and maintenance staff.
    cronTime String
    Intelligent operation and maintenance staff regularly patrol the inspection time every day, the time format is HH:00:00, such as 15:00:00.
    diagnoseJobMetas List<ElasticsearchDiagnoseDiagnoseJobMeta>
    Diagnostic items and meta-information of intelligent operation and maintenance.
    elasticsearchDiagnoseId String
    ID of the resource.
    instanceId String
    Instance id.
    maxCount Double
    The maximum number of manual triggers per day for intelligent operation and maintenance staff.
    cronTime string
    Intelligent operation and maintenance staff regularly patrol the inspection time every day, the time format is HH:00:00, such as 15:00:00.
    diagnoseJobMetas ElasticsearchDiagnoseDiagnoseJobMeta[]
    Diagnostic items and meta-information of intelligent operation and maintenance.
    elasticsearchDiagnoseId string
    ID of the resource.
    instanceId string
    Instance id.
    maxCount number
    The maximum number of manual triggers per day for intelligent operation and maintenance staff.
    cron_time str
    Intelligent operation and maintenance staff regularly patrol the inspection time every day, the time format is HH:00:00, such as 15:00:00.
    diagnose_job_metas Sequence[ElasticsearchDiagnoseDiagnoseJobMetaArgs]
    Diagnostic items and meta-information of intelligent operation and maintenance.
    elasticsearch_diagnose_id str
    ID of the resource.
    instance_id str
    Instance id.
    max_count float
    The maximum number of manual triggers per day for intelligent operation and maintenance staff.
    cronTime String
    Intelligent operation and maintenance staff regularly patrol the inspection time every day, the time format is HH:00:00, such as 15:00:00.
    diagnoseJobMetas List<Property Map>
    Diagnostic items and meta-information of intelligent operation and maintenance.
    elasticsearchDiagnoseId String
    ID of the resource.
    instanceId String
    Instance id.
    maxCount Number
    The maximum number of manual triggers per day for intelligent operation and maintenance staff.

    Supporting Types

    ElasticsearchDiagnoseDiagnoseJobMeta, ElasticsearchDiagnoseDiagnoseJobMetaArgs

    JobDescription string
    Intelligent operation and maintenance diagnostic item description.
    JobName string
    English name of diagnosis item for intelligent operation and maintenance.
    JobZhName string
    Chinese name of intelligent operation and maintenance diagnosis item.
    JobDescription string
    Intelligent operation and maintenance diagnostic item description.
    JobName string
    English name of diagnosis item for intelligent operation and maintenance.
    JobZhName string
    Chinese name of intelligent operation and maintenance diagnosis item.
    jobDescription String
    Intelligent operation and maintenance diagnostic item description.
    jobName String
    English name of diagnosis item for intelligent operation and maintenance.
    jobZhName String
    Chinese name of intelligent operation and maintenance diagnosis item.
    jobDescription string
    Intelligent operation and maintenance diagnostic item description.
    jobName string
    English name of diagnosis item for intelligent operation and maintenance.
    jobZhName string
    Chinese name of intelligent operation and maintenance diagnosis item.
    job_description str
    Intelligent operation and maintenance diagnostic item description.
    job_name str
    English name of diagnosis item for intelligent operation and maintenance.
    job_zh_name str
    Chinese name of intelligent operation and maintenance diagnosis item.
    jobDescription String
    Intelligent operation and maintenance diagnostic item description.
    jobName String
    English name of diagnosis item for intelligent operation and maintenance.
    jobZhName String
    Chinese name of intelligent operation and maintenance diagnosis item.

    Import

    es diagnose can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/elasticsearchDiagnose:ElasticsearchDiagnose diagnose diagnose_id
    

    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