This API is used to query resource information of a package group in a Project.
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 |
Yes |
String |
Name of the resource package that is uploaded. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
group |
No |
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}
None
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. |
None
{ "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" }
Table 4 describes the status code.
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 Codes.