DATASOURCE::EDAS::Applications类型用于获取应用列表。
语法
{
"Type": "DATASOURCE::EDAS::Applications",
"Properties": {
"LogicalRegionId": String,
"ResourceGroupId": String,
"ClusterId": String,
"AppName": String
}
}
属性
属性名称 |
类型 |
必须 |
允许更新 |
描述 |
约束 |
LogicalRegionId |
String |
否 |
是 |
以微服务空间维度筛选应用列表。 |
无 |
ResourceGroupId |
String |
否 |
是 |
以资源组维度筛选应用列表。 |
无 |
ClusterId |
String |
否 |
是 |
以集群维度筛选应用列表。 |
无 |
AppName |
String |
否 |
是 |
以应用名称维度筛选应用列表。 |
无 |
返回数据(Fn::GetAtt)
- AppIds:应用ID列表。
- Applications:应用详情列表。
属性名称 |
类型 |
描述 |
约束 |
AppIds |
List |
应用ID列表。 |
无 |
Applications |
List |
应用详情列表。 |
无 |
AppId |
String |
应用ID。 |
无 |
ResourceGroupId |
String |
资源组ID。 |
无 |
ClusterId |
String |
集群ID。 |
无 |
RegionId |
String |
地域ID。 |
无 |
ClusterType |
Number |
应用集群环境类型。 |
取值:
- 2:ECS集群。
- 3:EDAS自带Kubernetes版集群。
- 5:容器服务Kubernetes版集群。
|
RunningInstanceCount |
Number |
正在运行的应用实例数量。 |
无 |
Name |
String |
应用名称。 |
无 |
BuildPackageId |
Number |
容器版本ID。 |
无 |
示例
-
JSON
格式
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"AppName": {
"Type": "String",
"Description": "The application name keyword."
}
},
"Resources": {
"Applications": {
"Type": "DATASOURCE::EDAS::Applications",
"Properties": {
"AppName": {
"Ref": "AppName"
}
}
}
},
"Outputs": {
"Applications": {
"Description": "The list of applications.",
"Value": {
"Fn::GetAtt": [
"Applications",
"Applications"
]
}
},
"AppIds": {
"Description": "The list of application IDs.",
"Value": {
"Fn::GetAtt": [
"Applications",
"AppIds"
]
}
}
}
}
-
YAML
格式
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
AppName:
Type: String
Description: The application name keyword.
Resources:
Applications:
Type: DATASOURCE::EDAS::Applications
Properties:
AppName:
Ref: AppName
Outputs:
Applications:
Description: The list of applications.
Value:
Fn::GetAtt:
- Applications
- Applications
AppIds:
Description: The list of application IDs.
Value:
Fn::GetAtt:
- Applications
- AppIds