ALIYUN::DFS::MountPoint

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

语法

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

属性

属性名称类型必须允许更新描述约束
StatusString挂载点状态。取值:
  • Inactive:停用挂载点。
  • Active:启用挂载点。
DescriptionString挂载点的描述信息。
VpcIdString专有网络ID。
NetworkTypeString挂载点的网络类型。取值:
  • VPC:专有网络。
  • Classic:经典网络。
VSwitchIdString交换机ID。
FileSystemIdString文件系统ID。
AccessGroupIdString权限组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