You can call this operation to query the information about servers on which a baseline check is performed. This information includes server IDs, statistics, and states of at-risk items.

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 DescribeWarningMachines

The operation that you want to perform.

Set the value to DescribeWarningMachines.

RiskId Long Yes 1

The ID of the at-risk item.

Note To query information of servers on which a baseline check is performed, you must specify the ID of the at-risk item that is associated with the baseline check. You can obtain this ID by calling the DescribeCheckWarningSummary operation.
SourceIp String No 1.2.3.4

The source IP address of the request.

Lang String No zh

The language of the request and response. Valid values:

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

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

Uuids String No xxx-aaa-bbb-ccc

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

StrategyId Long No 1

The ID of the baseline check policy.

PageSize Integer No 10

The number of entries returned on each page.

CurrentPage Integer No 1

The page number of the returned page.

Response parameters

Parameter Type Example Description
Count Integer 10

The number of entries returned on the current page.

CurrentPage Integer 1

The page number of the returned page.

PageSize Integer 10

The number of entries returned on each page.

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

The ID of the request.

TotalCount Integer 100

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

WarningMachines Array

The information about the servers that generate alerts.

HighWarningCount Integer 10

The number of high-risk check items.

InstanceId String i-m5ee8b9nr3h30mhb****

The instance ID of the server.

InstanceName String aaawebtest

The name of the instance.

InternetIp String 1.2.3.4

The Internet IP of the server.

IntranetIp String 1.2.3.5

The Intranet IP of the server.

LowWarningCount Integer 3

The number of low-risk check items.

MediumWarningCount Integer 2

The number of medium-risk check items.

PassCount Integer 10

The number of items that have passed the baseline check.

RegionId String cn-qingdao

The region ID of the server.

Status Integer 1

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

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

The ID of the server on which a baseline check is performed.

Examples

Sample requests

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

Sample success responses

XML format

<DescribeWarningMachinesResponse>
      <TotalCount>100</TotalCount>
      <RequestId>00BDE2-284A-4534-BD09-FB69836DD750</RequestId>
      <PageSize>10</PageSize>
      <CurrentPage>1</CurrentPage>
      <WarningMachines>
            <InstanceName>aaawebtest</InstanceName>
            <Status>1</Status>
            <MediumWarningCount>2</MediumWarningCount>
            <Uuid>xxx-aaa-bbb-ccc</Uuid>
            <InternetIp>1.2.3.4</InternetIp>
            <InstanceId>i-m5ee8b9nr3h30mhb****</InstanceId>
            <HighWarningCount>10</HighWarningCount>
            <RegionId>cn-qingdao</RegionId>
            <PassCount>10</PassCount>
            <IntranetIp>1.2.3.5</IntranetIp>
            <LowWarningCount>3</LowWarningCount>
      </WarningMachines>
      <Count>10</Count>
</DescribeWarningMachinesResponse>

JSON format

{
	"TotalCount": "100",
	"RequestId": "00BDE2-284A-4534-BD09-FB69836DD750",
	"PageSize": "10",
	"CurrentPage": "1",
	"WarningMachines": [{
		"InstanceName": "aaawebtest",
		"Status": "1",
		"MediumWarningCount": "2",
		"Uuid": "xxx-aaa-bbb-ccc",
		"InternetIp": "1.2.3.4",
		"InstanceId": "i-m5ee8b9nr3h30mhb****",
		"HighWarningCount": "10",
		"RegionId": "cn-qingdao",
		"PassCount": "10",
		"IntranetIp": "1.2.3.5",
		"LowWarningCount": "3"
	}],
	"Count": "10"
}

Error codes

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