日本熟妇hd丰满老熟妇,中文字幕一区二区三区在线不卡 ,亚洲成片在线观看,免费女同在线一区二区

alicloud_vpc_vswitch_cidr_reservation

更新時間:

Provides a Vpc Vswitch Cidr Reservation resource. The reserved network segment of the vswitch. This resource type can be used only in ap-southeast region.

For information about Vpc Vswitch Cidr Reservation and how to use it, see What is Vswitch Cidr Reservation.

-> NOTE: Available since v1.205.0.

Example Usage

Basic Usage


variable "name" {
  default = "tf-example"
}
provider "alicloud" {
  region = "ap-southeast-2"
}
data "alicloud_zones" "default" {
  available_resource_creation = "VSwitch"
}

resource "alicloud_vpc" "defaultVpc" {
  vpc_name   = var.name
  cidr_block = "10.0.0.0/8"
}

resource "alicloud_vswitch" "defaultVSwitch" {
  vpc_id       = alicloud_vpc.defaultVpc.id
  cidr_block   = "10.0.0.0/20"
  vswitch_name = "${var.name}1"
  zone_id      = data.alicloud_zones.default.zones.0.id
}


resource "alicloud_vpc_vswitch_cidr_reservation" "default" {
  ip_version                    = "IPv4"
  vswitch_id                    = alicloud_vswitch.defaultVSwitch.id
  cidr_reservation_description  = var.name
  cidr_reservation_cidr         = "10.0.10.0/24"
  vswitch_cidr_reservation_name = var.name
  cidr_reservation_type         = "Prefix"
}

Argument Reference

The following arguments are supported:

  • cidr_reservation_cidr - (Optional, ForceNew) Reserved network segment CIdrBlock.
  • cidr_reservation_description - (Optional) The description of the reserved CIDR block.
  • cidr_reservation_mask - (Optional, ForceNew) Reserved segment mask.
  • cidr_reservation_type - (Optional, ForceNew) Reserved CIDR Block Type.Valid values: Prefix. Default value: Prefix.
  • ip_version - (Optional, ForceNew) Reserved ip version of network segment, valid values: IPv4, IPv6, default IPv4.
  • vswitch_cidr_reservation_name - (Optional) The name of the resource.
  • vswitch_id - (Required, ForceNew) The Id of the switch instance.

Attributes Reference

The following attributes are exported:

  • id - The ID of the resource supplied above.The value is formulated as <vswitch_id>:<vswitch_cidr_reservation_id>.
  • create_time - The creation time of the resource.
  • status - The status of the resource.
  • vswitch_cidr_reservation_id - The resource attribute field of the resource ID.
  • vpc_id - The id of the vpc instance to which the reserved CIDR block belongs.

Timeouts

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

  • create - (Defaults to 5 mins) Used when create the Vswitch Cidr Reservation.
  • delete - (Defaults to 5 mins) Used when delete the Vswitch Cidr Reservation.
  • update - (Defaults to 5 mins) Used when update the Vswitch Cidr Reservation.

Import

Vpc Vswitch Cidr Reservation can be imported using the id, e.g.

$ terraform import alicloud_vpc_vswitch_cidr_reservation.example <vswitch_id>:<vswitch_cidr_reservation_id>