Queries the list of resources in a MaxCompute project.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
odps:ListResources |
list |
*Project
|
None | None |
Request syntax
GET /api/v1/projects/{projectName}/resources HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| projectName |
string |
Yes |
The name of the MaxCompute project. |
projectA |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| schemaName |
string |
No |
The schema name. |
default |
| name |
string |
No |
The resource name. |
res |
| marker |
string |
No |
The pagination token. Results are returned in alphabetical order starting from the first entry after the marker value. |
cHlvZHBzX3VkZl8xMDExNV8xNDU3NDI4NDkzKg== |
| maxItem |
integer |
No |
The maximum number of results to return per page. |
10 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
PopResult<ListResultDTO<ResourceInfo, MarkerPageInfo>> |
||
| requestId |
string |
The request ID. |
0bc3b4ae16685836687916212e7850 |
| data |
object |
The returned data. |
|
| resources |
array<object> |
The list of resources. |
|
|
object |
The resource information. |
||
| displayName |
string |
The display name of the resource. |
res_1 |
| name |
string |
The resource name. |
res_1 |
| owner |
string |
The owner of the resource. |
1265860483008101 |
| type |
string |
The resource type. Valid values:
|
file |
| schema |
string |
The schema to which the resource belongs. |
schemaA |
| lastUpdator |
string |
The user who last updated the resource. |
ALIYUN$xxx@test.aliyunid.com |
| creationTime |
integer |
The time when the resource was created. |
2022-01-29T03:34:09Z |
| lastModifiedTime |
integer |
The time when the resource was last modified. |
2023-04-18T06:15:05Z |
| comment |
string |
The comment on the resource. |
filr类型资源 |
| size |
integer |
The size of the resource. |
10 |
| contentMD5 |
string |
The Base64-encoded 128-bit MD5 hash of the HTTP request body. |
MACiECZtnLiNkNS1v5****=1 |
| marker |
string |
The pagination token for the next page of results. |
ZmN0X21vbnRoX3Rhb2Jhb19pbmRleCE= |
| maxItem |
integer |
The maximum number of results returned per page. |
10 |
Examples
Success response
JSON format
{
"requestId": "0bc3b4ae16685836687916212e7850",
"data": {
"resources": [
{
"displayName": "res_1\n",
"name": "res_1",
"owner": "1265860483008101",
"type": "file",
"schema": "schemaA",
"lastUpdator": "ALIYUN$xxx@test.aliyunid.com",
"creationTime": 0,
"lastModifiedTime": 0,
"comment": "filr类型资源",
"size": 10,
"contentMD5": "MACiECZtnLiNkNS1v5****=1"
}
],
"marker": "ZmN0X21vbnRoX3Rhb2Jhb19pbmRleCE=",
"maxItem": 10
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.