ALIYUN::ECD::SimpleOfficeSite类型用于创建一个使用便捷账号的工作区。
语法
{
  "Type": "ALIYUN::ECD::SimpleOfficeSite",
  "Properties": {
    "VerifyCode": String,
    "NeedVerifyZeroDevice": Boolean,
    "CenOwnerId": Integer,
    "Bandwidth": Integer,
    "VSwitchId": String,
    "EnableAdminAccess": Boolean,
    "CloudBoxOfficeSite": Boolean,
    "CenId": String,
    "OfficeSiteName": String,
    "DesktopAccessType": String,
    "CidrBlock": String,
    "EnableInternetAccess": Boolean,
    "VpcType": String
  }
}属性
| 属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 | 
| VerifyCode | String | 否 | 否 | 验证码。 | 如果配置的CenId属于其他阿里云账号,必须先调用SendVerifyCode获取验证码。 | 
| NeedVerifyZeroDevice | Boolean | 否 | 否 | 是否开启可信设备校验。 | 取值: 
 | 
| CenOwnerId | Integer | 否 | 否 | 云企业网实例所属的阿里云账号ID。 | 
 | 
| Bandwidth | Integer | 否 | 否 | 公网带宽峰值。 | 取值范围:10~200。 带宽单位为:Mbps。 当 | 
| VSwitchId | String | 否 | 否 | 专有网络VPC中的交换机ID。 | 创建云盒工作区时,需要填写该参数。 | 
| EnableAdminAccess | Boolean | 否 | 否 | 是否为使用云桌面的用户赋予本地管理员权限。 | 取值: 
 | 
| CloudBoxOfficeSite | Boolean | 否 | 否 | 是否为云盒工作区。 | 取值: 
 | 
| VpcType | String | 否 | 否 | 办公网络的类型。 | 取值: 
 | 
| CenId | String | 否 | 否 | 云企业网CEN实例ID。 | 说明  如果想要通过VPC连接的方式接入云桌面,可以将工作区网络加入到云企业网实例中。该云企业网实例为本地网络通过VPN或者专线接入的云企业网实例。 | 
| OfficeSiteName | String | 否 | 否 | 工作区名称。 | 长度为2~255个英文或中文字符。必须以大小字母或中文开头,不能以 | 
| DesktopAccessType | String | 否 | 否 | 连接云桌面时允许使用的接入方式。 | 说明  VPC连接方式依赖于阿里云私网连接PrivateLink服务,该服务不收取费用。该参数设置为VPC或者Any时,系统将自动为您开通私网连接服务。 | 
| CidrBlock | String | 否 | 否 | 工作区对应的安全办公网络包含的IPv4网段。 | 系统将根据输入的IPv4网段,自动创建一个专有网络VPC。建议您使用 | 
| EnableInternetAccess | Boolean | 否 | 否 | 是否开通公网访问功能。 | 取值: 
 | 
返回值
Fn::GetAtt
OfficeSiteId:工作区ID。
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  OfficeSiteName:
    Type: String
    Description: The name of the workspace. The name must be 2 to 255 characters in length. It must start with a letter and cannot start with http:// or https://. The name can contain letters, digits, colons (:), underscores (_), and hyphens (-).
    Default: test
Resources:
  SimpleOfficeSite:
    Type: ALIYUN::ECD::SimpleOfficeSite
    Properties:
      OfficeSiteName:
        Ref: OfficeSiteName
      CidrBlock: 172.16.0.0/12
Outputs:
  OfficeSiteId:
    Description: The ID of the workspace.
    Value:
      Fn::GetAtt:
        - SimpleOfficeSite
        - OfficeSiteId{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "OfficeSiteName": {
      "Type": "String",
      "Description": "The name of the workspace. The name must be 2 to 255 characters in length. It must start with a letter and cannot start with http:// or https://. The name can contain letters, digits, colons (:), underscores (_), and hyphens (-).",
      "Default": "test"
    }
  },
  "Resources": {
    "SimpleOfficeSite": {
      "Type": "ALIYUN::ECD::SimpleOfficeSite",
      "Properties": {
        "OfficeSiteName": {
          "Ref": "OfficeSiteName"
        },
        "CidrBlock": "172.16.0.0/12"
      }
    }
  },
  "Outputs": {
    "OfficeSiteId": {
      "Description": "The ID of the workspace.",
      "Value": {
        "Fn::GetAtt": [
          "SimpleOfficeSite",
          "OfficeSiteId"
        ]
      }
    }
  }
}