CreatePADiagnosisTask
Creates a diagnostic task for internal network access.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
csas:CreatePADiagnosisTask |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DiagnoseType |
string |
Yes |
The diagnosis type. Valid values:
|
FullLink |
| Username |
string |
No |
The username. |
Zhaosi |
| DevTag |
string |
No |
The ID of the terminal device. |
2987b3e0-8108-2f99-4d18-3b4f1c1c36d7 |
| UserGroupId |
string |
No |
The user group ID. |
用户组ID。 |
| Protocol |
string |
Yes |
The protocol used by the internal network access application. Valid values:
|
TCP |
| Host |
string |
Yes |
The address to diagnose. |
socialapp-gateway.client9.me |
| Port |
string |
Yes |
The port. |
80 |
| PopMode |
string |
Yes |
The POP point selection mode. Valid values:
|
ManualSelect |
| PopId |
string |
No |
The POP point ID. |
pop-3e244b62357dcafc |
| UdpExtraConfigs |
object |
No |
The extra configurations for UDP diagnosis. If this parameter is not specified, any response received is considered a success. |
|
| RequestContent |
string |
No |
The UDP request content. |
hello |
| ExpectedResponse |
string |
No |
The expected response from the backend server. |
hello |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
5F79AE39-6622-5292-87EF-DE45631DE4D7 |
| DiagnosisTask |
object |
The diagnostic task. |
|
| DiagnoseType |
string |
The diagnosis type. Valid values:
|
FullLink |
| UserGroup |
object |
The user group. |
|
| UserGroupId |
string |
The user group ID. |
ug-xxxxxxxx |
| UserGroupName |
string |
The user group name. |
IT |
| DevTag |
string |
The ID of the terminal device. |
E9EE1CE7-4AA0-521D-B8E1-E13E47F05E94 |
| Username |
string |
The username. |
zhangsan |
| Protocol |
string |
The protocol used by the internal network access application. Valid values:
|
TCP |
| Host |
string |
The address to diagnose. |
172.16.6.1 |
| Port |
string |
The port. |
443 |
| PopMode |
string |
The POP point selection mode. Valid values:
|
AutoSelect |
| PopId |
string |
The POP point ID. This parameter is required when manual selection is used. |
pop-8ded63ce9d3d317e |
| UdpExtraConfigs |
object |
The extra information for UDP diagnosis. |
|
| RequestContent |
string |
The UDP request content. |
hello |
| ExpectedResponse |
string |
The expected backend server response. |
hello |
| DiagnoseId |
string |
The diagnostic task ID. |
diag-3e0d36d6c15a0502 |
| Status |
string |
The task running status. Valid values:
|
Disabled |
Examples
Success response
JSON format
{
"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"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.