更新时间:2023-06-05 GMT+08:00
分享

查询Flow对象

功能介绍

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

URI

GET AstroZero域名/u-route/baas/metadata/v1.0/Flow

请求参数

表1 请求参数

参数

是否必选

参数类型

描述

like

String

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

默认为精确匹配。

name

String

服务编排的名称。

processType

String

服务编排的类型,有两种可选“Event Trigger”和“Autolaunched Flow”。

active

String

服务编排是否已启用。

baseline

String

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

skip

String

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

limit

String

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

响应参数

表2 响应参数

参数

参数类型

描述

resCode

String

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

resMsg

String

返回消息,如果成功状态,通常会返回“Success”,其他情况会返回具体的错误信息。

result

array

成功会返回匹配条件的flow列表。

请求示例

按条件查询服务编排的实例。
GET https://AstroZero域名/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
                }
            ]
        }
    ]
}

状态码

状态码请参见状态码

错误码

错误码请参见错误码

分享:

    相关文档

    相关产品