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

tencentcloud.MonitorGrafanaNotificationChannel

Explore with Pulumi AI

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

    Provides a resource to create a monitor grafanaNotificationChannel

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const config = new pulumi.Config();
    const availabilityZone = config.get("availabilityZone") || "ap-guangzhou-6";
    const vpc = new tencentcloud.Vpc("vpc", {cidrBlock: "10.0.0.0/16"});
    const subnet = new tencentcloud.Subnet("subnet", {
        vpcId: vpc.vpcId,
        availabilityZone: availabilityZone,
        cidrBlock: "10.0.1.0/24",
    });
    const fooMonitorGrafanaInstance = new tencentcloud.MonitorGrafanaInstance("fooMonitorGrafanaInstance", {
        instanceName: "test-grafana",
        vpcId: vpc.vpcId,
        subnetIds: [subnet.subnetId],
        grafanaInitPassword: "1234567890",
        enableInternet: false,
        tags: {
            createdBy: "test",
        },
    });
    const fooMonitorAlarmNotice = new tencentcloud.MonitorAlarmNotice("fooMonitorAlarmNotice", {
        noticeType: "ALL",
        noticeLanguage: "zh-CN",
        userNotices: [{
            receiverType: "USER",
            startTime: 0,
            endTime: 1,
            noticeWays: [
                "SMS",
                "EMAIL",
            ],
            userIds: [10001],
            groupIds: [],
            phoneOrders: [10001],
            phoneCircleTimes: 2,
            phoneCircleInterval: 50,
            phoneInnerInterval: 60,
            needPhoneArriveNotice: 1,
            phoneCallType: "CIRCLE",
            weekdays: [
                1,
                2,
                3,
                4,
                5,
                6,
                7,
            ],
        }],
        urlNotices: [{
            url: "https://www.mytest.com/validate",
            endTime: 0,
            startTime: 1,
            weekdays: [
                1,
                2,
                3,
                4,
                5,
                6,
                7,
            ],
        }],
    });
    const grafanaNotificationChannel = new tencentcloud.MonitorGrafanaNotificationChannel("grafanaNotificationChannel", {
        instanceId: fooMonitorGrafanaInstance.monitorGrafanaInstanceId,
        channelName: "tf-channel",
        orgId: 1,
        receivers: [fooMonitorAlarmNotice.ampConsumerId],
        extraOrgIds: ["1"],
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    config = pulumi.Config()
    availability_zone = config.get("availabilityZone")
    if availability_zone is None:
        availability_zone = "ap-guangzhou-6"
    vpc = tencentcloud.Vpc("vpc", cidr_block="10.0.0.0/16")
    subnet = tencentcloud.Subnet("subnet",
        vpc_id=vpc.vpc_id,
        availability_zone=availability_zone,
        cidr_block="10.0.1.0/24")
    foo_monitor_grafana_instance = tencentcloud.MonitorGrafanaInstance("fooMonitorGrafanaInstance",
        instance_name="test-grafana",
        vpc_id=vpc.vpc_id,
        subnet_ids=[subnet.subnet_id],
        grafana_init_password="1234567890",
        enable_internet=False,
        tags={
            "createdBy": "test",
        })
    foo_monitor_alarm_notice = tencentcloud.MonitorAlarmNotice("fooMonitorAlarmNotice",
        notice_type="ALL",
        notice_language="zh-CN",
        user_notices=[{
            "receiver_type": "USER",
            "start_time": 0,
            "end_time": 1,
            "notice_ways": [
                "SMS",
                "EMAIL",
            ],
            "user_ids": [10001],
            "group_ids": [],
            "phone_orders": [10001],
            "phone_circle_times": 2,
            "phone_circle_interval": 50,
            "phone_inner_interval": 60,
            "need_phone_arrive_notice": 1,
            "phone_call_type": "CIRCLE",
            "weekdays": [
                1,
                2,
                3,
                4,
                5,
                6,
                7,
            ],
        }],
        url_notices=[{
            "url": "https://www.mytest.com/validate",
            "end_time": 0,
            "start_time": 1,
            "weekdays": [
                1,
                2,
                3,
                4,
                5,
                6,
                7,
            ],
        }])
    grafana_notification_channel = tencentcloud.MonitorGrafanaNotificationChannel("grafanaNotificationChannel",
        instance_id=foo_monitor_grafana_instance.monitor_grafana_instance_id,
        channel_name="tf-channel",
        org_id=1,
        receivers=[foo_monitor_alarm_notice.amp_consumer_id],
        extra_org_ids=["1"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		availabilityZone := "ap-guangzhou-6"
    		if param := cfg.Get("availabilityZone"); param != "" {
    			availabilityZone = param
    		}
    		vpc, err := tencentcloud.NewVpc(ctx, "vpc", &tencentcloud.VpcArgs{
    			CidrBlock: pulumi.String("10.0.0.0/16"),
    		})
    		if err != nil {
    			return err
    		}
    		subnet, err := tencentcloud.NewSubnet(ctx, "subnet", &tencentcloud.SubnetArgs{
    			VpcId:            vpc.VpcId,
    			AvailabilityZone: pulumi.String(availabilityZone),
    			CidrBlock:        pulumi.String("10.0.1.0/24"),
    		})
    		if err != nil {
    			return err
    		}
    		fooMonitorGrafanaInstance, err := tencentcloud.NewMonitorGrafanaInstance(ctx, "fooMonitorGrafanaInstance", &tencentcloud.MonitorGrafanaInstanceArgs{
    			InstanceName: pulumi.String("test-grafana"),
    			VpcId:        vpc.VpcId,
    			SubnetIds: pulumi.StringArray{
    				subnet.SubnetId,
    			},
    			GrafanaInitPassword: pulumi.String("1234567890"),
    			EnableInternet:      pulumi.Bool(false),
    			Tags: pulumi.StringMap{
    				"createdBy": pulumi.String("test"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		fooMonitorAlarmNotice, err := tencentcloud.NewMonitorAlarmNotice(ctx, "fooMonitorAlarmNotice", &tencentcloud.MonitorAlarmNoticeArgs{
    			NoticeType:     pulumi.String("ALL"),
    			NoticeLanguage: pulumi.String("zh-CN"),
    			UserNotices: tencentcloud.MonitorAlarmNoticeUserNoticeArray{
    				&tencentcloud.MonitorAlarmNoticeUserNoticeArgs{
    					ReceiverType: pulumi.String("USER"),
    					StartTime:    pulumi.Float64(0),
    					EndTime:      pulumi.Float64(1),
    					NoticeWays: pulumi.StringArray{
    						pulumi.String("SMS"),
    						pulumi.String("EMAIL"),
    					},
    					UserIds: pulumi.Float64Array{
    						pulumi.Float64(10001),
    					},
    					GroupIds: pulumi.Float64Array{},
    					PhoneOrders: pulumi.Float64Array{
    						pulumi.Float64(10001),
    					},
    					PhoneCircleTimes:      pulumi.Float64(2),
    					PhoneCircleInterval:   pulumi.Float64(50),
    					PhoneInnerInterval:    pulumi.Float64(60),
    					NeedPhoneArriveNotice: pulumi.Float64(1),
    					PhoneCallType:         pulumi.String("CIRCLE"),
    					Weekdays: pulumi.Float64Array{
    						pulumi.Float64(1),
    						pulumi.Float64(2),
    						pulumi.Float64(3),
    						pulumi.Float64(4),
    						pulumi.Float64(5),
    						pulumi.Float64(6),
    						pulumi.Float64(7),
    					},
    				},
    			},
    			UrlNotices: tencentcloud.MonitorAlarmNoticeUrlNoticeArray{
    				&tencentcloud.MonitorAlarmNoticeUrlNoticeArgs{
    					Url:       pulumi.String("https://www.mytest.com/validate"),
    					EndTime:   pulumi.Float64(0),
    					StartTime: pulumi.Float64(1),
    					Weekdays: pulumi.Float64Array{
    						pulumi.Float64(1),
    						pulumi.Float64(2),
    						pulumi.Float64(3),
    						pulumi.Float64(4),
    						pulumi.Float64(5),
    						pulumi.Float64(6),
    						pulumi.Float64(7),
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = tencentcloud.NewMonitorGrafanaNotificationChannel(ctx, "grafanaNotificationChannel", &tencentcloud.MonitorGrafanaNotificationChannelArgs{
    			InstanceId:  fooMonitorGrafanaInstance.MonitorGrafanaInstanceId,
    			ChannelName: pulumi.String("tf-channel"),
    			OrgId:       pulumi.Float64(1),
    			Receivers: pulumi.StringArray{
    				fooMonitorAlarmNotice.AmpConsumerId,
    			},
    			ExtraOrgIds: pulumi.StringArray{
    				pulumi.String("1"),
    			},
    		})
    		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 config = new Config();
        var availabilityZone = config.Get("availabilityZone") ?? "ap-guangzhou-6";
        var vpc = new Tencentcloud.Vpc("vpc", new()
        {
            CidrBlock = "10.0.0.0/16",
        });
    
        var subnet = new Tencentcloud.Subnet("subnet", new()
        {
            VpcId = vpc.VpcId,
            AvailabilityZone = availabilityZone,
            CidrBlock = "10.0.1.0/24",
        });
    
        var fooMonitorGrafanaInstance = new Tencentcloud.MonitorGrafanaInstance("fooMonitorGrafanaInstance", new()
        {
            InstanceName = "test-grafana",
            VpcId = vpc.VpcId,
            SubnetIds = new[]
            {
                subnet.SubnetId,
            },
            GrafanaInitPassword = "1234567890",
            EnableInternet = false,
            Tags = 
            {
                { "createdBy", "test" },
            },
        });
    
        var fooMonitorAlarmNotice = new Tencentcloud.MonitorAlarmNotice("fooMonitorAlarmNotice", new()
        {
            NoticeType = "ALL",
            NoticeLanguage = "zh-CN",
            UserNotices = new[]
            {
                new Tencentcloud.Inputs.MonitorAlarmNoticeUserNoticeArgs
                {
                    ReceiverType = "USER",
                    StartTime = 0,
                    EndTime = 1,
                    NoticeWays = new[]
                    {
                        "SMS",
                        "EMAIL",
                    },
                    UserIds = new[]
                    {
                        10001,
                    },
                    GroupIds = new() { },
                    PhoneOrders = new[]
                    {
                        10001,
                    },
                    PhoneCircleTimes = 2,
                    PhoneCircleInterval = 50,
                    PhoneInnerInterval = 60,
                    NeedPhoneArriveNotice = 1,
                    PhoneCallType = "CIRCLE",
                    Weekdays = new[]
                    {
                        1,
                        2,
                        3,
                        4,
                        5,
                        6,
                        7,
                    },
                },
            },
            UrlNotices = new[]
            {
                new Tencentcloud.Inputs.MonitorAlarmNoticeUrlNoticeArgs
                {
                    Url = "https://www.mytest.com/validate",
                    EndTime = 0,
                    StartTime = 1,
                    Weekdays = new[]
                    {
                        1,
                        2,
                        3,
                        4,
                        5,
                        6,
                        7,
                    },
                },
            },
        });
    
        var grafanaNotificationChannel = new Tencentcloud.MonitorGrafanaNotificationChannel("grafanaNotificationChannel", new()
        {
            InstanceId = fooMonitorGrafanaInstance.MonitorGrafanaInstanceId,
            ChannelName = "tf-channel",
            OrgId = 1,
            Receivers = new[]
            {
                fooMonitorAlarmNotice.AmpConsumerId,
            },
            ExtraOrgIds = new[]
            {
                "1",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.Vpc;
    import com.pulumi.tencentcloud.VpcArgs;
    import com.pulumi.tencentcloud.Subnet;
    import com.pulumi.tencentcloud.SubnetArgs;
    import com.pulumi.tencentcloud.MonitorGrafanaInstance;
    import com.pulumi.tencentcloud.MonitorGrafanaInstanceArgs;
    import com.pulumi.tencentcloud.MonitorAlarmNotice;
    import com.pulumi.tencentcloud.MonitorAlarmNoticeArgs;
    import com.pulumi.tencentcloud.inputs.MonitorAlarmNoticeUserNoticeArgs;
    import com.pulumi.tencentcloud.inputs.MonitorAlarmNoticeUrlNoticeArgs;
    import com.pulumi.tencentcloud.MonitorGrafanaNotificationChannel;
    import com.pulumi.tencentcloud.MonitorGrafanaNotificationChannelArgs;
    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) {
            final var config = ctx.config();
            final var availabilityZone = config.get("availabilityZone").orElse("ap-guangzhou-6");
            var vpc = new Vpc("vpc", VpcArgs.builder()
                .cidrBlock("10.0.0.0/16")
                .build());
    
            var subnet = new Subnet("subnet", SubnetArgs.builder()
                .vpcId(vpc.vpcId())
                .availabilityZone(availabilityZone)
                .cidrBlock("10.0.1.0/24")
                .build());
    
            var fooMonitorGrafanaInstance = new MonitorGrafanaInstance("fooMonitorGrafanaInstance", MonitorGrafanaInstanceArgs.builder()
                .instanceName("test-grafana")
                .vpcId(vpc.vpcId())
                .subnetIds(subnet.subnetId())
                .grafanaInitPassword("1234567890")
                .enableInternet(false)
                .tags(Map.of("createdBy", "test"))
                .build());
    
            var fooMonitorAlarmNotice = new MonitorAlarmNotice("fooMonitorAlarmNotice", MonitorAlarmNoticeArgs.builder()
                .noticeType("ALL")
                .noticeLanguage("zh-CN")
                .userNotices(MonitorAlarmNoticeUserNoticeArgs.builder()
                    .receiverType("USER")
                    .startTime(0)
                    .endTime(1)
                    .noticeWays(                
                        "SMS",
                        "EMAIL")
                    .userIds(10001)
                    .groupIds()
                    .phoneOrders(10001)
                    .phoneCircleTimes(2)
                    .phoneCircleInterval(50)
                    .phoneInnerInterval(60)
                    .needPhoneArriveNotice(1)
                    .phoneCallType("CIRCLE")
                    .weekdays(                
                        1,
                        2,
                        3,
                        4,
                        5,
                        6,
                        7)
                    .build())
                .urlNotices(MonitorAlarmNoticeUrlNoticeArgs.builder()
                    .url("https://www.mytest.com/validate")
                    .endTime(0)
                    .startTime(1)
                    .weekdays(                
                        1,
                        2,
                        3,
                        4,
                        5,
                        6,
                        7)
                    .build())
                .build());
    
            var grafanaNotificationChannel = new MonitorGrafanaNotificationChannel("grafanaNotificationChannel", MonitorGrafanaNotificationChannelArgs.builder()
                .instanceId(fooMonitorGrafanaInstance.monitorGrafanaInstanceId())
                .channelName("tf-channel")
                .orgId(1)
                .receivers(fooMonitorAlarmNotice.ampConsumerId())
                .extraOrgIds("1")
                .build());
    
        }
    }
    
    configuration:
      availabilityZone:
        type: string
        default: ap-guangzhou-6
    resources:
      vpc:
        type: tencentcloud:Vpc
        properties:
          cidrBlock: 10.0.0.0/16
      subnet:
        type: tencentcloud:Subnet
        properties:
          vpcId: ${vpc.vpcId}
          availabilityZone: ${availabilityZone}
          cidrBlock: 10.0.1.0/24
      fooMonitorGrafanaInstance:
        type: tencentcloud:MonitorGrafanaInstance
        properties:
          instanceName: test-grafana
          vpcId: ${vpc.vpcId}
          subnetIds:
            - ${subnet.subnetId}
          grafanaInitPassword: '1234567890'
          enableInternet: false
          tags:
            createdBy: test
      fooMonitorAlarmNotice:
        type: tencentcloud:MonitorAlarmNotice
        properties:
          noticeType: ALL
          noticeLanguage: zh-CN
          userNotices:
            - receiverType: USER
              startTime: 0
              endTime: 1
              noticeWays:
                - SMS
                - EMAIL
              userIds:
                - 10001
              groupIds: []
              phoneOrders:
                - 10001
              phoneCircleTimes: 2
              phoneCircleInterval: 50
              phoneInnerInterval: 60
              needPhoneArriveNotice: 1
              phoneCallType: CIRCLE
              weekdays:
                - 1
                - 2
                - 3
                - 4
                - 5
                - 6
                - 7
          urlNotices:
            - url: https://www.mytest.com/validate
              endTime: 0
              startTime: 1
              weekdays:
                - 1
                - 2
                - 3
                - 4
                - 5
                - 6
                - 7
      grafanaNotificationChannel:
        type: tencentcloud:MonitorGrafanaNotificationChannel
        properties:
          instanceId: ${fooMonitorGrafanaInstance.monitorGrafanaInstanceId}
          channelName: tf-channel
          orgId: 1
          receivers:
            - ${fooMonitorAlarmNotice.ampConsumerId}
          extraOrgIds:
            - '1'
    

    Create MonitorGrafanaNotificationChannel Resource

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

    Constructor syntax

    new MonitorGrafanaNotificationChannel(name: string, args: MonitorGrafanaNotificationChannelArgs, opts?: CustomResourceOptions);
    @overload
    def MonitorGrafanaNotificationChannel(resource_name: str,
                                          args: MonitorGrafanaNotificationChannelArgs,
                                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def MonitorGrafanaNotificationChannel(resource_name: str,
                                          opts: Optional[ResourceOptions] = None,
                                          instance_id: Optional[str] = None,
                                          channel_name: Optional[str] = None,
                                          extra_org_ids: Optional[Sequence[str]] = None,
                                          monitor_grafana_notification_channel_id: Optional[str] = None,
                                          org_id: Optional[float] = None,
                                          receivers: Optional[Sequence[str]] = None)
    func NewMonitorGrafanaNotificationChannel(ctx *Context, name string, args MonitorGrafanaNotificationChannelArgs, opts ...ResourceOption) (*MonitorGrafanaNotificationChannel, error)
    public MonitorGrafanaNotificationChannel(string name, MonitorGrafanaNotificationChannelArgs args, CustomResourceOptions? opts = null)
    public MonitorGrafanaNotificationChannel(String name, MonitorGrafanaNotificationChannelArgs args)
    public MonitorGrafanaNotificationChannel(String name, MonitorGrafanaNotificationChannelArgs args, CustomResourceOptions options)
    
    type: tencentcloud:MonitorGrafanaNotificationChannel
    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 MonitorGrafanaNotificationChannelArgs
    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 MonitorGrafanaNotificationChannelArgs
    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 MonitorGrafanaNotificationChannelArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args MonitorGrafanaNotificationChannelArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args MonitorGrafanaNotificationChannelArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    InstanceId string
    grafana instance id.
    ChannelName string
    channel name.
    ExtraOrgIds List<string>
    extra grafana organization id list, default to 1 representing Main Org.
    MonitorGrafanaNotificationChannelId string
    ID of the resource.
    OrgId double
    Grafana organization which channel will be installed, default to 1 representing Main Org.
    Receivers List<string>
    cloud monitor notification template notice-id list.
    InstanceId string
    grafana instance id.
    ChannelName string
    channel name.
    ExtraOrgIds []string
    extra grafana organization id list, default to 1 representing Main Org.
    MonitorGrafanaNotificationChannelId string
    ID of the resource.
    OrgId float64
    Grafana organization which channel will be installed, default to 1 representing Main Org.
    Receivers []string
    cloud monitor notification template notice-id list.
    instanceId String
    grafana instance id.
    channelName String
    channel name.
    extraOrgIds List<String>
    extra grafana organization id list, default to 1 representing Main Org.
    monitorGrafanaNotificationChannelId String
    ID of the resource.
    orgId Double
    Grafana organization which channel will be installed, default to 1 representing Main Org.
    receivers List<String>
    cloud monitor notification template notice-id list.
    instanceId string
    grafana instance id.
    channelName string
    channel name.
    extraOrgIds string[]
    extra grafana organization id list, default to 1 representing Main Org.
    monitorGrafanaNotificationChannelId string
    ID of the resource.
    orgId number
    Grafana organization which channel will be installed, default to 1 representing Main Org.
    receivers string[]
    cloud monitor notification template notice-id list.
    instance_id str
    grafana instance id.
    channel_name str
    channel name.
    extra_org_ids Sequence[str]
    extra grafana organization id list, default to 1 representing Main Org.
    monitor_grafana_notification_channel_id str
    ID of the resource.
    org_id float
    Grafana organization which channel will be installed, default to 1 representing Main Org.
    receivers Sequence[str]
    cloud monitor notification template notice-id list.
    instanceId String
    grafana instance id.
    channelName String
    channel name.
    extraOrgIds List<String>
    extra grafana organization id list, default to 1 representing Main Org.
    monitorGrafanaNotificationChannelId String
    ID of the resource.
    orgId Number
    Grafana organization which channel will be installed, default to 1 representing Main Org.
    receivers List<String>
    cloud monitor notification template notice-id list.

    Outputs

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

    ChannelId string
    plugin id.
    Id string
    The provider-assigned unique ID for this managed resource.
    ChannelId string
    plugin id.
    Id string
    The provider-assigned unique ID for this managed resource.
    channelId String
    plugin id.
    id String
    The provider-assigned unique ID for this managed resource.
    channelId string
    plugin id.
    id string
    The provider-assigned unique ID for this managed resource.
    channel_id str
    plugin id.
    id str
    The provider-assigned unique ID for this managed resource.
    channelId String
    plugin id.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing MonitorGrafanaNotificationChannel Resource

    Get an existing MonitorGrafanaNotificationChannel 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?: MonitorGrafanaNotificationChannelState, opts?: CustomResourceOptions): MonitorGrafanaNotificationChannel
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            channel_id: Optional[str] = None,
            channel_name: Optional[str] = None,
            extra_org_ids: Optional[Sequence[str]] = None,
            instance_id: Optional[str] = None,
            monitor_grafana_notification_channel_id: Optional[str] = None,
            org_id: Optional[float] = None,
            receivers: Optional[Sequence[str]] = None) -> MonitorGrafanaNotificationChannel
    func GetMonitorGrafanaNotificationChannel(ctx *Context, name string, id IDInput, state *MonitorGrafanaNotificationChannelState, opts ...ResourceOption) (*MonitorGrafanaNotificationChannel, error)
    public static MonitorGrafanaNotificationChannel Get(string name, Input<string> id, MonitorGrafanaNotificationChannelState? state, CustomResourceOptions? opts = null)
    public static MonitorGrafanaNotificationChannel get(String name, Output<String> id, MonitorGrafanaNotificationChannelState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:MonitorGrafanaNotificationChannel    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:
    ChannelId string
    plugin id.
    ChannelName string
    channel name.
    ExtraOrgIds List<string>
    extra grafana organization id list, default to 1 representing Main Org.
    InstanceId string
    grafana instance id.
    MonitorGrafanaNotificationChannelId string
    ID of the resource.
    OrgId double
    Grafana organization which channel will be installed, default to 1 representing Main Org.
    Receivers List<string>
    cloud monitor notification template notice-id list.
    ChannelId string
    plugin id.
    ChannelName string
    channel name.
    ExtraOrgIds []string
    extra grafana organization id list, default to 1 representing Main Org.
    InstanceId string
    grafana instance id.
    MonitorGrafanaNotificationChannelId string
    ID of the resource.
    OrgId float64
    Grafana organization which channel will be installed, default to 1 representing Main Org.
    Receivers []string
    cloud monitor notification template notice-id list.
    channelId String
    plugin id.
    channelName String
    channel name.
    extraOrgIds List<String>
    extra grafana organization id list, default to 1 representing Main Org.
    instanceId String
    grafana instance id.
    monitorGrafanaNotificationChannelId String
    ID of the resource.
    orgId Double
    Grafana organization which channel will be installed, default to 1 representing Main Org.
    receivers List<String>
    cloud monitor notification template notice-id list.
    channelId string
    plugin id.
    channelName string
    channel name.
    extraOrgIds string[]
    extra grafana organization id list, default to 1 representing Main Org.
    instanceId string
    grafana instance id.
    monitorGrafanaNotificationChannelId string
    ID of the resource.
    orgId number
    Grafana organization which channel will be installed, default to 1 representing Main Org.
    receivers string[]
    cloud monitor notification template notice-id list.
    channel_id str
    plugin id.
    channel_name str
    channel name.
    extra_org_ids Sequence[str]
    extra grafana organization id list, default to 1 representing Main Org.
    instance_id str
    grafana instance id.
    monitor_grafana_notification_channel_id str
    ID of the resource.
    org_id float
    Grafana organization which channel will be installed, default to 1 representing Main Org.
    receivers Sequence[str]
    cloud monitor notification template notice-id list.
    channelId String
    plugin id.
    channelName String
    channel name.
    extraOrgIds List<String>
    extra grafana organization id list, default to 1 representing Main Org.
    instanceId String
    grafana instance id.
    monitorGrafanaNotificationChannelId String
    ID of the resource.
    orgId Number
    Grafana organization which channel will be installed, default to 1 representing Main Org.
    receivers List<String>
    cloud monitor notification template notice-id list.

    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