You can call this operation to view the category tree.

Request parameters

Name Type Required Example Description
Type String Yes FLOW The type of the category. Valid values: FLOW, JOB, and ADHOC.
ProjectId String Yes FP-ABD24A6163D31274 The ID of the project.
RegionId String Yes cn-hangzhou The ID of the region.

Response parameters

Name Type Example Description
RequestId String 5C5E4A6F-5140-4627-AB81-F3E0D06C5C36 The ID of the request.
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":{}}]} The tree structure consisting of the node property and the children property.

Examples

  • Sample requests
    
    /? Action=DescribeFlowCategoryTree
    &ProjectId=FP-ABD24A6163D31274
    &RegionId=cn-hangzhou
    &Type=FLOW
    &<Common request parameters>
  • Successful response examples
    JSON format
    {
    	"code":"200",
    	"data":{
    		"children":[
    			{
    				"children":[],
    				"childrenMap":{},
    				"node":{
    					"categoryType":"FILE",
    					"gmtCreate":1542855766000,
    					"gmtModified":1542855766000,
    					"id":"FC-D30AC9A7795F03A1",
    					"name":"flow2",
    					"objectId":"F-E9DC5533695C989B",
    					"objectType":"FLOW",
    					"parentId":"FC-6B5B5BDAD3EFAB67",
    					"projectId":"FP-7A1018ADE9179EE1",
    					"type":"FLOW"
    				}
    			},
    			{
    				"children":[],
    				"childrenMap":{},
    				"node":{
    					"categoryType":"FILE",
    					"gmtCreate":1540796206000,
    					"gmtModified":1540796206000,
    					"id":"FC-296E3BB9491E39F2",
    					"name":"flow-hive",
    					"objectId":"F-35683D0E45734E34",
    					"objectType":"FLOW",
    					"parentId":"FC-6B5B5BDAD3EFAB67",
    					"projectId":"FP-7A1018ADE9179EE1",
    					"type":"FLOW"
    				}
    			}
    		],
    		"childrenMap":{
    			"FC-296E3BB9491E39F2":{
    				"children":[],
    				"childrenMap":{},
    				"node":{
    					"categoryType":"FILE",
    					"gmtCreate":1540796206000,
    					"gmtModified":1540796206000,
    					"id":"FC-296E3BB9491E39F2",
    					"name":"flow-hive",
    					"objectId":"F-35683D0E45734E34",
    					"objectType":"FLOW",
    					"parentId":"FC-6B5B5BDAD3EFAB67",
    					"projectId":"FP-7A1018ADE9179EE1",
    					"type":"FLOW"
    				}
    			},
    			"FC-D30AC9A7795F03A1":{
    				"children":[],
    				"childrenMap":{},
    				"node":{
    					"categoryType":"FILE",
    					"gmtCreate":1542855766000,
    					"gmtModified":1542855766000,
    					"id":"FC-D30AC9A7795F03A1",
    					"name":"flow2",
    					"objectId":"F-E9DC5533695C989B",
    					"objectType":"FLOW",
    					"parentId":"FC-6B5B5BDAD3EFAB67",
    					"projectId":"FP-7A1018ADE9179EE1",
    					"type":"FLOW"
    				}
    			}
    		},
    		"node":{
    			"categoryType":"FOLDER",
    			"gmtCreate":1540344706000,
    			"gmtModified":1540344706000,
    			"id":"FC-6B5B5BDAD3EFAB67",
    			"name":"FLOW",
    			"parentId":"root_parent",
    			"projectId":"FP-7A1018ADE9179EE1",
    			"type":"FLOW"
    		}
    	},
    	"requestId":"B12F5D42-52C2-47F2-8A2F-4D0D68E64E44",
    	"successResponse":true
    }
  • Error response examples
    JSON format
    {
    	"code":"MissingType",
    	"message":"Type is mandatory for this action.",
    	"requestId":"F5672ABC-43C3-4A82-A0B4-8484BC6A1691",
    	"successResponse":false
    }

Error codes

View error codes.