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