文档首页> Astro轻应用 AstroZero> API参考> API> 元数据> Flow对象的操作> 按照flow_id查询/查询flow_id的入参出参信息
更新时间:2023-06-05 GMT+08:00
分享

按照flow_id查询/查询flow_id的入参出参信息

功能介绍

按flow_id查询服务编排,或查询flow_id的入参出参信息。

URI

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

表1 路径参数

参数

是否必选

参数类型

描述

flow_id

String

服务编排实例的id,可通过调用查询Flow对象接口查看(响应消息中的“id”)。

请求参数

表2 请求参数

参数

是否必选

参数类型

描述

flag

String

分以下四种情况:

  • 不带flag,按Flow_id查询服务编排。
  • 带flag= check,按Flow_id检查服务编排信息。
  • 带flag=Describe,按flow_id查询单个服务编排的入参出参信息。
  • 带flag= dep,按flow_id查询单个服务编排所依赖的对象。

响应参数

表3 响应参数

参数

参数类型

描述

resCode

String

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

resMsg

String

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

result

Object

成功会返回服务编排的信息。

请求示例

按flow_id查询服务编排/查询flow_id的入参出参信息。
GET https://AstroZero域名/u-route/baas/metadata/v1.0/Flow/000y000000aM8XixTN0S

响应示例

{
    "resCode": "0",
    "resMsg": "成功",
    "result": {
        "active": false,
        "catalogue": "",
        "compilerVersion": 0,
        "createdBy": "testUserId",
        "createdBy.__objectType": "User",
        "createdBy.name": "test0xx",
        "createdDate": "2019-08-03 18:19:13",
        "custom": true,
        "description": "",
        "event": "",
        "eventCriteria": "",
        "id": "testId",
        "installedPackage": null,
        "interviewLabel": "",
        "label": "A Brand New Label",
        "lastModifiedBy": "testUserId",
        "lastModifiedBy.__objectType": "User",
        "lastModifiedBy.name": "test0xx",
        "lastModifiedDate": "2019-08-04 17:57:29",
        "localUrl": "",
        "lockUser": "",
        "name": "testName",
        "owner": "testUserId",
        "owner.__objectType": "User",
        "owner.name": "test0xx",
        "private": false,
        "processType": "",
        "protectMode": 0,
        "reserved": 0,
        "startElement": "",
        "status": "Error",
        "usingSLA": null,
        "version": "1.0.1"
    }
}

状态码

状态码请参见状态码

错误码

错误码请参见错误码

分享:

    相关文档

    相关产品