All Products
Search
Document Center

Security Center:SubmitOperationTask

Last Updated:May 22, 2025

Submits a repair task of risk items detected in configuration assessment or rolls back a repair task that is executed.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
CheckIdlongYes

The ID of the check item.

Note You can call the ListCheckResult operation to obtain the ID of the check item.
132
OperationTaskInstancesarray<object>No

The asset information required to submit the tasks for instances.

objectNo

The structure of the asset information.

VendorstringNo

The service provider of the asset. Valid values:

  • 0: an asset provided by Alibaba Cloud.
  • 1: an asset outside Alibaba Cloud.
  • 2: an asset in a data center.
  • 3, 4, 5, and 7: an asset from a third-party cloud service provider.
  • 8: a lightweight asset.
7
RegionIdstringNo

The region ID of the server.

cn-hangzhou
InstanceIdstringNo

The instance ID of the server.

i-uf6533m4vuo3oa33****
TaskIdstringNo

The ID of the task that you want to roll back

7d0b10e35e80c9e5ebac5f1054****
DimensionTypestringNo

The dimension of the task that you want to submit. Valid values:

  • Instance dimension: INSTANCE
  • Check item dimension: CHECK_ID
CHECK_ID
TypestringYes

The type of the task that you want to submit. Valid values:

  • Repair task: REPAIR
  • Rollback task: ROLLBACK
REPAIR
RepairTempParamarray<object>No

The temporary parameters required for the repair task.

objectNo
NamestringNo

The name of the temporary repair parameter.

IPPort
ValuestringNo

The value of the temporary repair parameter.

192.168.1XX.1XX
RelationKeystringNo

The key linked to cross-page selections during task submission.

Note You can call the CreateAssetSelectionConfig operation to query the associated key from the BusinessType field.
CSPM_OPERATION_RELATION_KEY_173***

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The ID of the request, which is used to locate and troubleshoot issues.

0C8487EF-50C2-54BB-8634-10F8C35D****
OperateCodestring

The handling result code. Valid values:

  • Insufficient authorization: AuthorizationExhaust
  • Unauthorized: ActionTrialUnauthorized
AuthorizationExhaust
RootTaskIdstring

The main task ID that is returned when the task is submitted.

89f5d7813bd59dd237580a8664b3xxxx

Examples

Sample success responses

JSONformat

{
  "RequestId": "0C8487EF-50C2-54BB-8634-10F8C35D****",
  "OperateCode": "AuthorizationExhaust",
  "RootTaskId": "89f5d7813bd59dd237580a8664b3xxxx"
}

Error codes

HTTP status codeError codeError messageDescription
400RepairTaskConflictFix task conflicts.Repair task conflicts. Check the submitted repair task.
400RepairedParamNotCustomized.%sThe required repair parameter %s is not customized.Repair required parameters are not customized.
400ErrorParamFormat.%sParameter %s format is incorrectly filled in.The specified format of the parameter is not satisfied.
403NoPermissioncaller has no permissionYou are not authorized to do this operation.
500ServerErrorServerError-

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-10-10The Error code has changed. The request parameters of the API has changedView Change Details