Help Center/ Huawei Cloud Astro Zero/ API Reference/ APIs/ Scripts/ Obtaining Formulas of a Flow Instance
Updated on 2025-05-13 GMT+08:00

Obtaining Formulas of a Flow Instance

Function

This API is used to obtain formulas of a Flow instance. It is a synchronous API. (Invocation result is returned only after the function execution is complete.) These formulas enable the Flow instance to convert variables or expressions and assign values to other variables.

URI

GET Huawei Cloud Astro Zero domain name/u-route/baas/formula/v1.0/functions

Request Parameters

None

Response Parameters

Table 1 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

result object

Explanation

Content returned when the request is successful.

Table 2 result parameters

Parameter

Type

Description

name

String

Explanation

Flow formula name.

Value:

None

category

String

Explanation

Flow formula type.

Value

None

format

String

Explanation

Flow formula invocation format.

Value

None

description

String

Explanation

Flow formula description.

Value

None

Example Request

To obtain the formulas that can be invoked by the Flow instance, send the following request:
GET https://Huawei Cloud Astro Zero domain name/u-route/baas/formula/v1.0/functions

Example Response

{
    "resCode": "0",
    "resMsg": "Success",
    "result": {
        "name": "string",
        "category": "string",
        "format": "string",
        "description": "string"
    }
}

Status Code

See Status Codes.

Error Code

See Error Codes.