ALIYUN::SAG::CloudConnectNetwork类型用于创建云连接网。云连接网是由阿里云分布式接入网关组成的设备接入矩阵。您可以将云连接网绑定到云企业网,实现线下接入矩阵和云上中心矩阵全连接。
语法
{
"Type": "ALIYUN::SAG::CloudConnectNetwork",
"Properties": {
"Description": String,
"IsDefault": Boolean,
"Name": String,
"Tags": List
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
---|---|---|---|---|---|
Description | String | 否 | 是 | 云连接网的描述。 | 长度为2~256个字符,必须以英文字母或汉字开头,但不能以http:// 或 https:// 开头。
|
IsDefault | Boolean | 否 | 否 | 云连接网是否由系统创建。 | 取值:
|
Name | String | 否 | 是 | 云连接网的名称。 | 长度为2~128个字符。必须以英文字母或汉字开头,但不能以http:// 或https:// 开头。可包含英文字母、汉字、数字、半角句号(.)、下划线(_)和短划线(-)。
|
Tags | List | 否 | 是 | 标签。 | 最多支持添加20个标签。
更多信息,请参见Tags属性。 |
Tags语法
"Tags": [
{
"Key": String,
"Value": String
}
]
Tags属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
---|---|---|---|---|---|
Key | String | 是 | 否 | 标签键。 | 长度为1~128个字符,不能以aliyun 和acs: 开头,不能包含http:// 或者https:// 。
|
Value | String | 否 | 否 | 标签值。 | 长度为0~128个字符,不能以aliyun 和acs: 开头,不能包含http:// 或者https:// 。
|
返回值
Fn::GetAtt
CcnId:云连接网ID。
示例
JSON
格式
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"IsDefault": {
"Type": "Boolean",
"Description": "Whether is created by system",
"AllowedValues": [
"True",
"true",
"False",
"false"
],
"Default": false
},
"Description": {
"Type": "String",
"Description": "The description of the CCN instance.\nThe description can contain 2 to 256 characters. The description cannot start with http:// or https://."
},
"Tags": {
"Type": "Json",
"Description": "Tags to attach to instance. Max support 20 tags to add during create instance. Each tag with two properties Key and Value, and Key is required.",
"MaxLength": 20
},
"Name": {
"Type": "String",
"Description": "The name of the CCN instance.\nThe name can contain 2 to 128 characters including a-z, A-Z, 0-9, chinese, underlines, and hyphens. The name must start with an English letter, but cannot start with http:// or https://."
}
},
"Resources": {
"CloudConnectNetwork": {
"Type": "ALIYUN::SAG::CloudConnectNetwork",
"Properties": {
"IsDefault": {
"Ref": "IsDefault"
},
"Description": {
"Ref": "Description"
},
"Tags": {
"Ref": "Tags"
},
"Name": {
"Ref": "Name"
}
}
}
},
"Outputs": {
"CcnId": {
"Description": "The ID of the CCN instance.",
"Value": {
"Fn::GetAtt": [
"CloudConnectNetwork",
"CcnId"
]
}
}
}
}
YAML
格式
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
Description:
Description: 'The description of the CCN instance.
The description can contain 2 to 256 characters. The description cannot start
with http:// or https://.'
Type: String
IsDefault:
AllowedValues:
- 'True'
- 'true'
- 'False'
- 'false'
Default: false
Description: Whether is created by system
Type: Boolean
Name:
Description: 'The name of the CCN instance.
The name can contain 2 to 128 characters including a-z, A-Z, 0-9, chinese, underlines,
and hyphens. The name must start with an English letter, but cannot start with
http:// or https://.'
Type: String
Tags:
Description: Tags to attach to instance. Max support 20 tags to add during create
instance. Each tag with two properties Key and Value, and Key is required.
MaxLength: 20
Type: Json
Resources:
CloudConnectNetwork:
Properties:
Description:
Ref: Description
IsDefault:
Ref: IsDefault
Name:
Ref: Name
Tags:
Ref: Tags
Type: ALIYUN::SAG::CloudConnectNetwork
Outputs:
CcnId:
Description: The ID of the CCN instance.
Value:
Fn::GetAtt:
- CloudConnectNetwork
- CcnId
更多示例,请参见创建云企业网实例、创建带宽包、将带宽包绑定到指定的云企业网实例、加载网络实例到云企业网实例中、设置带宽包中两个地域间的跨地域互通带宽、将加载到CEN中的VPC或VBR的路由条目发布到CEN中、创建云连接网、将云企业网实例授权给云连接网和为云企业网实例授权的组合示例:JSON示例和YAML示例。
在文档使用中是否遇到以下问题
更多建议
匿名提交