All Products
Search
Document Center

Security Center:DescribeCheckWarnings

Last Updated:Nov 13, 2024

Queries information about specified risk items and the check items of a specified server.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
yundun-sas:DescribeCheckWarningsget
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
SourceIpstringNo

The source IP address of the request.

1.2.XX.XX
LangstringNo

The language of the content within the request and response. Default value: zh. Valid values:

  • zh: Chinese
  • en: English
zh
UuidstringYes

The UUID of the server on which the baseline check is performed.

Note To query specified risk items and the check items of a specified server, you must provide the ID of the server on which the baseline check is performed. You can call the DescribeWarningMachines operation to query the IDs of servers.
d42f938c-d962-48a0-90f9-05****
RiskIdlongNo

The ID of the risk item. This parameter is required.

Note To query the information about the risk items and check items of a server, you must specify the IDs of the risk items. You can call the DescribeCheckWarningSummary operation to query the IDs of risk items.
10354
PageSizeintegerNo

The number of entries to return on each page. Default value: 20.

20
CurrentPageintegerNo

The number of the page to return. Default value: 1.

1
CheckIdlongNo

The ID of the check item.

2546
CheckTypestringNo

The type of the check item. Valid values:

  • hc.check.type.identity_auth: identity authentication
  • hc.check.type.access_control: access control
  • hc.check.type.network_service: network and service
  • hc.check.type.service_conf: service configuration
  • hc.check.type.file_rights: file permission
  • hc.check.type.security_audit: security audit
  • hc.check.type.attack_defense: intrusion prevention
  • hc.check.type.others: others
hc.check.type.attack_defense
RiskStatusintegerNo

The status of the check item. Valid values:

  • 1: failed
  • 2: verifying
  • 3: passed
  • 5: expired
  • 6: ignored
1
ContainerNamestringNo

The name of the container.

/redis
ResourceDirectoryAccountIdlongNo

The Alibaba Cloud account ID of the member in the resource directory.

Note To obtain the Alibaba Cloud account ID, call the DescribeMonitorAccounts operation.
127608589417****

Response parameters

ParameterTypeDescriptionExample
object
CurrentPageinteger

The page number of the returned page.

1
PageSizeinteger

The number of entries returned per page. Default value: 20.

20
RequestIdstring

The ID of the request, which is used to locate and troubleshoot issues.

0DFCADBA-7065-42DA-AF17-6868B9C2A8CF
TotalCountinteger

The total number of entries returned.

100
Countinteger

The number of entries returned on the current page.

10
CheckWarningsarray<object>

The information about the check item.

CheckWarningobject

The details about the check item.

Statusinteger

The status of the check item. Valid values:

  • 1: failed.
  • 2: verifying.
  • 3: passed.
  • 5: expired.
  • 6: ignored.
1
CheckWarningIdlong

The ID of the alert that is generated for the baseline check result.

212251441
Typestring

The type of the check item.

hc.check.type.identity_auth
Uuidstring

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

d42f938c-d962-48a0-90f9-****
ContainerNamestring

The name of the container.

/svn-host
ContainerIdstring

The ID of the container.

8de456b00ff0a2009ee8ef7fc59fd0457fa44f20b8282af3e79c2a0e2492****
Itemstring

The name of the check item.

passwordExpire
CheckIdlong

The ID of the check item.

2546
Levelstring

The risk level of the risk item. Valid values:

  • high
  • medium
  • low
high
Reasonstring

The description.

ignore
FixStatusinteger

Indicates whether fixing is supported. Valid values:

  • 0: Fixing is not supported.
  • 1: Fixing is supported.
0
ExecErrorMessagestring

The error message in the check result.

ScriptKilledOfCpuHigh
LastHandleTimelong

The timestamp of the latest processing of the check item risk of the machine. Unit: milliseconds.

1694692471000

Examples

Sample success responses

JSONformat

{
  "CurrentPage": 1,
  "PageSize": 20,
  "RequestId": "0DFCADBA-7065-42DA-AF17-6868B9C2A8CF",
  "TotalCount": 100,
  "Count": 10,
  "CheckWarnings": [
    {
      "Status": 1,
      "CheckWarningId": 212251441,
      "Type": "hc.check.type.identity_auth",
      "Uuid": "d42f938c-d962-48a0-90f9-****",
      "ContainerName": "/svn-host",
      "ContainerId": "8de456b00ff0a2009ee8ef7fc59fd0457fa44f20b8282af3e79c2a0e2492****",
      "Item": "passwordExpire",
      "CheckId": 2546,
      "Level": "high",
      "Reason": "ignore",
      "FixStatus": 0,
      "ExecErrorMessage": "ScriptKilledOfCpuHigh",
      "LastHandleTime": 1694692471000
    }
  ]
}

Error codes

HTTP status codeError codeError messageDescription
400UnknownErrorUnknownError-
400ConsoleErrorThe error message is %s %s.-
400RdCheckNoPermissionResource directory account verification has no permission.-
403NoPermissioncaller has no permissionYou are not authorized to do this operation.
500RdCheckInnerErrorResource directory account service internal error.-
500ServerErrorServerError-

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-01-11The Error code has changed. The response structure of the API has changedView Change Details
2023-11-24The Error code has changed. The response structure of the API has changedView Change Details
2023-11-14The Error code has changed. The request parameters of the API has changedView Change Details
2023-08-21The Error code has changed. The request parameters of the API has changedView Change Details
2023-08-18The Error code has changed. The request parameters of the API has changedView Change Details
2023-03-22The Error code has changed. The request parameters of the API has changedView Change Details