Performs security check tasks on servers.
Debugging
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.X.X |
The source IP address of the request. |
Uuids | String | No | inet-923b4538-0e88-409d-80ba-cb2e7487****,dc1691eb-656f-472f-b2aa-04f621f4****,70452f92-9fc1-45c5-ab35-e7bf8552**** |
The UUIDs of servers on which you want to perform security check tasks. Separate multiple UUIDs with commas (,). |
Tasks | String | No | HEALTH_CHECK,OVAL_ENTITY |
The check items. Separate multiple check items with commas (,).
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 91EB4AC7-7FEF-4C72-BE49-4414E459AEC2 |
The ID of the request, which is used to locate and troubleshoot issues. |
PushTaskRsp | Object |
The security check results. |
|
PushTaskResultList | Array of pushTaskResult |
The information about the server on which security check tasks failed. |
|
Uuid | String | 5493fe42-61f5-4627-9aa2-8c449bbe**** |
The UUID of the server. |
GroupId | Long | 226 |
The ID of the server group to which the server belongs. |
Success | Boolean | false |
Indicates whether the security check task is successful. Valid values:
|
Region | String | cn-beijing-ss-10 |
The ID of the region in which the server resides. |
InstanceName | String | Pay-as-you-go online monitoring |
The name of the server. |
Online | Boolean | false |
Indicates whether the Security Center agent is online. Valid values:
Note If the Security Center agent of the server is offline, Security Center does not protect
the server.
|
Message | String | {\"code\":\"clinent_offline\",\"message\":\"The agent is offline",\"success\":false} |
The details about the security check failure. |
Ip | String | 127.X.X |
The IP address of the server. |
OsVersion | String | linux |
The operating system version of the server. |
InstanceId | String | i-wz9f7wlklxqnvdk**** |
The ID of the server. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=ModifyPushAllTask
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<ModifyPushAllTaskResponse>
<RequestId>91EB4AC7-7FEF-4C72-BE49-4414E459AEC2</RequestId>
<PushTaskRsp>
<PushTaskResultList>
<InstanceName>Pay-as-you-go online monitoring</InstanceName>
<Uuid>5493fe42-61f5-4627-9aa2-8c449bbe****</Uuid>
<Message>{\"code\":\"clinent_offline\",\"message\":\"The agent is offline\",\"success\":false}</Message>
<InstanceId>i-wz9f7wlklxqnvdk****</InstanceId>
<Ip>127.X.X</Ip>
<OsVersion>linux</OsVersion>
<Region>cn-beijing-ss-10</Region>
<Online>false</Online>
<Success>false</Success>
<GroupId>226</GroupId>
</PushTaskResultList>
</PushTaskRsp>
</ModifyPushAllTaskResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "91EB4AC7-7FEF-4C72-BE49-4414E459AEC2",
"PushTaskRsp" : {
"PushTaskResultList" : [ {
"InstanceName" : "Pay-as-you-go online monitoring",
"Uuid" : "5493fe42-61f5-4627-9aa2-8c449bbe****",
"Message" : "{\\\"code\\\":\\\"clinent_offline\\\",\\\"message\\\":\\\"The agent is offline\\\",\\\"success\\\":false}",
"InstanceId" : "i-wz9f7wlklxqnvdk****",
"Ip" : "127.X.X",
"OsVersion" : "linux",
"Region" : "cn-beijing-ss-10",
"Online" : "false",
"Success" : "false",
"GroupId" : "226"
} ]
}
}
Error codes
For a list of error codes, visit the API Error Center.