All Products
Search
Document Center

Resource Orchestration Service:DATASOURCE::EDAS::Applications

Last Updated:Oct 29, 2024

DATASOURCE::EDAS::Applications is used to query applications.

Syntax

{
  "Type": "DATASOURCE::EDAS::Applications",
  "Properties": {
    "LogicalRegionId": String,
    "ResourceGroupId": String,
    "ClusterId": String,
    "AppName": String
  }
}

Properties

PropertyTypeRequiredEditableDescriptionConstraint
LogicalRegionIdStringNoYesThe ID of the microservice namespace. Specify this property if you want to query the applications by microservice namespace. None
ResourceGroupIdStringNoYesThe ID of the resource group. Specify this property if you want to query the applications by resource group. None
ClusterIdStringNoYesThe ID of the cluster. Specify this property if you want to query the applications by cluster. None
AppNameStringNoYesThe 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.
PropertyTypeDescriptionConstraint
AppIdsListThe IDs of the applications. None.
ApplicationsListDetails of the applications. None.
AppIdStringThe ID of the application. None.
ResourceGroupIdStringThe ID of the resource group. None.
ClusterIdStringThe ID of the cluster. None.
RegionIdStringThe ID of the region. None.
ClusterTypeNumberThe 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
RunningInstanceCountNumberThe number of running application instances. None.
NameStringThe name of the application. None.
BuildPackageIdNumberThe 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