Data Socket Reset¶
This resource sends a command to the server to reset data socket when there is a network connection failure.
Resource |
api/nic/gpr/data_socket_reset |
Returns |
status message |
Supported methods |
|
Attributes¶
N/A
Reset the Data Socket Port¶
Sample request¶
response = requests.put("http://192.168.20.221:8080/api/nic/gpr/data_socket_reset", data={"data": {}})
curl -X PUT --data-urlencode "data={}" http://192.168.20.221:8080/api/nic/gpr/data_socket
Sample response data¶
{
"data": {}
}
Errors¶
Device Not Initialized¶
(Status Code: 1006)
This error is returned when the data socket has not been setup. Refer to resource Data Socket on how setup a data socket.
Device Failed to Initialized¶
(Status Code: 1006)
This error is returned when the server is unable to communicate with the data socket.