DATASOURCE::BPStudio::Application类型用于获取应用详情。
语法
{
  "Type": "DATASOURCE::BPStudio::Application",
  "Properties": {
    "ApplicationId": String,
    "RefreshOptions": String
  }
}属性
| 属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 | 
| ApplicationId | String | 是 | 是 | 应用 ID。 | 无 | 
| RefreshOptions | String | 否 | 是 | 当资源栈更新时,数据源资源的刷新策略。 | 有效值: 
 | 
返回值
Fn::GetAtt
- Status:应用状态。 
- ApplicationName:应用名。 
- ResourceGroupId:资源组ID。 
- ImageUrl:数据库中图片地址。 
- ApplicationId:应用 ID。 
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  ApplicationId:
    Type: String
    Description:
      en: The first ID of the resource.
    Required: true
Resources:
  ExtensionDataSource:
    Type: DATASOURCE::BPStudio::Application
    Properties:
      ApplicationId:
        Ref: ApplicationId
Outputs:
  Status:
    Description: The status of the resource.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Status
  ApplicationName:
    Description: Application name.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - ApplicationName
  ResourceGroupId:
    Description: The ID of the resource group to which the resource belongs.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - ResourceGroupId
  ImageUrl:
    Description: The Picture in the OSS Storage Address.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - ImageUrl
  ApplicationId:
    Description: The first ID of the resource.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - ApplicationId
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "ApplicationId": {
      "Type": "String",
      "Description": {
        "en": "The first ID of the resource."
      },
      "Required": true
    }
  },
  "Resources": {
    "ExtensionDataSource": {
      "Type": "DATASOURCE::BPStudio::Application",
      "Properties": {
        "ApplicationId": {
          "Ref": "ApplicationId"
        }
      }
    }
  },
  "Outputs": {
    "Status": {
      "Description": "The status of the resource.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Status"
        ]
      }
    },
    "ApplicationName": {
      "Description": "Application name.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ApplicationName"
        ]
      }
    },
    "ResourceGroupId": {
      "Description": "The ID of the resource group to which the resource belongs.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ResourceGroupId"
        ]
      }
    },
    "ImageUrl": {
      "Description": "The Picture in the OSS Storage Address.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ImageUrl"
        ]
      }
    },
    "ApplicationId": {
      "Description": "The first ID of the resource.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ApplicationId"
        ]
      }
    }
  }
}
                        该文章对您有帮助吗?