Queries Cloud Enterprise Network (CEN) bandwidth plan details for the current account.
Syntax
{
"Type": "DATASOURCE::CEN::CenBandwidthPackages",
"Properties": {
"IsOrKey": Boolean,
"Filter": List,
"IncludeReservationData": Boolean,
"RefreshOptions": String
}
}
Properties
|
Property |
Type |
Required |
Editable |
Description |
Constraint |
|
IsOrKey |
Boolean |
No |
Yes |
Whether to apply the OR logic operator to the filters. |
Valid values:
|
|
Filter |
List |
No |
Yes |
The filters. |
For more information, see Filter properties. |
|
IncludeReservationData |
Boolean |
No |
Yes |
Whether to include renewal data. |
Valid values:
|
|
RefreshOptions |
String |
No |
Yes |
The refresh policy for data source resources when the stack is updated. |
Valid values:
|
Filter syntax
"Filter": [
{
"Value": List,
"Key": String
}
]
Filter properties
|
Property |
Type |
Required |
Editable |
Description |
Constraint |
|
Value |
List |
No |
No |
The filter value. You can specify values based on the filter key. |
Multiple values can be specified per filter key. Values are combined with OR logic, so bandwidth plans matching any value are returned. |
|
Key |
String |
Yes |
No |
The filter key. |
Valid values:
|
Return values (Fn::GetAtt)
-
CenBandwidthPackages: the bandwidth plan details.
-
CenBandwidthPackageIds: the bandwidth plan IDs.
|
Property |
Type |
Description |
Constraint |
|
CenBandwidthPackageIds |
List |
The bandwidth plan IDs. |
None. |
|
CenBandwidthPackages |
List |
The bandwidth plan details. |
None. |
|
ReservationActiveTime |
String |
The temporary upgrade expiration time. |
None. |
|
CenBandwidthPackageId |
String |
The bandwidth plan ID. |
None. |
|
Status |
String |
Whether the bandwidth plan is associated with a CEN instance. |
Valid values:
|
|
CreationTime |
String |
The time when the bandwidth plan was created. |
The time follows the ISO 8601 standard in the YYYY-MM-DDThh:mmZ format. |
|
ReservationOrderType |
String |
The configuration change type during renewal. |
Valid values:
|
|
BandwidthPackageChargeType |
String |
The billing method of the bandwidth plan. |
None. |
|
ReservationInternetChargeType |
String |
The billing method after the configuration change. |
None. |
|
GeographicRegionAId |
String |
The queried area ID. |
Valid values:
|
|
Bandwidth |
Number |
The maximum bandwidth of the bandwidth plan. |
None. |
|
Description |
String |
The bandwidth plan description. |
None. |
|
ExpiredTime |
String |
The bandwidth plan expiration time. |
The time follows the ISO 8601 standard in the YYYY-MM-DDThh:mmZ format. |
|
ReservationBandwidth |
String |
The bandwidth restored when the temporary upgrade ends. |
None. |
|
GeographicSpanId |
String |
The connected area ID. |
None. |
|
GeographicRegionBId |
String |
The ID of the other area in the bandwidth plan's cross-region connection. |
Valid values:
|
|
IsCrossBorder |
Boolean |
Whether the bandwidth plan is a cross-border bandwidth plan. |
Valid values:
|
|
BusinessStatus |
String |
The bandwidth plan state. |
Valid values:
|
|
Name |
String |
The bandwidth plan name. |
None. |
|
HasReservationData |
String |
Whether renewal data is included. |
Valid values:
Note
Returns true when IncludeReservationData is set to true and specific orders have not taken effect. |
|
CenIds |
List |
The CEN instance IDs associated with the bandwidth plan. |
Example:
|
|
OrginInterRegionBandwidthLimits |
Map |
The cross-region connection details. |
Example:
|
Examples
JSON format
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"IncludeReservationData": {
"Type": "Boolean",
"Description": "Specifies whether to include renewal data.",
"AllowedValues": [
"True",
"true",
"False",
"false"
]
}
},
"Resources": {
"ExtensionDataSource": {
"Type": "DATASOURCE::CEN::CenBandwidthPackages",
"Properties": {
"IncludeReservationData": {
"Ref": "IncludeReservationData"
}
}
}
},
"Outputs": {
"CenBandwidthPackages": {
"Description": "The information about CenBandwidthPackages.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"CenBandwidthPackages"
]
}
},
"CenBandwidthPackageIds": {
"Description": "The list of The Cen bandwidth ids.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"CenBandwidthPackageIds"
]
}
}
}
}
YAML format
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
IncludeReservationData:
Type: Boolean
Description: Specifies whether to include renewal data.
AllowedValues:
- 'True'
- 'true'
- 'False'
- 'false'
Resources:
ExtensionDataSource:
Type: DATASOURCE::CEN::CenBandwidthPackages
Properties:
IncludeReservationData:
Ref: IncludeReservationData
Outputs:
CenBandwidthPackages:
Description: The information about CenBandwidthPackages.
Value:
Fn::GetAtt:
- ExtensionDataSource
- CenBandwidthPackages
CenBandwidthPackageIds:
Description: The list of The Cen bandwidth ids.
Value:
Fn::GetAtt:
- ExtensionDataSource
- CenBandwidthPackageIds