DATASOURCE::CEN::TransitRouterPeerAttachments类型用于查询企业版转发路由器下的跨地域连接的详细信息。
语法
{
"Type": "DATASOURCE::CEN::TransitRouterPeerAttachments",
"Properties": {
"CenId": String,
"RegionId": String,
"RefreshOptions": String,
"TransitRouterAttachmentId": String,
"Tag": List,
"TransitRouterId": String
}
}属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
CenId | String | 否 | 是 | 云企业网实例 ID。 | 无 |
RegionId | String | 否 | 是 | 企业版转发路由器实例所属的地域 ID。 | 无 |
RefreshOptions | String | 否 | 是 | 当资源栈更新时,数据源资源的刷新策略。 | 有效值:
|
TransitRouterAttachmentId | String | 否 | 是 | 跨地域连接 ID。 | 无 |
Tag | List | 否 | 是 | 企业版转发路由器绑定的标签。 | 更多信息,请参考Tag属性。 |
TransitRouterId | String | 否 | 是 | 企业版转发路由器实例 ID。 | 无 |
Tag语法
"Tag": [
{
"Value": String,
"Key": String
}
]Tag属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
Key | String | 是 | 否 | 标签键。 | 无 |
Value | String | 否 | 否 | 标签值。 | 无 |
返回值
Fn::GetAtt
TransitRouterPeerAttachments:跨地域连接详情。
TransitRouterPeerAttachmentIds:跨地域连接 ID 列表。
属性名称 | 类型 | 描述 | 约束 |
TransitRouterPeerAttachmentIds | List | 跨地域连接 ID 列表。 | 无 |
TransitRouterPeerAttachments | List | 跨地域连接详情。 | 无 |
TransitRouterAttachmentId | String | 跨地域连接 ID。 | 无 |
TransitRouterId | String | 企业版转发路由器实例 ID。 | 无 |
CenId | String | 云企业网实例 ID。 | 无 |
RegionId | String | 企业版转发路由器所属地域 ID。 | 无 |
PeerTransitRouterId | String | 对端转发路由器实例 ID。 | 无 |
PeerTransitRouterRegionId | String | 对端转发路由器实例所属地域 ID。 | 无 |
Status | String | 跨地域连接的状态。 | 取值:
|
CreationTime | String | 跨地域连接的创建时间。 | 无 |
Bandwidth | String | 跨地域连接的带宽值。 | 单位:Mbps。 |
BandwidthType | String | 带宽的分配方式。 | 取值:
|
CenBandwidthPackageId | String | 跨地域连接绑定的带宽包 ID。 | 无 |
TransitRouterAttachmentName | String | 跨地域连接的名称。 | 无 |
TransitRouterAttachmentDescription | String | 跨地域连接的描述信息。 | 无 |
AutoPublishRouteEnabled | String | 企业版转发路由器实例是否自动发布跨地域连接的路由到对端地域。 | 无 |
GeographicSpanId | String | 带宽包的互通区域。 | 无 |
PeerTransitRouterOwnerId | String | 对端转发路由器实例所属账号 ID。 | 无 |
ResourceType | String | 连接所关联的资源类型。 | 取值:
|
DefaultLinkType | String | 默认链路类型。 | 取值:
|
Tags | List | 标签列表。 | 无 |
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
CenId:
Type: String
Description:
en: The ID of the CEN instance.
Required: false
RegionId:
Type: String
Description:
en: The ID of the region where the transit router is deployed.
Required: false
Resources:
ExtensionDataSource:
Type: DATASOURCE::CEN::TransitRouterPeerAttachments
Properties:
CenId:
Ref: CenId
RegionId:
Ref: RegionId
Outputs:
TransitRouterPeerAttachments:
Description: The information about TransitRouterPeerAttachments.
Value:
Fn::GetAtt:
- ExtensionDataSource
- TransitRouterPeerAttachments
TransitRouterPeerAttachmentIds:
Description: The list of The TransitRouterPeerAttachment IDs.
Value:
Fn::GetAtt:
- ExtensionDataSource
- TransitRouterPeerAttachmentIds
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"CenId": {
"Type": "String",
"Description": {
"en": "The ID of the CEN instance."
},
"Required": false
},
"RegionId": {
"Type": "String",
"Description": {
"en": "The ID of the region where the transit router is deployed."
},
"Required": false
}
},
"Resources": {
"ExtensionDataSource": {
"Type": "DATASOURCE::CEN::TransitRouterPeerAttachments",
"Properties": {
"CenId": {
"Ref": "CenId"
},
"RegionId": {
"Ref": "RegionId"
}
}
}
},
"Outputs": {
"TransitRouterPeerAttachments": {
"Description": "The information about TransitRouterPeerAttachments.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"TransitRouterPeerAttachments"
]
}
},
"TransitRouterPeerAttachmentIds": {
"Description": "The list of The TransitRouterPeerAttachment IDs.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"TransitRouterPeerAttachmentIds"
]
}
}
}
}