alicloud_msc_sub_webhook
更新时间:
Provides a Msc Sub Webhook resource.
-> NOTE: Available since v1.141.0.
Example Usage
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
}
Argument Reference
The following arguments are supported:
server_url
- (Required) The serverUrl of the Webhook. This url must start withhttps://oapi.dingtalk.com/robot/send?access_token=
.webhook_name
- (Required) The name of the Webhook. Note: The name must be2
to12
characters in length, and can contain uppercase and lowercase letters.
Attributes Reference
The following attributes are exported:
id
- The resource ID in terraform of Webhook.
Import
Msc Sub Webhook can be imported using the id, e.g.
$ terraform import alicloud_msc_sub_webhook.example <id>
文档内容是否对您有帮助?