
# 查询服务编排 - QueryFlow
#### 功能介绍
获取匹配查询条件的服务编排。
#### URI
GET *华为云Astro轻应用域名*/u-route/baas/metadata/v1.0/Flow
#### 请求参数
表1请求参数 
| 参数          | 是否必选 | 参数类型   | 描述                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
|:---|:---|:---|:---|
| like        | 否    | String | **参数解释**： 带上"like=true"，则表示name为模糊匹配，否则为精确匹配。 **约束限制**： 不涉及。 **取值范围**： 不涉及。 **默认取值**： 精确匹配。                                                                                                                                                                                                                                                     |
| name        | 否    | String | **参数解释**： 服务编排的名称，即在[创建服务编排 - CreateFlow](https://support.huaweicloud.com/api-astrozero/astrozero_api_0040.html)中创建服务编排时，请求体中"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"代表请求成功，其他错误码说明请参考[错误码（数据面）](https://support.huaweicloud.com/api-astrozero/astrozero_api_0082.html)。 |
| 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
                }
            ]
        }
    ]
}
```
#### 状态码
状态码请参见[状态码](https://support.huaweicloud.com/api-astrozero/astrozero_api_0081.html)。
#### 错误码
错误码请参见[错误码（数据面）](https://support.huaweicloud.com/api-astrozero/astrozero_api_0082.html)。
