ListServiceInstanceFaultInjectionInfo
Retrieves fault injection information.
Operation description
Before you call this operation, make sure that you fully understand the billing methods and pricing of EAS.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eas:ListServiceInstanceFaultInjectionInfo |
get |
*All Resource
|
None | None |
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 to which the resource group belongs. |
cn-shanghai |
| ServiceName |
string |
Yes |
The name of the service. |
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 |
Schema of Response |
||
| RequestId |
string |
Id of the request |
40325405-579C-4D82**** |
| FaultInfoList |
array<object> |
The list of injected faults. |
|
|
array<object> |
The information about a single injected fault. |
||
| FaultType |
string |
The fault type. Valid values:
|
DiskFillTask |
| FaultStatus |
object |
The fault status. |
|
| FaultStatus |
string |
The fault status. Valid values:
|
FaultInjectedSuccess |
| FaultStatusMessage |
string |
The description of the fault injection. |
Network interface not found |
| FaultArgs |
any |
The detailed 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.