根据提供的错误码获取对应的错误诊断解决方案。
接口说明
该接口查询的是公开信息,不涉及账号特殊归属等信息,故不支持授权。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
 调试
        
            调试
        
    
授权信息
请求语法
GET /getErrorCodeSolutions HTTP/1.1请求参数
| 名称 | 类型 | 必填 | 描述 | 示例值 | 
| errorCode | string | 是 | 需要查询诊断方案的错误码。 | IncorrectStatus.TransitRouter | 
| errorMessage | string | 否 | 需查询诊断方案的错误消息,必须搭配错误码(errorCode)参数共同使用。 | The resource is not in a valid state for the operation. | 
| product | string | 否 | 产品 CODE。 
 | Ecs | 
| acceptLanguage | string | 否 | 查询对应语言的诊断方案,支持中文(zh-CN)与英文(en-US)。需要注意的是并非所有诊断方案具备英文内容,如诊断方案无英文内容,则返回为空。 zh-CN 枚举值: 
 | zh-CN | 
返回参数
| 名称 | 类型 | 描述 | 示例值 | 
| object | Schema of Response | ||
| solutions | array<object> | 解决方案列表,并非所有报错都有对应的诊断方案,且解决方案可能因业务逻辑的调整而发生变化。如有需求,您可以通过提交工单或访问 API 门户向我们反馈。 | |
| object | 诊断方案列表。每个元素包含以下属性: | ||
| content | string | 错误码诊断方案,以 markdown 格式返回。 | Unsupported transit router status\n====\n\nCause\n----\n\nThe transit router is in an unstable state.\n\n* * *\n\nSolution\n----\n\nTry again after the transit router enters a stable state. You can check whether the transit router is in a stable state based on the following information.\n\nExample\n------\n\nBefore you proceed, make sure that the transit route is in a stable state.\n\n1. Go to the console. If the status of the transit router in the Transit Router list is Available, the transit router is in a stable state.\n\n2. Call the ListTransitRouters operation. If Active is returned for Status, the transit router is in a stable state. | 
| solutionId | string | 解决方案 ID | 0017-00000502 | 
| product | string | 诊断方案所属的产品 CODE。 | Ecs | 
| productName | string | 诊断方案所属的产品服务名称。 | Elastic Compute Service | 
| errorCode | string | 诊断方案所对应的错误码。 | IncorrectStatus.TransitRouter | 
| errorMessage | string | 诊断方案所对应的错误消息。 | The resource is not in a valid state for the operation. | 
| requestId | string | 本次请求的 Request ID。 | A707AFA8-1A4C-5B2A-A165-8436C1EA38DB | 
示例
正常返回示例
JSON格式
{
  "solutions": [
    {
      "content": "Unsupported transit router status\\n====\\n\\nCause\\n----\\n\\nThe transit router is in an unstable state.\\n\\n* * *\\n\\nSolution\\n----\\n\\nTry again after the transit router enters a stable state. You can check whether the transit router is in a stable state based on the following information.\\n\\nExample\\n------\\n\\nBefore you proceed, make sure that the transit route is in a stable state.\\n\\n1. Go to the console. If the status of the transit router in the Transit Router list is Available, the transit router is in a stable state.\\n\\n2. Call the ListTransitRouters operation. If Active is returned for Status, the transit router is in a stable state.",
      "solutionId": "0017-00000502",
      "product": "Ecs",
      "productName": "Elastic Compute Service",
      "errorCode": "IncorrectStatus.TransitRouter",
      "errorMessage": "The resource is not in a valid state for the operation."
    }
  ],
  "requestId": "A707AFA8-1A4C-5B2A-A165-8436C1EA38DB"
}错误码
| HTTP status code | 错误码 | 错误信息 | 描述 | 
|---|---|---|---|
| 400 | InvalidParam.AcceptLanguage | Accepted language should only be zh-CN or en-US. | 参数无效,接受的语言只能是zh-CN或en-US。 | 
| 400 | InvalidParam.ErrorCode | The errorCode should be a string and cannot be empty. | ErrorCode参数无效,应该是字符串,不能为空。 | 
| 400 | InvalidParam.ErrorMessage | The errorMessage should be a string or null. | 参数 errorMessage 无效。ErrorMessage应该是字符串或null。 | 
| 400 | InvalidParam.Product | The product should be a string or null. | 参数 product 无效,应该是字符串或null。 | 
| 404 | NotFound.Product | The provided product does not exist. | 您提供的产品名称不存在。 | 
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。