All Products
Search
Document Center

DataWorks:ListProjectRoles

Last Updated:Jun 11, 2026

Mengkueri daftar peran di ruang kerja DataWorks.

Coba sekarang

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tidak ada otorisasi untuk operasi ini. Jika Anda mengalami masalah saat menjalankan operasi ini, hubungi dukungan teknis.

Parameter permintaan

Parameter

Type

Required

Description

Example

ProjectId

integer

Yes

ID ruang kerja DataWorks.

27

Elemen respons

Element

Type

Description

Example

object

The response parameters.

RequestId

string

The request ID.

1AFAE64E-D1BE-432B-A9****

ProjectRoleList

array<object>

The roles in the DataWorks workspace.

object

ProjectRoleId

integer

The ID of the role in the DataWorks workspace.

1

ProjectRoleType

string

The type of the role in the DataWorks workspace.

0

ProjectRoleName

string

The name of the role in the DataWorks workspace.

访客

ProjectRoleCode

string

The code of the role in the DataWorks workspace.

role_project_guest

Contoh

Respons sukses

JSONformat

{
  "RequestId": "1AFAE64E-D1BE-432B-A9****",
  "ProjectRoleList": [
    {
      "ProjectRoleId": 1,
      "ProjectRoleType": "0",
      "ProjectRoleName": "访客",
      "ProjectRoleCode": "role_project_guest"
    }
  ]
}

Kode kesalahan

HTTP status code

Error code

Error message

Description

400 Invalid.Tenant.ConnectionNotExists The connection does not exist.
400 Invalid.Tenant.ProjectNotExists The project does not exist.
400 Invalid.Tenant.UserNotInProject The user is not in the project.
403 Invalid.Tenant.UserIsNotProjectOwnerOrAdmin The user is not a project administrator or owner.
403 Invalid.Tenant.UserNotInTenant The user is not in tenant.

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.