All Products
Search
Document Center

Resource Orchestration Service:ALIYUN::NAS::MountTarget

Last Updated:Aug 14, 2023

ALIYUN::NAS::MountTarget is used to create a mount target.

Syntax

{
  "Type": "ALIYUN::NAS::MountTarget",
  "Properties": {
    "Status": String,
    "VpcId": String,
    "FileSystemId": String,
    "VSwitchId": String,
    "NetworkType": String,
    "AccessGroupName": String,
    "EnableIpv6": Boolean,
    "SecurityGroupId": String
  }
}

Properties

Property

Type

Required

Editable

Description

Constraint

Status

String

No

Yes

The state.

Valid values:

  • Active

  • Inactive

VpcId

String

No

No

The virtual private cloud (VPC) ID.

None.

FileSystemId

String

Yes

No

The ID of the file system.

None.

VSwitchId

String

No

No

The vSwitch ID.

None.

NetworkType

String

Yes

No

The network type.

Valid values:

  • Vpc

  • Classic

AccessGroupName

String

Yes

Yes

The name of the permission group.

None.

EnableIpv6

Boolean

No

No

Specifies whether to create an IPv6 domain name for the mount target.

Valid values:

  • true

  • false (default)

    Note

    Only Extreme NAS file systems that reside in regions inside the Chinese mainland support the IPv6 feature. If you want to create an IPv6 domain name for the mount target, you must enable the IPv6 feature for your Extreme NAS file system.

SecurityGroupId

String

No

No

The ID of security group.

Example:

sg-bp1fg655nh68xyz9****.

Return values

Fn::GetAtt

MountTargetDomain: the domain name of the mount point.

Examples

  • YAML format

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      VpcId:
        Type: String
        AssociationProperty: ALIYUN::ECS::VPC::VPCId
      VSwitchId:
        Type: String
        AssociationProperty: ALIYUN::ECS::VSwitch::VSwitchId
        AssociationPropertyMetadata:
          VpcId: ${VpcId}
      FileSystemId:
        Type: String
        Description: File system ID
    Resources:
      MountTarget:
        Type: ALIYUN::NAS::MountTarget
        Properties:
          Status: Active
          VpcId:
            Ref: VpcId
          FileSystemId:
            Ref: FileSystemId
          VSwitchId:
            Ref: VSwitchId
          NetworkType: Vpc
          AccessGroupName: TestAccessGroup
    Outputs: {}
  • JSON format

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "VpcId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::VPC::VPCId"
        },
        "VSwitchId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::VSwitch::VSwitchId",
          "AssociationPropertyMetadata": {
            "VpcId": "${VpcId}"
          }
        },
        "FileSystemId": {
          "Type": "String",
          "Description": "File system ID"
        }
      },
      "Resources": {
        "MountTarget": {
          "Type": "ALIYUN::NAS::MountTarget",
          "Properties": {
            "Status": "Active",
            "VpcId": {
              "Ref": "VpcId"
            },
            "FileSystemId": {
              "Ref": "FileSystemId"
            },
            "VSwitchId": {
              "Ref": "VSwitchId"
            },
            "NetworkType": "Vpc",
            "AccessGroupName": "TestAccessGroup"
          }
        }
      },
      "Outputs": {
      }
    }