alicloud_cen_transit_router_multicast_domain

更新时间:

Provides a Cloud Enterprise Network (CEN) Transit Router Multicast Domain resource.

For information about Cloud Enterprise Network (CEN) Transit Router Multicast Domain and how to use it, see What is Transit Router Multicast Domain.

-> NOTE: Available since v1.195.0.

Example Usage

Basic Usage


variable "name" {
  default = "terraform-example"
}

resource "alicloud_cen_instance" "example" {
  cen_instance_name = var.name
}

resource "alicloud_cen_transit_router" "example" {
  transit_router_name = var.name
  cen_id              = alicloud_cen_instance.example.id
  support_multicast   = true
}

resource "alicloud_cen_transit_router_multicast_domain" "default" {
  transit_router_id                           = alicloud_cen_transit_router.example.transit_router_id
  transit_router_multicast_domain_name        = var.name
  transit_router_multicast_domain_description = var.name
  options {
    igmpv2_support = "disable"
  }
}

Argument Reference

The following arguments are supported:

  • options - (Optional, Set, Available since v1.242.0) The function options of the multicast domain. See options below.
  • tags - (Optional, Map) A mapping of tags to assign to the resource.
  • transit_router_id - (Required, ForceNew) The ID of the forwarding router instance.
  • transit_router_multicast_domain_description - (Optional) The description of the multicast domain.
  • transit_router_multicast_domain_name - (Optional) The name of the multicast domain.

options

The options supports the following:

  • igmpv2_support - (Optional) Whether to enable IGMP function for multicast domain. Default value: disable. Valid values: enable, disable.

Attributes Reference

The following attributes are exported:

  • id - The resource ID in terraform of Transit Router Multicast Domain.
  • region_id - (Available since v1.242.0) The region ID of the transit router.
  • status - The status of the Transit Router Multicast Domain.

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

  • create - (Defaults to 5 mins) Used when create the Transit Router Multicast Domain.
  • delete - (Defaults to 5 mins) Used when delete the Transit Router Multicast Domain.
  • update - (Defaults to 5 mins) Used when update the Transit Router Multicast Domain.

Import

Cloud Enterprise Network (CEN) Transit Router Multicast Domain can be imported using the id, e.g.

$ terraform import alicloud_cen_transit_router_multicast_domain.example <id>