文档

alicloud_nas_access_group

更新时间:
一键部署

Provides a NAS Access Group resource. File system Access Group.

In NAS, the permission group acts as a whitelist that allows you to restrict file system access. You can allow specified IP addresses or CIDR blocks to access the file system, and assign different levels of access permission to different IP addresses or CIDR blocks by adding rules to the permission group. For information about NAS Access Group and how to use it, see What is NAS Access Group

-> NOTE: Available since v1.33.0.

Example Usage

Basic Usage

resource "alicloud_nas_access_group" "foo" {
  access_group_name = "terraform-example"
  access_group_type = "Vpc"
  description       = "terraform-example"
  file_system_type  = "extreme"
}

Argument Reference

The following arguments are supported:

  • access_group_name - (Optional, ForceNew) The name of the permission group.
  • access_group_type - (Optional, ForceNew) Permission group types, including Vpc.
  • description - (Optional) Permission group description information.
  • file_system_type - (Optional, ForceNew, Computed) File system type. Value:
    • standard (default): Universal NAS
    • extreme: extreme NAS The following arguments will be discarded. Please use new fields as soon as possible:
  • name - (Deprecated since v1.218.0). Field 'name' has been deprecated from provider version 1.218.0. New field 'access_group_name' instead.
  • type - (Deprecated since v1.218.0). Field 'type' has been deprecated from provider version 1.218.0. New field 'access_group_type' instead.

Attributes Reference

The following attributes are exported:

  • id - The ID of the resource supplied above.The value is formulated as <access_group_name>:<file_system_type>.
  • create_time - Creation time.

Timeouts

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

  • create - (Defaults to 5 mins) Used when create the Access Group.
  • delete - (Defaults to 5 mins) Used when delete the Access Group.
  • update - (Defaults to 5 mins) Used when update the Access Group.

Import

NAS Access Group can be imported using the id, e.g.

$ terraform import alicloud_nas_access_group.example <access_group_name>:<file_system_type>

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