Queries the number of weak passwords on your assets.

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 DescribeCheckEcsWarnings

The operation that you want to perform.

Set the value to DescribeCheckEcsWarnings.

SourceIp String No 1.2.3.4

The source IP address of the request.

Response parameters

Parameter Type Sample response Description
CanTry String 0

Indicates whether Security Center is the free trial edition. Valid values:

  • 0: no
  • 1: yes
RequestId String 4E5BFDCF-B9DD-430D-9DA4-151BCB581C9D

The ID of the request.

SasVersion String 3

The edition of Security Center. Valid values:

  • 1: Basic
  • 2 or 3: Enterprise
  • 5: Advanced
  • 6: Basic Anti-Virus
Note Both 2 and 3 indicate the Enterprise edition.
WeakPasswordCount String 3

The number of weak passwords detected on your assets.

Examples

Sample requests

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

Sample success responses

XML format

<DescribeCheckEcsWarningsResponse>
      <SasVersion>3</SasVersion>
      <RequestId>A05C19BD-13D1-4040-B1F6-821CFB9F4DE8</RequestId>
      <CanTry>0</CanTry>
      <WeakPasswordCount>2</WeakPasswordCount>
</DescribeCheckEcsWarningsResponse>

JSON format

{
	"SasVersion": "3",
	"RequestId": "A05C19BD-13D1-4040-B1F6-821CFB9F4DE8",
	"CanTry": "0",
	"WeakPasswordCount": 2
}

Error codes

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