All Products
Search
Document Center

Microservices Engine:ListClusterHealthCheckTask

Last Updated:Aug 12, 2024

Obtains information about historical health check tasks.

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
mse:ListClusterHealthCheckTaskget
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
InstanceIdstringNo

The ID of the instance.

mse_prepaid_public_cn-7pp2o4wfx01
PageNumintegerNo

The number of the page to return.

0
PageSizeintegerNo

The number of entries to return on each page.

10
RegionIdstringNo

The region in which the instance resides.

cn-hangzhou
RequestParsstringNo

The extended request parameters in the JSON format.

{}
AcceptLanguagestringNo

The language of the response. Valid values:

  • zh: Chinese
  • en: English
zh

Response parameters

ParameterTypeDescriptionExample
object

RestResult<PageResult>

RequestIdstring

The ID of the request.

4E9FDCFE-0738-493B-B801-82BDFBCB****
Successboolean

Indicates whether the request was successful. Valid values:

  • true: The request was successful.
  • false: The request failed.
true
Codeinteger

The status code. A value of 200 is returned if the request was successful.

200
ErrorCodestring

The error code returned if the request failed. Take note of the following rules:

  • The ErrorCode parameter is not returned if the request is successful.
  • The ErrorCode parameter is returned if the request fails. For more information, see the Error codes section in this topic.
mse-100-000
HttpStatusCodeinteger

The HTTP status code returned.

200
Messagestring

The message returned.

The request was successfully processed.
DynamicCodestring

The dynamic part in the error message.

code
DynamicMessagestring

The dynamic part in the error message. This parameter is used to replace the **%s** variable in the ErrMessage parameter.

Note If the return value of the ErrMessage parameter is The Value of Input Parameter %s is not valid and the return value of the DynamicMessage parameter is DtsJobId, the specified DtsJobId parameter is invalid.
The specified parameter is invalid.
Dataobject

The details of the data.

PageNumberinteger

The page number of the returned page.

0
TotalSizeinteger

The total number of returned entries.

9
PageSizeinteger

The number of entries returned per page.

10
Resultarray<object>

The list of health check tasks.

object

The health check task.

Idinteger

The ID.

1
Scoreinteger

The total score.

60
TotalIteminteger

The total number of check items.

10
TotalRiskinteger

The total number of risk items.

3
InstanceIdstring

The ID of the instance.

mse_ingresspost-cn-0jbvrcex****
ClusterTypestring

The type of the cluster.

Nacos-Ans
Typestring

A redundant parameter.

null
Statusstring

The status of the task.

FINISH
PrimaryUserstring

The ID of the user to which the instance belongs.

123456
Specstring

The specifications.

MSE_SC_2_4_200_c
Replicastring

The number of nodes in the instance.

3
VersionCodestring

The version number.

NACOS_ANS_1_2_1_3
AppVersionstring

The complete version number.

1.2.1
ImageVersionstring

A redundant parameter.

null
CreateTimestring

The time when the task was created.

2022-06-20T06:51:46Z
UpdateTimestring

The last update time.

2022-11-12 15:07:55
RiskListarray<object>

The list of risk items.

object

The information about risk items.

Idinteger

The ID.

3426
TaskIdlong

The ID of the associated parent task.

1
RiskNamestring

The name of the risk.

The engine version is outdated.
RiskCodestring

The risk code.

22020010001
PrimaryUserstring

The ID of the user to which the cluster belongs.

123456
Typeinteger

A redundant parameter.

null
Valuesstring

A redundant parameter.

null
Modulestring

A redundant parameter.

null
RiskTypestring

The type of the risk.

Version risk
RiskLevelstring

The severity of the risk. Valid values:

  • HIGH: high risk
  • MID: medium risk
  • LOW: low risk
MID
Suggestionstring

The suggestion.

{"desc": "Upgrade to the latest version at the earliest opportunity.", "links":\[{"type": "upgrade", "desc": "Click to upgrade"}]}
Situationstring

The situation.

{\\"desc\\":\\"The engine version is outdated and a large number of features are not supported.\\",\\"links\\":\[{\\"type\\":\\"url\\",\\"value\\":\\"https://xxxx"\\",\\"desc\\":\\"Release notes\\"}]}
Descriptionstring

The description.

{\\"desc\\":\\"The engine version is outdated and a large number of features are not supported. Upgrade the engine to the latest version at the earliest opportunity. \\"}
Muteboolean

Indicates whether the risk item notification feature is disabled.

  • true: disabled
  • false: enabled
false
NoticeFeatureboolean

A redundant parameter.

null
ChargeTypestring

The billing method.

PREPAY

Examples

Sample success responses

JSONformat

{
  "RequestId": "4E9FDCFE-0738-493B-B801-82BDFBCB****",
  "Success": true,
  "Code": 200,
  "ErrorCode": "mse-100-000",
  "HttpStatusCode": 200,
  "Message": "The request was successfully processed.\n",
  "DynamicCode": "code",
  "DynamicMessage": "The specified parameter is invalid.",
  "Data": {
    "PageNumber": 0,
    "TotalSize": 9,
    "PageSize": 10,
    "Result": [
      {
        "Id": 1,
        "Score": 60,
        "TotalItem": 10,
        "TotalRisk": 3,
        "InstanceId": "mse_ingresspost-cn-0jbvrcex****",
        "ClusterType": "Nacos-Ans",
        "Type": "null\n",
        "Status": "FINISH",
        "PrimaryUser": "123456",
        "Spec": "MSE_SC_2_4_200_c",
        "Replica": "3",
        "VersionCode": "NACOS_ANS_1_2_1_3",
        "AppVersion": "1.2.1",
        "ImageVersion": "null",
        "CreateTime": "2022-06-20T06:51:46Z",
        "UpdateTime": "2022-11-12 15:07:55",
        "RiskList": [
          {
            "Id": 3426,
            "TaskId": 1,
            "RiskName": "The engine version is outdated.\n",
            "RiskCode": "22020010001",
            "PrimaryUser": "123456",
            "Type": 0,
            "Values": "null",
            "Module": "null",
            "RiskType": "Version risk\n",
            "RiskLevel": "MID",
            "Suggestion": "{\"desc\": \"Upgrade to the latest version at the earliest opportunity.\", \"links\":\\[{\"type\": \"upgrade\", \"desc\": \"Click to upgrade\"}]}\n",
            "Situation": "{\\\\\"desc\\\\\":\\\\\"The engine version is outdated and a large number of features are not supported.\\\\\",\\\\\"links\\\\\":\\[{\\\\\"type\\\\\":\\\\\"url\\\\\",\\\\\"value\\\\\":\\\\\"https://xxxx\"\\\\\",\\\\\"desc\\\\\":\\\\\"Release notes\\\\\"}]}\n",
            "Description": "{\\\\\"desc\\\\\":\\\\\"The engine version is outdated and a large number of features are not supported. Upgrade the engine to the latest version at the earliest opportunity. \\\\\"}\n",
            "Mute": false,
            "NoticeFeature": true
          }
        ],
        "ChargeType": "PREPAY"
      }
    ]
  }
}

Error codes

HTTP status codeError codeError messageDescription
400duplicatedClusterAliasNameduplicated cluster alias nameThe instance name is duplicate. User another name.
400illegalRequestillegal request:%sInvalid request: %s
403NoPermissionYou are not authorized to perform this operation:%sYou do not have the permission to use this interface:%s
404clusterNotFoundcluster not foundThe cluster is not found.
500systemErrorsystem errorAn error occurred on the system. Try again later.

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

Change history

Change timeSummary of changesOperation
2023-04-25The internal configuration of the API is changed, but the call is not affectedView Change Details