文档

ALIYUN::NAS::ProtocolService

更新时间:

ALIYUN::NAS::ProtocolService类型用于创建CPFS文件系统的协议服务。

语法

{
  "Type": "ALIYUN::NAS::ProtocolService",
  "Properties": {
    "Description": String,
    "VpcId": String,
    "ProtocolType": String,
    "ProtocolSpec": String,
    "VSwitchId": String,
    "FileSystemId": String,
    "Throughput": Integer
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

Description

String

协议服务的描述。

限制:

  • 长度为2~128个英文或中文字符。

  • 必须以大小写字母或中文开头,不能以http://https://开头。

  • 可以包含数字、半角冒号(:)、下划线(_)或者短划线(-)。

VpcId

String

协议服务VpcId。

需与文件系统VPC保持一致。

ProtocolType

String

协议服务的协议类型。

取值:NFS(默认值),协议服务支持NFS协议访问。

ProtocolSpec

String

协议服务的规格。

取值:General(默认值)。

VSwitchId

String

协议服务vSwitchId。

FileSystemId

String

文件系统ID。

Throughput

Integer

协议服务的带宽。

单位:MB/s。

返回值

Fn::GetAtt

  • FileSystemId:文件系统ID。

  • ProtocolServiceId:协议机集群ID。

示例

  • YAML格式

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      FileSystemId:
        Default: cpfs-03c125afccbd****
        Type: String
      VpcId:
        Default: vpc-2zebbi27bn7w42n30****
        Type: String
      VSwitchId:
        Default: vsw-2ze34tr01i6h4l2km****
        Type: String
    Resources:
      ProtocolService:
        Type: ALIYUN::NAS::ProtocolService
        Properties:
          ProtocolType: NFS
          FileSystemId:
            Ref: FileSystemId
          VpcId:
            Ref: VpcId
          VSwitchId:
            Ref: VSwitchId
          Description: ros_test_protocol_service
    Outputs:
      ProtocolServiceId:
        Value:
          Fn::GetAtt:
          - ProtocolService
          - ProtocolServiceId
      FileSystemId:
        Value:
          Fn::GetAtt:
          - ProtocolService
          - FileSystemId
  • JSON格式

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "FileSystemId": {
          "Default": "cpfs-03c125afccbd****",
          "Type": "String"
        },
        "VpcId": {
          "Default": "vpc-2zebbi27bn7w42n30****",
          "Type": "String"
        },
        "VSwitchId": {
          "Default": "vsw-2ze34tr01i6h4l2km****",
          "Type": "String"
        }
      },
      "Resources": {
        "ProtocolService": {
          "Type": "ALIYUN::NAS::ProtocolService",
          "Properties": {
            "ProtocolType": "NFS",
            "FileSystemId": {
              "Ref": "FileSystemId"
            },
            "VpcId": {
              "Ref": "VpcId"
            },
            "VSwitchId": {
              "Ref": "VSwitchId"
            },
            "Description": "ros_test_protocol_service"
          }
        }
      },
      "Outputs": {
        "ProtocolServiceId": {
          "Value": {
            "Fn::GetAtt": [
              "ProtocolService",
              "ProtocolServiceId"
            ]
          }
        },
        "FileSystemId": {
          "Value": {
            "Fn::GetAtt": [
              "ProtocolService",
              "FileSystemId"
            ]
          }
        }
      }
    }
  • 本页导读 (1)
文档反馈