Obtains the policy that is attached to a project-level role.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request syntax
GET /api/v1/projects/{projectName}/roles/{roleName}/policy
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
projectName | string | Yes | The name of the MaxCompute project. | projectA |
roleName | string | Yes | The name of the role. | roleA |
Response parameters
Examples
Sample success responses
JSON
format
{
"requestId": "0bc1eeed16675342848904412e08dd",
"data": "{\n \"Statement\": [\n {\n \"Action\": [\n \"odps:*\"\n ],\n \"Effect\": \"Allow\",\n \"Resource\": [\n \"acs:odps:*:projects/{projectname}/authorization/packages\"\n ]\n }\n ],\n \"Version\": \"1\"\n}\n"
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|
No change history