All Products
Search
Document Center

DataWorks:ListMetaCollections

Last Updated:Nov 21, 2024

Queries information about collections. Collections include data albums that are displayed on the Data Map page and categories that are created in the data albums. You can call this API operation to query collections by type.

Operation description

The type can be ALBUM or ALBUM_CATEGORY. ALBUM indicates data albums. ALBUM_CATEGORY indicates categories.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
ParentQualifiedNamestringNo

The unique identifier of the parent collection.

Album.1234
NextTokenstringNo

The pagination token that is used in the next request to retrieve a new page of results.

12345
PageSizeintegerNo

The number of entries per page. Default value: 10. Maximum value: 100.

10
KeywordstringNo

The keyword.

test
OrderBystringNo

The name of the sorting field.

test
CollectionTypestringYes
  • ALBUM: data album
  • ALBUM_CATEGORY: category in a data album
ALBUM
CreatorstringNo

The ID of the collection creator.

1200759642363000
AdministratorstringNo

The ID of the collection administrator.

1200759642363000
FollowerstringNo

The ID of the collection follower.

1200759642363000

You can configure only one of the Creator, Administrator, and Follower parameters.

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The request ID.

E25887B7-579C-54A5-9C4F-83A0DE367DDE
Dataobject

The returned result.

NextTokenstring

A pagination token. It can be used in the next request to retrieve a new page of results.

37ae2053d87d380f28ce0dc0853ca51e
CollectionListarray

The collections.

CollectionListCollection

The collection.

Successboolean

Indicates whether the request was successful. Valid values:

  • true
  • false
true
ErrorCodestring

The error code.

Invalid.Collection.NotExists
ErrorMessagestring

The error message.

The specified parameters are invalid.
HttpStatusCodeinteger

The HTTP status code.

200

Examples

Sample success responses

JSONformat

{
  "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 codeError codeError message
400Invalid.Collection.ParamErrormsg: %s
400Invalid.User.NotExistmsg: %s
400Invalid.Collection.QualifiedNameErrormsg: %s
400Invalid.Collection.CollectionNotCompatiblemsg: %s
400Invalid.Collection.EntityOverflowmsg: %s
400Invalid.Collection.NotExistmsg: %s
400Invalid.Collection.AlreadyExistmsg: %s
400Invalid.Collection.UnsupportedOperationmsg: %s
400InvalidParameter.Meta.Missingmsg: %s
400Forbidden.No.Permissionmsg: %s
400InvalidParameter.Meta.IllegalDatamsg: %s

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history