All URIs are relative to http://localhost:8081/api/v1
Method | HTTP request | Description |
---|---|---|
get_config | GET /servers/{server_id}/config | Returns all ConfigSettings for a single server |
get_config_setting | GET /servers/{server_id}/config/{config_setting_name} | Returns a specific ConfigSetting for a single server |
Array<ConfigSetting> get_config(server_id)
Returns all ConfigSettings for a single server
# load the gem
require 'powerdns'
# setup authorization
PowerDNS.configure do |config|
# Configure API key authorization: APIKeyHeader
config.api_key['X-API-Key'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['X-API-Key'] = 'Bearer'
end
api_instance = PowerDNS::ConfigApi.new
server_id = "server_id_example" # String | The id of the server to retrieve
begin
#Returns all ConfigSettings for a single server
result = api_instance.get_config(server_id)
p result
rescue PowerDNS::ApiError => e
puts "Exception when calling ConfigApi->get_config: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
server_id | String | The id of the server to retrieve |
- Content-Type: application/json
- Accept: application/json
ConfigSetting get_config_setting(server_id, config_setting_name)
Returns a specific ConfigSetting for a single server
NOT IMPLEMENTED
# load the gem
require 'powerdns'
# setup authorization
PowerDNS.configure do |config|
# Configure API key authorization: APIKeyHeader
config.api_key['X-API-Key'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['X-API-Key'] = 'Bearer'
end
api_instance = PowerDNS::ConfigApi.new
server_id = "server_id_example" # String | The id of the server to retrieve
config_setting_name = "config_setting_name_example" # String | The name of the setting to retrieve
begin
#Returns a specific ConfigSetting for a single server
result = api_instance.get_config_setting(server_id, config_setting_name)
p result
rescue PowerDNS::ApiError => e
puts "Exception when calling ConfigApi->get_config_setting: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
server_id | String | The id of the server to retrieve | |
config_setting_name | String | The name of the setting to retrieve |
- Content-Type: application/json
- Accept: application/json