Todos os produtos
Search
Central de documentação

Resource Orchestration Service:ALIYUN::MOBI::App

Última atualização: Jun 27, 2026

Crie um aplicativo Mobi.

Sintaxe

{
  "Type": "ALIYUN::MOBI::App",
  "Properties": {
    "AppIcon": String,
    "AppWorkspaceId": String,
    "AppName": String,
    "Template": Map,
    "AppDescription": String,
    "AppType": String
  }
}

Propriedades

Propriedade

Tipo

Obrigatório

Editável

Descrição

Restrição

AppIcon

String

Sim

Sim

Número do ícone do aplicativo.

O sistema atribui um ícone numerado por padrão. Valor padrão: -1.

AppWorkspaceId

String

Sim

Não

ID do workspace.

O aplicativo pertence a um workspace.

AppName

String

Sim

Sim

Nome do aplicativo.

Nenhuma.

Template

Map

Sim

Não

Modelo do aplicativo.

Para obter mais informações, consulte a seção "Propriedades de Template".

AppDescription

String

Não

Sim

Descrição do aplicativo.

Nenhuma.

AppType

String

Não

Não

Tipo do aplicativo.

Valores válidos:

  • Web

  • Copilot

Sintaxe de Template

"Template": {
  "ActualParameters": String,
  "ConnectionsContent": String,
  "TemplateId": String
}

Propriedades de Template

Propriedade

Tipo

Obrigatório

Editável

Descrição

Restrição

ConnectionsContent

String

Sim

Não

Configurações dos conectores.

O aplicativo requer conectores para integrar sistemas e serviços externos.

TemplateId

String

Sim

Não

ID do modelo do aplicativo.

Para visualizar os modelos disponíveis, acesse o marketplace de modelos no console do serviço.

ActualParameters

String

Não

Não

Parâmetros reais.

Nenhuma.

Valores de retorno

Fn::GetAtt

  • AppDescription: descrição do aplicativo.

  • ModifiedTime: hora da última modificação do aplicativo.

  • AppId: ID do aplicativo.

  • CreateTime: hora de criação do aplicativo.

  • AppIcon: número do ícone do aplicativo. O sistema atribui um ícone numerado por padrão. Valor padrão: -1.

  • AppWorkspaceId: ID do workspace. O aplicativo pertence a um workspace.

  • AppType: tipo do aplicativo. Compatível com aplicativos Web e Copilot.

  • AppName: nome do aplicativo.

Exemplos

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  AppDescription:
    Type: String
    Description:
      en: Description of application.
    Required: false
    Default: demo72973
  AppIcon:
    Type: String
    Description:
      en: Application icon label, The system provides an icon by default, which is given in the form of a label. The default value is -1.
    Required: true
    Default: '-1'
  AppWorkspaceId:
    Type: String
    Description:
      en: Workspace ID of application, The application belongs to the workspace.
    Required: true
  AppType:
    Type: String
    Description:
      en: |-
        The application type. Web applications and Copilot applications are supported.
        - **Web**:Web application.
        - **Copilot**:Copilot application.
    AllowedValues:
      - Web
      - Copilot
    Required: false
  AppName:
    Type: String
    Description:
      en: The application name.
    Required: true
    Default: test123
Resources:
  ExtensionResource:
    Type: ALIYUN::MOBI::App
    Properties:
      AppDescription:
        Ref: AppDescription
      AppIcon:
        Ref: AppIcon
      AppWorkspaceId:
        Ref: AppWorkspaceId
      AppType:
        Ref: AppType
      AppName:
        Ref: AppName
      Template:
        ConnectionsContent:
          - name: '273971'
            description: ''
            connectorType:
              kind: mysql
              name: mysql
            folderId: /
            resourceObject:
              version: '1.0'
              id: a3908e03-0c28-4040-8d1c-xxxx
              name: Enterprise Official Template_20241120112036
              description: ''
              type: sql
              subType: mysql
              connectionTemplates:
                dev:
                  host: 192.168.1.1
                  port: 3306
                  database: admin
                  username: root
                  password: password
                production:
                  host: 192.168.1.1
                  port: 3306
                  database: admin
                  username: root
                  password: password
            resourceRequirementId: a3908e03-0c28-4040-8d1c-xxxxx
        TemplateId: 8bd986cc-8e58-42d4-9cc6-xxxxx
Outputs:
  AppDescription:
    Description: Description of application.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - AppDescription
  ModifiedTime:
    Description: Modified time of application.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - ModifiedTime
  AppId:
    Description: Application ID.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - AppId
  CreateTime:
    Description: Create time of application.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - CreateTime
  AppIcon:
    Description: Application icon label, The system provides an icon by default, which is given in the form of a label. The default value is -1.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - AppIcon
  AppWorkspaceId:
    Description: Workspace ID of application, The application belongs to the workspace.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - AppWorkspaceId
  AppType:
    Description: The application type. Web applications and Copilot applications are supported.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - AppType
  AppName:
    Description: The application name.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - AppName
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "AppDescription": {
      "Type": "String",
      "Description": {
        "en": "Description of application."
      },
      "Required": false,
      "Default": "demo72973"
    },
    "AppIcon": {
      "Type": "String",
      "Description": {
        "en": "Application icon label, The system provides an icon by default, which is given in the form of a label. The default value is -1."
      },
      "Required": true,
      "Default": "-1"
    },
    "AppWorkspaceId": {
      "Type": "String",
      "Description": {
        "en": "Workspace ID of application, The application belongs to the workspace."
      },
      "Required": true
    },
    "AppType": {
      "Type": "String",
      "Description": {
        "en": "The application type. Web applications and Copilot applications are supported.\n- **Web**:Web application.\n- **Copilot**:Copilot application."
      },
      "AllowedValues": [
        "Web",
        "Copilot"
      ],
      "Required": false
    },
    "AppName": {
      "Type": "String",
      "Description": {
        "en": "The application name."
      },
      "Required": true,
      "Default": "test123"
    }
  },
  "Resources": {
    "ExtensionResource": {
      "Type": "ALIYUN::MOBI::App",
      "Properties": {
        "AppDescription": {
          "Ref": "AppDescription"
        },
        "AppIcon": {
          "Ref": "AppIcon"
        },
        "AppWorkspaceId": {
          "Ref": "AppWorkspaceId"
        },
        "AppType": {
          "Ref": "AppType"
        },
        "AppName": {
          "Ref": "AppName"
        },
        "Template": {
          "ConnectionsContent": [
            {
              "name": "273971",
              "description": "",
              "connectorType": {
                "kind": "mysql",
                "name": "mysql"
              },
              "folderId": "/",
              "resourceObject": {
                "version": "1.0",
                "id": "a3908e03-0c28-4040-8d1c-xxxx",
                "name": "Enterprise Official Template_20241120112036",
                "description": "",
                "type": "sql",
                "subType": "mysql",
                "connectionTemplates": {
                  "dev": {
                    "host": "192.168.1.1",
                    "port": 3306,
                    "database": "admin",
                    "username": "root",
                    "password": "password"
                  },
                  "production": {
                    "host": "192.168.1.1",
                    "port": 3306,
                    "database": "admin",
                    "username": "root",
                    "password": "password"
                  }
                }
              },
              "resourceRequirementId": "a3908e03-0c28-4040-8d1c-xxxxx"
            }
          ],
          "TemplateId": "8bd986cc-8e58-42d4-9cc6-xxxxx"
        }
      }
    }
  },
  "Outputs": {
    "AppDescription": {
      "Description": "Description of application.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "AppDescription"
        ]
      }
    },
    "ModifiedTime": {
      "Description": "Modified time of application.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "ModifiedTime"
        ]
      }
    },
    "AppId": {
      "Description": "Application ID.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "AppId"
        ]
      }
    },
    "CreateTime": {
      "Description": "Create time of application.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "CreateTime"
        ]
      }
    },
    "AppIcon": {
      "Description": "Application icon label, The system provides an icon by default, which is given in the form of a label. The default value is -1.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "AppIcon"
        ]
      }
    },
    "AppWorkspaceId": {
      "Description": "Workspace ID of application, The application belongs to the workspace.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "AppWorkspaceId"
        ]
      }
    },
    "AppType": {
      "Description": "The application type. Web applications and Copilot applications are supported.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "AppType"
        ]
      }
    },
    "AppName": {
      "Description": "The application name.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "AppName"
        ]
      }
    }
  }
}