ListProjects
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. You can view the tenant ID by logging on to the MaxCompute console and choosing Tenant Management > Tenant Properties in the left-side navigation pane. |
5495****3697 |
| region |
string |
No |
The region ID. |
cn-beijing |
| quotaNickName |
string |
No |
The nickname of the quota. You can view the quota nickname by logging on to the MaxCompute console and choosing Workspace > Quota Management in the left-side navigation pane. |
os_PayAsYouGoQuota |
| quotaName |
string |
No |
The name of the quota. The name is automatically generated by the system. You can view the quota name by logging on to the MaxCompute console and choosing Workspace > Quota Management in the left-side navigation pane. |
aliyun_5495***3697 |
| prefix |
string |
No |
The prefix used to filter the returned resource names. The returned resource names must start with the specified prefix. For example, if the prefix is set to a, all returned resource names start with a. |
a |
| marker |
string |
No |
The marker. The results are sorted in alphabetical order and returned starting from the first item after this marker. |
cHlvZHBzX3VkZl8xMDExNV8xNDU3NDI4NDkzKg== |
| maxItem |
integer |
No |
The maximum number of results to return per 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 field by which to sort the results. Currently, only createdTime is supported. Valid values:
|
createdTime |
| sortOrder |
string |
No |
The sort order. This parameter takes effect only when sortBy is specified. Valid values: ASC and DESC. The values are case-insensitive. 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 the Information Schema feature. Valid values:
|
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| requestId |
string |
The request ID. |
0b16399216671970335563173e2340 |
| data |
object |
The response data. |
|
| projects |
array<object> |
The list of projects. |
|
|
array<object> |
The project information. |
||
| name |
string |
The project name. |
odps_project |
| owner |
string |
The account information of the project owner. |
ALIYUN$odps****@aliyunid.com |
| type |
string |
The project type. Valid values:
|
managed |
| comment |
string |
The project description. |
BI_Analysis |
| defaultQuota |
string |
The default compute quota. This quota is used to allocate compute resources. If no compute quota is specified, jobs initiated in this project consume resources from the default quota. For more information about how to use compute resources, see Use of compute resources . |
os_PayAsYouGoQuota |
| status |
string |
The project status. Valid values:
|
AVAILABLE |
| costStorage |
string |
The total storage usage. This value indicates the current storage size of the project and is consistent with the billing metric. It represents the logical storage size after compression at the project level. |
16489027 |
| regionId |
string |
The region ID. |
cn-beijing |
| createdTime |
integer |
The creation time. The value is a UNIX timestamp in milliseconds. |
1704380838000 |
| properties |
object |
The basic properties of the project. |
|
| timezone |
string |
The time zone of the project, which corresponds to the |
Asia/Shanghai |
| retentionDays |
integer |
The retention period of backup data in days. During this period, you can restore the current version to any backed-up data version. Valid values: 0 to 30. Default value: 1. A value of 0 indicates that the backup feature is disabled. |
1 |
| allowFullScan |
boolean |
Specifies whether full table scans are allowed in the project. Full table scans consume a large amount of resources. To improve processing efficiency, this feature is disabled by default. |
false |
| typeSystem |
string |
The data type version. Valid values:
For more information about the differences among the three data type versions, see Data type editions . |
2 |
| enableDecimal2 |
boolean |
Specifies whether the DECIMAL data type of MaxCompute V2.0 is enabled for the project. |
true |
| sqlMeteringMax |
string |
The maximum threshold for the consumption of a single SQL statement. Unit: scanned data volume (GB) × complexity. |
1500 |
| tableLifecycle |
object |
The lifecycle properties of tables. |
|
| type |
string |
The lifecycle type. Valid values:
|
optional |
| value |
string |
The lifecycle of the table. Unit: days. Valid values: 1 to 37231. Default value: 37231. |
37231 |
| encryption |
object |
The storage encryption properties. |
|
| enable |
boolean |
Specifies whether the data encryption feature is enabled for the project. For more information about data encryption, see Storage encryption . |
true |
| algorithm |
string |
The data encryption algorithm. The encryption algorithms supported by the key include AES256, AESCTR, and RC4. |
AES256 |
| key |
string |
The type of the key used for data encryption. Valid values include the default key (MaxCompute Default Key) and bring your own key (BYOK). The default key is a default key created internally by MaxCompute. |
dafault |
| tunnelQuota |
string |
The EPS resource group of the data transfer service attached to the project.
|
Default |
| enableTunnelQuotaRoute |
boolean |
Specifies whether to enable EPS resource group routing for the data transfer service.
|
true |
| externalProjectProperties |
object |
The properties of the external project. |
|
| isExternalCatalogBound |
string |
Specifies whether the project is an external project of Data Lakehouse Solution 2.0 . |
true |
| securityProperties |
object |
The security properties. |
|
| usingAcl |
boolean |
Specifies whether to use the ACL-based access control feature. By default, this feature is enabled. |
true |
| usingPolicy |
boolean |
Specifies whether to use the policy-based access control feature. By default, this feature is enabled. |
true |
| objectCreatorHasAccessPermission |
boolean |
Specifies whether to allow object creators to have access permissions on the objects. By default, this is allowed. |
true |
| objectCreatorHasGrantPermission |
boolean |
Specifies whether to allow object creators to grant permissions on the objects. By default, this is allowed. |
true |
| labelSecurity |
boolean |
Specifies whether to use the label-based access control feature. By default, this feature is disabled. |
false |
| enableDownloadPrivilege |
boolean |
Specifies whether to use the download control feature. By default, this feature is disabled. |
false |
| projectProtection |
object |
The data protection mechanism properties. |
|
| protected |
boolean |
Specifies whether to enable the data protection mechanism for the project to prohibit or allow data streams to flow out of the project. The default enabling status is disabled. |
true |
| exceptionPolicy |
string |
If the data protection mechanism is enabled for the project, you can configure exceptions or trusted projects to allow specified users to transfer data of specified objects to specified projects. All scenarios described in the exception policy can bypass the data protection mechanism. |
{ "Version": "1", "Statement": [ { "Effect": "Allow", "Principal": "", "Action": [ "odps:[, , ...]" ], "Resource": "acs:odps:*:", "Condition": { "StringEquals": { "odps:TaskType": [ "" ] } } } ] } |
| ipWhiteList |
object |
The IP address whitelist. |
|
| ipList |
string |
The IP address whitelist for the Internet and cloud service interconnection network. Note
If you configure only the IP address whitelist for the Internet and cloud service interconnection network, access from the Internet and cloud service interconnection network is restricted by the configuration, and all access from VPCs is prohibited. |
10.88.111.3 |
| vpcIpList |
string |
The IP address whitelist for VPCs. Note
If you configure only the IP address whitelist for VPCs, access from VPCs is restricted by the configuration, and all access from the Internet and cloud service interconnection network is prohibited. |
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 schema-based storage is supported. MaxCompute supports schemas, which are located under projects and used to classify objects such as tables, resources, and UDFs. A project can contain multiple schemas. For more information, see Schema-related operations . Valid values:
|
true |
| marker |
string |
The marker. The results are sorted in alphabetical order and returned starting from the first item after this marker. |
cHlvZHBzX3VkZl8xMDExNV8xNDU3NDI4NDkzKg== |
| maxItem |
integer |
The maximum number of results to return per page. |
10 |
| NextToken |
string |
The pagination token. This operation only supports sequential pagination. A non-empty nextToken value indicates that more data is available. You can use the nextToken value as a parameter to query the next page. |
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.