Updates the objects in a package and the list of projects allowed to install the package.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
odps:UpdatePackage |
update |
*Project
|
None | None |
Request syntax
PUT /api/v1/projects/{projectName}/packages/{packageName} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| projectName |
string |
Yes |
The name of the MaxCompute project. |
projectA |
| packageName |
string |
Yes |
The name of the package. |
packageA |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
string |
No |
The request body. |
{ "add": { "allowedProjectList": [ { "label": "2", "project": "project_name" } ], "resourceList": { "table": [ { "name": "table_name", "actions": [ "Describe", "Select" ] }, { "name": "table_name", "actions": [ "Describe", "Select" ] } ], "resource": [ { "name": "", "actions": [] }, { "name": "", "actions": [] } ], "function": [ { "name": "", "actions": [] }, { "name": "", "actions": [] } ] } }, "remove": { "allowedProjectList": [ { "project": "project_name" }, { "project": "project_2" } ], "resourceList": { "table": [ { "name": "table_name" }, { "name": "table_name" } ], "resource": [ { "name": "" }, { "name": "" } ], "function": [ { "name": "" }, { "name": "" } ] } } } |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
PopResult |
||
| requestId |
string |
The request ID. |
0bc1ec4016697018733156991e0888 |
| data |
string |
The response. |
success |
Examples
Success response
JSON format
{
"requestId": "0bc1ec4016697018733156991e0888",
"data": "success"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.