Obtains MaxCompute project-level roles.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request syntax
GET /api/v1/projects/{projectName}/roles
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
projectName | string | Yes | The name of the MaxCompute project. | projectA |
Response parameters
Examples
Sample success responses
JSON
format
{
"requestId": "0a06dfe716686526652451361e80ae",
"data": {
"roles": [
{
"name": "roleA",
"type": "admin",
"policy": "{\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}",
"acl": {
"table": [
{
"name": "tableA",
"actions": [
"describe"
]
}
],
"resource": [
{
"name": "resourceA",
"actions": [
"read"
]
}
],
"function": [
{
"name": "functionA",
"actions": [
"read"
]
}
],
"package": [
{
"name": "packageA",
"actions": [
"read"
]
}
],
"project": [
{
"name": "projectA",
"actions": [
"list"
]
}
],
"instance": [
{
"name": "instanceA",
"actions": [
"read"
]
}
]
}
}
]
}
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|
No change history