Queries the basic information about a MaxCompute project.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
odps:GetProject |
get |
*Project
|
None | None |
Request syntax
GET /api/v1/projects/{projectName} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| projectName |
string |
Yes |
The project name. |
odps_project |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| verbose |
boolean |
No |
Specifies whether to include additional information, such as securityProperties and superAdmins. |
true |
| withStorageTierInfo |
boolean |
No |
Specifies whether to include additional information, such as properties.storageTierInfo. |
true |
| withQuotaProductType |
boolean |
No |
Specifies whether to include additional information, such as productType. |
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| requestId |
string |
The request ID. |
0b87b7b316643495896551555e855b |
| httpCode |
integer |
The HTTP status code.
|
200 |
| errorCode |
string |
The error code. |
OBJECT_NOT_EXIST |
| errorMsg |
string |
The error message. |
This object does not exist. |
| data |
object |
The data returned. |
|
| 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 computing quota. Quotas are used for resource allocation. If you do not specify a computing quota, jobs that are initiated in the project consume resources from the default quota. For more information, see Use of computing resources. |
os_PayAsYouGoQuota |
| status |
string |
The project status. Valid values:
|
AVAILABLE |
| productType |
string |
The billing method of the default computing quota. |
PayAsYouGo |
| threeTierModel |
boolean |
Specifies whether data storage by schema is supported. MaxCompute supports schemas. A schema is an object in a project. It is used to classify objects such as tables, resources, and user-defined functions (UDFs). You can create multiple schemas in a project. For more information, see Schema operations. |
true |
| costStorage |
string |
The total storage usage. This value indicates the logical storage size after data is collected and compressed for the project. The storage usage is the same as the usage for billing. |
16489027 |
| regionId |
string |
The region ID. |
cn-beijing |
| createdTime |
integer |
The time when the project was created. |
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 retention period of backup data. Unit: days. During this period, you can restore the current data version to any backup version. The value can be an integer from 0 to 30. The default value is 1. A value of 0 indicates that the backup feature is disabled. |
1 |
| allowFullScan |
boolean |
Specifies whether to allow a full table scan in the project. A full table scan consumes a large amount of resources and reduces processing efficiency. By default, this feature is disabled. |
false |
| typeSystem |
string |
The data type edition. Valid values:
For more information, see Data type editions. |
2.0 |
| enableDecimal2 |
boolean |
Specifies whether to enable the DECIMAL data type of MaxCompute V2.0 for the project. |
true |
| sqlMeteringMax |
string |
The maximum consumption threshold of a single SQL statement. Formula: Amount of scanned data (GB) × Complexity. |
1500 |
| tableLifecycle |
object |
The lifecycle properties of the table. |
|
| type |
string |
The lifecycle type. Valid values:
|
optional |
| value |
string |
The lifecycle of the table. Unit: days. The value can be an integer from 1 to 37231. The default value is 37231. |
37231 |
| encryption |
object |
The storage encryption properties. |
|
| enable |
boolean |
Specifies whether to enable data 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 type of key used for data encryption. Valid values include MaxCompute Default Key and Bring-Your-Own-Key (BYOK). MaxCompute Default Key is a default key created within MaxCompute. |
dafault |
| tunnelQuota |
string |
The Data Transmission Service resource group that is bound to the project.
|
Default |
| elderTunnelQuota |
string |
The parent resource group of the Data Transmission Service resource group that is bound to the project. This parameter is for internal use. |
Default_p |
| enableTunnelQuotaRoute |
boolean |
Specifies whether to enable routing for the Data Transmission Service resource group.
|
true |
| storageTierInfo |
object |
The tiered storage information. |
|
| storageTierSize |
object |
The tiered storage information. |
|
| standardSize |
integer |
The Standard storage usage. |
27649172 |
| longTermSize |
integer |
The long-term storage usage. |
21764917 |
| lowFrequencySize |
integer |
The IA storage class usage. |
767693 |
| projectTotalSize |
integer |
The total storage usage. |
56066037 |
| projectBackupSize |
integer |
The backup storage size. |
86672917 |
| fdcQuota |
string |
The quota for external table caching. |
fdc_quota |
| enableFdcCacheForce |
boolean |
Specifies whether to forcefully enable external table caching. |
true |
| enableTieredStorage |
boolean |
Specifies whether to enable tiered storage. |
true |
| tableLifecycleConfig |
object |
The properties of the tiered storage lifecycle rule. After you set these properties, the system automatically triggers the conversion of storage classes based on the rule. |
|
| TierToLongterm |
object |
The identifier for the long-term storage class. |
|
| DaysAfterLastModificationGreaterThan |
integer |
The number of days after the data was last modified. After this period, the storage class is automatically changed. This corresponds to the |
180 |
| DaysAfterLastAccessGreaterThan |
integer |
The number of days after the data was last accessed. After this period, the storage class is automatically changed. This corresponds to the Note
If the LastAccessTime of the table or partition is empty:
|
180 |
| DaysAfterLastTierModificationGreaterThan |
integer |
The number of days after the storage class was last changed. |
1 |
| TierToLowFrequency |
object |
The identifier for the IA storage class. |
|
| DaysAfterLastModificationGreaterThan |
integer |
The number of days after the data was last modified. After this period, the storage class is automatically changed. This corresponds to the |
30 |
| DaysAfterLastAccessGreaterThan |
integer |
The number of days after the data was last accessed. After this period, the storage class is automatically changed. This corresponds to the Note
If the LastAccessTime of the table or partition is empty:
|
30 |
| DaysAfterLastTierModificationGreaterThan |
integer |
The number of days after the storage class was last changed. |
1 |
| externalProjectProperties |
object |
The properties of the external project. |
|
| isExternalCatalogBound |
string |
Specifies whether the project is an external project of data lakehouse 2.0. |
true |
| tableFormat |
string |
||
| warehouse |
string |
||
| foreignServerName |
string |
||
| foreignServerType |
string |
||
| externalCatalogId |
string |
||
| enableAutoMv |
boolean |
||
| autoMvQuotaGb |
integer |
||
| enableDr |
boolean |
||
| superAdmins |
array |
The list of members that are assigned the |
|
|
string |
The account information of a member that is assigned the |
RAM$odps****@aliyunid.com:RAM_USER |
|
| securityProperties |
object |
The permission 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 the creator of an object has access permissions on the object. Default value: true. |
true |
| objectCreatorHasGrantPermission |
boolean |
Specifies whether the creator of an object has grant permissions on the object. Default value: true. |
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 properties of the data protection mechanism. |
|
| exceptionPolicy |
string |
If data protection is enabled for a project, you can configure an exception policy to specify exception or trusted projects. This policy allows specified users to transfer data from a specified object to a specified project. The data protection mechanism does not apply to the scenarios described in the exception policy. |
{ "Version": "1", "Statement": [ { "Effect": "Allow", "Principal": "", "Action": [ "odps:[, , ...]" ], "Resource": "acs:odps:*:", "Condition": { "StringEquals": { "odps:TaskType": [ "" ] } } } ] } |
| protected |
boolean |
Specifies whether to enable the data protection mechanism for the project to prohibit or allow data to flow out of the project. By default, this mechanism is disabled. |
true |
| ipWhiteList |
object |
The IP address whitelist. |
|
| ipList |
string |
The IP address whitelist for access over the Internet or a network that is used to interconnect with other Alibaba Cloud services. Note
If you configure only this IP address whitelist, access over the Internet or the network that is used to interconnect with other Alibaba Cloud services is restricted based on the configuration, and access over a VPC is prohibited. |
10.88.111.3 |
| vpcIpList |
string |
The IP address whitelist for access over a VPC. Note
If you configure only this IP address whitelist, access over a VPC is restricted based on the configuration, and access over the Internet or a network that is used to interconnect with other Alibaba Cloud services is prohibited. |
10.88.111.3 |
| saleTag |
object |
The instance ID and billing method of the default computing quota. |
|
| resourceId |
string |
The instance ID of the default computing quota. |
b7afb7d1-****-****-****-c393669c307b |
| resourceType |
string |
The billing method of the default computing quota. |
PayAsYouGo |
Examples
Success response
JSON format
{
"requestId": "0b87b7b316643495896551555e855b",
"httpCode": 200,
"errorCode": "OBJECT_NOT_EXIST",
"errorMsg": "This object does not exist.",
"data": {
"name": "odps_project",
"owner": "ALIYUN$odps****@aliyunid.com",
"type": "managed",
"comment": "BI_Analysis",
"defaultQuota": "os_PayAsYouGoQuota",
"status": "AVAILABLE",
"productType": "PayAsYouGo",
"threeTierModel": true,
"costStorage": "16489027",
"regionId": "cn-beijing",
"createdTime": 1704380838000,
"properties": {
"timezone": "Asia/Shanghai",
"retentionDays": 1,
"allowFullScan": false,
"typeSystem": "2.0",
"enableDecimal2": true,
"sqlMeteringMax": "1500",
"tableLifecycle": {
"type": "optional",
"value": "37231"
},
"encryption": {
"enable": true,
"algorithm": "AES256",
"key": "dafault"
},
"tunnelQuota": "Default",
"elderTunnelQuota": "Default_p",
"enableTunnelQuotaRoute": true,
"storageTierInfo": {
"storageTierSize": {
"standardSize": 27649172,
"longTermSize": 21764917,
"lowFrequencySize": 767693
},
"projectTotalSize": 56066037,
"projectBackupSize": 86672917
},
"fdcQuota": "fdc_quota",
"enableFdcCacheForce": true,
"enableTieredStorage": true,
"tableLifecycleConfig": {
"TierToLongterm": {
"DaysAfterLastModificationGreaterThan": 180,
"DaysAfterLastAccessGreaterThan": 180,
"DaysAfterLastTierModificationGreaterThan": 1
},
"TierToLowFrequency": {
"DaysAfterLastModificationGreaterThan": 30,
"DaysAfterLastAccessGreaterThan": 30,
"DaysAfterLastTierModificationGreaterThan": 1
}
},
"externalProjectProperties": {
"isExternalCatalogBound": "true",
"tableFormat": "",
"warehouse": "",
"foreignServerName": "",
"foreignServerType": "",
"externalCatalogId": ""
},
"enableAutoMv": false,
"autoMvQuotaGb": 0,
"enableDr": false
},
"superAdmins": [
"RAM$odps****@aliyunid.com:RAM_USER\n"
],
"securityProperties": {
"usingAcl": true,
"usingPolicy": true,
"objectCreatorHasAccessPermission": true,
"objectCreatorHasGrantPermission": true,
"labelSecurity": false,
"enableDownloadPrivilege": false,
"projectProtection": {
"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}",
"protected": true
}
},
"ipWhiteList": {
"ipList": "10.88.111.3",
"vpcIpList": "10.88.111.3"
},
"saleTag": {
"resourceId": "b7afb7d1-****-****-****-c393669c307b",
"resourceType": "PayAsYouGo"
}
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.