DATASOURCE::CEN::TransitRouterPeerAttachments

更新时间:
复制为 MD 格式

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

当资源栈更新时,数据源资源的刷新策略。

有效值:

  • Never(默认值):更新堆栈时,从不刷新数据源资源。

  • Always:更新堆栈时,始终刷新数据源资源。

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

跨地域连接的状态。

取值:

  • Attached:已加载。

  • Attaching:加载中。

  • Detaching:卸载中。

  • Detached:已卸载。

CreationTime

String

跨地域连接的创建时间。

Bandwidth

String

跨地域连接的带宽值。

单位:Mbps。

BandwidthType

String

带宽的分配方式。

取值:

  • BandwidthPackage:从带宽包中分配带宽。

  • DataTransfer:不为跨地域连接分配带宽,按使用流量计费。

CenBandwidthPackageId

String

跨地域连接绑定的带宽包 ID。

TransitRouterAttachmentName

String

跨地域连接的名称。

TransitRouterAttachmentDescription

String

跨地域连接的描述信息。

AutoPublishRouteEnabled

String

企业版转发路由器实例是否自动发布跨地域连接的路由到对端地域。

GeographicSpanId

String

带宽包的互通区域。

PeerTransitRouterOwnerId

String

对端转发路由器实例所属账号 ID。

ResourceType

String

连接所关联的资源类型。

取值:

  • VPC:专有网络实例。

  • CCN:云连接网实例。

  • VBR:边界路由器实例。

  • TR:转发路由器实例。

DefaultLinkType

String

默认链路类型。

取值:

  • Gold(默认值):金。

  • Platinum:铂金。

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"
        ]
      }
    }
  }
}