2020-11-20 15:06:07 +00:00
|
|
|
'openapi': '3.0.3'
|
|
|
|
'info':
|
|
|
|
'title': 'AdGuard Home'
|
|
|
|
'description': >
|
2020-12-17 10:32:46 +00:00
|
|
|
AdGuard Home REST-ish API. Our admin web interface is built on top of this
|
|
|
|
REST-ish API.
|
2021-07-20 09:31:52 +00:00
|
|
|
'version': '0.107'
|
2020-11-20 15:06:07 +00:00
|
|
|
'contact':
|
|
|
|
'name': 'AdGuard Home'
|
|
|
|
'url': 'https://github.com/AdguardTeam/AdGuardHome'
|
2018-11-26 09:48:17 +00:00
|
|
|
|
2020-11-20 15:06:07 +00:00
|
|
|
'servers':
|
|
|
|
- 'url': '/control'
|
2018-11-26 09:48:17 +00:00
|
|
|
|
2020-12-04 02:49:45 +00:00
|
|
|
'security':
|
|
|
|
- 'basicAuth': []
|
|
|
|
|
2020-11-20 15:06:07 +00: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 15:13:36 +00:00
|
|
|
'description': 'AdGuard Home HTTPS/DoH/DoQ/DoT settings'
|
2018-11-26 09:48:17 +00:00
|
|
|
|
2020-11-20 15:06:07 +00: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 11:28:34 +00: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 15:06:07 +00: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'
|
|
|
|
'/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 16:53:56 +00:00
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/UpstreamsConfigResponse'
|
2020-11-20 15:06:07 +00: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': >
|
|
|
|
Couldn't communicate with DNS server
|
|
|
|
'/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':
|
|
|
|
'tags':
|
|
|
|
- 'log'
|
|
|
|
'operationId': 'queryLogInfo'
|
|
|
|
'summary': 'Get query log parameters'
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/QueryLogConfig'
|
|
|
|
'/querylog_config':
|
|
|
|
'post':
|
|
|
|
'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.'
|
|
|
|
'/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':
|
|
|
|
'tags':
|
|
|
|
- 'stats'
|
|
|
|
'operationId': 'statsInfo'
|
|
|
|
'summary': 'Get statistics parameters'
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/StatsConfig'
|
|
|
|
'/stats_config':
|
|
|
|
'post':
|
|
|
|
'tags':
|
|
|
|
- 'stats'
|
|
|
|
'operationId': 'statsConfig'
|
|
|
|
'summary': 'Set statistics parameters'
|
|
|
|
'requestBody':
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/StatsConfig'
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
|
|
|
'/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 12:59:24 +00: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 15:06:07 +00: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'
|
|
|
|
'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).'
|
|
|
|
'/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 13:48:46 +00: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 15:06:07 +00: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 14:32:59 +00:00
|
|
|
just added and you don't want to wait for automatic refresh to kick in.
|
2020-11-20 15:06:07 +00:00
|
|
|
This API request is ratelimited, so you can call it freely as often as
|
2020-12-21 14:48:07 +00:00
|
|
|
you like, it wont create unnecessary burden on servers that host the
|
2020-11-20 15:06:07 +00: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':
|
|
|
|
'text/plain':
|
|
|
|
'schema':
|
|
|
|
'type': 'string'
|
|
|
|
'example': '@@||yandex.ru^|'
|
|
|
|
'description': 'All filtering rules, one line per rule'
|
|
|
|
'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 16:53:56 +00:00
|
|
|
'schema':
|
|
|
|
'type': 'object'
|
2021-01-13 14:26:57 +00:00
|
|
|
'properties':
|
2020-12-29 16:53:56 +00:00
|
|
|
'enabled':
|
|
|
|
'type': 'boolean'
|
2020-11-20 15:06:07 +00:00
|
|
|
'examples':
|
|
|
|
'response':
|
|
|
|
'value':
|
|
|
|
'enabled': false
|
|
|
|
'/parental/enable':
|
|
|
|
'post':
|
|
|
|
'tags':
|
|
|
|
- 'parental'
|
|
|
|
'operationId': 'parentalEnable'
|
|
|
|
'summary': 'Enable parental filtering'
|
|
|
|
'requestBody':
|
|
|
|
'content':
|
|
|
|
'text/plain':
|
|
|
|
'schema':
|
|
|
|
'type': 'string'
|
|
|
|
'enum':
|
|
|
|
- 'EARLY_CHILDHOOD'
|
|
|
|
- 'YOUNG'
|
|
|
|
- 'TEEN'
|
|
|
|
- 'MATURE'
|
|
|
|
'example': 'sensitivity=TEEN'
|
|
|
|
'description': |
|
|
|
|
Age sensitivity for parental filtering,
|
|
|
|
EARLY_CHILDHOOD is 3
|
|
|
|
YOUNG is 10
|
|
|
|
TEEN is 13
|
|
|
|
MATURE is 17
|
|
|
|
'required': true
|
|
|
|
'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 16:53:56 +00:00
|
|
|
'schema':
|
|
|
|
'type': 'object'
|
2021-01-13 14:26:57 +00:00
|
|
|
'properties':
|
2020-12-29 16:53:56 +00:00
|
|
|
'enable':
|
|
|
|
'type': 'boolean'
|
|
|
|
'sensitivity':
|
|
|
|
'type': 'integer'
|
2020-11-20 15:06:07 +00:00
|
|
|
'examples':
|
|
|
|
'response':
|
|
|
|
'value':
|
|
|
|
'enabled': true
|
|
|
|
'sensitivity': 13
|
|
|
|
'/safesearch/enable':
|
|
|
|
'post':
|
|
|
|
'tags':
|
|
|
|
- 'safesearch'
|
|
|
|
'operationId': 'safesearchEnable'
|
|
|
|
'summary': 'Enable safesearch'
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
|
|
|
'/safesearch/disable':
|
|
|
|
'post':
|
|
|
|
'tags':
|
|
|
|
- 'safesearch'
|
|
|
|
'operationId': 'safesearchDisable'
|
|
|
|
'summary': 'Disable safesearch'
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
|
|
|
'/safesearch/status':
|
|
|
|
'get':
|
|
|
|
'tags':
|
|
|
|
- 'safesearch'
|
|
|
|
'operationId': 'safesearchStatus'
|
|
|
|
'summary': 'Get safesearch status'
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
|
|
|
'content':
|
|
|
|
'application/json':
|
2020-12-29 16:53:56 +00:00
|
|
|
'schema':
|
|
|
|
'type': 'object'
|
2021-01-13 14:26:57 +00:00
|
|
|
'properties':
|
2020-12-29 16:53:56 +00:00
|
|
|
'enabled':
|
|
|
|
'type': 'boolean'
|
2020-11-20 15:06:07 +00:00
|
|
|
'examples':
|
|
|
|
'response':
|
|
|
|
'value':
|
|
|
|
'enabled': false
|
|
|
|
'/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 15:32:13 +00:00
|
|
|
'summary': >
|
|
|
|
Get information about clients by their IP addresses or client IDs.
|
2020-11-20 15:06:07 +00:00
|
|
|
'parameters':
|
|
|
|
- 'name': 'ip0'
|
|
|
|
'in': 'query'
|
2021-01-27 15:32:13 +00:00
|
|
|
'description': >
|
|
|
|
Filter by IP address or client IDs. Parameters with names `ip1`,
|
|
|
|
`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 15:06:07 +00:00
|
|
|
'schema':
|
|
|
|
'type': 'string'
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/ClientsFindResponse'
|
2021-01-13 14:26:57 +00: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'
|
2020-11-20 15:06:07 +00:00
|
|
|
'/blocked_services/list':
|
|
|
|
'get':
|
|
|
|
'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':
|
|
|
|
'tags':
|
|
|
|
- 'blocked_services'
|
|
|
|
'operationId': 'blockedServicesSet'
|
|
|
|
'summary': 'Set blocked services list'
|
|
|
|
'requestBody':
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/BlockedServicesArray'
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
|
|
|
'/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.'
|
|
|
|
'/i18n/change_language':
|
|
|
|
'post':
|
|
|
|
'tags':
|
|
|
|
- 'i18n'
|
|
|
|
'operationId': 'changeLanguage'
|
|
|
|
'summary': >
|
|
|
|
Change current language. Argument must be an ISO 639-1 two-letter code.
|
|
|
|
'requestBody':
|
|
|
|
'content':
|
|
|
|
'text/plain':
|
|
|
|
'schema':
|
|
|
|
'type': 'string'
|
|
|
|
'example': 'en'
|
|
|
|
'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':
|
|
|
|
'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':
|
|
|
|
'text/plain':
|
|
|
|
'examples':
|
|
|
|
'response':
|
|
|
|
'value': 'en'
|
2020-12-29 16:53:56 +00:00
|
|
|
'/install/get_addresses_beta':
|
|
|
|
'get':
|
|
|
|
'tags':
|
|
|
|
- 'install'
|
|
|
|
'operationId': 'installGetAddressesBeta'
|
|
|
|
'summary': >
|
|
|
|
'UNSTABLE!: Gets the network interfaces information.'
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/AddressesInfoBeta'
|
2020-11-20 15:06:07 +00: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'
|
2020-12-29 16:53:56 +00:00
|
|
|
'/install/check_config_beta':
|
|
|
|
'post':
|
|
|
|
'tags':
|
|
|
|
- 'install'
|
|
|
|
'operationId': 'installCheckConfigBeta'
|
|
|
|
'summary': >
|
|
|
|
'UNSTABLE!: Checks configuration'
|
|
|
|
'requestBody':
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/CheckConfigRequestBeta'
|
|
|
|
'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.
|
2020-11-20 15:06:07 +00:00
|
|
|
'/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.
|
2020-12-29 16:53:56 +00:00
|
|
|
'/install/configure_beta':
|
|
|
|
'post':
|
|
|
|
'tags':
|
|
|
|
- 'install'
|
|
|
|
'operationId': 'installConfigureBeta'
|
|
|
|
'summary': >
|
|
|
|
'UNSTABLE!: Applies the initial configuration.'
|
|
|
|
'requestBody':
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/InitialConfigurationBeta'
|
|
|
|
'description': 'Initial configuration JSON'
|
|
|
|
'required': true
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
|
|
|
'400':
|
|
|
|
'description': >
|
|
|
|
Failed to parse initial configuration or cannot listen to the
|
|
|
|
specified addresses.
|
|
|
|
'500':
|
|
|
|
'description': 'Cannot start the DNS server'
|
2020-11-20 15:06:07 +00:00
|
|
|
'/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.
|
|
|
|
'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 15:56:32 +00:00
|
|
|
'400':
|
|
|
|
'description': >
|
|
|
|
Invalid username or password.
|
|
|
|
'429':
|
|
|
|
'description': >
|
|
|
|
Out of login attempts.
|
2020-11-20 15:06:07 +00:00
|
|
|
'/logout':
|
|
|
|
'get':
|
|
|
|
'tags':
|
|
|
|
- 'global'
|
|
|
|
'operationId': 'logout'
|
|
|
|
'summary': 'Perform administrator log-out'
|
|
|
|
'responses':
|
|
|
|
'302':
|
|
|
|
'description': 'OK.'
|
|
|
|
'/profile':
|
|
|
|
'get':
|
|
|
|
'tags':
|
|
|
|
- 'global'
|
|
|
|
'operationId': 'getProfile'
|
|
|
|
'summary': ''
|
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'OK.'
|
|
|
|
'content':
|
|
|
|
'application/json':
|
|
|
|
'schema':
|
|
|
|
'$ref': '#/components/schemas/ProfileInfo'
|
2020-11-25 15:09:41 +00:00
|
|
|
|
2020-11-20 15:06:07 +00:00
|
|
|
'/apple/doh.mobileconfig':
|
|
|
|
'get':
|
|
|
|
'operationId': 'mobileConfigDoH'
|
2020-11-25 15:09:41 +00: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 18:06:55 +00:00
|
|
|
'required': true
|
2020-11-25 15:09:41 +00:00
|
|
|
'schema':
|
|
|
|
'type': 'string'
|
2021-01-27 15:32:13 +00:00
|
|
|
- 'description': >
|
|
|
|
Client ID.
|
|
|
|
'example': 'client-1'
|
|
|
|
'in': 'query'
|
|
|
|
'name': 'client_id'
|
|
|
|
'schema':
|
|
|
|
'type': 'string'
|
2020-11-20 15:06:07 +00:00
|
|
|
'responses':
|
|
|
|
'200':
|
2020-11-25 15:09:41 +00: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 15:06:07 +00:00
|
|
|
'tags':
|
|
|
|
- 'mobileconfig'
|
|
|
|
- 'global'
|
2020-11-25 15:09:41 +00:00
|
|
|
'/apple/dot.mobileconfig':
|
|
|
|
'get':
|
2020-11-20 15:06:07 +00:00
|
|
|
'operationId': 'mobileConfigDoT'
|
2020-11-25 15:09:41 +00: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 18:06:55 +00:00
|
|
|
'required': true
|
2020-11-25 15:09:41 +00:00
|
|
|
'schema':
|
|
|
|
'type': 'string'
|
2021-01-27 15:32:13 +00:00
|
|
|
- 'description': >
|
|
|
|
Client ID.
|
|
|
|
'example': 'client-1'
|
|
|
|
'in': 'query'
|
|
|
|
'name': 'client_id'
|
|
|
|
'schema':
|
|
|
|
'type': 'string'
|
2020-11-20 15:06:07 +00:00
|
|
|
'responses':
|
|
|
|
'200':
|
|
|
|
'description': 'DNS over TLS plist file'
|
2020-11-25 15:09:41 +00: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 20:04:00 +00:00
|
|
|
|
2020-11-20 15:06:07 +00: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
|
|
|
|
'schemas':
|
|
|
|
'ServerStatus':
|
|
|
|
'type': 'object'
|
|
|
|
'description': 'AdGuard Home server status and configuration'
|
|
|
|
'required':
|
2021-01-13 14:26:57 +00:00
|
|
|
- 'dns_addresses'
|
2020-11-20 15:06:07 +00:00
|
|
|
- 'dns_port'
|
2021-01-13 14:26:57 +00:00
|
|
|
- 'http_port'
|
2020-11-20 15:06:07 +00:00
|
|
|
- 'protection_enabled'
|
|
|
|
- 'running'
|
|
|
|
- 'version'
|
|
|
|
- 'language'
|
|
|
|
'properties':
|
2021-01-13 14:26:57 +00:00
|
|
|
'dns_addresses':
|
|
|
|
'example': ['127.0.0.1']
|
|
|
|
'items':
|
|
|
|
'type': 'string'
|
|
|
|
'type': 'array'
|
2020-11-20 15:06:07 +00:00
|
|
|
'dns_port':
|
|
|
|
'type': 'integer'
|
2020-12-29 16:53:56 +00:00
|
|
|
'format': 'uint16'
|
2020-11-20 15:06:07 +00:00
|
|
|
'example': 53
|
|
|
|
'minimum': 1
|
|
|
|
'maximum': 65535
|
2021-01-13 14:26:57 +00:00
|
|
|
'http_port':
|
|
|
|
'type': 'integer'
|
|
|
|
'format': 'uint16'
|
|
|
|
'example': 80
|
|
|
|
'minimum': 1
|
|
|
|
'maximum': 65535
|
2020-11-20 15:06:07 +00:00
|
|
|
'protection_enabled':
|
|
|
|
'type': 'boolean'
|
|
|
|
'dhcp_available':
|
|
|
|
'type': 'boolean'
|
|
|
|
'running':
|
|
|
|
'type': 'boolean'
|
|
|
|
'version':
|
|
|
|
'type': 'string'
|
|
|
|
'example': '0.1'
|
|
|
|
'language':
|
|
|
|
'type': 'string'
|
|
|
|
'example': 'en'
|
|
|
|
'DNSConfig':
|
|
|
|
'type': 'object'
|
|
|
|
'description': 'Query log configuration'
|
|
|
|
'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'
|
|
|
|
'upstream_dns_file':
|
|
|
|
'type': 'string'
|
|
|
|
'protection_enabled':
|
|
|
|
'type': 'boolean'
|
|
|
|
'dhcp_available':
|
|
|
|
'type': 'boolean'
|
|
|
|
'ratelimit':
|
|
|
|
'type': 'integer'
|
|
|
|
'blocking_mode':
|
|
|
|
'type': 'string'
|
|
|
|
'enum':
|
|
|
|
- 'default'
|
|
|
|
- 'refused'
|
|
|
|
- 'nxdomain'
|
|
|
|
- 'null_ip'
|
|
|
|
- 'custom_ip'
|
|
|
|
'blocking_ipv4':
|
|
|
|
'type': 'string'
|
|
|
|
'blocking_ipv6':
|
|
|
|
'type': 'string'
|
|
|
|
'edns_cs_enabled':
|
|
|
|
'type': 'boolean'
|
2021-02-26 12:52:52 +00:00
|
|
|
'disable_ipv6':
|
|
|
|
'type': 'boolean'
|
2020-11-20 15:06:07 +00:00
|
|
|
'dnssec_enabled':
|
|
|
|
'type': 'boolean'
|
|
|
|
'cache_size':
|
|
|
|
'type': 'integer'
|
|
|
|
'cache_ttl_min':
|
|
|
|
'type': 'integer'
|
|
|
|
'cache_ttl_max':
|
|
|
|
'type': 'integer'
|
2021-07-14 18:03:56 +00:00
|
|
|
'cache_optimistic':
|
|
|
|
'type': 'boolean'
|
2020-11-20 15:06:07 +00:00
|
|
|
'upstream_mode':
|
|
|
|
'enum':
|
|
|
|
- ''
|
|
|
|
- 'parallel'
|
|
|
|
- 'fastest_addr'
|
2021-05-26 14:55:19 +00:00
|
|
|
'use_private_ptr_resolvers':
|
|
|
|
'type': 'boolean'
|
2021-04-07 17:16:06 +00: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 15:06:07 +00:00
|
|
|
'UpstreamsConfig':
|
|
|
|
'type': 'object'
|
|
|
|
'description': 'Upstreams configuration'
|
|
|
|
'required':
|
|
|
|
- 'bootstrap_dns'
|
|
|
|
- 'upstream_dns'
|
|
|
|
'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'
|
2021-04-07 17:16:06 +00:00
|
|
|
'private_upstream':
|
|
|
|
'type': 'array'
|
|
|
|
'description': >
|
|
|
|
Local PTR resolvers, 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-12-29 16:53:56 +00:00
|
|
|
'UpstreamsConfigResponse':
|
|
|
|
'type': 'object'
|
|
|
|
'description': 'Upstreams configuration response'
|
2021-01-14 10:48:52 +00:00
|
|
|
'additionalProperties':
|
2020-12-29 16:53:56 +00:00
|
|
|
'type': 'string'
|
2020-11-20 15:06:07 +00:00
|
|
|
'Filter':
|
|
|
|
'type': 'object'
|
|
|
|
'description': 'Filter subscription info'
|
|
|
|
'required':
|
|
|
|
- 'enabled'
|
|
|
|
- 'id'
|
2021-02-01 13:01:33 +00:00
|
|
|
- 'last_updated'
|
2020-11-20 15:06:07 +00:00
|
|
|
- 'name'
|
2021-02-01 13:01:33 +00:00
|
|
|
- 'rules_count'
|
2020-11-20 15:06:07 +00:00
|
|
|
- 'url'
|
|
|
|
'properties':
|
|
|
|
'enabled':
|
|
|
|
'type': 'boolean'
|
|
|
|
'id':
|
|
|
|
'example': 1234
|
2021-02-01 13:01:33 +00:00
|
|
|
'format': 'int64'
|
|
|
|
'type': 'integer'
|
|
|
|
'last_updated':
|
2020-11-20 15:06:07 +00:00
|
|
|
'example': '2018-10-30T12:18:57+03:00'
|
2021-02-01 13:01:33 +00:00
|
|
|
'format': 'date-time'
|
2020-11-20 15:06:07 +00:00
|
|
|
'type': 'string'
|
2021-02-01 13:01:33 +00:00
|
|
|
'name':
|
2020-11-20 15:06:07 +00:00
|
|
|
'example': 'AdGuard Simplified Domain Names filter'
|
2021-02-01 13:01:33 +00:00
|
|
|
'type': 'string'
|
|
|
|
'rules_count':
|
2020-11-20 15:06:07 +00:00
|
|
|
'example': 5912
|
2021-02-01 13:01:33 +00:00
|
|
|
'format': 'uint32'
|
|
|
|
'type': 'integer'
|
2020-11-20 15:06:07 +00: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'
|
|
|
|
'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':
|
|
|
|
'properties':
|
|
|
|
'enabled':
|
|
|
|
'type': 'boolean'
|
|
|
|
'name':
|
|
|
|
'type': 'string'
|
|
|
|
'url':
|
|
|
|
'type': 'string'
|
|
|
|
'type': 'object'
|
|
|
|
'url':
|
|
|
|
'type': 'string'
|
|
|
|
'whitelist':
|
|
|
|
'type': 'boolean'
|
|
|
|
'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 14:48:07 +00:00
|
|
|
'description': 'Request filtering status.'
|
2020-11-20 15:06:07 +00:00
|
|
|
'enum':
|
|
|
|
- 'NotFilteredNotFound'
|
|
|
|
- 'NotFilteredWhiteList'
|
|
|
|
- 'NotFilteredError'
|
|
|
|
- 'FilteredBlackList'
|
|
|
|
- 'FilteredSafeBrowsing'
|
|
|
|
- 'FilteredParental'
|
|
|
|
- 'FilteredInvalid'
|
|
|
|
- 'FilteredSafeSearch'
|
|
|
|
- 'FilteredBlockedService'
|
2020-12-21 14:48:07 +00:00
|
|
|
- 'Rewrite'
|
|
|
|
- 'RewriteEtcHosts'
|
2020-12-28 15:41:50 +00:00
|
|
|
- 'RewriteRule'
|
2020-11-20 15:06:07 +00:00
|
|
|
'filter_id':
|
2020-12-17 10:32:46 +00: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 15:06:07 +00:00
|
|
|
'type': 'integer'
|
|
|
|
'rule':
|
2020-12-17 10:32:46 +00:00
|
|
|
'deprecated': true
|
2020-11-20 15:06:07 +00:00
|
|
|
'type': 'string'
|
|
|
|
'example': '||example.org^'
|
2020-12-17 10:32:46 +00: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 15:06:07 +00:00
|
|
|
'service_name':
|
|
|
|
'type': 'string'
|
|
|
|
'description': 'Set if reason=FilteredBlockedService'
|
|
|
|
'cname':
|
|
|
|
'type': 'string'
|
2020-12-21 14:48:07 +00:00
|
|
|
'description': 'Set if reason=Rewrite'
|
2020-11-20 15:06:07 +00:00
|
|
|
'ip_addrs':
|
|
|
|
'type': 'array'
|
|
|
|
'items':
|
|
|
|
'type': 'string'
|
2020-12-21 14:48:07 +00:00
|
|
|
'description': 'Set if reason=Rewrite'
|
2020-11-20 15:06:07 +00:00
|
|
|
'FilterRefreshResponse':
|
|
|
|
'type': 'object'
|
|
|
|
'description': '/filtering/refresh response data'
|
|
|
|
'properties':
|
|
|
|
'updated':
|
|
|
|
'type': 'integer'
|
|
|
|
'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 16:55:41 +00:00
|
|
|
'required':
|
|
|
|
- 'disabled'
|
2020-11-20 15:06:07 +00:00
|
|
|
'properties':
|
2021-01-21 16:55:41 +00:00
|
|
|
'disabled':
|
|
|
|
'type': 'boolean'
|
|
|
|
'description': >
|
|
|
|
If true then other fields doesn't appear.
|
2020-11-20 15:06:07 +00: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 16:55:41 +00:00
|
|
|
'enum':
|
|
|
|
- 'hours'
|
|
|
|
- 'days'
|
|
|
|
'description': 'Time units'
|
2020-11-20 15:06:07 +00: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'
|
|
|
|
'description': 'Average time in milliseconds on processing a DNS'
|
|
|
|
'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'
|
|
|
|
'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': >
|
|
|
|
Represent the number of hits per key (domain or client IP).
|
|
|
|
'properties':
|
|
|
|
'domain_or_ip':
|
|
|
|
'type': 'integer'
|
2021-01-14 10:48:52 +00:00
|
|
|
'additionalProperties':
|
|
|
|
'type': 'integer'
|
2020-11-20 15:06:07 +00:00
|
|
|
'StatsConfig':
|
|
|
|
'type': 'object'
|
|
|
|
'description': 'Statistics configuration'
|
|
|
|
'properties':
|
|
|
|
'interval':
|
2021-06-17 16:44:46 +00:00
|
|
|
'description': >
|
|
|
|
Time period to keep the data. `0` means that the statistics is
|
|
|
|
disabled.
|
|
|
|
'enum':
|
|
|
|
- 0
|
|
|
|
- 1
|
|
|
|
- 7
|
|
|
|
- 30
|
|
|
|
- 90
|
2020-11-20 15:06:07 +00:00
|
|
|
'type': 'integer'
|
|
|
|
'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'
|
|
|
|
- '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'
|
|
|
|
'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 12:59:24 +00:00
|
|
|
'NetInterfaces':
|
|
|
|
'type': 'object'
|
|
|
|
'description': >
|
|
|
|
Network interfaces dictionary, keys are interface names.
|
|
|
|
'additionalProperties':
|
|
|
|
'$ref': '#/components/schemas/NetInterface'
|
2018-08-30 14:25:33 +00:00
|
|
|
|
2020-11-20 15:06:07 +00: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 20:04:00 +00:00
|
|
|
|
2020-11-20 15:06:07 +00:00
|
|
|
'DhcpSearchV4':
|
|
|
|
'type': 'object'
|
|
|
|
'properties':
|
|
|
|
'other_server':
|
|
|
|
'$ref': '#/components/schemas/DhcpSearchResultOtherServer'
|
|
|
|
'static_ip':
|
|
|
|
'$ref': '#/components/schemas/DhcpSearchResultStaticIP'
|
2018-08-30 14:25:33 +00:00
|
|
|
|
2020-11-20 15:06:07 +00:00
|
|
|
'DhcpSearchV6':
|
|
|
|
'type': 'object'
|
|
|
|
'properties':
|
|
|
|
'other_server':
|
|
|
|
'$ref': '#/components/schemas/DhcpSearchResultOtherServer'
|
2020-04-16 20:04:00 +00:00
|
|
|
|
2020-11-20 15:06:07 +00:00
|
|
|
'DhcpSearchResultOtherServer':
|
|
|
|
'type': 'object'
|
|
|
|
'properties':
|
|
|
|
'found':
|
|
|
|
'type': 'string'
|
2021-01-20 12:59:24 +00:00
|
|
|
'enum':
|
|
|
|
- 'yes'
|
|
|
|
- 'no'
|
|
|
|
- 'error'
|
|
|
|
'description': >
|
|
|
|
The result of searching the other DHCP server.
|
2020-11-20 15:06:07 +00:00
|
|
|
'example': 'no'
|
|
|
|
'error':
|
|
|
|
'type': 'string'
|
|
|
|
'description': 'Set if found=error'
|
|
|
|
'example': ''
|
2018-08-30 14:25:33 +00:00
|
|
|
|
2020-11-20 15:06:07 +00:00
|
|
|
'DhcpSearchResultStaticIP':
|
|
|
|
'type': 'object'
|
|
|
|
'properties':
|
|
|
|
'static':
|
|
|
|
'type': 'string'
|
2021-01-20 12:59:24 +00:00
|
|
|
'enum':
|
|
|
|
- 'yes'
|
|
|
|
- 'no'
|
|
|
|
- 'error'
|
|
|
|
'description': >
|
|
|
|
The result of determining static IP address.
|
2020-11-20 15:06:07 +00:00
|
|
|
'example': 'yes'
|
|
|
|
'ip':
|
|
|
|
'type': 'string'
|
|
|
|
'description': 'Set if static=no'
|
|
|
|
'example': ''
|
2020-04-16 20:04:00 +00:00
|
|
|
|
2020-11-20 15:06:07 +00:00
|
|
|
'DnsAnswer':
|
|
|
|
'type': 'object'
|
|
|
|
'description': 'DNS answer section'
|
|
|
|
'properties':
|
|
|
|
'ttl':
|
|
|
|
'example': 55
|
2021-01-28 13:00:29 +00:00
|
|
|
'format': 'uint32'
|
|
|
|
'type': 'integer'
|
2020-11-20 15:06:07 +00: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 10:36:52 +00:00
|
|
|
'name':
|
|
|
|
'type': 'string'
|
|
|
|
'example': 'xn--d1abbgf6aiiy.xn--p1ai'
|
|
|
|
'unicode_name':
|
2020-11-20 15:06:07 +00:00
|
|
|
'type': 'string'
|
2021-06-29 10:36:52 +00:00
|
|
|
'example': 'президент.рф'
|
2020-11-20 15:06:07 +00: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'
|
|
|
|
'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'
|
|
|
|
'upstream':
|
|
|
|
'type': 'string'
|
|
|
|
'description': >
|
|
|
|
Upstream URL starting with tcp://, tls://, https://, or with an IP
|
|
|
|
address.
|
|
|
|
'answer_dnssec':
|
|
|
|
'type': 'boolean'
|
|
|
|
'client':
|
2021-01-27 15:32:13 +00:00
|
|
|
'description': >
|
|
|
|
The client's IP address.
|
2020-11-20 15:06:07 +00:00
|
|
|
'example': '192.168.0.1'
|
2021-01-27 15:32:13 +00:00
|
|
|
'type': 'string'
|
|
|
|
'client_id':
|
|
|
|
'description': >
|
2021-06-18 15:13:36 +00:00
|
|
|
The client ID, if provided in DoH, DoQ, or DoT.
|
2021-01-27 15:32:13 +00:00
|
|
|
'example': 'cli123'
|
|
|
|
'type': 'string'
|
2021-04-02 14:30:39 +00:00
|
|
|
'client_info':
|
|
|
|
'$ref': '#/components/schemas/QueryLogItemClient'
|
2020-11-20 15:06:07 +00:00
|
|
|
'client_proto':
|
|
|
|
'enum':
|
|
|
|
- 'dot'
|
|
|
|
- 'doh'
|
|
|
|
- 'doq'
|
2021-01-27 15:32:13 +00:00
|
|
|
- 'dnscrypt'
|
2020-11-20 15:06:07 +00:00
|
|
|
- ''
|
|
|
|
'elapsedMs':
|
|
|
|
'type': 'string'
|
|
|
|
'example': '54.023928'
|
|
|
|
'question':
|
|
|
|
'$ref': '#/components/schemas/DnsQuestion'
|
|
|
|
'filterId':
|
2020-12-17 10:32:46 +00:00
|
|
|
'deprecated': true
|
2020-11-20 15:06:07 +00: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 10:32:46 +00:00
|
|
|
the filter list that the rule belongs to.
|
|
|
|
|
|
|
|
Deprecated: use `rules[*].filter_list_id` instead.
|
2020-11-20 15:06:07 +00:00
|
|
|
'rule':
|
2020-12-17 10:32:46 +00:00
|
|
|
'deprecated': true
|
2020-11-20 15:06:07 +00:00
|
|
|
'type': 'string'
|
|
|
|
'example': '||example.org^'
|
2020-12-17 10:32:46 +00: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 15:06:07 +00:00
|
|
|
'reason':
|
|
|
|
'type': 'string'
|
2020-12-21 14:48:07 +00:00
|
|
|
'description': 'Request filtering status.'
|
2020-11-20 15:06:07 +00:00
|
|
|
'enum':
|
|
|
|
- 'NotFilteredNotFound'
|
|
|
|
- 'NotFilteredWhiteList'
|
|
|
|
- 'NotFilteredError'
|
|
|
|
- 'FilteredBlackList'
|
|
|
|
- 'FilteredSafeBrowsing'
|
|
|
|
- 'FilteredParental'
|
|
|
|
- 'FilteredInvalid'
|
|
|
|
- 'FilteredSafeSearch'
|
|
|
|
- 'FilteredBlockedService'
|
2020-12-21 14:48:07 +00:00
|
|
|
- 'Rewrite'
|
|
|
|
- 'RewriteEtcHosts'
|
2020-12-28 15:41:50 +00:00
|
|
|
- 'RewriteRule'
|
2020-11-20 15:06:07 +00: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 14:30:39 +00: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 12:53:28 +00:00
|
|
|
The rule due to which the client is allowed or blocked.
|
2021-04-02 14:30:39 +00:00
|
|
|
'name':
|
|
|
|
'description': >
|
2021-09-13 17:16:06 +00:00
|
|
|
Persistent client's name or runtime client's hostname. May be
|
|
|
|
empty.
|
2021-04-02 14:30:39 +00: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 15:06:07 +00: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 15:50:28 +00:00
|
|
|
'description': >
|
|
|
|
Time period for query log rotation.
|
|
|
|
'type': 'number'
|
|
|
|
'enum':
|
|
|
|
- 0.25
|
|
|
|
- 1
|
|
|
|
- 7
|
|
|
|
- 30
|
|
|
|
- 90
|
2020-11-20 15:06:07 +00:00
|
|
|
'anonymize_client_ip':
|
|
|
|
'type': 'boolean'
|
|
|
|
'description': "Anonymize clients' IP addresses"
|
2020-12-17 10:32:46 +00: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 15:06:07 +00:00
|
|
|
'TlsConfig':
|
|
|
|
'type': 'object'
|
|
|
|
'description': 'TLS configuration settings and status'
|
|
|
|
'properties':
|
|
|
|
'enabled':
|
|
|
|
'type': 'boolean'
|
|
|
|
'example': true
|
2021-06-18 15:13:36 +00:00
|
|
|
'description': 'enabled is the encryption (DoT/DoH/HTTPS) status'
|
2020-11-20 15:06:07 +00: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 16:53:56 +00:00
|
|
|
'format': 'uint16'
|
2020-11-20 15:06:07 +00:00
|
|
|
'example': 443
|
|
|
|
'description': 'HTTPS port. If 0, HTTPS will be disabled.'
|
|
|
|
'port_dns_over_tls':
|
|
|
|
'type': 'integer'
|
2020-12-29 16:53:56 +00:00
|
|
|
'format': 'uint16'
|
2020-11-20 15:06:07 +00:00
|
|
|
'example': 853
|
2021-06-18 15:13:36 +00:00
|
|
|
'description': 'DNS-over-TLS port. If 0, DoT will be disabled.'
|
2020-11-20 15:06:07 +00:00
|
|
|
'port_dns_over_quic':
|
|
|
|
'type': 'integer'
|
2020-12-29 16:53:56 +00:00
|
|
|
'format': 'uint16'
|
2020-11-20 15:06:07 +00:00
|
|
|
'example': 784
|
2021-06-18 15:13:36 +00:00
|
|
|
'description': 'DNS-over-QUIC port. If 0, DoQ will be disabled.'
|
2020-11-20 15:06:07 +00: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 10:42:31 +00: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 15:06:07 +00: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.
|
|
|
|
'NetInterface':
|
|
|
|
'type': 'object'
|
|
|
|
'description': 'Network interface info'
|
2020-12-29 16:53:56 +00:00
|
|
|
'required':
|
|
|
|
- 'flags'
|
|
|
|
- 'hardware_address'
|
|
|
|
- 'name'
|
|
|
|
- 'mtu'
|
2020-11-20 15:06:07 +00:00
|
|
|
'properties':
|
|
|
|
'flags':
|
|
|
|
'type': 'string'
|
2021-01-21 16:55:41 +00:00
|
|
|
'description': >
|
|
|
|
Flags could be any combination of the following values, divided by
|
|
|
|
the "|" character: "up", "broadcast", "loopback", "pointtopoint" and
|
|
|
|
"multicast".
|
2020-11-20 15:06:07 +00:00
|
|
|
'example': 'up|broadcast|multicast'
|
|
|
|
'hardware_address':
|
|
|
|
'type': 'string'
|
|
|
|
'example': '52:54:00:11:09:ba'
|
|
|
|
'name':
|
|
|
|
'type': 'string'
|
|
|
|
'example': 'eth0'
|
2020-12-29 16:53:56 +00:00
|
|
|
'ip_addresses':
|
2020-11-20 15:06:07 +00:00
|
|
|
'type': 'array'
|
|
|
|
'items':
|
|
|
|
'type': 'string'
|
2020-12-29 16:53:56 +00:00
|
|
|
'mtu':
|
|
|
|
'type': 'integer'
|
|
|
|
'AddressInfoBeta':
|
|
|
|
'type': 'object'
|
|
|
|
'description': 'Port information'
|
2021-01-14 10:48:52 +00:00
|
|
|
'required':
|
2020-12-29 16:53:56 +00:00
|
|
|
- 'ip'
|
|
|
|
- 'port'
|
|
|
|
'properties':
|
|
|
|
'ip':
|
2020-11-20 15:06:07 +00:00
|
|
|
'type': 'array'
|
|
|
|
'items':
|
|
|
|
'type': 'string'
|
2020-12-29 16:53:56 +00:00
|
|
|
'minItems': 1
|
|
|
|
'example':
|
|
|
|
- '127.0.0.1'
|
|
|
|
'port':
|
|
|
|
'type': 'integer'
|
|
|
|
'format': 'uint16'
|
|
|
|
'example': 53
|
2020-11-20 15:06:07 +00:00
|
|
|
'AddressInfo':
|
|
|
|
'type': 'object'
|
|
|
|
'description': 'Port information'
|
2021-01-14 10:48:52 +00:00
|
|
|
'required':
|
2020-12-29 16:53:56 +00:00
|
|
|
- 'ip'
|
|
|
|
- 'port'
|
2020-11-20 15:06:07 +00:00
|
|
|
'properties':
|
|
|
|
'ip':
|
|
|
|
'type': 'string'
|
|
|
|
'example': '127.0.0.1'
|
|
|
|
'port':
|
|
|
|
'type': 'integer'
|
2020-12-29 16:53:56 +00:00
|
|
|
'format': 'uint16'
|
2020-11-20 15:06:07 +00:00
|
|
|
'example': 53
|
|
|
|
'AddressesInfo':
|
|
|
|
'type': 'object'
|
|
|
|
'description': 'AdGuard Home addresses configuration'
|
2021-01-14 10:48:52 +00:00
|
|
|
'required':
|
2020-12-29 16:53:56 +00:00
|
|
|
- 'dns_port'
|
|
|
|
- 'web_port'
|
|
|
|
- 'interfaces'
|
2020-11-20 15:06:07 +00:00
|
|
|
'properties':
|
|
|
|
'dns_port':
|
|
|
|
'type': 'integer'
|
2020-12-29 16:53:56 +00:00
|
|
|
'format': 'uint16'
|
2020-11-20 15:06:07 +00:00
|
|
|
'example': 53
|
|
|
|
'web_port':
|
|
|
|
'type': 'integer'
|
2020-12-29 16:53:56 +00:00
|
|
|
'format': 'uint16'
|
2020-11-20 15:06:07 +00:00
|
|
|
'example': 80
|
|
|
|
'interfaces':
|
2021-01-20 12:59:24 +00:00
|
|
|
'$ref': '#/components/schemas/NetInterfaces'
|
2020-12-29 16:53:56 +00:00
|
|
|
'AddressesInfoBeta':
|
|
|
|
'type': 'object'
|
|
|
|
'description': 'AdGuard Home addresses configuration'
|
2021-01-14 10:48:52 +00:00
|
|
|
'required':
|
2020-12-29 16:53:56 +00:00
|
|
|
- 'dns_port'
|
|
|
|
- 'web_port'
|
|
|
|
- 'interfaces'
|
|
|
|
'properties':
|
|
|
|
'dns_port':
|
|
|
|
'type': 'integer'
|
|
|
|
'format': 'uint16'
|
|
|
|
'example': 53
|
|
|
|
'web_port':
|
|
|
|
'type': 'integer'
|
|
|
|
'format': 'uint16'
|
|
|
|
'example': 80
|
|
|
|
'interfaces':
|
|
|
|
'type': 'array'
|
|
|
|
'description': >
|
|
|
|
Network interfaces dictionary, keys are interface names.
|
|
|
|
'items':
|
|
|
|
'$ref': '#/components/schemas/NetInterface'
|
2020-11-20 15:06:07 +00:00
|
|
|
'ProfileInfo':
|
|
|
|
'type': 'object'
|
|
|
|
'description': 'Information about the current user'
|
|
|
|
'properties':
|
|
|
|
'name':
|
|
|
|
'type': 'string'
|
|
|
|
'Client':
|
|
|
|
'type': 'object'
|
2021-01-27 15:32:13 +00:00
|
|
|
'description': 'Client information.'
|
2020-11-20 15:06:07 +00:00
|
|
|
'properties':
|
|
|
|
'name':
|
|
|
|
'type': 'string'
|
|
|
|
'description': 'Name'
|
|
|
|
'example': 'localhost'
|
|
|
|
'ids':
|
|
|
|
'type': 'array'
|
2021-01-27 15:32:13 +00:00
|
|
|
'description': 'IP, CIDR, MAC, or client ID.'
|
2020-11-20 15:06:07 +00:00
|
|
|
'items':
|
|
|
|
'type': 'string'
|
|
|
|
'use_global_settings':
|
|
|
|
'type': 'boolean'
|
|
|
|
'filtering_enabled':
|
|
|
|
'type': 'boolean'
|
|
|
|
'parental_enabled':
|
|
|
|
'type': 'boolean'
|
|
|
|
'safebrowsing_enabled':
|
|
|
|
'type': 'boolean'
|
|
|
|
'safesearch_enabled':
|
|
|
|
'type': 'boolean'
|
|
|
|
'use_global_blocked_services':
|
|
|
|
'type': 'boolean'
|
|
|
|
'blocked_services':
|
|
|
|
'type': 'array'
|
|
|
|
'items':
|
|
|
|
'type': 'string'
|
|
|
|
'upstreams':
|
|
|
|
'type': 'array'
|
|
|
|
'items':
|
|
|
|
'type': 'string'
|
2021-05-06 13:41:33 +00:00
|
|
|
'tags':
|
|
|
|
'items':
|
|
|
|
'type': 'string'
|
|
|
|
'type': 'array'
|
2020-11-20 15:06:07 +00: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 13:41:33 +00:00
|
|
|
'whois_info':
|
|
|
|
'$ref': '#/components/schemas/WhoisInfo'
|
2020-11-20 15:06:07 +00: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 15:32:13 +00:00
|
|
|
'description': 'Client search results.'
|
2020-11-20 15:06:07 +00:00
|
|
|
'items':
|
|
|
|
'$ref': '#/components/schemas/ClientsFindEntry'
|
2021-01-27 15:32:13 +00:00
|
|
|
'example':
|
|
|
|
- 'cli42':
|
|
|
|
'name': 'Client 42'
|
|
|
|
'ids': ['cli42']
|
|
|
|
'use_global_settings': true
|
|
|
|
'filtering_enabled': true
|
|
|
|
'parental_enabled': true
|
|
|
|
'safebrowsing_enabled': true
|
|
|
|
'safesearch_enabled': true
|
|
|
|
'use_global_blocked_services': true
|
|
|
|
'blocked_services': null
|
|
|
|
'upstreams': null
|
2021-04-02 14:30:39 +00:00
|
|
|
'whois_info': {}
|
2021-01-27 15:32:13 +00:00
|
|
|
'disallowed': false
|
|
|
|
'disallowed_rule': ''
|
|
|
|
- '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
|
|
|
|
'use_global_blocked_services': true
|
|
|
|
'blocked_services': null
|
|
|
|
'upstreams': null
|
2021-04-02 14:30:39 +00:00
|
|
|
'whois_info': {}
|
2021-01-27 15:32:13 +00:00
|
|
|
'disallowed': false
|
|
|
|
'disallowed_rule': ''
|
2021-01-13 14:26:57 +00:00
|
|
|
'AccessListResponse':
|
|
|
|
'$ref': '#/components/schemas/AccessList'
|
|
|
|
'AccessSetRequest':
|
|
|
|
'$ref': '#/components/schemas/AccessList'
|
|
|
|
'AccessList':
|
2021-09-10 14:57:09 +00: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 14:26:57 +00:00
|
|
|
'properties':
|
|
|
|
'allowed_clients':
|
2021-06-29 12:53:28 +00:00
|
|
|
'description': >
|
|
|
|
The allowlist of clients: IP addresses, CIDRs, or client IDs.
|
2021-01-13 14:26:57 +00:00
|
|
|
'items':
|
|
|
|
'type': 'string'
|
|
|
|
'type': 'array'
|
|
|
|
'disallowed_clients':
|
2021-06-29 12:53:28 +00:00
|
|
|
'description': >
|
|
|
|
The blocklist of clients: IP addresses, CIDRs, or client IDs.
|
2021-01-13 14:26:57 +00:00
|
|
|
'items':
|
|
|
|
'type': 'string'
|
|
|
|
'type': 'array'
|
|
|
|
'blocked_hosts':
|
2021-06-29 12:53:28 +00:00
|
|
|
'description': 'The blocklist of hosts.'
|
2021-01-13 14:26:57 +00:00
|
|
|
'items':
|
|
|
|
'type': 'string'
|
|
|
|
'type': 'array'
|
|
|
|
'type': 'object'
|
2020-11-20 15:06:07 +00:00
|
|
|
'ClientsFindEntry':
|
|
|
|
'type': 'object'
|
2020-12-29 16:53:56 +00:00
|
|
|
'additionalProperties':
|
|
|
|
'$ref': '#/components/schemas/ClientFindSubEntry'
|
2020-11-20 15:06:07 +00:00
|
|
|
'ClientFindSubEntry':
|
|
|
|
'type': 'object'
|
2021-01-27 15:32:13 +00:00
|
|
|
'description': 'Client information.'
|
2020-11-20 15:06:07 +00:00
|
|
|
'properties':
|
|
|
|
'name':
|
|
|
|
'type': 'string'
|
|
|
|
'description': 'Name'
|
|
|
|
'example': 'localhost'
|
|
|
|
'ids':
|
|
|
|
'type': 'array'
|
2021-01-27 15:32:13 +00:00
|
|
|
'description': 'IP, CIDR, MAC, or client ID.'
|
2020-11-20 15:06:07 +00:00
|
|
|
'items':
|
|
|
|
'type': 'string'
|
|
|
|
'use_global_settings':
|
|
|
|
'type': 'boolean'
|
|
|
|
'filtering_enabled':
|
|
|
|
'type': 'boolean'
|
|
|
|
'parental_enabled':
|
|
|
|
'type': 'boolean'
|
|
|
|
'safebrowsing_enabled':
|
|
|
|
'type': 'boolean'
|
|
|
|
'safesearch_enabled':
|
|
|
|
'type': 'boolean'
|
|
|
|
'use_global_blocked_services':
|
|
|
|
'type': 'boolean'
|
|
|
|
'blocked_services':
|
|
|
|
'type': 'array'
|
|
|
|
'items':
|
|
|
|
'type': 'string'
|
|
|
|
'upstreams':
|
|
|
|
'type': 'array'
|
|
|
|
'items':
|
|
|
|
'type': 'string'
|
|
|
|
'whois_info':
|
2021-01-14 10:48:52 +00:00
|
|
|
'$ref': '#/components/schemas/WhoisInfo'
|
2020-11-20 15:06:07 +00: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.
|
2020-04-16 20:04:00 +00:00
|
|
|
|
2020-11-20 15:06:07 +00:00
|
|
|
'WhoisInfo':
|
|
|
|
'type': 'object'
|
2021-01-14 10:48:52 +00:00
|
|
|
'additionalProperties':
|
|
|
|
'type': 'string'
|
2020-08-13 15:45:27 +00:00
|
|
|
|
2020-11-20 15:06:07 +00:00
|
|
|
'Clients':
|
|
|
|
'type': 'object'
|
|
|
|
'properties':
|
|
|
|
'clients':
|
|
|
|
'$ref': '#/components/schemas/ClientsArray'
|
|
|
|
'auto_clients':
|
|
|
|
'$ref': '#/components/schemas/ClientsAutoArray'
|
2021-05-06 13:41:33 +00:00
|
|
|
'supported_tags':
|
|
|
|
'items':
|
|
|
|
'type': 'string'
|
|
|
|
'type': 'array'
|
2020-11-20 15:06:07 +00: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'
|
|
|
|
'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'
|
2020-12-29 16:53:56 +00:00
|
|
|
'CheckConfigRequestBeta':
|
|
|
|
'type': 'object'
|
|
|
|
'description': 'Configuration to be checked'
|
|
|
|
'properties':
|
|
|
|
'dns':
|
|
|
|
'$ref': '#/components/schemas/CheckConfigRequestInfoBeta'
|
|
|
|
'web':
|
|
|
|
'$ref': '#/components/schemas/CheckConfigRequestInfoBeta'
|
|
|
|
'set_static_ip':
|
|
|
|
'type': 'boolean'
|
|
|
|
'example': false
|
2020-11-20 15:06:07 +00: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
|
2020-12-29 16:53:56 +00:00
|
|
|
'CheckConfigRequestInfoBeta':
|
|
|
|
'type': 'object'
|
|
|
|
'properties':
|
|
|
|
'ip':
|
|
|
|
'type': 'array'
|
|
|
|
'items':
|
|
|
|
'type': 'string'
|
|
|
|
'minItems': 1
|
|
|
|
'example':
|
|
|
|
- '127.0.0.1'
|
|
|
|
'port':
|
|
|
|
'type': 'integer'
|
|
|
|
'format': 'uint16'
|
|
|
|
'example': 53
|
|
|
|
'autofix':
|
|
|
|
'type': 'boolean'
|
|
|
|
'example': false
|
2020-11-20 15:06:07 +00:00
|
|
|
'CheckConfigRequestInfo':
|
|
|
|
'type': 'object'
|
|
|
|
'properties':
|
|
|
|
'ip':
|
|
|
|
'type': 'string'
|
|
|
|
'example': '127.0.0.1'
|
|
|
|
'port':
|
|
|
|
'type': 'integer'
|
2020-12-29 16:53:56 +00:00
|
|
|
'format': 'uint16'
|
2020-11-20 15:06:07 +00:00
|
|
|
'example': 53
|
|
|
|
'autofix':
|
|
|
|
'type': 'boolean'
|
|
|
|
'example': false
|
|
|
|
'CheckConfigResponse':
|
|
|
|
'type': 'object'
|
2021-01-14 10:48:52 +00:00
|
|
|
'required':
|
2020-12-29 16:53:56 +00:00
|
|
|
- 'dns'
|
|
|
|
- 'web'
|
|
|
|
- 'static_ip'
|
2020-11-20 15:06:07 +00:00
|
|
|
'properties':
|
|
|
|
'dns':
|
|
|
|
'$ref': '#/components/schemas/CheckConfigResponseInfo'
|
|
|
|
'web':
|
|
|
|
'$ref': '#/components/schemas/CheckConfigResponseInfo'
|
|
|
|
'static_ip':
|
|
|
|
'$ref': '#/components/schemas/CheckConfigStaticIpInfo'
|
|
|
|
'CheckConfigResponseInfo':
|
|
|
|
'type': 'object'
|
2021-01-14 10:48:52 +00:00
|
|
|
'required':
|
2020-12-29 16:53:56 +00:00
|
|
|
- 'status'
|
|
|
|
- 'can_autofix'
|
2020-11-20 15:06:07 +00:00
|
|
|
'properties':
|
|
|
|
'status':
|
|
|
|
'type': 'string'
|
2020-12-29 16:53:56 +00:00
|
|
|
'default': ''
|
2020-11-20 15:06:07 +00:00
|
|
|
'can_autofix':
|
|
|
|
'type': 'boolean'
|
|
|
|
'example': false
|
2020-12-29 16:53:56 +00:00
|
|
|
'CheckConfigStaticIpInfoStatic':
|
|
|
|
'type': 'string'
|
|
|
|
'example': 'no'
|
2021-01-14 10:48:52 +00:00
|
|
|
'enum':
|
2020-12-29 16:53:56 +00:00
|
|
|
- 'yes'
|
|
|
|
- 'no'
|
|
|
|
- 'error'
|
|
|
|
'description': 'Can be: yes, no, error'
|
2020-11-20 15:06:07 +00:00
|
|
|
'CheckConfigStaticIpInfo':
|
|
|
|
'type': 'object'
|
|
|
|
'properties':
|
|
|
|
'static':
|
2020-12-29 16:53:56 +00:00
|
|
|
'$ref': '#/components/schemas/CheckConfigStaticIpInfoStatic'
|
2020-11-20 15:06:07 +00:00
|
|
|
'ip':
|
|
|
|
'type': 'string'
|
2020-12-29 16:53:56 +00:00
|
|
|
'default': ''
|
2020-11-20 15:06:07 +00:00
|
|
|
'example': '192.168.1.1'
|
|
|
|
'description': 'Current dynamic IP address. Set if static=no'
|
|
|
|
'error':
|
|
|
|
'type': 'string'
|
2020-12-29 16:53:56 +00:00
|
|
|
'default': ''
|
2020-11-20 15:06:07 +00:00
|
|
|
'description': 'Error text. Set if static=error'
|
2020-12-29 16:53:56 +00:00
|
|
|
'InitialConfigurationBeta':
|
|
|
|
'type': 'object'
|
|
|
|
'description': >
|
|
|
|
AdGuard Home initial configuration for the first-install wizard.
|
2021-01-14 10:48:52 +00:00
|
|
|
'required':
|
2020-12-29 16:53:56 +00:00
|
|
|
- 'dns'
|
|
|
|
- 'web'
|
|
|
|
- 'username'
|
|
|
|
- 'password'
|
|
|
|
'properties':
|
|
|
|
'dns':
|
|
|
|
'$ref': '#/components/schemas/AddressInfoBeta'
|
|
|
|
'web':
|
|
|
|
'$ref': '#/components/schemas/AddressInfoBeta'
|
|
|
|
'username':
|
|
|
|
'type': 'string'
|
|
|
|
'description': 'Basic auth username'
|
|
|
|
'example': 'admin'
|
|
|
|
'password':
|
|
|
|
'type': 'string'
|
|
|
|
'description': 'Basic auth password'
|
|
|
|
'example': 'password'
|
2020-11-20 15:06:07 +00:00
|
|
|
'InitialConfiguration':
|
|
|
|
'type': 'object'
|
|
|
|
'description': >
|
|
|
|
AdGuard Home initial configuration for the first-install wizard.
|
2021-01-14 10:48:52 +00:00
|
|
|
'required':
|
2020-12-29 16:53:56 +00:00
|
|
|
- 'dns'
|
|
|
|
- 'web'
|
|
|
|
- 'username'
|
|
|
|
- 'password'
|
2020-11-20 15:06:07 +00: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 14:45:19 +00:00
|
|
|
'name':
|
2020-11-20 15:06:07 +00: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'
|
2020-12-04 02:49:45 +00:00
|
|
|
'securitySchemes':
|
|
|
|
'basicAuth':
|
|
|
|
'type': 'http'
|
|
|
|
'scheme': 'basic'
|