Querying Resource Packages in a Group
Function
This API is used to query resource information of a package group in a Project.
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.
resource_name
No
String
Name of the resource package that is uploaded.
Table 2 query parameter description Parameter
Mandatory
Type
Description
group
Yes
String
Name of the package group returned when the resource package is uploaded.
The following is an example of the URL containing the query parameter:
GET /v2.0/{project_id}/resources/{resource_name}?group={group}
Request
None
Response
| Parameter | Type | Description |
|---|---|---|
| create_time | Long | UNIX time when a resource package is uploaded. The timestamp is expressed in milliseconds. |
| update_time | Long | UNIX time when the uploaded resource package is uploaded. The timestamp is expressed in milliseconds. |
| resource_type | String | Resource type. |
| resource_name | String | Resource name. |
| status | String |
|
| underlying_name | String | Name of the resource packages in a queue. |
| owner | String | Owner of a resource package. |
Examples
- Example request
None
- Example response (successful request)
{ "create_time": 1522055409139, "update_time": 1522228350501, "resource_type": "jar", "resource_name": "luxor-ommanager-dist.tar.gz", "status": "uploading", "underlying_name": "7885d26e-c532-40f3-a755-c82c442f19b8_luxor-ommanager-dist.tar.gz" }
Status Codes
Table 4 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 File Package Group
Next Article: Deleting a Resource Package from a Group
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.