TestNetworkConnection
Tests the network connectivity between a data source and a resource group.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dataworks:* |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ProjectId |
integer |
Yes |
The DataWorks workspace ID. Call the ListProjects operation to query the ID. |
100001 |
| DatasourceName |
string |
Yes |
The name of the data source. |
mysql_name |
| EnvType |
string |
Yes |
The data source environment. Valid values:
|
1 |
| ResourceGroup |
string |
Yes |
The resource group identifier. Call the ListResourceGroups operation to query it. |
S_res_group_2XXXX4_1619100XXXXX |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Success |
boolean |
Whether the request was successful. Valid values:
|
true |
| RequestId |
string |
The request ID. Use it to locate logs and troubleshoot issues. |
0000-ABCD-EFG |
| TaskList |
object |
The connectivity test result. |
|
| ConnectMessage |
string |
The failure reason for the connectivity test. Empty if the test passed. |
Connectable |
| ConnectStatus |
boolean |
The connectivity test result. Valid values:
|
true |
Examples
Success response
JSON format
{
"Success": true,
"RequestId": "0000-ABCD-EFG\t",
"TaskList": {
"ConnectMessage": "Connectable",
"ConnectStatus": true
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Invalid.DI.Parameter | The parameter is invalid. | |
| 500 | InternalError.DI.Parameter | A DI internal error occurred. | |
| 403 | Forbidden.DI.NoPrivilege | No access. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.