文档首页/ 华为云Astro轻应用/ API参考/ API/ 服务编排/ 查询服务编排 - QueryFlow
更新时间:2025-10-11 GMT+08:00

查询服务编排 - QueryFlow

功能介绍

获取匹配查询条件的服务编排。

URI

GET 华为云Astro轻应用域名/u-route/baas/metadata/v1.0/Flow

请求参数

表1 请求参数

参数

是否必选

参数类型

描述

like

否

String

参数解释:

带上“like=true”,则表示name为模糊匹配,否则为精确匹配。

约束限制:

不涉及。

取值范围:

不涉及。

默认取值:

精确匹配。

name

否

String

参数解释:

服务编排的名称,即在创建服务编排 - CreateFlow中创建服务编排时,请求体中“name”的值。

约束限制:

不涉及。

取值范围:

不涉及。

默认取值:

不涉及。

processType

否

String

参数解释:

服务编排的类型。

约束限制:

不涉及。

取值范围:

  • Autolaunched Flow:自启动Flow,在接口调用后会立即执行服务编排模型定义的逻辑。
  • Event Trigger:事件触发的服务编排,在事件触发时才会开始执行服务编排模型定义的逻辑。当选择该类型时,您需要配置具体的事件以及条件规则。

默认取值:

不涉及。

active

否

String

参数解释:

服务编排是否已启用。

约束限制:

不涉及。

取值范围:

不涉及。

默认取值:

不涉及。

baseline

否

String

参数解释:

是否是系统预置的服务编排。

约束限制:

不涉及。

取值范围:

不涉及。

默认取值:

不涉及。

skip

否

String

参数解释:

带上skip,表示从多少条后开始查找“skip>=0”。

约束限制:

不涉及。

取值范围:

大于等于“0”的整数。

默认取值:

不涉及。

limit

否

String

参数解释:

带上limit,表示每次最大返回记录数“limit>=1”。

约束限制:

不涉及。

取值范围:

大于等于“1”的整数。

默认取值:

不涉及。

响应参数

表2 响应参数

参数

参数类型

描述

resCode

String

参数解释:

返回码。

取值范围:

如果返回“0”代表请求成功,其他错误码说明请参考错误码。

resMsg

String

参数解释:

返回消息。

取值范围:

成功返回“成功”,其他情况会返回具体的错误信息。

result

array

参数解释:

成功会返回匹配条件的服务编排列表。

请求示例

按条件查询服务编排的实例。
GET https://华为云Astro轻应用域名/u-route/baas/metadata/v1.0/Flow?name=testName &processType=Autolaunched Flow&active=true

响应示例

{
    "resCode": "0",
    "resMsg": "成功",
    "result": [
        {
            "boID": null,
            "catalogue": "Out",
            "createdBy": "testUserId",
            "createdBy.__objectType": "User",
            "createdBy.name": "test0xx",
            "createdDate": "2019-08-04 16:21:58",
            "custom": true,
            "description": "Updated Description",
            "id": "000y000000aM8XixTN0S",
            "installedPackage": null,
            "lastModifiedBy": "testUserId",
            "lastModifiedBy.__objectType": "User",
            "lastModifiedBy.name": "test0xx",
            "lastModifiedDate": "2019-08-04 16:22:58",
            "name": "testName",
            "namespace": "testSpace",
            "owner": "testUserId",
            "owner.__objectType": "User",
            "owner.name": "test0xx",
            "protectMode": 0,
            "structMembers": [
                {
                    "createdBy": "testUserId",
                    "createdBy.__objectType": "User",
                    "createdBy.name": "test0xx",
                    "createdDate": "2019-08-04 16:21:58",
                    "currencyFactor": 1,
                    "custom": true,
                    "dataType": "text",
                    "defaultValue": null,
                    "defaultValueType": null,
                    "description": null,
                    "id": "000y000000bM2XixVA0P",
                    "ignoreNull": true,
                    "installedPackage": null,
                    "isCollection": true,
                    "isNested": false,
                    "lastModifiedBy": "testUserId",
                    "lastModifiedBy.__objectType": "User",
                    "lastModifiedBy.name": "test0xx",
                    "lastModifiedDate": "2019-08-04 16:21:58",
                    "name": "testName",
                    "namespace": null,
                    "owner": "testUserId",
                    "owner.__objectType": "User",
                    "owner.name": "test0xx",
                    "parent": "testId",
                    "parent.__objectType": "ExtStruct",
                    "parent.name": "TestName",
                    "picklistValues": null,
                    "protectMode": 0,
                    "required": true,
                    "structType": null
                }
            ]
        }
    ]
}

状态码

状态码请参见状态码。

错误码

错误码请参见错误码。