ALIYUN::DFS::MountPoint类型用于创建一个挂载点。

语法

{
  "Type": "ALIYUN::DFS::MountPoint",
  "Properties": {
    "Status": String,
    "Description": String,
    "VpcId": String,
    "NetworkType": String,
    "VSwitchId": String,
    "FileSystemId": String,
    "AccessGroupId": String
  }
}

属性

属性名称 类型 必须 允许更新 描述 约束
Status String 挂载点状态。 取值:
  • Inactive:停用挂载点。
  • Active:启用挂载点。
Description String 挂载点的描述信息。
VpcId String 专有网络ID。
NetworkType String 挂载点的网络类型。 取值:
  • VPC:专有网络。
  • Classic:经典网络。
VSwitchId String 交换机ID。
FileSystemId String 文件系统ID。
AccessGroupId String 权限组ID。

返回值

Fn::GetAtt

MountPointId:挂载点ID。

示例

  • JSON格式

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "VpcId": {
          "Type": "String",
          "Description": "The vpc id."
        },
        "NetworkType": {
          "Type": "String",
          "Description": "The network type of the Mount Point. Valid values: VPC.",
          "AllowedValues": [
            "VPC"
          ]
        },
        "VSwitchId": {
          "Type": "String",
          "Description": "The vswitch id."
        },
        "FileSystemId": {
          "Type": "String",
          "Description": "The ID of the File System."
        },
        "AccessGroupId": {
          "Type": "String",
          "Description": "The ID of the Access Group."
        }
      },
      "Resources": {
        "MountPoint": {
          "Type": "ALIYUN::DFS::MountPoint",
          "Properties": {
            "VpcId": {
              "Ref": "VpcId"
            },
            "NetworkType": {
              "Ref": "NetworkType"
            },
            "VSwitchId": {
              "Ref": "VSwitchId"
            },
            "FileSystemId": {
              "Ref": "FileSystemId"
            },
            "AccessGroupId": {
              "Ref": "AccessGroupId"
            }
          }
        }
      },
      "Outputs": {
        "MountPointId": {
          "Description": "The ID of the mount point.",
          "Value": {
            "Fn::GetAtt": [
              "MountPoint",
              "MountPointId"
            ]
          }
        }
      }
    }
  • YAML格式

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      VpcId:
        Type: String
        Description: The vpc id.
      NetworkType:
        Type: String
        Description: 'The network type of the Mount Point. Valid values: VPC.'
        AllowedValues:
          - VPC
      VSwitchId:
        Type: String
        Description: The vswitch id.
      FileSystemId:
        Type: String
        Description: The ID of the File System.
      AccessGroupId:
        Type: String
        Description: The ID of the Access Group.
    Resources:
      MountPoint:
        Type: ALIYUN::DFS::MountPoint
        Properties:
          VpcId:
            Ref: VpcId
          NetworkType:
            Ref: NetworkType
          VSwitchId:
            Ref: VSwitchId
          FileSystemId:
            Ref: FileSystemId
          AccessGroupId:
            Ref: AccessGroupId
    Outputs:
      MountPointId:
        Description: The ID of the mount point.
        Value:
          Fn::GetAtt:
            - MountPoint
            - MountPointId