You need to enable JavaScript to run this app.
文档中心
复制全文
下载 pdf
一键诊断
CreateDiagnosisInstance - 创建实例诊断
复制全文
下载 pdf
CreateDiagnosisInstance - 创建实例诊断
调用CreateDiagnosisInstance接口,创建实例诊断。​
请求参数​
Action String 必选 示例值:CreateDiagnosisInstance​
接口名称。当前 API 的名称为 CreateDiagnosisInstance。​
​
Version String 必选 示例值:2020-04-01​
接口版本。当前 API 的版本为 2020-04-01。​
​
ResourceType String 必选 示例值:EIP​
资源类型,取值如下:​
  • EIP:公网IP。​
  • NAT:NAT网关。​
  • CLB:传统型负载均衡。​
  • VPN:VPN网关。​
  • TR:中转路由器。​
  • PL:私网连接。​
  • DC:专线连接。​
​
ResourceRegion String 必选 示例值:cn-beijing​
资源所在的地域。​
​
ResourceInstanceId String 必选 示例值:eip-2ziwb7ujxscd****​
资源实例ID。​
​
​
​
返回参数​
DiagnosisInstanceId String 示例值:di-12b8n3mdsl4hs****​
实例诊断ID。​
​
​
​
请求示例​
​
GET /?Action=CreateDiagnosisInstance&Version=2020-04-01&ResourceType=EIP&ResourceRegion=cn-beijing&ResourceInstanceId=eip-2ziwb7ujxscd****​
Host: na.volcengineapi.com​
X-Date: 20251121T094038Z​
Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20251121/cn-beijing/na/request, SignedHeaders=host;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f​
​
返回示例​
​
{​
"ResponseMetadata": {​
"RequestId": "20230604110420****100232280022D31",​
"Action": "CreateDiagnosisInstance",​
"Version": "2020-04-01",​
"Service": "na",​
"Region": "cn-beijing"​
},​
"Result": {​
"DiagnosisInstanceId": "di-12b8n3mdsl4hs****"​
}​
}​
​
错误码​
​
状态码​
错误码​
错误信息​
说明​
400​
InvalidDiagResourceRegion.NotSupported​
The specified resource region is not supported.​
指定的资源地域未支持。​
400​
InvalidDiagResourceType.NotSupported​
The specified resource type is not supported.​
指定的资源类型未支持。​
400​
InvalidPaging.Malformed​
The specified PageNumber or PageSize is malformed.​
指定的分页参数格式不合法。​
400​
InvalidResourceInstance.Limit​
The specified resource instance has been diagnosed recently, please try again later.​
指定的资源实例近期已经诊断过,请稍后重试。​
400​
InvalidResourceInstance.NotFound​
The specified resource instance is not found.​
指定的资源实例未找到。​
500​
ErrDiagEntryNotFound​
Can't get diagnosis entries for the specified resource type​
指定的资源类型无法获取诊断项。​
​
​
最近更新时间:2026.11.02 16:27:00
这个页面对您有帮助吗?
有用
有用
无用
无用