Lists the service workers of a resource instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eas:ListResourceInstanceWorker |
get |
*Resource
|
None | None |
Request syntax
GET /api/v2/resources/{ClusterId}/{ResourceId}/instance/{InstanceName}/workers HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
The ID of the cluster where the resource group is located. |
cn-shanghai |
| ResourceId |
string |
Yes |
The ID of the resource group. For more information, see ListResources. |
eas-r-adfabas |
| InstanceName |
string |
Yes |
The name of the instance in the resource group. For more information, see ListResourceInstances. The instance name is the value of the HostName parameter in the response. |
cne10 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| PageNumber |
integer |
No |
The page number. The value starts from 1. The default value is 1. |
1 |
| PageSize |
integer |
No |
The number of entries to return on each page. The default value is 100. |
20 |
| WorkerName |
string |
No |
The name of the worker instance. |
test-fd95xxxxx-xxxxxx |
| Status |
string |
No |
The status of the worker instance. Valid values:
|
Running |
| Order |
string |
No |
The sort order.
Valid values:
|
Desc |
| Sort |
string |
No |
The field to sort by. Valid values:
|
CreateTime |
| ServiceName |
string |
No |
The service name. |
echo |
| Ready |
boolean |
No |
Indicates whether the health check passed. Valid values:
|
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response. |
||
| RequestId |
string |
The request ID. |
40325405-579C-4D82**** |
| Pods |
array |
The list of workers. |
|
| ResourceInstanceWorker |
The worker information. |
||
| PageNumber |
integer |
The returned page number. |
1 |
| PageSize |
integer |
The number of entries returned per page. |
20 |
| TotalCount |
integer |
The total number of workers. |
1 |
Examples
Success response
JSON format
{
"RequestId": "40325405-579C-4D82****",
"Pods": [
{
"Name": "test-india-5bbbfdbc98-****",
"ServiceName": "test-in****",
"Status": "Running",
"Ready": true,
"CpuRequest": 1,
"GpuRequest": 0,
"MemoryRquest": 200,
"CpuLimit": 2,
"GpuLimit": 0,
"MemoryLimit": 400,
"RestartCount": 3,
"StartTime": "2021-05-09T09:56:19Z"
}
],
"PageNumber": 1,
"PageSize": 20,
"TotalCount": 1
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.