All Products
Search
Document Center

MaxCompute:UpdateProjectBasicMeta

Last Updated:Dec 16, 2024
This topic is generated by a machine translation engine without any human intervention. ALIBABA CLOUD DOES NOT GUARANTEE THE ACCURACY OF MACHINE TRANSLATED CONTENT. To request a human-translated version of this topic or provide feedback on this translation, please include it in the feedback form.

Modifies the basic information about a project.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
odps:UpdateProjectBasicMetaupdate
*Project
acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}
    none
none

Request syntax

PUT /api/v1/projects/{projectName}/meta HTTP/1.1

Request parameters

ParameterTypeRequiredDescriptionExample
projectNamestringYes

Project name.

odps_project
bodyobjectNo

Request body parameters.

commentstringNo

The project description.

BI_Analysis
propertiesobjectNo

The basic properties of the project.

allowFullScanbooleanNo

Indicates whether a full table scan is allowed in the project. A full table scan occupies a large number of resources, which reduces data processing efficiency. By default, the full table scan feature is disabled.

false
enableDecimal2booleanNo

Indicates whether the DECIMAL type of the MaxCompute V2.0 data type edition is enabled.

true
enableTunnelQuotaRoutebooleanNo

Indicates whether the routing of the Tunnel resource group is enabled.

  • true: The data transfer tasks that are submitted by the project by default use the Tunnel resource group that is bound to the project.
  • false: The data transfer tasks that are submitted by the project by default use the Tunnel shared resource group.
true
encryptionobjectNo

The storage encryption properties.

enablebooleanNo

Indicates whether the data encryption feature needs to be enabled for the project. For more information about data encryption, see

Storage Encryption.

true
keystringNo

The type of key that is used for data encryption. You can select MaxCompute Default Key or Bring Your Own Key (BYOK) as the key type. If you select MaxCompute Default Key, the default key that is created by MaxCompute is used.

default
algorithmstringNo

The data encryption algorithm that is supported by the key. Valid values: AES256, AESCTR, and RC4.

AES256
retentionDayslongNo

The retention period for backup data. Unit: days. During the retention period, you can restore data of the version in use to the backup data of any version. Valid values: [0,30]. Default value: 1. The value 0 indicates that the backup feature is disabled.

1
sqlMeteringMaxstringNo

The maximum consumption threshold of a single SQL statement. Formula: Amount of scanned data (GB) × Complexity.

1500
tableLifecycleobjectNo

The table lifecycle properties.

typestringNo

The lifecycle type. Valid values:

  • mandatory: The lifecycle clause is required in a table creation statement.
  • optional: The lifecycle clause is optional in a table creation statement. If you do not configure a lifecycle for a table, the table does not expire.
  • inherit: If you do not configure a lifecycle for a table when you create the table, the value of the odps.table.lifecycle.value parameter is used as the table lifecycle by default.
optional
valuestringNo

The table lifecycle. Unit: days. Valid values: 1 to 37231. Default value: 37231.

37231
timezonestringNo

The time zone that is used by your project. The time zone is the same as the time zone specified by odps.sql.timezone .

Asia/Shanghai
tunnelQuotastringNo

The Data Transmission Service resource group that is bound to the project.

  • Default resource group: The Tunnel shared resource group is used. You cannot use the subscription-based Tunnel resource group for the project. The default resource group is automatically used by the Tunnel service of your project, regardless of the parameter setting.
  • Subscription-based Tunnel resource group: You can use the subscription-based Tunnel resource group for the project.
Default
typeSystemstringNo

The data type edition. Valid values:

  • 1: MaxCompute V1.0 data type edition
  • 2: MaxCompute V2.0 data type edition
  • hive: Hive-compatible data type edition For more information about the differences among the three data type editions, see Data Type Versions.
2.0

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

requestIdstring

The request ID.

0b87b7e216652820458545253e8b0a
httpCodeinteger

The HTTP status code.

  • 1xx: informational response. The request is received and is being processed.
  • 2xx: success. The request is successfully received, understood, and accepted by the server.
  • 3xx: redirection. The request is redirected, and further actions are required to complete the request.
200
errorCodestring

The error code.

OBJECT_NOT_EXIST
errorMsgstring

The error message.

This object does not exist.
datastring

The data returned.

success

Examples

Sample success responses

JSONformat

{
  "requestId": "0b87b7e216652820458545253e8b0a",
  "httpCode": 200,
  "errorCode": "OBJECT_NOT_EXIST",
  "errorMsg": "This object does not exist.\n",
  "data": "success"
}

Error codes

For a list of error codes, visit the Service error codes.