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:
  • appName: the name of the application.
  • appIds: the IDs of the applications.
  • slbIps: the IP addresses of the associated SLB instances.
  • instanceIps: the IP addresses of the instances.

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:
  • true: The auto scaling policy is enabled.
  • false: The auto scaling policy is disabled.
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:
  • true: The application is being deleted.
  • false: The application is not being deleted.
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"
            ]
          }
        }
      }
    }
  • YAML 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