All Products
Search
Document Center

Security Center:SubmitOperationTask

Last Updated:Nov 25, 2024

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

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
yundun-sas:OperateCheckcreate
*All Resources
*
    none
none

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

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