Retrieves fault injection information.
Operation description
Before you call this operation, make sure that you understand the billing methods and pricing of Elastic Algorithm Service (EAS).
Try it now
Test
RAM authorization
Request syntax
GET /api/v2/services/{ClusterId}/{ServiceName}/instances/{InstanceName}/faults 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 |
| ServiceName |
string |
Yes |
The service name. |
foo |
| InstanceName |
string |
Yes |
The name of the service instance. |
e-xxxx*** |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response schema. |
||
| RequestId |
string |
The request ID. |
40325405-579C-4D82**** |
| FaultInfoList |
array<object> |
A list of injected faults. |
|
|
array<object> |
The information about a single injected fault. |
||
| FaultType |
string |
The fault type. Valid values:CpuFullloadTask: a CPU full load fault.MemLoadTask: a memory load fault.NetworkTask: a network fault.DiskBurnTask: a disk read/write fault.DiskFillTask: a disk fill fault. |
DiskFillTask |
| FaultStatus |
object |
The fault status. |
|
| FaultStatus |
string |
The status of the fault. Valid values:
|
FaultInjectedSuccess |
| FaultStatusMessage |
string |
The description of the fault injection. |
Network interface not found |
| FaultArgs |
any |
The parameters for each fault type.
|
{ "FaultType": "DiskBurnTask", "FaultArgs": { "FaultAction": "burn", "Read": true, "Write": true, "Size": 100 } } |
Examples
Success response
JSON format
{
"RequestId": "40325405-579C-4D82****",
"FaultInfoList": [
{
"FaultType": "DiskFillTask",
"FaultStatus": {
"FaultStatus": "FaultInjectedSuccess",
"FaultStatusMessage": "Network interface not found"
},
"FaultArgs": "{\n \"FaultType\": \"DiskBurnTask\",\n \"FaultArgs\": {\n \"FaultAction\": \"burn\",\n \"Read\": true,\n \"Write\": true,\n \"Size\": 100\n }\n}"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.