Queries a list of MaxCompute projects.
Debugging
Authorization information
Request syntax
GET /api/v1/projects
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
tenantId | string | No | The tenant ID. | 549532154333697 |
region | string | No | The ID of the region. | cn-beijing |
quotaNickName | string | No | The name of the quota. | quotaA |
quotaName | string | No | The name of the quota. The value of this parameter is the identifier of the quota in MaxCompute, which differs from the quotaNickname parameter. You can configure the quotaNickname parameter. The system automatically generates a value for the quotaName parameter. This parameter is only used to describe the tunnel quota. | "hsajkdgbkaubh" |
prefix | string | No | Specifies the marker after which the returned list begins. | a |
marker | string | No | The maximum number of entries to return on each page. | cHlvZHBzX3VkZl8xMDExNV8xNDU3NDI4NDkzKg== |
maxItem | integer | No | The maximum number of entries returned per page. | 10 |
saleTags | string | No | The identifier of an object in a MaxCompute quota. This identifier is the same as the identifier in the sales bill of Alibaba Cloud. This parameter is used for tags. | "aaaa-bbbb" |
type | string | No | The project type. Valid values: external and managed. The value external indicates an external project, which is used in the data lakehouse solution. The value managed indicates an internal project. | "managed" |
listSystemCatalog | boolean | No | Specifies whether to list a project named SystemCatalog. Valid values:
| true |
Response parameters
Examples
Sample success responses
JSON
format
{
"requestId": "0b16399216671970335563173e2340",
"data": {
"projects": [
{
"name": "odps_project",
"owner": "1139815775606813",
"type": "managed",
"comment": "maxcompute projects\n",
"defaultQuota": "quotaA",
"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": "SHA1",
"key": "dafault"
},
"tunnelQuota": "quota_tunnel",
"enableTunnelQuotaRoute": 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": "\"aaaa-bbbb\"",
"resourceType": "\"project\""
},
"Tags": [
{
"TagValue": "acceptance test",
"TagKey": "Department"
}
],
"threeTierModel": true
}
],
"marker": "cHlvZHBzX3VkZl8xMDExNV8xNDU3NDI4NDkzKg==",
"maxItem": 10,
"NextToken": "AAAAAV3MpHK1AP0pfERHZN5pu6kvikyUl3ChyRxN+qLPvtOb"
}
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-01-08 | The response structure of the API has changed | View Change Details |
2023-11-14 | The request parameters of the API has changed. The response structure of the API has changed | View Change Details |
2023-09-21 | The response structure of the API has changed | View Change Details |
2023-08-23 | The request parameters of the API has changed | View Change Details |