Queries the list of computing resources that meet the specified business information.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- For mandatory resource types, indicate with a prefix of * .
- If the permissions cannot be granted at the resource level,
All Resourcesis used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
| Operation | Access level | Resource type | Condition key | Associated operation |
|---|---|---|---|---|
| dataworks:ListComputeResources | get | *All Resources * |
| none |
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| ProjectId | long | Yes | The ID of the DataWorks workspace. | 21229 |
| Name | string | No | The name of the computing resource. | category name |
| Types | array | No | The filter for computing resource types. You can configure multiple types for filtering. | |
| string | No | The type of the computing resource. | hologres | |
| EnvType | string | No | The environment type of the computing resource. Valid values:
| Dev |
| PageNumber | integer | No | The page number to query. The default value is 1, which indicates the first page. | 1 |
| PageSize | integer | No | The number of entries per page. The default value is 10, and the maximum value is 100. | 10 |
| SortBy | string | No | The field to sort the computing resource list by. Supported fields include name, creation time, and computing resource ID.
Default value: CreateTime | CreateTimeWithDefaultFirst |
| Order | string | No | The sort direction of the computing resource list. Valid values:
Default value: Desc | Asc |
Response parameters
Examples
Sample success responses
JSONformat
{
"RequestId": "7C352CB7-CD88-50CF-9D0D-E81BDF02XXXX",
"PagingInfo": {
"TotalCount": 100,
"PageSize": 10,
"PageNumber": 1,
"ComputeResources": [
{
"Name": "cal_all_vemg_workflow_parallel",
"Type": "hologres",
"ComputeResource": [
{
"Id": 8649832502405359000,
"ConnectionProperties": "{\\n \\\"clusterIdentifier\\\": \\\"c-da123456\\\",\\n \\\"database\\\": \\\"testdb\\\",\\n \\\"loginMode\\\":\\\"Anonymous\\\",\\n \\\"defaultFS\\\":\\\"127.0.0.1\\\",\\n \\\"envType\\\": \\\"Prod\\\"\\n}",
"ConnectionPropertiesMode": "UrlMode",
"Description": "home_feed",
"CreateTime": 1624387842781448,
"CreateUser": 1648711113000,
"ModifyTime": 1624387842781448,
"ModifyUser": 1648711113000,
"WhetherDefault": true
}
]
}
]
}
}Error codes
For a list of error codes, visit the Service error codes.
Change history
| Change time | Summary of changes | Operation |
|---|---|---|
| 2025-11-25 | Add Operation | View Change Details |
