全部产品
Search
文档中心

资源编排:ALIYUN::BPStudio::Application

更新时间:Aug 25, 2026

ALIYUN::BPStudio::Application类型用于创建应用。

语法

{
  "Type": "ALIYUN::BPStudio::Application",
  "Properties": {
    "ImageUrl": String,
    "TopoUrl": String,
    "TemplateId": String,
    "ApplicationName": String,
    "ResourceGroupId": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

ImageUrl

String

是

否

数据库中图片地址。

无

TemplateId

String

是

否

模板 ID。

无

TopoUrl

String

是

否

OSS 地址中的 Topo.json 文件。

无

ApplicationName

String

否

否

资源名称。

无

ResourceGroupId

String

否

否

资源组 ID。

无

返回值

Fn::GetAtt

  • ApplicationName:产品应用。

  • ResourceGroupId:资源组 ID。

  • ImageUrl:数据库中图片地址。

  • ApplicationId:应用 ID。

  • TemplateId:模板 ID。

示例

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  ApplicationName:
    Description:
      en: The name of the resource.
    Required: false
    Type: String
  ImageUrl:
    Description:
      en: The Picture in the OSS Storage Address.
    Required: true
    Type: String
  ResourceGroupId:
    AssociationProperty: ALIYUN::ECS::ResourceGroup::ResourceGroupId
    Description:
      en: The ID of the resource group.
    Required: false
    Type: String
  TemplateId:
    Description:
      en: The ID of the template.
    Required: true
    Type: String
  TopoUrl:
    Description:
      en: Topo. Json Files in OSS Address.
    Required: true
    Type: String
Resources:
  ExtensionResource:
    Properties:
      ApplicationName:
        Ref: ApplicationName
      ImageUrl:
        Ref: ImageUrl
      ResourceGroupId:
        Ref: ResourceGroupId
      TemplateId:
        Ref: TemplateId
      TopoUrl:
        Ref: TopoUrl
    Type: ALIYUN::BPStudio::Application
Outputs:
  ApplicationId:
    Description: The ID of the application.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - ApplicationId
  ApplicationName:
    Description: Product Application.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - ApplicationName
  ImageUrl:
    Description: The Picture in the OSS Storage Address.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - ImageUrl
  ResourceGroupId:
    Description: The ID of the resource group.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - ResourceGroupId
  TemplateId:
    Description: The ID of the template.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - TemplateId
                        
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "ApplicationName": {
      "Type": "String",
      "Description": {
        "en": "The name of the resource."
      },
      "Required": false
    },
    "ResourceGroupId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::ResourceGroup::ResourceGroupId",
      "Description": {
        "en": "The ID of the resource group."
      },
      "Required": false
    },
    "TopoUrl": {
      "Type": "String",
      "Description": {
        "en": "Topo. Json Files in OSS Address."
      },
      "Required": true
    },
    "ImageUrl": {
      "Type": "String",
      "Description": {
        "en": "The Picture in the OSS Storage Address."
      },
      "Required": true
    },
    "TemplateId": {
      "Type": "String",
      "Description": {
        "en": "The ID of the template."
      },
      "Required": true
    }
  },
  "Resources": {
    "ExtensionResource": {
      "Type": "ALIYUN::BPStudio::Application",
      "Properties": {
        "ApplicationName": {
          "Ref": "ApplicationName"
        },
        "ResourceGroupId": {
          "Ref": "ResourceGroupId"
        },
        "TopoUrl": {
          "Ref": "TopoUrl"
        },
        "ImageUrl": {
          "Ref": "ImageUrl"
        },
        "TemplateId": {
          "Ref": "TemplateId"
        }
      }
    }
  },
  "Outputs": {
    "ApplicationName": {
      "Description": "Product Application.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "ApplicationName"
        ]
      }
    },
    "ResourceGroupId": {
      "Description": "The ID of the resource group.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "ResourceGroupId"
        ]
      }
    },
    "ImageUrl": {
      "Description": "The Picture in the OSS Storage Address.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "ImageUrl"
        ]
      }
    },
    "ApplicationId": {
      "Description": "The ID of the application.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "ApplicationId"
        ]
      }
    },
    "TemplateId": {
      "Description": "The ID of the template.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "TemplateId"
        ]
      }
    }
  }
}