Querying Package Group List
Function
This API is used to query all resources in a project, including groups.
Debugging
You can debug this API in API Explorer.
URI
- URI format
- Parameter description
Table 1 URI parameter description Parameter
Mandatory
Type
Description
project_id
Yes
String
Project ID, which is used for resource isolation. For details about how to obtain its value, see Obtaining a Project ID.
Table 2 query parameter description Parameter
Mandatory
Type
Description
kind
No
String
Specifies the file type.
tags
No
String
Specifies a label for filtering.
Request
None
Response
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| resources | No | Array of Objects | List of names of uploaded user resources. For details about resources, see Table 4. |
| modules | No | Array of Objects | List of built-in resource groups. For details about the groups, see Table 5. |
| groups | No | Array of Objects | Uploaded package groups of a user. |
| total | Yes | Integer | Total number of returned resource packages. |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| create_time | No | Long | UNIX timestamp when a resource package is uploaded. |
| update_time | No | Long | UNIX timestamp when the uploaded resource package is uploaded. |
| resource_type | No | String | Resource type. |
| resource_name | No | String | Resource name. |
| status | No | String |
|
| underlying_name | No | String | Name of the resource package in the queue. |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| module_name | No | String | Module name. |
| module_type | No | String | Module type. |
| status | No | String |
|
| resources | No | Array of Strings | List of names of resource packages contained in the group. |
| description | No | String | Module description. |
| create_time | No | Long | UNIX timestamp when a package group is uploaded. |
| update_time | No | Long | UNIX timestamp when a package group is updated. |
Examples
- Example request
None
- Example response (successful request)
{ "resources": [ { "create_time": 1521532893736, "update_time": 1521552364503, "resource_type": "jar", "resource_name": "luxor-router-1.1.1.jar", "status": "READY", "underlying_name": "3efffb4f-40e9-455e-8b5a-a23b4d355e46_luxor-router-1.1.1.jar" } ], "groups": [ { "group_name": "groupTest", "status": "READY", "resources": [ "part-00000-9dfc17b1-2feb-45c5-b81d-bff533d6ed13.csv.gz", "person.csv" ], "details": [ { "create_time": 1547090015132, "update_time": 1547090015132, "resource_type": "jar", "resource_name": "part-00000-9dfc17b1-2feb-45c5-b81d-bff533d6ed13.csv.gz", "status": "READY", "underlying_name": "db50c4dc-7187-4eb9-a5d0-73ba8102ea5e_part-00000-9dfc17b1-2feb-45c5-b81d-bff533d6ed13.csv.gz" }, { "create_time": 1547091098668, "update_time": 1547091098668, "resource_type": "file", "resource_name": "person.csv", "status": "READY", "underlying_name": "a4243a8c-bca6-4e77-a968-1f3b00217474_person.csv" } ], "create_time": 1547090015131, "update_time": 1547091098666 } ], "modules": [ { "module_name": "gatk", "status": "READY", "resources": [ "gatk.jar", "tika-core-1.18.jar", "s3fs-2.2.2.jar" ], "create_time": 1521532893736, "update_time": 1521552364503 } ] }
Status Codes
Table 6 describes the status code.
Error Codes
If an error occurs when this API is invoked, the system does not return the result similar to the preceding example, but returns the error code and error information. For details, see Error Code.
Last Article: Uploading a Package Group
Next Article: Uploading a JAR Package Group
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.