Skip to content

Latest commit

 

History

History
73 lines (41 loc) · 2.5 KB

File metadata and controls

73 lines (41 loc) · 2.5 KB

\GlobalApi

All URIs are relative to http://127.0.0.1/v2

Method HTTP request Description
get_global GET /services/haproxy/configuration/global Return a global part of configuration
replace_global PUT /services/haproxy/configuration/global Replace global

get_global

crate::models::GetGlobal200Response get_global(transaction_id) Return a global part of configuration

Returns global part of configuration.

Parameters

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.

Return type

crate::models::GetGlobal200Response

Authorization

basic_auth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

replace_global

crate::models::Global replace_global(global, transaction_id, version, force_reload) Replace global

Replace global part of config

Parameters

Name Type Description Required Notes
global Global [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]

Return type

crate::models::Global

Authorization

basic_auth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]