ListMetaCollections
Queries collection information. Collections include albums and subcategories within albums on the Data Map page. You can call this operation to query collection information by specifying a collection type.
Operation description
Collections include: ALBUM (album collection) and ALBUM_CATEGORY (subcategory within an album).
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dataworks:* |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ParentQualifiedName |
string |
No |
The unique identifier of the parent collection. |
Album.1234 |
| NextToken |
string |
No |
The pagination token that specifies the start point of the current read operation. |
12345 |
| PageSize |
integer |
No |
The number of entries per page. Default value: 10. Maximum value: 100. |
10 |
| Keyword |
string |
No |
The keyword. |
Keyword |
| OrderBy |
string |
No |
The name of the field used for sorting. |
Sort field |
| CollectionType |
string |
Yes |
The type of collection to query. Valid values:
|
ALBUM |
| Creator |
string |
No |
The user ID of the creator. |
1200759642363000 |
| Administrator |
string |
No |
The ID of the collection administrator. |
1200759642363000 |
| Follower |
string |
No |
The ID of the collection follower. |
1200759642363000 |
You can set at most one of the following parameters: Creator, Administrator, and Follower.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response struct. |
||
| RequestId |
string |
The request ID. Used for locating logs and troubleshooting issues. |
E25887B7-579C-54A5-9C4F-83A0DE367DDE |
| Data |
object |
The returned object. |
|
| NextToken |
string |
The token for the next page. |
37ae2053d87d380f28ce0dc0853ca51e |
| CollectionList |
array |
The array object. |
|
| Collection |
The returned collection object. |
||
| Success |
boolean |
Indicates whether the call was successful. Valid values:
|
true |
| ErrorCode |
string |
The error code. |
Invalid.Collection.NotExists |
| ErrorMessage |
string |
The error message. |
The specified parameters are invalid. |
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
Examples
Success response
JSON format
{
"RequestId": "E25887B7-579C-54A5-9C4F-83A0DE367DDE",
"Data": {
"NextToken": "37ae2053d87d380f28ce0dc0853ca51e",
"CollectionList": [
{
"QualifiedName": "album.12334",
"CollectionType": "album",
"Name": "collectionName",
"Comment": "comment",
"OwnerId": "1234444",
"OwnerName": "owner",
"CreateTime": 1668600147617,
"UpdateTime": 1668600148617,
"Level": 1
}
]
},
"Success": true,
"ErrorCode": "Invalid.Collection.NotExists",
"ErrorMessage": "The specified parameters are invalid.",
"HttpStatusCode": 200
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Invalid.Collection.ParamError | msg: %s | |
| 400 | Invalid.User.NotExist | msg: %s | |
| 400 | Invalid.Collection.QualifiedNameError | msg: %s | |
| 400 | Invalid.Collection.CollectionNotCompatible | msg: %s | |
| 400 | Invalid.Collection.EntityOverflow | msg: %s | |
| 400 | Invalid.Collection.NotExist | msg: %s | |
| 400 | Invalid.Collection.AlreadyExist | msg: %s | |
| 400 | Invalid.Collection.UnsupportedOperation | msg: %s | |
| 400 | InvalidParameter.Meta.Missing | msg: %s | |
| 400 | Forbidden.No.Permission | msg: %s | |
| 400 | InvalidParameter.Meta.IllegalData | msg: %s |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.