All Products
Search
Document Center

Security Center:ModifyPushAllTask

Last Updated:Feb 20, 2024

Performs security check tasks on servers with a few clicks.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

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:ModifyPushAllTaskWrite
  • All Resources
    *
    none
none

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.

PushTaskResultListobject []

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

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
Note If 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****

Examples

Sample success responses

JSONformat

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

Error codes

HTTP status codeError codeError messageDescription
400PushTaskErrorFailed to push task.-
400IllegalParamIllegal param-
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
2023-03-01API Description Update. The API operation is not deprecated.. The Error code has changedsee changesets
Change itemChange content
API DescriptionAPI Description Update.
API Deprecation DescriptionThe API operation is not deprecated..
Error CodesThe Error code has changed.
    delete Error Codes: 400
2022-08-01The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400
2022-08-01The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400