Updates the objects in a package and projects in which the package can be installed.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request syntax
PUT /api/v1/projects/{projectName}/packages/{packageName}
Request 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 |
body | string | No | The request body parameters. | { "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 parameters
Examples
Sample success responses
JSON
format
{
"requestId": "0bc1ec4016697018733156991e0888",
"data": "success"
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|
No change history