Query information about servers on which baseline checks are executed.

You can call this operation to query information about servers on which baseline checks are executed. This information includes server IDs, server names, and statistics and state of detected at-risk items.

Debugging

Alibaba Cloud provides OpenAPI Explorer to simplify API usage. You can use OpenAPI Explorer to search for API operations, call API operations, and dynamically generate SDK example code.

Request Parameters

Parameter Type Required Example Description
Action String Yes DescribeWarningMachines

The operation that you want to perform. Set the value to DescribeWarningMachines.

RiskId Long Yes 1

The ID of the at-risk item.

CurrentPage Integer No 1

The number of the page to return on the server on which a baseline check is executed.

Lang String No zh

The language type. Valid values:

  • zh: Chinese
  • en: English
MachineName String No test_ecs172

The name of the server on which a baseline check is executed.

PageSize Integer No 10

The number of entries to return on each page.

SourceIp String No 127.0.0.1

The source IP address.

StrategyId Long No 1

The ID of the baseline check policy.

Uuids String No xxx-aaa-bbb-ccc

The ID of the server on which a baseline check is executed. Separate multiple IDs with commas (,).

Response parameters

Parameter Type Example Description
Count Integer 10

The current number of entries.

CurrentPage Integer 1

The current page number.

PageSize Integer 10

The number of entries returned on each page.

RequestId String 00BD7CE2-284A-4534-BD09-FB69836DD750

The ID of the request.

TotalCount Integer 100

The total number of at-risk items detected on the server.

WarningMachines

The information about the servers that generate alerts.

HighWarningCount Integer 10

The number of high-risk check items.

InternetIp String 47.39.120.22

The public IP address.

IntranetIp String 127.0.0.1

The internal IP address.

LowWarningCount Integer 3

The number of low-risk check items.

MachineName String test_ecs172

The name of the server.

MediumWarningCount Integer 2

The number of medium-risk check items.

PassCount Integer 10

The number of items that have passed the baseline check.

Status Integer 1

The verification status of fixed at-risk items. Valid values:

  • 1: verified
  • 2: verifying
Uuid String xxx-aaa-bbb-ccc

The ID of the user account.

Examples

Sample requests


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

Sample success responses

XML format

<DescribeWarningMachines>
  <TotalCount>47</TotalCount>
  <PageSize>20</PageSize>
  <RequestId>7E6F0031-6D83-4FEC-9077-FF87F9D9887C</RequestId>
  <CurrentPage>1</CurrentPage>
  <WarningMachines>
    <Status>1</Status>
    <MediumWarningCount>0</MediumWarningCount>
    <Uuid>6b36bd63-1848-47dd-8b5a-************</Uuid>
    <InternetIp>47.97.192.205</InternetIp>
    <MachineName>Test</MachineName>
    <HighWarningCount>8</HighWarningCount>
    <PassCount>8</PassCount>
    <IntranetIp>192.1.1.1</IntranetIp>
    <LowWarningCount>0</LowWarningCount>
  </WarningMachines>
  <WarningMachines>
    <Status>1</Status>
    <MediumWarningCount>0</MediumWarningCount>
    <Uuid>f03259d8-1e81-4fae-bcbb-************</Uuid>
    <InternetIp>1.1.1.1</InternetIp>
    <MachineName>health-check002</MachineName>
    <HighWarningCount>8</HighWarningCount>
    <PassCount>8</PassCount>
    <IntranetIp>172.1.1.1</IntranetIp>
    <LowWarningCount>0</LowWarningCount>
  </WarningMachines>
  <WarningMachines>
    <Status>1</Status>
    <MediumWarningCount>0</MediumWarningCount>
    <Uuid>f87e146b-c704-4845-a187-05c37743a614</Uuid>
    <InternetIp>1.1.1.1</InternetIp>
    <MachineName>Test the data accuracy of the whitelist</MachineName>
    <HighWarningCount>8</HighWarningCount>
    <PassCount>8</PassCount>
    <IntranetIp>172.1.1.1</IntranetIp>
    <LowWarningCount>0</LowWarningCount>
  </WarningMachines>
  <Count>20</Count>
</DescribeWarningMachines>

JSON format

{
	"Count":20,
	"TotalCount":47,
	"PageSize":20,
	"RequestId":"7E6F0031-6D83-4FEC-9077-FF87F9D9887C",
	"WarningMachines":[
		{
			"Uuid":"6b36bd63-1848-47dd-8b5a-************",
			"Status":1,
			"HighWarningCount":8,
			"LowWarningCount":0,
			"IntranetIp":"192.1.1.1",
			"InternetIp":"47.97.192.205",
			"MachineName":"Test",
			"MediumWarningCount":0,
			"PassCount":8
		},
		{
			"Uuid":"f03259d8-1e81-4fae-bcbb-************",
			"Status":1,
			"HighWarningCount":8,
			"LowWarningCount":0,
			"IntranetIp":"172.1.1.1",
			"InternetIp":"1.1.1.1",
			"MachineName":"health-check002",
			"MediumWarningCount":0,
			"PassCount":8
		},
		{
			"Uuid":"f87e146b-c704-4845-a187-05c37743a614",
			"Status":1,
			"HighWarningCount":8,
			"LowWarningCount":0,
			"IntranetIp":"172.1.1.1",
			"InternetIp":"1.1.1.1",
			"MachineName":"Test the accuracy of the data on the whitelist",
			"MediumWarningCount":0,
			"PassCount":8
		}
	],
	"CurrentPage":1
}

Error codes

For more information about error codes, visit API Error Center.