查看服务实例的诊断详情。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
eas:DescribeServiceInstanceDiagnosis |
get |
*Service
|
无 | 无 |
请求语法
GET /api/v2/services/{ClusterId}/{ServiceName}/instances/{InstanceName}/diagnosis HTTP/1.1
路径参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| ClusterId |
string |
是 |
服务所在地域 ID。 |
cn-shanghai |
| ServiceName |
string |
是 |
服务的名称。 |
foo |
| InstanceName |
string |
是 |
服务实例的名称。 |
foo-69xxxx4f4-5w9r9 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
当前API无需请求参数
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
返回结果。 |
||
| RequestId |
string |
请求 ID。 |
40325405-579C-4D82*** |
| Diagnosis |
object |
诊断信息。 |
|
| Error |
string |
识别到的异常。 |
Container worker0 failed to pull image. |
| Causes |
array |
异常原因列表。 |
|
|
string |
异常原因。 |
Failed to pull image "busybox:no_exist_tag": rpc error: code = NotFound. |
|
| Advices |
array |
修复建议列表。 |
|
|
string |
修复建议。 |
Please make sure the container image exists. |
示例
正常返回示例
JSON格式
{
"RequestId": "40325405-579C-4D82***",
"Diagnosis": {
"Error": "Container worker0 failed to pull image.",
"Causes": [
"Failed to pull image \"busybox:no_exist_tag\": rpc error: code = NotFound."
],
"Advices": [
"Please make sure the container image exists."
]
}
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。