DATASOURCE::SAE::Applications is used to query applications.
Syntax
{
"Type": "DATASOURCE::SAE::Applications",
"Properties": {
"NamespaceId": String,
"FieldValue": String,
"AppName": String,
"FieldType": String
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
---|---|---|---|---|---|
NamespaceId | String | No | Yes | The ID of the namespace. | None. |
FieldValue | String | No | Yes | The filter condition. You can search for applications 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 name of the application. | None. |
FieldType | String | No | Yes | The dimension by which applications are filtered. | 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 ID of the application. | None. |
AppName | String | The name of the application. | None. |
AppDescription | String | The description of the application. | None. |
ScaleRuleEnabled | Boolean | Indicates whether the auto scaling policy is enabled. | Valid values:
|
Instances | Number | The number of application instances. | None. |
RunningInstances | Number | The number of application instances that are running. | None. |
AppDeletingStatus | Boolean | Indicates whether the application is being deleted. | Valid values:
|
RegionId | String | The region ID of the application. | None. |
Examples
-
JSON
format{ "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" ] } } } }