All Products
Search
Document Center

Security Center:DescribeCheckWarnings

Last Updated:Feb 20, 2024

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

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

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:DescribeCheckWarningsRead
  • 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 You can call the DescribeMonitorAccounts operation to obtain the IDs.
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
CheckWarningsobject []

The information 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 triggered by the check item.

212251441
Typestring

The type of the check item.

hc.check.type.identity_auth
Uuidstring

The UUID 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 severity level of a risk item. Valid values:

  • high
  • medium
  • low
high
Reasonstring

The remarks.

ignore
FixStatusinteger

Indicates whether the fix is supported. Valid values:

  • 0: The fix is not supported.
  • 1: The fix 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 changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400
    delete Error Codes: 500
Output ParametersThe response structure of the API has changed.
2023-11-24The Error code has changed. The response structure of the API has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400
    delete Error Codes: 500
Output ParametersThe response structure of the API has changed.
2023-11-14The Error code has changed. The request parameters of the API has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    Error Codes 400 change
    Added Error Codes: 500
Input ParametersThe request parameters of the API has changed.
    Added Input Parameters: ResourceDirectoryAccountId
2023-08-21The Error code has changed. The request parameters of the API has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400
Input ParametersThe request parameters of the API has changed.
    delete Input Parameters: Source
2023-08-18The Error code has changed. The request parameters of the API has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400
Input ParametersThe request parameters of the API has changed.
    Added Input Parameters: Source
2023-03-22The Error code has changed. The request parameters of the API has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400
Input ParametersThe request parameters of the API has changed.
    Added Input Parameters: ContainerName