You need to enable JavaScript to run this app.
Elastic Compute Service

Elastic Compute Service

Copy page
Download PDF
Cloud assistant
StopInvocation - Stops executing jobs
Copy page
Download PDF
StopInvocation - Stops executing jobs
Call the StopInvocation operation to stop a job in the "Running" status.​
Usage notes​
  • The processes of the specified command running on all target ECS instances are to be stopped.​
  • Only jobs in scheduled or periodic execution mode can be stopped.​
  • After the process of a scheduled or periodic job is stopped, commands that have already started continue to run, but no subsequent executions are triggered.​
Debugging​
API Explorer
You can initiate calls online through API Explorer without paying attention to the signature generation process and quickly obtain the call results.
​
Request parameters​
Only the request parameters specific to this operation and some common parameters are listed below. For more information, refer to Common parameters.​
Action string required Sample value: StopInvocation​
The action that you want to perform. Value: StopInvocation.​
​
Version string required Sample value: 2020-04-01​
The version of the API. Valid value: 2020-04-01.​
​
InvocationId string required Sample value: ivk-2a745b41****​
The ID of the executed task​
​
​
​
Response parameters​
Only the response parameters specific to this operation are listed below. For more information, refer to the response structure.​
InvocationId string Sample value: ivk-2a745b41****​
The ID of the executed task.​
​
​
​
Sample request​
​
GET /?Action=StopInvocation&Version=2020-04-01&InvocationId=ivk-2a745b41**** HTTP/1.1​
Host: ecs.cn-beijing.volcengineapi.com​
Region: cn-beijing​
Service: ecs​
​
Sample response​
​
{​
"ResponseMetadata":{​
"RequestId":"2023082415303301022514515207C4****",​
"Action":"StopInvocation",​
"Version":"2020-04-01",​
"Service":"ecs",​
"Region":"cn-beijing"​
},​
"Result":{​
"InvocationId":"ivk-2a745b41****"​
}​
}​
​
Error codes​
The table below lists the business-related error codes of the operation. For more information, refer to Common error codes.​
​
Status code​
Error code​
Error message​
Description​
400​
MissingParameter.AccountId​
The required parameter AccountId is not supplied.​
The user ID cannot be empty.​
400​
MissingParameter.InvocationId​
The required InvocationId is not supplied.​
The job ID cannot be empty.​
400​
MissingParameter.InstanceIds​
The required parameter InstanceIds is not supplied.​
The instance ID cannot be empty.​
400​
LimitExceeded.MaximumInstanceIds​
The specified InstanceIds exceeds the limit.​
The number of instances exceeds the limit.​
400​
InvalidOperation.Forbidden​
The specified Invocation is not allowed to operate.​
The specified job is in an inoperable status.​
400​
InvalidInvocationRunningInstance.NotFound​
No instance with an ongoing invocation is found.​
The instance in which the job is being executed is not found in the query.​
404​
InvalidInvocation.NotFound​
The specified Invocation does not exist.​
The specified job does not exist.​
404​
InvalidInvocationInstance.NotFound​
The specified instance is not included in the invocation.​
The job does not involve the specified instance.​
409​
InvalidInstanceIds.Conflict​
The specified InstanceId already exists.​
The specified instance ID already exists.​
500​
InternalError​
An internal error has occurred.​
An internal error occurred. Try again. If multiple attempts fail, submit a ticket.​
​
​
​
Last updated: 2026.06.18 17:48:26