Queries transit routers in a Cloud Enterprise Network (CEN) instance.
Syntax
{
"Type": "DATASOURCE::CEN::TransitRouters",
"Properties": {
"CenId": String,
"RegionId": String,
"TransitRouterId": String,
"RefreshOptions": String
}
}
Properties
|
Property |
Type |
Required |
Editable |
Description |
Constraint |
|
CenId |
String |
Yes |
Yes |
The CEN instance ID. |
None. |
|
RegionId |
String |
No |
Yes |
The transit router region ID. |
Call the DescribeRegions operation to query region IDs. |
|
TransitRouterId |
String |
No |
Yes |
The transit router ID. |
None. |
|
RefreshOptions |
String |
No |
Yes |
The refresh policy for data source resources during stack updates. |
Valid values:
|
Return values (Fn::GetAtt)
-
TransitRouterIds: The transit router IDs.
-
TransitRouters: Transit router details.
|
Property |
Type |
Description |
Constraint |
|
TransitRouterIds |
List |
The transit router IDs. |
None. |
|
TransitRouters |
List |
Transit router details. |
None. |
|
AliUid |
String |
The Alibaba Cloud account ID of the CEN instance owner. |
None. |
|
CenId |
String |
The CEN instance ID. |
None. |
|
CreationTime |
String |
The time when the transit router was created. |
ISO 8601 format: YYYY-MM-DDThh:mmZ (UTC). |
|
RegionId |
String |
The transit router region ID. |
None. |
|
Status |
String |
The transit router status. |
Valid values:
|
|
TransitRouterDescription |
String |
The transit router description. |
None. |
|
TransitRouterName |
String |
The transit router name. |
None. |
|
Type |
String |
The transit router type. |
Valid values:
|
|
TransitRouterId |
String |
The transit router ID. |
None. |
Examples
JSON format
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"CenId": {
"Type": "String",
"Description": "The ID of the CEN instance."
}
},
"Resources": {
"ExtensionDataSource": {
"Type": "DATASOURCE::CEN::TransitRouters",
"Properties": {
"CenId": {
"Ref": "CenId"
}
}
}
},
"Outputs": {
"TransitRouterIds": {
"Description": "The list of TransitRouter IDs.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"TransitRouterIds"
]
}
},
"TransitRouters": {
"Description": "The list of TransitRouters.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"TransitRouters"
]
}
}
}
}
YAML format
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
CenId:
Type: String
Description: The ID of the CEN instance.
Resources:
ExtensionDataSource:
Type: DATASOURCE::CEN::TransitRouters
Properties:
CenId:
Ref: CenId
Outputs:
TransitRouterIds:
Description: The list of TransitRouter IDs.
Value:
Fn::GetAtt:
- ExtensionDataSource
- TransitRouterIds
TransitRouters:
Description: The list of TransitRouters.
Value:
Fn::GetAtt:
- ExtensionDataSource
- TransitRouters