Stops an asynchronous task.
Operation description
StatefulAsyncInvocation represents asynchronous tasks. Asynchronous tasks (StatefulAsyncInvocation) allow you to manage the states of asynchronous invocations. The asynchronous task feature is more suitable for task scenarios.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
fc:StopStatefulAsyncInvocation |
update |
*All Resource
|
None | None |
Request syntax
PUT /2021-04-06/services/{serviceName}/functions/{functionName}/stateful-async-invocations/{invocationId} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| serviceName |
string |
Yes |
The name of the service to which the asynchronous task belongs. |
demo-service |
| functionName |
string |
Yes |
The name of the function to which the asynchronous task belongs. |
demo-function |
| invocationId |
string |
Yes |
The ID of the instance that is used to run the asynchronous task. |
demo-id |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| qualifier |
string |
No |
The version or alias of the service to which the asynchronous task belongs. |
LATEST |
| X-Fc-Account-Id |
string |
No |
The ID of your Alibaba Cloud account. |
188077086902**** |
| X-Fc-Date |
string |
No |
The time when the function is invoked. The value is in the EEE,d MMM yyyy HH:mm:ss GMT format. |
Sat, 14 Jul 2017 07:02:38 GMT |
| X-Fc-Trace-Id |
string |
No |
The trace ID of the request for Function Compute API. |
asdf**** |
Response elements
|
Element |
Type |
Description |
Example |
None defined.
Examples
Success response
JSON format
{}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.