Provides a Msc Sub Webhook resource.
Basic Usage
variable "name" {
default = "tfexample"
}
variable "token" {
default = "abcd****"
}
resource "alicloud_msc_sub_webhook" "example" {
server_url = format("https://oapi.dingtalk.com/robot/send?access_token=%s", var.token)
webhook_name = var.name
}
The following arguments are supported:
server_url
- (Required) The serverUrl of the Webhook. This url must start with https://oapi.dingtalk.com/robot/send?access_token=
.webhook_name
- (Required) The name of the Webhook. Note: The name must be 2
to 12
characters in length, and can contain uppercase and lowercase letters.The following attributes are exported:
id
- The resource ID in terraform of Webhook.Msc Sub Webhook can be imported using the id, e.g.
$ terraform import alicloud_msc_sub_webhook.example <id>