All URIs are relative to http://127.0.0.1/v2
| Method | HTTP request | Description |
|---|---|---|
| create_log_forward | POST /services/haproxy/configuration/log_forwards | Add a log forward |
| delete_log_forward | DELETE /services/haproxy/configuration/log_forwards/{name} | Delete a log forward |
| get_log_forward | GET /services/haproxy/configuration/log_forwards/{name} | Return a log forward |
| get_log_forwards | GET /services/haproxy/configuration/log_forwards | Return an array of log forwards |
| replace_log_forward | PUT /services/haproxy/configuration/log_forwards/{name} | Replace a log forward |
crate::models::LogForward create_log_forward(log_forward, transaction_id, version, force_reload) Add a log forward
Adds a new log_forward to the configuration file.
| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| log_forward | LogForward | [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_log_forward(name, transaction_id, version, force_reload) Delete a log forward
Deletes a log forward from the configuration by it's name.
| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| name | String | Log Forward 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::GetLogForward200Response get_log_forward(name, transaction_id) Return a log forward
Returns one log forward configuration by it's name.
| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| name | String | Log Forward 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::GetLogForward200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::GetLogForwards200Response get_log_forwards(transaction_id) Return an array of log forwards
Returns an array of all configured log forwards.
| 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::GetLogForwards200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::LogForward replace_log_forward(name, log_forward, transaction_id, version, force_reload) Replace a log forward
Replaces a log forward configuration by it's name.
| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| name | String | Log Forward name | [required] | |
| log_forward | LogForward | [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]