調用DescribeFlowCategoryTree接口,獲取目錄樹。
調試
您可以在OpenAPI Explorer中直接運行該接口,免去您計算簽名的困擾。運行成功后,OpenAPI Explorer可以自動生成SDK代碼示例。
請求參數
名稱 | 類型 | 是否必選 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | DescribeFlowCategoryTree |
系統規定參數。取值:DescribeFlowCategoryTree。 |
ProjectId | String | 是 | FP-ABD24A6163D3**** |
項目ID。 |
RegionId | String | 是 | cn-hangzhou |
地域ID。 |
Type | String | 是 | FLOW |
目錄類型,取值如下:
|
Mode | String | 否 | FULL |
模型模式,支持如下取值:
|
Keyword | String | 否 | SQL |
檢索關鍵字 |
CategoryId | String | 否 | FC-5BD9575E3462**** |
|
返回數據
名稱 | 類型 | 示例值 | 描述 |
---|---|---|---|
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":{}}]} |
結果, 由node和children構成的樹狀結構。 |
RequestId | String | 5C5E4A6F-5140-4627-AB81-F3E0D06C5C36 |
請求ID。 |
示例
請求示例
http(s)://[Endpoint]/?Action=DescribeFlowCategoryTree
&ProjectId=FP-ABD24A6163D3****
&RegionId=cn-hangzhou
&Type=FLOW
&Mode=FULL
&Keyword=SQL
&CategoryId=FC-5BD9575E3462****
&公共請求參數
正常返回示例
XML
格式
HTTP/1.1 200 OK
Content-Type:application/xml
<DescribeFlowCategoryTreeResponse>
<Data>{"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":{}}]}</Data>
<RequestId>5C5E4A6F-5140-4627-AB81-F3E0D06C5C36</RequestId>
</DescribeFlowCategoryTreeResponse>
JSON
格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"Data" : "{\"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\":{}}]}",
"RequestId" : "5C5E4A6F-5140-4627-AB81-F3E0D06C5C36"
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。
訪問錯誤中心查看更多錯誤碼。