文档

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 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.

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>

  • 本页导读 (0)
文档反馈