Mengembalikan daftar role yang dipaginasi dalam sebuah workspace.
Deskripsi operasi
Fitur ini tersedia di DataWorks Basic Edition dan yang lebih tinggi.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dataworks:ListProjectRoles |
list |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ProjectId |
integer |
Yes |
ID workspace DataWorks. Anda dapat menemukan ID tersebut di halaman Workspace Management pada konsol DataWorks. Parameter ini menentukan workspace DataWorks yang ingin Anda tampilkan daftar role-nya. |
21229 |
| Codes |
array |
No |
Array berisi kode role workspace. |
|
|
string |
No |
Kode dari sebuah role workspace.
|
role_project_guest |
|
| Names |
array |
No |
Array berisi nama role workspace. |
|
|
string |
No |
Nama dari sebuah role workspace. |
Visitors |
|
| Type |
string |
No |
Tipe role workspace.
|
System |
| PageNumber |
integer |
No |
Nomor halaman yang akan dikembalikan. |
1 |
| PageSize |
integer |
No |
Jumlah entri yang dikembalikan per halaman. Nilai default: 10. Nilai maksimum: 100. |
10 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema respons. |
||
| RequestId |
string |
ID permintaan. Gunakan ID ini untuk menemukan log dan memecahkan masalah. |
61649187-0BCF-5E75-8D4B-64FDBEBBB447 |
| PagingInfo |
object |
Informasi paginasi. |
|
| PageSize |
string |
Jumlah entri per halaman. |
10 |
| PageNumber |
string |
Nomor halaman yang dikembalikan. |
1 |
| TotalCount |
string |
Jumlah total entri yang cocok. |
42 |
| ProjectRoles |
array<object> |
Daftar role workspace. |
|
|
array<object> |
Detail dari sebuah role workspace. |
||
| ProjectId |
integer |
The DataWorks workspace ID. |
21229 |
| Code |
string |
The code of the role in the DataWorks workspace. |
role_project_guest |
| Name |
string |
The name of the role. |
Visitors |
| Type |
string |
The type of the role in the DataWorks workspace. |
System |
| ModulePermissions |
array<object> |
||
|
object |
|||
| ModuleId |
integer |
2 |
|
| ModuleName |
string |
HoloStudio |
|
| PermissionType |
string |
Read |
Contoh
Respons sukses
JSONformat
{
"RequestId": "61649187-0BCF-5E75-8D4B-64FDBEBBB447",
"PagingInfo": {
"PageSize": "10",
"PageNumber": "1",
"TotalCount": "42",
"ProjectRoles": [
{
"ProjectId": 21229,
"Code": "role_project_guest\n",
"Name": "Visitors",
"Type": "System",
"ModulePermissions": [
{
"ModuleId": 2,
"ModuleName": "HoloStudio",
"PermissionType": "Read"
}
]
}
]
}
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.