UpdateProjectStatus
Updates the status of a MaxCompute project.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
odps:UpdateProjectStatus |
update |
*Project
|
None | None |
Request syntax
PUT /api/v1/projects/{projectName}/status HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| projectName |
string |
Yes |
The name of the project. |
odps_project |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body parameters. |
{ "status": "AVAILABLE/ READONLY/FROZEN/DELETING" } |
| status |
string |
No |
The target status of the project. Set this parameter to READONLY to set the project to read-only. Set this parameter to AVAILABLE to restore a user-frozen project. If you specify FROZEN, the project is frozen by the user and the status is recorded as FROZEN_BY_USER. You cannot use this API operation to unfreeze a project that is frozen by the system. |
READONLY |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
PopResult |
||
| requestId |
string |
The request ID. |
0b57ff8516661753149027084eadb8 |
| data |
string |
The returned result. |
success |
Examples
Success response
JSON format
{
"requestId": "0b57ff8516661753149027084eadb8",
"data": "success"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.