DATASOURCE::EDAS::Applications is used to query applications.
Syntax
{
"Type": "DATASOURCE::EDAS::Applications",
"Properties": {
"LogicalRegionId": String,
"ResourceGroupId": String,
"ClusterId": String,
"AppName": String
}
}
Properties
Property |
Type |
Required |
Editable |
Description |
Constraint |
LogicalRegionId |
String |
No |
Yes |
The ID of the microservice namespace. Specify this property if you want to query the
applications by microservice namespace.
|
None |
ResourceGroupId |
String |
No |
Yes |
The ID of the resource group. Specify this property if you want to query the applications
by resource group.
|
None |
ClusterId |
String |
No |
Yes |
The ID of the cluster. Specify this property if you want to query the applications
by cluster.
|
None |
AppName |
String |
No |
Yes |
The name of the application. Specify this property if you want to query the applications
by application name.
|
None |
Return values (Fn::GetAtt)
- AppIds: the IDs of the applications.
- Applications: details of the applications.
Property |
Type |
Description |
Constraint |
AppIds |
List |
The IDs of the applications. |
None. |
Applications |
List |
Details of the applications. |
None. |
AppId |
String |
The ID of the application. |
None. |
ResourceGroupId |
String |
The ID of the resource group. |
None. |
ClusterId |
String |
The ID of the cluster. |
None. |
RegionId |
String |
The ID of the region. |
None. |
ClusterType |
Number |
The type of the cluster. |
Valid values:
- 2: Elastic Compute Service (ECS) cluster
- 3: self-managed Kubernetes cluster in Enterprise Distributed Application Service (EDAS)
- 5: Container Service for Kubernetes (ACK) cluster
|
RunningInstanceCount |
Number |
The number of running application instances. |
None. |
Name |
String |
The name of the application. |
None. |
BuildPackageId |
Number |
The build package number of EDAS Container. |
None. |
Examples
-
JSON
format
{
"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
format
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