CancelAsyncTask

Updated at:

Cancels an asynchronous task.

Try it now

You can run this API directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After a successful run, OpenAPI Explorer can automatically generate SDK code examples.

Try it

Authorization information

The following table describes the authorization information of the API. You can use the Action element in RAM permission policy statements to grant RAM users or RAM roles the permission to call this API. Details are as follows:

  • Operation: the specific permission point.

  • Access level: the access level of each operation. Valid values: Write, Read, or List.

  • Resource type: the resource types that support authorization in the operation. Details are as follows:

    • For required resource types, an asterisk (*) is prefixed.
    • For operations that do not support resource-level authorization, All Resources is used.
  • Condition key: the condition keys defined by the cloud service itself.

  • Dependent action: other permissions required to successfully perform the operation. The caller must also have the permissions of the dependent actions for the operation to succeed.

OperationAccess levelResource typeCondition keyDependent action
quanmiaolightapp:CancelAsyncTaskcreate
*All Resources
*
    None
None

Request syntax

POST /{workspaceId}/quanmiao/lightapp/cancelAsyncTask HTTP/1.1

Request parameters

NameTypeRequiredDescriptionExample value
workspaceIdstringNollm-xxxxxxx
taskIdstringNo

The task ID.

a3d1c2ac-f086-4a21-9069-f5631542f5a2

Response parameters

NameTypeDescriptionExample value
object

Schema of Response

requestIdstring

The ID of the request.

117F5ABE-CF02-5502-9A3F-E56BC9081A64
codestring

The error code.

NoPermission
messagestring

The error message.

No permission to access the API
httpStatusCodeinteger

The HTTP response code.

403
successboolean

Indicates whether the request was successful.

false
databoolean

Indicates whether the cancellation was successful.

true

Examples

Success response

JSON format

{
  "requestId": "117F5ABE-CF02-5502-9A3F-E56BC9081A64",
  "code": "NoPermission",
  "message": "无权限访问接口",
  "httpStatusCode": 403,
  "success": false,
  "data": true
}

Error codes

HTTP status codeError codeError messageDescription
403NoPermissionYou are not authorized to perform this action , Please check the assignment of the workspaceId.Check the assignment of the workspaceId.

See Error Center for more error codes.