Mengkueri daftar ruang kerja DataWorks pada penyewa tempat pengguna berada.
Coba sekarang
Test
RAM authorization
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| PageNumber |
integer |
No |
Nomor halaman. Nilai valid: 1 hingga 100. |
1 |
| PageSize |
integer |
No |
Jumlah entri per halaman. Nilai default: 10. Nilai maksimum: 100. |
10 |
| ResourceManagerResourceGroupId |
string |
No |
ID kelompok sumber daya. |
rg-acfmzbn7pt**** |
| Tags |
array<object> |
No |
Tag yang akan ditambahkan ke ruang kerja. |
|
|
object |
No |
|||
| Key |
string |
No |
The key of tag N to add to the workspace. |
key |
| Value |
string |
No |
The value of tag N to add to the workspace. |
value |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
20658801**** |
| PageResult |
object |
The results that are returned. |
|
| PageNumber |
integer |
The page number. |
1 |
| PageSize |
integer |
The number of entries per page. Default value: 10. Maximum value: 100. |
10 |
| TotalCount |
integer |
The total number of entries returned. |
68 |
| ProjectList |
array<object> |
The DataWorks workspaces. |
|
|
array<object> |
|||
| ProjectStatusCode |
string |
The status code of the workspace. Valid values:
|
AVAILABLE |
| ProjectStatus |
integer |
The status of the workspace. Valid values:
|
0 |
| ProjectName |
string |
The display name of the workspace. |
test_project |
| ProjectIdentifier |
string |
The name of the workspace. |
test_project |
| ProjectId |
integer |
The workspace ID. |
466230 |
| ProjectDescription |
string |
The description of the workspace. |
test_describe |
| ProjectOwnerBaseId |
string |
The ID of the user used by the workspace owner. |
13969939245**** |
| ResourceManagerResourceGroupId |
string |
The resource group ID. |
rg-acfmzbn7**** |
| Tags |
array<object> |
The tags added to the workspace. |
|
|
object |
|||
| Key |
string |
The key of tag N added to the workspace. |
key |
| Value |
string |
The value of tag N added to the workspace. |
value |
| DisableDevelopment |
boolean |
Indicates whether the Development role is disabled. Valid values:
|
true |
| UseProxyOdpsAccount |
boolean |
Indicates whether a proxy account is used to access the MaxCompute compute engine associated with the workspace. Valid values:
|
true |
| TablePrivacyMode |
integer |
Indicates whether the MaxCompute tables in the workspace are visible to the users within a tenant. Valid values:
|
1 |
| IsDefault |
integer |
Indicates whether the workspace is a default workspace. Valid values:
|
1 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "20658801****",
"PageResult": {
"PageNumber": 1,
"PageSize": 10,
"TotalCount": 68,
"ProjectList": [
{
"ProjectStatusCode": "AVAILABLE",
"ProjectStatus": 0,
"ProjectName": "test_project",
"ProjectIdentifier": "test_project",
"ProjectId": 466230,
"ProjectDescription": "test_describe",
"ProjectOwnerBaseId": "13969939245****",
"ResourceManagerResourceGroupId": "rg-acfmzbn7****",
"Tags": [
{
"Key": "key",
"Value": "value"
}
],
"DisableDevelopment": true,
"UseProxyOdpsAccount": true,
"TablePrivacyMode": 1,
"IsDefault": 1
}
]
}
}
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.UserAlreadyInProject | The user already exists in the project. | |
| 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.