Query the list of workspaces with which a resource group is associated
Operation description
-
DataWorks Basic Edition or a more advanced edition is required to use this feature.
-
Make sure that the service-linked role AliyunServiceRoleForDataWorks has been created before you call this operation.
-
This operation returns only the workspaces that the current caller has access to. Unauthorized workspaces are not included in the response.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ResourceGroupId |
string |
Yes |
The ID of the serverless resource group. |
Serverless_res_group_524257424564736_6831777003**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| Success |
boolean |
Indicates whether the request was successful. |
true |
| ProjectIdList |
array |
The list of workspace IDs. |
|
|
integer |
The workspace ID. |
123 |
|
| RequestId |
string |
The request ID. You can use this ID to troubleshoot issues. |
6A6CBE87-9F91-1323-B680-E7A7065XXXXX |
Examples
Success response
JSON format
{
"Success": true,
"ProjectIdList": [
123
],
"RequestId": "6A6CBE87-9F91-1323-B680-E7A7065XXXXX\n"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.