调用DescribeFlowCategoryTree接口,获取目录树。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
Action String DescribeFlowCategoryTree

系统规定参数。对于您自行拼凑HTTP或HTTPS URL发起的API请求,该参数为必选参数。取值:DescribeFlowCategoryTree。

ProjectId String FP-ABD24A6163D3****

项目ID。您可以调用ListFlowProject查看项目的ID。

RegionId String cn-hangzhou

地域ID。您可以调用DescribeRegions查看最新的阿里云地域列表。

Type String FLOW

目录类型,取值如下:

  • FLOW(工作流)
  • JOB(作业)
  • ADHOC(临时查询)
Mode String YARN

模型模式,支持如下取值:

  • YARN:将作业包装成一个launcher提交至YARN中执行。
  • LOCAL:作业直接在机器上以进程方式运行。
Keyword String

保留参数。

CategoryId String FC-5BD9575E3462****

作业对应的目录ID。

返回数据

名称 类型 示例值 描述
Data String {"node":{"categoryType":"FOLDER","gmtModified":1540344706000,"name":"FLOW","id":"FC-6B5B5BDAD3EFAB67","gmtCreate":1540344706000,"type":"FLOW","projectId":"FP-7A1018ADE9179EE1","parentId":"root_parent"},"children":[{"node":{"categoryType":"FILE","gmtModified":1542855766000,"name":"flow2","id":"FC-D30AC9A7795F03A1","gmtCreate":1542855766000,"type":"FLOW","projectId":"FP-7A1018ADE9179EE1","parentId":"FC-6B5B5BDAD3EFAB67","objectId":"F-E9DC5533695C989B","objectType":"FLOW"},"children":[],"childrenMap":{}},{"node":{"categoryType":"FILE","gmtModified":1540796206000,"name":"flow-hive","id":"FC-296E3BB9491E39F2","gmtCreate":1540796206000,"type":"FLOW","projectId":"FP-7A1018ADE9179EE1","parentId":"FC-6B5B5BDAD3EFAB67","objectId":"F-35683D0E45734E34","objectType":"FLOW"},"children":[],"childrenMap":{}}]}

结果, 由nodechildren构成的树状结构。

RequestId String 5C5E4A6F-5140-4627-AB81-F3E0D06C5C36

请求ID。

示例

请求示例

http(s)://[Endpoint]/?Action=DescribeFlowCategoryTree
&ProjectId=FP-ABD24A6163D3****
&RegionId=cn-hangzhou
&Type=FLOW
&<公共请求参数>

正常返回示例

XML 格式

<Data>
    <node>
        <categoryType>FOLDER</categoryType>
        <gmtModified>1540344706000</gmtModified>
        <name>FLOW</name>
        <id>FC-6B5B5BDAD3EF****</id>
        <gmtCreate>1540344706000</gmtCreate>
        <type>FLOW</type>
        <projectId>FP-7A1018ADE917****</projectId>
        <parentId>root_parent</parentId>
    </node>
    <children>
        <node>
            <categoryType>FILE</categoryType>
            <gmtModified>1542855766000</gmtModified>
            <name>flow2</name>
            <id>FC-D30AC9A7795F****</id>
            <gmtCreate>1542855766000</gmtCreate>
            <type>FLOW</type>
            <projectId>FP-7A1018ADE917****</projectId>
            <parentId>FC-6B5B5BDAD3EF****</parentId>
            <objectId>F-E9DC5533695C****</objectId>
            <objectType>FLOW</objectType>
        </node>
        <childrenMap/>
    </children>
    <children>
        <node>
            <categoryType>FILE</categoryType>
            <gmtModified>1540796206000</gmtModified>
            <name>flow-hive</name>
            <id>FC-296E3BB9491E****</id>
            <gmtCreate>1540796206000</gmtCreate>
            <type>FLOW</type>
            <projectId>FP-7A1018ADE917****</projectId>
            <parentId>FC-6B5B5BDAD3EF****</parentId>
            <objectId>F-35683D0E4573****</objectId>
            <objectType>FLOW</objectType>
        </node>
        <childrenMap/>
    </children>
    <childrenMap>
        <FC-D30AC9A7795F03A1>
            <node>
                <categoryType>FILE</categoryType>
                <gmtModified>1542855766000</gmtModified>
                <name>flow2</name>
                <id>FC-D30AC9A7795F****</id>
                <gmtCreate>1542855766000</gmtCreate>
                <type>FLOW</type>
                <projectId>FP-7A1018ADE917****</projectId>
                <parentId>FC-6B5B5BDAD3EF****</parentId>
                <objectId>F-E9DC5533695C****</objectId>
                <objectType>FLOW</objectType>
            </node>
            <childrenMap/>
        </FC-D30AC9A7795F03A1>
        <FC-296E3BB9491E39F2>
            <node>
                <categoryType>FILE</categoryType>
                <gmtModified>1540796206000</gmtModified>
                <name>flow-hive</name>
                <id>FC-296E3BB9491E****</id>
                <gmtCreate>1540796206000</gmtCreate>
                <type>FLOW</type>
                <projectId>FP-7A1018ADE917****</projectId>
                <parentId>FC-6B5B5BDAD3EF****</parentId>
                <objectId>F-35683D0E4573****</objectId>
                <objectType>FLOW</objectType>
            </node>
            <childrenMap/>
        </FC-296E3BB9491E39F2>
    </childrenMap>
</Data>
<RequestId>B12F5D42-52C2-47F2-8A2F-4D0D68E64E44</RequestId>

JSON 格式

{
    "Data": {
        "node": {
            "categoryType": "FOLDER",
            "gmtModified": 1540344706000,
            "name": "FLOW",
            "id": "FC-6B5B5BDAD3EF****",
            "gmtCreate": 1540344706000,
            "type": "FLOW",
            "projectId": "FP-7A1018ADE917****",
            "parentId": "root_parent"
        },
        "children": [
            {
                "node": {
                    "categoryType": "FILE",
                    "gmtModified": 1542855766000,
                    "name": "flow2",
                    "id": "FC-D30AC9A7795F****",
                    "gmtCreate": 1542855766000,
                    "type": "FLOW",
                    "projectId": "FP-7A1018ADE917****",
                    "parentId": "FC-6B5B5BDAD3EF****",
                    "objectId": "F-E9DC5533695C****",
                    "objectType": "FLOW"
                },
                "children": [],
                "childrenMap": {}
            },
            {
                "node": {
                    "categoryType": "FILE",
                    "gmtModified": 1540796206000,
                    "name": "flow-hive",
                    "id": "FC-296E3BB9491E****",
                    "gmtCreate": 1540796206000,
                    "type": "FLOW",
                    "projectId": "FP-7A1018ADE917****",
                    "parentId": "FC-6B5B5BDAD3EF****",
                    "objectId": "F-35683D0E4573****",
                    "objectType": "FLOW"
                },
                "children": [],
                "childrenMap": {}
            }
        ],
        "childrenMap": {
            "FC-D30AC9A7795F03A1": {
                "node": {
                    "categoryType": "FILE",
                    "gmtModified": 1542855766000,
                    "name": "flow2",
                    "id": "FC-D30AC9A7795F****",
                    "gmtCreate": 1542855766000,
                    "type": "FLOW",
                    "projectId": "FP-7A1018ADE917****",
                    "parentId": "FC-6B5B5BDAD3EF****",
                    "objectId": "F-E9DC5533695C****",
                    "objectType": "FLOW"
                },
                "children": [],
                "childrenMap": {}
            },
            "FC-296E3BB9491E39F2": {
                "node": {
                    "categoryType": "FILE",
                    "gmtModified": 1540796206000,
                    "name": "flow-hive",
                    "id": "FC-296E3BB9491E****",
                    "gmtCreate": 1540796206000,
                    "type": "FLOW",
                    "projectId": "FP-7A1018ADE917****",
                    "parentId": "FC-6B5B5BDAD3EF****",
                    "objectId": "F-35683D0E4573****",
                    "objectType": "FLOW"
                },
                "children": [],
                "childrenMap": {}
            }
        }
    },
    "RequestId": "B12F5D42-52C2-47F2-8A2F-4D0D68E64E44"
}