创建内网访问诊断任务
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| DiagnoseType |
string |
是 |
诊断类型,可选的有:
|
FullLink |
| Username |
string |
否 |
用户名。 |
Zhaosi |
| DevTag |
string |
否 |
终端设备 ID。 |
2987b3e0-8108-2f99-4d18-3b4f1c1c36d7 |
| UserGroupId |
string |
否 |
用户组 ID。 |
用户组ID。 |
| Protocol |
string |
是 |
内网访问应用协议。取值:
|
TCP |
| Host |
string |
是 |
要诊断的地址。 |
socialapp-gateway.client9.me |
| Port |
string |
是 |
端口。 |
80 |
| PopMode |
string |
是 |
pop 点选择模式:
|
ManualSelect |
| PopId |
string |
否 |
POP 点 ID。 |
pop-3e244b62357dcafc |
| UdpExtraConfigs |
object |
否 |
UDP 诊断额外配置。如不配置,则代表接收到任何响应内容即视为成功。 |
|
| RequestContent |
string |
否 |
UDP 请求内容。 |
hello |
| ExpectedResponse |
string |
否 |
用户预期的后端服务器返回信息。 |
hello |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
5F79AE39-6622-5292-87EF-DE45631DE4D7 |
| DiagnosisTask |
object |
诊断任务。 |
|
| DiagnoseType |
string |
诊断类型,可选的有:
|
FullLink |
| UserGroup |
object |
用户组 |
|
| UserGroupId |
string |
用户组 ID。 |
ug-xxxxxxxx |
| UserGroupName |
string |
用户组名称。 |
IT |
| DevTag |
string |
终端设备 ID。 |
E9EE1CE7-4AA0-521D-B8E1-E13E47F05E94 |
| Username |
string |
用户名。 |
zhangsan |
| Protocol |
string |
内网访问应用协议。取值:
|
TCP |
| Host |
string |
要诊断的地址。 |
172.16.6.1 |
| Port |
string |
端口 |
443 |
| PopMode |
string |
pop 点选择模式:
|
AutoSelect |
| PopId |
string |
POP 点 ID。手动选择时必传。 |
pop-8ded63ce9d3d317e |
| UdpExtraConfigs |
object |
UDP 诊断额外信息。 |
|
| RequestContent |
string |
UDP 请求内容。 |
hello |
| ExpectedResponse |
string |
用户预期的后端服务器返回信息。 |
hello |
| DiagnoseId |
string |
诊断任务 ID。 |
diag-3e0d36d6c15a0502 |
| Status |
string |
任务运行状态。取值:
|
Disabled |
示例
正常返回示例
JSON格式
{
"RequestId": "5F79AE39-6622-5292-87EF-DE45631DE4D7",
"DiagnosisTask": {
"DiagnoseType": "FullLink",
"UserGroup": {
"UserGroupId": "ug-xxxxxxxx",
"UserGroupName": "IT"
},
"DevTag": "E9EE1CE7-4AA0-521D-B8E1-E13E47F05E94",
"Username": "zhangsan",
"Protocol": "TCP",
"Host": "172.16.6.1",
"Port": "443",
"PopMode": "AutoSelect",
"PopId": "pop-8ded63ce9d3d317e",
"UdpExtraConfigs": {
"RequestContent": "hello",
"ExpectedResponse": "hello"
},
"DiagnoseId": "diag-3e0d36d6c15a0502",
"Status": "Disabled"
}
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。