Todos os produtos
Search
Central de documentação

Resource Orchestration Service:ALIYUN::BPStudio::Application

Última atualização: Aug 25, 2026

O recurso ALIYUN::BPStudio::Application cria uma aplicação no BP Studio.

Sintaxe

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

Propriedades

Parâmetro

Tipo

Obrigatório

Atualizável

Descrição

Restrições

ImageUrl

String

Sim

Não

URL da imagem de arquitetura.

Nenhuma

TemplateId

String

Sim

Não

ID do modelo.

Nenhuma

TopoUrl

String

Sim

Não

URL do Object Storage Service (OSS) para o arquivo de topologia (Topo.json).

Nenhuma

ApplicationName

String

Não

Não

Nome da aplicação.

Nenhuma

ResourceGroupId

String

Não

Não

ID do grupo de recursos.

Nenhuma

Valores de retorno

Fn::GetAtt

  • ApplicationName: nome da aplicação.

  • ResourceGroupId: ID do grupo de recursos.

  • ImageUrl: URL da imagem de arquitetura.

  • ApplicationId: ID da aplicação.

  • TemplateId: ID do modelo.

Exemplos

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  ApplicationName:
    Description:
      en: The name of the application.
    Required: false
    Type: String
  ImageUrl:
    Description:
      en: The URL of the architecture image.
    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: The URL of the Topo.json file.
    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: The name of the application.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - ApplicationName
  ImageUrl:
    Description: The URL of the architecture image.
    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 application."
      },
      "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": "The URL of the Topo.json file."
      },
      "Required": true
    },
    "ImageUrl": {
      "Type": "String",
      "Description": {
        "en": "The URL of the architecture image."
      },
      "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": "The name of the application.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "ApplicationName"
        ]
      }
    },
    "ResourceGroupId": {
      "Description": "The ID of the resource group.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "ResourceGroupId"
        ]
      }
    },
    "ImageUrl": {
      "Description": "The URL of the architecture image.",
      "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"
        ]
      }
    }
  }
}