GetProject
Queries the basic information of 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 (securityProperties, superAdmins). |
true |
| withStorageTierInfo |
boolean |
No |
Specifies whether to include additional information (properties.storageTierInfo). |
true |
| withQuotaProductType |
boolean |
No |
Specifies whether to include additional information (productType). |
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| data |
object |
The response data. |
|
| comment |
string |
The project description. |
BI_Analysis |
| costStorage |
string |
The total storage size. Views the current storage size of the project. This storage size is consistent with the metering standard, which is the logical storage size after data is collected and compressed at the project level. |
16489027 |
| createdTime |
integer |
The creation time. |
1704380838000 |
| defaultQuota |
string |
The default computing quota. Used for compute resource allocation. If no computing quota is specified, jobs initiated by this project consume resources from the default quota. For more information about compute resource usage, see Compute resources - Quota usage . |
os_PayAsYouGoQuota |
| ipWhiteList |
object |
The IP whitelist. |
|
| ipList |
string |
The IP whitelist for the Internet and cloud service interconnection network. Note
If only the Internet and cloud service interconnection network IP whitelist is configured, access from the Internet and cloud service interconnection network is restricted by the configuration, and all VPC network access is prohibited. |
10.88.111.3 |
| vpcIpList |
string |
The IP whitelist for VPC networks. Note
If only the VPC network IP whitelist is configured, VPC network access is restricted by the configuration, and all access from the Internet and cloud service interconnection network is prohibited. |
10.88.111.3 |
| name |
string |
The project name. |
odps_project |
| owner |
string |
The account information of the project owner. |
ALIYUN$odps****@aliyunid.com |
| productType |
string |
The billing method of the default computing quota. |
PayAsYouGo |
| properties |
object |
The basic properties of the project. |
|
| 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 |
| autoMvQuotaGb |
integer |
||
| elderTunnelQuota |
string |
The parent group of the data transfer EPS resource group attached to the project. You can ignore this parameter. |
Default_p |
| enableAutoMv |
boolean |
||
| enableDataMasking |
boolean |
||
| enableDecimal2 |
boolean |
Specifies whether the Decimal data type of MaxCompute 2.0 is enabled for the project. |
true |
| enableDr |
boolean |
||
| enableFdcCacheForce |
boolean |
Specifies whether to forcibly enable external table caching. |
true |
| enableTieredStorage |
boolean |
Specifies whether tiered storage is enabled. |
true |
| enableTunnelQuotaRoute |
boolean |
Specifies whether data transfer EPS resource group routing is enabled.
|
true |
| encryption |
object |
The storage encryption properties. |
|
| algorithm |
string |
The data encryption algorithm. The supported encryption algorithms include AES256, AESCTR, and RC4. |
AES256 |
| enable |
boolean |
Specifies whether data encryption is enabled for the project. For more information about data encryption, see Storage encryption . |
true |
| key |
string |
The type of key used for data encryption, including the default key (MaxCompute Default Key) and Bring Your Own Key (BYOK). The default key (MaxCompute Default Key) is a default key created internally by MaxCompute. |
dafault |
| externalProjectProperties |
object |
The external project properties. |
|
| externalCatalogId |
string |
||
| foreignServerName |
string |
||
| foreignServerType |
string |
||
| isExternalCatalogBound |
string |
Indicates whether this is a Data Lakehouse Solution 2.0 external project. |
true |
| tableFormat |
string |
||
| warehouse |
string |
||
| fdcQuota |
string |
The external table cache quota. |
fdc_quota |
| retentionDays |
integer |
The number of days that backup data is retained. 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 |
| sqlMeteringMax |
string |
The maximum threshold for a single SQL statement. Unit: scan volume (GB) × complexity. |
1500 |
| storageTierInfo |
object |
The tiered storage information. |
|
| projectBackupSize |
integer |
The backup storage size. |
86672917 |
| projectTotalSize |
integer |
The total storage usage. |
56066037 |
| storageTierSize |
object |
The tiered storage information. |
|
| longTermSize |
integer |
The long-term storage usage. |
21764917 |
| lowFrequencySize |
integer |
The low-frequency storage usage. |
767693 |
| standardSize |
integer |
The standard storage usage. |
27649172 |
| 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. Valid values: 1 to 37231. Default value: 37231. |
37231 |
| tableLifecycleConfig |
object |
The tiered storage lifecycle rules properties. After configuration, the system automatically triggers storage tier conversion based on these rules. |
|
| TierToLongterm |
object |
The long-term storage identifier. |
|
| DaysAfterLastAccessGreaterThan |
integer |
The number of days after the last access time of the data before the setting is automatically applied. This corresponds to the Note
If the LastAccessTime of the table or partition is empty:
|
180 |
| DaysAfterLastModificationGreaterThan |
integer |
The number of days after the last modification time of the data before the setting is automatically applied. This corresponds to the |
180 |
| DaysAfterLastTierModificationGreaterThan |
integer |
The number of days since the last storage tier conversion. |
1 |
| TierToLowFrequency |
object |
The low-frequency storage identifier. |
|
| DaysAfterLastAccessGreaterThan |
integer |
The number of days after the last access time of the data before the setting is automatically applied. This corresponds to the Note
If the LastAccessTime of the table or partition is empty:
|
30 |
| DaysAfterLastModificationGreaterThan |
integer |
The number of days after the last modification time of the data before the setting is automatically applied. This corresponds to the |
30 |
| DaysAfterLastTierModificationGreaterThan |
integer |
The number of days since the last storage tier conversion. |
1 |
| timezone |
string |
The project time zone, which is the |
Asia/Shanghai |
| tunnelQuota |
string |
The data transfer service resource group bound to the project.
|
Default |
| typeSystem |
string |
The data type version. Valid values:
For differences among the three data type versions, see Data type editions . |
2.0 |
| regionId |
string |
The region ID. |
cn-beijing |
| saleTag |
object |
The instance ID and billing type of the default computing quota. |
|
| resourceId |
string |
The instance ID of the default computing quota. |
b7afb7d1-****-****-****-c393669c307b |
| resourceType |
string |
The billing type of the default computing quota. |
PayAsYouGo |
| securityProperties |
object |
The security properties. |
|
| enableDownloadPrivilege |
boolean |
Specifies whether the Download permission control feature is enabled. This feature is disabled by default. |
false |
| enableNamespacePrivilege |
boolean |
Specifies whether to enable IAM permissions. |
|
| labelSecurity |
boolean |
Specifies whether the Label-based access control feature is enabled. This feature is disabled by default. |
false |
| objectCreatorHasAccessPermission |
boolean |
Specifies whether object creators are allowed to have access permissions on the objects they create. This is enabled by default. |
true |
| objectCreatorHasGrantPermission |
boolean |
Specifies whether object creators are allowed to have grant permissions on the objects they create. This is enabled by default. |
true |
| projectProtection |
object |
The data protection properties. |
|
| exceptionPolicy |
string |
If project data protection is enabled, you can set exceptions or trusted projects to allow specified users to export data of specified objects to specified projects. All scenarios described in the exception policy can override the data protection mechanism. |
{ "Version": "1", "Statement": [ { "Effect": "Allow", "Principal": "", "Action": [ "odps:[, , ...]" ], "Resource": "acs:odps:*:", "Condition": { "StringEquals": { "odps:TaskType": [ "" ] } } } ] } |
| protected |
boolean |
Indicates the enabling status of the data protection mechanism for the project, which prohibits or allows the data stream to flow out of the project. This is disabled by default. |
true |
| usingAcl |
boolean |
Specifies whether the ACL-based access control feature is enabled. This feature is enabled by default. |
true |
| usingPolicy |
boolean |
Specifies whether the Policy-based access control feature is enabled. This feature is enabled by default. |
true |
| status |
string |
The project status. Valid values:
|
AVAILABLE |
| superAdmins |
array |
The list of members with the |
|
|
string |
The account information of member accounts with the |
RAM$odps****@aliyunid.com:RAM_USER |
|
| threeTierModel |
boolean |
Indicates whether schema-based storage is supported. MaxCompute supports schemas, which are objects under a project and above tables, resources, and UDFs, used to categorize tables, resources, and UDFs. A project can contain multiple schemas. For more information, see Schema operations . |
true |
| type |
string |
The project type. Valid values:
|
managed |
| errorCode |
string |
The error code. |
OBJECT_NOT_EXIST |
| errorMsg |
string |
The error message. |
This object does not exist. |
| httpCode |
integer |
The HTTP status code.
|
200 |
| requestId |
string |
The request ID. |
0b87b7b316643495896551555e855b |
Examples
Success response
JSON format
{
"data": {
"comment": "BI_Analysis",
"costStorage": "16489027",
"createdTime": 1704380838000,
"defaultQuota": "os_PayAsYouGoQuota",
"ipWhiteList": {
"ipList": "10.88.111.3",
"vpcIpList": "10.88.111.3"
},
"name": "odps_project",
"owner": "ALIYUN$odps****@aliyunid.com",
"productType": "PayAsYouGo",
"properties": {
"allowFullScan": false,
"autoMvQuotaGb": 0,
"elderTunnelQuota": "Default_p",
"enableAutoMv": false,
"enableDataMasking": false,
"enableDecimal2": true,
"enableDr": false,
"enableFdcCacheForce": true,
"enableTieredStorage": true,
"enableTunnelQuotaRoute": true,
"encryption": {
"algorithm": "AES256",
"enable": true,
"key": "dafault"
},
"externalProjectProperties": {
"externalCatalogId": "",
"foreignServerName": "",
"foreignServerType": "",
"isExternalCatalogBound": "true",
"tableFormat": "",
"warehouse": ""
},
"fdcQuota": "fdc_quota",
"retentionDays": 1,
"sqlMeteringMax": "1500",
"storageTierInfo": {
"projectBackupSize": 86672917,
"projectTotalSize": 56066037,
"storageTierSize": {
"longTermSize": 21764917,
"lowFrequencySize": 767693,
"standardSize": 27649172
}
},
"tableLifecycle": {
"type": "optional",
"value": "37231"
},
"tableLifecycleConfig": {
"TierToLongterm": {
"DaysAfterLastAccessGreaterThan": 180,
"DaysAfterLastModificationGreaterThan": 180,
"DaysAfterLastTierModificationGreaterThan": 1
},
"TierToLowFrequency": {
"DaysAfterLastAccessGreaterThan": 30,
"DaysAfterLastModificationGreaterThan": 30,
"DaysAfterLastTierModificationGreaterThan": 1
}
},
"timezone": "Asia/Shanghai",
"tunnelQuota": "Default",
"typeSystem": "2.0"
},
"regionId": "cn-beijing",
"saleTag": {
"resourceId": "b7afb7d1-****-****-****-c393669c307b",
"resourceType": "PayAsYouGo"
},
"securityProperties": {
"enableDownloadPrivilege": false,
"enableNamespacePrivilege": false,
"labelSecurity": false,
"objectCreatorHasAccessPermission": true,
"objectCreatorHasGrantPermission": true,
"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
},
"usingAcl": true,
"usingPolicy": true
},
"status": "AVAILABLE",
"superAdmins": [
"RAM$odps****@aliyunid.com:RAM_USER\n"
],
"threeTierModel": true,
"type": "managed"
},
"errorCode": "OBJECT_NOT_EXIST",
"errorMsg": "This object does not exist.",
"httpCode": 200,
"requestId": "0b87b7b316643495896551555e855b"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.