全部产品
Search
文档中心

资源编排:DATASOURCE::BPStudio::Application

更新时间:Dec 09, 2024

DATASOURCE::BPStudio::Application类型用于获取应用详情。

语法

{
  "Type": "DATASOURCE::BPStudio::Application",
  "Properties": {
    "ApplicationId": String,
    "RefreshOptions": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

ApplicationId

String

应用 ID。

RefreshOptions

String

当资源栈更新时,数据源资源的刷新策略。

有效值:

  • Never(默认值):更新堆栈时,从不刷新数据源资源。

  • Always:更新堆栈时,始终刷新数据源资源。

返回值

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"
        ]
      }
    }
  }
}