ListSchemas
Queries a list of schemas in a project. You can filter the schemas by name prefix and use a pagination cursor to retrieve subsequent results.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
odps:ListSchemas |
list |
*Project
|
None | None |
Request syntax
GET /api/v1/projects/{projectName}/schemas HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| projectName |
string |
Yes |
The name of the target MaxCompute project. |
example_project |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| prefix |
string |
No |
The prefix used to filter schema names. |
example |
| marker |
string |
No |
The pagination cursor. Pass the marker from the previous response to query the next page. |
example_next_marker |
| maxItem |
integer |
No |
The maximum number of entries to return per page. Default value: 10. |
10 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
PopResult<ListResultDTO<SchemaInfo, MarkerPageInfo>> |
||
| requestId |
string |
The ID of the request. You can use the request ID to query request logs and troubleshoot issues. |
A9E5C7F4-42AC-4FFA-9019-B6B2B57983EF |
| data |
object |
The list of schemas on the current page and the pagination information. |
|
| schemas |
array<object> |
The list of schemas on the current page. |
|
|
object |
|||
| name |
string |
The name of the schema. |
example_schema |
| owner |
string |
The account identifier of the object owner. |
1234567890123456 |
| projectName |
string |
The name of the target MaxCompute project. |
example_project |
| comment |
string |
The comment of the schema. |
Schema containing sample data |
| type |
string |
The type of the schema. |
MANAGED |
| creationTime |
integer |
The creation time of the schema. The value is a UNIX timestamp in milliseconds. |
1793520000000 |
| modifiedTime |
integer |
The last modification time of the schema. The value is a UNIX timestamp in milliseconds. |
1793520000000 |
| marker |
string |
The pagination cursor for the next page. An empty value indicates that there are no more pages for the current query. |
example_next_marker |
| maxItem |
integer |
The number of entries returned on the current page. |
10 |
Examples
Success response
JSON format
{
"requestId": "A9E5C7F4-42AC-4FFA-9019-B6B2B57983EF",
"data": {
"schemas": [
{
"name": "example_schema",
"owner": "1234567890123456",
"projectName": "example_project",
"comment": "Schema containing sample data",
"type": "MANAGED",
"creationTime": 1793520000000,
"modifiedTime": 1793520000000
}
],
"marker": "example_next_marker",
"maxItem": 10
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.