Modifica as informações básicas de um projeto.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
odps:UpdateProjectBasicMeta |
update |
*Project
|
Nenhuma | Nenhuma |
Sintaxe da solicitação
PUT /api/v1/projects/{projectName}/meta HTTP/1.1
Parâmetros de caminho
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| projectName |
string |
Sim |
O nome do projeto. |
odps_project |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| body |
object |
Não |
Os parâmetros do corpo da solicitação. |
{ "status":"", // AVAILABLE: restore the project, FROZEN: freeze the project "comment": "", "properties": {} } - Note: If you do not want to update the comment, set it to null. If you set it to an empty string, the comment will be cleared. The properties key-value pairs are the same as those returned by GetProject. Submit only the properties that need to be modified. Do not submit the full property list every time. To reset a property, set the corresponding value to an empty string. |
| comment |
string |
Não |
A descrição do projeto. |
BI_Analysis |
| properties |
object |
Não |
As propriedades básicas do projeto. |
|
| allowFullScan |
boolean |
Não |
Specifies whether to allow full table scans in the project. Full table scans consume a large amount of resources. To improve processing efficiency, this feature is disabled by default. |
false |
| enableDecimal2 |
boolean |
Não |
Specifies whether to enable the Decimal data type of MaxCompute 2.0 for the project. |
true |
| enableTunnelQuotaRoute |
boolean |
Não |
Specifies whether to enable resource group routing for the data transfer service.
|
true |
| encryption |
object |
Não |
The storage encryption properties. |
|
| enable |
boolean |
Não |
Specifies whether to enable data encryption for the project. For more information about data encryption, see Storage Encryption. |
true |
| key |
string |
Não |
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. |
default |
| algorithm |
string |
Não |
The data encryption algorithm. The supported encryption algorithms include AES256, AESCTR, and RC4. |
AES256 |
| retentionDays |
integer |
Não |
The number of days to retain backup data. During this period, you can restore the current version to any backed-up data version. Valid values: [0, 30]. Default value: 1. A value of 0 indicates that the backup feature is disabled. |
1 |
| sqlMeteringMax |
string |
Não |
The maximum threshold for a single SQL statement consumption. Unit: scan volume (GB) × complexity. |
1500 |
| tableLifecycle |
object |
Não |
The lifecycle properties of tables. |
|
| type |
string |
Não |
The lifecycle type. Valid values:
|
optional |
| value |
string |
Não |
The lifecycle of a table. Unit: days. Valid values: 1 to 37231. Default value: 37231. |
37231 |
| timezone |
string |
Não |
The time zone of the project, which is the |
Asia/Shanghai |
| tunnelQuota |
string |
Não |
The Data Transfer Service resource group bound to the project.
|
Default |
| typeSystem |
string |
Não |
The data type edition. Valid values:
For more information about the differences among the three data type editions, see Data Type Editions. |
2.0 |
| enableDr |
boolean |
Não |
||
| enableDataMasking |
boolean |
Não |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
Os parâmetros de resposta. |
||
| requestId |
string |
O ID da solicitação. |
0b87b7e216652820458545253e8b0a |
| httpCode |
integer |
O código de status HTTP.
|
200 |
| errorCode |
string |
O código de erro. |
OBJECT_NOT_EXIST |
| errorMsg |
string |
A mensagem de erro. |
This object does not exist. |
| data |
string |
O resultado da resposta. |
success |
Exemplos
Resposta de sucesso
JSON formato
{
"requestId": "0b87b7e216652820458545253e8b0a",
"httpCode": 200,
"errorCode": "OBJECT_NOT_EXIST",
"errorMsg": "This object does not exist.\n",
"data": "success"
}
Códigos de erro
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.