All Products
Search
Document Center

AnalyticDB:DescribeDocument

Last Updated:Nov 05, 2025
This topic is generated by a machine translation engine without any human intervention. ALIBABA CLOUD DOES NOT GUARANTEE THE ACCURACY OF MACHINE TRANSLATED CONTENT. To request a human-translated version of this topic or provide feedback on this translation, please include it in the feedback form.

Queries the information about a document.

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

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
gpdb:DescribeDocumentcreate
*Document
acs:gpdb:{#regionId}:{#accountId}:document/{#DBInstanceId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
DBInstanceIdstringYes

The cluster ID.

Note You can call the DescribeDBInstances operation to query the information about all AnalyticDB for PostgreSQL instances within a region, including instance IDs.
gp-xxxxxxxxx
NamespacestringNo

The name of the namespace. Default value: public.

Note You can call the CreateNamespace operation to create a namespace and call the ListNamespaces operation to query a list of namespaces.
mynamespace
NamespacePasswordstringYes

The password of the namespace.

Note The value of this parameter is specified when you call the CreateNamespace operation.
testpassword
CollectionstringYes

The name of the document collection.

Note You can call the CreateDocumentCollection operation to create a document collection. and call the ListDocumentCollections operation to query a list of document collections.
document
RegionIdstringYes

The region ID of the instance.

cn-hangzhou
FileNamestringYes

The name of the document.

Note You can call the ListDocuments operation to query a list of documents.
music.txt

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The unique ID of the request.

ABB39CC3-4488-4857-905D-2E4A051D0521
Messagestring

The returned message.

success
Statusstring

The status of the operation. Valid values:

  • success
  • fail
success
FileNamestring

The name of the document.

music.txt
FileExtstring

The extension of the document.

txt
FileVersioninteger

The version of the document. This value increments by 1 each time the same document is uploaded.

1
FileMtimestring

The time when the document was last modified.

2023-11-01 10:01:01.123456
Sourcestring

The source of the document.

OSS
DocumentLoaderstring

The name of the document loader.

RapidOCRPDFLoader
TextSplitterstring

The name of the document splitter.

ChineseRecursiveTextSplitter
FileSizelong

The size of the document. Unit: bytes.

10000
FileMd5string

The MD5 hash of the document.

b8078c9591413550f8963e37e24abcea
DocsCountinteger

The number of chunks into which the document is splitted.

100
FileUrlstring

The download URL of the document. The validity period of the URL is 2 hours.

http://oss.xxx/music.txt
PlainChunkFileUrlstring

The URL of the TEXT that does not contain metadata after chunking. Each line is a chunk. The validity period of the URL is 2 hours.

http://oss.xxx/music_plain_chunk.txt
ChunkFileUrlstring

The URL of the file after chunking. The validity period of the URL is 2 hours. The file is in the JSONL format. Each line is in the {"page_content":"*****", "metadata": {"**":"***","**":"***"} format.

http://oss.xxx/music_chunk.jsonl
DocumentLoaderResultFileUrlstring

The markdown output file that is generated by the ADBPGLoader. The validity period is 2 hours.

http://oss.xxx/adbpg_loader_result.md

Examples

Sample success responses

JSONformat

{
  "RequestId": "ABB39CC3-4488-4857-905D-2E4A051D0521",
  "Message": "success",
  "Status": "success",
  "FileName": "music.txt",
  "FileExt": "txt",
  "FileVersion": 1,
  "FileMtime": "2023-11-01 10:01:01.123456",
  "Source": "OSS\n",
  "DocumentLoader": "RapidOCRPDFLoader",
  "TextSplitter": "ChineseRecursiveTextSplitter",
  "FileSize": 10000,
  "FileMd5": "b8078c9591413550f8963e37e24abcea",
  "DocsCount": 100,
  "FileUrl": "http://oss.xxx/music.txt",
  "PlainChunkFileUrl": "http://oss.xxx/music_plain_chunk.txt",
  "ChunkFileUrl": "http://oss.xxx/music_chunk.jsonl",
  "DocumentLoaderResultFileUrl": "http://oss.xxx/adbpg_loader_result.md"
}

Error codes

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

Change history

Change timeSummary of changesOperation
2024-07-03The response structure of the API has changedView Change Details