全部產品
Search
文件中心

Resource Orchestration Service:ALIYUN::CEN::TransitRouterVbrAttachment

更新時間:Jul 19, 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"
        ]
      }
    }
  }
}