Get default route
1. API Description
This API is used to get the default route.
Request mode: POST [ip]/api/network/route
Administrator Rights | Logged-in |
---|---|
Yes | Yes |
2. Input Parameters
None
3. Output Parameters
Name | Type | Description |
---|---|---|
status | Int | Status code |
iface | String | The network card that the default route goes through. If iface is null, it indicates that there is no route. |
4. Example
Obtaining the default route.
Input Example
None
Output Example
{
"iface": "",
"status": 0
}
5. Error Code
No error code related to the API business logic. For other error codes, see Common Error Codes.