All URIs are relative to http://127.0.0.1/v2
| Method | HTTP request | Description |
|---|---|---|
| create_nameserver | POST /services/haproxy/configuration/nameservers | Add a nameserver |
| delete_nameserver | DELETE /services/haproxy/configuration/nameservers/{name} | Delete a nameserver |
| get_nameserver | GET /services/haproxy/configuration/nameservers/{name} | Return a nameserver |
| get_nameservers | GET /services/haproxy/configuration/nameservers | Return an array of nameservers |
| replace_nameserver | PUT /services/haproxy/configuration/nameservers/{name} | Replace a nameserver |
crate::models::Nameserver create_nameserver(resolver, nameserver, transaction_id, version, force_reload) Add a nameserver
Adds a new nameserver to the resolvers section.
| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| resolver | String | Parent resolver name | [required] | |
| nameserver | Nameserver | [required] | ||
| transaction_id | Option<String> | ID of the transaction where we want to add the operation. Cannot be used when version is specified. | ||
| version | Option<i32> | Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version. | ||
| force_reload | Option<bool> | If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration. | [default to false] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete_nameserver(name, resolver, transaction_id, version, force_reload) Delete a nameserver
Deletes a nameserver from the resolvers section by it's name.
| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| name | String | Nameserver name | [required] | |
| resolver | String | Parent resolver name | [required] | |
| transaction_id | Option<String> | ID of the transaction where we want to add the operation. Cannot be used when version is specified. | ||
| version | Option<i32> | Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version. | ||
| force_reload | Option<bool> | If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration. | [default to false] |
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::GetNameserver200Response get_nameserver(name, resolver, transaction_id) Return a nameserver
Returns one nameserver configuration by it's name.
| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| name | String | Nameserver name | [required] | |
| resolver | String | Parent resolver name | [required] | |
| transaction_id | Option<String> | ID of the transaction where we want to add the operation. Cannot be used when version is specified. |
crate::models::GetNameserver200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::GetNameservers200Response get_nameservers(resolver, transaction_id) Return an array of nameservers
Returns an array of all configured nameservers.
| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| resolver | String | Parent resolver name | [required] | |
| transaction_id | Option<String> | ID of the transaction where we want to add the operation. Cannot be used when version is specified. |
crate::models::GetNameservers200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::Nameserver replace_nameserver(name, resolver, nameserver, transaction_id, version, force_reload) Replace a nameserver
Replaces a nameserver configuration by it's name.
| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| name | String | Nameserver name | [required] | |
| resolver | String | Parent resolver name | [required] | |
| nameserver | Nameserver | [required] | ||
| transaction_id | Option<String> | ID of the transaction where we want to add the operation. Cannot be used when version is specified. | ||
| version | Option<i32> | Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version. | ||
| force_reload | Option<bool> | If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration. | [default to false] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]