You can call this operation to query the details of a specified check item.

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 DescribeCheckWarningDetail

The operation that you want to perform.

Set the value to DescribeCheckWarningDetail.

CheckWarningId Long Yes 1

The ID of the alert triggered by the specified check item.

Note To query the details of a specified check item, you must specify the ID of the alert triggered by the check item. You can call the DescribeCheckWarnings operation to query the alert ID.
Lang String No zh

The language of the request and response. Valid values:

  • zh: Chinese
  • en: English
SourceIp String No 1.2.3.4

The source IP address of the request.

Response parameters

Parameter Type Example Description
Advice String  Fix Now

The suggestions for managing the at-risk check item.

CheckId Long 1

The ID of the check item.

Description String Password expiring

The additional details about the at-risk check item.

Item String  Password expiration alert

The name of the check item.

Level String  high

The risk level of the check item.

  • high: The check item is at a high level of risk and highlighted in red.
  • medium: The check item is at a medium level of risk and highlighted in orange.
  • low: The check item is at a low level of risk and highlighted in gray.
Prompt String  Password expiration alert

The prompt for the at-risk item.

RequestId String 09969D2C-4FAD-429E-BFBF-9A60DEF8BF6F

The ID of the request.

Type String Identity authentication

The type of the check item.

Examples

Sample requests


http(s)://[Endpoint]/? Action=DescribeCheckWarningDetail
&CheckWarningId=1
&SourceIp=127.0.0.1
&Lang=zh
&<Common request parameters>

Sample success responses

XML format

<DescribeCheckWarningDetail>
	  <Item>Specify user permissions on file configurations</Item>
	  <Type>File permissions</Type>
	  <Description>Specify user permissions on file configurations</Description>
	  <RequestId>9F2361B3-B7C3-4189-8DB5-C6D1F67BC225</RequestId>
	  <CheckId>13</CheckId>
	  <Prompt></Prompt>
	  <Level>high</Level>
	  <Advice>Run the following five commands
		chown root:root /etc/passwd /etc/shadow /etc/group /etc/gshadow
		chmod 0644 /etc/group  
		chmod 0644 /etc/passwd  
		chmod 0400 /etc/shadow  
	chmod 0400 /etc/gshadow  </Advice>
</DescribeCheckWarningDetail>

JSON format

{
	"Prompt":"",
	"Description":"Specify user permissions on file configurations",
	"Item":"SSpecify user permissions on file configurations",
	"Type":"File permissions",
	"RequestId":"9F2361B3-B7C3-4189-8DB5-C6D1F67BC225",
	"Advice":"Run the following five commands\r\nchown root:root /etc/passwd /etc/shadow /etc/group /etc/gshadow\r\nchmod 0644 /etc/group  \r\nchmod 0644 /etc/passwd  \r\nchmod 0400 /etc/shadow  \r\nchmod 0400 /etc/gshadow  ",
	"Level":"high",
	"CheckId":13
}

Error codes

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