Queries the details of a workspace role.
Operation description
You can call this operation only if you have purchased DataWorks Basic Edition or a later edition.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dataworks:GetProjectRole |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ProjectId |
integer |
Yes |
The ID of the DataWorks workspace. You can log on to the DataWorks console and go to the Workspace Management page to obtain the workspace ID. |
10002 |
| Code |
string |
Yes |
The code of the workspace role. Valid values:
|
role_project_guest |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response. |
||
| RequestId |
string |
The request ID. |
82F28E60-CF48-5EDF-AB25-D806847B97D1 |
| ProjectRole |
object |
The details of the workspace role. |
|
| ProjectId |
integer |
The ID of the DataWorks workspace. Note: A fixed value of -1 is returned for a system role. |
10002 |
| Code |
string |
The code of the workspace role. |
role_project_guest |
| Name |
string |
The name of the workspace role. |
Visitors |
| Type |
string |
The type of the workspace role. Valid values:
|
System |
| ModulePermissions |
array<object> |
The permissions for the modules in the workspace. |
|
|
object |
|||
| ModuleId |
integer |
The module ID. |
2 |
| ModuleName |
string |
The module name. |
HoloStudio |
| PermissionType |
string |
The permission type. |
Read |
Examples
Success response
JSON format
{
"RequestId": "82F28E60-CF48-5EDF-AB25-D806847B97D1",
"ProjectRole": {
"ProjectId": 10002,
"Code": "role_project_guest",
"Name": "Visitors",
"Type": "System",
"ModulePermissions": [
{
"ModuleId": 2,
"ModuleName": "HoloStudio",
"PermissionType": "Read"
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.