Queries the list of Serverless App Engine (SAE) applications.
Syntax
{
"Type": "DATASOURCE::SAE::Applications",
"Properties": {
"NamespaceId": String,
"FieldValue": String,
"AppName": String,
"FieldType": String,
"RefreshOptions": String
}
}
Properties
|
Property |
Type |
Required |
Editable |
Description |
Constraint |
|
NamespaceId |
String |
No |
Yes |
The namespace ID. |
None. |
|
FieldValue |
String |
No |
Yes |
The filter condition for applications. You can filter by application name, application ID, IP address of the associated Server Load Balancer (SLB) instance, or IP address of the application instance. |
None. |
|
AppName |
String |
No |
Yes |
The application name. |
None. |
|
FieldType |
String |
No |
Yes |
The dimension by which to filter applications. |
Valid values:
|
|
RefreshOptions |
String |
No |
Yes |
The refresh policy for data source resources when the stack is updated. |
Valid values:
|
Return values (Fn::GetAtt)
-
Applications: details of the applications.
-
ApplicationIds: the IDs of the applications.
|
Property |
Type |
Description |
Constraint |
|
ApplicationIds |
List |
The IDs of the applications. |
None. |
|
Applications |
List |
Details of the applications. |
None. |
|
AppId |
String |
The application ID. |
None. |
|
AppName |
String |
The application name. |
None. |
|
AppDescription |
String |
The description of the application. |
None. |
|
ScaleRuleEnabled |
Boolean |
Whether auto scaling is enabled. |
Valid values:
|
|
Instances |
Number |
The number of application instances. |
None. |
|
RunningInstances |
Number |
The number of running application instances. |
None. |
|
AppDeletingStatus |
Boolean |
Whether the application is being deleted. |
Valid values:
|
|
RegionId |
String |
The region ID of the application. |
None. |
Examples
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"AppName": {
"Type": "String",
"Description": "The name of application."
}
},
"Resources": {
"Applications": {
"Type": "DATASOURCE::SAE::Applications",
"Properties": {
"AppName": {
"Ref": "AppName"
}
}
}
},
"Outputs": {
"Applications": {
"Description": "The list of applications.",
"Value": {
"Fn::GetAtt": [
"Applications",
"Applications"
]
}
},
"ApplicationIds": {
"Description": "The list of application IDs.",
"Value": {
"Fn::GetAtt": [
"Applications",
"ApplicationIds"
]
}
}
}
}ROSTemplateFormatVersion: '2015-09-01'
Parameters:
AppName:
Type: String
Description: The name of application.
Resources:
Applications:
Type: DATASOURCE::SAE::Applications
Properties:
AppName:
Ref: AppName
Outputs:
Applications:
Description: The list of applications.
Value:
Fn::GetAtt:
- Applications
- Applications
ApplicationIds:
Description: The list of application IDs.
Value:
Fn::GetAtt:
- Applications
- ApplicationIds