All Products
Search
Document Center

Security Center:ModifyPushAllTask

Last Updated:Nov 30, 2022

Performs security check tasks on servers with a few clicks.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
SourceIpstringNo

The source IP address of the request.

1.2.XX.XX
UuidsstringYes

The UUIDs of servers on which you want to perform security check tasks. Separate multiple UUIDs with commas (,).

inet-923b4538-0e88-409d-80ba-cb2e7487****,dc1691eb-656f-472f-b2aa-04f621f4****,70452f92-9fc1-45c5-ab35-e7bf8552****
TasksstringYes

The check items. Separate multiple check items with commas (,). Valid values:

  • OVAL_ENTITY: Common Vulnerabilities and Exposures (CVE) vulnerabilities
  • CMS: Web-CMS vulnerabilities
  • SYSVUL: Windows system vulnerabilities
  • SCA: application vulnerabilities
  • HEALTH_CHECK: baselines
  • WEBSHELL: webshells
  • PROC_SNAPSHOT: processes
  • PORT_SNAPSHOT: ports
  • ACCOUNT_SNAPSHOT: accounts
  • SOFTWARE_SNAPSHOT: software assets
  • SCA_SNAPSHOT: middleware
HEALTH_CHECK,OVAL_ENTITY

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

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

91EB4AC7-7FEF-4C72-BE49-4414E459AEC2
PushTaskRspobject

The results of security check tasks.

PushTaskResultListarray

An array consisting of the servers on which security check tasks failed.

object
Uuidstring

The UUID of the server.

5493fe42-61f5-4627-9aa2-8c449bbe****
GroupIdlong

The ID of the server group to which the server belongs.

226
Successboolean

Indicates whether the security check task is successful. Valid values:

  • true: yes
  • false: no
false
Regionstring

The region in which the server resides.

cn-beijing
InstanceNamestring

The name of the server.

TestInstance
Onlineboolean

Indicates whether the Security Center agent is online. Valid values:

  • true: yes
  • false: no
NoteIf the Security Center agent of the server is offline, Security Center does not protect the server.
false
Messagestring

The message that describes the security check failure.

successful
Ipstring

The IP address of the server.

127.XX.XX
OsVersionstring

The operating system version of the server.

linux
InstanceIdstring

The ID of the server.

i-wz9f7wlklxqnvdk****

Example

Normal return example

JSONFormat

{
  "RequestId": "91EB4AC7-7FEF-4C72-BE49-4414E459AEC2",
  "PushTaskRsp": {
    "PushTaskResultList": [
      {
        "Uuid": "5493fe42-61f5-4627-9aa2-8c449bbe****",
        "GroupId": 226,
        "Success": true,
        "Region": "cn-beijing",
        "InstanceName": "TestInstance",
        "Online": true,
        "Message": "successful",
        "Ip": "127.XX.XX",
        "OsVersion": "linux",
        "InstanceId": "i-wz9f7wlklxqnvdk****"
      }
    ]
  }
}

Error codes

Http codeError codeError message
400PushTaskErrorFailed to push task.
400IllegalParamIllegal param
500ServerErrorServerError

For a list of error codes, visit the API error center.

Change history

Change timeSummary of changesOperate
2022-08-01The error codes of the API operation has changed
Change itemChange content
Error CodesThe error codes of the API operation has changed
    delete Error Codes: 400
2022-08-01The error codes of the API operation has changed
Change itemChange content
Error CodesThe error codes of the API operation has changed
    delete Error Codes: 400