All Products
Search
Document Center

Platform For AI:ListServiceInstanceFaultInjectionInfo

Last Updated:Nov 05, 2025

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

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

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:

  1. FaultNotInjected: The task was created, but the fault was not successfully injected.

  2. FaultInjectedSuccess: The fault was successfully injected.

  3. FaultInjectedFailure: The fault injection failed. The failure may be caused by parameter errors or system issues.

FaultInjectedSuccess

FaultStatusMessage

string

The description of the fault injection.

Network interface not found

FaultArgs

any

The parameters for each fault type.

  1. CpuFullloadTask (CPU full load fault) { "FaultType": "CpuFullloadTask", "FaultArgs": { "FaultAction": "fullload", "CpuPercent": 50 } }

  2. MemLoadTask (Memory load fault) { "FaultType": "MemLoadTask", "FaultArgs": { "FaultAction": "load", "MemPercent": 80 } }

  3. NetworkTask (Network fault) 3.a. NetworkDelayAction (Network delay) { "FaultType": "NetworkTask", "FaultArgs": { "FaultAction": "delay", "Time": 3000, "Offset": 100 } } 3.b. NetworkCorruptAction (Network packet corruption) { "FaultType": "NetworkTask", "FaultArgs": { "FaultAction": "corrupt", "Percent": 50 } } 3.c. NetworkLossAction (Network packet loss) { "FaultType": "NetworkTask", "FaultArgs": { "FaultAction": "loss", "Percent": 30 } }

  4. DiskBurnTask (Disk read/write fault) { "FaultType": "DiskBurnTask", "FaultArgs": { "FaultAction": "burn", "Read": true, "Write": true, "Size": 100 } }

  5. DiskFillTask (Disk fill fault) { "FaultType": "DiskFillTask", "FaultArgs": { "FaultAction": "fill", "Percent": 80 } }

{ "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.