2020-11-20 18:06:07 +03:00
|
|
|
'openapi': '3.0.3'
|
|
|
|
'info':
|
|
|
|
'title': 'AdGuard Home'
|
|
|
|
'description': >
|
2020-12-17 13:32:46 +03:00
|
|
|
AdGuard Home REST-ish API. Our admin web interface is built on top of this
|
|
|
|
REST-ish API.
|
2021-07-20 12:31:52 +03:00
|
|
|
'version': '0.107'
|
2020-11-20 18:06:07 +03:00
|
|
|
'contact':
|
|
|
|
'name': 'AdGuard Home'
|
|
|
|
'url': 'https://github.com/AdguardTeam/AdGuardHome'
|
2018-11-26 12:48:17 +03:00
|
|
|
|
2020-11-20 18:06:07 +03:00
|
|
|
'servers':
|
|
|
|
- 'url': '/control'
|
2018-11-26 12:48:17 +03:00
|
|
|
|
2020-12-04 05:49:45 +03:00
|
|
|
'security':
|
|
|
|
- 'basicAuth': []
|
|
|
|
|
2020-11-20 18:06:07 +03:00
|
|
|
'tags':
|
|
|
|
- 'name': 'clients'
|
|
|
|
'description': 'Clients list operations'
|
|
|
|
- 'name': 'dhcp'
|
|
|
|
'description': 'Built-in DHCP server controls'
|
|
|
|
- 'name': 'filtering'
|
|
|
|
'description': 'Rule-based filtering'
|
|
|
|
- 'name': 'global'
|
|
|
|
'description': 'AdGuard Home server general settings and controls'
|
|
|
|
- 'name': 'i18n'
|
|
|
|
'description': 'Application localization'
|
|
|
|
- 'name': 'install'
|
|
|
|
'description': 'First-time install configuration handlers'
|
|
|
|
- 'name': 'log'
|
|
|
|
'description': 'AdGuard Home query log'
|
|
|
|
- 'name': 'mobileconfig'
|
|
|
|
'description': 'Apple .mobileconfig'
|
|
|
|
- 'name': 'parental'
|
|
|
|
'description': 'Blocking adult and explicit materials'
|
|
|
|
- 'name': 'safebrowsing'
|
|
|
|
'description': 'Blocking malware/phishing sites'
|
|
|
|
- 'name': 'safesearch'
|
|
|
|
'description': 'Enforce family-friendly results in search engines'
|
|
|
|
- 'name': 'stats'
|
|
|
|
'description': 'AdGuard Home statistics'
|
|
|
|
- 'name': 'tls'
|
2021-06-18 18:13:36 +03:00
|
|
|
'description': 'AdGuard Home HTTPS/DoH/DoQ/DoT settings'
|
2018-11-26 12:48:17 +03:00
|
|
|
|
2020-11-20 18:06:07 +03:00
|
|
|
'paths':
|
|
|
|
'/status':
|
|
|
|
'get':
|
|
|
|
'tags':
|
|
|
|
- 'global'
|
|
|
|
'operationId': 'status'
|
|
|
|
'summary': 'Get DNS server current status and general settings'
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK'
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/ServerStatus'
|
|
|
|
'/dns_info':
|
|
|
|
'get':
|
|
|
|
'tags':
|
|
|
|
- 'global'
|
|
|
|
'operationId': 'dnsInfo'
|
|
|
|
'summary': 'Get general DNS parameters'
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK'
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
2021-06-01 14:28:34 +03:00
|
|
|
'allOf':
|
|
|
|
- '$ref': '#/components/schemas/DNSConfig'
|
|
|
|
- 'type': 'object'
|
|
|
|
'properties':
|
|
|
|
'default_local_ptr_upstreams':
|
|
|
|
'type': 'array'
|
|
|
|
'items':
|
|
|
|
'type': 'string'
|
|
|
|
'example':
|
|
|
|
- '192.168.168.192'
|
|
|
|
- '10.0.0.10'
|
2020-11-20 18:06:07 +03:00
|
|
|
'/dns_config':
|
|
|
|
'post':
|
|
|
|
'tags':
|
|
|
|
- 'global'
|
|
|
|
'operationId': 'dnsConfig'
|
|
|
|
'summary': 'Set general DNS parameters'
|
|
|
|
'requestBody':
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/DNSConfig'
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK'
|
2023-03-24 15:11:47 +03:00
|
|
|
'/protection':
|
|
|
|
'post':
|
|
|
|
'tags':
|
|
|
|
- 'global'
|
|
|
|
'operationId': 'setProtection'
|
|
|
|
'summary': 'Set protection state and duration'
|
|
|
|
'requestBody':
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/SetProtectionRequest'
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK'
|
2022-12-02 18:06:50 +03:00
|
|
|
'/cache_clear':
|
|
|
|
'post':
|
|
|
|
'tags':
|
|
|
|
- 'global'
|
|
|
|
'operationId': 'cacheClear'
|
|
|
|
'summary': 'Clear DNS cache'
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK'
|
2020-11-20 18:06:07 +03:00
|
|
|
'/test_upstream_dns':
|
|
|
|
'post':
|
|
|
|
'tags':
|
|
|
|
- 'global'
|
|
|
|
'operationId': 'testUpstreamDNS'
|
|
|
|
'summary': 'Test upstream configuration'
|
|
|
|
'requestBody':
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/UpstreamsConfig'
|
|
|
|
'description': 'Upstream configuration to be tested'
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': >
|
|
|
|
Status of testing each requested server, with "OK" meaning that
|
|
|
|
server works, any other text means an error.
|
|
|
|
'content':
|
|
|
|
'application/json':
|
2020-12-29 19:53:56 +03:00
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/UpstreamsConfigResponse'
|
2020-11-20 18:06:07 +03:00
|
|
|
'examples':
|
|
|
|
'response':
|
|
|
|
'value':
|
|
|
|
'1.1.1.1': 'OK'
|
|
|
|
'1.0.0.1': 'OK'
|
|
|
|
'8.8.8.8': 'OK'
|
|
|
|
'8.8.4.4': 'OK'
|
|
|
|
'192.168.1.104:53535': >
|
2022-01-13 15:05:44 +03:00
|
|
|
upstream "192.168.1.104:1234" fails to exchange: couldn't
|
|
|
|
communicate with upstream: read udp
|
|
|
|
192.168.1.100:60675->8.8.8.8:1234: i/o timeout
|
2020-11-20 18:06:07 +03:00
|
|
|
'/version.json':
|
|
|
|
'post':
|
|
|
|
'tags':
|
|
|
|
- 'global'
|
|
|
|
'operationId': 'getVersionJson'
|
|
|
|
'summary': >
|
|
|
|
Gets information about the latest available version of AdGuard
|
|
|
|
'requestBody':
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/GetVersionRequest'
|
|
|
|
'required': true
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': >
|
|
|
|
Version info. If response message is empty, UI does not show
|
|
|
|
a version update message.
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/VersionInfo'
|
|
|
|
'500':
|
|
|
|
'description': 'Cannot write answer'
|
|
|
|
'502':
|
|
|
|
'description': 'Cannot retrieve the version.json file contents'
|
|
|
|
'/update':
|
|
|
|
'post':
|
|
|
|
'tags':
|
|
|
|
- 'global'
|
|
|
|
'operationId': 'beginUpdate'
|
|
|
|
'summary': 'Begin auto-upgrade procedure'
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
|
|
|
'500':
|
|
|
|
'description': 'Failed'
|
|
|
|
'/querylog':
|
|
|
|
'get':
|
|
|
|
'tags':
|
|
|
|
- 'log'
|
|
|
|
'operationId': 'queryLog'
|
|
|
|
'summary': 'Get DNS server query log.'
|
|
|
|
'parameters':
|
|
|
|
- 'name': 'older_than'
|
|
|
|
'in': 'query'
|
|
|
|
'description': 'Filter by older than'
|
|
|
|
'schema':
|
|
|
|
'type': 'string'
|
|
|
|
- 'name': 'offset'
|
|
|
|
'in': 'query'
|
|
|
|
'description': >
|
|
|
|
Specify the ranking number of the first item on the page. Even
|
|
|
|
though it is possible to use "offset" and "older_than", we recommend
|
|
|
|
choosing one of them and sticking to it.
|
|
|
|
'schema':
|
|
|
|
'type': 'integer'
|
|
|
|
- 'name': 'limit'
|
|
|
|
'in': 'query'
|
|
|
|
'description': 'Limit the number of records to be returned'
|
|
|
|
'schema':
|
|
|
|
'type': 'integer'
|
|
|
|
- 'name': 'search'
|
|
|
|
'in': 'query'
|
|
|
|
'description': 'Filter by domain name or client IP'
|
|
|
|
'schema':
|
|
|
|
'type': 'string'
|
|
|
|
- 'name': 'response_status'
|
|
|
|
'in': 'query'
|
|
|
|
'description': 'Filter by response status'
|
|
|
|
'schema':
|
|
|
|
'type': 'string'
|
|
|
|
'enum':
|
|
|
|
- 'all'
|
|
|
|
- 'filtered'
|
|
|
|
- 'blocked'
|
|
|
|
- 'blocked_safebrowsing'
|
|
|
|
- 'blocked_parental'
|
|
|
|
- 'whitelisted'
|
|
|
|
- 'rewritten'
|
|
|
|
- 'safe_search'
|
|
|
|
- 'processed'
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/QueryLog'
|
|
|
|
'/querylog_info':
|
|
|
|
'get':
|
2023-03-23 13:46:57 +03:00
|
|
|
'deprecated': true
|
|
|
|
'description': |
|
|
|
|
Deprecated: Use `GET /querylog/config` instead.
|
|
|
|
|
|
|
|
NOTE: If `interval` was configured by editing configuration file or new
|
|
|
|
HTTP API call `PUT /querylog/config/update` and it's not equal to
|
|
|
|
previous allowed enum values then it will be equal to `90` days for
|
|
|
|
compatibility reasons.
|
2020-11-20 18:06:07 +03:00
|
|
|
'tags':
|
|
|
|
- 'log'
|
|
|
|
'operationId': 'queryLogInfo'
|
|
|
|
'summary': 'Get query log parameters'
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/QueryLogConfig'
|
|
|
|
'/querylog_config':
|
|
|
|
'post':
|
2023-03-23 13:46:57 +03:00
|
|
|
'deprecated': true
|
|
|
|
'description': >
|
|
|
|
Deprecated: Use `PUT /querylog/config/update` instead.
|
2020-11-20 18:06:07 +03:00
|
|
|
'tags':
|
|
|
|
- 'log'
|
|
|
|
'operationId': 'queryLogConfig'
|
|
|
|
'summary': 'Set query log parameters'
|
|
|
|
'requestBody':
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/QueryLogConfig'
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
|
|
|
'/querylog_clear':
|
|
|
|
'post':
|
|
|
|
'tags':
|
|
|
|
- 'log'
|
|
|
|
'operationId': 'querylogClear'
|
|
|
|
'summary': 'Clear query log'
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
2023-03-23 13:46:57 +03:00
|
|
|
'/querylog/config':
|
|
|
|
'get':
|
|
|
|
'tags':
|
|
|
|
- 'log'
|
|
|
|
'operationId': 'getQueryLogConfig'
|
|
|
|
'summary': 'Get query log parameters'
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/GetQueryLogConfigResponse'
|
|
|
|
'/querylog/config/update':
|
|
|
|
'put':
|
|
|
|
'tags':
|
|
|
|
- 'log'
|
|
|
|
'operationId': 'putQueryLogConfig'
|
|
|
|
'summary': 'Set query log parameters'
|
|
|
|
'requestBody':
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/PutQueryLogConfigUpdateRequest'
|
|
|
|
'required': true
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
2020-11-20 18:06:07 +03:00
|
|
|
'/stats':
|
|
|
|
'get':
|
|
|
|
'tags':
|
|
|
|
- 'stats'
|
|
|
|
'operationId': 'stats'
|
|
|
|
'summary': 'Get DNS server statistics'
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'Returns statistics data'
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/Stats'
|
|
|
|
'/stats_reset':
|
|
|
|
'post':
|
|
|
|
'tags':
|
|
|
|
- 'stats'
|
|
|
|
'operationId': 'statsReset'
|
|
|
|
'summary': 'Reset all statistics to zeroes'
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
|
|
|
'/stats_info':
|
|
|
|
'get':
|
2023-03-23 13:46:57 +03:00
|
|
|
'deprecated': true
|
|
|
|
'description': |
|
|
|
|
Deprecated: Use `GET /stats/config` instead.
|
|
|
|
|
|
|
|
NOTE: If `interval` was configured by editing configuration file or new
|
|
|
|
HTTP API call `PUT /stats/config/update` and it's not equal to
|
|
|
|
previous allowed enum values then it will be equal to `90` days for
|
|
|
|
compatibility reasons.
|
2020-11-20 18:06:07 +03:00
|
|
|
'tags':
|
|
|
|
- 'stats'
|
|
|
|
'operationId': 'statsInfo'
|
|
|
|
'summary': 'Get statistics parameters'
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/StatsConfig'
|
|
|
|
'/stats_config':
|
|
|
|
'post':
|
2023-03-23 13:46:57 +03:00
|
|
|
'deprecated': true
|
|
|
|
'description': >
|
|
|
|
Deprecated: Use `PUT /stats/config/update` instead.
|
2020-11-20 18:06:07 +03:00
|
|
|
'tags':
|
|
|
|
- 'stats'
|
|
|
|
'operationId': 'statsConfig'
|
|
|
|
'summary': 'Set statistics parameters'
|
|
|
|
'requestBody':
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/StatsConfig'
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
2023-03-23 13:46:57 +03:00
|
|
|
'/stats/config':
|
|
|
|
'get':
|
|
|
|
'tags':
|
|
|
|
- 'stats'
|
|
|
|
'operationId': 'getStatsConfig'
|
|
|
|
'summary': 'Get statistics parameters'
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/GetStatsConfigResponse'
|
|
|
|
'/stats/config/update':
|
|
|
|
'put':
|
|
|
|
'tags':
|
|
|
|
- 'stats'
|
|
|
|
'operationId': 'putStatsConfig'
|
|
|
|
'summary': 'Set statistics parameters'
|
|
|
|
'requestBody':
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/PutStatsConfigUpdateRequest'
|
|
|
|
'required': true
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
2020-11-20 18:06:07 +03:00
|
|
|
'/tls/status':
|
|
|
|
'get':
|
|
|
|
'tags':
|
|
|
|
- 'tls'
|
|
|
|
'operationId': 'tlsStatus'
|
|
|
|
'summary': 'Returns TLS configuration and its status'
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/TlsConfig'
|
|
|
|
'/tls/configure':
|
|
|
|
'post':
|
|
|
|
'tags':
|
|
|
|
- 'tls'
|
|
|
|
'operationId': 'tlsConfigure'
|
|
|
|
'summary': 'Updates current TLS configuration'
|
|
|
|
'requestBody':
|
|
|
|
'$ref': '#/components/requestBodies/TlsConfig'
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'TLS configuration and its status'
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/TlsConfig'
|
|
|
|
'400':
|
|
|
|
'description': 'Invalid configuration or unavailable port'
|
|
|
|
'500':
|
|
|
|
'description': 'Error occurred while applying configuration'
|
|
|
|
'/tls/validate':
|
|
|
|
'post':
|
|
|
|
'tags':
|
|
|
|
- 'tls'
|
|
|
|
'operationId': 'tlsValidate'
|
|
|
|
'summary': 'Checks if the current TLS configuration is valid'
|
|
|
|
'requestBody':
|
|
|
|
'$ref': '#/components/requestBodies/TlsConfig'
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'TLS configuration and its status'
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/TlsConfig'
|
|
|
|
'400':
|
|
|
|
'description': 'Invalid configuration or unavailable port'
|
|
|
|
'/dhcp/status':
|
|
|
|
'get':
|
|
|
|
'tags':
|
|
|
|
- 'dhcp'
|
|
|
|
'operationId': 'dhcpStatus'
|
|
|
|
'summary': 'Gets the current DHCP settings and status'
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/DhcpStatus'
|
2021-01-20 15:59:24 +03:00
|
|
|
'500':
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/Error'
|
|
|
|
'description': 'Not implemented (for example, on Windows).'
|
|
|
|
'/dhcp/interfaces':
|
|
|
|
'get':
|
|
|
|
'tags':
|
|
|
|
- 'dhcp'
|
|
|
|
'operationId': 'dhcpInterfaces'
|
|
|
|
'summary': 'Gets the available interfaces'
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/NetInterfaces'
|
|
|
|
'500':
|
2020-11-20 18:06:07 +03:00
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/Error'
|
|
|
|
'description': 'Not implemented (for example, on Windows).'
|
|
|
|
'/dhcp/set_config':
|
|
|
|
'post':
|
|
|
|
'tags':
|
|
|
|
- 'dhcp'
|
|
|
|
'operationId': 'dhcpSetConfig'
|
|
|
|
'summary': 'Updates the current DHCP server configuration'
|
|
|
|
'requestBody':
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/DhcpConfig'
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
|
|
|
'501':
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/Error'
|
|
|
|
'description': 'Not implemented (for example, on Windows).'
|
|
|
|
'/dhcp/find_active_dhcp':
|
|
|
|
'post':
|
|
|
|
'tags':
|
|
|
|
- 'dhcp'
|
|
|
|
'operationId': 'checkActiveDhcp'
|
|
|
|
'summary': 'Searches for an active DHCP server on the network'
|
2022-09-29 19:04:26 +03:00
|
|
|
'requestBody':
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/DhcpFindActiveReq'
|
2020-11-20 18:06:07 +03:00
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/DhcpSearchResult'
|
|
|
|
'501':
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/Error'
|
|
|
|
'description': 'Not implemented (for example, on Windows).'
|
|
|
|
'/dhcp/add_static_lease':
|
|
|
|
'post':
|
|
|
|
'tags':
|
|
|
|
- 'dhcp'
|
|
|
|
'operationId': 'dhcpAddStaticLease'
|
|
|
|
'summary': 'Adds a static lease'
|
|
|
|
'requestBody':
|
|
|
|
'$ref': '#/components/requestBodies/DhcpStaticLease'
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
|
|
|
'501':
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/Error'
|
|
|
|
'description': 'Not implemented (for example, on Windows).'
|
|
|
|
'/dhcp/remove_static_lease':
|
|
|
|
'post':
|
|
|
|
'tags':
|
|
|
|
- 'dhcp'
|
|
|
|
'operationId': 'dhcpRemoveStaticLease'
|
|
|
|
'summary': 'Removes a static lease'
|
|
|
|
'requestBody':
|
|
|
|
'$ref': '#/components/requestBodies/DhcpStaticLease'
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
|
|
|
'501':
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/Error'
|
|
|
|
'description': 'Not implemented (for example, on Windows).'
|
2023-10-05 13:54:21 +03:00
|
|
|
'/dhcp/update_static_lease':
|
|
|
|
'post':
|
|
|
|
'tags':
|
|
|
|
- 'dhcp'
|
|
|
|
'operationId': 'dhcpUpdateStaticLease'
|
|
|
|
'description': >
|
|
|
|
Updates IP address, hostname of the static lease. IP version must be
|
|
|
|
the same as previous.
|
|
|
|
'summary': 'Updates a static lease'
|
|
|
|
'requestBody':
|
|
|
|
'$ref': '#/components/requestBodies/DhcpStaticLease'
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
|
|
|
'501':
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/Error'
|
|
|
|
'description': 'Not implemented (for example, on Windows).'
|
2020-11-20 18:06:07 +03:00
|
|
|
'/dhcp/reset':
|
|
|
|
'post':
|
|
|
|
'tags':
|
|
|
|
- 'dhcp'
|
|
|
|
'operationId': 'dhcpReset'
|
|
|
|
'summary': 'Reset DHCP configuration'
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
|
|
|
'501':
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/Error'
|
|
|
|
'description': 'Not implemented (for example, on Windows).'
|
2021-06-16 16:48:46 +03:00
|
|
|
'/dhcp/reset_leases':
|
|
|
|
'post':
|
|
|
|
'tags':
|
|
|
|
- 'dhcp'
|
|
|
|
'operationId': 'dhcpResetLeases'
|
|
|
|
'summary': 'Reset DHCP leases'
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
|
|
|
'501':
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/Error'
|
|
|
|
'description': 'Not implemented (for example, on Windows).'
|
2020-11-20 18:06:07 +03:00
|
|
|
'/filtering/status':
|
|
|
|
'get':
|
|
|
|
'tags':
|
|
|
|
- 'filtering'
|
|
|
|
'operationId': 'filteringStatus'
|
|
|
|
'summary': 'Get filtering parameters'
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/FilterStatus'
|
|
|
|
'/filtering/config':
|
|
|
|
'post':
|
|
|
|
'tags':
|
|
|
|
- 'filtering'
|
|
|
|
'operationId': 'filteringConfig'
|
|
|
|
'summary': 'Set filtering parameters'
|
|
|
|
'requestBody':
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/FilterConfig'
|
|
|
|
'required': true
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
|
|
|
'/filtering/add_url':
|
|
|
|
'post':
|
|
|
|
'tags':
|
|
|
|
- 'filtering'
|
|
|
|
'operationId': 'filteringAddURL'
|
|
|
|
'summary': 'Add filter URL or an absolute file path'
|
|
|
|
'requestBody':
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/AddUrlRequest'
|
|
|
|
'required': true
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
|
|
|
'/filtering/remove_url':
|
|
|
|
'post':
|
|
|
|
'tags':
|
|
|
|
- 'filtering'
|
|
|
|
'operationId': 'filteringRemoveURL'
|
|
|
|
'summary': 'Remove filter URL'
|
|
|
|
'requestBody':
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/RemoveUrlRequest'
|
|
|
|
'required': true
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
|
|
|
'/filtering/set_url':
|
|
|
|
'post':
|
|
|
|
'tags':
|
|
|
|
- 'filtering'
|
|
|
|
'operationId': 'filteringSetURL'
|
|
|
|
'summary': 'Set URL parameters'
|
|
|
|
'requestBody':
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/FilterSetUrl'
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
|
|
|
'/filtering/refresh':
|
|
|
|
'post':
|
|
|
|
'tags':
|
|
|
|
- 'filtering'
|
|
|
|
'operationId': 'filteringRefresh'
|
|
|
|
'summary': >
|
|
|
|
Reload filtering rules from URLs. This might be needed if new URL was
|
2021-08-31 17:32:59 +03:00
|
|
|
just added and you don't want to wait for automatic refresh to kick in.
|
2020-11-20 18:06:07 +03:00
|
|
|
This API request is ratelimited, so you can call it freely as often as
|
2020-12-21 17:48:07 +03:00
|
|
|
you like, it wont create unnecessary burden on servers that host the
|
2020-11-20 18:06:07 +03:00
|
|
|
URL. This should work as intended, a `force` parameter is offered as
|
|
|
|
last-resort attempt to make filter lists fresh. If you ever find
|
|
|
|
yourself using `force` to make something work that otherwise wont, this
|
|
|
|
is a bug and report it accordingly.
|
|
|
|
'requestBody':
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/FilterRefreshRequest'
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/FilterRefreshResponse'
|
|
|
|
'/filtering/set_rules':
|
|
|
|
'post':
|
|
|
|
'tags':
|
|
|
|
- 'filtering'
|
|
|
|
'operationId': 'filteringSetRules'
|
|
|
|
'summary': 'Set user-defined filter rules'
|
|
|
|
'requestBody':
|
|
|
|
'content':
|
2022-09-30 14:41:25 +03:00
|
|
|
'application/json':
|
2020-11-20 18:06:07 +03:00
|
|
|
'schema':
|
2022-09-30 14:41:25 +03:00
|
|
|
'$ref': '#/components/schemas/SetRulesRequest'
|
|
|
|
'description': 'Custom filtering rules.'
|
2020-11-20 18:06:07 +03:00
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
|
|
|
'/filtering/check_host':
|
|
|
|
'get':
|
|
|
|
'tags':
|
|
|
|
- 'filtering'
|
|
|
|
'operationId': 'filteringCheckHost'
|
|
|
|
'summary': 'Check if host name is filtered'
|
|
|
|
'parameters':
|
|
|
|
- 'name': 'name'
|
|
|
|
'in': 'query'
|
|
|
|
'description': 'Filter by host name'
|
|
|
|
'schema':
|
|
|
|
'type': 'string'
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/FilterCheckHostResponse'
|
|
|
|
'/safebrowsing/enable':
|
|
|
|
'post':
|
|
|
|
'tags':
|
|
|
|
- 'safebrowsing'
|
|
|
|
'operationId': 'safebrowsingEnable'
|
|
|
|
'summary': 'Enable safebrowsing'
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
|
|
|
'/safebrowsing/disable':
|
|
|
|
'post':
|
|
|
|
'tags':
|
|
|
|
- 'safebrowsing'
|
|
|
|
'operationId': 'safebrowsingDisable'
|
|
|
|
'summary': 'Disable safebrowsing'
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
|
|
|
'/safebrowsing/status':
|
|
|
|
'get':
|
|
|
|
'tags':
|
|
|
|
- 'safebrowsing'
|
|
|
|
'operationId': 'safebrowsingStatus'
|
|
|
|
'summary': 'Get safebrowsing status'
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
|
|
|
'content':
|
|
|
|
'application/json':
|
2020-12-29 19:53:56 +03:00
|
|
|
'schema':
|
|
|
|
'type': 'object'
|
2021-01-13 17:26:57 +03:00
|
|
|
'properties':
|
2020-12-29 19:53:56 +03:00
|
|
|
'enabled':
|
|
|
|
'type': 'boolean'
|
2020-11-20 18:06:07 +03:00
|
|
|
'examples':
|
|
|
|
'response':
|
|
|
|
'value':
|
|
|
|
'enabled': false
|
|
|
|
'/parental/enable':
|
|
|
|
'post':
|
|
|
|
'tags':
|
|
|
|
- 'parental'
|
|
|
|
'operationId': 'parentalEnable'
|
|
|
|
'summary': 'Enable parental filtering'
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
|
|
|
'/parental/disable':
|
|
|
|
'post':
|
|
|
|
'tags':
|
|
|
|
- 'parental'
|
|
|
|
'operationId': 'parentalDisable'
|
|
|
|
'summary': 'Disable parental filtering'
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
|
|
|
'/parental/status':
|
|
|
|
'get':
|
|
|
|
'tags':
|
|
|
|
- 'parental'
|
|
|
|
'operationId': 'parentalStatus'
|
|
|
|
'summary': 'Get parental filtering status'
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
|
|
|
'content':
|
|
|
|
'application/json':
|
2020-12-29 19:53:56 +03:00
|
|
|
'schema':
|
|
|
|
'type': 'object'
|
2021-01-13 17:26:57 +03:00
|
|
|
'properties':
|
2020-12-29 19:53:56 +03:00
|
|
|
'enable':
|
|
|
|
'type': 'boolean'
|
|
|
|
'sensitivity':
|
|
|
|
'type': 'integer'
|
2020-11-20 18:06:07 +03:00
|
|
|
'examples':
|
|
|
|
'response':
|
|
|
|
'value':
|
|
|
|
'enabled': true
|
|
|
|
'sensitivity': 13
|
|
|
|
'/safesearch/enable':
|
|
|
|
'post':
|
2023-03-23 15:25:58 +03:00
|
|
|
'deprecated': true
|
2020-11-20 18:06:07 +03:00
|
|
|
'tags':
|
|
|
|
- 'safesearch'
|
|
|
|
'operationId': 'safesearchEnable'
|
|
|
|
'summary': 'Enable safesearch'
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
|
|
|
'/safesearch/disable':
|
|
|
|
'post':
|
2023-03-23 15:25:58 +03:00
|
|
|
'deprecated': true
|
2020-11-20 18:06:07 +03:00
|
|
|
'tags':
|
|
|
|
- 'safesearch'
|
|
|
|
'operationId': 'safesearchDisable'
|
|
|
|
'summary': 'Disable safesearch'
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
2023-03-23 15:25:58 +03:00
|
|
|
'/safesearch/settings':
|
|
|
|
'put':
|
|
|
|
'tags':
|
|
|
|
- 'safesearch'
|
|
|
|
'operationId': 'safesearchSettings'
|
|
|
|
'summary': 'Update safesearch settings'
|
|
|
|
'requestBody':
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/SafeSearchConfig'
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
2020-11-20 18:06:07 +03:00
|
|
|
'/safesearch/status':
|
|
|
|
'get':
|
|
|
|
'tags':
|
|
|
|
- 'safesearch'
|
|
|
|
'operationId': 'safesearchStatus'
|
|
|
|
'summary': 'Get safesearch status'
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
|
|
|
'content':
|
|
|
|
'application/json':
|
2020-12-29 19:53:56 +03:00
|
|
|
'schema':
|
2023-03-23 15:25:58 +03:00
|
|
|
'$ref': '#/components/schemas/SafeSearchConfig'
|
2020-11-20 18:06:07 +03:00
|
|
|
'/clients':
|
|
|
|
'get':
|
|
|
|
'tags':
|
|
|
|
- 'clients'
|
|
|
|
'operationId': 'clientsStatus'
|
|
|
|
'summary': 'Get information about configured clients'
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/Clients'
|
|
|
|
'/clients/add':
|
|
|
|
'post':
|
|
|
|
'tags':
|
|
|
|
- 'clients'
|
|
|
|
'operationId': 'clientsAdd'
|
|
|
|
'summary': 'Add a new client'
|
|
|
|
'requestBody':
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/Client'
|
|
|
|
'required': true
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
|
|
|
'/clients/delete':
|
|
|
|
'post':
|
|
|
|
'tags':
|
|
|
|
- 'clients'
|
|
|
|
'operationId': 'clientsDelete'
|
|
|
|
'summary': 'Remove a client'
|
|
|
|
'requestBody':
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/ClientDelete'
|
|
|
|
'required': true
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
|
|
|
'/clients/update':
|
|
|
|
'post':
|
|
|
|
'tags':
|
|
|
|
- 'clients'
|
|
|
|
'operationId': 'clientsUpdate'
|
|
|
|
'summary': 'Update client information'
|
|
|
|
'requestBody':
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/ClientUpdate'
|
|
|
|
'required': true
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
|
|
|
'/clients/find':
|
|
|
|
'get':
|
|
|
|
'tags':
|
|
|
|
- 'clients'
|
|
|
|
'operationId': 'clientsFind'
|
2021-01-27 18:32:13 +03:00
|
|
|
'summary': >
|
2022-02-10 15:42:59 +03:00
|
|
|
Get information about clients by their IP addresses or ClientIDs.
|
2020-11-20 18:06:07 +03:00
|
|
|
'parameters':
|
|
|
|
- 'name': 'ip0'
|
|
|
|
'in': 'query'
|
2021-01-27 18:32:13 +03:00
|
|
|
'description': >
|
2022-02-10 15:42:59 +03:00
|
|
|
Filter by IP address or ClientIDs. Parameters with names `ip1`,
|
2021-01-27 18:32:13 +03:00
|
|
|
`ip2`, and so on are also accepted and interpreted as "ip0 OR ip1 OR
|
|
|
|
ip2".
|
|
|
|
|
|
|
|
TODO(a.garipov): Replace with a better query API.
|
2020-11-20 18:06:07 +03:00
|
|
|
'schema':
|
|
|
|
'type': 'string'
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/ClientsFindResponse'
|
2021-01-13 17:26:57 +03:00
|
|
|
'/access/list':
|
|
|
|
'get':
|
|
|
|
'operationId': 'accessList'
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/AccessListResponse'
|
|
|
|
'summary': 'List (dis)allowed clients, blocked hosts, etc.'
|
|
|
|
'tags':
|
|
|
|
- 'clients'
|
|
|
|
'/access/set':
|
|
|
|
'post':
|
|
|
|
'operationId': 'accessSet'
|
|
|
|
'requestBody':
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/AccessSetRequest'
|
|
|
|
'required': true
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
|
|
|
'400':
|
|
|
|
'description': >
|
|
|
|
Failed to parse JSON or cannot save the list.
|
|
|
|
'500':
|
|
|
|
'description': 'Internal error.'
|
|
|
|
'summary': 'Set (dis)allowed clients, blocked hosts, etc.'
|
|
|
|
'tags':
|
|
|
|
- 'clients'
|
2022-04-25 10:41:31 +03:00
|
|
|
'/blocked_services/services':
|
|
|
|
'get':
|
2022-10-27 15:46:25 +03:00
|
|
|
'deprecated': true
|
|
|
|
'description': >
|
|
|
|
Deprecated: Use `GET /blocked_services/all` instead.
|
2022-04-25 10:41:31 +03:00
|
|
|
'tags':
|
|
|
|
- 'blocked_services'
|
|
|
|
'operationId': 'blockedServicesAvailableServices'
|
|
|
|
'summary': 'Get available services to use for blocking'
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/BlockedServicesArray'
|
2022-10-27 15:46:25 +03:00
|
|
|
'/blocked_services/all':
|
|
|
|
'get':
|
|
|
|
'tags':
|
|
|
|
- 'blocked_services'
|
|
|
|
'operationId': 'blockedServicesAll'
|
|
|
|
'summary': 'Get available services to use for blocking'
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/BlockedServicesAll'
|
2020-11-20 18:06:07 +03:00
|
|
|
'/blocked_services/list':
|
|
|
|
'get':
|
2023-08-29 20:03:40 +03:00
|
|
|
'deprecated': true
|
|
|
|
'description': >
|
|
|
|
Deprecated: Use `GET /blocked_services/get` instead.
|
2020-11-20 18:06:07 +03:00
|
|
|
'tags':
|
|
|
|
- 'blocked_services'
|
|
|
|
'operationId': 'blockedServicesList'
|
|
|
|
'summary': 'Get blocked services list'
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/BlockedServicesArray'
|
|
|
|
'/blocked_services/set':
|
|
|
|
'post':
|
2023-08-29 20:03:40 +03:00
|
|
|
'deprecated': true
|
|
|
|
'description': >
|
|
|
|
Deprecated: Use `PUT /blocked_services/update` instead.
|
2020-11-20 18:06:07 +03:00
|
|
|
'tags':
|
|
|
|
- 'blocked_services'
|
|
|
|
'operationId': 'blockedServicesSet'
|
|
|
|
'summary': 'Set blocked services list'
|
|
|
|
'requestBody':
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/BlockedServicesArray'
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
2023-08-29 20:03:40 +03:00
|
|
|
'/blocked_services/get':
|
|
|
|
'get':
|
|
|
|
'tags':
|
|
|
|
- 'blocked_services'
|
|
|
|
'operationId': 'blockedServicesSchedule'
|
|
|
|
'summary': 'Get blocked services'
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/BlockedServicesSchedule'
|
|
|
|
'/blocked_services/update':
|
|
|
|
'put':
|
|
|
|
'tags':
|
|
|
|
- 'blocked_services'
|
|
|
|
'operationId': 'blockedServicesScheduleUpdate'
|
|
|
|
'summary': 'Update blocked services'
|
|
|
|
'requestBody':
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/BlockedServicesSchedule'
|
|
|
|
'required': true
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
2020-11-20 18:06:07 +03:00
|
|
|
'/rewrite/list':
|
|
|
|
'get':
|
|
|
|
'tags':
|
|
|
|
- 'rewrite'
|
|
|
|
'operationId': 'rewriteList'
|
|
|
|
'summary': 'Get list of Rewrite rules'
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/RewriteList'
|
|
|
|
'/rewrite/add':
|
|
|
|
'post':
|
|
|
|
'tags':
|
|
|
|
- 'rewrite'
|
|
|
|
'operationId': 'rewriteAdd'
|
|
|
|
'summary': 'Add a new Rewrite rule'
|
|
|
|
'requestBody':
|
|
|
|
'$ref': '#/components/requestBodies/RewriteEntry'
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
|
|
|
'/rewrite/delete':
|
|
|
|
'post':
|
|
|
|
'tags':
|
|
|
|
- 'rewrite'
|
|
|
|
'operationId': 'rewriteDelete'
|
|
|
|
'summary': 'Remove a Rewrite rule'
|
|
|
|
'requestBody':
|
|
|
|
'$ref': '#/components/requestBodies/RewriteEntry'
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
2023-05-12 13:04:19 +03:00
|
|
|
'/rewrite/update':
|
|
|
|
'put':
|
|
|
|
'tags':
|
|
|
|
- 'rewrite'
|
|
|
|
'operationId': 'rewriteUpdate'
|
|
|
|
'summary': 'Update a Rewrite rule'
|
|
|
|
'requestBody':
|
|
|
|
'$ref': '#/components/requestBodies/RewriteUpdate'
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
2020-11-20 18:06:07 +03:00
|
|
|
'/i18n/change_language':
|
|
|
|
'post':
|
2023-01-13 19:24:17 +03:00
|
|
|
'deprecated': true
|
|
|
|
'description': >
|
|
|
|
Deprecated: Use `PUT /control/profile` instead.
|
2020-11-20 18:06:07 +03:00
|
|
|
'tags':
|
|
|
|
- 'i18n'
|
|
|
|
'operationId': 'changeLanguage'
|
|
|
|
'summary': >
|
|
|
|
Change current language. Argument must be an ISO 639-1 two-letter code.
|
|
|
|
'requestBody':
|
|
|
|
'content':
|
2022-09-29 19:04:26 +03:00
|
|
|
'application/json':
|
2020-11-20 18:06:07 +03:00
|
|
|
'schema':
|
2022-09-29 19:04:26 +03:00
|
|
|
'$ref': '#/components/schemas/LanguageSettings'
|
2020-11-20 18:06:07 +03:00
|
|
|
'description': >
|
|
|
|
New language. It must be known to the server and must be an ISO 639-1
|
|
|
|
two-letter code.
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
|
|
|
'/i18n/current_language':
|
|
|
|
'get':
|
2023-01-13 19:24:17 +03:00
|
|
|
'deprecated': true
|
|
|
|
'description': >
|
|
|
|
Deprecated: Use `GET /control/profile` instead.
|
2020-11-20 18:06:07 +03:00
|
|
|
'tags':
|
|
|
|
- 'i18n'
|
|
|
|
'operationId': 'currentLanguage'
|
|
|
|
'summary': >
|
|
|
|
Get currently set language. Result is ISO 639-1 two-letter code. Empty
|
|
|
|
result means default language.
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
|
|
|
'content':
|
2022-09-29 19:04:26 +03:00
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/LanguageSettings'
|
2020-11-20 18:06:07 +03:00
|
|
|
'/install/get_addresses':
|
|
|
|
'get':
|
|
|
|
'tags':
|
|
|
|
- 'install'
|
|
|
|
'operationId': 'installGetAddresses'
|
|
|
|
'summary': 'Gets the network interfaces information.'
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/AddressesInfo'
|
|
|
|
'/install/check_config':
|
|
|
|
'post':
|
|
|
|
'tags':
|
|
|
|
- 'install'
|
|
|
|
'operationId': 'installCheckConfig'
|
|
|
|
'summary': 'Checks configuration'
|
|
|
|
'requestBody':
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/CheckConfigRequest'
|
|
|
|
'description': 'Configuration to be checked'
|
|
|
|
'required': true
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/CheckConfigResponse'
|
|
|
|
'400':
|
|
|
|
'description': >
|
|
|
|
Failed to parse JSON or cannot listen on the specified address.
|
|
|
|
'/install/configure':
|
|
|
|
'post':
|
|
|
|
'tags':
|
|
|
|
- 'install'
|
|
|
|
'operationId': 'installConfigure'
|
|
|
|
'summary': 'Applies the initial configuration.'
|
|
|
|
'requestBody':
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/InitialConfiguration'
|
|
|
|
'description': 'Initial configuration JSON'
|
|
|
|
'required': true
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
|
|
|
'400':
|
|
|
|
'description': >
|
|
|
|
Failed to parse initial configuration or cannot listen to the
|
|
|
|
specified addresses.
|
2022-02-10 18:30:41 +03:00
|
|
|
'422':
|
|
|
|
'description': >
|
|
|
|
The specified password does not meet the strength requirements.
|
2020-11-20 18:06:07 +03:00
|
|
|
'500':
|
|
|
|
'description': 'Cannot start the DNS server'
|
|
|
|
'/login':
|
|
|
|
'post':
|
|
|
|
'tags':
|
|
|
|
- 'global'
|
|
|
|
'operationId': 'login'
|
|
|
|
'summary': 'Perform administrator log-in'
|
|
|
|
'requestBody':
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/Login'
|
|
|
|
'required': true
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
2021-04-27 18:56:32 +03:00
|
|
|
'400':
|
|
|
|
'description': >
|
|
|
|
Invalid username or password.
|
|
|
|
'429':
|
|
|
|
'description': >
|
|
|
|
Out of login attempts.
|
2020-11-20 18:06:07 +03:00
|
|
|
'/logout':
|
|
|
|
'get':
|
|
|
|
'tags':
|
|
|
|
- 'global'
|
|
|
|
'operationId': 'logout'
|
|
|
|
'summary': 'Perform administrator log-out'
|
|
|
|
'responses':
|
|
|
|
'302':
|
|
|
|
'description': 'OK.'
|
2023-01-13 19:24:17 +03:00
|
|
|
'/profile/update':
|
|
|
|
'put':
|
|
|
|
'tags':
|
|
|
|
- 'global'
|
|
|
|
'operationId': 'updateProfile'
|
|
|
|
'summary': 'Updates current user info'
|
|
|
|
'requestBody':
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/ProfileInfo'
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK'
|
2020-11-20 18:06:07 +03:00
|
|
|
'/profile':
|
|
|
|
'get':
|
|
|
|
'tags':
|
|
|
|
- 'global'
|
|
|
|
'operationId': 'getProfile'
|
|
|
|
'summary': ''
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/ProfileInfo'
|
2020-11-25 18:09:41 +03:00
|
|
|
|
2020-11-20 18:06:07 +03:00
|
|
|
'/apple/doh.mobileconfig':
|
|
|
|
'get':
|
|
|
|
'operationId': 'mobileConfigDoH'
|
2020-11-25 18:09:41 +03:00
|
|
|
'parameters':
|
|
|
|
- 'description': >
|
|
|
|
Host for which the config is generated. If no host is provided,
|
|
|
|
`tls.server_name` from the configuration file is used. If
|
|
|
|
`tls.server_name` is not set, the API returns an error with a 500
|
|
|
|
status.
|
|
|
|
'example': 'example.org'
|
|
|
|
'in': 'query'
|
|
|
|
'name': 'host'
|
2021-06-01 21:06:55 +03:00
|
|
|
'required': true
|
2020-11-25 18:09:41 +03:00
|
|
|
'schema':
|
|
|
|
'type': 'string'
|
2021-01-27 18:32:13 +03:00
|
|
|
- 'description': >
|
2022-02-10 15:42:59 +03:00
|
|
|
ClientID.
|
2021-01-27 18:32:13 +03:00
|
|
|
'example': 'client-1'
|
|
|
|
'in': 'query'
|
|
|
|
'name': 'client_id'
|
|
|
|
'schema':
|
|
|
|
'type': 'string'
|
2020-11-20 18:06:07 +03:00
|
|
|
'responses':
|
|
|
|
'200':
|
2020-11-25 18:09:41 +03:00
|
|
|
'description': 'DNS over HTTPS plist file.'
|
|
|
|
'500':
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/Error'
|
|
|
|
'description': 'Server configuration error.'
|
|
|
|
'summary': 'Get DNS over HTTPS .mobileconfig.'
|
2020-11-20 18:06:07 +03:00
|
|
|
'tags':
|
|
|
|
- 'mobileconfig'
|
|
|
|
- 'global'
|
2020-11-25 18:09:41 +03:00
|
|
|
'/apple/dot.mobileconfig':
|
|
|
|
'get':
|
2020-11-20 18:06:07 +03:00
|
|
|
'operationId': 'mobileConfigDoT'
|
2020-11-25 18:09:41 +03:00
|
|
|
'parameters':
|
|
|
|
- 'description': >
|
|
|
|
Host for which the config is generated. If no host is provided,
|
|
|
|
`tls.server_name` from the configuration file is used. If
|
|
|
|
`tls.server_name` is not set, the API returns an error with a 500
|
|
|
|
status.
|
|
|
|
'example': 'example.org'
|
|
|
|
'in': 'query'
|
|
|
|
'name': 'host'
|
2021-06-01 21:06:55 +03:00
|
|
|
'required': true
|
2020-11-25 18:09:41 +03:00
|
|
|
'schema':
|
|
|
|
'type': 'string'
|
2021-01-27 18:32:13 +03:00
|
|
|
- 'description': >
|
2022-02-10 15:42:59 +03:00
|
|
|
ClientID.
|
2021-01-27 18:32:13 +03:00
|
|
|
'example': 'client-1'
|
|
|
|
'in': 'query'
|
|
|
|
'name': 'client_id'
|
|
|
|
'schema':
|
|
|
|
'type': 'string'
|
2020-11-20 18:06:07 +03:00
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'DNS over TLS plist file'
|
2020-11-25 18:09:41 +03:00
|
|
|
'500':
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/Error'
|
|
|
|
'description': 'Server configuration error.'
|
|
|
|
'summary': 'Get DNS over TLS .mobileconfig.'
|
|
|
|
'tags':
|
|
|
|
- 'mobileconfig'
|
|
|
|
- 'global'
|
2020-04-16 23:04:00 +03:00
|
|
|
|
2020-11-20 18:06:07 +03:00
|
|
|
'components':
|
|
|
|
'requestBodies':
|
|
|
|
'TlsConfig':
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/TlsConfig'
|
|
|
|
'description': 'TLS configuration JSON'
|
|
|
|
'required': true
|
|
|
|
'DhcpStaticLease':
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/DhcpStaticLease'
|
|
|
|
'required': true
|
|
|
|
'RewriteEntry':
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/RewriteEntry'
|
|
|
|
'required': true
|
2023-05-12 13:04:19 +03:00
|
|
|
'RewriteUpdate':
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/RewriteUpdate'
|
|
|
|
'required': true
|
2020-11-20 18:06:07 +03:00
|
|
|
'schemas':
|
|
|
|
'ServerStatus':
|
|
|
|
'type': 'object'
|
|
|
|
'description': 'AdGuard Home server status and configuration'
|
|
|
|
'required':
|
2021-01-13 17:26:57 +03:00
|
|
|
- 'dns_addresses'
|
2020-11-20 18:06:07 +03:00
|
|
|
- 'dns_port'
|
2021-01-13 17:26:57 +03:00
|
|
|
- 'http_port'
|
2020-11-20 18:06:07 +03:00
|
|
|
- 'protection_enabled'
|
2023-03-24 15:11:47 +03:00
|
|
|
- 'protection_disabled_until'
|
2020-11-20 18:06:07 +03:00
|
|
|
- 'running'
|
|
|
|
- 'version'
|
|
|
|
- 'language'
|
|
|
|
'properties':
|
2021-01-13 17:26:57 +03:00
|
|
|
'dns_addresses':
|
|
|
|
'example': ['127.0.0.1']
|
|
|
|
'items':
|
|
|
|
'type': 'string'
|
|
|
|
'type': 'array'
|
2020-11-20 18:06:07 +03:00
|
|
|
'dns_port':
|
|
|
|
'type': 'integer'
|
2020-12-29 19:53:56 +03:00
|
|
|
'format': 'uint16'
|
2020-11-20 18:06:07 +03:00
|
|
|
'example': 53
|
|
|
|
'minimum': 1
|
|
|
|
'maximum': 65535
|
2021-01-13 17:26:57 +03:00
|
|
|
'http_port':
|
|
|
|
'type': 'integer'
|
|
|
|
'format': 'uint16'
|
|
|
|
'example': 80
|
|
|
|
'minimum': 1
|
|
|
|
'maximum': 65535
|
2020-11-20 18:06:07 +03:00
|
|
|
'protection_enabled':
|
|
|
|
'type': 'boolean'
|
2023-03-24 15:11:47 +03:00
|
|
|
'protection_disabled_duration':
|
|
|
|
'type': 'integer'
|
|
|
|
'format': 'int64'
|
2020-11-20 18:06:07 +03:00
|
|
|
'dhcp_available':
|
|
|
|
'type': 'boolean'
|
|
|
|
'running':
|
|
|
|
'type': 'boolean'
|
|
|
|
'version':
|
|
|
|
'type': 'string'
|
2022-01-18 15:05:34 +03:00
|
|
|
'example': 'v0.123.4'
|
2020-11-20 18:06:07 +03:00
|
|
|
'language':
|
|
|
|
'type': 'string'
|
|
|
|
'example': 'en'
|
|
|
|
'DNSConfig':
|
|
|
|
'type': 'object'
|
2023-03-22 13:42:20 +03:00
|
|
|
'description': 'DNS server configuration'
|
2020-11-20 18:06:07 +03:00
|
|
|
'properties':
|
|
|
|
'bootstrap_dns':
|
|
|
|
'type': 'array'
|
|
|
|
'description': >
|
|
|
|
Bootstrap servers, port is optional after colon. Empty value will
|
|
|
|
reset it to default values.
|
|
|
|
'items':
|
|
|
|
'type': 'string'
|
|
|
|
'example':
|
|
|
|
- '8.8.8.8:53'
|
|
|
|
- '1.1.1.1:53'
|
|
|
|
'upstream_dns':
|
|
|
|
'type': 'array'
|
|
|
|
'description': >
|
|
|
|
Upstream servers, port is optional after colon. Empty value will
|
|
|
|
reset it to default values.
|
|
|
|
'items':
|
|
|
|
'type': 'string'
|
|
|
|
'example':
|
|
|
|
- 'tls://1.1.1.1'
|
|
|
|
- 'tls://1.0.0.1'
|
2023-08-30 13:21:31 +03:00
|
|
|
'fallback_dns':
|
|
|
|
'type': 'array'
|
|
|
|
'description': >
|
|
|
|
List of fallback DNS servers used when upstream DNS servers are not
|
|
|
|
responding. Empty value will clear the list.
|
|
|
|
'items':
|
|
|
|
'type': 'string'
|
|
|
|
'example':
|
|
|
|
- '8.8.8.8'
|
|
|
|
- '1.1.1.1:53'
|
2020-11-20 18:06:07 +03:00
|
|
|
'upstream_dns_file':
|
|
|
|
'type': 'string'
|
|
|
|
'protection_enabled':
|
|
|
|
'type': 'boolean'
|
|
|
|
'ratelimit':
|
|
|
|
'type': 'integer'
|
2023-11-15 19:27:13 +03:00
|
|
|
'ratelimit_subnet_subnet_len_ipv4':
|
|
|
|
'description': 'Length of the subnet mask for IPv4 addresses.'
|
|
|
|
'type': 'integer'
|
|
|
|
'default': 24
|
|
|
|
'minimum': 0
|
|
|
|
'maximum': 32
|
|
|
|
'ratelimit_subnet_subnet_len_ipv6':
|
|
|
|
'description': 'Length of the subnet mask for IPv6 addresses.'
|
|
|
|
'type': 'integer'
|
|
|
|
'default': 56
|
|
|
|
'minimum': 0
|
|
|
|
'maximum': 128
|
|
|
|
'ratelimit_whitelist':
|
|
|
|
'type': 'array'
|
|
|
|
'description': 'List of IP addresses excluded from rate limiting.'
|
|
|
|
'items':
|
|
|
|
'type': 'string'
|
2020-11-20 18:06:07 +03:00
|
|
|
'blocking_mode':
|
|
|
|
'type': 'string'
|
|
|
|
'enum':
|
|
|
|
- 'default'
|
|
|
|
- 'refused'
|
|
|
|
- 'nxdomain'
|
|
|
|
- 'null_ip'
|
|
|
|
- 'custom_ip'
|
|
|
|
'blocking_ipv4':
|
|
|
|
'type': 'string'
|
|
|
|
'blocking_ipv6':
|
|
|
|
'type': 'string'
|
2023-09-13 13:58:12 +03:00
|
|
|
'blocked_response_ttl':
|
|
|
|
'type': 'integer'
|
|
|
|
'minimum': 0
|
|
|
|
'description': 'TTL for blocked responses.'
|
2023-03-24 15:11:47 +03:00
|
|
|
'protection_disabled_until':
|
|
|
|
'type': 'string'
|
|
|
|
'description': 'Protection is pause until this time. Nullable.'
|
|
|
|
'example': '2018-11-26T00:02:41+03:00'
|
2020-11-20 18:06:07 +03:00
|
|
|
'edns_cs_enabled':
|
|
|
|
'type': 'boolean'
|
2023-03-22 13:42:20 +03:00
|
|
|
'edns_cs_use_custom':
|
|
|
|
'type': 'boolean'
|
|
|
|
'edns_cs_custom_ip':
|
|
|
|
'type': 'string'
|
2021-02-26 15:52:52 +03:00
|
|
|
'disable_ipv6':
|
|
|
|
'type': 'boolean'
|
2020-11-20 18:06:07 +03:00
|
|
|
'dnssec_enabled':
|
|
|
|
'type': 'boolean'
|
|
|
|
'cache_size':
|
|
|
|
'type': 'integer'
|
|
|
|
'cache_ttl_min':
|
|
|
|
'type': 'integer'
|
|
|
|
'cache_ttl_max':
|
|
|
|
'type': 'integer'
|
2021-07-14 21:03:56 +03:00
|
|
|
'cache_optimistic':
|
|
|
|
'type': 'boolean'
|
2020-11-20 18:06:07 +03:00
|
|
|
'upstream_mode':
|
2023-12-25 14:16:48 +03:00
|
|
|
'type': 'string'
|
2020-11-20 18:06:07 +03:00
|
|
|
'enum':
|
2023-12-25 14:16:48 +03:00
|
|
|
- const: ''
|
|
|
|
deprecated: true
|
|
|
|
description: Use `load_balance` instead.
|
|
|
|
- const: 'fastest_addr'
|
|
|
|
- const: 'load_balance'
|
|
|
|
- const: 'parallel'
|
|
|
|
'description': Upstream modes enumeration.
|
2021-05-26 17:55:19 +03:00
|
|
|
'use_private_ptr_resolvers':
|
|
|
|
'type': 'boolean'
|
2021-04-07 20:16:06 +03:00
|
|
|
'resolve_clients':
|
|
|
|
'type': 'boolean'
|
|
|
|
'local_ptr_upstreams':
|
|
|
|
'type': 'array'
|
|
|
|
'description': >
|
|
|
|
Upstream servers, port is optional after colon. Empty value will
|
|
|
|
reset it to default values.
|
|
|
|
'items':
|
|
|
|
'type': 'string'
|
|
|
|
'example':
|
|
|
|
- 'tls://1.1.1.1'
|
|
|
|
- 'tls://1.0.0.1'
|
2020-11-20 18:06:07 +03:00
|
|
|
'UpstreamsConfig':
|
|
|
|
'type': 'object'
|
2023-09-06 12:29:45 +03:00
|
|
|
'description': 'Upstream configuration to be tested'
|
2020-11-20 18:06:07 +03:00
|
|
|
'required':
|
|
|
|
- 'bootstrap_dns'
|
|
|
|
- 'upstream_dns'
|
|
|
|
'properties':
|
|
|
|
'bootstrap_dns':
|
|
|
|
'type': 'array'
|
|
|
|
'description': >
|
2023-09-06 12:29:45 +03:00
|
|
|
Bootstrap DNS servers, port is optional after colon.
|
2020-11-20 18:06:07 +03:00
|
|
|
'items':
|
|
|
|
'type': 'string'
|
|
|
|
'example':
|
|
|
|
- '8.8.8.8:53'
|
|
|
|
- '1.1.1.1:53'
|
|
|
|
'upstream_dns':
|
|
|
|
'type': 'array'
|
|
|
|
'description': >
|
2023-09-06 12:29:45 +03:00
|
|
|
Upstream DNS servers, port is optional after colon.
|
2020-11-20 18:06:07 +03:00
|
|
|
'items':
|
|
|
|
'type': 'string'
|
|
|
|
'example':
|
|
|
|
- 'tls://1.1.1.1'
|
|
|
|
- 'tls://1.0.0.1'
|
2023-09-06 12:29:45 +03:00
|
|
|
'fallback_dns':
|
|
|
|
'type': 'array'
|
|
|
|
'description': >
|
|
|
|
Fallback DNS servers, port is optional after colon.
|
|
|
|
'items':
|
|
|
|
'type': 'string'
|
|
|
|
'example':
|
|
|
|
- '8.8.8.8'
|
|
|
|
- '1.1.1.1:53'
|
2021-04-07 20:16:06 +03:00
|
|
|
'private_upstream':
|
|
|
|
'type': 'array'
|
|
|
|
'description': >
|
2023-09-06 12:29:45 +03:00
|
|
|
Local PTR resolvers, port is optional after colon.
|
2021-04-07 20:16:06 +03:00
|
|
|
'items':
|
|
|
|
'type': 'string'
|
|
|
|
'example':
|
|
|
|
- 'tls://1.1.1.1'
|
|
|
|
- 'tls://1.0.0.1'
|
2020-12-29 19:53:56 +03:00
|
|
|
'UpstreamsConfigResponse':
|
|
|
|
'type': 'object'
|
|
|
|
'description': 'Upstreams configuration response'
|
2021-01-14 13:48:52 +03:00
|
|
|
'additionalProperties':
|
2020-12-29 19:53:56 +03:00
|
|
|
'type': 'string'
|
2020-11-20 18:06:07 +03:00
|
|
|
'Filter':
|
|
|
|
'type': 'object'
|
|
|
|
'description': 'Filter subscription info'
|
|
|
|
'required':
|
|
|
|
- 'enabled'
|
|
|
|
- 'id'
|
|
|
|
- 'name'
|
2021-02-01 16:01:33 +03:00
|
|
|
- 'rules_count'
|
2020-11-20 18:06:07 +03:00
|
|
|
- 'url'
|
|
|
|
'properties':
|
|
|
|
'enabled':
|
|
|
|
'type': 'boolean'
|
|
|
|
'id':
|
|
|
|
'example': 1234
|
2021-02-01 16:01:33 +03:00
|
|
|
'format': 'int64'
|
|
|
|
'type': 'integer'
|
|
|
|
'last_updated':
|
2020-11-20 18:06:07 +03:00
|
|
|
'example': '2018-10-30T12:18:57+03:00'
|
2021-02-01 16:01:33 +03:00
|
|
|
'format': 'date-time'
|
2020-11-20 18:06:07 +03:00
|
|
|
'type': 'string'
|
2021-02-01 16:01:33 +03:00
|
|
|
'name':
|
2020-11-20 18:06:07 +03:00
|
|
|
'example': 'AdGuard Simplified Domain Names filter'
|
2021-02-01 16:01:33 +03:00
|
|
|
'type': 'string'
|
|
|
|
'rules_count':
|
2020-11-20 18:06:07 +03:00
|
|
|
'example': 5912
|
2021-02-01 16:01:33 +03:00
|
|
|
'format': 'uint32'
|
|
|
|
'type': 'integer'
|
2020-11-20 18:06:07 +03:00
|
|
|
'url':
|
|
|
|
'type': 'string'
|
|
|
|
'example': >
|
|
|
|
https://adguardteam.github.io/AdGuardSDNSFilter/Filters/filter.txt
|
|
|
|
'FilterStatus':
|
|
|
|
'type': 'object'
|
|
|
|
'description': 'Filtering settings'
|
|
|
|
'properties':
|
|
|
|
'enabled':
|
|
|
|
'type': 'boolean'
|
|
|
|
'interval':
|
|
|
|
'type': 'integer'
|
|
|
|
'filters':
|
|
|
|
'type': 'array'
|
|
|
|
'items':
|
|
|
|
'$ref': '#/components/schemas/Filter'
|
2022-03-12 14:46:15 +03:00
|
|
|
'whitelist_filters':
|
|
|
|
'type': 'array'
|
|
|
|
'items':
|
|
|
|
'$ref': '#/components/schemas/Filter'
|
2020-11-20 18:06:07 +03:00
|
|
|
'user_rules':
|
|
|
|
'type': 'array'
|
|
|
|
'items':
|
|
|
|
'type': 'string'
|
|
|
|
'FilterConfig':
|
|
|
|
'type': 'object'
|
|
|
|
'description': 'Filtering settings'
|
|
|
|
'properties':
|
|
|
|
'enabled':
|
|
|
|
'type': 'boolean'
|
|
|
|
'interval':
|
|
|
|
'type': 'integer'
|
|
|
|
'FilterSetUrl':
|
|
|
|
'type': 'object'
|
|
|
|
'description': 'Filtering URL settings'
|
|
|
|
'properties':
|
|
|
|
'data':
|
2022-08-17 20:40:47 +03:00
|
|
|
'$ref': '#/components/schemas/FilterSetUrlData'
|
2020-11-20 18:06:07 +03:00
|
|
|
'url':
|
|
|
|
'type': 'string'
|
|
|
|
'whitelist':
|
|
|
|
'type': 'boolean'
|
2022-08-17 20:40:47 +03:00
|
|
|
'FilterSetUrlData':
|
|
|
|
'type': 'object'
|
|
|
|
'description': 'Filter update data'
|
|
|
|
'required':
|
|
|
|
- 'enabled'
|
|
|
|
- 'name'
|
|
|
|
- 'url'
|
|
|
|
'properties':
|
|
|
|
'enabled':
|
|
|
|
'type': 'boolean'
|
|
|
|
'name':
|
|
|
|
'example': 'AdGuard Simplified Domain Names filter'
|
|
|
|
'type': 'string'
|
|
|
|
'url':
|
|
|
|
'type': 'string'
|
|
|
|
'example': >
|
|
|
|
https://adguardteam.github.io/AdGuardSDNSFilter/Filters/filter.txt
|
2020-11-20 18:06:07 +03:00
|
|
|
'FilterRefreshRequest':
|
|
|
|
'type': 'object'
|
|
|
|
'description': 'Refresh Filters request data'
|
|
|
|
'properties':
|
|
|
|
'whitelist':
|
|
|
|
'type': 'boolean'
|
|
|
|
'FilterCheckHostResponse':
|
|
|
|
'type': 'object'
|
|
|
|
'description': 'Check Host Result'
|
|
|
|
'properties':
|
|
|
|
'reason':
|
|
|
|
'type': 'string'
|
2020-12-21 17:48:07 +03:00
|
|
|
'description': 'Request filtering status.'
|
2020-11-20 18:06:07 +03:00
|
|
|
'enum':
|
|
|
|
- 'NotFilteredNotFound'
|
|
|
|
- 'NotFilteredWhiteList'
|
|
|
|
- 'NotFilteredError'
|
|
|
|
- 'FilteredBlackList'
|
|
|
|
- 'FilteredSafeBrowsing'
|
|
|
|
- 'FilteredParental'
|
|
|
|
- 'FilteredInvalid'
|
|
|
|
- 'FilteredSafeSearch'
|
|
|
|
- 'FilteredBlockedService'
|
2020-12-21 17:48:07 +03:00
|
|
|
- 'Rewrite'
|
|
|
|
- 'RewriteEtcHosts'
|
2020-12-28 18:41:50 +03:00
|
|
|
- 'RewriteRule'
|
2020-11-20 18:06:07 +03:00
|
|
|
'filter_id':
|
2020-12-17 13:32:46 +03:00
|
|
|
'deprecated': true
|
|
|
|
'description': >
|
|
|
|
In case if there's a rule applied to this DNS request, this is ID of
|
|
|
|
the filter list that the rule belongs to.
|
|
|
|
|
|
|
|
Deprecated: use `rules[*].filter_list_id` instead.
|
2020-11-20 18:06:07 +03:00
|
|
|
'type': 'integer'
|
|
|
|
'rule':
|
2020-12-17 13:32:46 +03:00
|
|
|
'deprecated': true
|
2020-11-20 18:06:07 +03:00
|
|
|
'type': 'string'
|
|
|
|
'example': '||example.org^'
|
2020-12-17 13:32:46 +03:00
|
|
|
'description': >
|
|
|
|
Filtering rule applied to the request (if any).
|
|
|
|
|
|
|
|
Deprecated: use `rules[*].text` instead.
|
|
|
|
'rules':
|
|
|
|
'description': 'Applied rules.'
|
|
|
|
'type': 'array'
|
|
|
|
'items':
|
|
|
|
'$ref': '#/components/schemas/ResultRule'
|
2020-11-20 18:06:07 +03:00
|
|
|
'service_name':
|
|
|
|
'type': 'string'
|
|
|
|
'description': 'Set if reason=FilteredBlockedService'
|
|
|
|
'cname':
|
|
|
|
'type': 'string'
|
2020-12-21 17:48:07 +03:00
|
|
|
'description': 'Set if reason=Rewrite'
|
2020-11-20 18:06:07 +03:00
|
|
|
'ip_addrs':
|
|
|
|
'type': 'array'
|
|
|
|
'items':
|
|
|
|
'type': 'string'
|
2020-12-21 17:48:07 +03:00
|
|
|
'description': 'Set if reason=Rewrite'
|
2020-11-20 18:06:07 +03:00
|
|
|
'FilterRefreshResponse':
|
|
|
|
'type': 'object'
|
|
|
|
'description': '/filtering/refresh response data'
|
|
|
|
'properties':
|
|
|
|
'updated':
|
|
|
|
'type': 'integer'
|
2022-09-30 14:41:25 +03:00
|
|
|
'SetRulesRequest':
|
|
|
|
'description': 'Custom filtering rules setting request.'
|
|
|
|
'example':
|
|
|
|
'rules':
|
|
|
|
- '||example.com^'
|
|
|
|
- '# comment'
|
|
|
|
- '@@||www.example.com^'
|
|
|
|
'properties':
|
|
|
|
'rules':
|
|
|
|
'items':
|
|
|
|
'type': 'string'
|
|
|
|
'type': 'array'
|
|
|
|
'type': 'object'
|
2020-11-20 18:06:07 +03:00
|
|
|
'GetVersionRequest':
|
|
|
|
'type': 'object'
|
|
|
|
'description': '/version.json request data'
|
|
|
|
'properties':
|
|
|
|
'recheck_now':
|
|
|
|
'description': >
|
|
|
|
If false, server will check for a new version data only once in
|
|
|
|
several hours.
|
|
|
|
'type': 'boolean'
|
|
|
|
'VersionInfo':
|
|
|
|
'type': 'object'
|
|
|
|
'description': >
|
|
|
|
Information about the latest available version of AdGuard Home.
|
2021-01-21 19:55:41 +03:00
|
|
|
'required':
|
|
|
|
- 'disabled'
|
2020-11-20 18:06:07 +03:00
|
|
|
'properties':
|
2021-01-21 19:55:41 +03:00
|
|
|
'disabled':
|
|
|
|
'type': 'boolean'
|
|
|
|
'description': >
|
|
|
|
If true then other fields doesn't appear.
|
2020-11-20 18:06:07 +03:00
|
|
|
'new_version':
|
|
|
|
'type': 'string'
|
|
|
|
'example': 'v0.9'
|
|
|
|
'announcement':
|
|
|
|
'type': 'string'
|
|
|
|
'example': 'AdGuard Home v0.9 is now available!'
|
|
|
|
'announcement_url':
|
|
|
|
'type': 'string'
|
|
|
|
'example': >
|
|
|
|
https://github.com/AdguardTeam/AdGuardHome/releases/tag/v0.9
|
|
|
|
'can_autoupdate':
|
|
|
|
'type': 'boolean'
|
|
|
|
'Stats':
|
|
|
|
'type': 'object'
|
|
|
|
'description': 'Server statistics data'
|
|
|
|
'properties':
|
|
|
|
'time_units':
|
|
|
|
'type': 'string'
|
2021-01-21 19:55:41 +03:00
|
|
|
'enum':
|
|
|
|
- 'hours'
|
|
|
|
- 'days'
|
|
|
|
'description': 'Time units'
|
2020-11-20 18:06:07 +03:00
|
|
|
'example': 'hours'
|
|
|
|
'num_dns_queries':
|
|
|
|
'type': 'integer'
|
|
|
|
'description': 'Total number of DNS queries'
|
|
|
|
'example': 123
|
|
|
|
'num_blocked_filtering':
|
|
|
|
'type': 'integer'
|
|
|
|
'description': 'Number of requests blocked by filtering rules'
|
|
|
|
'example': 50
|
|
|
|
'num_replaced_safebrowsing':
|
|
|
|
'type': 'integer'
|
|
|
|
'description': 'Number of requests blocked by safebrowsing module'
|
|
|
|
'example': 5
|
|
|
|
'num_replaced_safesearch':
|
|
|
|
'type': 'integer'
|
|
|
|
'description': 'Number of requests blocked by safesearch module'
|
|
|
|
'example': 5
|
|
|
|
'num_replaced_parental':
|
|
|
|
'type': 'integer'
|
|
|
|
'description': 'Number of blocked adult websites'
|
|
|
|
'example': 15
|
|
|
|
'avg_processing_time':
|
|
|
|
'type': 'number'
|
|
|
|
'format': 'float'
|
2023-08-09 14:33:52 +03:00
|
|
|
'description': 'Average time in seconds on processing a DNS request'
|
2020-11-20 18:06:07 +03:00
|
|
|
'example': 0.34
|
|
|
|
'top_queried_domains':
|
|
|
|
'type': 'array'
|
|
|
|
'items':
|
|
|
|
'$ref': '#/components/schemas/TopArrayEntry'
|
|
|
|
'top_clients':
|
|
|
|
'type': 'array'
|
|
|
|
'items':
|
|
|
|
'$ref': '#/components/schemas/TopArrayEntry'
|
|
|
|
'top_blocked_domains':
|
|
|
|
'type': 'array'
|
|
|
|
'items':
|
|
|
|
'$ref': '#/components/schemas/TopArrayEntry'
|
2023-08-09 14:33:52 +03:00
|
|
|
'top_upstreams_responses':
|
|
|
|
'type': 'array'
|
|
|
|
'description': 'Total number of responses from each upstream.'
|
|
|
|
'items':
|
|
|
|
'$ref': '#/components/schemas/TopArrayEntry'
|
|
|
|
'maxItems': 100
|
|
|
|
'top_upstreams_avg_time':
|
|
|
|
'type': 'array'
|
|
|
|
'description': >
|
|
|
|
Average processing time in seconds of requests from each upstream.
|
|
|
|
'items':
|
|
|
|
'$ref': '#/components/schemas/TopArrayEntry'
|
|
|
|
'maxItems': 100
|
2020-11-20 18:06:07 +03:00
|
|
|
'dns_queries':
|
|
|
|
'type': 'array'
|
|
|
|
'items':
|
|
|
|
'type': 'integer'
|
|
|
|
'blocked_filtering':
|
|
|
|
'type': 'array'
|
|
|
|
'items':
|
|
|
|
'type': 'integer'
|
|
|
|
'replaced_safebrowsing':
|
|
|
|
'type': 'array'
|
|
|
|
'items':
|
|
|
|
'type': 'integer'
|
|
|
|
'replaced_parental':
|
|
|
|
'type': 'array'
|
|
|
|
'items':
|
|
|
|
'type': 'integer'
|
|
|
|
'TopArrayEntry':
|
|
|
|
'type': 'object'
|
|
|
|
'description': >
|
2023-08-09 14:33:52 +03:00
|
|
|
Represent the number of hits or time duration per key (url, domain, or
|
|
|
|
client IP).
|
2020-11-20 18:06:07 +03:00
|
|
|
'properties':
|
|
|
|
'domain_or_ip':
|
2023-08-09 14:33:52 +03:00
|
|
|
'type': 'number'
|
2021-01-14 13:48:52 +03:00
|
|
|
'additionalProperties':
|
2023-08-09 14:33:52 +03:00
|
|
|
'type': 'number'
|
2020-11-20 18:06:07 +03:00
|
|
|
'StatsConfig':
|
|
|
|
'type': 'object'
|
|
|
|
'description': 'Statistics configuration'
|
|
|
|
'properties':
|
|
|
|
'interval':
|
2021-06-17 19:44:46 +03:00
|
|
|
'description': >
|
|
|
|
Time period to keep the data. `0` means that the statistics is
|
|
|
|
disabled.
|
|
|
|
'enum':
|
|
|
|
- 0
|
|
|
|
- 1
|
|
|
|
- 7
|
|
|
|
- 30
|
|
|
|
- 90
|
2020-11-20 18:06:07 +03:00
|
|
|
'type': 'integer'
|
2023-03-23 13:46:57 +03:00
|
|
|
'GetStatsConfigResponse':
|
|
|
|
'type': 'object'
|
|
|
|
'description': 'Statistics configuration'
|
|
|
|
'required':
|
|
|
|
- 'enabled'
|
|
|
|
- 'interval'
|
|
|
|
- 'ignored'
|
|
|
|
'properties':
|
|
|
|
'enabled':
|
|
|
|
'description': 'Are statistics enabled'
|
|
|
|
'type': 'boolean'
|
|
|
|
'interval':
|
2023-03-24 16:49:02 +03:00
|
|
|
'description': 'Statistics rotation interval in milliseconds'
|
2023-03-23 13:46:57 +03:00
|
|
|
'type': 'number'
|
|
|
|
'ignored':
|
|
|
|
'description': 'List of host names, which should not be counted'
|
|
|
|
'type': 'array'
|
|
|
|
'items':
|
|
|
|
'type': 'string'
|
|
|
|
'PutStatsConfigUpdateRequest':
|
|
|
|
'$ref': '#/components/schemas/GetStatsConfigResponse'
|
2020-11-20 18:06:07 +03:00
|
|
|
'DhcpConfig':
|
|
|
|
'type': 'object'
|
|
|
|
'properties':
|
|
|
|
'enabled':
|
|
|
|
'type': 'boolean'
|
|
|
|
'interface_name':
|
|
|
|
'type': 'string'
|
|
|
|
'v4':
|
|
|
|
'$ref': '#/components/schemas/DhcpConfigV4'
|
|
|
|
'v6':
|
|
|
|
'$ref': '#/components/schemas/DhcpConfigV6'
|
|
|
|
'DhcpConfigV4':
|
|
|
|
'type': 'object'
|
|
|
|
'properties':
|
|
|
|
'gateway_ip':
|
|
|
|
'type': 'string'
|
|
|
|
'example': '192.168.1.1'
|
|
|
|
'subnet_mask':
|
|
|
|
'type': 'string'
|
|
|
|
'example': '255.255.255.0'
|
|
|
|
'range_start':
|
|
|
|
'type': 'string'
|
|
|
|
'example': '192.168.1.2'
|
|
|
|
'range_end':
|
|
|
|
'type': 'string'
|
|
|
|
'example': '192.168.10.50'
|
|
|
|
'lease_duration':
|
|
|
|
'type': 'integer'
|
|
|
|
'DhcpConfigV6':
|
|
|
|
'type': 'object'
|
|
|
|
'properties':
|
|
|
|
'range_start':
|
|
|
|
'type': 'string'
|
|
|
|
'lease_duration':
|
|
|
|
'type': 'integer'
|
|
|
|
'DhcpLease':
|
|
|
|
'type': 'object'
|
|
|
|
'description': 'DHCP lease information'
|
|
|
|
'required':
|
|
|
|
- 'mac'
|
|
|
|
- 'ip'
|
|
|
|
- 'hostname'
|
|
|
|
- 'expires'
|
|
|
|
'properties':
|
|
|
|
'mac':
|
|
|
|
'type': 'string'
|
|
|
|
'example': '00:11:09:b3:b3:b8'
|
|
|
|
'ip':
|
|
|
|
'type': 'string'
|
|
|
|
'example': '192.168.1.22'
|
|
|
|
'hostname':
|
|
|
|
'type': 'string'
|
|
|
|
'example': 'dell'
|
|
|
|
'expires':
|
|
|
|
'type': 'string'
|
|
|
|
'example': '2017-07-21T17:32:28Z'
|
|
|
|
'DhcpStaticLease':
|
|
|
|
'type': 'object'
|
|
|
|
'description': 'DHCP static lease information'
|
|
|
|
'required':
|
|
|
|
- 'mac'
|
|
|
|
- 'ip'
|
|
|
|
- 'hostname'
|
|
|
|
'properties':
|
|
|
|
'mac':
|
|
|
|
'type': 'string'
|
|
|
|
'example': '00:11:09:b3:b3:b8'
|
|
|
|
'ip':
|
|
|
|
'type': 'string'
|
|
|
|
'example': '192.168.1.22'
|
|
|
|
'hostname':
|
|
|
|
'type': 'string'
|
|
|
|
'example': 'dell'
|
|
|
|
'DhcpStatus':
|
|
|
|
'type': 'object'
|
|
|
|
'description': 'Built-in DHCP server configuration and status'
|
|
|
|
'required':
|
|
|
|
- 'config'
|
|
|
|
- 'leases'
|
|
|
|
'properties':
|
|
|
|
'enabled':
|
|
|
|
'type': 'boolean'
|
|
|
|
'interface_name':
|
|
|
|
'type': 'string'
|
|
|
|
'v4':
|
|
|
|
'$ref': '#/components/schemas/DhcpConfigV4'
|
|
|
|
'v6':
|
|
|
|
'$ref': '#/components/schemas/DhcpConfigV6'
|
|
|
|
'leases':
|
|
|
|
'type': 'array'
|
|
|
|
'items':
|
|
|
|
'$ref': '#/components/schemas/DhcpLease'
|
|
|
|
'static_leases':
|
|
|
|
'type': 'array'
|
|
|
|
'items':
|
|
|
|
'$ref': '#/components/schemas/DhcpStaticLease'
|
2021-01-20 15:59:24 +03:00
|
|
|
'NetInterfaces':
|
|
|
|
'type': 'object'
|
|
|
|
'description': >
|
|
|
|
Network interfaces dictionary, keys are interface names.
|
|
|
|
'additionalProperties':
|
|
|
|
'$ref': '#/components/schemas/NetInterface'
|
2018-08-30 17:25:33 +03:00
|
|
|
|
2022-09-29 19:04:26 +03:00
|
|
|
'DhcpFindActiveReq':
|
|
|
|
'description': >
|
|
|
|
Request for checking for other DHCP servers in the network.
|
|
|
|
'properties':
|
|
|
|
'interface':
|
|
|
|
'description': 'The name of the network interface'
|
|
|
|
'example': 'eth0'
|
|
|
|
'type': 'string'
|
|
|
|
'type': 'object'
|
|
|
|
|
2020-11-20 18:06:07 +03:00
|
|
|
'DhcpSearchResult':
|
|
|
|
'type': 'object'
|
|
|
|
'description': >
|
|
|
|
Information about a DHCP server discovered in the current network.
|
|
|
|
'properties':
|
|
|
|
'v4':
|
|
|
|
'$ref': '#/components/schemas/DhcpSearchV4'
|
|
|
|
'v6':
|
|
|
|
'$ref': '#/components/schemas/DhcpSearchV6'
|
2020-04-16 23:04:00 +03:00
|
|
|
|
2020-11-20 18:06:07 +03:00
|
|
|
'DhcpSearchV4':
|
|
|
|
'type': 'object'
|
|
|
|
'properties':
|
|
|
|
'other_server':
|
|
|
|
'$ref': '#/components/schemas/DhcpSearchResultOtherServer'
|
|
|
|
'static_ip':
|
|
|
|
'$ref': '#/components/schemas/DhcpSearchResultStaticIP'
|
2018-08-30 17:25:33 +03:00
|
|
|
|
2020-11-20 18:06:07 +03:00
|
|
|
'DhcpSearchV6':
|
|
|
|
'type': 'object'
|
|
|
|
'properties':
|
|
|
|
'other_server':
|
|
|
|
'$ref': '#/components/schemas/DhcpSearchResultOtherServer'
|
2020-04-16 23:04:00 +03:00
|
|
|
|
2020-11-20 18:06:07 +03:00
|
|
|
'DhcpSearchResultOtherServer':
|
|
|
|
'type': 'object'
|
|
|
|
'properties':
|
|
|
|
'found':
|
|
|
|
'type': 'string'
|
2021-01-20 15:59:24 +03:00
|
|
|
'enum':
|
|
|
|
- 'yes'
|
|
|
|
- 'no'
|
|
|
|
- 'error'
|
|
|
|
'description': >
|
|
|
|
The result of searching the other DHCP server.
|
2020-11-20 18:06:07 +03:00
|
|
|
'example': 'no'
|
|
|
|
'error':
|
|
|
|
'type': 'string'
|
|
|
|
'description': 'Set if found=error'
|
|
|
|
'example': ''
|
2018-08-30 17:25:33 +03:00
|
|
|
|
2020-11-20 18:06:07 +03:00
|
|
|
'DhcpSearchResultStaticIP':
|
|
|
|
'type': 'object'
|
|
|
|
'properties':
|
|
|
|
'static':
|
|
|
|
'type': 'string'
|
2021-01-20 15:59:24 +03:00
|
|
|
'enum':
|
|
|
|
- 'yes'
|
|
|
|
- 'no'
|
|
|
|
- 'error'
|
|
|
|
'description': >
|
|
|
|
The result of determining static IP address.
|
2020-11-20 18:06:07 +03:00
|
|
|
'example': 'yes'
|
|
|
|
'ip':
|
|
|
|
'type': 'string'
|
|
|
|
'description': 'Set if static=no'
|
|
|
|
'example': ''
|
2020-04-16 23:04:00 +03:00
|
|
|
|
2020-11-20 18:06:07 +03:00
|
|
|
'DnsAnswer':
|
|
|
|
'type': 'object'
|
|
|
|
'description': 'DNS answer section'
|
|
|
|
'properties':
|
|
|
|
'ttl':
|
|
|
|
'example': 55
|
2021-01-28 16:00:29 +03:00
|
|
|
'format': 'uint32'
|
|
|
|
'type': 'integer'
|
2020-11-20 18:06:07 +03:00
|
|
|
'type':
|
|
|
|
'type': 'string'
|
|
|
|
'example': 'A'
|
|
|
|
'value':
|
|
|
|
'type': 'string'
|
|
|
|
'example': '217.69.139.201'
|
|
|
|
'DnsQuestion':
|
|
|
|
'type': 'object'
|
|
|
|
'description': 'DNS question section'
|
|
|
|
'properties':
|
|
|
|
'class':
|
|
|
|
'type': 'string'
|
|
|
|
'example': 'IN'
|
2021-06-29 13:36:52 +03:00
|
|
|
'name':
|
|
|
|
'type': 'string'
|
|
|
|
'example': 'xn--d1abbgf6aiiy.xn--p1ai'
|
|
|
|
'unicode_name':
|
2020-11-20 18:06:07 +03:00
|
|
|
'type': 'string'
|
2021-06-29 13:36:52 +03:00
|
|
|
'example': 'президент.рф'
|
2020-11-20 18:06:07 +03:00
|
|
|
'type':
|
|
|
|
'type': 'string'
|
|
|
|
'example': 'A'
|
|
|
|
'AddUrlRequest':
|
|
|
|
'type': 'object'
|
|
|
|
'description': '/add_url request data'
|
|
|
|
'properties':
|
|
|
|
'name':
|
|
|
|
'type': 'string'
|
|
|
|
'url':
|
|
|
|
'description': >
|
|
|
|
URL or an absolute path to the file containing filtering rules.
|
|
|
|
'type': 'string'
|
|
|
|
'example': 'https://filters.adtidy.org/windows/filters/15.txt'
|
|
|
|
'whitelist':
|
|
|
|
'type': 'boolean'
|
|
|
|
'RemoveUrlRequest':
|
|
|
|
'type': 'object'
|
|
|
|
'description': '/remove_url request data'
|
|
|
|
'properties':
|
|
|
|
'url':
|
|
|
|
'description': 'Previously added URL containing filtering rules'
|
|
|
|
'type': 'string'
|
|
|
|
'example': 'https://filters.adtidy.org/windows/filters/15.txt'
|
2022-03-12 14:46:15 +03:00
|
|
|
'whitelist':
|
|
|
|
'type': 'boolean'
|
2020-11-20 18:06:07 +03:00
|
|
|
'QueryLogItem':
|
|
|
|
'type': 'object'
|
|
|
|
'description': 'Query log item'
|
|
|
|
'properties':
|
|
|
|
'answer':
|
|
|
|
'type': 'array'
|
|
|
|
'items':
|
|
|
|
'$ref': '#/components/schemas/DnsAnswer'
|
|
|
|
'original_answer':
|
|
|
|
'type': 'array'
|
|
|
|
'description': 'Answer from upstream server (optional)'
|
|
|
|
'items':
|
|
|
|
'$ref': '#/components/schemas/DnsAnswer'
|
2021-12-07 17:43:51 +03:00
|
|
|
'cached':
|
|
|
|
'type': 'boolean'
|
|
|
|
'description': >
|
|
|
|
Defines if the response has been served from cache.
|
2020-11-20 18:06:07 +03:00
|
|
|
'upstream':
|
|
|
|
'type': 'string'
|
|
|
|
'description': >
|
|
|
|
Upstream URL starting with tcp://, tls://, https://, or with an IP
|
|
|
|
address.
|
|
|
|
'answer_dnssec':
|
2021-12-13 18:06:01 +03:00
|
|
|
'description': >
|
|
|
|
If true, the response had the Authenticated Data (AD) flag set.
|
2020-11-20 18:06:07 +03:00
|
|
|
'type': 'boolean'
|
|
|
|
'client':
|
2021-01-27 18:32:13 +03:00
|
|
|
'description': >
|
|
|
|
The client's IP address.
|
2020-11-20 18:06:07 +03:00
|
|
|
'example': '192.168.0.1'
|
2021-01-27 18:32:13 +03:00
|
|
|
'type': 'string'
|
|
|
|
'client_id':
|
|
|
|
'description': >
|
2022-02-10 15:42:59 +03:00
|
|
|
The ClientID, if provided in DoH, DoQ, or DoT.
|
2021-01-27 18:32:13 +03:00
|
|
|
'example': 'cli123'
|
|
|
|
'type': 'string'
|
2021-04-02 17:30:39 +03:00
|
|
|
'client_info':
|
|
|
|
'$ref': '#/components/schemas/QueryLogItemClient'
|
2020-11-20 18:06:07 +03:00
|
|
|
'client_proto':
|
|
|
|
'enum':
|
|
|
|
- 'dot'
|
|
|
|
- 'doh'
|
|
|
|
- 'doq'
|
2021-01-27 18:32:13 +03:00
|
|
|
- 'dnscrypt'
|
2020-11-20 18:06:07 +03:00
|
|
|
- ''
|
2022-03-03 17:52:11 +03:00
|
|
|
'ecs':
|
|
|
|
'type': 'string'
|
|
|
|
'example': '192.168.0.0/16'
|
|
|
|
'description': >
|
|
|
|
The IP network defined by an EDNS Client-Subnet option in the
|
|
|
|
request message if any.
|
2020-11-20 18:06:07 +03:00
|
|
|
'elapsedMs':
|
|
|
|
'type': 'string'
|
|
|
|
'example': '54.023928'
|
|
|
|
'question':
|
|
|
|
'$ref': '#/components/schemas/DnsQuestion'
|
|
|
|
'filterId':
|
2020-12-17 13:32:46 +03:00
|
|
|
'deprecated': true
|
2020-11-20 18:06:07 +03:00
|
|
|
'type': 'integer'
|
|
|
|
'example': 123123
|
|
|
|
'description': >
|
|
|
|
In case if there's a rule applied to this DNS request, this is ID of
|
2020-12-17 13:32:46 +03:00
|
|
|
the filter list that the rule belongs to.
|
|
|
|
|
|
|
|
Deprecated: use `rules[*].filter_list_id` instead.
|
2020-11-20 18:06:07 +03:00
|
|
|
'rule':
|
2020-12-17 13:32:46 +03:00
|
|
|
'deprecated': true
|
2020-11-20 18:06:07 +03:00
|
|
|
'type': 'string'
|
|
|
|
'example': '||example.org^'
|
2020-12-17 13:32:46 +03:00
|
|
|
'description': >
|
|
|
|
Filtering rule applied to the request (if any).
|
|
|
|
|
|
|
|
Deprecated: use `rules[*].text` instead.
|
|
|
|
'rules':
|
|
|
|
'description': 'Applied rules.'
|
|
|
|
'type': 'array'
|
|
|
|
'items':
|
|
|
|
'$ref': '#/components/schemas/ResultRule'
|
2020-11-20 18:06:07 +03:00
|
|
|
'reason':
|
|
|
|
'type': 'string'
|
2020-12-21 17:48:07 +03:00
|
|
|
'description': 'Request filtering status.'
|
2020-11-20 18:06:07 +03:00
|
|
|
'enum':
|
|
|
|
- 'NotFilteredNotFound'
|
|
|
|
- 'NotFilteredWhiteList'
|
|
|
|
- 'NotFilteredError'
|
|
|
|
- 'FilteredBlackList'
|
|
|
|
- 'FilteredSafeBrowsing'
|
|
|
|
- 'FilteredParental'
|
|
|
|
- 'FilteredInvalid'
|
|
|
|
- 'FilteredSafeSearch'
|
|
|
|
- 'FilteredBlockedService'
|
2020-12-21 17:48:07 +03:00
|
|
|
- 'Rewrite'
|
|
|
|
- 'RewriteEtcHosts'
|
2020-12-28 18:41:50 +03:00
|
|
|
- 'RewriteRule'
|
2020-11-20 18:06:07 +03:00
|
|
|
'service_name':
|
|
|
|
'type': 'string'
|
|
|
|
'description': 'Set if reason=FilteredBlockedService'
|
|
|
|
'status':
|
|
|
|
'type': 'string'
|
|
|
|
'description': 'DNS response status'
|
|
|
|
'example': 'NOERROR'
|
|
|
|
'time':
|
|
|
|
'type': 'string'
|
|
|
|
'description': 'DNS request processing start time'
|
|
|
|
'example': '2018-11-26T00:02:41+03:00'
|
2021-04-02 17:30:39 +03:00
|
|
|
'QueryLogItemClient':
|
|
|
|
'description': >
|
|
|
|
Client information for a query log item.
|
|
|
|
'properties':
|
|
|
|
'disallowed':
|
|
|
|
'type': 'boolean'
|
|
|
|
'description': >
|
|
|
|
Whether the client's IP is blocked or not.
|
|
|
|
'disallowed_rule':
|
|
|
|
'type': 'string'
|
|
|
|
'description': >
|
2021-06-29 15:53:28 +03:00
|
|
|
The rule due to which the client is allowed or blocked.
|
2021-04-02 17:30:39 +03:00
|
|
|
'name':
|
|
|
|
'description': >
|
2021-09-13 20:16:06 +03:00
|
|
|
Persistent client's name or runtime client's hostname. May be
|
|
|
|
empty.
|
2021-04-02 17:30:39 +03:00
|
|
|
'type': 'string'
|
|
|
|
'whois':
|
|
|
|
'$ref': '#/components/schemas/QueryLogItemClientWhois'
|
|
|
|
'required':
|
|
|
|
- 'disallowed'
|
|
|
|
- 'disallowed_rule'
|
|
|
|
- 'name'
|
|
|
|
- 'whois'
|
|
|
|
'type': 'object'
|
|
|
|
'QueryLogItemClientWhois':
|
|
|
|
'description': >
|
|
|
|
Client WHOIS information, if any.
|
|
|
|
'properties':
|
|
|
|
'city':
|
|
|
|
'description': >
|
|
|
|
City, if any.
|
|
|
|
'type': 'string'
|
|
|
|
'country':
|
|
|
|
'description': >
|
|
|
|
Country, if any.
|
|
|
|
'type': 'string'
|
|
|
|
'orgname':
|
|
|
|
'description': >
|
|
|
|
Organization name, if any.
|
|
|
|
'type': 'string'
|
|
|
|
'type': 'object'
|
2020-11-20 18:06:07 +03:00
|
|
|
'QueryLog':
|
|
|
|
'type': 'object'
|
|
|
|
'description': 'Query log'
|
|
|
|
'properties':
|
|
|
|
'oldest':
|
|
|
|
'type': 'string'
|
|
|
|
'example': '2018-11-26T00:02:41+03:00'
|
|
|
|
'data':
|
|
|
|
'type': 'array'
|
|
|
|
'items':
|
|
|
|
'$ref': '#/components/schemas/QueryLogItem'
|
|
|
|
'QueryLogConfig':
|
|
|
|
'type': 'object'
|
|
|
|
'description': 'Query log configuration'
|
|
|
|
'properties':
|
|
|
|
'enabled':
|
|
|
|
'type': 'boolean'
|
|
|
|
'description': 'Is query log enabled'
|
|
|
|
'interval':
|
2021-07-01 18:50:28 +03:00
|
|
|
'description': >
|
|
|
|
Time period for query log rotation.
|
|
|
|
'type': 'number'
|
|
|
|
'enum':
|
|
|
|
- 0.25
|
|
|
|
- 1
|
|
|
|
- 7
|
|
|
|
- 30
|
|
|
|
- 90
|
2020-11-20 18:06:07 +03:00
|
|
|
'anonymize_client_ip':
|
|
|
|
'type': 'boolean'
|
|
|
|
'description': "Anonymize clients' IP addresses"
|
2023-03-23 13:46:57 +03:00
|
|
|
'GetQueryLogConfigResponse':
|
|
|
|
'type': 'object'
|
|
|
|
'description': 'Query log configuration'
|
|
|
|
'required':
|
|
|
|
- 'enabled'
|
|
|
|
- 'interval'
|
|
|
|
- 'anonymize_client_ip'
|
|
|
|
- 'ignored'
|
|
|
|
'properties':
|
|
|
|
'enabled':
|
|
|
|
'type': 'boolean'
|
|
|
|
'description': 'Is query log enabled'
|
|
|
|
'interval':
|
|
|
|
'description': >
|
2023-03-24 16:49:02 +03:00
|
|
|
Time period for query log rotation in milliseconds.
|
2023-03-23 13:46:57 +03:00
|
|
|
'type': 'number'
|
|
|
|
'anonymize_client_ip':
|
|
|
|
'type': 'boolean'
|
|
|
|
'description': "Anonymize clients' IP addresses"
|
|
|
|
'ignored':
|
|
|
|
'description': 'List of host names, which should not be written to log'
|
|
|
|
'type': 'array'
|
|
|
|
'items':
|
|
|
|
'type': 'string'
|
|
|
|
'PutQueryLogConfigUpdateRequest':
|
|
|
|
'$ref': '#/components/schemas/GetQueryLogConfigResponse'
|
2020-12-17 13:32:46 +03:00
|
|
|
'ResultRule':
|
|
|
|
'description': 'Applied rule.'
|
|
|
|
'properties':
|
|
|
|
'filter_list_id':
|
|
|
|
'description': >
|
|
|
|
In case if there's a rule applied to this DNS request, this is ID of
|
|
|
|
the filter list that the rule belongs to.
|
|
|
|
'example': 123123
|
|
|
|
'format': 'int64'
|
|
|
|
'type': 'integer'
|
|
|
|
'text':
|
|
|
|
'description': >
|
|
|
|
The text of the filtering rule applied to the request (if any).
|
|
|
|
'example': '||example.org^'
|
|
|
|
'type': 'string'
|
|
|
|
'type': 'object'
|
2020-11-20 18:06:07 +03:00
|
|
|
'TlsConfig':
|
|
|
|
'type': 'object'
|
|
|
|
'description': 'TLS configuration settings and status'
|
|
|
|
'properties':
|
|
|
|
'enabled':
|
|
|
|
'type': 'boolean'
|
|
|
|
'example': true
|
2021-06-18 18:13:36 +03:00
|
|
|
'description': 'enabled is the encryption (DoT/DoH/HTTPS) status'
|
2020-11-20 18:06:07 +03:00
|
|
|
'server_name':
|
|
|
|
'type': 'string'
|
|
|
|
'example': 'example.org'
|
|
|
|
'description': 'server_name is the hostname of your HTTPS/TLS server'
|
|
|
|
'force_https':
|
|
|
|
'type': 'boolean'
|
|
|
|
'example': true
|
|
|
|
'description': 'if true, forces HTTP->HTTPS redirect'
|
|
|
|
'port_https':
|
|
|
|
'type': 'integer'
|
2020-12-29 19:53:56 +03:00
|
|
|
'format': 'uint16'
|
2020-11-20 18:06:07 +03:00
|
|
|
'example': 443
|
|
|
|
'description': 'HTTPS port. If 0, HTTPS will be disabled.'
|
|
|
|
'port_dns_over_tls':
|
|
|
|
'type': 'integer'
|
2020-12-29 19:53:56 +03:00
|
|
|
'format': 'uint16'
|
2020-11-20 18:06:07 +03:00
|
|
|
'example': 853
|
2021-06-18 18:13:36 +03:00
|
|
|
'description': 'DNS-over-TLS port. If 0, DoT will be disabled.'
|
2020-11-20 18:06:07 +03:00
|
|
|
'port_dns_over_quic':
|
|
|
|
'type': 'integer'
|
2020-12-29 19:53:56 +03:00
|
|
|
'format': 'uint16'
|
2020-11-20 18:06:07 +03:00
|
|
|
'example': 784
|
2021-06-18 18:13:36 +03:00
|
|
|
'description': 'DNS-over-QUIC port. If 0, DoQ will be disabled.'
|
2020-11-20 18:06:07 +03:00
|
|
|
'certificate_chain':
|
|
|
|
'type': 'string'
|
|
|
|
'description': 'Base64 string with PEM-encoded certificates chain'
|
|
|
|
'private_key':
|
|
|
|
'type': 'string'
|
|
|
|
'description': 'Base64 string with PEM-encoded private key'
|
2021-08-27 13:42:31 +03:00
|
|
|
'private_key_saved':
|
|
|
|
'type': 'boolean'
|
|
|
|
'example': true
|
|
|
|
'description': >
|
|
|
|
Set to true if the user has previously saved a private key as
|
|
|
|
a string. This is used so that the server and the client don't
|
|
|
|
have to send the private key between each other every time,
|
|
|
|
which might lead to security issues.
|
2020-11-20 18:06:07 +03:00
|
|
|
'certificate_path':
|
|
|
|
'type': 'string'
|
|
|
|
'description': 'Path to certificate file'
|
|
|
|
'private_key_path':
|
|
|
|
'type': 'string'
|
|
|
|
'description': 'Path to private key file'
|
|
|
|
'valid_cert':
|
|
|
|
'type': 'boolean'
|
|
|
|
'example': true
|
|
|
|
'description': >
|
|
|
|
Set to true if the specified certificates chain is a valid chain of
|
|
|
|
X509 certificates.
|
|
|
|
'valid_chain':
|
|
|
|
'type': 'boolean'
|
|
|
|
'example': true
|
|
|
|
'description': >
|
|
|
|
Set to true if the specified certificates chain is verified and
|
|
|
|
issued by a known CA.
|
|
|
|
'subject':
|
|
|
|
'type': 'string'
|
|
|
|
'example': 'CN=example.org'
|
|
|
|
'description': 'The subject of the first certificate in the chain.'
|
|
|
|
'issuer':
|
|
|
|
'type': 'string'
|
|
|
|
'example': "CN=Let's Encrypt Authority X3,O=Let's Encrypt,C=US"
|
|
|
|
'description': 'The issuer of the first certificate in the chain.'
|
|
|
|
'not_before':
|
|
|
|
'type': 'string'
|
|
|
|
'example': '2019-01-31T10:47:32Z'
|
|
|
|
'description': >
|
|
|
|
The NotBefore field of the first certificate in the chain.
|
|
|
|
'not_after':
|
|
|
|
'type': 'string'
|
|
|
|
'example': '2019-05-01T10:47:32Z'
|
|
|
|
'description': >
|
|
|
|
The NotAfter field of the first certificate in the chain.
|
|
|
|
'dns_names':
|
|
|
|
'type': 'array'
|
|
|
|
'items':
|
|
|
|
'type': 'string'
|
|
|
|
'description': >
|
|
|
|
The value of SubjectAltNames field of the first certificate in the
|
|
|
|
chain.
|
|
|
|
'example':
|
|
|
|
- '*.example.org'
|
|
|
|
'valid_key':
|
|
|
|
'type': 'boolean'
|
|
|
|
'example': true
|
|
|
|
'description': 'Set to true if the key is a valid private key.'
|
|
|
|
'key_type':
|
|
|
|
'type': 'string'
|
|
|
|
'example': 'RSA'
|
|
|
|
'enum':
|
|
|
|
- 'RSA'
|
|
|
|
- 'ECDSA'
|
|
|
|
'description': 'Key type.'
|
|
|
|
'warning_validation':
|
|
|
|
'type': 'string'
|
|
|
|
'example': 'You have specified an empty certificate'
|
|
|
|
'description': >
|
|
|
|
A validation warning message with the issue description.
|
|
|
|
'valid_pair':
|
|
|
|
'type': 'boolean'
|
|
|
|
'example': true
|
|
|
|
'description': >
|
|
|
|
Set to true if both certificate and private key are correct.
|
2023-12-12 13:16:01 +03:00
|
|
|
'serve_plain_dns':
|
|
|
|
'type': 'boolean'
|
|
|
|
'example': true
|
|
|
|
'description': >
|
|
|
|
Set to true if plain DNS is allowed for incoming requests.
|
2020-11-20 18:06:07 +03:00
|
|
|
'NetInterface':
|
|
|
|
'type': 'object'
|
|
|
|
'description': 'Network interface info'
|
2020-12-29 19:53:56 +03:00
|
|
|
'required':
|
|
|
|
- 'flags'
|
|
|
|
- 'hardware_address'
|
|
|
|
- 'name'
|
|
|
|
- 'mtu'
|
2020-11-20 18:06:07 +03:00
|
|
|
'properties':
|
|
|
|
'flags':
|
|
|
|
'type': 'string'
|
2021-01-21 19:55:41 +03:00
|
|
|
'description': >
|
|
|
|
Flags could be any combination of the following values, divided by
|
|
|
|
the "|" character: "up", "broadcast", "loopback", "pointtopoint" and
|
|
|
|
"multicast".
|
2020-11-20 18:06:07 +03:00
|
|
|
'example': 'up|broadcast|multicast'
|
|
|
|
'hardware_address':
|
|
|
|
'type': 'string'
|
|
|
|
'example': '52:54:00:11:09:ba'
|
|
|
|
'name':
|
|
|
|
'type': 'string'
|
|
|
|
'example': 'eth0'
|
2020-12-29 19:53:56 +03:00
|
|
|
'ip_addresses':
|
2020-11-20 18:06:07 +03:00
|
|
|
'type': 'array'
|
|
|
|
'items':
|
|
|
|
'type': 'string'
|
2020-12-29 19:53:56 +03:00
|
|
|
'mtu':
|
|
|
|
'type': 'integer'
|
2020-11-20 18:06:07 +03:00
|
|
|
'AddressInfo':
|
|
|
|
'type': 'object'
|
|
|
|
'description': 'Port information'
|
2021-01-14 13:48:52 +03:00
|
|
|
'required':
|
2020-12-29 19:53:56 +03:00
|
|
|
- 'ip'
|
|
|
|
- 'port'
|
2020-11-20 18:06:07 +03:00
|
|
|
'properties':
|
|
|
|
'ip':
|
|
|
|
'type': 'string'
|
|
|
|
'example': '127.0.0.1'
|
|
|
|
'port':
|
|
|
|
'type': 'integer'
|
2020-12-29 19:53:56 +03:00
|
|
|
'format': 'uint16'
|
2020-11-20 18:06:07 +03:00
|
|
|
'example': 53
|
|
|
|
'AddressesInfo':
|
|
|
|
'type': 'object'
|
|
|
|
'description': 'AdGuard Home addresses configuration'
|
2021-01-14 13:48:52 +03:00
|
|
|
'required':
|
2020-12-29 19:53:56 +03:00
|
|
|
- 'dns_port'
|
|
|
|
- 'interfaces'
|
2022-01-18 15:05:34 +03:00
|
|
|
- 'version'
|
|
|
|
- 'web_port'
|
2020-11-20 18:06:07 +03:00
|
|
|
'properties':
|
|
|
|
'dns_port':
|
|
|
|
'type': 'integer'
|
2020-12-29 19:53:56 +03:00
|
|
|
'format': 'uint16'
|
2020-11-20 18:06:07 +03:00
|
|
|
'example': 53
|
2022-01-18 15:05:34 +03:00
|
|
|
'interfaces':
|
|
|
|
'$ref': '#/components/schemas/NetInterfaces'
|
|
|
|
'version':
|
|
|
|
'type': 'string'
|
|
|
|
'example': 'v0.123.4'
|
2020-11-20 18:06:07 +03:00
|
|
|
'web_port':
|
|
|
|
'type': 'integer'
|
2020-12-29 19:53:56 +03:00
|
|
|
'format': 'uint16'
|
2020-11-20 18:06:07 +03:00
|
|
|
'example': 80
|
2023-03-24 15:11:47 +03:00
|
|
|
'SetProtectionRequest':
|
|
|
|
'type': 'object'
|
|
|
|
'description': 'Protection state configuration'
|
|
|
|
'properties':
|
|
|
|
'enabled':
|
|
|
|
'type': 'boolean'
|
|
|
|
'duration':
|
|
|
|
'type': 'integer'
|
|
|
|
'format': 'uint64'
|
|
|
|
'description': 'Duration of a pause, in milliseconds. Enabled should be false.'
|
|
|
|
'required':
|
|
|
|
- 'enabled'
|
2020-11-20 18:06:07 +03:00
|
|
|
'ProfileInfo':
|
|
|
|
'type': 'object'
|
|
|
|
'description': 'Information about the current user'
|
|
|
|
'properties':
|
|
|
|
'name':
|
|
|
|
'type': 'string'
|
2023-01-13 19:24:17 +03:00
|
|
|
'language':
|
|
|
|
'type': 'string'
|
|
|
|
'theme':
|
|
|
|
'type': 'string'
|
|
|
|
'description': 'Interface theme'
|
|
|
|
'enum':
|
|
|
|
- 'auto'
|
|
|
|
- 'dark'
|
|
|
|
- 'light'
|
|
|
|
'required':
|
|
|
|
- 'name'
|
|
|
|
- 'language'
|
|
|
|
- 'theme'
|
2023-03-23 15:25:58 +03:00
|
|
|
'SafeSearchConfig':
|
|
|
|
'type': 'object'
|
|
|
|
'description': 'Safe search settings.'
|
|
|
|
'properties':
|
|
|
|
'enabled':
|
|
|
|
'type': 'boolean'
|
|
|
|
'bing':
|
|
|
|
'type': 'boolean'
|
|
|
|
'duckduckgo':
|
|
|
|
'type': 'boolean'
|
|
|
|
'google':
|
|
|
|
'type': 'boolean'
|
|
|
|
'pixabay':
|
|
|
|
'type': 'boolean'
|
|
|
|
'yandex':
|
|
|
|
'type': 'boolean'
|
|
|
|
'youtube':
|
|
|
|
'type': 'boolean'
|
2023-08-29 20:03:40 +03:00
|
|
|
'Schedule':
|
|
|
|
'type': 'object'
|
|
|
|
'description': >
|
|
|
|
Sets periods of inactivity for filtering blocked services. The
|
|
|
|
schedule contains 7 days (Sunday to Saturday) and a time zone.
|
|
|
|
'properties':
|
|
|
|
'time_zone':
|
|
|
|
'description': >
|
|
|
|
Time zone name according to IANA time zone database. For example
|
|
|
|
`Europe/Brussels`. `Local` represents the system's local time
|
|
|
|
zone.
|
|
|
|
'type': 'string'
|
|
|
|
'sun':
|
|
|
|
'$ref': '#/components/schemas/DayRange'
|
|
|
|
'mon':
|
|
|
|
'$ref': '#/components/schemas/DayRange'
|
|
|
|
'tue':
|
|
|
|
'$ref': '#/components/schemas/DayRange'
|
|
|
|
'wed':
|
|
|
|
'$ref': '#/components/schemas/DayRange'
|
|
|
|
'thu':
|
|
|
|
'$ref': '#/components/schemas/DayRange'
|
|
|
|
'fri':
|
|
|
|
'$ref': '#/components/schemas/DayRange'
|
|
|
|
'sat':
|
|
|
|
'$ref': '#/components/schemas/DayRange'
|
|
|
|
'DayRange':
|
|
|
|
'type': 'object'
|
|
|
|
'description': >
|
|
|
|
The single interval within a day. It begins at the `start` and ends
|
|
|
|
before the `end`.
|
|
|
|
'properties':
|
|
|
|
'start':
|
|
|
|
'type': 'number'
|
|
|
|
'description': >
|
|
|
|
The number of milliseconds elapsed from the start of a day. It
|
|
|
|
must be less than `end` and is expected to be rounded to minutes.
|
|
|
|
So the maximum value is `86340000` (23 hours and 59 minutes).
|
|
|
|
'minimum': 0
|
|
|
|
'maximum': 86340000
|
|
|
|
'end':
|
|
|
|
'type': 'number'
|
|
|
|
'description': >
|
|
|
|
The number of milliseconds elapsed from the start of a day. It is
|
|
|
|
expected to be rounded to minutes. The maximum value is `86400000`
|
|
|
|
(24 hours).
|
|
|
|
'minimum': 0
|
|
|
|
'maximum': 86400000
|
2020-11-20 18:06:07 +03:00
|
|
|
'Client':
|
|
|
|
'type': 'object'
|
2021-01-27 18:32:13 +03:00
|
|
|
'description': 'Client information.'
|
2020-11-20 18:06:07 +03:00
|
|
|
'properties':
|
|
|
|
'name':
|
|
|
|
'type': 'string'
|
|
|
|
'description': 'Name'
|
|
|
|
'example': 'localhost'
|
|
|
|
'ids':
|
|
|
|
'type': 'array'
|
2022-02-10 15:42:59 +03:00
|
|
|
'description': 'IP, CIDR, MAC, or ClientID.'
|
2020-11-20 18:06:07 +03:00
|
|
|
'items':
|
|
|
|
'type': 'string'
|
|
|
|
'use_global_settings':
|
|
|
|
'type': 'boolean'
|
|
|
|
'filtering_enabled':
|
|
|
|
'type': 'boolean'
|
|
|
|
'parental_enabled':
|
|
|
|
'type': 'boolean'
|
|
|
|
'safebrowsing_enabled':
|
|
|
|
'type': 'boolean'
|
|
|
|
'safesearch_enabled':
|
2023-03-23 15:25:58 +03:00
|
|
|
'deprecated': true
|
2020-11-20 18:06:07 +03:00
|
|
|
'type': 'boolean'
|
2023-03-23 15:25:58 +03:00
|
|
|
'safe_search':
|
|
|
|
'$ref': '#/components/schemas/SafeSearchConfig'
|
2020-11-20 18:06:07 +03:00
|
|
|
'use_global_blocked_services':
|
|
|
|
'type': 'boolean'
|
2023-08-29 20:03:40 +03:00
|
|
|
'blocked_services_schedule':
|
|
|
|
'$ref': '#/components/schemas/Schedule'
|
2020-11-20 18:06:07 +03:00
|
|
|
'blocked_services':
|
|
|
|
'type': 'array'
|
|
|
|
'items':
|
|
|
|
'type': 'string'
|
|
|
|
'upstreams':
|
|
|
|
'type': 'array'
|
|
|
|
'items':
|
|
|
|
'type': 'string'
|
2021-05-06 16:41:33 +03:00
|
|
|
'tags':
|
|
|
|
'items':
|
|
|
|
'type': 'string'
|
|
|
|
'type': 'array'
|
2023-04-14 15:25:04 +03:00
|
|
|
'ignore_querylog':
|
|
|
|
'description': |
|
|
|
|
NOTE: If `ignore_querylog` is not set in HTTP API `GET /clients/add`
|
|
|
|
request then default value (false) will be used.
|
|
|
|
|
|
|
|
If `ignore_querylog` is not set in HTTP API `GET /clients/update`
|
|
|
|
request then the existing value will not be changed.
|
|
|
|
|
|
|
|
This behaviour can be changed in the future versions.
|
|
|
|
'type': 'boolean'
|
|
|
|
'ignore_statistics':
|
|
|
|
'description': |
|
|
|
|
NOTE: If `ignore_statistics` is not set in HTTP API `GET
|
|
|
|
/clients/add` request then default value (false) will be used.
|
|
|
|
|
|
|
|
If `ignore_statistics` is not set in HTTP API `GET /clients/update`
|
|
|
|
request then the existing value will not be changed.
|
|
|
|
|
2023-11-24 15:20:32 +03:00
|
|
|
This behaviour can be changed in the future versions.
|
|
|
|
'type': 'boolean'
|
|
|
|
'upstreams_cache_enabled':
|
|
|
|
'description': |
|
|
|
|
NOTE: If `upstreams_cache_enabled` is not set in HTTP API
|
|
|
|
`GET /clients/add` request then default value (false) will be used.
|
|
|
|
|
|
|
|
If `upstreams_cache_enabled` is not set in HTTP API
|
|
|
|
`GET /clients/update` request then the existing value will not be
|
|
|
|
changed.
|
|
|
|
|
|
|
|
This behaviour can be changed in the future versions.
|
|
|
|
'type': 'boolean'
|
|
|
|
'upstreams_cache_size':
|
|
|
|
'description': |
|
|
|
|
NOTE: If `upstreams_cache_enabled` is not set in HTTP API
|
|
|
|
`GET /clients/update` request then the existing value will not be
|
|
|
|
changed.
|
|
|
|
|
2023-04-14 15:25:04 +03:00
|
|
|
This behaviour can be changed in the future versions.
|
2023-12-20 09:52:39 +03:00
|
|
|
'type': 'integer'
|
2020-11-20 18:06:07 +03:00
|
|
|
'ClientAuto':
|
|
|
|
'type': 'object'
|
|
|
|
'description': 'Auto-Client information'
|
|
|
|
'properties':
|
|
|
|
'ip':
|
|
|
|
'type': 'string'
|
|
|
|
'description': 'IP address'
|
|
|
|
'example': '127.0.0.1'
|
|
|
|
'name':
|
|
|
|
'type': 'string'
|
|
|
|
'description': 'Name'
|
|
|
|
'example': 'localhost'
|
|
|
|
'source':
|
|
|
|
'type': 'string'
|
|
|
|
'description': 'The source of this information'
|
|
|
|
'example': 'etc/hosts'
|
2021-05-06 16:41:33 +03:00
|
|
|
'whois_info':
|
|
|
|
'$ref': '#/components/schemas/WhoisInfo'
|
2020-11-20 18:06:07 +03:00
|
|
|
'ClientUpdate':
|
|
|
|
'type': 'object'
|
|
|
|
'description': 'Client update request'
|
|
|
|
'properties':
|
|
|
|
'name':
|
|
|
|
'type': 'string'
|
|
|
|
'data':
|
|
|
|
'$ref': '#/components/schemas/Client'
|
|
|
|
'ClientDelete':
|
|
|
|
'type': 'object'
|
|
|
|
'description': 'Client delete request'
|
|
|
|
'properties':
|
|
|
|
'name':
|
|
|
|
'type': 'string'
|
|
|
|
'ClientsFindResponse':
|
|
|
|
'type': 'array'
|
2021-01-27 18:32:13 +03:00
|
|
|
'description': 'Client search results.'
|
2020-11-20 18:06:07 +03:00
|
|
|
'items':
|
|
|
|
'$ref': '#/components/schemas/ClientsFindEntry'
|
2021-01-27 18:32:13 +03:00
|
|
|
'example':
|
|
|
|
- 'cli42':
|
|
|
|
'name': 'Client 42'
|
|
|
|
'ids': ['cli42']
|
|
|
|
'use_global_settings': true
|
|
|
|
'filtering_enabled': true
|
|
|
|
'parental_enabled': true
|
|
|
|
'safebrowsing_enabled': true
|
|
|
|
'safesearch_enabled': true
|
2023-03-23 15:25:58 +03:00
|
|
|
'safe_search': {}
|
2021-01-27 18:32:13 +03:00
|
|
|
'use_global_blocked_services': true
|
|
|
|
'blocked_services': null
|
|
|
|
'upstreams': null
|
2021-04-02 17:30:39 +03:00
|
|
|
'whois_info': {}
|
2021-01-27 18:32:13 +03:00
|
|
|
'disallowed': false
|
|
|
|
'disallowed_rule': ''
|
2023-04-14 15:25:04 +03:00
|
|
|
'ignore_querylog': false
|
|
|
|
'ignore_statistics': false
|
2021-01-27 18:32:13 +03:00
|
|
|
- '1.2.3.4':
|
|
|
|
'name': 'Client 1-2-3-4'
|
|
|
|
'ids': ['1.2.3.4']
|
|
|
|
'use_global_settings': true
|
|
|
|
'filtering_enabled': true
|
|
|
|
'parental_enabled': true
|
|
|
|
'safebrowsing_enabled': true
|
|
|
|
'safesearch_enabled': true
|
2023-03-23 15:25:58 +03:00
|
|
|
'safe_search': {}
|
2021-01-27 18:32:13 +03:00
|
|
|
'use_global_blocked_services': true
|
|
|
|
'blocked_services': null
|
|
|
|
'upstreams': null
|
2021-04-02 17:30:39 +03:00
|
|
|
'whois_info': {}
|
2021-01-27 18:32:13 +03:00
|
|
|
'disallowed': false
|
|
|
|
'disallowed_rule': ''
|
2023-04-14 15:25:04 +03:00
|
|
|
'ignore_querylog': false
|
|
|
|
'ignore_statistics': false
|
2021-01-13 17:26:57 +03:00
|
|
|
'AccessListResponse':
|
|
|
|
'$ref': '#/components/schemas/AccessList'
|
|
|
|
'AccessSetRequest':
|
|
|
|
'$ref': '#/components/schemas/AccessList'
|
|
|
|
'AccessList':
|
2021-09-10 17:57:09 +03:00
|
|
|
'description': >
|
|
|
|
Client and host access list. Each of the lists should contain only
|
|
|
|
unique elements. In addition, allowed and disallowed lists cannot
|
|
|
|
contain the same elements.
|
2021-01-13 17:26:57 +03:00
|
|
|
'properties':
|
|
|
|
'allowed_clients':
|
2021-06-29 15:53:28 +03:00
|
|
|
'description': >
|
2022-02-10 15:42:59 +03:00
|
|
|
The allowlist of clients: IP addresses, CIDRs, or ClientIDs.
|
2021-01-13 17:26:57 +03:00
|
|
|
'items':
|
|
|
|
'type': 'string'
|
|
|
|
'type': 'array'
|
|
|
|
'disallowed_clients':
|
2021-06-29 15:53:28 +03:00
|
|
|
'description': >
|
2022-02-10 15:42:59 +03:00
|
|
|
The blocklist of clients: IP addresses, CIDRs, or ClientIDs.
|
2021-01-13 17:26:57 +03:00
|
|
|
'items':
|
|
|
|
'type': 'string'
|
|
|
|
'type': 'array'
|
|
|
|
'blocked_hosts':
|
2021-06-29 15:53:28 +03:00
|
|
|
'description': 'The blocklist of hosts.'
|
2021-01-13 17:26:57 +03:00
|
|
|
'items':
|
|
|
|
'type': 'string'
|
|
|
|
'type': 'array'
|
|
|
|
'type': 'object'
|
2020-11-20 18:06:07 +03:00
|
|
|
'ClientsFindEntry':
|
|
|
|
'type': 'object'
|
2020-12-29 19:53:56 +03:00
|
|
|
'additionalProperties':
|
|
|
|
'$ref': '#/components/schemas/ClientFindSubEntry'
|
2020-11-20 18:06:07 +03:00
|
|
|
'ClientFindSubEntry':
|
|
|
|
'type': 'object'
|
2021-01-27 18:32:13 +03:00
|
|
|
'description': 'Client information.'
|
2020-11-20 18:06:07 +03:00
|
|
|
'properties':
|
|
|
|
'name':
|
|
|
|
'type': 'string'
|
|
|
|
'description': 'Name'
|
|
|
|
'example': 'localhost'
|
|
|
|
'ids':
|
|
|
|
'type': 'array'
|
2022-02-10 15:42:59 +03:00
|
|
|
'description': 'IP, CIDR, MAC, or ClientID.'
|
2020-11-20 18:06:07 +03:00
|
|
|
'items':
|
|
|
|
'type': 'string'
|
|
|
|
'use_global_settings':
|
|
|
|
'type': 'boolean'
|
|
|
|
'filtering_enabled':
|
|
|
|
'type': 'boolean'
|
|
|
|
'parental_enabled':
|
|
|
|
'type': 'boolean'
|
|
|
|
'safebrowsing_enabled':
|
|
|
|
'type': 'boolean'
|
|
|
|
'safesearch_enabled':
|
2023-03-23 15:25:58 +03:00
|
|
|
'deprecated': true
|
2020-11-20 18:06:07 +03:00
|
|
|
'type': 'boolean'
|
2023-03-23 15:25:58 +03:00
|
|
|
'safe_search':
|
|
|
|
'$ref': '#/components/schemas/SafeSearchConfig'
|
2020-11-20 18:06:07 +03:00
|
|
|
'use_global_blocked_services':
|
|
|
|
'type': 'boolean'
|
|
|
|
'blocked_services':
|
|
|
|
'type': 'array'
|
|
|
|
'items':
|
|
|
|
'type': 'string'
|
|
|
|
'upstreams':
|
|
|
|
'type': 'array'
|
|
|
|
'items':
|
|
|
|
'type': 'string'
|
|
|
|
'whois_info':
|
2021-01-14 13:48:52 +03:00
|
|
|
'$ref': '#/components/schemas/WhoisInfo'
|
2020-11-20 18:06:07 +03:00
|
|
|
'disallowed':
|
|
|
|
'type': 'boolean'
|
|
|
|
'description': >
|
|
|
|
Whether the client's IP is blocked or not.
|
|
|
|
'disallowed_rule':
|
|
|
|
'type': 'string'
|
|
|
|
'description': >
|
|
|
|
The rule due to which the client is disallowed. If disallowed is
|
|
|
|
set to true, and this string is empty, then the client IP is
|
|
|
|
disallowed by the "allowed IP list", that is it is not included in
|
|
|
|
the allowed list.
|
2023-04-14 15:25:04 +03:00
|
|
|
'ignore_querylog':
|
|
|
|
'type': 'boolean'
|
|
|
|
'ignore_statistics':
|
|
|
|
'type': 'boolean'
|
2020-11-20 18:06:07 +03:00
|
|
|
'WhoisInfo':
|
|
|
|
'type': 'object'
|
2021-01-14 13:48:52 +03:00
|
|
|
'additionalProperties':
|
|
|
|
'type': 'string'
|
2020-08-13 18:45:27 +03:00
|
|
|
|
2020-11-20 18:06:07 +03:00
|
|
|
'Clients':
|
|
|
|
'type': 'object'
|
|
|
|
'properties':
|
|
|
|
'clients':
|
|
|
|
'$ref': '#/components/schemas/ClientsArray'
|
|
|
|
'auto_clients':
|
|
|
|
'$ref': '#/components/schemas/ClientsAutoArray'
|
2021-05-06 16:41:33 +03:00
|
|
|
'supported_tags':
|
|
|
|
'items':
|
|
|
|
'type': 'string'
|
|
|
|
'type': 'array'
|
2020-11-20 18:06:07 +03:00
|
|
|
'ClientsArray':
|
|
|
|
'type': 'array'
|
|
|
|
'items':
|
|
|
|
'$ref': '#/components/schemas/Client'
|
|
|
|
'description': 'Clients array'
|
|
|
|
'ClientsAutoArray':
|
|
|
|
'type': 'array'
|
|
|
|
'items':
|
|
|
|
'$ref': '#/components/schemas/ClientAuto'
|
|
|
|
'description': 'Auto-Clients array'
|
|
|
|
'RewriteList':
|
|
|
|
'type': 'array'
|
|
|
|
'items':
|
|
|
|
'$ref': '#/components/schemas/RewriteEntry'
|
|
|
|
'description': 'Rewrite rules array'
|
2023-05-12 13:04:19 +03:00
|
|
|
'RewriteUpdate':
|
|
|
|
'type': 'object'
|
|
|
|
'description': 'Rewrite rule update object'
|
|
|
|
'properties':
|
|
|
|
'target':
|
|
|
|
'$ref': '#/components/schemas/RewriteEntry'
|
|
|
|
'update':
|
|
|
|
'$ref': '#/components/schemas/RewriteEntry'
|
2020-11-20 18:06:07 +03:00
|
|
|
'RewriteEntry':
|
|
|
|
'type': 'object'
|
|
|
|
'description': 'Rewrite rule'
|
|
|
|
'properties':
|
|
|
|
'domain':
|
|
|
|
'type': 'string'
|
|
|
|
'description': 'Domain name'
|
|
|
|
'example': 'example.org'
|
|
|
|
'answer':
|
|
|
|
'type': 'string'
|
|
|
|
'description': 'value of A, AAAA or CNAME DNS record'
|
|
|
|
'example': '127.0.0.1'
|
|
|
|
'BlockedServicesArray':
|
|
|
|
'type': 'array'
|
|
|
|
'items':
|
|
|
|
'type': 'string'
|
2022-10-27 15:46:25 +03:00
|
|
|
'BlockedServicesAll':
|
|
|
|
'properties':
|
|
|
|
'blocked_services':
|
|
|
|
'items':
|
|
|
|
'$ref': '#/components/schemas/BlockedService'
|
|
|
|
'type': 'array'
|
|
|
|
'required':
|
|
|
|
- 'blocked_services'
|
|
|
|
'type': 'object'
|
|
|
|
'BlockedService':
|
|
|
|
'properties':
|
|
|
|
'icon_svg':
|
|
|
|
'description': >
|
|
|
|
The SVG icon as a Base64-encoded string to make it easier to embed
|
|
|
|
it into a data URL.
|
|
|
|
'type': 'string'
|
|
|
|
'id':
|
|
|
|
'description': >
|
|
|
|
The ID of this service.
|
|
|
|
'type': 'string'
|
|
|
|
'name':
|
|
|
|
'description': >
|
|
|
|
The human-readable name of this service.
|
|
|
|
'type': 'string'
|
|
|
|
'rules':
|
|
|
|
'description': >
|
|
|
|
The array of the filtering rules.
|
|
|
|
'items':
|
|
|
|
'type': 'string'
|
|
|
|
'type': 'array'
|
|
|
|
'required':
|
|
|
|
- 'icon_svg'
|
|
|
|
- 'id'
|
|
|
|
- 'name'
|
|
|
|
- 'rules'
|
|
|
|
'type': 'object'
|
2023-08-29 20:03:40 +03:00
|
|
|
'BlockedServicesSchedule':
|
|
|
|
'type': 'object'
|
|
|
|
'properties':
|
|
|
|
'schedule':
|
|
|
|
'$ref': '#/components/schemas/Schedule'
|
|
|
|
'ids':
|
|
|
|
'description': >
|
|
|
|
The names of the blocked services.
|
|
|
|
'type': 'array'
|
|
|
|
'items':
|
|
|
|
'type': 'string'
|
2020-11-20 18:06:07 +03:00
|
|
|
'CheckConfigRequest':
|
|
|
|
'type': 'object'
|
|
|
|
'description': 'Configuration to be checked'
|
|
|
|
'properties':
|
|
|
|
'dns':
|
|
|
|
'$ref': '#/components/schemas/CheckConfigRequestInfo'
|
|
|
|
'web':
|
|
|
|
'$ref': '#/components/schemas/CheckConfigRequestInfo'
|
|
|
|
'set_static_ip':
|
|
|
|
'type': 'boolean'
|
|
|
|
'example': false
|
|
|
|
'CheckConfigRequestInfo':
|
|
|
|
'type': 'object'
|
|
|
|
'properties':
|
|
|
|
'ip':
|
|
|
|
'type': 'string'
|
|
|
|
'example': '127.0.0.1'
|
|
|
|
'port':
|
|
|
|
'type': 'integer'
|
2020-12-29 19:53:56 +03:00
|
|
|
'format': 'uint16'
|
2020-11-20 18:06:07 +03:00
|
|
|
'example': 53
|
|
|
|
'autofix':
|
|
|
|
'type': 'boolean'
|
|
|
|
'example': false
|
|
|
|
'CheckConfigResponse':
|
|
|
|
'type': 'object'
|
2021-01-14 13:48:52 +03:00
|
|
|
'required':
|
2020-12-29 19:53:56 +03:00
|
|
|
- 'dns'
|
|
|
|
- 'web'
|
|
|
|
- 'static_ip'
|
2020-11-20 18:06:07 +03:00
|
|
|
'properties':
|
|
|
|
'dns':
|
|
|
|
'$ref': '#/components/schemas/CheckConfigResponseInfo'
|
|
|
|
'web':
|
|
|
|
'$ref': '#/components/schemas/CheckConfigResponseInfo'
|
|
|
|
'static_ip':
|
|
|
|
'$ref': '#/components/schemas/CheckConfigStaticIpInfo'
|
|
|
|
'CheckConfigResponseInfo':
|
|
|
|
'type': 'object'
|
2021-01-14 13:48:52 +03:00
|
|
|
'required':
|
2020-12-29 19:53:56 +03:00
|
|
|
- 'status'
|
|
|
|
- 'can_autofix'
|
2020-11-20 18:06:07 +03:00
|
|
|
'properties':
|
|
|
|
'status':
|
|
|
|
'type': 'string'
|
2020-12-29 19:53:56 +03:00
|
|
|
'default': ''
|
2020-11-20 18:06:07 +03:00
|
|
|
'can_autofix':
|
|
|
|
'type': 'boolean'
|
|
|
|
'example': false
|
2020-12-29 19:53:56 +03:00
|
|
|
'CheckConfigStaticIpInfoStatic':
|
|
|
|
'type': 'string'
|
|
|
|
'example': 'no'
|
2021-01-14 13:48:52 +03:00
|
|
|
'enum':
|
2020-12-29 19:53:56 +03:00
|
|
|
- 'yes'
|
|
|
|
- 'no'
|
|
|
|
- 'error'
|
|
|
|
'description': 'Can be: yes, no, error'
|
2020-11-20 18:06:07 +03:00
|
|
|
'CheckConfigStaticIpInfo':
|
|
|
|
'type': 'object'
|
|
|
|
'properties':
|
|
|
|
'static':
|
2020-12-29 19:53:56 +03:00
|
|
|
'$ref': '#/components/schemas/CheckConfigStaticIpInfoStatic'
|
2020-11-20 18:06:07 +03:00
|
|
|
'ip':
|
|
|
|
'type': 'string'
|
2020-12-29 19:53:56 +03:00
|
|
|
'default': ''
|
2020-11-20 18:06:07 +03:00
|
|
|
'example': '192.168.1.1'
|
|
|
|
'description': 'Current dynamic IP address. Set if static=no'
|
|
|
|
'error':
|
|
|
|
'type': 'string'
|
2020-12-29 19:53:56 +03:00
|
|
|
'default': ''
|
2020-11-20 18:06:07 +03:00
|
|
|
'description': 'Error text. Set if static=error'
|
|
|
|
'InitialConfiguration':
|
|
|
|
'type': 'object'
|
|
|
|
'description': >
|
|
|
|
AdGuard Home initial configuration for the first-install wizard.
|
2021-01-14 13:48:52 +03:00
|
|
|
'required':
|
2020-12-29 19:53:56 +03:00
|
|
|
- 'dns'
|
|
|
|
- 'web'
|
|
|
|
- 'username'
|
|
|
|
- 'password'
|
2020-11-20 18:06:07 +03:00
|
|
|
'properties':
|
|
|
|
'dns':
|
|
|
|
'$ref': '#/components/schemas/AddressInfo'
|
|
|
|
'web':
|
|
|
|
'$ref': '#/components/schemas/AddressInfo'
|
|
|
|
'username':
|
|
|
|
'type': 'string'
|
|
|
|
'description': 'Basic auth username'
|
|
|
|
'example': 'admin'
|
|
|
|
'password':
|
|
|
|
'type': 'string'
|
|
|
|
'description': 'Basic auth password'
|
|
|
|
'example': 'password'
|
|
|
|
'Login':
|
|
|
|
'type': 'object'
|
|
|
|
'description': 'Login request data'
|
|
|
|
'properties':
|
2021-01-12 17:45:19 +03:00
|
|
|
'name':
|
2020-11-20 18:06:07 +03:00
|
|
|
'type': 'string'
|
|
|
|
'description': 'User name'
|
|
|
|
'password':
|
|
|
|
'type': 'string'
|
|
|
|
'description': 'Password'
|
|
|
|
'Error':
|
|
|
|
'description': 'A generic JSON error response.'
|
|
|
|
'properties':
|
|
|
|
'message':
|
|
|
|
'description': 'The error message, an opaque string.'
|
|
|
|
'type': 'string'
|
|
|
|
'type': 'object'
|
2022-09-29 19:04:26 +03:00
|
|
|
'LanguageSettings':
|
|
|
|
'description': 'Language settings object.'
|
|
|
|
'properties':
|
|
|
|
'language':
|
|
|
|
'description': 'The current language or the language to set.'
|
|
|
|
'type': 'string'
|
|
|
|
'required':
|
|
|
|
- 'language'
|
|
|
|
'type': 'object'
|
2020-12-04 05:49:45 +03:00
|
|
|
'securitySchemes':
|
|
|
|
'basicAuth':
|
|
|
|
'type': 'http'
|
|
|
|
'scheme': 'basic'
|