Skip to content

Latest commit

 

History

History
174 lines (100 loc) · 6.49 KB

File metadata and controls

174 lines (100 loc) · 6.49 KB

\ResolverApi

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

create_resolver

crate::models::Resolver create_resolver(resolver, transaction_id, version, force_reload) Add a resolver

Adds a new resolver section to the configuration file.

Parameters

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]

Return type

crate::models::Resolver

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]

delete_resolver

delete_resolver(name, transaction_id, version, force_reload) Delete a resolver

Deletes a resolver from the configuration by it's name.

Parameters

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]

Return type

(empty response body)

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]

get_resolver

crate::models::GetResolver200Response get_resolver(name, transaction_id) Return a resolver

Returns one resolver section configuration by it's name.

Parameters

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.

Return type

crate::models::GetResolver200Response

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]

get_resolvers

crate::models::GetResolvers200Response get_resolvers(transaction_id) Return an array of resolvers

Returns an array of all configured resolvers.

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::GetResolvers200Response

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_resolver

crate::models::Resolver replace_resolver(name, resolver, transaction_id, version, force_reload) Replace a resolver

Replaces a resolver configuration by it's name.

Parameters

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]

Return type

crate::models::Resolver

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]