All URIs are relative to http://127.0.0.1/v2
| Method | HTTP request | Description |
|---|---|---|
| create_resolver | POST /services/haproxy/configuration/resolvers | Add a resolver |
| delete_resolver | DELETE /services/haproxy/configuration/resolvers/{name} | Delete a resolver |
| get_resolver | GET /services/haproxy/configuration/resolvers/{name} | Return a resolver |
| get_resolvers | GET /services/haproxy/configuration/resolvers | Return an array of resolvers |
| replace_resolver | PUT /services/haproxy/configuration/resolvers/{name} | Replace a resolver |
crate::models::Resolver create_resolver(resolver, transaction_id, version, force_reload) Add a resolver
Adds a new resolver section to the configuration file.
| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| resolver | Resolver | [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_resolver(name, transaction_id, version, force_reload) Delete a resolver
Deletes a resolver from the configuration by it's name.
| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| name | String | 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::GetResolver200Response get_resolver(name, transaction_id) Return a resolver
Returns one resolver section configuration by it's name.
| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| name | String | 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::GetResolver200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::GetResolvers200Response get_resolvers(transaction_id) Return an array of resolvers
Returns an array of all configured resolvers.
| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| transaction_id | Option<String> | ID of the transaction where we want to add the operation. Cannot be used when version is specified. |
crate::models::GetResolvers200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::Resolver replace_resolver(name, resolver, transaction_id, version, force_reload) Replace a resolver
Replaces a resolver configuration by it's name.
| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| name | String | Resolver name | [required] | |
| resolver | Resolver | [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]