You can call this operation to dispatch all security check tasks.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ModifyPushAllTask

The operation that you want to perform.

Set the value to ModifyPushAllTask.

SourceIp String No 1.2.3.4

The source IP address of the request.

Uuids String No uuid1,uuid2,uuid3

The list of UUIDs of instances.

Tasks String No HEALTH_CHECK,OVAL_ENTITY

The list of tasks.

Response parameters

Parameter Type Example Description
RequestId String 91EB4AC7-7FEF-4C72-BE49-4414E459AEC2

The ID of the request.

PushTaskRsp Struct

The task dispatch result.

PushTaskResultList Array

The list of tasks failed to be dispatched.

InstanceId String i-xxxsasssss

The ID of the instance.

OsVersion String linux

The operating system version.

InstanceName String Pay-as-you-go online monitoring

The name of the instance.

Success Boolean false

The task dispatch result.

GroupId Long 226

The ID of the group to which the ECS instance belongs.

Ip String 127.0.0.1

The IP address of the instance.

Online Boolean true

Indicates whether the Security Center agent is connected.

Message String {\"code\":\"clinent_offline\",\"message\":\"The Security Center agent is disconnected\",\"success\":false}

The message indicating task details.

Region String cn-beijing-ss-10

The region where the instance is deployed.

Uuid String inet-xxxxx-xxxx-xxxx-xxx-xxx

The UUID of the instance.

Examples

Sample requests

http(s)://[Endpoint]/? Action=ModifyPushAllTask
&<Common request parameters>

Sample success responses

XML format

<ModifyPushAllTaskResponse>
    <PushTaskRsp>
        <PushTaskResultList>
            <GroupId>336</GroupId>
            <InstanceId>i-xxxsasssss</InstanceId>
            <InstanceName>Pay-as-you-go online monitoring</InstanceName>
           <Ip>127.0.0.1</Ip>
            <Message>{"code":"clinent_offline","message":"The Security Center agent is disconnected","success":false}</Message>
            <Online>false</Online>
            <OsVersion>linux</OsVersion>
            <Region>cn-beijing-ss-10</Region>
            <Success>false</Success>
            <Uuid>inet-xxxxx-xxxx-xxxx-xxx-xxx</Uuid>
        </PushTaskResultList>
    </PushTaskRsp>
    <RequestId>91EB4AC7-7FEF-4C72-BE49-4414E459AEC2</RequestId>
</ModifyPushAllTaskResponse>

JSON format

{
  "PushTaskRsp":{
    "PushTaskResultList":[{
      "GroupId":336,
      "InstanceId":"i-xxxsasssss",
      "InstanceName":"Pay-as-you-go online monitoring",
      "Ip":"127.0.0.1",
      "Message":"{\"code\":\"clinent_offline\",\"message\":\"The Security Center agent is disconnected\",\"success\":false}",
      "Online":false,
      "OsVersion":"linux",
      "Region":"cn-beijing-ss-10",
      "Success":false,
      "Uuid":"inet-xxxxx-xxxx-xxxx-xxx-xxx"
    }]
  },
  "RequestId":"91EB4AC7-7FEF-4C72-BE49-4414E459AEC2"
}

Error codes

For a list of error codes, visit the API Error Center.