DATASOURCE::ApiGateway::Apps类型用于查询应用列表。

语法

{
  "Type": "DATASOURCE::ApiGateway::Apps",
  "Properties": {
    "AppOwner": String,
    "AppId": String
  }
}

属性

属性名称 类型 必须 允许更新 描述 约束
AppOwner String App拥有者的阿里云账号ID。
AppId String App的唯一标识。

返回数据(Fn::GetAtt)

  • AppIds:应用ID列表。
  • Apps:应用详情列表。
属性名称 类型 描述 约束
AppIds List 应用ID列表。
Apps List 应用详情列表。
AppName String App名称。
AppId String App编号。
Description String App描述信息。

示例

  • JSON格式

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "AppId": {
          "Type": "String",
          "Description": "Unique ID of the app."
        }
      },
      "Resources": {
        "ExtensionDataSource": {
          "Type": "DATASOURCE::ApiGateway::Apps",
          "Properties": {
            "AppId": {
              "Ref": "AppId"
            }
          }
        }
      },
      "Outputs": {
        "Apps": {
          "Description": "The information about ApiGateway apps.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "Apps"
            ]
          }
        },
        "AppIds": {
          "Description": "The list of The ApiGateway app ids.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "AppIds"
            ]
          }
        }
      }
    }
  • YAML格式

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      AppId:
        Type: String
        Description: Unique ID of the app.
    Resources:
      ExtensionDataSource:
        Type: DATASOURCE::ApiGateway::Apps
        Properties:
          AppId:
            Ref: AppId
    Outputs:
      Apps:
        Description: The information about ApiGateway apps.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - Apps
      AppIds:
        Description: The list of The ApiGateway app ids.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - AppIds