Skip to content

Latest commit

 

History

History
67 lines (42 loc) · 2.28 KB

SearchApi.md

File metadata and controls

67 lines (42 loc) · 2.28 KB

\SearchApi

All URIs are relative to http://localhost:8081/api/v1

Method HTTP request Description
SearchData Get /servers/{server_id}/search-data Search the data inside PowerDNS
SearchLog Get /servers/{server_id}/search-log Query the log, filtered by search_term.

SearchData

SearchResults SearchData(ctx, serverId, q, max) Search the data inside PowerDNS

Search the data inside PowerDNS for search_term and return at most max_results. This includes zones, records and comments. The * character can be used in search_term as a wildcard character and the ? character can be used as a wildcard for a single character.

Required Parameters

Name Type Description Notes
ctx context.Context context for logging, tracing, authentication, etc.
serverId string The id of the server to retrieve
q string The string to search for
max int32 Maximum number of entries to return

Return type

SearchResults

Authorization

APIKeyHeader

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

SearchLog

[]string SearchLog(ctx, serverId, q) Query the log, filtered by search_term.

Required Parameters

Name Type Description Notes
ctx context.Context context for logging, tracing, authentication, etc.
serverId string The id of the server to retrieve
q string The string to search for

Return type

[]string

Authorization

APIKeyHeader

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]