Retrieves a list of MaxCompute projects.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
odps:ListProjects |
list |
Project
|
None | None |
Request syntax
GET /api/v1/projects HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| tenantId |
string |
No |
The tenant ID. To obtain the ID, log in to the MaxCompute console and select Tenant Management > Tenant Properties from the navigation pane on the left. |
5495****3697 |
| region |
string |
No |
The region ID. |
cn-beijing |
| quotaNickName |
string |
No |
The quota nickname. To obtain the quota nickname, log in to the MaxCompute console and select Workspace > Quota Management from the navigation pane on the left. |
os_PayAsYouGoQuota |
| quotaName |
string |
No |
The quota name. The system automatically generates this name. To obtain the quota name, log in to the MaxCompute console and select Workspace > Quota Management from the navigation pane on the left. |
aliyun_5495***3697 |
| prefix |
string |
No |
The prefix of the resource names to query. For example, if you specify |
a |
| marker |
string |
No |
The token that specifies the starting point of the query. The results are returned in alphabetical order, starting from the entry that immediately follows the marker. |
cHlvZHBzX3VkZl8xMDExNV8xNDU3NDI4NDkzKg== |
| maxItem |
integer |
No |
The maximum number of entries to return on each page. Default value: 10. |
10 |
| saleTags |
string |
No |
The instance ID and billing method of the default compute quota. |
{ "resourceId": "b7afb7d1-****-****-****-c393669c307b", "resourceType": "PayAsYouGo" } |
| type |
string |
No |
The project type. Valid values:
|
managed |
| sortBy |
string |
No |
The sort field. The only supported value is Valid values:
|
createdTime |
| sortOrder |
string |
No |
The sort order. This parameter takes effect only when Valid values:
|
DESC |
| listSystemCatalog |
boolean |
No |
Specifies whether to list the built-in SYSTEM_CATALOG project. This project provides information such as project metadata and usage history. For more information, see Information Schema. Valid values:
|
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| requestId |
string |
The request ID. |
0b16399216671970335563173e2340 |
| data |
object |
The returned data. |
|
| projects |
array<object> |
The list of projects. |
|
|
array<object> |
The project details. |
||
| name |
string |
The name of the project. |
odps_project |
| owner |
string |
The owner of the project. |
ALIYUN$odps****@aliyunid.com |
| type |
string |
The type of the project. Valid values:
|
managed |
| comment |
string |
The description of the project. |
BI_Analysis |
| defaultQuota |
string |
The default compute quota. If you do not specify a quota for a job, the job consumes computing resources from this default quota. For more information about how to use computing resources, see Use of computing resources. |
os_PayAsYouGoQuota |
| status |
string |
The status of the project. Valid values:
|
AVAILABLE |
| costStorage |
string |
The total storage usage of the project, which represents the compressed, logical data size used for metering. |
16489027 |
| regionId |
string |
The region ID. |
cn-beijing |
| createdTime |
integer |
The time when the project was created, as a Unix timestamp in milliseconds. |
1704380838000 |
| properties |
object |
The basic properties of the project. |
|
| timezone |
string |
The time zone of the project. This parameter corresponds to the |
Asia/Shanghai |
| retentionDays |
integer |
The number of retention days for backup data. You can restore data to any backup version that is created within the retention period. Valid values: |
1 |
| allowFullScan |
boolean |
Specifies whether to allow a full table scan in the project. This feature is disabled by default because a full table scan can consume a large amount of computing resources. |
false |
| typeSystem |
string |
The data type version. Valid values:
For more information about the differences between the data type versions, see Data type versions. |
2 |
| enableDecimal2 |
boolean |
Specifies whether to enable the MaxCompute 2.0 Decimal data type in the project. |
true |
| sqlMeteringMax |
string |
The maximum metered cost for a single SQL statement. The cost is calculated by using the formula: (scanned data in GB) × (complexity). |
1500 |
| tableLifecycle |
object |
The table lifecycle properties. |
|
| type |
string |
The type of the lifecycle. Valid values:
|
optional |
| value |
string |
The lifecycle of the table, in days. Valid values: |
37231 |
| encryption |
object |
The storage encryption properties. |
|
| enable |
boolean |
Specifies whether to enable storage encryption for the project. For more information, see Storage encryption. |
true |
| algorithm |
string |
The data encryption algorithm. Supported algorithms include AES256, AESCTR, and RC4. |
AES256 |
| key |
string |
The key for data encryption. You can use the default MaxCompute-managed key or a custom key with the Bring Your Own Key (BYOK) feature. |
dafault |
| tunnelQuota |
string |
The Data Transmission Service resource group that is bound to the project.
|
Default |
| enableTunnelQuotaRoute |
boolean |
Specifies whether to enable routing for the Data Transmission Service resource group.
|
true |
| externalProjectProperties |
object |
The properties of the external project. |
|
| isExternalCatalogBound |
string |
Specifies whether the project is an external project for Integrated Lakehouse. |
true |
| securityProperties |
object |
The security-related properties. |
|
| usingAcl |
boolean |
Specifies whether to enable ACL-based access control. Default value: |
true |
| usingPolicy |
boolean |
Specifies whether to enable policy-based access control. Default value: |
true |
| objectCreatorHasAccessPermission |
boolean |
Specifies whether the creator of an object can access it. Default value: |
true |
| objectCreatorHasGrantPermission |
boolean |
Specifies whether the creator of an object can grant other users permissions on it. Default value: |
true |
| labelSecurity |
boolean |
Specifies whether to enable label-based access control. Default value: |
false |
| enableDownloadPrivilege |
boolean |
Specifies whether to enable download control. Default value: |
false |
| projectProtection |
object |
The project data protection properties. |
|
| protected |
boolean |
Specifies whether to enable project data protection to prevent data from being exported from the project. Default value: |
true |
| exceptionPolicy |
string |
If project data protection is enabled, you can configure an exception policy. This policy allows specified users to export data from specified objects to trusted projects, bypassing the data protection mechanism. |
{ "Version": "1", "Statement": [ { "Effect": "Allow", "Principal": "", "Action": [ "odps:[, , ...]" ], "Resource": "acs:odps:*:", "Condition": { "StringEquals": { "odps:TaskType": [ "" ] } } } ] } |
| ipWhiteList |
object |
The IP whitelist. |
|
| ipList |
string |
The IP whitelist for access over the public network and from other Alibaba Cloud services. Note
If you configure only this IP whitelist, access over the public network and from other Alibaba Cloud services is restricted based on the whitelist, and all access from VPCs is denied. |
10.88.111.3 |
| vpcIpList |
string |
The IP whitelist for access from VPCs. Note
If you configure only the VPC IP whitelist, access from VPCs is restricted based on the whitelist, and all access over the public network and from other Alibaba Cloud services is denied. |
10.88.111.3 |
| saleTag |
object |
The instance ID and billing method of the default compute quota. |
|
| resourceId |
string |
The instance ID of the default compute quota. |
b7afb7d1-****-****-****-c393669c307b |
| resourceType |
string |
The billing method of the default compute quota. |
PayAsYouGo |
| threeTierModel |
boolean |
Specifies whether the project uses a three-tier model (project > schema > object). In this model, schemas are used within a project to organize objects such as tables, resources, and user-defined functions (UDFs). For more information, see Schema operations. Valid values:
|
true |
| marker |
string |
A pagination marker used to retrieve the next page of results. This parameter is returned when the response is truncated. |
cHlvZHBzX3VkZl8xMDExNV8xNDU3NDI4NDkzKg== |
| maxItem |
integer |
The maximum number of entries returned per page. |
10 |
| NextToken |
string |
The token for retrieving the next page of results. If this parameter is empty, all results have been returned. |
AAAAAV3MpHK1AP0pfERHZN5pu6kvikyUl3ChyRxN+qLPvtOb |
Examples
Success response
JSON format
{
"requestId": "0b16399216671970335563173e2340",
"data": {
"projects": [
{
"name": "odps_project",
"owner": "ALIYUN$odps****@aliyunid.com\n",
"type": "managed",
"comment": "BI_Analysis",
"defaultQuota": "os_PayAsYouGoQuota\n",
"status": "AVAILABLE",
"costStorage": "16489027",
"regionId": "cn-beijing",
"createdTime": 1704380838000,
"properties": {
"timezone": "Asia/Shanghai\n",
"retentionDays": 1,
"allowFullScan": false,
"typeSystem": "2",
"enableDecimal2": true,
"sqlMeteringMax": "1500",
"tableLifecycle": {
"type": "optional",
"value": "37231\n"
},
"encryption": {
"enable": true,
"algorithm": "AES256",
"key": "dafault"
},
"tunnelQuota": "Default",
"enableTunnelQuotaRoute": true,
"externalProjectProperties": {
"isExternalCatalogBound": "true"
}
},
"securityProperties": {
"usingAcl": true,
"usingPolicy": true,
"objectCreatorHasAccessPermission": true,
"objectCreatorHasGrantPermission": true,
"labelSecurity": false,
"enableDownloadPrivilege": false,
"projectProtection": {
"protected": true,
"exceptionPolicy": "{\n \"Version\": \"1\",\n \"Statement\": [\n {\n \"Effect\": \"Allow\",\n \"Principal\": \"\",\n \"Action\": [\n \"odps:[, , ...]\"\n ],\n \"Resource\": \"acs:odps:*:\",\n \"Condition\": {\n \"StringEquals\": {\n \"odps:TaskType\": [\n \"\"\n ]\n }\n }\n }\n ]\n}"
}
},
"ipWhiteList": {
"ipList": "10.88.111.3",
"vpcIpList": "10.88.111.3"
},
"saleTag": {
"resourceId": "b7afb7d1-****-****-****-c393669c307b\n",
"resourceType": "PayAsYouGo\n"
},
"threeTierModel": true
}
],
"marker": "cHlvZHBzX3VkZl8xMDExNV8xNDU3NDI4NDkzKg==",
"maxItem": 10,
"NextToken": "AAAAAV3MpHK1AP0pfERHZN5pu6kvikyUl3ChyRxN+qLPvtOb"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.