Queries a list of datasets.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:DescribeAIDBClusterDatasets |
list |
*All Resource
|
None | None |
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. |
cn-beijing |
| DBClusterId |
string |
No |
The instance ID of the PolarDB database for the AI model service. |
pc-2ze88*** |
| DatasetType |
string |
No |
The type of the dataset. Valid values:
|
train |
| TrainMode |
string |
No |
The training mode of the dataset. Valid values:
|
grpo |
| ContinuationToken |
string |
No |
The initial token for this request. This parameter does not take effect when you query a list. |
EFSDF-DF-*** |
| PageSize |
string |
No |
The number of entries per page. Valid values: 30, 50, and 100. Default value: 30. |
30 |
| PageNumber |
string |
No |
The page number. Default value: 1. |
1 |
| DatasetId |
string |
No |
The dataset ID. |
pds-2ze88*** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
2921D843-433A-5FB3-A03B-4EC093B219F8 |
| ContinuationToken |
string |
The ContinuationToken element is included in the response if the ContinuationToken parameter is specified in the request. |
EFSDF-DF-*** |
| RelativeDBClusterId |
string |
The ID of the database management service. |
pc-2ze88*** |
| DatasetType |
string |
The type of the dataset. Valid values:
|
train |
| DatasetMode |
string |
The training mode of the dataset. Valid values:
|
stf |
| NextContinuationToken |
string |
The ContinuationToken for the next listing of files. |
EFSDF-DF-*** |
| IsTruncated |
boolean |
Indicates whether more datasets exist. Valid values:
|
true |
| TotalCount |
string |
The total number of records. This parameter is returned only when you query a list. |
6 |
| PageSize |
string |
The page size. |
30 |
| Datasets |
array<object> |
The datasets. |
|
|
object |
The datasets. |
||
| FileName |
string |
The file name. |
train-***.json |
| Path |
string |
The dataset path. |
polardb_ai/datasets/train/sft/dataset01/train-***.json |
| BucketName |
string |
The bucket to which the dataset belongs. |
pcs-2ze22***-q7*** |
| StorageType |
string |
The storage type. Valid values:
|
Standard |
| Capacity |
string |
The file size. |
2845904 |
| LastModified |
string |
The last modified time. |
2025-11-06T06:50:43Z |
| CreationTime |
string |
The creation time. The time is in ISO 8601 format in UTC (format: YYYY-MM-DDTHH:mm:ssZ). |
2025-11-06T06:50:43Z |
| DatasetId |
string |
The dataset ID. |
pds-2ze88*** |
| DatasetType |
string |
The type of the dataset. Valid values:
|
train |
| TrainMode |
string |
The training mode of the dataset. Valid values:
|
stf |
| TotalRecords |
string |
The total number of records. |
6 |
| PageNumber |
string |
The page number. |
1 |
| DatasetId |
string |
The dataset ID. |
pds-2ze88*** |
| DataServiceId |
string |
The instance ID of the dataset management service. |
pcs-2zeei*** |
| FileCount |
string |
The total number of files. |
6 |
Examples
Success response
JSON format
{
"RequestId": "2921D843-433A-5FB3-A03B-4EC093B219F8",
"ContinuationToken": "EFSDF-DF-***",
"RelativeDBClusterId": "pc-2ze88***",
"DatasetType": "train",
"DatasetMode": "stf",
"NextContinuationToken": "EFSDF-DF-***\n",
"IsTruncated": true,
"TotalCount": "6",
"PageSize": "30",
"Datasets": [
{
"FileName": "train-***.json",
"Path": "polardb_ai/datasets/train/sft/dataset01/train-***.json",
"BucketName": "pcs-2ze22***-q7***",
"StorageType": "Standard\n",
"Capacity": "2845904",
"LastModified": "2025-11-06T06:50:43Z",
"CreationTime": "2025-11-06T06:50:43Z",
"DatasetId": "pds-2ze88***",
"DatasetType": "train",
"TrainMode": "stf"
}
],
"TotalRecords": "6",
"PageNumber": "1",
"DatasetId": "pds-2ze88***",
"DataServiceId": "pcs-2zeei***",
"FileCount": "6"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.