All URIs are relative to http://127.0.0.1/v2
| Method | HTTP request | Description |
|---|---|---|
| add_runtime_server | POST /services/haproxy/runtime/servers | Adds a new server to a backend |
| create_server | POST /services/haproxy/configuration/servers | Add a new server |
| delete_runtime_server | DELETE /services/haproxy/runtime/servers/{name} | Deletes a server from a backend |
| delete_server | DELETE /services/haproxy/configuration/servers/{name} | Delete a server |
| get_runtime_server | GET /services/haproxy/runtime/servers/{name} | Return one server runtime settings |
| get_runtime_servers | GET /services/haproxy/runtime/servers | Return an array of runtime servers' settings |
| get_server | GET /services/haproxy/configuration/servers/{name} | Return one server |
| get_servers | GET /services/haproxy/configuration/servers | Return an array of servers |
| replace_runtime_server | PUT /services/haproxy/runtime/servers/{name} | Replace server transient settings |
| replace_server | PUT /services/haproxy/configuration/servers/{name} | Replace a server |
crate::models::RuntimeAddServer add_runtime_server(backend, runtime_add_server) Adds a new server to a backend
Adds a new server to the specified backend
| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| backend | String | Parent backend name | [required] | |
| runtime_add_server | RuntimeAddServer | [required] |
crate::models::RuntimeAddServer
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::Server create_server(server, backend, parent_name, parent_type, transaction_id, version, force_reload) Add a new server
Adds a new server in the specified backend in the configuration file.
| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| server | Server | [required] | ||
| backend | Option<String> | Parent backend name | ||
| parent_name | Option<String> | Parent name | ||
| parent_type | Option<String> | Parent type | ||
| 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_runtime_server(name, backend) Deletes a server from a backend
Deletes a server from the specified backend
| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| name | String | Server name | [required] | |
| backend | String | Parent backend name | [required] |
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete_server(name, backend, parent_name, parent_type, transaction_id, version, force_reload) Delete a server
Deletes a server configuration by it's name in the specified backend.
| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| name | String | Server name | [required] | |
| backend | Option<String> | Parent backend name | ||
| parent_name | Option<String> | Parent name | ||
| parent_type | Option<String> | Parent type | ||
| 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::RuntimeServer get_runtime_server(name, backend) Return one server runtime settings
Returns one server runtime settings by it's name in the specified backend.
| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| name | String | Server name | [required] | |
| backend | String | Parent backend name | [required] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Veccrate::models::RuntimeServer get_runtime_servers(backend) Return an array of runtime servers' settings
Returns an array of all servers' runtime settings.
| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| backend | String | Parent backend name | [required] |
Veccrate::models::RuntimeServer
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::GetServer200Response get_server(name, backend, parent_name, parent_type, transaction_id) Return one server
Returns one server configuration by it's name in the specified backend.
| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| name | String | Server name | [required] | |
| backend | Option<String> | Parent backend name | ||
| parent_name | Option<String> | Parent name | ||
| parent_type | Option<String> | Parent type | ||
| transaction_id | Option<String> | ID of the transaction where we want to add the operation. Cannot be used when version is specified. |
crate::models::GetServer200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::GetServers200Response get_servers(backend, parent_name, parent_type, transaction_id) Return an array of servers
Returns an array of all servers that are configured in specified backend.
| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| backend | Option<String> | Parent backend name | ||
| parent_name | Option<String> | Parent name | ||
| parent_type | Option<String> | Parent type | ||
| transaction_id | Option<String> | ID of the transaction where we want to add the operation. Cannot be used when version is specified. |
crate::models::GetServers200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::RuntimeServer replace_runtime_server(name, backend, runtime_server) Replace server transient settings
Replaces a server transient settings by it's name in the specified backend.
| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| name | String | Server name | [required] | |
| backend | String | Parent backend name | [required] | |
| runtime_server | RuntimeServer | [required] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::Server replace_server(name, server, backend, parent_name, parent_type, transaction_id, version, force_reload) Replace a server
Replaces a server configuration by it's name in the specified backend.
| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| name | String | Server name | [required] | |
| server | Server | [required] | ||
| backend | Option<String> | Parent backend name | ||
| parent_name | Option<String> | Parent name | ||
| parent_type | Option<String> | Parent type | ||
| 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]