全部产品
Search
文档中心

资源编排:ALIYUN::CEN::TransitRouterVbrAttachment

更新时间:Jul 18, 2024

ALIYUN::CEN::TransitRouterVbrAttachment类型用于在企业版转发路由器下创建边界路由器VBR(Virtual Border Router)连接。

语法

{
  "Type": "ALIYUN::CEN::TransitRouterVbrAttachment",
  "Properties": {
    "AutoPublishRouteEnabled": Boolean,
    "VbrOwnerId": Integer,
    "CenId": String,
    "TransitRouterAttachmentName": String,
    "VbrId": String,
    "TransitRouterAttachmentDescription": String,
    "TransitRouterId": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

VbrId

String

VBR实例ID。

AutoPublishRouteEnabled

Boolean

企业版转发路由器是否自动发布路由到VBR实例。

取值:

  • false(默认值):否。

  • true:是。

CenId

String

云企业网实例ID。

TransitRouterAttachmentDescription

String

VBR连接描述。

长度为2~256个字符,必须以英文字母或汉字开头,但不能以http://https://开头。

TransitRouterAttachmentName

String

VBR连接名称。

长度为2~128个字符,以英文字母或汉字开头,可包含英文字母、汉字、数字、下划线(_)或短划线(-)。

TransitRouterId

String

企业版转发路由器实例ID。

VbrOwnerId

Integer

VBR实例所属阿里云账号ID。

返回值

Fn::GetAtt

  • TransitRouterAttachmentId:VBR连接ID。

  • AutoPublishRouteEnabled:企业版转发路由器是否自动发布路由到VBR实例。

  • VbrOwnerId:VBR实例所属阿里云账号ID。

  • CenId:云企业网实例ID。

  • TransitRouterAttachmentName:VBR连接名称。

  • ResourceType:资源类型。

  • VbrId:VBR实例ID。

  • ClientToken:客户端Token,用于保证请求的幂等性。

  • TransitRouterAttachmentDescription:VBR连接描述。

  • TransitRouterId:企业版转发路由器实例ID。

示例

YAML格式

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  AutoPublishRouteEnabled:
    AllowedValues:
    - 'True'
    - 'true'
    - 'False'
    - 'false'
    Description: AutoPublishRouteEnabled
    Type: Boolean
  CenId:
    Description: CenId
    Type: String
  TransitRouterAttachmentDescription:
    Description: TransitRouterAttachmentDescription
    Type: String
  TransitRouterAttachmentName:
    Description: TransitRouterAttachmentName
    Type: String
  TransitRouterId:
    Description: TransitRouterId
    Type: String
  VbrId:
    Description: VbrId
    Type: String
  VbrOwnerId:
    Description: VbrOwnerId
    Type: Number
Resources:
  CENTransitRouterVbrAttachment:
    Properties:
      AutoPublishRouteEnabled:
        Ref: AutoPublishRouteEnabled
      CenId:
        Ref: CenId
      TransitRouterAttachmentDescription:
        Ref: TransitRouterAttachmentDescription
      TransitRouterAttachmentName:
        Ref: TransitRouterAttachmentName
      TransitRouterId:
        Ref: TransitRouterId
      VbrId:
        Ref: VbrId
      VbrOwnerId:
        Ref: VbrOwnerId
    Type: ALIYUN::CEN::TransitRouterVbrAttachment
Outputs:
  AutoPublishRouteEnabled:
    Description: AutoPublishRouteEnabled
    Value:
      Fn::GetAtt:
      - CENTransitRouterVbrAttachment
      - AutoPublishRouteEnabled
  CenId:
    Description: CenId
    Value:
      Fn::GetAtt:
      - CENTransitRouterVbrAttachment
      - CenId
  ClientToken:
    Description: ClientToken
    Value:
      Fn::GetAtt:
      - CENTransitRouterVbrAttachment
      - ClientToken
  ResourceType:
    Description: ResourceType
    Value:
      Fn::GetAtt:
      - CENTransitRouterVbrAttachment
      - ResourceType
  TransitRouterAttachmentDescription:
    Description: TransitRouterAttachmentDescription
    Value:
      Fn::GetAtt:
      - CENTransitRouterVbrAttachment
      - TransitRouterAttachmentDescription
  TransitRouterAttachmentId:
    Description: The first ID of the resource
    Value:
      Fn::GetAtt:
      - CENTransitRouterVbrAttachment
      - TransitRouterAttachmentId
  TransitRouterAttachmentName:
    Description: TransitRouterAttachmentName
    Value:
      Fn::GetAtt:
      - CENTransitRouterVbrAttachment
      - TransitRouterAttachmentName
  TransitRouterId:
    Description: TransitRouterId
    Value:
      Fn::GetAtt:
      - CENTransitRouterVbrAttachment
      - TransitRouterId
  VbrId:
    Description: VbrId
    Value:
      Fn::GetAtt:
      - CENTransitRouterVbrAttachment
      - VbrId
  VbrOwnerId:
    Description: VbrOwnerId
    Value:
      Fn::GetAtt:
      - CENTransitRouterVbrAttachment
      - VbrOwnerId

JSON格式

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "AutoPublishRouteEnabled": {
      "Type": "Boolean",
      "Description": "AutoPublishRouteEnabled",
      "AllowedValues": [
        "True",
        "true",
        "False",
        "false"
      ]
    },
    "VbrOwnerId": {
      "Type": "Number",
      "Description": "VbrOwnerId"
    },
    "CenId": {
      "Type": "String",
      "Description": "CenId"
    },
    "TransitRouterAttachmentName": {
      "Type": "String",
      "Description": "TransitRouterAttachmentName"
    },
    "VbrId": {
      "Type": "String",
      "Description": "VbrId"
    },
    "TransitRouterAttachmentDescription": {
      "Type": "String",
      "Description": "TransitRouterAttachmentDescription"
    },
    "TransitRouterId": {
      "Type": "String",
      "Description": "TransitRouterId"
    }
  },
  "Resources": {
    "CENTransitRouterVbrAttachment": {
      "Type": "ALIYUN::CEN::TransitRouterVbrAttachment",
      "Properties": {
        "AutoPublishRouteEnabled": {
          "Ref": "AutoPublishRouteEnabled"
        },
        "VbrOwnerId": {
          "Ref": "VbrOwnerId"
        },
        "CenId": {
          "Ref": "CenId"
        },
        "TransitRouterAttachmentName": {
          "Ref": "TransitRouterAttachmentName"
        },
        "VbrId": {
          "Ref": "VbrId"
        },
        "TransitRouterAttachmentDescription": {
          "Ref": "TransitRouterAttachmentDescription"
        },
        "TransitRouterId": {
          "Ref": "TransitRouterId"
        }
      }
    }
  },
  "Outputs": {
    "TransitRouterAttachmentId": {
      "Description": "The first ID of the resource",
      "Value": {
        "Fn::GetAtt": [
          "CENTransitRouterVbrAttachment",
          "TransitRouterAttachmentId"
        ]
      }
    },
    "AutoPublishRouteEnabled": {
      "Description": "AutoPublishRouteEnabled",
      "Value": {
        "Fn::GetAtt": [
          "CENTransitRouterVbrAttachment",
          "AutoPublishRouteEnabled"
        ]
      }
    },
    "VbrOwnerId": {
      "Description": "VbrOwnerId",
      "Value": {
        "Fn::GetAtt": [
          "CENTransitRouterVbrAttachment",
          "VbrOwnerId"
        ]
      }
    },
    "CenId": {
      "Description": "CenId",
      "Value": {
        "Fn::GetAtt": [
          "CENTransitRouterVbrAttachment",
          "CenId"
        ]
      }
    },
    "TransitRouterAttachmentName": {
      "Description": "TransitRouterAttachmentName",
      "Value": {
        "Fn::GetAtt": [
          "CENTransitRouterVbrAttachment",
          "TransitRouterAttachmentName"
        ]
      }
    },
    "ResourceType": {
      "Description": "ResourceType",
      "Value": {
        "Fn::GetAtt": [
          "CENTransitRouterVbrAttachment",
          "ResourceType"
        ]
      }
    },
    "VbrId": {
      "Description": "VbrId",
      "Value": {
        "Fn::GetAtt": [
          "CENTransitRouterVbrAttachment",
          "VbrId"
        ]
      }
    },
    "ClientToken": {
      "Description": "ClientToken",
      "Value": {
        "Fn::GetAtt": [
          "CENTransitRouterVbrAttachment",
          "ClientToken"
        ]
      }
    },
    "TransitRouterAttachmentDescription": {
      "Description": "TransitRouterAttachmentDescription",
      "Value": {
        "Fn::GetAtt": [
          "CENTransitRouterVbrAttachment",
          "TransitRouterAttachmentDescription"
        ]
      }
    },
    "TransitRouterId": {
      "Description": "TransitRouterId",
      "Value": {
        "Fn::GetAtt": [
          "CENTransitRouterVbrAttachment",
          "TransitRouterId"
        ]
      }
    }
  }
}