Updated on 2025-08-28 GMT+08:00

Querying an Application by ID

Function

This API is used to query application details based on the application ID.

URI

GET Huawei Cloud Astro Zero domain name/u-route/baas/metadata/v1.0/Application/{app_id}

Table 1 Parameters

Parameter

Mandatory

Type

Description

app_Id

Yes

String

Explanation

Application ID, which can be queried by invoking the API of Listing All Applications (id in the response message).

Constraints

None

Value

None

Default value

None

Request Parameters

None

Response Parameters

Table 2 Response parameters

Parameter

Type

Description

resCode

String

Explanation

Return code.

Value

If the request is successful, 0 is returned. For details about other error codes, see Error Codes.

resMsg

String

Explanation

Message returned.

Value

If the request is successful, "Success" is returned. In other cases, an error message is returned.

result

Object

Explanation

If the request is successful, the application details are returned. For details, see Table 3.

Table 3 Main properties of each object in result

Parameter

Type

Description

id

String

Explanation

Application ID.

Value

None

label

String

Explanation

Display name of an application.

Value

None

name

String

Explanation

Unique ID of the application in the system.

Value

None

description

String

Explanation

Description of an application.

Value

None

type

String

Explanation

Application type.

Value

  • NoCode Application: no-code application.
  • Custom Application: low-code application.

logo

String

Explanation

Application icon. You can enter the image address (the prefix is restricted).

Value

The prefix value range is as follows:

"/u-route/baas/file/v1.0/media",
"/besBaas/baas/studio/img",
"/img",
"/besBaas/images",
"nc-icon",
"/nocode/service/file/v1.0/media",
"menuicon",
"/lowcode/home/img"

properties

String

Explanation

Application properties.

Value

None

active

Boolean

Explanation

An application is enabled.

Value

None

createdBy

String

Explanation

Application creator ID.

Value

None

createdDate

String

Explanation

Date when an application is created.

Value

None

lastModifiedBy

String

Explanation

ID of the last person who modified the application.

Value

None

lastModifiedDate

String

Explanation

Date when the application is last modified.

Value

None

isIncremental

Boolean

Explanation

The application package is an incremental package.

Value

None

defaultTabId

String

Explanation

Default navigation bar ID of an application.

Value

None

owner

String

Explanation

ID of the application owner. Generally, the owner is the creator.

Value

None

protectMode

Integer

Explanation

Application protection mode.

Value

  • 0: Unprotected.
  • 1: Protected. The application cannot be modified

visibility

Integer

Explanation

Application visibility.

Value

  • 0: Public data, which is visible to external systems.
  • 1: Private data, which is invisible to external systems.

Example Request

To query the detailed information about the application based on the application ID 000f000000g3Yhaz5ipE, send the following request:

GET https://Huawei Cloud Astro Zero domain name/u-route/baas/metadata/v1.0/Application/000f000000g3Yhaz5ipE

Example Response

{
 "resCode": "0",
	"resMsg": "Success",
 "result": {
  "active": true,
  
  
  
  "createdBy": "10gd000000bZHUAq7Pea",
  
  "createdDate": "2020-12-28 09:33:29",
  
  "defaultTabId": "001g0000000000000000",
  
  "description": "",
  "id": "000f000000g3Yhaz5ipE",
  "isIncremental": false,
		"label": "Mobile phone sales statistics",
  "lastModifiedBy": "10gd000000bZHUAq7Pea",
  "lastModifiedDate": "2021-01-15 15:22:55",
  "logo": "",
  "name": "CHAME__phoneSales",
  "owner": "10gd000000bZHUAq7Pea",
  "properties": "{\"version\":\"180828\",\"skava\":{\"id\":\"001S000000g3YhZ1bP9c\",\"websiteId\":\"517297\",\"name\":\"CHAME__phoneSales_0000000000Z16qkNc1Uv\"},\"packageId\":\"003G000000g3YhapixX6\"}",
  "protectMode": 0,
  "type": "Custom Application",
  "visibility": 0
 }
}

Status Code

See Status Codes.

Error Code

See Error Codes.