You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added query_get_data function to APIEndpoint class to allow clients to query specific data from GET requests, minor updates to APIModel class to allow nested API calls, updated APIServicesUnboundHostOverride models to follow REST principals, updated documentation
| apply | boolean | Apply this host override upon creation. Defaults to false. If not set to true, you may apply these changes later by calling upon the /api/v1/services/unbound/apply endpoint. (optional) |
| host | string | Hostname of host override(s) to delete. This may be combined with a domain name and/or IP address for more specific deletions, or it may be used standalone to delete all host overrides that match the specified hostname |
2490
-
| domain | string | Domain of host override(s) to delete. This may be combined with a hostname and/or IP address for more specific deletions, or it may be used standalone to delete all host overrides that match the specified domain |
2491
-
| ip | string | IPv4/IPv6 address of host override(s) to delete. This may be combined with a hostname and/or domain name for more specific deletions, or it may be used standalone to delete all host overrides that match the specified IPv4/IPv6 address |
2492
-
| aliases | boolean | Delete aliases upon host and/or domain match (optional) |
2494
+
| id | integer | Specify the ID of the host override to delete |
2495
+
| apply | boolean | Apply this host override upon modification. Defaults to false. If not set to true, you may apply these changes later by calling upon the /api/v1/services/unbound/apply endpoint. (optional) |
|host|string|Hostname of host override to modify. If specified, a `domain` value must be specified.|
2549
-
|domain| string |Domain of host override to modify. Only necessary if a `host` value was provided. |
2550
-
|ip| string |IPv4/IPv6 address of host overrides to update IP. If specified, a `new_ip`value must be specified. If `host` and `domain` value are specified, this value will be ignored. |
2551
-
|descr| string |Specify a new host override description. Only available if a `host` value was provided. (optional) |
2552
-
|new_host| string |Specify a new hostname for the host override. Only available if a `host` value was provided. (optional)|
2553
-
|new_domain|string|Specify a new domain for the host override. Only available if a `host` value was provided. (optional)|
2554
-
|new_ip|string|Specify a new IPv4/IPv6 for the host override. Required if `ip` value was provided.|
2551
+
|id|integer|Specify the ID of the host override to update|
2552
+
|host| string |Update the hostname of this host override (optional)|
2553
+
|domain| string |Update the domain name of this host override (optional)|
2554
+
|ip| string |Update the IPv4/IPv6 address of this host override (optional) |
2555
+
|descr| string |Update the description of this host override(optional) |
2556
+
|aliases|array|Update the aliases for this host override. This will replace any existing entries. (optional) |
2557
+
|apply|boolean|Apply this host override upon modification. Defaults to false. If not set to true, you may apply these changes later by calling upon the /api/v1/services/unbound/apply endpoint. (optional)|
2555
2558
2556
2559
2557
2560
2558
2561
***Body:***
2559
2562
2560
2563
```js
2561
2564
{
2562
-
"host":"test",
2565
+
"host":"updated_test",
2563
2566
"domain":"example.com",
2564
-
"ip":"127.0.0.1",
2565
-
"descr":"This is a test host override added via pfSense API!",
2566
-
"new_host":"new_test",
2567
-
"new_domain":"newdomain.com",
2568
-
"new_ip":"123.123.123.123"
2567
+
"ip":"127.0.0.2",
2568
+
"descr":"This is a test host override update via pfSense API!",
2569
+
"aliases": [
2570
+
{
2571
+
"host":"test2",
2572
+
"domain":"example.com",
2573
+
"descr":"This is an updated host override alias that will also resolve to this IP!"
2574
+
},
2575
+
{
2576
+
"host":"updated_to_add",
2577
+
"domain":"example.com",
2578
+
"descr":"This is a test host override alias that was also added during the update!"
2579
+
}
2580
+
]
2581
+
}
2582
+
```
2583
+
2584
+
2585
+
2586
+
## SERVICES/UNBOUND/HOST_OVERRIDE/ALIAS
2587
+
2588
+
2589
+
2590
+
### 1. Create Unbound Host Override Alias
2591
+
2592
+
2593
+
Add a new host override alias to DNS Resolver (Unbound).<br><br>
2594
+
2595
+
_Requires at least one of the following privileges:_[`page-all`, `page-services-dnsresolver-edithost`]
| id | integer | Specify the ID of the host override to apply this alias to. |
2613
+
| host | string | Specify the hostname of the alias |
2614
+
| domain | string | Specify the domain name of the alias |
2615
+
| description | string | Description of alias (optional) |
2616
+
| apply | boolean | Apply this host override upon creation. Defaults to false. If not set to true, you may apply these changes later by calling upon the /api/v1/services/unbound/apply endpoint. (optional) |
2617
+
2618
+
2619
+
2620
+
***Body:***
2621
+
2622
+
```js
2623
+
{
2624
+
"id":0,
2625
+
"host":"alias",
2626
+
"domain":"example.com",
2627
+
"descr":"This is a test host override alias added via pfSense API!",
> Made with ♥ by [thedevsaddam](https://github.com/thedevsaddam) | Generated at: 2020-09-25 17:03:56 by [docgen](https://github.com/thedevsaddam/docgen)
0 commit comments