Show the network DNS server
Description
Show the network DNS server
HTTP Example
GET /webmapi/net/services/dns
Output
Reports successful result in ResponseContentType<ClusterDnsServerOutputType>
Errors
Reports errors in ResponseContentType<ErrorType>
| Error Key | Error Code | Error Description |
|---|---|---|
| NETWORK_DNS_SERVER_SHOW_INTERNAL_ERROR | 35008 | Internal error occurred. |
| NETWORK_DNS_SERVER_SHOW_REQUEST_IN_PROGRESS | 35009 | Another request is in progress. |
| NETWORK_DNS_SERVER_SHOW_DNS_UNINITIALIZED | 35010 | Network DNS server not initialized. |
| NETWORK_DNS_SERVER_SHOW_SHELL_FAILURE | 35011 | Network operation failed. |
| NETWORK_DNS_SERVER_SHOW_NETWORK_SHUTDOWN | 35012 | Network shutdown in progress. |
Produces
application/json
Since
1.0.1
Set the network DNS server
Description
Set the network DNS server
To clear DNS settings, pass all empty fields to input except for protocol.
HTTP Example
PUT /webmapi/net/services/dns
Input
Pass input arguments in ClusterDnsServerModifyInputType
Output
Reports successful result in ResponseContentType
Errors
Reports errors in ResponseContentType<ErrorType>
| Error Key | Error Code | Error Description |
|---|---|---|
| NETWORK_DNS_SERVER_MODIFY_INTERNAL_ERROR | 35013 | Internal error occurred. |
| NETWORK_DNS_SERVER_MODIFY_REQUEST_IN_PROGRESS | 35014 | Another request is in progress. |
| NETWORK_DNS_SERVER_MODIFY_SHELL_FAILURE | 35015 | Network operation failed. |
| NETWORK_DNS_SERVER_MODIFY_NETWORK_SHUTDOWN | 35016 | Network shutdown in progress. |
| NETWORK_DNS_SERVER_MODIFY_NETWORK_IPV6_NOT_SUPPORTED | 35017 | IPV6 not supported. |
| NETWORK_DNS_SERVER_MODIFY_NUM_NETWORK_DNS_SERVERS | 35018 | Incorrect number of DNS servers. |
| NETWORK_DNS_SERVER_MODIFY_DUPLICATE_DNS_SERVERS | 35019 | Duplicate DNS servers. |
| NETWORK_DNS_SERVER_MODIFY_INVALID_DNS_SERVER_IP | 35020 | INVALID DNS server IP. |
Produces
application/json
Consumes
application/json
Since
1.0.1
APIs for network interfaces