openapi

package
v0.0.1-beta.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2021 License: GPL-3.0 Imports: 21 Imported by: 0

README

Go API client for openapi

API for editing and managing haproxy instances. Provides process information, configuration management, haproxy stats and logs. # Authentication

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/oauth2
go get golang.org/x/net/context
go get github.com/antihax/optional

Put the package under your project folder and add the following in import:

import "./openapi"

Documentation for API Endpoints

All URIs are relative to http://localhost/v1

Class Method HTTP request Description
ACLApi CreateAcl Post /services/haproxy/configuration/acls Add a new ACL line
ACLApi DeleteAcl Delete /services/haproxy/configuration/acls/{id} Delete a ACL line
ACLApi GetAcl Get /services/haproxy/configuration/acls/{id} Return one ACL line
ACLApi GetAcls Get /services/haproxy/configuration/acls Return an array of all ACL lines
ACLApi ReplaceAcl Put /services/haproxy/configuration/acls/{id} Replace a ACL line
BackendApi CreateBackend Post /services/haproxy/configuration/backends Add a backend
BackendApi DeleteBackend Delete /services/haproxy/configuration/backends/{name} Delete a backend
BackendApi GetBackend Get /services/haproxy/configuration/backends/{name} Return a backend
BackendApi GetBackends Get /services/haproxy/configuration/backends Return an array of backends
BackendApi ReplaceBackend Put /services/haproxy/configuration/backends/{name} Replace a backend
BackendOptionsApi CreateAcl Post /services/haproxy/configuration/acls Add a new ACL line
BackendOptionsApi CreateFilter Post /services/haproxy/configuration/filters Add a new Filter
BackendOptionsApi CreateHTTPRequestRule Post /services/haproxy/configuration/http_request_rules Add a new HTTP Request Rule
BackendOptionsApi CreateHTTPResponseRule Post /services/haproxy/configuration/http_response_rules Add a new HTTP Response Rule
BackendOptionsApi CreateLogTarget Post /services/haproxy/configuration/log_targets Add a new Log Target
BackendOptionsApi CreateServer Post /services/haproxy/configuration/servers Add a new server
BackendOptionsApi CreateServerSwitchingRule Post /services/haproxy/configuration/server_switching_rules Add a new Server Switching Rule
BackendOptionsApi CreateStickRule Post /services/haproxy/configuration/stick_rules Add a new Stick Rule
BackendOptionsApi CreateTCPRequestRule Post /services/haproxy/configuration/tcp_request_rules Add a new TCP Request Rule
BackendOptionsApi CreateTCPResponseRule Post /services/haproxy/configuration/tcp_response_rules Add a new TCP Response Rule
BackendOptionsApi DeleteAcl Delete /services/haproxy/configuration/acls/{id} Delete a ACL line
BackendOptionsApi DeleteFilter Delete /services/haproxy/configuration/filters/{id} Delete a Filter
BackendOptionsApi DeleteHTTPRequestRule Delete /services/haproxy/configuration/http_request_rules/{id} Delete a HTTP Request Rule
BackendOptionsApi DeleteHTTPResponseRule Delete /services/haproxy/configuration/http_response_rules/{id} Delete a HTTP Response Rule
BackendOptionsApi DeleteLogTarget Delete /services/haproxy/configuration/log_targets/{id} Delete a Log Target
BackendOptionsApi DeleteServer Delete /services/haproxy/configuration/servers/{name} Delete a server
BackendOptionsApi DeleteServerSwitchingRule Delete /services/haproxy/configuration/server_switching_rules/{id} Delete a Server Switching Rule
BackendOptionsApi DeleteStickRule Delete /services/haproxy/configuration/stick_rules/{id} Delete a Stick Rule
BackendOptionsApi DeleteTCPRequestRule Delete /services/haproxy/configuration/tcp_request_rules/{id} Delete a TCP Request Rule
BackendOptionsApi DeleteTCPResponseRule Delete /services/haproxy/configuration/tcp_response_rules/{id} Delete a TCP Response Rule
BackendOptionsApi GetAcl Get /services/haproxy/configuration/acls/{id} Return one ACL line
BackendOptionsApi GetAcls Get /services/haproxy/configuration/acls Return an array of all ACL lines
BackendOptionsApi GetFilter Get /services/haproxy/configuration/filters/{id} Return one Filter
BackendOptionsApi GetFilters Get /services/haproxy/configuration/filters Return an array of all Filters
BackendOptionsApi GetHTTPRequestRule Get /services/haproxy/configuration/http_request_rules/{id} Return one HTTP Request Rule
BackendOptionsApi GetHTTPRequestRules Get /services/haproxy/configuration/http_request_rules Return an array of all HTTP Request Rules
BackendOptionsApi GetHTTPResponseRule Get /services/haproxy/configuration/http_response_rules/{id} Return one HTTP Response Rule
BackendOptionsApi GetHTTPResponseRules Get /services/haproxy/configuration/http_response_rules Return an array of all HTTP Response Rules
BackendOptionsApi GetLogTarget Get /services/haproxy/configuration/log_targets/{id} Return one Log Target
BackendOptionsApi GetLogTargets Get /services/haproxy/configuration/log_targets Return an array of all Log Targets
BackendOptionsApi GetServer Get /services/haproxy/configuration/servers/{name} Return one server
BackendOptionsApi GetServerSwitchingRule Get /services/haproxy/configuration/server_switching_rules/{id} Return one Server Switching Rule
BackendOptionsApi GetServerSwitchingRules Get /services/haproxy/configuration/server_switching_rules Return an array of all Server Switching Rules
BackendOptionsApi GetServers Get /services/haproxy/configuration/servers Return an array of servers
BackendOptionsApi GetStickRule Get /services/haproxy/configuration/stick_rules/{id} Return one Stick Rule
BackendOptionsApi GetStickRules Get /services/haproxy/configuration/stick_rules Return an array of all Stick Rules
BackendOptionsApi GetTCPRequestRule Get /services/haproxy/configuration/tcp_request_rules/{id} Return one TCP Request Rule
BackendOptionsApi GetTCPRequestRules Get /services/haproxy/configuration/tcp_request_rules Return an array of all TCP Request Rules
BackendOptionsApi GetTCPResponseRule Get /services/haproxy/configuration/tcp_response_rules/{id} Return one TCP Response Rule
BackendOptionsApi GetTCPResponseRules Get /services/haproxy/configuration/tcp_response_rules Return an array of all TCP Response Rules
BackendOptionsApi ReplaceAcl Put /services/haproxy/configuration/acls/{id} Replace a ACL line
BackendOptionsApi ReplaceFilter Put /services/haproxy/configuration/filters/{id} Replace a Filter
BackendOptionsApi ReplaceHTTPRequestRule Put /services/haproxy/configuration/http_request_rules/{id} Replace a HTTP Request Rule
BackendOptionsApi ReplaceHTTPResponseRule Put /services/haproxy/configuration/http_response_rules/{id} Replace a HTTP Response Rule
BackendOptionsApi ReplaceLogTarget Put /services/haproxy/configuration/log_targets/{id} Replace a Log Target
BackendOptionsApi ReplaceServer Put /services/haproxy/configuration/servers/{name} Replace a server
BackendOptionsApi ReplaceServerSwitchingRule Put /services/haproxy/configuration/server_switching_rules/{id} Replace a Server Switching Rule
BackendOptionsApi ReplaceStickRule Put /services/haproxy/configuration/stick_rules/{id} Replace a Stick Rule
BackendOptionsApi ReplaceTCPRequestRule Put /services/haproxy/configuration/tcp_request_rules/{id} Replace a TCP Request Rule
BackendOptionsApi ReplaceTCPResponseRule Put /services/haproxy/configuration/tcp_response_rules/{id} Replace a TCP Response Rule
BackendSwitchingRuleApi CreateBackendSwitchingRule Post /services/haproxy/configuration/backend_switching_rules Add a new Backend Switching Rule
BackendSwitchingRuleApi DeleteBackendSwitchingRule Delete /services/haproxy/configuration/backend_switching_rules/{id} Delete a Backend Switching Rule
BackendSwitchingRuleApi GetBackendSwitchingRule Get /services/haproxy/configuration/backend_switching_rules/{id} Return one Backend Switching Rule
BackendSwitchingRuleApi GetBackendSwitchingRules Get /services/haproxy/configuration/backend_switching_rules Return an array of all Backend Switching Rules
BackendSwitchingRuleApi ReplaceBackendSwitchingRule Put /services/haproxy/configuration/backend_switching_rules/{id} Replace a Backend Switching Rule
BindApi CreateBind Post /services/haproxy/configuration/binds Add a new bind
BindApi DeleteBind Delete /services/haproxy/configuration/binds/{name} Delete a bind
BindApi GetBind Get /services/haproxy/configuration/binds/{name} Return one bind
BindApi GetBinds Get /services/haproxy/configuration/binds Return an array of binds
BindApi ReplaceBind Put /services/haproxy/configuration/binds/{name} Replace a bind
ConfigurationApi GetHAProxyConfiguration Get /services/haproxy/configuration/raw Return HAProxy configuration
ConfigurationApi PostHAProxyConfiguration Post /services/haproxy/configuration/raw Push new haproxy configuration
DefaultsApi GetDefaults Get /services/haproxy/configuration/defaults Return defaults part of configuration
DefaultsApi ReplaceDefaults Put /services/haproxy/configuration/defaults Replace defaults
DiscoveryApi GetAPIEndpoints Get / Return list of root endpoints
DiscoveryApi GetConfigurationEndpoints Get /services/haproxy/configuration Return list of HAProxy advanced configuration endpoints
DiscoveryApi GetHaproxyEndpoints Get /services/haproxy Return list of HAProxy related endpoints
DiscoveryApi GetServicesEndpoints Get /services Return list of service endpoints
DiscoveryApi GetStatsEndpoints Get /services/haproxy/stats Return list of HAProxy stats endpoints
FilterApi CreateFilter Post /services/haproxy/configuration/filters Add a new Filter
FilterApi DeleteFilter Delete /services/haproxy/configuration/filters/{id} Delete a Filter
FilterApi GetFilter Get /services/haproxy/configuration/filters/{id} Return one Filter
FilterApi GetFilters Get /services/haproxy/configuration/filters Return an array of all Filters
FilterApi ReplaceFilter Put /services/haproxy/configuration/filters/{id} Replace a Filter
FrontendApi CreateFrontend Post /services/haproxy/configuration/frontends Add a frontend
FrontendApi DeleteFrontend Delete /services/haproxy/configuration/frontends/{name} Delete a frontend
FrontendApi GetFrontend Get /services/haproxy/configuration/frontends/{name} Return a frontend
FrontendApi GetFrontends Get /services/haproxy/configuration/frontends Return an array of frontends
FrontendApi ReplaceFrontend Put /services/haproxy/configuration/frontends/{name} Replace a frontend
FrontendOptionsApi CreateAcl Post /services/haproxy/configuration/acls Add a new ACL line
FrontendOptionsApi CreateBackendSwitchingRule Post /services/haproxy/configuration/backend_switching_rules Add a new Backend Switching Rule
FrontendOptionsApi CreateBind Post /services/haproxy/configuration/binds Add a new bind
FrontendOptionsApi CreateFilter Post /services/haproxy/configuration/filters Add a new Filter
FrontendOptionsApi CreateHTTPRequestRule Post /services/haproxy/configuration/http_request_rules Add a new HTTP Request Rule
FrontendOptionsApi CreateHTTPResponseRule Post /services/haproxy/configuration/http_response_rules Add a new HTTP Response Rule
FrontendOptionsApi CreateLogTarget Post /services/haproxy/configuration/log_targets Add a new Log Target
FrontendOptionsApi CreateTCPRequestRule Post /services/haproxy/configuration/tcp_request_rules Add a new TCP Request Rule
FrontendOptionsApi CreateTCPResponseRule Post /services/haproxy/configuration/tcp_response_rules Add a new TCP Response Rule
FrontendOptionsApi DeleteAcl Delete /services/haproxy/configuration/acls/{id} Delete a ACL line
FrontendOptionsApi DeleteBackendSwitchingRule Delete /services/haproxy/configuration/backend_switching_rules/{id} Delete a Backend Switching Rule
FrontendOptionsApi DeleteBind Delete /services/haproxy/configuration/binds/{name} Delete a bind
FrontendOptionsApi DeleteFilter Delete /services/haproxy/configuration/filters/{id} Delete a Filter
FrontendOptionsApi DeleteHTTPRequestRule Delete /services/haproxy/configuration/http_request_rules/{id} Delete a HTTP Request Rule
FrontendOptionsApi DeleteHTTPResponseRule Delete /services/haproxy/configuration/http_response_rules/{id} Delete a HTTP Response Rule
FrontendOptionsApi DeleteLogTarget Delete /services/haproxy/configuration/log_targets/{id} Delete a Log Target
FrontendOptionsApi DeleteTCPRequestRule Delete /services/haproxy/configuration/tcp_request_rules/{id} Delete a TCP Request Rule
FrontendOptionsApi DeleteTCPResponseRule Delete /services/haproxy/configuration/tcp_response_rules/{id} Delete a TCP Response Rule
FrontendOptionsApi GetAcl Get /services/haproxy/configuration/acls/{id} Return one ACL line
FrontendOptionsApi GetAcls Get /services/haproxy/configuration/acls Return an array of all ACL lines
FrontendOptionsApi GetBackendSwitchingRule Get /services/haproxy/configuration/backend_switching_rules/{id} Return one Backend Switching Rule
FrontendOptionsApi GetBackendSwitchingRules Get /services/haproxy/configuration/backend_switching_rules Return an array of all Backend Switching Rules
FrontendOptionsApi GetBind Get /services/haproxy/configuration/binds/{name} Return one bind
FrontendOptionsApi GetBinds Get /services/haproxy/configuration/binds Return an array of binds
FrontendOptionsApi GetFilter Get /services/haproxy/configuration/filters/{id} Return one Filter
FrontendOptionsApi GetFilters Get /services/haproxy/configuration/filters Return an array of all Filters
FrontendOptionsApi GetHTTPRequestRule Get /services/haproxy/configuration/http_request_rules/{id} Return one HTTP Request Rule
FrontendOptionsApi GetHTTPRequestRules Get /services/haproxy/configuration/http_request_rules Return an array of all HTTP Request Rules
FrontendOptionsApi GetHTTPResponseRule Get /services/haproxy/configuration/http_response_rules/{id} Return one HTTP Response Rule
FrontendOptionsApi GetHTTPResponseRules Get /services/haproxy/configuration/http_response_rules Return an array of all HTTP Response Rules
FrontendOptionsApi GetLogTarget Get /services/haproxy/configuration/log_targets/{id} Return one Log Target
FrontendOptionsApi GetLogTargets Get /services/haproxy/configuration/log_targets Return an array of all Log Targets
FrontendOptionsApi GetTCPRequestRule Get /services/haproxy/configuration/tcp_request_rules/{id} Return one TCP Request Rule
FrontendOptionsApi GetTCPRequestRules Get /services/haproxy/configuration/tcp_request_rules Return an array of all TCP Request Rules
FrontendOptionsApi GetTCPResponseRule Get /services/haproxy/configuration/tcp_response_rules/{id} Return one TCP Response Rule
FrontendOptionsApi GetTCPResponseRules Get /services/haproxy/configuration/tcp_response_rules Return an array of all TCP Response Rules
FrontendOptionsApi ReplaceAcl Put /services/haproxy/configuration/acls/{id} Replace a ACL line
FrontendOptionsApi ReplaceBackendSwitchingRule Put /services/haproxy/configuration/backend_switching_rules/{id} Replace a Backend Switching Rule
FrontendOptionsApi ReplaceBind Put /services/haproxy/configuration/binds/{name} Replace a bind
FrontendOptionsApi ReplaceFilter Put /services/haproxy/configuration/filters/{id} Replace a Filter
FrontendOptionsApi ReplaceHTTPRequestRule Put /services/haproxy/configuration/http_request_rules/{id} Replace a HTTP Request Rule
FrontendOptionsApi ReplaceHTTPResponseRule Put /services/haproxy/configuration/http_response_rules/{id} Replace a HTTP Response Rule
FrontendOptionsApi ReplaceLogTarget Put /services/haproxy/configuration/log_targets/{id} Replace a Log Target
FrontendOptionsApi ReplaceTCPRequestRule Put /services/haproxy/configuration/tcp_request_rules/{id} Replace a TCP Request Rule
FrontendOptionsApi ReplaceTCPResponseRule Put /services/haproxy/configuration/tcp_response_rules/{id} Replace a TCP Response Rule
GlobalApi GetGlobal Get /services/haproxy/configuration/global Return a global part of configuration
GlobalApi ReplaceGlobal Put /services/haproxy/configuration/global Replace global
HAProxyConfigurationManagementApi CreateAcl Post /services/haproxy/configuration/acls Add a new ACL line
HAProxyConfigurationManagementApi CreateBackend Post /services/haproxy/configuration/backends Add a backend
HAProxyConfigurationManagementApi CreateBackendSwitchingRule Post /services/haproxy/configuration/backend_switching_rules Add a new Backend Switching Rule
HAProxyConfigurationManagementApi CreateBind Post /services/haproxy/configuration/binds Add a new bind
HAProxyConfigurationManagementApi CreateFilter Post /services/haproxy/configuration/filters Add a new Filter
HAProxyConfigurationManagementApi CreateFrontend Post /services/haproxy/configuration/frontends Add a frontend
HAProxyConfigurationManagementApi CreateHTTPRequestRule Post /services/haproxy/configuration/http_request_rules Add a new HTTP Request Rule
HAProxyConfigurationManagementApi CreateHTTPResponseRule Post /services/haproxy/configuration/http_response_rules Add a new HTTP Response Rule
HAProxyConfigurationManagementApi CreateLogTarget Post /services/haproxy/configuration/log_targets Add a new Log Target
HAProxyConfigurationManagementApi CreateServer Post /services/haproxy/configuration/servers Add a new server
HAProxyConfigurationManagementApi CreateServerSwitchingRule Post /services/haproxy/configuration/server_switching_rules Add a new Server Switching Rule
HAProxyConfigurationManagementApi CreateStickRule Post /services/haproxy/configuration/stick_rules Add a new Stick Rule
HAProxyConfigurationManagementApi CreateTCPRequestRule Post /services/haproxy/configuration/tcp_request_rules Add a new TCP Request Rule
HAProxyConfigurationManagementApi CreateTCPResponseRule Post /services/haproxy/configuration/tcp_response_rules Add a new TCP Response Rule
HAProxyConfigurationManagementApi DeleteAcl Delete /services/haproxy/configuration/acls/{id} Delete a ACL line
HAProxyConfigurationManagementApi DeleteBackend Delete /services/haproxy/configuration/backends/{name} Delete a backend
HAProxyConfigurationManagementApi DeleteBackendSwitchingRule Delete /services/haproxy/configuration/backend_switching_rules/{id} Delete a Backend Switching Rule
HAProxyConfigurationManagementApi DeleteBind Delete /services/haproxy/configuration/binds/{name} Delete a bind
HAProxyConfigurationManagementApi DeleteFilter Delete /services/haproxy/configuration/filters/{id} Delete a Filter
HAProxyConfigurationManagementApi DeleteFrontend Delete /services/haproxy/configuration/frontends/{name} Delete a frontend
HAProxyConfigurationManagementApi DeleteHTTPRequestRule Delete /services/haproxy/configuration/http_request_rules/{id} Delete a HTTP Request Rule
HAProxyConfigurationManagementApi DeleteHTTPResponseRule Delete /services/haproxy/configuration/http_response_rules/{id} Delete a HTTP Response Rule
HAProxyConfigurationManagementApi DeleteLogTarget Delete /services/haproxy/configuration/log_targets/{id} Delete a Log Target
HAProxyConfigurationManagementApi DeleteServer Delete /services/haproxy/configuration/servers/{name} Delete a server
HAProxyConfigurationManagementApi DeleteServerSwitchingRule Delete /services/haproxy/configuration/server_switching_rules/{id} Delete a Server Switching Rule
HAProxyConfigurationManagementApi DeleteStickRule Delete /services/haproxy/configuration/stick_rules/{id} Delete a Stick Rule
HAProxyConfigurationManagementApi DeleteTCPRequestRule Delete /services/haproxy/configuration/tcp_request_rules/{id} Delete a TCP Request Rule
HAProxyConfigurationManagementApi DeleteTCPResponseRule Delete /services/haproxy/configuration/tcp_response_rules/{id} Delete a TCP Response Rule
HAProxyConfigurationManagementApi GetAcl Get /services/haproxy/configuration/acls/{id} Return one ACL line
HAProxyConfigurationManagementApi GetAcls Get /services/haproxy/configuration/acls Return an array of all ACL lines
HAProxyConfigurationManagementApi GetBackend Get /services/haproxy/configuration/backends/{name} Return a backend
HAProxyConfigurationManagementApi GetBackendSwitchingRule Get /services/haproxy/configuration/backend_switching_rules/{id} Return one Backend Switching Rule
HAProxyConfigurationManagementApi GetBackendSwitchingRules Get /services/haproxy/configuration/backend_switching_rules Return an array of all Backend Switching Rules
HAProxyConfigurationManagementApi GetBackends Get /services/haproxy/configuration/backends Return an array of backends
HAProxyConfigurationManagementApi GetBind Get /services/haproxy/configuration/binds/{name} Return one bind
HAProxyConfigurationManagementApi GetBinds Get /services/haproxy/configuration/binds Return an array of binds
HAProxyConfigurationManagementApi GetDefaults Get /services/haproxy/configuration/defaults Return defaults part of configuration
HAProxyConfigurationManagementApi GetFilter Get /services/haproxy/configuration/filters/{id} Return one Filter
HAProxyConfigurationManagementApi GetFilters Get /services/haproxy/configuration/filters Return an array of all Filters
HAProxyConfigurationManagementApi GetFrontend Get /services/haproxy/configuration/frontends/{name} Return a frontend
HAProxyConfigurationManagementApi GetFrontends Get /services/haproxy/configuration/frontends Return an array of frontends
HAProxyConfigurationManagementApi GetGlobal Get /services/haproxy/configuration/global Return a global part of configuration
HAProxyConfigurationManagementApi GetHAProxyConfiguration Get /services/haproxy/configuration/raw Return HAProxy configuration
HAProxyConfigurationManagementApi GetHTTPRequestRule Get /services/haproxy/configuration/http_request_rules/{id} Return one HTTP Request Rule
HAProxyConfigurationManagementApi GetHTTPRequestRules Get /services/haproxy/configuration/http_request_rules Return an array of all HTTP Request Rules
HAProxyConfigurationManagementApi GetHTTPResponseRule Get /services/haproxy/configuration/http_response_rules/{id} Return one HTTP Response Rule
HAProxyConfigurationManagementApi GetHTTPResponseRules Get /services/haproxy/configuration/http_response_rules Return an array of all HTTP Response Rules
HAProxyConfigurationManagementApi GetLogTarget Get /services/haproxy/configuration/log_targets/{id} Return one Log Target
HAProxyConfigurationManagementApi GetLogTargets Get /services/haproxy/configuration/log_targets Return an array of all Log Targets
HAProxyConfigurationManagementApi GetServer Get /services/haproxy/configuration/servers/{name} Return one server
HAProxyConfigurationManagementApi GetServerSwitchingRule Get /services/haproxy/configuration/server_switching_rules/{id} Return one Server Switching Rule
HAProxyConfigurationManagementApi GetServerSwitchingRules Get /services/haproxy/configuration/server_switching_rules Return an array of all Server Switching Rules
HAProxyConfigurationManagementApi GetServers Get /services/haproxy/configuration/servers Return an array of servers
HAProxyConfigurationManagementApi GetStickRule Get /services/haproxy/configuration/stick_rules/{id} Return one Stick Rule
HAProxyConfigurationManagementApi GetStickRules Get /services/haproxy/configuration/stick_rules Return an array of all Stick Rules
HAProxyConfigurationManagementApi GetTCPRequestRule Get /services/haproxy/configuration/tcp_request_rules/{id} Return one TCP Request Rule
HAProxyConfigurationManagementApi GetTCPRequestRules Get /services/haproxy/configuration/tcp_request_rules Return an array of all TCP Request Rules
HAProxyConfigurationManagementApi GetTCPResponseRule Get /services/haproxy/configuration/tcp_response_rules/{id} Return one TCP Response Rule
HAProxyConfigurationManagementApi GetTCPResponseRules Get /services/haproxy/configuration/tcp_response_rules Return an array of all TCP Response Rules
HAProxyConfigurationManagementApi PostHAProxyConfiguration Post /services/haproxy/configuration/raw Push new haproxy configuration
HAProxyConfigurationManagementApi ReplaceAcl Put /services/haproxy/configuration/acls/{id} Replace a ACL line
HAProxyConfigurationManagementApi ReplaceBackend Put /services/haproxy/configuration/backends/{name} Replace a backend
HAProxyConfigurationManagementApi ReplaceBackendSwitchingRule Put /services/haproxy/configuration/backend_switching_rules/{id} Replace a Backend Switching Rule
HAProxyConfigurationManagementApi ReplaceBind Put /services/haproxy/configuration/binds/{name} Replace a bind
HAProxyConfigurationManagementApi ReplaceDefaults Put /services/haproxy/configuration/defaults Replace defaults
HAProxyConfigurationManagementApi ReplaceFilter Put /services/haproxy/configuration/filters/{id} Replace a Filter
HAProxyConfigurationManagementApi ReplaceFrontend Put /services/haproxy/configuration/frontends/{name} Replace a frontend
HAProxyConfigurationManagementApi ReplaceGlobal Put /services/haproxy/configuration/global Replace global
HAProxyConfigurationManagementApi ReplaceHTTPRequestRule Put /services/haproxy/configuration/http_request_rules/{id} Replace a HTTP Request Rule
HAProxyConfigurationManagementApi ReplaceHTTPResponseRule Put /services/haproxy/configuration/http_response_rules/{id} Replace a HTTP Response Rule
HAProxyConfigurationManagementApi ReplaceLogTarget Put /services/haproxy/configuration/log_targets/{id} Replace a Log Target
HAProxyConfigurationManagementApi ReplaceServer Put /services/haproxy/configuration/servers/{name} Replace a server
HAProxyConfigurationManagementApi ReplaceServerSwitchingRule Put /services/haproxy/configuration/server_switching_rules/{id} Replace a Server Switching Rule
HAProxyConfigurationManagementApi ReplaceStickRule Put /services/haproxy/configuration/stick_rules/{id} Replace a Stick Rule
HAProxyConfigurationManagementApi ReplaceTCPRequestRule Put /services/haproxy/configuration/tcp_request_rules/{id} Replace a TCP Request Rule
HAProxyConfigurationManagementApi ReplaceTCPResponseRule Put /services/haproxy/configuration/tcp_response_rules/{id} Replace a TCP Response Rule
HTTPRequestRuleApi CreateHTTPRequestRule Post /services/haproxy/configuration/http_request_rules Add a new HTTP Request Rule
HTTPRequestRuleApi DeleteHTTPRequestRule Delete /services/haproxy/configuration/http_request_rules/{id} Delete a HTTP Request Rule
HTTPRequestRuleApi GetHTTPRequestRule Get /services/haproxy/configuration/http_request_rules/{id} Return one HTTP Request Rule
HTTPRequestRuleApi GetHTTPRequestRules Get /services/haproxy/configuration/http_request_rules Return an array of all HTTP Request Rules
HTTPRequestRuleApi ReplaceHTTPRequestRule Put /services/haproxy/configuration/http_request_rules/{id} Replace a HTTP Request Rule
HTTPResponseRuleApi CreateHTTPResponseRule Post /services/haproxy/configuration/http_response_rules Add a new HTTP Response Rule
HTTPResponseRuleApi DeleteHTTPResponseRule Delete /services/haproxy/configuration/http_response_rules/{id} Delete a HTTP Response Rule
HTTPResponseRuleApi GetHTTPResponseRule Get /services/haproxy/configuration/http_response_rules/{id} Return one HTTP Response Rule
HTTPResponseRuleApi GetHTTPResponseRules Get /services/haproxy/configuration/http_response_rules Return an array of all HTTP Response Rules
HTTPResponseRuleApi ReplaceHTTPResponseRule Put /services/haproxy/configuration/http_response_rules/{id} Replace a HTTP Response Rule
InformationApi GetHaproxyProcessInfo Get /services/haproxy/info Return HAProxy process information
InformationApi GetInfo Get /info Return API, hardware and OS information
LogTargetApi CreateLogTarget Post /services/haproxy/configuration/log_targets Add a new Log Target
LogTargetApi DeleteLogTarget Delete /services/haproxy/configuration/log_targets/{id} Delete a Log Target
LogTargetApi GetLogTarget Get /services/haproxy/configuration/log_targets/{id} Return one Log Target
LogTargetApi GetLogTargets Get /services/haproxy/configuration/log_targets Return an array of all Log Targets
LogTargetApi ReplaceLogTarget Put /services/haproxy/configuration/log_targets/{id} Replace a Log Target
ReloadsApi GetReload Get /services/haproxy/reloads/{id} Return one HAProxy reload status
ReloadsApi GetReloads Get /services/haproxy/reloads Return list of HAProxy Reloads.
ServerApi CreateServer Post /services/haproxy/configuration/servers Add a new server
ServerApi DeleteServer Delete /services/haproxy/configuration/servers/{name} Delete a server
ServerApi GetServer Get /services/haproxy/configuration/servers/{name} Return one server
ServerApi GetServers Get /services/haproxy/configuration/servers Return an array of servers
ServerApi ReplaceServer Put /services/haproxy/configuration/servers/{name} Replace a server
ServerSwitchingRuleApi CreateServerSwitchingRule Post /services/haproxy/configuration/server_switching_rules Add a new Server Switching Rule
ServerSwitchingRuleApi DeleteServerSwitchingRule Delete /services/haproxy/configuration/server_switching_rules/{id} Delete a Server Switching Rule
ServerSwitchingRuleApi GetServerSwitchingRule Get /services/haproxy/configuration/server_switching_rules/{id} Return one Server Switching Rule
ServerSwitchingRuleApi GetServerSwitchingRules Get /services/haproxy/configuration/server_switching_rules Return an array of all Server Switching Rules
ServerSwitchingRuleApi ReplaceServerSwitchingRule Put /services/haproxy/configuration/server_switching_rules/{id} Replace a Server Switching Rule
SitesApi CreateSite Post /services/haproxy/sites Add a site
SitesApi DeleteSite Delete /services/haproxy/sites/{name} Delete a site
SitesApi GetSite Get /services/haproxy/sites/{name} Return a site
SitesApi GetSites Get /services/haproxy/sites Return an array of sites
SitesApi ReplaceSite Put /services/haproxy/sites/{name} Replace a site
SpecificationApi GetSpecification Get /specification Data Plane API Specification
StatsApi GetStats Get /services/haproxy/stats/native Gets stats
StickRuleApi CreateStickRule Post /services/haproxy/configuration/stick_rules Add a new Stick Rule
StickRuleApi DeleteStickRule Delete /services/haproxy/configuration/stick_rules/{id} Delete a Stick Rule
StickRuleApi GetStickRule Get /services/haproxy/configuration/stick_rules/{id} Return one Stick Rule
StickRuleApi GetStickRules Get /services/haproxy/configuration/stick_rules Return an array of all Stick Rules
StickRuleApi ReplaceStickRule Put /services/haproxy/configuration/stick_rules/{id} Replace a Stick Rule
TCPRequestRuleApi CreateTCPRequestRule Post /services/haproxy/configuration/tcp_request_rules Add a new TCP Request Rule
TCPRequestRuleApi DeleteTCPRequestRule Delete /services/haproxy/configuration/tcp_request_rules/{id} Delete a TCP Request Rule
TCPRequestRuleApi GetTCPRequestRule Get /services/haproxy/configuration/tcp_request_rules/{id} Return one TCP Request Rule
TCPRequestRuleApi GetTCPRequestRules Get /services/haproxy/configuration/tcp_request_rules Return an array of all TCP Request Rules
TCPRequestRuleApi ReplaceTCPRequestRule Put /services/haproxy/configuration/tcp_request_rules/{id} Replace a TCP Request Rule
TCPResponseRuleApi CreateTCPResponseRule Post /services/haproxy/configuration/tcp_response_rules Add a new TCP Response Rule
TCPResponseRuleApi DeleteTCPResponseRule Delete /services/haproxy/configuration/tcp_response_rules/{id} Delete a TCP Response Rule
TCPResponseRuleApi GetTCPResponseRule Get /services/haproxy/configuration/tcp_response_rules/{id} Return one TCP Response Rule
TCPResponseRuleApi GetTCPResponseRules Get /services/haproxy/configuration/tcp_response_rules Return an array of all TCP Response Rules
TCPResponseRuleApi ReplaceTCPResponseRule Put /services/haproxy/configuration/tcp_response_rules/{id} Replace a TCP Response Rule
TransactionsApi CommitTransaction Put /services/haproxy/transactions/{id} Commit transaction
TransactionsApi DeleteTransaction Delete /services/haproxy/transactions/{id} Delete a transaction
TransactionsApi GetTransaction Get /services/haproxy/transactions/{id} Return one HAProxy configuration transactions
TransactionsApi GetTransactions Get /services/haproxy/transactions Return list of HAProxy configuration transactions.
TransactionsApi StartTransaction Post /services/haproxy/transactions Start a new transaction

Documentation For Models

Documentation For Authorization

basic_auth

  • Type: HTTP basic authentication

Example

auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{
    UserName: "username",
    Password: "password",
})
r, err := client.Service.Operation(auth, args)

Author

support@haproxy.com

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ContextOAuth2 takes an oauth2.TokenSource as authentication for the request.
	ContextOAuth2 = contextKey("token")

	// ContextBasicAuth takes BasicAuth as authentication for the request.
	ContextBasicAuth = contextKey("basic")

	// ContextAccessToken takes a string oauth2 access token as authentication for the request.
	ContextAccessToken = contextKey("accesstoken")

	// ContextAPIKey takes an APIKey as authentication for the request
	ContextAPIKey = contextKey("apikey")
)

Functions

func CacheExpires

func CacheExpires(r *http.Response) time.Time

CacheExpires helper function to determine remaining time before repeating a request.

Types

type ACLApiService

type ACLApiService service

ACLApiService ACLApi service

func (*ACLApiService) CreateAcl

func (a *ACLApiService) CreateAcl(ctx _context.Context, parentName string, parentType string, acl Acl, localVarOptionals *CreateAclOpts) (Acl, *_nethttp.Response, error)

CreateAcl Add a new ACL line Adds a new ACL line of the specified type in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param parentName Parent name
  • @param parentType Parent type
  • @param acl
  • @param optional nil or *CreateAclOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return Acl

func (*ACLApiService) DeleteAcl

func (a *ACLApiService) DeleteAcl(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *DeleteAclOpts) (*_nethttp.Response, error)

DeleteAcl Delete a ACL line Deletes a ACL line configuration by it's ID from the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id ACL line ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *DeleteAclOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

func (*ACLApiService) GetAcl

func (a *ACLApiService) GetAcl(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *GetAclOpts) (InlineResponse20031, *_nethttp.Response, error)

GetAcl Return one ACL line Returns one ACL line configuration by it's ID in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id ACL line ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *GetAclOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20031

func (*ACLApiService) GetAcls

func (a *ACLApiService) GetAcls(ctx _context.Context, parentName string, parentType string, localVarOptionals *GetAclsOpts) (InlineResponse20030, *_nethttp.Response, error)

GetAcls Return an array of all ACL lines Returns all ACL lines that are configured in specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *GetAclsOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20030

func (*ACLApiService) ReplaceAcl

func (a *ACLApiService) ReplaceAcl(ctx _context.Context, id int32, parentName string, parentType string, acl Acl, localVarOptionals *ReplaceAclOpts) (Acl, *_nethttp.Response, error)

ReplaceAcl Replace a ACL line Replaces a ACL line configuration by it's ID in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id ACL line ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param acl
  • @param optional nil or *ReplaceAclOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return Acl

type APIClient

type APIClient struct {
	ACLApi *ACLApiService

	BackendApi *BackendApiService

	BackendOptionsApi *BackendOptionsApiService

	BackendSwitchingRuleApi *BackendSwitchingRuleApiService

	BindApi *BindApiService

	ConfigurationApi *ConfigurationApiService

	DefaultsApi *DefaultsApiService

	DiscoveryApi *DiscoveryApiService

	FilterApi *FilterApiService

	FrontendApi *FrontendApiService

	FrontendOptionsApi *FrontendOptionsApiService

	GlobalApi *GlobalApiService

	HAProxyConfigurationManagementApi *HAProxyConfigurationManagementApiService

	HTTPRequestRuleApi *HTTPRequestRuleApiService

	HTTPResponseRuleApi *HTTPResponseRuleApiService

	InformationApi *InformationApiService

	LogTargetApi *LogTargetApiService

	ReloadsApi *ReloadsApiService

	ServerApi *ServerApiService

	ServerSwitchingRuleApi *ServerSwitchingRuleApiService

	SitesApi *SitesApiService

	SpecificationApi *SpecificationApiService

	StatsApi *StatsApiService

	StickRuleApi *StickRuleApiService

	TCPRequestRuleApi *TCPRequestRuleApiService

	TCPResponseRuleApi *TCPResponseRuleApiService

	TransactionsApi *TransactionsApiService
	// contains filtered or unexported fields
}

APIClient manages communication with the HAProxy Data Plane API API v1.2 In most cases there should be only one, shared, APIClient.

func NewAPIClient

func NewAPIClient(cfg *Configuration) *APIClient

NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.

func (*APIClient) ChangeBasePath

func (c *APIClient) ChangeBasePath(path string)

ChangeBasePath changes base path to allow switching to mocks

func (*APIClient) GetConfig

func (c *APIClient) GetConfig() *Configuration

Allow modification of underlying config for alternate implementations and testing Caution: modifying the configuration while live can cause data races and potentially unwanted behavior

type APIKey

type APIKey struct {
	Key    string
	Prefix string
}

APIKey provides API key based authentication to a request passed via context using ContextAPIKey

type APIResponse

type APIResponse struct {
	*http.Response `json:"-"`
	Message        string `json:"message,omitempty"`
	// Operation is the name of the OpenAPI operation.
	Operation string `json:"operation,omitempty"`
	// RequestURL is the request URL. This value is always available, even if the
	// embedded *http.Response is nil.
	RequestURL string `json:"url,omitempty"`
	// Method is the HTTP method used for the request.  This value is always
	// available, even if the embedded *http.Response is nil.
	Method string `json:"method,omitempty"`
	// Payload holds the contents of the response body (which may be nil or empty).
	// This is provided here as the raw response.Body() reader will have already
	// been drained.
	Payload []byte `json:"-"`
}

APIResponse stores the API response returned by the server.

func NewAPIResponse

func NewAPIResponse(r *http.Response) *APIResponse

NewAPIResponse returns a new APIResonse object.

func NewAPIResponseWithError

func NewAPIResponseWithError(errorMessage string) *APIResponse

NewAPIResponseWithError returns a new APIResponse object with the provided error message.

type Acl

type Acl struct {
	AclName   string `json:"acl_name"`
	Criterion string `json:"criterion"`
	Id        *int32 `json:"id"`
	Value     string `json:"value"`
}

Acl The use of Access Control Lists (ACL) provides a flexible solution to perform content switching and generally to take decisions based on content extracted from the request, the response or any environmental status.

type Backend

type Backend struct {
	AdvCheck             string             `json:"adv_check,omitempty"`
	Balance              Balance            `json:"balance,omitempty"`
	CheckTimeout         *int32             `json:"check_timeout,omitempty"`
	ConnectTimeout       *int32             `json:"connect_timeout,omitempty"`
	Cookie               string             `json:"cookie,omitempty"`
	DefaultServer        *DefaultServer     `json:"default_server,omitempty"`
	ExternalCheck        string             `json:"external_check,omitempty"`
	ExternalCheckCommand string             `json:"external_check_command,omitempty"`
	ExternalCheckPath    string             `json:"external_check_path,omitempty"`
	Forwardfor           *Forwardfor        `json:"forwardfor,omitempty"`
	HashType             *BackendHashType   `json:"hash_type,omitempty"`
	HttpUseHtx           string             `json:"http-use-htx,omitempty"`
	HttpConnectionMode   string             `json:"http_connection_mode,omitempty"`
	HttpKeepAliveTimeout *int32             `json:"http_keep_alive_timeout,omitempty"`
	HttpPretendKeepalive string             `json:"http_pretend_keepalive,omitempty"`
	HttpRequestTimeout   *int32             `json:"http_request_timeout,omitempty"`
	Httpchk              *Httpchk           `json:"httpchk,omitempty"`
	LogTag               string             `json:"log_tag,omitempty"`
	Mode                 string             `json:"mode,omitempty"`
	Name                 string             `json:"name"`
	QueueTimeout         *int32             `json:"queue_timeout,omitempty"`
	Redispatch           *Redispatch        `json:"redispatch,omitempty"`
	Retries              *int32             `json:"retries,omitempty"`
	ServerTimeout        *int32             `json:"server_timeout,omitempty"`
	StickTable           *BackendStickTable `json:"stick_table,omitempty"`
}

Backend HAProxy backend configuration

type BackendApiService

type BackendApiService service

BackendApiService BackendApi service

func (*BackendApiService) CreateBackend

func (a *BackendApiService) CreateBackend(ctx _context.Context, backend Backend, localVarOptionals *CreateBackendOpts) (Backend, *_nethttp.Response, error)

CreateBackend Add a backend Adds a new backend to the configuration file.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param backend
  • @param optional nil or *CreateBackendOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return Backend

func (*BackendApiService) DeleteBackend

func (a *BackendApiService) DeleteBackend(ctx _context.Context, name string, localVarOptionals *DeleteBackendOpts) (*_nethttp.Response, error)

DeleteBackend Delete a backend Deletes a frontend from the configuration by it's name.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param name Backend name
  • @param optional nil or *DeleteBackendOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

func (*BackendApiService) GetBackend

func (a *BackendApiService) GetBackend(ctx _context.Context, name string, localVarOptionals *GetBackendOpts) (InlineResponse2007, *_nethttp.Response, error)

GetBackend Return a backend Returns one backend configuration by it's name.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param name Backend name
  • @param optional nil or *GetBackendOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse2007

func (*BackendApiService) GetBackends

func (a *BackendApiService) GetBackends(ctx _context.Context, localVarOptionals *GetBackendsOpts) (InlineResponse2006, *_nethttp.Response, error)

GetBackends Return an array of backends Returns an array of all configured backends.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param optional nil or *GetBackendsOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse2006

func (*BackendApiService) ReplaceBackend

func (a *BackendApiService) ReplaceBackend(ctx _context.Context, name string, backend Backend, localVarOptionals *ReplaceBackendOpts) (Backend, *_nethttp.Response, error)

ReplaceBackend Replace a backend Replaces a backend configuration by it's name.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param name Backend name
  • @param backend
  • @param optional nil or *ReplaceBackendOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return Backend

type BackendHashType

type BackendHashType struct {
	Function string `json:"function,omitempty"`
	Method   string `json:"method,omitempty"`
	Modifier string `json:"modifier,omitempty"`
}

BackendHashType struct for BackendHashType

type BackendOptionsApiService

type BackendOptionsApiService service

BackendOptionsApiService BackendOptionsApi service

func (*BackendOptionsApiService) CreateAcl

func (a *BackendOptionsApiService) CreateAcl(ctx _context.Context, parentName string, parentType string, acl Acl, localVarOptionals *CreateAclOpts) (Acl, *_nethttp.Response, error)

CreateAcl Add a new ACL line Adds a new ACL line of the specified type in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param parentName Parent name
  • @param parentType Parent type
  • @param acl
  • @param optional nil or *CreateAclOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return Acl

func (*BackendOptionsApiService) CreateFilter

func (a *BackendOptionsApiService) CreateFilter(ctx _context.Context, parentName string, parentType string, filter Filter, localVarOptionals *CreateFilterOpts) (Filter, *_nethttp.Response, error)

CreateFilter Add a new Filter Adds a new Filter of the specified type in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param parentName Parent name
  • @param parentType Parent type
  • @param filter
  • @param optional nil or *CreateFilterOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return Filter

func (*BackendOptionsApiService) CreateHTTPRequestRule

func (a *BackendOptionsApiService) CreateHTTPRequestRule(ctx _context.Context, parentName string, parentType string, httpRequestRule HttpRequestRule, localVarOptionals *CreateHTTPRequestRuleOpts) (HttpRequestRule, *_nethttp.Response, error)

CreateHTTPRequestRule Add a new HTTP Request Rule Adds a new HTTP Request Rule of the specified type in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param parentName Parent name
  • @param parentType Parent type
  • @param httpRequestRule
  • @param optional nil or *CreateHTTPRequestRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return HttpRequestRule

func (*BackendOptionsApiService) CreateHTTPResponseRule

func (a *BackendOptionsApiService) CreateHTTPResponseRule(ctx _context.Context, parentName string, parentType string, httpResponseRule HttpResponseRule, localVarOptionals *CreateHTTPResponseRuleOpts) (HttpResponseRule, *_nethttp.Response, error)

CreateHTTPResponseRule Add a new HTTP Response Rule Adds a new HTTP Response Rule of the specified type in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param parentName Parent name
  • @param parentType Parent type
  • @param httpResponseRule
  • @param optional nil or *CreateHTTPResponseRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return HttpResponseRule

func (*BackendOptionsApiService) CreateLogTarget

func (a *BackendOptionsApiService) CreateLogTarget(ctx _context.Context, parentName string, parentType string, logTarget LogTarget, localVarOptionals *CreateLogTargetOpts) (LogTarget, *_nethttp.Response, error)

CreateLogTarget Add a new Log Target Adds a new Log Target of the specified type in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param parentName Parent name
  • @param parentType Parent type
  • @param logTarget
  • @param optional nil or *CreateLogTargetOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return LogTarget

func (*BackendOptionsApiService) CreateServer

func (a *BackendOptionsApiService) CreateServer(ctx _context.Context, backend string, server Server, localVarOptionals *CreateServerOpts) (Server, *_nethttp.Response, error)

CreateServer Add a new server Adds a new server in the specified backend in the configuration file.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param backend Parent backend name
  • @param server
  • @param optional nil or *CreateServerOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return Server

func (*BackendOptionsApiService) CreateServerSwitchingRule

func (a *BackendOptionsApiService) CreateServerSwitchingRule(ctx _context.Context, backend string, serverSwitchingRule ServerSwitchingRule, localVarOptionals *CreateServerSwitchingRuleOpts) (ServerSwitchingRule, *_nethttp.Response, error)

CreateServerSwitchingRule Add a new Server Switching Rule Adds a new Server Switching Rule of the specified type in the specified backend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param backend Backend name
  • @param serverSwitchingRule
  • @param optional nil or *CreateServerSwitchingRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return ServerSwitchingRule

func (*BackendOptionsApiService) CreateStickRule

func (a *BackendOptionsApiService) CreateStickRule(ctx _context.Context, backend string, stickRule StickRule, localVarOptionals *CreateStickRuleOpts) (StickRule, *_nethttp.Response, error)

CreateStickRule Add a new Stick Rule Adds a new Stick Rule of the specified type in the specified backend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param backend Backend name
  • @param stickRule
  • @param optional nil or *CreateStickRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return StickRule

func (*BackendOptionsApiService) CreateTCPRequestRule

func (a *BackendOptionsApiService) CreateTCPRequestRule(ctx _context.Context, parentName string, parentType string, tcpRequestRule TcpRequestRule, localVarOptionals *CreateTCPRequestRuleOpts) (TcpRequestRule, *_nethttp.Response, error)

CreateTCPRequestRule Add a new TCP Request Rule Adds a new TCP Request Rule of the specified type in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param parentName Parent name
  • @param parentType Parent type
  • @param tcpRequestRule
  • @param optional nil or *CreateTCPRequestRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return TcpRequestRule

func (*BackendOptionsApiService) CreateTCPResponseRule

func (a *BackendOptionsApiService) CreateTCPResponseRule(ctx _context.Context, backend string, tcpResponseRule TcpResponseRule, localVarOptionals *CreateTCPResponseRuleOpts) (TcpResponseRule, *_nethttp.Response, error)

CreateTCPResponseRule Add a new TCP Response Rule Adds a new TCP Response Rule of the specified type in the specified backend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param backend Parent backend name
  • @param tcpResponseRule
  • @param optional nil or *CreateTCPResponseRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return TcpResponseRule

func (*BackendOptionsApiService) DeleteAcl

func (a *BackendOptionsApiService) DeleteAcl(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *DeleteAclOpts) (*_nethttp.Response, error)

DeleteAcl Delete a ACL line Deletes a ACL line configuration by it's ID from the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id ACL line ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *DeleteAclOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

func (*BackendOptionsApiService) DeleteFilter

func (a *BackendOptionsApiService) DeleteFilter(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *DeleteFilterOpts) (*_nethttp.Response, error)

DeleteFilter Delete a Filter Deletes a Filter configuration by it's ID from the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id Filter ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *DeleteFilterOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

func (*BackendOptionsApiService) DeleteHTTPRequestRule

func (a *BackendOptionsApiService) DeleteHTTPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *DeleteHTTPRequestRuleOpts) (*_nethttp.Response, error)

DeleteHTTPRequestRule Delete a HTTP Request Rule Deletes a HTTP Request Rule configuration by it's ID from the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id HTTP Request Rule ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *DeleteHTTPRequestRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

func (*BackendOptionsApiService) DeleteHTTPResponseRule

func (a *BackendOptionsApiService) DeleteHTTPResponseRule(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *DeleteHTTPResponseRuleOpts) (*_nethttp.Response, error)

DeleteHTTPResponseRule Delete a HTTP Response Rule Deletes a HTTP Response Rule configuration by it's ID from the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id HTTP Response Rule ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *DeleteHTTPResponseRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

func (*BackendOptionsApiService) DeleteLogTarget

func (a *BackendOptionsApiService) DeleteLogTarget(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *DeleteLogTargetOpts) (*_nethttp.Response, error)

DeleteLogTarget Delete a Log Target Deletes a Log Target configuration by it's ID from the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id Log Target ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *DeleteLogTargetOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

func (*BackendOptionsApiService) DeleteServer

func (a *BackendOptionsApiService) DeleteServer(ctx _context.Context, name string, backend string, localVarOptionals *DeleteServerOpts) (*_nethttp.Response, error)

DeleteServer Delete a server Deletes a server configuration by it's name in the specified backend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param name Server name
  • @param backend Parent backend name
  • @param optional nil or *DeleteServerOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

func (*BackendOptionsApiService) DeleteServerSwitchingRule

func (a *BackendOptionsApiService) DeleteServerSwitchingRule(ctx _context.Context, id int32, backend string, localVarOptionals *DeleteServerSwitchingRuleOpts) (*_nethttp.Response, error)

DeleteServerSwitchingRule Delete a Server Switching Rule Deletes a Server Switching Rule configuration by it's ID from the specified backend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id Switching Rule ID
  • @param backend Backend name
  • @param optional nil or *DeleteServerSwitchingRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

func (*BackendOptionsApiService) DeleteStickRule

func (a *BackendOptionsApiService) DeleteStickRule(ctx _context.Context, id int32, backend string, localVarOptionals *DeleteStickRuleOpts) (*_nethttp.Response, error)

DeleteStickRule Delete a Stick Rule Deletes a Stick Rule configuration by it's ID from the specified backend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id Stick Rule ID
  • @param backend Backend name
  • @param optional nil or *DeleteStickRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

func (*BackendOptionsApiService) DeleteTCPRequestRule

func (a *BackendOptionsApiService) DeleteTCPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *DeleteTCPRequestRuleOpts) (*_nethttp.Response, error)

DeleteTCPRequestRule Delete a TCP Request Rule Deletes a TCP Request Rule configuration by it's ID from the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id TCP Request Rule ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *DeleteTCPRequestRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

func (*BackendOptionsApiService) DeleteTCPResponseRule

func (a *BackendOptionsApiService) DeleteTCPResponseRule(ctx _context.Context, id int32, backend string, localVarOptionals *DeleteTCPResponseRuleOpts) (*_nethttp.Response, error)

DeleteTCPResponseRule Delete a TCP Response Rule Deletes a TCP Response Rule configuration by it's ID from the specified backend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id TCP Response Rule ID
  • @param backend Parent backend name
  • @param optional nil or *DeleteTCPResponseRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

func (*BackendOptionsApiService) GetAcl

func (a *BackendOptionsApiService) GetAcl(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *GetAclOpts) (InlineResponse20031, *_nethttp.Response, error)

GetAcl Return one ACL line Returns one ACL line configuration by it's ID in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id ACL line ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *GetAclOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20031

func (*BackendOptionsApiService) GetAcls

func (a *BackendOptionsApiService) GetAcls(ctx _context.Context, parentName string, parentType string, localVarOptionals *GetAclsOpts) (InlineResponse20030, *_nethttp.Response, error)

GetAcls Return an array of all ACL lines Returns all ACL lines that are configured in specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *GetAclsOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20030

func (*BackendOptionsApiService) GetFilter

func (a *BackendOptionsApiService) GetFilter(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *GetFilterOpts) (InlineResponse20025, *_nethttp.Response, error)

GetFilter Return one Filter Returns one Filter configuration by it's ID in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id Filter ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *GetFilterOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20025

func (*BackendOptionsApiService) GetFilters

func (a *BackendOptionsApiService) GetFilters(ctx _context.Context, parentName string, parentType string, localVarOptionals *GetFiltersOpts) (InlineResponse20024, *_nethttp.Response, error)

GetFilters Return an array of all Filters Returns all Filters that are configured in specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *GetFiltersOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20024

func (*BackendOptionsApiService) GetHTTPRequestRule

func (a *BackendOptionsApiService) GetHTTPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *GetHTTPRequestRuleOpts) (InlineResponse20013, *_nethttp.Response, error)

GetHTTPRequestRule Return one HTTP Request Rule Returns one HTTP Request Rule configuration by it's ID in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id HTTP Request Rule ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *GetHTTPRequestRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20013

func (*BackendOptionsApiService) GetHTTPRequestRules

func (a *BackendOptionsApiService) GetHTTPRequestRules(ctx _context.Context, parentName string, parentType string, localVarOptionals *GetHTTPRequestRulesOpts) (InlineResponse20012, *_nethttp.Response, error)

GetHTTPRequestRules Return an array of all HTTP Request Rules Returns all HTTP Request Rules that are configured in specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *GetHTTPRequestRulesOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20012

func (*BackendOptionsApiService) GetHTTPResponseRule

func (a *BackendOptionsApiService) GetHTTPResponseRule(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *GetHTTPResponseRuleOpts) (InlineResponse20015, *_nethttp.Response, error)

GetHTTPResponseRule Return one HTTP Response Rule Returns one HTTP Response Rule configuration by it's ID in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id HTTP Response Rule ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *GetHTTPResponseRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20015

func (*BackendOptionsApiService) GetHTTPResponseRules

func (a *BackendOptionsApiService) GetHTTPResponseRules(ctx _context.Context, parentName string, parentType string, localVarOptionals *GetHTTPResponseRulesOpts) (InlineResponse20014, *_nethttp.Response, error)

GetHTTPResponseRules Return an array of all HTTP Response Rules Returns all HTTP Response Rules that are configured in specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *GetHTTPResponseRulesOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20014

func (*BackendOptionsApiService) GetLogTarget

func (a *BackendOptionsApiService) GetLogTarget(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *GetLogTargetOpts) (InlineResponse20029, *_nethttp.Response, error)

GetLogTarget Return one Log Target Returns one Log Target configuration by it's ID in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id Log Target ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *GetLogTargetOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20029

func (*BackendOptionsApiService) GetLogTargets

func (a *BackendOptionsApiService) GetLogTargets(ctx _context.Context, parentName string, parentType string, localVarOptionals *GetLogTargetsOpts) (InlineResponse20028, *_nethttp.Response, error)

GetLogTargets Return an array of all Log Targets Returns all Log Targets that are configured in specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *GetLogTargetsOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20028

func (*BackendOptionsApiService) GetServer

func (a *BackendOptionsApiService) GetServer(ctx _context.Context, name string, backend string, localVarOptionals *GetServerOpts) (InlineResponse20011, *_nethttp.Response, error)

GetServer Return one server Returns one server configuration by it's name in the specified backend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param name Server name
  • @param backend Parent backend name
  • @param optional nil or *GetServerOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20011

func (*BackendOptionsApiService) GetServerSwitchingRule

func (a *BackendOptionsApiService) GetServerSwitchingRule(ctx _context.Context, id int32, backend string, localVarOptionals *GetServerSwitchingRuleOpts) (InlineResponse20023, *_nethttp.Response, error)

GetServerSwitchingRule Return one Server Switching Rule Returns one Server Switching Rule configuration by it's ID in the specified backend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id Switching Rule ID
  • @param backend Backend name
  • @param optional nil or *GetServerSwitchingRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20023

func (*BackendOptionsApiService) GetServerSwitchingRules

func (a *BackendOptionsApiService) GetServerSwitchingRules(ctx _context.Context, backend string, localVarOptionals *GetServerSwitchingRulesOpts) (InlineResponse20022, *_nethttp.Response, error)

GetServerSwitchingRules Return an array of all Server Switching Rules Returns all Backend Switching Rules that are configured in specified backend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param backend Backend name
  • @param optional nil or *GetServerSwitchingRulesOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20022

func (*BackendOptionsApiService) GetServers

func (a *BackendOptionsApiService) GetServers(ctx _context.Context, backend string, localVarOptionals *GetServersOpts) (InlineResponse20010, *_nethttp.Response, error)

GetServers Return an array of servers Returns an array of all servers that are configured in specified backend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param backend Parent backend name
  • @param optional nil or *GetServersOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20010

func (*BackendOptionsApiService) GetStickRule

func (a *BackendOptionsApiService) GetStickRule(ctx _context.Context, id int32, backend string, localVarOptionals *GetStickRuleOpts) (InlineResponse20027, *_nethttp.Response, error)

GetStickRule Return one Stick Rule Returns one Stick Rule configuration by it's ID in the specified backend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id Stick Rule ID
  • @param backend Backend name
  • @param optional nil or *GetStickRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20027

func (*BackendOptionsApiService) GetStickRules

func (a *BackendOptionsApiService) GetStickRules(ctx _context.Context, backend string, localVarOptionals *GetStickRulesOpts) (InlineResponse20026, *_nethttp.Response, error)

GetStickRules Return an array of all Stick Rules Returns all Stick Rules that are configured in specified backend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param backend Backend name
  • @param optional nil or *GetStickRulesOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20026

func (*BackendOptionsApiService) GetTCPRequestRule

func (a *BackendOptionsApiService) GetTCPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *GetTCPRequestRuleOpts) (InlineResponse20017, *_nethttp.Response, error)

GetTCPRequestRule Return one TCP Request Rule Returns one TCP Request Rule configuration by it's ID in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id TCP Request Rule ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *GetTCPRequestRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20017

func (*BackendOptionsApiService) GetTCPRequestRules

func (a *BackendOptionsApiService) GetTCPRequestRules(ctx _context.Context, parentName string, parentType string, localVarOptionals *GetTCPRequestRulesOpts) (InlineResponse20016, *_nethttp.Response, error)

GetTCPRequestRules Return an array of all TCP Request Rules Returns all TCP Request Rules that are configured in specified parent and parent type.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *GetTCPRequestRulesOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20016

func (*BackendOptionsApiService) GetTCPResponseRule

func (a *BackendOptionsApiService) GetTCPResponseRule(ctx _context.Context, id int32, backend string, localVarOptionals *GetTCPResponseRuleOpts) (InlineResponse20019, *_nethttp.Response, error)

GetTCPResponseRule Return one TCP Response Rule Returns one TCP Response Rule configuration by it's ID in the specified backend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id TCP Response Rule ID
  • @param backend Parent backend name
  • @param optional nil or *GetTCPResponseRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20019

func (*BackendOptionsApiService) GetTCPResponseRules

func (a *BackendOptionsApiService) GetTCPResponseRules(ctx _context.Context, backend string, localVarOptionals *GetTCPResponseRulesOpts) (InlineResponse20018, *_nethttp.Response, error)

GetTCPResponseRules Return an array of all TCP Response Rules Returns all TCP Response Rules that are configured in specified backend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param backend Parent backend name
  • @param optional nil or *GetTCPResponseRulesOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20018

func (*BackendOptionsApiService) ReplaceAcl

func (a *BackendOptionsApiService) ReplaceAcl(ctx _context.Context, id int32, parentName string, parentType string, acl Acl, localVarOptionals *ReplaceAclOpts) (Acl, *_nethttp.Response, error)

ReplaceAcl Replace a ACL line Replaces a ACL line configuration by it's ID in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id ACL line ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param acl
  • @param optional nil or *ReplaceAclOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return Acl

func (*BackendOptionsApiService) ReplaceFilter

func (a *BackendOptionsApiService) ReplaceFilter(ctx _context.Context, id int32, parentName string, parentType string, filter Filter, localVarOptionals *ReplaceFilterOpts) (Filter, *_nethttp.Response, error)

ReplaceFilter Replace a Filter Replaces a Filter configuration by it's ID in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id Filter ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param filter
  • @param optional nil or *ReplaceFilterOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return Filter

func (*BackendOptionsApiService) ReplaceHTTPRequestRule

func (a *BackendOptionsApiService) ReplaceHTTPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, httpRequestRule HttpRequestRule, localVarOptionals *ReplaceHTTPRequestRuleOpts) (HttpRequestRule, *_nethttp.Response, error)

ReplaceHTTPRequestRule Replace a HTTP Request Rule Replaces a HTTP Request Rule configuration by it's ID in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id HTTP Request Rule ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param httpRequestRule
  • @param optional nil or *ReplaceHTTPRequestRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return HttpRequestRule

func (*BackendOptionsApiService) ReplaceHTTPResponseRule

func (a *BackendOptionsApiService) ReplaceHTTPResponseRule(ctx _context.Context, id int32, parentName string, parentType string, httpResponseRule HttpResponseRule, localVarOptionals *ReplaceHTTPResponseRuleOpts) (HttpResponseRule, *_nethttp.Response, error)

ReplaceHTTPResponseRule Replace a HTTP Response Rule Replaces a HTTP Response Rule configuration by it's ID in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id HTTP Response Rule ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param httpResponseRule
  • @param optional nil or *ReplaceHTTPResponseRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return HttpResponseRule

func (*BackendOptionsApiService) ReplaceLogTarget

func (a *BackendOptionsApiService) ReplaceLogTarget(ctx _context.Context, id int32, parentName string, parentType string, logTarget LogTarget, localVarOptionals *ReplaceLogTargetOpts) (LogTarget, *_nethttp.Response, error)

ReplaceLogTarget Replace a Log Target Replaces a Log Target configuration by it's ID in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id Log Target ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param logTarget
  • @param optional nil or *ReplaceLogTargetOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return LogTarget

func (*BackendOptionsApiService) ReplaceServer

func (a *BackendOptionsApiService) ReplaceServer(ctx _context.Context, name string, backend string, server Server, localVarOptionals *ReplaceServerOpts) (Server, *_nethttp.Response, error)

ReplaceServer Replace a server Replaces a server configuration by it's name in the specified backend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param name Server name
  • @param backend Parent backend name
  • @param server
  • @param optional nil or *ReplaceServerOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return Server

func (*BackendOptionsApiService) ReplaceServerSwitchingRule

func (a *BackendOptionsApiService) ReplaceServerSwitchingRule(ctx _context.Context, id int32, backend string, serverSwitchingRule ServerSwitchingRule, localVarOptionals *ReplaceServerSwitchingRuleOpts) (ServerSwitchingRule, *_nethttp.Response, error)

ReplaceServerSwitchingRule Replace a Server Switching Rule Replaces a Server Switching Rule configuration by it's ID in the specified backend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id Switching Rule ID
  • @param backend Backend name
  • @param serverSwitchingRule
  • @param optional nil or *ReplaceServerSwitchingRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return ServerSwitchingRule

func (*BackendOptionsApiService) ReplaceStickRule

func (a *BackendOptionsApiService) ReplaceStickRule(ctx _context.Context, id int32, backend string, stickRule StickRule, localVarOptionals *ReplaceStickRuleOpts) (StickRule, *_nethttp.Response, error)

ReplaceStickRule Replace a Stick Rule Replaces a Stick Rule configuration by it's ID in the specified backend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id Stick Rule ID
  • @param backend Backend name
  • @param stickRule
  • @param optional nil or *ReplaceStickRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return StickRule

func (*BackendOptionsApiService) ReplaceTCPRequestRule

func (a *BackendOptionsApiService) ReplaceTCPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, tcpRequestRule TcpRequestRule, localVarOptionals *ReplaceTCPRequestRuleOpts) (TcpRequestRule, *_nethttp.Response, error)

ReplaceTCPRequestRule Replace a TCP Request Rule Replaces a TCP Request Rule configuration by it's ID in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id TCP Request Rule ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param tcpRequestRule
  • @param optional nil or *ReplaceTCPRequestRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return TcpRequestRule

func (*BackendOptionsApiService) ReplaceTCPResponseRule

func (a *BackendOptionsApiService) ReplaceTCPResponseRule(ctx _context.Context, id int32, backend string, tcpResponseRule TcpResponseRule, localVarOptionals *ReplaceTCPResponseRuleOpts) (TcpResponseRule, *_nethttp.Response, error)

ReplaceTCPResponseRule Replace a TCP Response Rule Replaces a TCP Response Rule configuration by it's ID in the specified backend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id TCP Response Rule ID
  • @param backend Parent backend name
  • @param tcpResponseRule
  • @param optional nil or *ReplaceTCPResponseRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return TcpResponseRule

type BackendStickTable

type BackendStickTable struct {
	Expire  *int32 `json:"expire,omitempty"`
	Keylen  *int32 `json:"keylen,omitempty"`
	Nopurge bool   `json:"nopurge,omitempty"`
	Peers   string `json:"peers,omitempty"`
	Size    *int32 `json:"size,omitempty"`
	Store   string `json:"store,omitempty"`
	Type    string `json:"type,omitempty"`
}

BackendStickTable struct for BackendStickTable

type BackendSwitchingRule

type BackendSwitchingRule struct {
	Cond     string `json:"cond,omitempty"`
	CondTest string `json:"cond_test,omitempty"`
	Id       *int32 `json:"id"`
	Name     string `json:"name"`
}

BackendSwitchingRule HAProxy backend switching rule configuration (corresponds to use_backend directive)

type BackendSwitchingRuleApiService

type BackendSwitchingRuleApiService service

BackendSwitchingRuleApiService BackendSwitchingRuleApi service

func (*BackendSwitchingRuleApiService) CreateBackendSwitchingRule

func (a *BackendSwitchingRuleApiService) CreateBackendSwitchingRule(ctx _context.Context, frontend string, backendSwitchingRule BackendSwitchingRule, localVarOptionals *CreateBackendSwitchingRuleOpts) (BackendSwitchingRule, *_nethttp.Response, error)

CreateBackendSwitchingRule Add a new Backend Switching Rule Adds a new Backend Switching Rule of the specified type in the specified frontend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param frontend Frontend name
  • @param backendSwitchingRule
  • @param optional nil or *CreateBackendSwitchingRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return BackendSwitchingRule

func (*BackendSwitchingRuleApiService) DeleteBackendSwitchingRule

func (a *BackendSwitchingRuleApiService) DeleteBackendSwitchingRule(ctx _context.Context, id int32, frontend string, localVarOptionals *DeleteBackendSwitchingRuleOpts) (*_nethttp.Response, error)

DeleteBackendSwitchingRule Delete a Backend Switching Rule Deletes a Backend Switching Rule configuration by it's ID from the specified frontend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id Switching Rule ID
  • @param frontend Frontend name
  • @param optional nil or *DeleteBackendSwitchingRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

func (*BackendSwitchingRuleApiService) GetBackendSwitchingRule

func (a *BackendSwitchingRuleApiService) GetBackendSwitchingRule(ctx _context.Context, id int32, frontend string, localVarOptionals *GetBackendSwitchingRuleOpts) (InlineResponse20021, *_nethttp.Response, error)

GetBackendSwitchingRule Return one Backend Switching Rule Returns one Backend Switching Rule configuration by it's ID in the specified frontend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id Switching Rule ID
  • @param frontend Frontend name
  • @param optional nil or *GetBackendSwitchingRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20021

func (*BackendSwitchingRuleApiService) GetBackendSwitchingRules

func (a *BackendSwitchingRuleApiService) GetBackendSwitchingRules(ctx _context.Context, frontend string, localVarOptionals *GetBackendSwitchingRulesOpts) (InlineResponse20020, *_nethttp.Response, error)

GetBackendSwitchingRules Return an array of all Backend Switching Rules Returns all Backend Switching Rules that are configured in specified frontend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param frontend Frontend name
  • @param optional nil or *GetBackendSwitchingRulesOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20020

func (*BackendSwitchingRuleApiService) ReplaceBackendSwitchingRule

func (a *BackendSwitchingRuleApiService) ReplaceBackendSwitchingRule(ctx _context.Context, id int32, frontend string, backendSwitchingRule BackendSwitchingRule, localVarOptionals *ReplaceBackendSwitchingRuleOpts) (BackendSwitchingRule, *_nethttp.Response, error)

ReplaceBackendSwitchingRule Replace a Backend Switching Rule Replaces a Backend Switching Rule configuration by it's ID in the specified frontend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id Switching Rule ID
  • @param frontend Frontend name
  • @param backendSwitchingRule
  • @param optional nil or *ReplaceBackendSwitchingRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return BackendSwitchingRule

type Balance

type Balance struct {
	Algorithm string   `json:"algorithm,omitempty"`
	Arguments []string `json:"arguments,omitempty"`
}

Balance struct for Balance

type BasicAuth

type BasicAuth struct {
	UserName string `json:"userName,omitempty"`
	Password string `json:"password,omitempty"`
}

BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth

type Bind

type Bind struct {
	AcceptProxy    bool   `json:"accept_proxy,omitempty"`
	Address        string `json:"address,omitempty"`
	Alpn           string `json:"alpn,omitempty"`
	Name           string `json:"name"`
	Port           *int32 `json:"port,omitempty"`
	Process        string `json:"process,omitempty"`
	Ssl            bool   `json:"ssl,omitempty"`
	SslCafile      string `json:"ssl_cafile,omitempty"`
	SslCertificate string `json:"ssl_certificate,omitempty"`
	TcpUserTimeout *int32 `json:"tcp_user_timeout,omitempty"`
	Transparent    bool   `json:"transparent,omitempty"`
	V4v6           bool   `json:"v4v6,omitempty"`
	Verify         string `json:"verify,omitempty"`
}

Bind HAProxy frontend bind configuration

type BindApiService

type BindApiService service

BindApiService BindApi service

func (*BindApiService) CreateBind

func (a *BindApiService) CreateBind(ctx _context.Context, frontend string, bind Bind, localVarOptionals *CreateBindOpts) (Bind, *_nethttp.Response, error)

CreateBind Add a new bind Adds a new bind in the specified frontend in the configuration file.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param frontend Parent frontend name
  • @param bind
  • @param optional nil or *CreateBindOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return Bind

func (*BindApiService) DeleteBind

func (a *BindApiService) DeleteBind(ctx _context.Context, name string, frontend string, localVarOptionals *DeleteBindOpts) (*_nethttp.Response, error)

DeleteBind Delete a bind Deletes a bind configuration by it's name in the specified frontend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param name Bind name
  • @param frontend Parent frontend name
  • @param optional nil or *DeleteBindOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

func (*BindApiService) GetBind

func (a *BindApiService) GetBind(ctx _context.Context, name string, frontend string, localVarOptionals *GetBindOpts) (InlineResponse2009, *_nethttp.Response, error)

GetBind Return one bind Returns one bind configuration by it's name in the specified frontend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param name Bind name
  • @param frontend Parent frontend name
  • @param optional nil or *GetBindOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse2009

func (*BindApiService) GetBinds

func (a *BindApiService) GetBinds(ctx _context.Context, frontend string, localVarOptionals *GetBindsOpts) (InlineResponse2008, *_nethttp.Response, error)

GetBinds Return an array of binds Returns an array of all binds that are configured in specified frontend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param frontend Parent frontend name
  • @param optional nil or *GetBindsOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse2008

func (*BindApiService) ReplaceBind

func (a *BindApiService) ReplaceBind(ctx _context.Context, name string, frontend string, bind Bind, localVarOptionals *ReplaceBindOpts) (Bind, *_nethttp.Response, error)

ReplaceBind Replace a bind Replaces a bind configuration by it's name in the specified frontend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param name Bind name
  • @param frontend Parent frontend name
  • @param bind
  • @param optional nil or *ReplaceBindOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return Bind

type CommitTransactionOpts

type CommitTransactionOpts struct {
	ForceReload optional.Bool
}

CommitTransactionOpts Optional parameters for the method 'CommitTransaction'

type Configuration

type Configuration struct {
	BasePath      string            `json:"basePath,omitempty"`
	Host          string            `json:"host,omitempty"`
	Scheme        string            `json:"scheme,omitempty"`
	DefaultHeader map[string]string `json:"defaultHeader,omitempty"`
	UserAgent     string            `json:"userAgent,omitempty"`
	Debug         bool              `json:"debug,omitempty"`
	HTTPClient    *http.Client
}

Configuration stores the configuration of the API client

func NewConfiguration

func NewConfiguration() *Configuration

NewConfiguration returns a new Configuration object

func (*Configuration) AddDefaultHeader

func (c *Configuration) AddDefaultHeader(key string, value string)

AddDefaultHeader adds a new HTTP header to the default header in the request

type ConfigurationApiService

type ConfigurationApiService service

ConfigurationApiService ConfigurationApi service

func (*ConfigurationApiService) GetHAProxyConfiguration

func (a *ConfigurationApiService) GetHAProxyConfiguration(ctx _context.Context, localVarOptionals *GetHAProxyConfigurationOpts) (InlineResponse20032, *_nethttp.Response, error)

GetHAProxyConfiguration Return HAProxy configuration Returns HAProxy configuration file in plain text

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param optional nil or *GetHAProxyConfigurationOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.

@return InlineResponse20032

func (*ConfigurationApiService) PostHAProxyConfiguration

func (a *ConfigurationApiService) PostHAProxyConfiguration(ctx _context.Context, body string, localVarOptionals *PostHAProxyConfigurationOpts) (string, *_nethttp.Response, error)

PostHAProxyConfiguration Push new haproxy configuration Push a new haproxy configuration file in plain text

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param body
  • @param optional nil or *PostHAProxyConfigurationOpts - Optional Parameters:
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return string

type CreateAclOpts

type CreateAclOpts struct {
	TransactionId optional.String
	Version       optional.Int32
	ForceReload   optional.Bool
}

CreateAclOpts Optional parameters for the method 'CreateAcl'

type CreateBackendOpts

type CreateBackendOpts struct {
	TransactionId optional.String
	Version       optional.Int32
	ForceReload   optional.Bool
}

CreateBackendOpts Optional parameters for the method 'CreateBackend'

type CreateBackendSwitchingRuleOpts

type CreateBackendSwitchingRuleOpts struct {
	TransactionId optional.String
	Version       optional.Int32
	ForceReload   optional.Bool
}

CreateBackendSwitchingRuleOpts Optional parameters for the method 'CreateBackendSwitchingRule'

type CreateBindOpts

type CreateBindOpts struct {
	TransactionId optional.String
	Version       optional.Int32
	ForceReload   optional.Bool
}

CreateBindOpts Optional parameters for the method 'CreateBind'

type CreateFilterOpts

type CreateFilterOpts struct {
	TransactionId optional.String
	Version       optional.Int32
	ForceReload   optional.Bool
}

CreateFilterOpts Optional parameters for the method 'CreateFilter'

type CreateFrontendOpts

type CreateFrontendOpts struct {
	TransactionId optional.String
	Version       optional.Int32
	ForceReload   optional.Bool
}

CreateFrontendOpts Optional parameters for the method 'CreateFrontend'

type CreateHTTPRequestRuleOpts

type CreateHTTPRequestRuleOpts struct {
	TransactionId optional.String
	Version       optional.Int32
	ForceReload   optional.Bool
}

CreateHTTPRequestRuleOpts Optional parameters for the method 'CreateHTTPRequestRule'

type CreateHTTPResponseRuleOpts

type CreateHTTPResponseRuleOpts struct {
	TransactionId optional.String
	Version       optional.Int32
	ForceReload   optional.Bool
}

CreateHTTPResponseRuleOpts Optional parameters for the method 'CreateHTTPResponseRule'

type CreateLogTargetOpts

type CreateLogTargetOpts struct {
	TransactionId optional.String
	Version       optional.Int32
	ForceReload   optional.Bool
}

CreateLogTargetOpts Optional parameters for the method 'CreateLogTarget'

type CreateServerOpts

type CreateServerOpts struct {
	TransactionId optional.String
	Version       optional.Int32
	ForceReload   optional.Bool
}

CreateServerOpts Optional parameters for the method 'CreateServer'

type CreateServerSwitchingRuleOpts

type CreateServerSwitchingRuleOpts struct {
	TransactionId optional.String
	Version       optional.Int32
	ForceReload   optional.Bool
}

CreateServerSwitchingRuleOpts Optional parameters for the method 'CreateServerSwitchingRule'

type CreateSiteOpts

type CreateSiteOpts struct {
	TransactionId optional.String
	Version       optional.Int32
	ForceReload   optional.Bool
}

CreateSiteOpts Optional parameters for the method 'CreateSite'

type CreateStickRuleOpts

type CreateStickRuleOpts struct {
	TransactionId optional.String
	Version       optional.Int32
	ForceReload   optional.Bool
}

CreateStickRuleOpts Optional parameters for the method 'CreateStickRule'

type CreateTCPRequestRuleOpts

type CreateTCPRequestRuleOpts struct {
	TransactionId optional.String
	Version       optional.Int32
	ForceReload   optional.Bool
}

CreateTCPRequestRuleOpts Optional parameters for the method 'CreateTCPRequestRule'

type CreateTCPResponseRuleOpts

type CreateTCPResponseRuleOpts struct {
	TransactionId optional.String
	Version       optional.Int32
	ForceReload   optional.Bool
}

CreateTCPResponseRuleOpts Optional parameters for the method 'CreateTCPResponseRule'

type DefaultServer

type DefaultServer struct {
	Fall  *int32 `json:"fall,omitempty"`
	Inter *int32 `json:"inter,omitempty"`
	Port  *int32 `json:"port,omitempty"`
	Rise  *int32 `json:"rise,omitempty"`
}

DefaultServer struct for DefaultServer

type Defaults

type Defaults struct {
	AdvCheck             string        `json:"adv_check,omitempty"`
	Balance              Balance       `json:"balance,omitempty"`
	CheckTimeout         *int32        `json:"check_timeout,omitempty"`
	Clflog               bool          `json:"clflog,omitempty"`
	ClientTimeout        *int32        `json:"client_timeout,omitempty"`
	Clitcpka             string        `json:"clitcpka,omitempty"`
	ConnectTimeout       *int32        `json:"connect_timeout,omitempty"`
	Contstats            string        `json:"contstats,omitempty"`
	Cookie               string        `json:"cookie,omitempty"`
	DefaultBackend       string        `json:"default_backend,omitempty"`
	DefaultServer        DefaultServer `json:"default_server,omitempty"`
	Dontlognull          string        `json:"dontlognull,omitempty"`
	ErrorFiles           []Errorfile   `json:"error_files,omitempty"`
	ExternalCheck        string        `json:"external_check,omitempty"`
	ExternalCheckCommand string        `json:"external_check_command,omitempty"`
	ExternalCheckPath    string        `json:"external_check_path,omitempty"`
	Forwardfor           Forwardfor    `json:"forwardfor,omitempty"`
	HttpUseHtx           string        `json:"http-use-htx,omitempty"`
	HttpConnectionMode   string        `json:"http_connection_mode,omitempty"`
	HttpKeepAliveTimeout *int32        `json:"http_keep_alive_timeout,omitempty"`
	HttpPretendKeepalive string        `json:"http_pretend_keepalive,omitempty"`
	HttpRequestTimeout   *int32        `json:"http_request_timeout,omitempty"`
	Httpchk              Httpchk       `json:"httpchk,omitempty"`
	Httplog              bool          `json:"httplog,omitempty"`
	LogFormat            string        `json:"log_format,omitempty"`
	LogFormatSd          string        `json:"log_format_sd,omitempty"`
	LogSeparateErrors    string        `json:"log_separate_errors,omitempty"`
	LogTag               string        `json:"log_tag,omitempty"`
	Maxconn              *int32        `json:"maxconn,omitempty"`
	Mode                 string        `json:"mode,omitempty"`
	QueueTimeout         *int32        `json:"queue_timeout,omitempty"`
	Redispatch           Redispatch    `json:"redispatch,omitempty"`
	Retries              *int32        `json:"retries,omitempty"`
	ServerTimeout        *int32        `json:"server_timeout,omitempty"`
	Tcplog               bool          `json:"tcplog,omitempty"`
}

Defaults HAProxy defaults configuration

type DefaultsApiService

type DefaultsApiService service

DefaultsApiService DefaultsApi service

func (*DefaultsApiService) GetDefaults

func (a *DefaultsApiService) GetDefaults(ctx _context.Context, localVarOptionals *GetDefaultsOpts) (InlineResponse2003, *_nethttp.Response, error)

GetDefaults Return defaults part of configuration Returns defaults part of configuration.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param optional nil or *GetDefaultsOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse2003

func (*DefaultsApiService) ReplaceDefaults

func (a *DefaultsApiService) ReplaceDefaults(ctx _context.Context, defaults Defaults, localVarOptionals *ReplaceDefaultsOpts) (Defaults, *_nethttp.Response, error)

ReplaceDefaults Replace defaults Replace defaults part of config

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param defaults
  • @param optional nil or *ReplaceDefaultsOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return Defaults

type DeleteAclOpts

type DeleteAclOpts struct {
	TransactionId optional.String
	Version       optional.Int32
	ForceReload   optional.Bool
}

DeleteAclOpts Optional parameters for the method 'DeleteAcl'

type DeleteBackendOpts

type DeleteBackendOpts struct {
	TransactionId optional.String
	Version       optional.Int32
	ForceReload   optional.Bool
}

DeleteBackendOpts Optional parameters for the method 'DeleteBackend'

type DeleteBackendSwitchingRuleOpts

type DeleteBackendSwitchingRuleOpts struct {
	TransactionId optional.String
	Version       optional.Int32
	ForceReload   optional.Bool
}

DeleteBackendSwitchingRuleOpts Optional parameters for the method 'DeleteBackendSwitchingRule'

type DeleteBindOpts

type DeleteBindOpts struct {
	TransactionId optional.String
	Version       optional.Int32
	ForceReload   optional.Bool
}

DeleteBindOpts Optional parameters for the method 'DeleteBind'

type DeleteFilterOpts

type DeleteFilterOpts struct {
	TransactionId optional.String
	Version       optional.Int32
	ForceReload   optional.Bool
}

DeleteFilterOpts Optional parameters for the method 'DeleteFilter'

type DeleteFrontendOpts

type DeleteFrontendOpts struct {
	TransactionId optional.String
	Version       optional.Int32
	ForceReload   optional.Bool
}

DeleteFrontendOpts Optional parameters for the method 'DeleteFrontend'

type DeleteHTTPRequestRuleOpts

type DeleteHTTPRequestRuleOpts struct {
	TransactionId optional.String
	Version       optional.Int32
	ForceReload   optional.Bool
}

DeleteHTTPRequestRuleOpts Optional parameters for the method 'DeleteHTTPRequestRule'

type DeleteHTTPResponseRuleOpts

type DeleteHTTPResponseRuleOpts struct {
	TransactionId optional.String
	Version       optional.Int32
	ForceReload   optional.Bool
}

DeleteHTTPResponseRuleOpts Optional parameters for the method 'DeleteHTTPResponseRule'

type DeleteLogTargetOpts

type DeleteLogTargetOpts struct {
	TransactionId optional.String
	Version       optional.Int32
	ForceReload   optional.Bool
}

DeleteLogTargetOpts Optional parameters for the method 'DeleteLogTarget'

type DeleteServerOpts

type DeleteServerOpts struct {
	TransactionId optional.String
	Version       optional.Int32
	ForceReload   optional.Bool
}

DeleteServerOpts Optional parameters for the method 'DeleteServer'

type DeleteServerSwitchingRuleOpts

type DeleteServerSwitchingRuleOpts struct {
	TransactionId optional.String
	Version       optional.Int32
	ForceReload   optional.Bool
}

DeleteServerSwitchingRuleOpts Optional parameters for the method 'DeleteServerSwitchingRule'

type DeleteSiteOpts

type DeleteSiteOpts struct {
	TransactionId optional.String
	Version       optional.Int32
	ForceReload   optional.Bool
}

DeleteSiteOpts Optional parameters for the method 'DeleteSite'

type DeleteStickRuleOpts

type DeleteStickRuleOpts struct {
	TransactionId optional.String
	Version       optional.Int32
	ForceReload   optional.Bool
}

DeleteStickRuleOpts Optional parameters for the method 'DeleteStickRule'

type DeleteTCPRequestRuleOpts

type DeleteTCPRequestRuleOpts struct {
	TransactionId optional.String
	Version       optional.Int32
	ForceReload   optional.Bool
}

DeleteTCPRequestRuleOpts Optional parameters for the method 'DeleteTCPRequestRule'

type DeleteTCPResponseRuleOpts

type DeleteTCPResponseRuleOpts struct {
	TransactionId optional.String
	Version       optional.Int32
	ForceReload   optional.Bool
}

DeleteTCPResponseRuleOpts Optional parameters for the method 'DeleteTCPResponseRule'

type DiscoveryApiService

type DiscoveryApiService service

DiscoveryApiService DiscoveryApi service

func (*DiscoveryApiService) GetAPIEndpoints

func (a *DiscoveryApiService) GetAPIEndpoints(ctx _context.Context) ([]Endpoint, *_nethttp.Response, error)

GetAPIEndpoints Return list of root endpoints Returns a list of root endpoints.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().

@return []Endpoint

func (*DiscoveryApiService) GetConfigurationEndpoints

func (a *DiscoveryApiService) GetConfigurationEndpoints(ctx _context.Context) ([]Endpoint, *_nethttp.Response, error)

GetConfigurationEndpoints Return list of HAProxy advanced configuration endpoints Returns a list of endpoints to be used for advanced configuration of HAProxy objects.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().

@return []Endpoint

func (*DiscoveryApiService) GetHaproxyEndpoints

func (a *DiscoveryApiService) GetHaproxyEndpoints(ctx _context.Context) ([]Endpoint, *_nethttp.Response, error)

GetHaproxyEndpoints Return list of HAProxy related endpoints Returns a list of HAProxy related endpoints.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().

@return []Endpoint

func (*DiscoveryApiService) GetServicesEndpoints

func (a *DiscoveryApiService) GetServicesEndpoints(ctx _context.Context) ([]Endpoint, *_nethttp.Response, error)

GetServicesEndpoints Return list of service endpoints Returns a list of API managed services endpoints.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().

@return []Endpoint

func (*DiscoveryApiService) GetStatsEndpoints

func (a *DiscoveryApiService) GetStatsEndpoints(ctx _context.Context) ([]Endpoint, *_nethttp.Response, error)

GetStatsEndpoints Return list of HAProxy stats endpoints Returns a list of HAProxy stats endpoints.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().

@return []Endpoint

type Endpoint

type Endpoint struct {
	// Endpoint description
	Description string `json:"description,omitempty"`
	// Endpoint title
	Title string `json:"title,omitempty"`
	// Path to the endpoint
	Url string `json:"url,omitempty"`
}

Endpoint Endpoint definition

type Errorfile

type Errorfile struct {
	Code int32  `json:"code,omitempty"`
	File string `json:"file,omitempty"`
}

Errorfile struct for Errorfile

type Filter

type Filter struct {
	CacheName          string `json:"cache_name,omitempty"`
	Id                 *int32 `json:"id"`
	SpoeConfig         string `json:"spoe_config,omitempty"`
	SpoeEngine         string `json:"spoe_engine,omitempty"`
	TraceHexdump       bool   `json:"trace_hexdump,omitempty"`
	TraceName          string `json:"trace_name,omitempty"`
	TraceRndForwarding bool   `json:"trace_rnd_forwarding,omitempty"`
	TraceRndParsing    bool   `json:"trace_rnd_parsing,omitempty"`
	Type               string `json:"type"`
}

Filter HAProxy filters

type FilterApiService

type FilterApiService service

FilterApiService FilterApi service

func (*FilterApiService) CreateFilter

func (a *FilterApiService) CreateFilter(ctx _context.Context, parentName string, parentType string, filter Filter, localVarOptionals *CreateFilterOpts) (Filter, *_nethttp.Response, error)

CreateFilter Add a new Filter Adds a new Filter of the specified type in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param parentName Parent name
  • @param parentType Parent type
  • @param filter
  • @param optional nil or *CreateFilterOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return Filter

func (*FilterApiService) DeleteFilter

func (a *FilterApiService) DeleteFilter(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *DeleteFilterOpts) (*_nethttp.Response, error)

DeleteFilter Delete a Filter Deletes a Filter configuration by it's ID from the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id Filter ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *DeleteFilterOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

func (*FilterApiService) GetFilter

func (a *FilterApiService) GetFilter(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *GetFilterOpts) (InlineResponse20025, *_nethttp.Response, error)

GetFilter Return one Filter Returns one Filter configuration by it's ID in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id Filter ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *GetFilterOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20025

func (*FilterApiService) GetFilters

func (a *FilterApiService) GetFilters(ctx _context.Context, parentName string, parentType string, localVarOptionals *GetFiltersOpts) (InlineResponse20024, *_nethttp.Response, error)

GetFilters Return an array of all Filters Returns all Filters that are configured in specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *GetFiltersOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20024

func (*FilterApiService) ReplaceFilter

func (a *FilterApiService) ReplaceFilter(ctx _context.Context, id int32, parentName string, parentType string, filter Filter, localVarOptionals *ReplaceFilterOpts) (Filter, *_nethttp.Response, error)

ReplaceFilter Replace a Filter Replaces a Filter configuration by it's ID in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id Filter ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param filter
  • @param optional nil or *ReplaceFilterOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return Filter

type Forwardfor

type Forwardfor struct {
	Enabled string `json:"enabled"`
	Except  string `json:"except,omitempty"`
	Header  string `json:"header,omitempty"`
	Ifnone  bool   `json:"ifnone,omitempty"`
}

Forwardfor struct for Forwardfor

type Frontend

type Frontend struct {
	Clflog               bool        `json:"clflog,omitempty"`
	ClientTimeout        *int32      `json:"client_timeout,omitempty"`
	Clitcpka             string      `json:"clitcpka,omitempty"`
	Contstats            string      `json:"contstats,omitempty"`
	DefaultBackend       string      `json:"default_backend,omitempty"`
	Dontlognull          string      `json:"dontlognull,omitempty"`
	Forwardfor           *Forwardfor `json:"forwardfor,omitempty"`
	HttpUseHtx           string      `json:"http-use-htx,omitempty"`
	HttpConnectionMode   string      `json:"http_connection_mode,omitempty"`
	HttpKeepAliveTimeout *int32      `json:"http_keep_alive_timeout,omitempty"`
	HttpRequestTimeout   *int32      `json:"http_request_timeout,omitempty"`
	Httplog              bool        `json:"httplog,omitempty"`
	LogFormat            string      `json:"log_format,omitempty"`
	LogFormatSd          string      `json:"log_format_sd,omitempty"`
	LogSeparateErrors    string      `json:"log_separate_errors,omitempty"`
	LogTag               string      `json:"log_tag,omitempty"`
	Maxconn              *int32      `json:"maxconn,omitempty"`
	Mode                 string      `json:"mode,omitempty"`
	Name                 string      `json:"name"`
	Tcplog               bool        `json:"tcplog,omitempty"`
}

Frontend HAProxy frontend configuration

type FrontendApiService

type FrontendApiService service

FrontendApiService FrontendApi service

func (*FrontendApiService) CreateFrontend

func (a *FrontendApiService) CreateFrontend(ctx _context.Context, frontend Frontend, localVarOptionals *CreateFrontendOpts) (Frontend, *_nethttp.Response, error)

CreateFrontend Add a frontend Adds a new frontend to the configuration file.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param frontend
  • @param optional nil or *CreateFrontendOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return Frontend

func (*FrontendApiService) DeleteFrontend

func (a *FrontendApiService) DeleteFrontend(ctx _context.Context, name string, localVarOptionals *DeleteFrontendOpts) (*_nethttp.Response, error)

DeleteFrontend Delete a frontend Deletes a frontend from the configuration by it's name.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param name Frontend name
  • @param optional nil or *DeleteFrontendOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

func (*FrontendApiService) GetFrontend

func (a *FrontendApiService) GetFrontend(ctx _context.Context, name string, localVarOptionals *GetFrontendOpts) (InlineResponse2005, *_nethttp.Response, error)

GetFrontend Return a frontend Returns one frontend configuration by it's name.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param name Frontend name
  • @param optional nil or *GetFrontendOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse2005

func (*FrontendApiService) GetFrontends

func (a *FrontendApiService) GetFrontends(ctx _context.Context, localVarOptionals *GetFrontendsOpts) (InlineResponse2004, *_nethttp.Response, error)

GetFrontends Return an array of frontends Returns an array of all configured frontends.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param optional nil or *GetFrontendsOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse2004

func (*FrontendApiService) ReplaceFrontend

func (a *FrontendApiService) ReplaceFrontend(ctx _context.Context, name string, frontend Frontend, localVarOptionals *ReplaceFrontendOpts) (Frontend, *_nethttp.Response, error)

ReplaceFrontend Replace a frontend Replaces a frontend configuration by it's name.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param name Frontend name
  • @param frontend
  • @param optional nil or *ReplaceFrontendOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return Frontend

type FrontendOptionsApiService

type FrontendOptionsApiService service

FrontendOptionsApiService FrontendOptionsApi service

func (*FrontendOptionsApiService) CreateAcl

func (a *FrontendOptionsApiService) CreateAcl(ctx _context.Context, parentName string, parentType string, acl Acl, localVarOptionals *CreateAclOpts) (Acl, *_nethttp.Response, error)

CreateAcl Add a new ACL line Adds a new ACL line of the specified type in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param parentName Parent name
  • @param parentType Parent type
  • @param acl
  • @param optional nil or *CreateAclOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return Acl

func (*FrontendOptionsApiService) CreateBackendSwitchingRule

func (a *FrontendOptionsApiService) CreateBackendSwitchingRule(ctx _context.Context, frontend string, backendSwitchingRule BackendSwitchingRule, localVarOptionals *CreateBackendSwitchingRuleOpts) (BackendSwitchingRule, *_nethttp.Response, error)

CreateBackendSwitchingRule Add a new Backend Switching Rule Adds a new Backend Switching Rule of the specified type in the specified frontend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param frontend Frontend name
  • @param backendSwitchingRule
  • @param optional nil or *CreateBackendSwitchingRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return BackendSwitchingRule

func (*FrontendOptionsApiService) CreateBind

func (a *FrontendOptionsApiService) CreateBind(ctx _context.Context, frontend string, bind Bind, localVarOptionals *CreateBindOpts) (Bind, *_nethttp.Response, error)

CreateBind Add a new bind Adds a new bind in the specified frontend in the configuration file.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param frontend Parent frontend name
  • @param bind
  • @param optional nil or *CreateBindOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return Bind

func (*FrontendOptionsApiService) CreateFilter

func (a *FrontendOptionsApiService) CreateFilter(ctx _context.Context, parentName string, parentType string, filter Filter, localVarOptionals *CreateFilterOpts) (Filter, *_nethttp.Response, error)

CreateFilter Add a new Filter Adds a new Filter of the specified type in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param parentName Parent name
  • @param parentType Parent type
  • @param filter
  • @param optional nil or *CreateFilterOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return Filter

func (*FrontendOptionsApiService) CreateHTTPRequestRule

func (a *FrontendOptionsApiService) CreateHTTPRequestRule(ctx _context.Context, parentName string, parentType string, httpRequestRule HttpRequestRule, localVarOptionals *CreateHTTPRequestRuleOpts) (HttpRequestRule, *_nethttp.Response, error)

CreateHTTPRequestRule Add a new HTTP Request Rule Adds a new HTTP Request Rule of the specified type in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param parentName Parent name
  • @param parentType Parent type
  • @param httpRequestRule
  • @param optional nil or *CreateHTTPRequestRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return HttpRequestRule

func (*FrontendOptionsApiService) CreateHTTPResponseRule

func (a *FrontendOptionsApiService) CreateHTTPResponseRule(ctx _context.Context, parentName string, parentType string, httpResponseRule HttpResponseRule, localVarOptionals *CreateHTTPResponseRuleOpts) (HttpResponseRule, *_nethttp.Response, error)

CreateHTTPResponseRule Add a new HTTP Response Rule Adds a new HTTP Response Rule of the specified type in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param parentName Parent name
  • @param parentType Parent type
  • @param httpResponseRule
  • @param optional nil or *CreateHTTPResponseRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return HttpResponseRule

func (*FrontendOptionsApiService) CreateLogTarget

func (a *FrontendOptionsApiService) CreateLogTarget(ctx _context.Context, parentName string, parentType string, logTarget LogTarget, localVarOptionals *CreateLogTargetOpts) (LogTarget, *_nethttp.Response, error)

CreateLogTarget Add a new Log Target Adds a new Log Target of the specified type in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param parentName Parent name
  • @param parentType Parent type
  • @param logTarget
  • @param optional nil or *CreateLogTargetOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return LogTarget

func (*FrontendOptionsApiService) CreateTCPRequestRule

func (a *FrontendOptionsApiService) CreateTCPRequestRule(ctx _context.Context, parentName string, parentType string, tcpRequestRule TcpRequestRule, localVarOptionals *CreateTCPRequestRuleOpts) (TcpRequestRule, *_nethttp.Response, error)

CreateTCPRequestRule Add a new TCP Request Rule Adds a new TCP Request Rule of the specified type in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param parentName Parent name
  • @param parentType Parent type
  • @param tcpRequestRule
  • @param optional nil or *CreateTCPRequestRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return TcpRequestRule

func (*FrontendOptionsApiService) CreateTCPResponseRule

func (a *FrontendOptionsApiService) CreateTCPResponseRule(ctx _context.Context, backend string, tcpResponseRule TcpResponseRule, localVarOptionals *CreateTCPResponseRuleOpts) (TcpResponseRule, *_nethttp.Response, error)

CreateTCPResponseRule Add a new TCP Response Rule Adds a new TCP Response Rule of the specified type in the specified backend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param backend Parent backend name
  • @param tcpResponseRule
  • @param optional nil or *CreateTCPResponseRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return TcpResponseRule

func (*FrontendOptionsApiService) DeleteAcl

func (a *FrontendOptionsApiService) DeleteAcl(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *DeleteAclOpts) (*_nethttp.Response, error)

DeleteAcl Delete a ACL line Deletes a ACL line configuration by it's ID from the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id ACL line ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *DeleteAclOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

func (*FrontendOptionsApiService) DeleteBackendSwitchingRule

func (a *FrontendOptionsApiService) DeleteBackendSwitchingRule(ctx _context.Context, id int32, frontend string, localVarOptionals *DeleteBackendSwitchingRuleOpts) (*_nethttp.Response, error)

DeleteBackendSwitchingRule Delete a Backend Switching Rule Deletes a Backend Switching Rule configuration by it's ID from the specified frontend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id Switching Rule ID
  • @param frontend Frontend name
  • @param optional nil or *DeleteBackendSwitchingRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

func (*FrontendOptionsApiService) DeleteBind

func (a *FrontendOptionsApiService) DeleteBind(ctx _context.Context, name string, frontend string, localVarOptionals *DeleteBindOpts) (*_nethttp.Response, error)

DeleteBind Delete a bind Deletes a bind configuration by it's name in the specified frontend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param name Bind name
  • @param frontend Parent frontend name
  • @param optional nil or *DeleteBindOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

func (*FrontendOptionsApiService) DeleteFilter

func (a *FrontendOptionsApiService) DeleteFilter(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *DeleteFilterOpts) (*_nethttp.Response, error)

DeleteFilter Delete a Filter Deletes a Filter configuration by it's ID from the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id Filter ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *DeleteFilterOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

func (*FrontendOptionsApiService) DeleteHTTPRequestRule

func (a *FrontendOptionsApiService) DeleteHTTPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *DeleteHTTPRequestRuleOpts) (*_nethttp.Response, error)

DeleteHTTPRequestRule Delete a HTTP Request Rule Deletes a HTTP Request Rule configuration by it's ID from the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id HTTP Request Rule ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *DeleteHTTPRequestRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

func (*FrontendOptionsApiService) DeleteHTTPResponseRule

func (a *FrontendOptionsApiService) DeleteHTTPResponseRule(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *DeleteHTTPResponseRuleOpts) (*_nethttp.Response, error)

DeleteHTTPResponseRule Delete a HTTP Response Rule Deletes a HTTP Response Rule configuration by it's ID from the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id HTTP Response Rule ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *DeleteHTTPResponseRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

func (*FrontendOptionsApiService) DeleteLogTarget

func (a *FrontendOptionsApiService) DeleteLogTarget(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *DeleteLogTargetOpts) (*_nethttp.Response, error)

DeleteLogTarget Delete a Log Target Deletes a Log Target configuration by it's ID from the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id Log Target ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *DeleteLogTargetOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

func (*FrontendOptionsApiService) DeleteTCPRequestRule

func (a *FrontendOptionsApiService) DeleteTCPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *DeleteTCPRequestRuleOpts) (*_nethttp.Response, error)

DeleteTCPRequestRule Delete a TCP Request Rule Deletes a TCP Request Rule configuration by it's ID from the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id TCP Request Rule ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *DeleteTCPRequestRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

func (*FrontendOptionsApiService) DeleteTCPResponseRule

func (a *FrontendOptionsApiService) DeleteTCPResponseRule(ctx _context.Context, id int32, backend string, localVarOptionals *DeleteTCPResponseRuleOpts) (*_nethttp.Response, error)

DeleteTCPResponseRule Delete a TCP Response Rule Deletes a TCP Response Rule configuration by it's ID from the specified backend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id TCP Response Rule ID
  • @param backend Parent backend name
  • @param optional nil or *DeleteTCPResponseRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

func (*FrontendOptionsApiService) GetAcl

func (a *FrontendOptionsApiService) GetAcl(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *GetAclOpts) (InlineResponse20031, *_nethttp.Response, error)

GetAcl Return one ACL line Returns one ACL line configuration by it's ID in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id ACL line ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *GetAclOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20031

func (*FrontendOptionsApiService) GetAcls

func (a *FrontendOptionsApiService) GetAcls(ctx _context.Context, parentName string, parentType string, localVarOptionals *GetAclsOpts) (InlineResponse20030, *_nethttp.Response, error)

GetAcls Return an array of all ACL lines Returns all ACL lines that are configured in specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *GetAclsOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20030

func (*FrontendOptionsApiService) GetBackendSwitchingRule

func (a *FrontendOptionsApiService) GetBackendSwitchingRule(ctx _context.Context, id int32, frontend string, localVarOptionals *GetBackendSwitchingRuleOpts) (InlineResponse20021, *_nethttp.Response, error)

GetBackendSwitchingRule Return one Backend Switching Rule Returns one Backend Switching Rule configuration by it's ID in the specified frontend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id Switching Rule ID
  • @param frontend Frontend name
  • @param optional nil or *GetBackendSwitchingRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20021

func (*FrontendOptionsApiService) GetBackendSwitchingRules

func (a *FrontendOptionsApiService) GetBackendSwitchingRules(ctx _context.Context, frontend string, localVarOptionals *GetBackendSwitchingRulesOpts) (InlineResponse20020, *_nethttp.Response, error)

GetBackendSwitchingRules Return an array of all Backend Switching Rules Returns all Backend Switching Rules that are configured in specified frontend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param frontend Frontend name
  • @param optional nil or *GetBackendSwitchingRulesOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20020

func (*FrontendOptionsApiService) GetBind

func (a *FrontendOptionsApiService) GetBind(ctx _context.Context, name string, frontend string, localVarOptionals *GetBindOpts) (InlineResponse2009, *_nethttp.Response, error)

GetBind Return one bind Returns one bind configuration by it's name in the specified frontend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param name Bind name
  • @param frontend Parent frontend name
  • @param optional nil or *GetBindOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse2009

func (*FrontendOptionsApiService) GetBinds

func (a *FrontendOptionsApiService) GetBinds(ctx _context.Context, frontend string, localVarOptionals *GetBindsOpts) (InlineResponse2008, *_nethttp.Response, error)

GetBinds Return an array of binds Returns an array of all binds that are configured in specified frontend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param frontend Parent frontend name
  • @param optional nil or *GetBindsOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse2008

func (*FrontendOptionsApiService) GetFilter

func (a *FrontendOptionsApiService) GetFilter(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *GetFilterOpts) (InlineResponse20025, *_nethttp.Response, error)

GetFilter Return one Filter Returns one Filter configuration by it's ID in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id Filter ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *GetFilterOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20025

func (*FrontendOptionsApiService) GetFilters

func (a *FrontendOptionsApiService) GetFilters(ctx _context.Context, parentName string, parentType string, localVarOptionals *GetFiltersOpts) (InlineResponse20024, *_nethttp.Response, error)

GetFilters Return an array of all Filters Returns all Filters that are configured in specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *GetFiltersOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20024

func (*FrontendOptionsApiService) GetHTTPRequestRule

func (a *FrontendOptionsApiService) GetHTTPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *GetHTTPRequestRuleOpts) (InlineResponse20013, *_nethttp.Response, error)

GetHTTPRequestRule Return one HTTP Request Rule Returns one HTTP Request Rule configuration by it's ID in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id HTTP Request Rule ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *GetHTTPRequestRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20013

func (*FrontendOptionsApiService) GetHTTPRequestRules

func (a *FrontendOptionsApiService) GetHTTPRequestRules(ctx _context.Context, parentName string, parentType string, localVarOptionals *GetHTTPRequestRulesOpts) (InlineResponse20012, *_nethttp.Response, error)

GetHTTPRequestRules Return an array of all HTTP Request Rules Returns all HTTP Request Rules that are configured in specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *GetHTTPRequestRulesOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20012

func (*FrontendOptionsApiService) GetHTTPResponseRule

func (a *FrontendOptionsApiService) GetHTTPResponseRule(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *GetHTTPResponseRuleOpts) (InlineResponse20015, *_nethttp.Response, error)

GetHTTPResponseRule Return one HTTP Response Rule Returns one HTTP Response Rule configuration by it's ID in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id HTTP Response Rule ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *GetHTTPResponseRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20015

func (*FrontendOptionsApiService) GetHTTPResponseRules

func (a *FrontendOptionsApiService) GetHTTPResponseRules(ctx _context.Context, parentName string, parentType string, localVarOptionals *GetHTTPResponseRulesOpts) (InlineResponse20014, *_nethttp.Response, error)

GetHTTPResponseRules Return an array of all HTTP Response Rules Returns all HTTP Response Rules that are configured in specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *GetHTTPResponseRulesOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20014

func (*FrontendOptionsApiService) GetLogTarget

func (a *FrontendOptionsApiService) GetLogTarget(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *GetLogTargetOpts) (InlineResponse20029, *_nethttp.Response, error)

GetLogTarget Return one Log Target Returns one Log Target configuration by it's ID in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id Log Target ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *GetLogTargetOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20029

func (*FrontendOptionsApiService) GetLogTargets

func (a *FrontendOptionsApiService) GetLogTargets(ctx _context.Context, parentName string, parentType string, localVarOptionals *GetLogTargetsOpts) (InlineResponse20028, *_nethttp.Response, error)

GetLogTargets Return an array of all Log Targets Returns all Log Targets that are configured in specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *GetLogTargetsOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20028

func (*FrontendOptionsApiService) GetTCPRequestRule

func (a *FrontendOptionsApiService) GetTCPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *GetTCPRequestRuleOpts) (InlineResponse20017, *_nethttp.Response, error)

GetTCPRequestRule Return one TCP Request Rule Returns one TCP Request Rule configuration by it's ID in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id TCP Request Rule ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *GetTCPRequestRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20017

func (*FrontendOptionsApiService) GetTCPRequestRules

func (a *FrontendOptionsApiService) GetTCPRequestRules(ctx _context.Context, parentName string, parentType string, localVarOptionals *GetTCPRequestRulesOpts) (InlineResponse20016, *_nethttp.Response, error)

GetTCPRequestRules Return an array of all TCP Request Rules Returns all TCP Request Rules that are configured in specified parent and parent type.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *GetTCPRequestRulesOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20016

func (*FrontendOptionsApiService) GetTCPResponseRule

func (a *FrontendOptionsApiService) GetTCPResponseRule(ctx _context.Context, id int32, backend string, localVarOptionals *GetTCPResponseRuleOpts) (InlineResponse20019, *_nethttp.Response, error)

GetTCPResponseRule Return one TCP Response Rule Returns one TCP Response Rule configuration by it's ID in the specified backend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id TCP Response Rule ID
  • @param backend Parent backend name
  • @param optional nil or *GetTCPResponseRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20019

func (*FrontendOptionsApiService) GetTCPResponseRules

func (a *FrontendOptionsApiService) GetTCPResponseRules(ctx _context.Context, backend string, localVarOptionals *GetTCPResponseRulesOpts) (InlineResponse20018, *_nethttp.Response, error)

GetTCPResponseRules Return an array of all TCP Response Rules Returns all TCP Response Rules that are configured in specified backend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param backend Parent backend name
  • @param optional nil or *GetTCPResponseRulesOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20018

func (*FrontendOptionsApiService) ReplaceAcl

func (a *FrontendOptionsApiService) ReplaceAcl(ctx _context.Context, id int32, parentName string, parentType string, acl Acl, localVarOptionals *ReplaceAclOpts) (Acl, *_nethttp.Response, error)

ReplaceAcl Replace a ACL line Replaces a ACL line configuration by it's ID in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id ACL line ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param acl
  • @param optional nil or *ReplaceAclOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return Acl

func (*FrontendOptionsApiService) ReplaceBackendSwitchingRule

func (a *FrontendOptionsApiService) ReplaceBackendSwitchingRule(ctx _context.Context, id int32, frontend string, backendSwitchingRule BackendSwitchingRule, localVarOptionals *ReplaceBackendSwitchingRuleOpts) (BackendSwitchingRule, *_nethttp.Response, error)

ReplaceBackendSwitchingRule Replace a Backend Switching Rule Replaces a Backend Switching Rule configuration by it's ID in the specified frontend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id Switching Rule ID
  • @param frontend Frontend name
  • @param backendSwitchingRule
  • @param optional nil or *ReplaceBackendSwitchingRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return BackendSwitchingRule

func (*FrontendOptionsApiService) ReplaceBind

func (a *FrontendOptionsApiService) ReplaceBind(ctx _context.Context, name string, frontend string, bind Bind, localVarOptionals *ReplaceBindOpts) (Bind, *_nethttp.Response, error)

ReplaceBind Replace a bind Replaces a bind configuration by it's name in the specified frontend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param name Bind name
  • @param frontend Parent frontend name
  • @param bind
  • @param optional nil or *ReplaceBindOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return Bind

func (*FrontendOptionsApiService) ReplaceFilter

func (a *FrontendOptionsApiService) ReplaceFilter(ctx _context.Context, id int32, parentName string, parentType string, filter Filter, localVarOptionals *ReplaceFilterOpts) (Filter, *_nethttp.Response, error)

ReplaceFilter Replace a Filter Replaces a Filter configuration by it's ID in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id Filter ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param filter
  • @param optional nil or *ReplaceFilterOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return Filter

func (*FrontendOptionsApiService) ReplaceHTTPRequestRule

func (a *FrontendOptionsApiService) ReplaceHTTPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, httpRequestRule HttpRequestRule, localVarOptionals *ReplaceHTTPRequestRuleOpts) (HttpRequestRule, *_nethttp.Response, error)

ReplaceHTTPRequestRule Replace a HTTP Request Rule Replaces a HTTP Request Rule configuration by it's ID in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id HTTP Request Rule ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param httpRequestRule
  • @param optional nil or *ReplaceHTTPRequestRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return HttpRequestRule

func (*FrontendOptionsApiService) ReplaceHTTPResponseRule

func (a *FrontendOptionsApiService) ReplaceHTTPResponseRule(ctx _context.Context, id int32, parentName string, parentType string, httpResponseRule HttpResponseRule, localVarOptionals *ReplaceHTTPResponseRuleOpts) (HttpResponseRule, *_nethttp.Response, error)

ReplaceHTTPResponseRule Replace a HTTP Response Rule Replaces a HTTP Response Rule configuration by it's ID in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id HTTP Response Rule ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param httpResponseRule
  • @param optional nil or *ReplaceHTTPResponseRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return HttpResponseRule

func (*FrontendOptionsApiService) ReplaceLogTarget

func (a *FrontendOptionsApiService) ReplaceLogTarget(ctx _context.Context, id int32, parentName string, parentType string, logTarget LogTarget, localVarOptionals *ReplaceLogTargetOpts) (LogTarget, *_nethttp.Response, error)

ReplaceLogTarget Replace a Log Target Replaces a Log Target configuration by it's ID in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id Log Target ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param logTarget
  • @param optional nil or *ReplaceLogTargetOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return LogTarget

func (*FrontendOptionsApiService) ReplaceTCPRequestRule

func (a *FrontendOptionsApiService) ReplaceTCPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, tcpRequestRule TcpRequestRule, localVarOptionals *ReplaceTCPRequestRuleOpts) (TcpRequestRule, *_nethttp.Response, error)

ReplaceTCPRequestRule Replace a TCP Request Rule Replaces a TCP Request Rule configuration by it's ID in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id TCP Request Rule ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param tcpRequestRule
  • @param optional nil or *ReplaceTCPRequestRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return TcpRequestRule

func (*FrontendOptionsApiService) ReplaceTCPResponseRule

func (a *FrontendOptionsApiService) ReplaceTCPResponseRule(ctx _context.Context, id int32, backend string, tcpResponseRule TcpResponseRule, localVarOptionals *ReplaceTCPResponseRuleOpts) (TcpResponseRule, *_nethttp.Response, error)

ReplaceTCPResponseRule Replace a TCP Response Rule Replaces a TCP Response Rule configuration by it's ID in the specified backend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id TCP Response Rule ID
  • @param backend Parent backend name
  • @param tcpResponseRule
  • @param optional nil or *ReplaceTCPResponseRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return TcpResponseRule

type GenericOpenAPIError

type GenericOpenAPIError struct {
	// contains filtered or unexported fields
}

GenericOpenAPIError Provides access to the body, error and model on returned errors.

func (GenericOpenAPIError) Body

func (e GenericOpenAPIError) Body() []byte

Body returns the raw bytes of the response

func (GenericOpenAPIError) Error

func (e GenericOpenAPIError) Error() string

Error returns non-empty string if there was an error.

func (GenericOpenAPIError) Model

func (e GenericOpenAPIError) Model() interface{}

Model returns the unpacked model of the error

type GetAclOpts

type GetAclOpts struct {
	TransactionId optional.String
}

GetAclOpts Optional parameters for the method 'GetAcl'

type GetAclsOpts

type GetAclsOpts struct {
	TransactionId optional.String
}

GetAclsOpts Optional parameters for the method 'GetAcls'

type GetBackendOpts

type GetBackendOpts struct {
	TransactionId optional.String
}

GetBackendOpts Optional parameters for the method 'GetBackend'

type GetBackendSwitchingRuleOpts

type GetBackendSwitchingRuleOpts struct {
	TransactionId optional.String
}

GetBackendSwitchingRuleOpts Optional parameters for the method 'GetBackendSwitchingRule'

type GetBackendSwitchingRulesOpts

type GetBackendSwitchingRulesOpts struct {
	TransactionId optional.String
}

GetBackendSwitchingRulesOpts Optional parameters for the method 'GetBackendSwitchingRules'

type GetBackendsOpts

type GetBackendsOpts struct {
	TransactionId optional.String
}

GetBackendsOpts Optional parameters for the method 'GetBackends'

type GetBindOpts

type GetBindOpts struct {
	TransactionId optional.String
}

GetBindOpts Optional parameters for the method 'GetBind'

type GetBindsOpts

type GetBindsOpts struct {
	TransactionId optional.String
}

GetBindsOpts Optional parameters for the method 'GetBinds'

type GetDefaultsOpts

type GetDefaultsOpts struct {
	TransactionId optional.String
}

GetDefaultsOpts Optional parameters for the method 'GetDefaults'

type GetFilterOpts

type GetFilterOpts struct {
	TransactionId optional.String
}

GetFilterOpts Optional parameters for the method 'GetFilter'

type GetFiltersOpts

type GetFiltersOpts struct {
	TransactionId optional.String
}

GetFiltersOpts Optional parameters for the method 'GetFilters'

type GetFrontendOpts

type GetFrontendOpts struct {
	TransactionId optional.String
}

GetFrontendOpts Optional parameters for the method 'GetFrontend'

type GetFrontendsOpts

type GetFrontendsOpts struct {
	TransactionId optional.String
}

GetFrontendsOpts Optional parameters for the method 'GetFrontends'

type GetGlobalOpts

type GetGlobalOpts struct {
	TransactionId optional.String
}

GetGlobalOpts Optional parameters for the method 'GetGlobal'

type GetHAProxyConfigurationOpts

type GetHAProxyConfigurationOpts struct {
	TransactionId optional.String
	Version       optional.Int32
}

GetHAProxyConfigurationOpts Optional parameters for the method 'GetHAProxyConfiguration'

type GetHTTPRequestRuleOpts

type GetHTTPRequestRuleOpts struct {
	TransactionId optional.String
}

GetHTTPRequestRuleOpts Optional parameters for the method 'GetHTTPRequestRule'

type GetHTTPRequestRulesOpts

type GetHTTPRequestRulesOpts struct {
	TransactionId optional.String
}

GetHTTPRequestRulesOpts Optional parameters for the method 'GetHTTPRequestRules'

type GetHTTPResponseRuleOpts

type GetHTTPResponseRuleOpts struct {
	TransactionId optional.String
}

GetHTTPResponseRuleOpts Optional parameters for the method 'GetHTTPResponseRule'

type GetHTTPResponseRulesOpts

type GetHTTPResponseRulesOpts struct {
	TransactionId optional.String
}

GetHTTPResponseRulesOpts Optional parameters for the method 'GetHTTPResponseRules'

type GetLogTargetOpts

type GetLogTargetOpts struct {
	TransactionId optional.String
}

GetLogTargetOpts Optional parameters for the method 'GetLogTarget'

type GetLogTargetsOpts

type GetLogTargetsOpts struct {
	TransactionId optional.String
}

GetLogTargetsOpts Optional parameters for the method 'GetLogTargets'

type GetServerOpts

type GetServerOpts struct {
	TransactionId optional.String
}

GetServerOpts Optional parameters for the method 'GetServer'

type GetServerSwitchingRuleOpts

type GetServerSwitchingRuleOpts struct {
	TransactionId optional.String
}

GetServerSwitchingRuleOpts Optional parameters for the method 'GetServerSwitchingRule'

type GetServerSwitchingRulesOpts

type GetServerSwitchingRulesOpts struct {
	TransactionId optional.String
}

GetServerSwitchingRulesOpts Optional parameters for the method 'GetServerSwitchingRules'

type GetServersOpts

type GetServersOpts struct {
	TransactionId optional.String
}

GetServersOpts Optional parameters for the method 'GetServers'

type GetSiteOpts

type GetSiteOpts struct {
	TransactionId optional.String
}

GetSiteOpts Optional parameters for the method 'GetSite'

type GetSitesOpts

type GetSitesOpts struct {
	TransactionId optional.String
}

GetSitesOpts Optional parameters for the method 'GetSites'

type GetStatsOpts

type GetStatsOpts struct {
	Type_  optional.String
	Name   optional.String
	Parent optional.String
}

GetStatsOpts Optional parameters for the method 'GetStats'

type GetStickRuleOpts

type GetStickRuleOpts struct {
	TransactionId optional.String
}

GetStickRuleOpts Optional parameters for the method 'GetStickRule'

type GetStickRulesOpts

type GetStickRulesOpts struct {
	TransactionId optional.String
}

GetStickRulesOpts Optional parameters for the method 'GetStickRules'

type GetTCPRequestRuleOpts

type GetTCPRequestRuleOpts struct {
	TransactionId optional.String
}

GetTCPRequestRuleOpts Optional parameters for the method 'GetTCPRequestRule'

type GetTCPRequestRulesOpts

type GetTCPRequestRulesOpts struct {
	TransactionId optional.String
}

GetTCPRequestRulesOpts Optional parameters for the method 'GetTCPRequestRules'

type GetTCPResponseRuleOpts

type GetTCPResponseRuleOpts struct {
	TransactionId optional.String
}

GetTCPResponseRuleOpts Optional parameters for the method 'GetTCPResponseRule'

type GetTCPResponseRulesOpts

type GetTCPResponseRulesOpts struct {
	TransactionId optional.String
}

GetTCPResponseRulesOpts Optional parameters for the method 'GetTCPResponseRules'

type GetTransactionsOpts

type GetTransactionsOpts struct {
	Status optional.String
}

GetTransactionsOpts Optional parameters for the method 'GetTransactions'

type Global

type Global struct {
	CpuMaps               []GlobalCpuMaps     `json:"cpu_maps,omitempty"`
	Daemon                string              `json:"daemon,omitempty"`
	ExternalCheck         bool                `json:"external_check,omitempty"`
	MasterWorker          bool                `json:"master-worker,omitempty"`
	Maxconn               int32               `json:"maxconn,omitempty"`
	Nbproc                int32               `json:"nbproc,omitempty"`
	Nbthread              int32               `json:"nbthread,omitempty"`
	Pidfile               string              `json:"pidfile,omitempty"`
	RuntimeApis           []GlobalRuntimeApis `json:"runtime_apis,omitempty"`
	SslDefaultBindCiphers string              `json:"ssl_default_bind_ciphers,omitempty"`
	SslDefaultBindOptions string              `json:"ssl_default_bind_options,omitempty"`
	StatsTimeout          *int32              `json:"stats_timeout,omitempty"`
	TuneSslDefaultDhParam int32               `json:"tune_ssl_default_dh_param,omitempty"`
}

Global HAProxy global configuration

type GlobalApiService

type GlobalApiService service

GlobalApiService GlobalApi service

func (*GlobalApiService) GetGlobal

func (a *GlobalApiService) GetGlobal(ctx _context.Context, localVarOptionals *GetGlobalOpts) (InlineResponse2002, *_nethttp.Response, error)

GetGlobal Return a global part of configuration Returns global part of configuration.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param optional nil or *GetGlobalOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse2002

func (*GlobalApiService) ReplaceGlobal

func (a *GlobalApiService) ReplaceGlobal(ctx _context.Context, global Global, localVarOptionals *ReplaceGlobalOpts) (Global, *_nethttp.Response, error)

ReplaceGlobal Replace global Replace global part of config

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param global
  • @param optional nil or *ReplaceGlobalOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return Global

type GlobalCpuMaps

type GlobalCpuMaps struct {
	CpuSet  string `json:"cpu_set"`
	Process string `json:"process"`
}

GlobalCpuMaps struct for GlobalCpuMaps

type GlobalRuntimeApis

type GlobalRuntimeApis struct {
	Address           string `json:"address"`
	ExposeFdListeners bool   `json:"exposeFdListeners,omitempty"`
	Level             string `json:"level,omitempty"`
	Mode              string `json:"mode,omitempty"`
	Process           string `json:"process,omitempty"`
}

GlobalRuntimeApis struct for GlobalRuntimeApis

type HAProxyConfigurationManagementApiService

type HAProxyConfigurationManagementApiService service

HAProxyConfigurationManagementApiService HAProxyConfigurationManagementApi service

func (*HAProxyConfigurationManagementApiService) CreateAcl

func (a *HAProxyConfigurationManagementApiService) CreateAcl(ctx _context.Context, parentName string, parentType string, acl Acl, localVarOptionals *CreateAclOpts) (Acl, *_nethttp.Response, error)

CreateAcl Add a new ACL line Adds a new ACL line of the specified type in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param parentName Parent name
  • @param parentType Parent type
  • @param acl
  • @param optional nil or *CreateAclOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return Acl

func (*HAProxyConfigurationManagementApiService) CreateBackend

func (a *HAProxyConfigurationManagementApiService) CreateBackend(ctx _context.Context, backend Backend, localVarOptionals *CreateBackendOpts) (Backend, *_nethttp.Response, error)

CreateBackend Add a backend Adds a new backend to the configuration file.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param backend
  • @param optional nil or *CreateBackendOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return Backend

func (*HAProxyConfigurationManagementApiService) CreateBackendSwitchingRule

func (a *HAProxyConfigurationManagementApiService) CreateBackendSwitchingRule(ctx _context.Context, frontend string, backendSwitchingRule BackendSwitchingRule, localVarOptionals *CreateBackendSwitchingRuleOpts) (BackendSwitchingRule, *_nethttp.Response, error)

CreateBackendSwitchingRule Add a new Backend Switching Rule Adds a new Backend Switching Rule of the specified type in the specified frontend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param frontend Frontend name
  • @param backendSwitchingRule
  • @param optional nil or *CreateBackendSwitchingRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return BackendSwitchingRule

func (*HAProxyConfigurationManagementApiService) CreateBind

func (a *HAProxyConfigurationManagementApiService) CreateBind(ctx _context.Context, frontend string, bind Bind, localVarOptionals *CreateBindOpts) (Bind, *_nethttp.Response, error)

CreateBind Add a new bind Adds a new bind in the specified frontend in the configuration file.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param frontend Parent frontend name
  • @param bind
  • @param optional nil or *CreateBindOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return Bind

func (*HAProxyConfigurationManagementApiService) CreateFilter

func (a *HAProxyConfigurationManagementApiService) CreateFilter(ctx _context.Context, parentName string, parentType string, filter Filter, localVarOptionals *CreateFilterOpts) (Filter, *_nethttp.Response, error)

CreateFilter Add a new Filter Adds a new Filter of the specified type in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param parentName Parent name
  • @param parentType Parent type
  • @param filter
  • @param optional nil or *CreateFilterOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return Filter

func (*HAProxyConfigurationManagementApiService) CreateFrontend

func (a *HAProxyConfigurationManagementApiService) CreateFrontend(ctx _context.Context, frontend Frontend, localVarOptionals *CreateFrontendOpts) (Frontend, *_nethttp.Response, error)

CreateFrontend Add a frontend Adds a new frontend to the configuration file.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param frontend
  • @param optional nil or *CreateFrontendOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return Frontend

func (*HAProxyConfigurationManagementApiService) CreateHTTPRequestRule

func (a *HAProxyConfigurationManagementApiService) CreateHTTPRequestRule(ctx _context.Context, parentName string, parentType string, httpRequestRule HttpRequestRule, localVarOptionals *CreateHTTPRequestRuleOpts) (HttpRequestRule, *_nethttp.Response, error)

CreateHTTPRequestRule Add a new HTTP Request Rule Adds a new HTTP Request Rule of the specified type in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param parentName Parent name
  • @param parentType Parent type
  • @param httpRequestRule
  • @param optional nil or *CreateHTTPRequestRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return HttpRequestRule

func (*HAProxyConfigurationManagementApiService) CreateHTTPResponseRule

func (a *HAProxyConfigurationManagementApiService) CreateHTTPResponseRule(ctx _context.Context, parentName string, parentType string, httpResponseRule HttpResponseRule, localVarOptionals *CreateHTTPResponseRuleOpts) (HttpResponseRule, *_nethttp.Response, error)

CreateHTTPResponseRule Add a new HTTP Response Rule Adds a new HTTP Response Rule of the specified type in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param parentName Parent name
  • @param parentType Parent type
  • @param httpResponseRule
  • @param optional nil or *CreateHTTPResponseRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return HttpResponseRule

func (*HAProxyConfigurationManagementApiService) CreateLogTarget

func (a *HAProxyConfigurationManagementApiService) CreateLogTarget(ctx _context.Context, parentName string, parentType string, logTarget LogTarget, localVarOptionals *CreateLogTargetOpts) (LogTarget, *_nethttp.Response, error)

CreateLogTarget Add a new Log Target Adds a new Log Target of the specified type in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param parentName Parent name
  • @param parentType Parent type
  • @param logTarget
  • @param optional nil or *CreateLogTargetOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return LogTarget

func (*HAProxyConfigurationManagementApiService) CreateServer

func (a *HAProxyConfigurationManagementApiService) CreateServer(ctx _context.Context, backend string, server Server, localVarOptionals *CreateServerOpts) (Server, *_nethttp.Response, error)

CreateServer Add a new server Adds a new server in the specified backend in the configuration file.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param backend Parent backend name
  • @param server
  • @param optional nil or *CreateServerOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return Server

func (*HAProxyConfigurationManagementApiService) CreateServerSwitchingRule

func (a *HAProxyConfigurationManagementApiService) CreateServerSwitchingRule(ctx _context.Context, backend string, serverSwitchingRule ServerSwitchingRule, localVarOptionals *CreateServerSwitchingRuleOpts) (ServerSwitchingRule, *_nethttp.Response, error)

CreateServerSwitchingRule Add a new Server Switching Rule Adds a new Server Switching Rule of the specified type in the specified backend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param backend Backend name
  • @param serverSwitchingRule
  • @param optional nil or *CreateServerSwitchingRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return ServerSwitchingRule

func (*HAProxyConfigurationManagementApiService) CreateStickRule

func (a *HAProxyConfigurationManagementApiService) CreateStickRule(ctx _context.Context, backend string, stickRule StickRule, localVarOptionals *CreateStickRuleOpts) (StickRule, *_nethttp.Response, error)

CreateStickRule Add a new Stick Rule Adds a new Stick Rule of the specified type in the specified backend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param backend Backend name
  • @param stickRule
  • @param optional nil or *CreateStickRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return StickRule

func (*HAProxyConfigurationManagementApiService) CreateTCPRequestRule

func (a *HAProxyConfigurationManagementApiService) CreateTCPRequestRule(ctx _context.Context, parentName string, parentType string, tcpRequestRule TcpRequestRule, localVarOptionals *CreateTCPRequestRuleOpts) (TcpRequestRule, *_nethttp.Response, error)

CreateTCPRequestRule Add a new TCP Request Rule Adds a new TCP Request Rule of the specified type in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param parentName Parent name
  • @param parentType Parent type
  • @param tcpRequestRule
  • @param optional nil or *CreateTCPRequestRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return TcpRequestRule

func (*HAProxyConfigurationManagementApiService) CreateTCPResponseRule

func (a *HAProxyConfigurationManagementApiService) CreateTCPResponseRule(ctx _context.Context, backend string, tcpResponseRule TcpResponseRule, localVarOptionals *CreateTCPResponseRuleOpts) (TcpResponseRule, *_nethttp.Response, error)

CreateTCPResponseRule Add a new TCP Response Rule Adds a new TCP Response Rule of the specified type in the specified backend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param backend Parent backend name
  • @param tcpResponseRule
  • @param optional nil or *CreateTCPResponseRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return TcpResponseRule

func (*HAProxyConfigurationManagementApiService) DeleteAcl

func (a *HAProxyConfigurationManagementApiService) DeleteAcl(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *DeleteAclOpts) (*_nethttp.Response, error)

DeleteAcl Delete a ACL line Deletes a ACL line configuration by it's ID from the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id ACL line ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *DeleteAclOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

func (*HAProxyConfigurationManagementApiService) DeleteBackend

func (a *HAProxyConfigurationManagementApiService) DeleteBackend(ctx _context.Context, name string, localVarOptionals *DeleteBackendOpts) (*_nethttp.Response, error)

DeleteBackend Delete a backend Deletes a frontend from the configuration by it's name.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param name Backend name
  • @param optional nil or *DeleteBackendOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

func (*HAProxyConfigurationManagementApiService) DeleteBackendSwitchingRule

func (a *HAProxyConfigurationManagementApiService) DeleteBackendSwitchingRule(ctx _context.Context, id int32, frontend string, localVarOptionals *DeleteBackendSwitchingRuleOpts) (*_nethttp.Response, error)

DeleteBackendSwitchingRule Delete a Backend Switching Rule Deletes a Backend Switching Rule configuration by it's ID from the specified frontend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id Switching Rule ID
  • @param frontend Frontend name
  • @param optional nil or *DeleteBackendSwitchingRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

func (*HAProxyConfigurationManagementApiService) DeleteBind

func (a *HAProxyConfigurationManagementApiService) DeleteBind(ctx _context.Context, name string, frontend string, localVarOptionals *DeleteBindOpts) (*_nethttp.Response, error)

DeleteBind Delete a bind Deletes a bind configuration by it's name in the specified frontend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param name Bind name
  • @param frontend Parent frontend name
  • @param optional nil or *DeleteBindOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

func (*HAProxyConfigurationManagementApiService) DeleteFilter

func (a *HAProxyConfigurationManagementApiService) DeleteFilter(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *DeleteFilterOpts) (*_nethttp.Response, error)

DeleteFilter Delete a Filter Deletes a Filter configuration by it's ID from the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id Filter ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *DeleteFilterOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

func (*HAProxyConfigurationManagementApiService) DeleteFrontend

func (a *HAProxyConfigurationManagementApiService) DeleteFrontend(ctx _context.Context, name string, localVarOptionals *DeleteFrontendOpts) (*_nethttp.Response, error)

DeleteFrontend Delete a frontend Deletes a frontend from the configuration by it's name.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param name Frontend name
  • @param optional nil or *DeleteFrontendOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

func (*HAProxyConfigurationManagementApiService) DeleteHTTPRequestRule

func (a *HAProxyConfigurationManagementApiService) DeleteHTTPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *DeleteHTTPRequestRuleOpts) (*_nethttp.Response, error)

DeleteHTTPRequestRule Delete a HTTP Request Rule Deletes a HTTP Request Rule configuration by it's ID from the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id HTTP Request Rule ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *DeleteHTTPRequestRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

func (*HAProxyConfigurationManagementApiService) DeleteHTTPResponseRule

func (a *HAProxyConfigurationManagementApiService) DeleteHTTPResponseRule(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *DeleteHTTPResponseRuleOpts) (*_nethttp.Response, error)

DeleteHTTPResponseRule Delete a HTTP Response Rule Deletes a HTTP Response Rule configuration by it's ID from the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id HTTP Response Rule ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *DeleteHTTPResponseRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

func (*HAProxyConfigurationManagementApiService) DeleteLogTarget

func (a *HAProxyConfigurationManagementApiService) DeleteLogTarget(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *DeleteLogTargetOpts) (*_nethttp.Response, error)

DeleteLogTarget Delete a Log Target Deletes a Log Target configuration by it's ID from the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id Log Target ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *DeleteLogTargetOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

func (*HAProxyConfigurationManagementApiService) DeleteServer

func (a *HAProxyConfigurationManagementApiService) DeleteServer(ctx _context.Context, name string, backend string, localVarOptionals *DeleteServerOpts) (*_nethttp.Response, error)

DeleteServer Delete a server Deletes a server configuration by it's name in the specified backend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param name Server name
  • @param backend Parent backend name
  • @param optional nil or *DeleteServerOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

func (*HAProxyConfigurationManagementApiService) DeleteServerSwitchingRule

func (a *HAProxyConfigurationManagementApiService) DeleteServerSwitchingRule(ctx _context.Context, id int32, backend string, localVarOptionals *DeleteServerSwitchingRuleOpts) (*_nethttp.Response, error)

DeleteServerSwitchingRule Delete a Server Switching Rule Deletes a Server Switching Rule configuration by it's ID from the specified backend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id Switching Rule ID
  • @param backend Backend name
  • @param optional nil or *DeleteServerSwitchingRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

func (*HAProxyConfigurationManagementApiService) DeleteStickRule

func (a *HAProxyConfigurationManagementApiService) DeleteStickRule(ctx _context.Context, id int32, backend string, localVarOptionals *DeleteStickRuleOpts) (*_nethttp.Response, error)

DeleteStickRule Delete a Stick Rule Deletes a Stick Rule configuration by it's ID from the specified backend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id Stick Rule ID
  • @param backend Backend name
  • @param optional nil or *DeleteStickRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

func (*HAProxyConfigurationManagementApiService) DeleteTCPRequestRule

func (a *HAProxyConfigurationManagementApiService) DeleteTCPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *DeleteTCPRequestRuleOpts) (*_nethttp.Response, error)

DeleteTCPRequestRule Delete a TCP Request Rule Deletes a TCP Request Rule configuration by it's ID from the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id TCP Request Rule ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *DeleteTCPRequestRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

func (*HAProxyConfigurationManagementApiService) DeleteTCPResponseRule

func (a *HAProxyConfigurationManagementApiService) DeleteTCPResponseRule(ctx _context.Context, id int32, backend string, localVarOptionals *DeleteTCPResponseRuleOpts) (*_nethttp.Response, error)

DeleteTCPResponseRule Delete a TCP Response Rule Deletes a TCP Response Rule configuration by it's ID from the specified backend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id TCP Response Rule ID
  • @param backend Parent backend name
  • @param optional nil or *DeleteTCPResponseRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

func (*HAProxyConfigurationManagementApiService) GetAcl

func (a *HAProxyConfigurationManagementApiService) GetAcl(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *GetAclOpts) (InlineResponse20031, *_nethttp.Response, error)

GetAcl Return one ACL line Returns one ACL line configuration by it's ID in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id ACL line ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *GetAclOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20031

func (*HAProxyConfigurationManagementApiService) GetAcls

func (a *HAProxyConfigurationManagementApiService) GetAcls(ctx _context.Context, parentName string, parentType string, localVarOptionals *GetAclsOpts) (InlineResponse20030, *_nethttp.Response, error)

GetAcls Return an array of all ACL lines Returns all ACL lines that are configured in specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *GetAclsOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20030

func (*HAProxyConfigurationManagementApiService) GetBackend

GetBackend Return a backend Returns one backend configuration by it's name.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param name Backend name
  • @param optional nil or *GetBackendOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse2007

func (*HAProxyConfigurationManagementApiService) GetBackendSwitchingRule

func (a *HAProxyConfigurationManagementApiService) GetBackendSwitchingRule(ctx _context.Context, id int32, frontend string, localVarOptionals *GetBackendSwitchingRuleOpts) (InlineResponse20021, *_nethttp.Response, error)

GetBackendSwitchingRule Return one Backend Switching Rule Returns one Backend Switching Rule configuration by it's ID in the specified frontend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id Switching Rule ID
  • @param frontend Frontend name
  • @param optional nil or *GetBackendSwitchingRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20021

func (*HAProxyConfigurationManagementApiService) GetBackendSwitchingRules

GetBackendSwitchingRules Return an array of all Backend Switching Rules Returns all Backend Switching Rules that are configured in specified frontend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param frontend Frontend name
  • @param optional nil or *GetBackendSwitchingRulesOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20020

func (*HAProxyConfigurationManagementApiService) GetBackends

GetBackends Return an array of backends Returns an array of all configured backends.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param optional nil or *GetBackendsOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse2006

func (*HAProxyConfigurationManagementApiService) GetBind

GetBind Return one bind Returns one bind configuration by it's name in the specified frontend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param name Bind name
  • @param frontend Parent frontend name
  • @param optional nil or *GetBindOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse2009

func (*HAProxyConfigurationManagementApiService) GetBinds

GetBinds Return an array of binds Returns an array of all binds that are configured in specified frontend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param frontend Parent frontend name
  • @param optional nil or *GetBindsOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse2008

func (*HAProxyConfigurationManagementApiService) GetDefaults

GetDefaults Return defaults part of configuration Returns defaults part of configuration.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param optional nil or *GetDefaultsOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse2003

func (*HAProxyConfigurationManagementApiService) GetFilter

func (a *HAProxyConfigurationManagementApiService) GetFilter(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *GetFilterOpts) (InlineResponse20025, *_nethttp.Response, error)

GetFilter Return one Filter Returns one Filter configuration by it's ID in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id Filter ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *GetFilterOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20025

func (*HAProxyConfigurationManagementApiService) GetFilters

func (a *HAProxyConfigurationManagementApiService) GetFilters(ctx _context.Context, parentName string, parentType string, localVarOptionals *GetFiltersOpts) (InlineResponse20024, *_nethttp.Response, error)

GetFilters Return an array of all Filters Returns all Filters that are configured in specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *GetFiltersOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20024

func (*HAProxyConfigurationManagementApiService) GetFrontend

GetFrontend Return a frontend Returns one frontend configuration by it's name.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param name Frontend name
  • @param optional nil or *GetFrontendOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse2005

func (*HAProxyConfigurationManagementApiService) GetFrontends

GetFrontends Return an array of frontends Returns an array of all configured frontends.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param optional nil or *GetFrontendsOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse2004

func (*HAProxyConfigurationManagementApiService) GetGlobal

GetGlobal Return a global part of configuration Returns global part of configuration.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param optional nil or *GetGlobalOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse2002

func (*HAProxyConfigurationManagementApiService) GetHAProxyConfiguration

GetHAProxyConfiguration Return HAProxy configuration Returns HAProxy configuration file in plain text

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param optional nil or *GetHAProxyConfigurationOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.

@return InlineResponse20032

func (*HAProxyConfigurationManagementApiService) GetHTTPRequestRule

func (a *HAProxyConfigurationManagementApiService) GetHTTPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *GetHTTPRequestRuleOpts) (InlineResponse20013, *_nethttp.Response, error)

GetHTTPRequestRule Return one HTTP Request Rule Returns one HTTP Request Rule configuration by it's ID in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id HTTP Request Rule ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *GetHTTPRequestRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20013

func (*HAProxyConfigurationManagementApiService) GetHTTPRequestRules

func (a *HAProxyConfigurationManagementApiService) GetHTTPRequestRules(ctx _context.Context, parentName string, parentType string, localVarOptionals *GetHTTPRequestRulesOpts) (InlineResponse20012, *_nethttp.Response, error)

GetHTTPRequestRules Return an array of all HTTP Request Rules Returns all HTTP Request Rules that are configured in specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *GetHTTPRequestRulesOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20012

func (*HAProxyConfigurationManagementApiService) GetHTTPResponseRule

func (a *HAProxyConfigurationManagementApiService) GetHTTPResponseRule(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *GetHTTPResponseRuleOpts) (InlineResponse20015, *_nethttp.Response, error)

GetHTTPResponseRule Return one HTTP Response Rule Returns one HTTP Response Rule configuration by it's ID in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id HTTP Response Rule ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *GetHTTPResponseRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20015

func (*HAProxyConfigurationManagementApiService) GetHTTPResponseRules

func (a *HAProxyConfigurationManagementApiService) GetHTTPResponseRules(ctx _context.Context, parentName string, parentType string, localVarOptionals *GetHTTPResponseRulesOpts) (InlineResponse20014, *_nethttp.Response, error)

GetHTTPResponseRules Return an array of all HTTP Response Rules Returns all HTTP Response Rules that are configured in specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *GetHTTPResponseRulesOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20014

func (*HAProxyConfigurationManagementApiService) GetLogTarget

func (a *HAProxyConfigurationManagementApiService) GetLogTarget(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *GetLogTargetOpts) (InlineResponse20029, *_nethttp.Response, error)

GetLogTarget Return one Log Target Returns one Log Target configuration by it's ID in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id Log Target ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *GetLogTargetOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20029

func (*HAProxyConfigurationManagementApiService) GetLogTargets

func (a *HAProxyConfigurationManagementApiService) GetLogTargets(ctx _context.Context, parentName string, parentType string, localVarOptionals *GetLogTargetsOpts) (InlineResponse20028, *_nethttp.Response, error)

GetLogTargets Return an array of all Log Targets Returns all Log Targets that are configured in specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *GetLogTargetsOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20028

func (*HAProxyConfigurationManagementApiService) GetServer

GetServer Return one server Returns one server configuration by it's name in the specified backend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param name Server name
  • @param backend Parent backend name
  • @param optional nil or *GetServerOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20011

func (*HAProxyConfigurationManagementApiService) GetServerSwitchingRule

GetServerSwitchingRule Return one Server Switching Rule Returns one Server Switching Rule configuration by it's ID in the specified backend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id Switching Rule ID
  • @param backend Backend name
  • @param optional nil or *GetServerSwitchingRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20023

func (*HAProxyConfigurationManagementApiService) GetServerSwitchingRules

GetServerSwitchingRules Return an array of all Server Switching Rules Returns all Backend Switching Rules that are configured in specified backend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param backend Backend name
  • @param optional nil or *GetServerSwitchingRulesOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20022

func (*HAProxyConfigurationManagementApiService) GetServers

GetServers Return an array of servers Returns an array of all servers that are configured in specified backend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param backend Parent backend name
  • @param optional nil or *GetServersOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20010

func (*HAProxyConfigurationManagementApiService) GetStickRule

GetStickRule Return one Stick Rule Returns one Stick Rule configuration by it's ID in the specified backend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id Stick Rule ID
  • @param backend Backend name
  • @param optional nil or *GetStickRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20027

func (*HAProxyConfigurationManagementApiService) GetStickRules

GetStickRules Return an array of all Stick Rules Returns all Stick Rules that are configured in specified backend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param backend Backend name
  • @param optional nil or *GetStickRulesOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20026

func (*HAProxyConfigurationManagementApiService) GetTCPRequestRule

func (a *HAProxyConfigurationManagementApiService) GetTCPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *GetTCPRequestRuleOpts) (InlineResponse20017, *_nethttp.Response, error)

GetTCPRequestRule Return one TCP Request Rule Returns one TCP Request Rule configuration by it's ID in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id TCP Request Rule ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *GetTCPRequestRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20017

func (*HAProxyConfigurationManagementApiService) GetTCPRequestRules

func (a *HAProxyConfigurationManagementApiService) GetTCPRequestRules(ctx _context.Context, parentName string, parentType string, localVarOptionals *GetTCPRequestRulesOpts) (InlineResponse20016, *_nethttp.Response, error)

GetTCPRequestRules Return an array of all TCP Request Rules Returns all TCP Request Rules that are configured in specified parent and parent type.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *GetTCPRequestRulesOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20016

func (*HAProxyConfigurationManagementApiService) GetTCPResponseRule

GetTCPResponseRule Return one TCP Response Rule Returns one TCP Response Rule configuration by it's ID in the specified backend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id TCP Response Rule ID
  • @param backend Parent backend name
  • @param optional nil or *GetTCPResponseRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20019

func (*HAProxyConfigurationManagementApiService) GetTCPResponseRules

GetTCPResponseRules Return an array of all TCP Response Rules Returns all TCP Response Rules that are configured in specified backend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param backend Parent backend name
  • @param optional nil or *GetTCPResponseRulesOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20018

func (*HAProxyConfigurationManagementApiService) PostHAProxyConfiguration

func (a *HAProxyConfigurationManagementApiService) PostHAProxyConfiguration(ctx _context.Context, body string, localVarOptionals *PostHAProxyConfigurationOpts) (string, *_nethttp.Response, error)

PostHAProxyConfiguration Push new haproxy configuration Push a new haproxy configuration file in plain text

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param body
  • @param optional nil or *PostHAProxyConfigurationOpts - Optional Parameters:
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return string

func (*HAProxyConfigurationManagementApiService) ReplaceAcl

func (a *HAProxyConfigurationManagementApiService) ReplaceAcl(ctx _context.Context, id int32, parentName string, parentType string, acl Acl, localVarOptionals *ReplaceAclOpts) (Acl, *_nethttp.Response, error)

ReplaceAcl Replace a ACL line Replaces a ACL line configuration by it's ID in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id ACL line ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param acl
  • @param optional nil or *ReplaceAclOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return Acl

func (*HAProxyConfigurationManagementApiService) ReplaceBackend

func (a *HAProxyConfigurationManagementApiService) ReplaceBackend(ctx _context.Context, name string, backend Backend, localVarOptionals *ReplaceBackendOpts) (Backend, *_nethttp.Response, error)

ReplaceBackend Replace a backend Replaces a backend configuration by it's name.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param name Backend name
  • @param backend
  • @param optional nil or *ReplaceBackendOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return Backend

func (*HAProxyConfigurationManagementApiService) ReplaceBackendSwitchingRule

func (a *HAProxyConfigurationManagementApiService) ReplaceBackendSwitchingRule(ctx _context.Context, id int32, frontend string, backendSwitchingRule BackendSwitchingRule, localVarOptionals *ReplaceBackendSwitchingRuleOpts) (BackendSwitchingRule, *_nethttp.Response, error)

ReplaceBackendSwitchingRule Replace a Backend Switching Rule Replaces a Backend Switching Rule configuration by it's ID in the specified frontend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id Switching Rule ID
  • @param frontend Frontend name
  • @param backendSwitchingRule
  • @param optional nil or *ReplaceBackendSwitchingRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return BackendSwitchingRule

func (*HAProxyConfigurationManagementApiService) ReplaceBind

func (a *HAProxyConfigurationManagementApiService) ReplaceBind(ctx _context.Context, name string, frontend string, bind Bind, localVarOptionals *ReplaceBindOpts) (Bind, *_nethttp.Response, error)

ReplaceBind Replace a bind Replaces a bind configuration by it's name in the specified frontend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param name Bind name
  • @param frontend Parent frontend name
  • @param bind
  • @param optional nil or *ReplaceBindOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return Bind

func (*HAProxyConfigurationManagementApiService) ReplaceDefaults

func (a *HAProxyConfigurationManagementApiService) ReplaceDefaults(ctx _context.Context, defaults Defaults, localVarOptionals *ReplaceDefaultsOpts) (Defaults, *_nethttp.Response, error)

ReplaceDefaults Replace defaults Replace defaults part of config

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param defaults
  • @param optional nil or *ReplaceDefaultsOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return Defaults

func (*HAProxyConfigurationManagementApiService) ReplaceFilter

func (a *HAProxyConfigurationManagementApiService) ReplaceFilter(ctx _context.Context, id int32, parentName string, parentType string, filter Filter, localVarOptionals *ReplaceFilterOpts) (Filter, *_nethttp.Response, error)

ReplaceFilter Replace a Filter Replaces a Filter configuration by it's ID in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id Filter ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param filter
  • @param optional nil or *ReplaceFilterOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return Filter

func (*HAProxyConfigurationManagementApiService) ReplaceFrontend

func (a *HAProxyConfigurationManagementApiService) ReplaceFrontend(ctx _context.Context, name string, frontend Frontend, localVarOptionals *ReplaceFrontendOpts) (Frontend, *_nethttp.Response, error)

ReplaceFrontend Replace a frontend Replaces a frontend configuration by it's name.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param name Frontend name
  • @param frontend
  • @param optional nil or *ReplaceFrontendOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return Frontend

func (*HAProxyConfigurationManagementApiService) ReplaceGlobal

func (a *HAProxyConfigurationManagementApiService) ReplaceGlobal(ctx _context.Context, global Global, localVarOptionals *ReplaceGlobalOpts) (Global, *_nethttp.Response, error)

ReplaceGlobal Replace global Replace global part of config

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param global
  • @param optional nil or *ReplaceGlobalOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return Global

func (*HAProxyConfigurationManagementApiService) ReplaceHTTPRequestRule

func (a *HAProxyConfigurationManagementApiService) ReplaceHTTPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, httpRequestRule HttpRequestRule, localVarOptionals *ReplaceHTTPRequestRuleOpts) (HttpRequestRule, *_nethttp.Response, error)

ReplaceHTTPRequestRule Replace a HTTP Request Rule Replaces a HTTP Request Rule configuration by it's ID in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id HTTP Request Rule ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param httpRequestRule
  • @param optional nil or *ReplaceHTTPRequestRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return HttpRequestRule

func (*HAProxyConfigurationManagementApiService) ReplaceHTTPResponseRule

func (a *HAProxyConfigurationManagementApiService) ReplaceHTTPResponseRule(ctx _context.Context, id int32, parentName string, parentType string, httpResponseRule HttpResponseRule, localVarOptionals *ReplaceHTTPResponseRuleOpts) (HttpResponseRule, *_nethttp.Response, error)

ReplaceHTTPResponseRule Replace a HTTP Response Rule Replaces a HTTP Response Rule configuration by it's ID in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id HTTP Response Rule ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param httpResponseRule
  • @param optional nil or *ReplaceHTTPResponseRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return HttpResponseRule

func (*HAProxyConfigurationManagementApiService) ReplaceLogTarget

func (a *HAProxyConfigurationManagementApiService) ReplaceLogTarget(ctx _context.Context, id int32, parentName string, parentType string, logTarget LogTarget, localVarOptionals *ReplaceLogTargetOpts) (LogTarget, *_nethttp.Response, error)

ReplaceLogTarget Replace a Log Target Replaces a Log Target configuration by it's ID in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id Log Target ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param logTarget
  • @param optional nil or *ReplaceLogTargetOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return LogTarget

func (*HAProxyConfigurationManagementApiService) ReplaceServer

func (a *HAProxyConfigurationManagementApiService) ReplaceServer(ctx _context.Context, name string, backend string, server Server, localVarOptionals *ReplaceServerOpts) (Server, *_nethttp.Response, error)

ReplaceServer Replace a server Replaces a server configuration by it's name in the specified backend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param name Server name
  • @param backend Parent backend name
  • @param server
  • @param optional nil or *ReplaceServerOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return Server

func (*HAProxyConfigurationManagementApiService) ReplaceServerSwitchingRule

func (a *HAProxyConfigurationManagementApiService) ReplaceServerSwitchingRule(ctx _context.Context, id int32, backend string, serverSwitchingRule ServerSwitchingRule, localVarOptionals *ReplaceServerSwitchingRuleOpts) (ServerSwitchingRule, *_nethttp.Response, error)

ReplaceServerSwitchingRule Replace a Server Switching Rule Replaces a Server Switching Rule configuration by it's ID in the specified backend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id Switching Rule ID
  • @param backend Backend name
  • @param serverSwitchingRule
  • @param optional nil or *ReplaceServerSwitchingRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return ServerSwitchingRule

func (*HAProxyConfigurationManagementApiService) ReplaceStickRule

func (a *HAProxyConfigurationManagementApiService) ReplaceStickRule(ctx _context.Context, id int32, backend string, stickRule StickRule, localVarOptionals *ReplaceStickRuleOpts) (StickRule, *_nethttp.Response, error)

ReplaceStickRule Replace a Stick Rule Replaces a Stick Rule configuration by it's ID in the specified backend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id Stick Rule ID
  • @param backend Backend name
  • @param stickRule
  • @param optional nil or *ReplaceStickRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return StickRule

func (*HAProxyConfigurationManagementApiService) ReplaceTCPRequestRule

func (a *HAProxyConfigurationManagementApiService) ReplaceTCPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, tcpRequestRule TcpRequestRule, localVarOptionals *ReplaceTCPRequestRuleOpts) (TcpRequestRule, *_nethttp.Response, error)

ReplaceTCPRequestRule Replace a TCP Request Rule Replaces a TCP Request Rule configuration by it's ID in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id TCP Request Rule ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param tcpRequestRule
  • @param optional nil or *ReplaceTCPRequestRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return TcpRequestRule

func (*HAProxyConfigurationManagementApiService) ReplaceTCPResponseRule

func (a *HAProxyConfigurationManagementApiService) ReplaceTCPResponseRule(ctx _context.Context, id int32, backend string, tcpResponseRule TcpResponseRule, localVarOptionals *ReplaceTCPResponseRuleOpts) (TcpResponseRule, *_nethttp.Response, error)

ReplaceTCPResponseRule Replace a TCP Response Rule Replaces a TCP Response Rule configuration by it's ID in the specified backend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id TCP Response Rule ID
  • @param backend Parent backend name
  • @param tcpResponseRule
  • @param optional nil or *ReplaceTCPResponseRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return TcpResponseRule

type HTTPRequestRuleApiService

type HTTPRequestRuleApiService service

HTTPRequestRuleApiService HTTPRequestRuleApi service

func (*HTTPRequestRuleApiService) CreateHTTPRequestRule

func (a *HTTPRequestRuleApiService) CreateHTTPRequestRule(ctx _context.Context, parentName string, parentType string, httpRequestRule HttpRequestRule, localVarOptionals *CreateHTTPRequestRuleOpts) (HttpRequestRule, *_nethttp.Response, error)

CreateHTTPRequestRule Add a new HTTP Request Rule Adds a new HTTP Request Rule of the specified type in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param parentName Parent name
  • @param parentType Parent type
  • @param httpRequestRule
  • @param optional nil or *CreateHTTPRequestRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return HttpRequestRule

func (*HTTPRequestRuleApiService) DeleteHTTPRequestRule

func (a *HTTPRequestRuleApiService) DeleteHTTPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *DeleteHTTPRequestRuleOpts) (*_nethttp.Response, error)

DeleteHTTPRequestRule Delete a HTTP Request Rule Deletes a HTTP Request Rule configuration by it's ID from the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id HTTP Request Rule ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *DeleteHTTPRequestRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

func (*HTTPRequestRuleApiService) GetHTTPRequestRule

func (a *HTTPRequestRuleApiService) GetHTTPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *GetHTTPRequestRuleOpts) (InlineResponse20013, *_nethttp.Response, error)

GetHTTPRequestRule Return one HTTP Request Rule Returns one HTTP Request Rule configuration by it's ID in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id HTTP Request Rule ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *GetHTTPRequestRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20013

func (*HTTPRequestRuleApiService) GetHTTPRequestRules

func (a *HTTPRequestRuleApiService) GetHTTPRequestRules(ctx _context.Context, parentName string, parentType string, localVarOptionals *GetHTTPRequestRulesOpts) (InlineResponse20012, *_nethttp.Response, error)

GetHTTPRequestRules Return an array of all HTTP Request Rules Returns all HTTP Request Rules that are configured in specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *GetHTTPRequestRulesOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20012

func (*HTTPRequestRuleApiService) ReplaceHTTPRequestRule

func (a *HTTPRequestRuleApiService) ReplaceHTTPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, httpRequestRule HttpRequestRule, localVarOptionals *ReplaceHTTPRequestRuleOpts) (HttpRequestRule, *_nethttp.Response, error)

ReplaceHTTPRequestRule Replace a HTTP Request Rule Replaces a HTTP Request Rule configuration by it's ID in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id HTTP Request Rule ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param httpRequestRule
  • @param optional nil or *ReplaceHTTPRequestRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return HttpRequestRule

type HTTPResponseRuleApiService

type HTTPResponseRuleApiService service

HTTPResponseRuleApiService HTTPResponseRuleApi service

func (*HTTPResponseRuleApiService) CreateHTTPResponseRule

func (a *HTTPResponseRuleApiService) CreateHTTPResponseRule(ctx _context.Context, parentName string, parentType string, httpResponseRule HttpResponseRule, localVarOptionals *CreateHTTPResponseRuleOpts) (HttpResponseRule, *_nethttp.Response, error)

CreateHTTPResponseRule Add a new HTTP Response Rule Adds a new HTTP Response Rule of the specified type in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param parentName Parent name
  • @param parentType Parent type
  • @param httpResponseRule
  • @param optional nil or *CreateHTTPResponseRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return HttpResponseRule

func (*HTTPResponseRuleApiService) DeleteHTTPResponseRule

func (a *HTTPResponseRuleApiService) DeleteHTTPResponseRule(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *DeleteHTTPResponseRuleOpts) (*_nethttp.Response, error)

DeleteHTTPResponseRule Delete a HTTP Response Rule Deletes a HTTP Response Rule configuration by it's ID from the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id HTTP Response Rule ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *DeleteHTTPResponseRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

func (*HTTPResponseRuleApiService) GetHTTPResponseRule

func (a *HTTPResponseRuleApiService) GetHTTPResponseRule(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *GetHTTPResponseRuleOpts) (InlineResponse20015, *_nethttp.Response, error)

GetHTTPResponseRule Return one HTTP Response Rule Returns one HTTP Response Rule configuration by it's ID in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id HTTP Response Rule ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *GetHTTPResponseRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20015

func (*HTTPResponseRuleApiService) GetHTTPResponseRules

func (a *HTTPResponseRuleApiService) GetHTTPResponseRules(ctx _context.Context, parentName string, parentType string, localVarOptionals *GetHTTPResponseRulesOpts) (InlineResponse20014, *_nethttp.Response, error)

GetHTTPResponseRules Return an array of all HTTP Response Rules Returns all HTTP Response Rules that are configured in specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *GetHTTPResponseRulesOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20014

func (*HTTPResponseRuleApiService) ReplaceHTTPResponseRule

func (a *HTTPResponseRuleApiService) ReplaceHTTPResponseRule(ctx _context.Context, id int32, parentName string, parentType string, httpResponseRule HttpResponseRule, localVarOptionals *ReplaceHTTPResponseRuleOpts) (HttpResponseRule, *_nethttp.Response, error)

ReplaceHTTPResponseRule Replace a HTTP Response Rule Replaces a HTTP Response Rule configuration by it's ID in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id HTTP Response Rule ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param httpResponseRule
  • @param optional nil or *ReplaceHTTPResponseRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return HttpResponseRule

type HttpRequestRule

type HttpRequestRule struct {
	AclFile     string `json:"acl_file,omitempty"`
	AclKeyfmt   string `json:"acl_keyfmt,omitempty"`
	AuthRealm   string `json:"auth_realm,omitempty"`
	Cond        string `json:"cond,omitempty"`
	CondTest    string `json:"cond_test,omitempty"`
	DenyStatus  int32  `json:"deny_status,omitempty"`
	HdrFormat   string `json:"hdr_format,omitempty"`
	HdrMatch    string `json:"hdr_match,omitempty"`
	HdrName     string `json:"hdr_name,omitempty"`
	Id          *int32 `json:"id"`
	LogLevel    string `json:"log_level,omitempty"`
	QueryFmt    string `json:"query-fmt,omitempty"`
	RedirCode   int32  `json:"redir_code,omitempty"`
	RedirOption string `json:"redir_option,omitempty"`
	RedirType   string `json:"redir_type,omitempty"`
	RedirValue  string `json:"redir_value,omitempty"`
	SpoeEngine  string `json:"spoe_engine,omitempty"`
	SpoeGroup   string `json:"spoe_group,omitempty"`
	Type        string `json:"type"`
	UriFmt      string `json:"uri-fmt,omitempty"`
	VarExpr     string `json:"var_expr,omitempty"`
	VarName     string `json:"var_name,omitempty"`
	VarScope    string `json:"var_scope,omitempty"`
}

HttpRequestRule HAProxy HTTP request rule configuration (corresponds to http-request directives)

type HttpResponseRule

type HttpResponseRule struct {
	AclFile      string `json:"acl_file,omitempty"`
	AclKeyfmt    string `json:"acl_keyfmt,omitempty"`
	Cond         string `json:"cond,omitempty"`
	CondTest     string `json:"cond_test,omitempty"`
	HdrFormat    string `json:"hdr_format,omitempty"`
	HdrMatch     string `json:"hdr_match,omitempty"`
	HdrName      string `json:"hdr_name,omitempty"`
	Id           *int32 `json:"id"`
	LogLevel     string `json:"log_level,omitempty"`
	RedirCode    int32  `json:"redir_code,omitempty"`
	RedirOption  string `json:"redir_option,omitempty"`
	RedirType    string `json:"redir_type,omitempty"`
	RedirValue   string `json:"redir_value,omitempty"`
	SpoeEngine   string `json:"spoe_engine,omitempty"`
	SpoeGroup    string `json:"spoe_group,omitempty"`
	Status       int32  `json:"status,omitempty"`
	StatusReason string `json:"status_reason,omitempty"`
	Type         string `json:"type"`
	VarExpr      string `json:"var_expr,omitempty"`
	VarName      string `json:"var_name,omitempty"`
	VarScope     string `json:"var_scope,omitempty"`
}

HttpResponseRule HAProxy HTTP response rule configuration (corresponds to http-response directives)

type Httpchk

type Httpchk struct {
	Method  string `json:"method,omitempty"`
	Uri     string `json:"uri,omitempty"`
	Version string `json:"version,omitempty"`
}

Httpchk struct for Httpchk

type Info

type Info struct {
	Api    InfoApi    `json:"api,omitempty"`
	System InfoSystem `json:"system,omitempty"`
}

Info General API, OS and hardware information

type InfoApi

type InfoApi struct {
	// HAProxy Dataplane API build date
	BuildDate time.Time `json:"build_date,omitempty"`
	// HAProxy Dataplane API version string
	Version string `json:"version,omitempty"`
}

InfoApi struct for InfoApi

type InfoSystem

type InfoSystem struct {
	CpuInfo InfoSystemCpuInfo `json:"cpu_info,omitempty"`
	// Hostname where the HAProxy is running
	Hostname string            `json:"hostname,omitempty"`
	MemInfo  InfoSystemMemInfo `json:"mem_info,omitempty"`
	// OS string
	OsString string `json:"os_string,omitempty"`
	// Current time in milliseconds since Epoch.
	Time int32 `json:"time,omitempty"`
	// System uptime
	Uptime *int32 `json:"uptime,omitempty"`
}

InfoSystem struct for InfoSystem

type InfoSystemCpuInfo

type InfoSystemCpuInfo struct {
	Model string `json:"model,omitempty"`
	// Number of logical CPUs
	NumCpus int32 `json:"num_cpus,omitempty"`
}

InfoSystemCpuInfo struct for InfoSystemCpuInfo

type InfoSystemMemInfo

type InfoSystemMemInfo struct {
	DataplaneapiMemory int32 `json:"dataplaneapi_memory,omitempty"`
	FreeMemory         int32 `json:"free_memory,omitempty"`
	TotalMemory        int32 `json:"total_memory,omitempty"`
}

InfoSystemMemInfo struct for InfoSystemMemInfo

type InformationApiService

type InformationApiService service

InformationApiService InformationApi service

func (*InformationApiService) GetHaproxyProcessInfo

func (a *InformationApiService) GetHaproxyProcessInfo(ctx _context.Context) (ProcessInfo, *_nethttp.Response, error)

GetHaproxyProcessInfo Return HAProxy process information Return HAProxy process information

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().

@return ProcessInfo

func (*InformationApiService) GetInfo

GetInfo Return API, hardware and OS information Return API, hardware and OS information

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().

@return Info

type InlineResponse200

type InlineResponse200 struct {
	Version int32 `json:"_version,omitempty"`
	// Sites array. Sites are considered as one service and all farms connected to that service. Farms are connected to service using use-backend and default_backend directives. Sites let you configure simple HAProxy configurations, for more advanced options use /haproxy/configuration endpoints.
	Data []Site `json:"data"`
}

InlineResponse200 struct for InlineResponse200

type InlineResponse2001

type InlineResponse2001 struct {
	Version int32 `json:"_version,omitempty"`
	Data    Site  `json:"data,omitempty"`
}

InlineResponse2001 struct for InlineResponse2001

type InlineResponse20010

type InlineResponse20010 struct {
	Version int32 `json:"_version,omitempty"`
	// HAProxy backend servers array
	Data []Server `json:"data"`
}

InlineResponse20010 struct for InlineResponse20010

type InlineResponse20011

type InlineResponse20011 struct {
	Version int32  `json:"_version,omitempty"`
	Data    Server `json:"data,omitempty"`
}

InlineResponse20011 struct for InlineResponse20011

type InlineResponse20012

type InlineResponse20012 struct {
	Version int32 `json:"_version,omitempty"`
	// HAProxy HTTP request rules array (corresponds to http-request directives)
	Data []HttpRequestRule `json:"data"`
}

InlineResponse20012 struct for InlineResponse20012

type InlineResponse20013

type InlineResponse20013 struct {
	Version int32           `json:"_version,omitempty"`
	Data    HttpRequestRule `json:"data,omitempty"`
}

InlineResponse20013 struct for InlineResponse20013

type InlineResponse20014

type InlineResponse20014 struct {
	Version int32 `json:"_version,omitempty"`
	// HAProxy HTTP response rules array (corresponds to http-response directives)
	Data []HttpResponseRule `json:"data"`
}

InlineResponse20014 struct for InlineResponse20014

type InlineResponse20015

type InlineResponse20015 struct {
	Version int32            `json:"_version,omitempty"`
	Data    HttpResponseRule `json:"data,omitempty"`
}

InlineResponse20015 struct for InlineResponse20015

type InlineResponse20016

type InlineResponse20016 struct {
	Version int32 `json:"_version,omitempty"`
	// HAProxy TCP request rules array (corresponds to tcp-request directive)
	Data []TcpRequestRule `json:"data"`
}

InlineResponse20016 struct for InlineResponse20016

type InlineResponse20017

type InlineResponse20017 struct {
	Version int32          `json:"_version,omitempty"`
	Data    TcpRequestRule `json:"data,omitempty"`
}

InlineResponse20017 struct for InlineResponse20017

type InlineResponse20018

type InlineResponse20018 struct {
	Version int32 `json:"_version,omitempty"`
	// HAProxy TCP response rules array (corresponds to tcp-response directive)
	Data []TcpResponseRule `json:"data"`
}

InlineResponse20018 struct for InlineResponse20018

type InlineResponse20019

type InlineResponse20019 struct {
	Version int32           `json:"_version,omitempty"`
	Data    TcpResponseRule `json:"data,omitempty"`
}

InlineResponse20019 struct for InlineResponse20019

type InlineResponse2002

type InlineResponse2002 struct {
	Version int32  `json:"_version,omitempty"`
	Data    Global `json:"data,omitempty"`
}

InlineResponse2002 struct for InlineResponse2002

type InlineResponse20020

type InlineResponse20020 struct {
	Version int32 `json:"_version,omitempty"`
	// HAProxy backend switching rules array (corresponds to use_backend directives)
	Data []BackendSwitchingRule `json:"data"`
}

InlineResponse20020 struct for InlineResponse20020

type InlineResponse20021

type InlineResponse20021 struct {
	Version int32                `json:"_version,omitempty"`
	Data    BackendSwitchingRule `json:"data,omitempty"`
}

InlineResponse20021 struct for InlineResponse20021

type InlineResponse20022

type InlineResponse20022 struct {
	Version int32 `json:"_version,omitempty"`
	// HAProxy backend server switching rules array (corresponds to use-server directives)
	Data []ServerSwitchingRule `json:"data"`
}

InlineResponse20022 struct for InlineResponse20022

type InlineResponse20023

type InlineResponse20023 struct {
	Version int32               `json:"_version,omitempty"`
	Data    ServerSwitchingRule `json:"data,omitempty"`
}

InlineResponse20023 struct for InlineResponse20023

type InlineResponse20024

type InlineResponse20024 struct {
	Version int32 `json:"_version,omitempty"`
	// HAProxy filters array (corresponds to filter directive)
	Data []Filter `json:"data"`
}

InlineResponse20024 struct for InlineResponse20024

type InlineResponse20025

type InlineResponse20025 struct {
	Version int32  `json:"_version,omitempty"`
	Data    Filter `json:"data,omitempty"`
}

InlineResponse20025 struct for InlineResponse20025

type InlineResponse20026

type InlineResponse20026 struct {
	Version int32 `json:"_version,omitempty"`
	// HAProxy backend stick rules array (corresponds to stick store-request, stick match, stick on, stick store-response)
	Data []StickRule `json:"data"`
}

InlineResponse20026 struct for InlineResponse20026

type InlineResponse20027

type InlineResponse20027 struct {
	Version int32     `json:"_version,omitempty"`
	Data    StickRule `json:"data,omitempty"`
}

InlineResponse20027 struct for InlineResponse20027

type InlineResponse20028

type InlineResponse20028 struct {
	Version int32 `json:"_version,omitempty"`
	// HAProxy log target array (corresponds to log directives)
	Data []LogTarget `json:"data"`
}

InlineResponse20028 struct for InlineResponse20028

type InlineResponse20029

type InlineResponse20029 struct {
	Version int32     `json:"_version,omitempty"`
	Data    LogTarget `json:"data,omitempty"`
}

InlineResponse20029 struct for InlineResponse20029

type InlineResponse2003

type InlineResponse2003 struct {
	Version int32    `json:"_version,omitempty"`
	Data    Defaults `json:"data,omitempty"`
}

InlineResponse2003 struct for InlineResponse2003

type InlineResponse20030

type InlineResponse20030 struct {
	Version int32 `json:"_version,omitempty"`
	// HAProxy ACL lines array (corresponds to acl directives)
	Data []Acl `json:"data"`
}

InlineResponse20030 struct for InlineResponse20030

type InlineResponse20031

type InlineResponse20031 struct {
	Version int32 `json:"_version,omitempty"`
	Data    Acl   `json:"data,omitempty"`
}

InlineResponse20031 struct for InlineResponse20031

type InlineResponse20032

type InlineResponse20032 struct {
	Version int32  `json:"_version,omitempty"`
	Data    string `json:"data"`
}

InlineResponse20032 struct for InlineResponse20032

type InlineResponse2004

type InlineResponse2004 struct {
	Version int32 `json:"_version,omitempty"`
	// HAProxy frontends array
	Data []Frontend `json:"data"`
}

InlineResponse2004 struct for InlineResponse2004

type InlineResponse2005

type InlineResponse2005 struct {
	Version int32    `json:"_version,omitempty"`
	Data    Frontend `json:"data,omitempty"`
}

InlineResponse2005 struct for InlineResponse2005

type InlineResponse2006

type InlineResponse2006 struct {
	Version int32 `json:"_version,omitempty"`
	// HAProxy backends array
	Data []Backend `json:"data"`
}

InlineResponse2006 struct for InlineResponse2006

type InlineResponse2007

type InlineResponse2007 struct {
	Version int32   `json:"_version,omitempty"`
	Data    Backend `json:"data,omitempty"`
}

InlineResponse2007 struct for InlineResponse2007

type InlineResponse2008

type InlineResponse2008 struct {
	Version int32 `json:"_version,omitempty"`
	// HAProxy frontend binds array (corresponds to bind directives)
	Data []Bind `json:"data"`
}

InlineResponse2008 struct for InlineResponse2008

type InlineResponse2009

type InlineResponse2009 struct {
	Version int32 `json:"_version,omitempty"`
	Data    Bind  `json:"data,omitempty"`
}

InlineResponse2009 struct for InlineResponse2009

type LogTarget

type LogTarget struct {
	Address  string `json:"address,omitempty"`
	Facility string `json:"facility,omitempty"`
	Format   string `json:"format,omitempty"`
	Global   bool   `json:"global,omitempty"`
	Id       *int32 `json:"id"`
	Length   int32  `json:"length,omitempty"`
	Level    string `json:"level,omitempty"`
	Minlevel string `json:"minlevel,omitempty"`
	Nolog    bool   `json:"nolog,omitempty"`
}

LogTarget Per-instance logging of events and traffic.

type LogTargetApiService

type LogTargetApiService service

LogTargetApiService LogTargetApi service

func (*LogTargetApiService) CreateLogTarget

func (a *LogTargetApiService) CreateLogTarget(ctx _context.Context, parentName string, parentType string, logTarget LogTarget, localVarOptionals *CreateLogTargetOpts) (LogTarget, *_nethttp.Response, error)

CreateLogTarget Add a new Log Target Adds a new Log Target of the specified type in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param parentName Parent name
  • @param parentType Parent type
  • @param logTarget
  • @param optional nil or *CreateLogTargetOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return LogTarget

func (*LogTargetApiService) DeleteLogTarget

func (a *LogTargetApiService) DeleteLogTarget(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *DeleteLogTargetOpts) (*_nethttp.Response, error)

DeleteLogTarget Delete a Log Target Deletes a Log Target configuration by it's ID from the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id Log Target ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *DeleteLogTargetOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

func (*LogTargetApiService) GetLogTarget

func (a *LogTargetApiService) GetLogTarget(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *GetLogTargetOpts) (InlineResponse20029, *_nethttp.Response, error)

GetLogTarget Return one Log Target Returns one Log Target configuration by it's ID in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id Log Target ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *GetLogTargetOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20029

func (*LogTargetApiService) GetLogTargets

func (a *LogTargetApiService) GetLogTargets(ctx _context.Context, parentName string, parentType string, localVarOptionals *GetLogTargetsOpts) (InlineResponse20028, *_nethttp.Response, error)

GetLogTargets Return an array of all Log Targets Returns all Log Targets that are configured in specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *GetLogTargetsOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20028

func (*LogTargetApiService) ReplaceLogTarget

func (a *LogTargetApiService) ReplaceLogTarget(ctx _context.Context, id int32, parentName string, parentType string, logTarget LogTarget, localVarOptionals *ReplaceLogTargetOpts) (LogTarget, *_nethttp.Response, error)

ReplaceLogTarget Replace a Log Target Replaces a Log Target configuration by it's ID in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id Log Target ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param logTarget
  • @param optional nil or *ReplaceLogTargetOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return LogTarget

type ModelError

type ModelError struct {
	Code    *int32  `json:"code"`
	Message *string `json:"message"`
}

ModelError API Error

type NativeStat

type NativeStat struct {
	BackendName string          `json:"backend_name,omitempty"`
	Name        string          `json:"name,omitempty"`
	Stats       NativeStatStats `json:"stats,omitempty"`
	Type        string          `json:"type,omitempty"`
}

NativeStat Current stats for one object.

type NativeStatStats

type NativeStatStats struct {
	Act           *int32 `json:"act,omitempty"`
	Addr          string `json:"addr,omitempty"`
	AgentCode     *int32 `json:"agent_code,omitempty"`
	AgentDesc     string `json:"agent_desc,omitempty"`
	AgentDuration *int32 `json:"agent_duration,omitempty"`
	AgentFall     *int32 `json:"agent_fall,omitempty"`
	AgentHealth   *int32 `json:"agent_health,omitempty"`
	AgentRise     *int32 `json:"agent_rise,omitempty"`
	AgentStatus   string `json:"agent_status,omitempty"`
	Algo          string `json:"algo,omitempty"`
	Bck           *int32 `json:"bck,omitempty"`
	Bin           *int32 `json:"bin,omitempty"`
	Bout          *int32 `json:"bout,omitempty"`
	CheckCode     *int32 `json:"check_code,omitempty"`
	CheckDesc     string `json:"check_desc,omitempty"`
	CheckDuration *int32 `json:"check_duration,omitempty"`
	CheckFall     *int32 `json:"check_fall,omitempty"`
	CheckHealth   *int32 `json:"check_health,omitempty"`
	CheckRise     *int32 `json:"check_rise,omitempty"`
	CheckStatus   string `json:"check_status,omitempty"`
	Chkdown       *int32 `json:"chkdown,omitempty"`
	Chkfail       *int32 `json:"chkfail,omitempty"`
	CliAbrt       *int32 `json:"cli_abrt,omitempty"`
	CompByp       *int32 `json:"comp_byp,omitempty"`
	CompIn        *int32 `json:"comp_in,omitempty"`
	CompOut       *int32 `json:"comp_out,omitempty"`
	CompRsp       *int32 `json:"comp_rsp,omitempty"`
	ConnRate      *int32 `json:"conn_rate,omitempty"`
	ConnRateMax   *int32 `json:"conn_rate_max,omitempty"`
	ConnTot       *int32 `json:"conn_tot,omitempty"`
	Cookie        string `json:"cookie,omitempty"`
	Ctime         *int32 `json:"ctime,omitempty"`
	Dcon          *int32 `json:"dcon,omitempty"`
	Downtime      *int32 `json:"downtime,omitempty"`
	Dreq          *int32 `json:"dreq,omitempty"`
	Dresp         *int32 `json:"dresp,omitempty"`
	Dses          *int32 `json:"dses,omitempty"`
	Econ          *int32 `json:"econ,omitempty"`
	Ereq          *int32 `json:"ereq,omitempty"`
	Eresp         *int32 `json:"eresp,omitempty"`
	Hanafail      string `json:"hanafail,omitempty"`
	Hrsp1xx       *int32 `json:"hrsp_1xx,omitempty"`
	Hrsp2xx       *int32 `json:"hrsp_2xx,omitempty"`
	Hrsp3xx       *int32 `json:"hrsp_3xx,omitempty"`
	Hrsp4xx       *int32 `json:"hrsp_4xx,omitempty"`
	Hrsp5xx       *int32 `json:"hrsp_5xx,omitempty"`
	HrspOther     *int32 `json:"hrsp_other,omitempty"`
	Iid           *int32 `json:"iid,omitempty"`
	Intercepted   *int32 `json:"intercepted,omitempty"`
	Lastchg       *int32 `json:"lastchg,omitempty"`
	Lastsess      *int32 `json:"lastsess,omitempty"`
	Lbtot         *int32 `json:"lbtot,omitempty"`
	Mode          string `json:"mode,omitempty"`
	Pid           *int32 `json:"pid,omitempty"`
	Qcur          *int32 `json:"qcur,omitempty"`
	Qlimit        *int32 `json:"qlimit,omitempty"`
	Qmax          *int32 `json:"qmax,omitempty"`
	Qtime         *int32 `json:"qtime,omitempty"`
	Rate          *int32 `json:"rate,omitempty"`
	RateLim       *int32 `json:"rate_lim,omitempty"`
	RateMax       *int32 `json:"rate_max,omitempty"`
	ReqRate       *int32 `json:"req_rate,omitempty"`
	ReqRateMax    *int32 `json:"req_rate_max,omitempty"`
	ReqTot        *int32 `json:"req_tot,omitempty"`
	Rtime         *int32 `json:"rtime,omitempty"`
	Scur          *int32 `json:"scur,omitempty"`
	Sid           *int32 `json:"sid,omitempty"`
	Slim          *int32 `json:"slim,omitempty"`
	Smax          *int32 `json:"smax,omitempty"`
	SrvAbrt       *int32 `json:"srv_abrt,omitempty"`
	Status        string `json:"status,omitempty"`
	Stot          *int32 `json:"stot,omitempty"`
	Throttle      *int32 `json:"throttle,omitempty"`
	Tracked       *int32 `json:"tracked,omitempty"`
	Ttime         *int32 `json:"ttime,omitempty"`
	Weight        *int32 `json:"weight,omitempty"`
	Wredis        *int32 `json:"wredis,omitempty"`
	Wretr         *int32 `json:"wretr,omitempty"`
}

NativeStatStats struct for NativeStatStats

type PostHAProxyConfigurationOpts

type PostHAProxyConfigurationOpts struct {
	Version     optional.Int32
	ForceReload optional.Bool
}

PostHAProxyConfigurationOpts Optional parameters for the method 'PostHAProxyConfiguration'

type ProcessInfo

type ProcessInfo struct {
	Haproxy ProcessInfoHaproxy `json:"haproxy,omitempty"`
}

ProcessInfo General HAProxy process information

type ProcessInfoHaproxy

type ProcessInfoHaproxy struct {
	// Process id of the replying worker process
	Pid *int32 `json:"pid,omitempty"`
	// Number of spawned processes
	Processes *int32 `json:"processes,omitempty"`
	// HAProxy version release date
	ReleaseDate string `json:"release_date,omitempty"`
	// HAProxy uptime in s
	Uptime *int32 `json:"uptime,omitempty"`
	// HAProxy version string
	Version string `json:"version,omitempty"`
}

ProcessInfoHaproxy struct for ProcessInfoHaproxy

type Redispatch

type Redispatch struct {
	Enabled  string `json:"enabled"`
	Interval int32  `json:"interval,omitempty"`
}

Redispatch struct for Redispatch

type Reload

type Reload struct {
	Id              string `json:"id,omitempty"`
	ReloadTimestamp int32  `json:"reload_timestamp,omitempty"`
	Response        string `json:"response,omitempty"`
	Status          string `json:"status,omitempty"`
}

Reload HAProxy reload

type ReloadsApiService

type ReloadsApiService service

ReloadsApiService ReloadsApi service

func (*ReloadsApiService) GetReload

GetReload Return one HAProxy reload status Returns one HAProxy reload status.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id Reload id

@return Reload

func (*ReloadsApiService) GetReloads

func (a *ReloadsApiService) GetReloads(ctx _context.Context) ([]Reload, *_nethttp.Response, error)

GetReloads Return list of HAProxy Reloads. Returns a list of HAProxy reloads.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().

@return []Reload

type ReplaceAclOpts

type ReplaceAclOpts struct {
	TransactionId optional.String
	Version       optional.Int32
	ForceReload   optional.Bool
}

ReplaceAclOpts Optional parameters for the method 'ReplaceAcl'

type ReplaceBackendOpts

type ReplaceBackendOpts struct {
	TransactionId optional.String
	Version       optional.Int32
	ForceReload   optional.Bool
}

ReplaceBackendOpts Optional parameters for the method 'ReplaceBackend'

type ReplaceBackendSwitchingRuleOpts

type ReplaceBackendSwitchingRuleOpts struct {
	TransactionId optional.String
	Version       optional.Int32
	ForceReload   optional.Bool
}

ReplaceBackendSwitchingRuleOpts Optional parameters for the method 'ReplaceBackendSwitchingRule'

type ReplaceBindOpts

type ReplaceBindOpts struct {
	TransactionId optional.String
	Version       optional.Int32
	ForceReload   optional.Bool
}

ReplaceBindOpts Optional parameters for the method 'ReplaceBind'

type ReplaceDefaultsOpts

type ReplaceDefaultsOpts struct {
	TransactionId optional.String
	Version       optional.Int32
	ForceReload   optional.Bool
}

ReplaceDefaultsOpts Optional parameters for the method 'ReplaceDefaults'

type ReplaceFilterOpts

type ReplaceFilterOpts struct {
	TransactionId optional.String
	Version       optional.Int32
	ForceReload   optional.Bool
}

ReplaceFilterOpts Optional parameters for the method 'ReplaceFilter'

type ReplaceFrontendOpts

type ReplaceFrontendOpts struct {
	TransactionId optional.String
	Version       optional.Int32
	ForceReload   optional.Bool
}

ReplaceFrontendOpts Optional parameters for the method 'ReplaceFrontend'

type ReplaceGlobalOpts

type ReplaceGlobalOpts struct {
	TransactionId optional.String
	Version       optional.Int32
	ForceReload   optional.Bool
}

ReplaceGlobalOpts Optional parameters for the method 'ReplaceGlobal'

type ReplaceHTTPRequestRuleOpts

type ReplaceHTTPRequestRuleOpts struct {
	TransactionId optional.String
	Version       optional.Int32
	ForceReload   optional.Bool
}

ReplaceHTTPRequestRuleOpts Optional parameters for the method 'ReplaceHTTPRequestRule'

type ReplaceHTTPResponseRuleOpts

type ReplaceHTTPResponseRuleOpts struct {
	TransactionId optional.String
	Version       optional.Int32
	ForceReload   optional.Bool
}

ReplaceHTTPResponseRuleOpts Optional parameters for the method 'ReplaceHTTPResponseRule'

type ReplaceLogTargetOpts

type ReplaceLogTargetOpts struct {
	TransactionId optional.String
	Version       optional.Int32
	ForceReload   optional.Bool
}

ReplaceLogTargetOpts Optional parameters for the method 'ReplaceLogTarget'

type ReplaceServerOpts

type ReplaceServerOpts struct {
	TransactionId optional.String
	Version       optional.Int32
	ForceReload   optional.Bool
}

ReplaceServerOpts Optional parameters for the method 'ReplaceServer'

type ReplaceServerSwitchingRuleOpts

type ReplaceServerSwitchingRuleOpts struct {
	TransactionId optional.String
	Version       optional.Int32
	ForceReload   optional.Bool
}

ReplaceServerSwitchingRuleOpts Optional parameters for the method 'ReplaceServerSwitchingRule'

type ReplaceSiteOpts

type ReplaceSiteOpts struct {
	TransactionId optional.String
	Version       optional.Int32
	ForceReload   optional.Bool
}

ReplaceSiteOpts Optional parameters for the method 'ReplaceSite'

type ReplaceStickRuleOpts

type ReplaceStickRuleOpts struct {
	TransactionId optional.String
	Version       optional.Int32
	ForceReload   optional.Bool
}

ReplaceStickRuleOpts Optional parameters for the method 'ReplaceStickRule'

type ReplaceTCPRequestRuleOpts

type ReplaceTCPRequestRuleOpts struct {
	TransactionId optional.String
	Version       optional.Int32
	ForceReload   optional.Bool
}

ReplaceTCPRequestRuleOpts Optional parameters for the method 'ReplaceTCPRequestRule'

type ReplaceTCPResponseRuleOpts

type ReplaceTCPResponseRuleOpts struct {
	TransactionId optional.String
	Version       optional.Int32
	ForceReload   optional.Bool
}

ReplaceTCPResponseRuleOpts Optional parameters for the method 'ReplaceTCPResponseRule'

type Server

type Server struct {
	Address        string `json:"address,omitempty"`
	Backup         string `json:"backup,omitempty"`
	Check          string `json:"check,omitempty"`
	Cookie         string `json:"cookie,omitempty"`
	Inter          *int32 `json:"inter,omitempty"`
	Maintenance    string `json:"maintenance,omitempty"`
	Maxconn        *int32 `json:"maxconn,omitempty"`
	Name           string `json:"name"`
	OnError        string `json:"on-error,omitempty"`
	OnMarkedDown   string `json:"on-marked-down,omitempty"`
	OnMarkedUp     string `json:"on-marked-up,omitempty"`
	Port           *int32 `json:"port,omitempty"`
	Ssl            string `json:"ssl,omitempty"`
	SslCafile      string `json:"ssl_cafile,omitempty"`
	SslCertificate string `json:"ssl_certificate,omitempty"`
	TlsTickets     string `json:"tls_tickets,omitempty"`
	Verify         string `json:"verify,omitempty"`
	Weight         *int32 `json:"weight,omitempty"`
}

Server HAProxy backend server configuration

type ServerApiService

type ServerApiService service

ServerApiService ServerApi service

func (*ServerApiService) CreateServer

func (a *ServerApiService) CreateServer(ctx _context.Context, backend string, server Server, localVarOptionals *CreateServerOpts) (Server, *_nethttp.Response, error)

CreateServer Add a new server Adds a new server in the specified backend in the configuration file.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param backend Parent backend name
  • @param server
  • @param optional nil or *CreateServerOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return Server

func (*ServerApiService) DeleteServer

func (a *ServerApiService) DeleteServer(ctx _context.Context, name string, backend string, localVarOptionals *DeleteServerOpts) (*_nethttp.Response, error)

DeleteServer Delete a server Deletes a server configuration by it's name in the specified backend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param name Server name
  • @param backend Parent backend name
  • @param optional nil or *DeleteServerOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

func (*ServerApiService) GetServer

func (a *ServerApiService) GetServer(ctx _context.Context, name string, backend string, localVarOptionals *GetServerOpts) (InlineResponse20011, *_nethttp.Response, error)

GetServer Return one server Returns one server configuration by it's name in the specified backend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param name Server name
  • @param backend Parent backend name
  • @param optional nil or *GetServerOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20011

func (*ServerApiService) GetServers

func (a *ServerApiService) GetServers(ctx _context.Context, backend string, localVarOptionals *GetServersOpts) (InlineResponse20010, *_nethttp.Response, error)

GetServers Return an array of servers Returns an array of all servers that are configured in specified backend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param backend Parent backend name
  • @param optional nil or *GetServersOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20010

func (*ServerApiService) ReplaceServer

func (a *ServerApiService) ReplaceServer(ctx _context.Context, name string, backend string, server Server, localVarOptionals *ReplaceServerOpts) (Server, *_nethttp.Response, error)

ReplaceServer Replace a server Replaces a server configuration by it's name in the specified backend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param name Server name
  • @param backend Parent backend name
  • @param server
  • @param optional nil or *ReplaceServerOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return Server

type ServerSwitchingRule

type ServerSwitchingRule struct {
	Cond         string `json:"cond,omitempty"`
	CondTest     string `json:"cond_test,omitempty"`
	Id           *int32 `json:"id"`
	TargetServer string `json:"target_server"`
}

ServerSwitchingRule HAProxy server switching rule configuration (corresponds to use-server directive)

type ServerSwitchingRuleApiService

type ServerSwitchingRuleApiService service

ServerSwitchingRuleApiService ServerSwitchingRuleApi service

func (*ServerSwitchingRuleApiService) CreateServerSwitchingRule

func (a *ServerSwitchingRuleApiService) CreateServerSwitchingRule(ctx _context.Context, backend string, serverSwitchingRule ServerSwitchingRule, localVarOptionals *CreateServerSwitchingRuleOpts) (ServerSwitchingRule, *_nethttp.Response, error)

CreateServerSwitchingRule Add a new Server Switching Rule Adds a new Server Switching Rule of the specified type in the specified backend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param backend Backend name
  • @param serverSwitchingRule
  • @param optional nil or *CreateServerSwitchingRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return ServerSwitchingRule

func (*ServerSwitchingRuleApiService) DeleteServerSwitchingRule

func (a *ServerSwitchingRuleApiService) DeleteServerSwitchingRule(ctx _context.Context, id int32, backend string, localVarOptionals *DeleteServerSwitchingRuleOpts) (*_nethttp.Response, error)

DeleteServerSwitchingRule Delete a Server Switching Rule Deletes a Server Switching Rule configuration by it's ID from the specified backend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id Switching Rule ID
  • @param backend Backend name
  • @param optional nil or *DeleteServerSwitchingRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

func (*ServerSwitchingRuleApiService) GetServerSwitchingRule

func (a *ServerSwitchingRuleApiService) GetServerSwitchingRule(ctx _context.Context, id int32, backend string, localVarOptionals *GetServerSwitchingRuleOpts) (InlineResponse20023, *_nethttp.Response, error)

GetServerSwitchingRule Return one Server Switching Rule Returns one Server Switching Rule configuration by it's ID in the specified backend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id Switching Rule ID
  • @param backend Backend name
  • @param optional nil or *GetServerSwitchingRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20023

func (*ServerSwitchingRuleApiService) GetServerSwitchingRules

func (a *ServerSwitchingRuleApiService) GetServerSwitchingRules(ctx _context.Context, backend string, localVarOptionals *GetServerSwitchingRulesOpts) (InlineResponse20022, *_nethttp.Response, error)

GetServerSwitchingRules Return an array of all Server Switching Rules Returns all Backend Switching Rules that are configured in specified backend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param backend Backend name
  • @param optional nil or *GetServerSwitchingRulesOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20022

func (*ServerSwitchingRuleApiService) ReplaceServerSwitchingRule

func (a *ServerSwitchingRuleApiService) ReplaceServerSwitchingRule(ctx _context.Context, id int32, backend string, serverSwitchingRule ServerSwitchingRule, localVarOptionals *ReplaceServerSwitchingRuleOpts) (ServerSwitchingRule, *_nethttp.Response, error)

ReplaceServerSwitchingRule Replace a Server Switching Rule Replaces a Server Switching Rule configuration by it's ID in the specified backend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id Switching Rule ID
  • @param backend Backend name
  • @param serverSwitchingRule
  • @param optional nil or *ReplaceServerSwitchingRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return ServerSwitchingRule

type Site

type Site struct {
	Farms   []SiteFarms `json:"farms,omitempty"`
	Name    string      `json:"name"`
	Service SiteService `json:"service,omitempty"`
}

Site Site configuration. Sites are considered as one service and all farms connected to that service. Farms are connected to service using use-backend and default_backend directives. Sites let you configure simple HAProxy configurations, for more advanced options use /haproxy/configuration endpoints.

type SiteFarms

type SiteFarms struct {
	Balance    Balance    `json:"balance,omitempty"`
	Cond       string     `json:"cond,omitempty"`
	CondTest   string     `json:"cond_test,omitempty"`
	Forwardfor Forwardfor `json:"forwardfor,omitempty"`
	Mode       string     `json:"mode,omitempty"`
	Name       string     `json:"name"`
	Servers    []Server   `json:"servers,omitempty"`
	UseAs      string     `json:"use_as"`
}

SiteFarms struct for SiteFarms

type SiteService

type SiteService struct {
	HttpConnectionMode string `json:"http_connection_mode,omitempty"`
	Listeners          []Bind `json:"listeners,omitempty"`
	Maxconn            *int32 `json:"maxconn,omitempty"`
	Mode               string `json:"mode,omitempty"`
}

SiteService struct for SiteService

type SitesApiService

type SitesApiService service

SitesApiService SitesApi service

func (*SitesApiService) CreateSite

func (a *SitesApiService) CreateSite(ctx _context.Context, site Site, localVarOptionals *CreateSiteOpts) (Site, *_nethttp.Response, error)

CreateSite Add a site Adds a new site to the configuration file.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param site
  • @param optional nil or *CreateSiteOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return Site

func (*SitesApiService) DeleteSite

func (a *SitesApiService) DeleteSite(ctx _context.Context, name string, localVarOptionals *DeleteSiteOpts) (*_nethttp.Response, error)

DeleteSite Delete a site Deletes a site from the configuration by it's name.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param name Site frontend name
  • @param optional nil or *DeleteSiteOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

func (*SitesApiService) GetSite

func (a *SitesApiService) GetSite(ctx _context.Context, name string, localVarOptionals *GetSiteOpts) (InlineResponse2001, *_nethttp.Response, error)

GetSite Return a site Returns one site configuration by it's name.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param name Site frontend name
  • @param optional nil or *GetSiteOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse2001

func (*SitesApiService) GetSites

func (a *SitesApiService) GetSites(ctx _context.Context, localVarOptionals *GetSitesOpts) (InlineResponse200, *_nethttp.Response, error)

GetSites Return an array of sites Returns an array of all configured sites.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param optional nil or *GetSitesOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse200

func (*SitesApiService) ReplaceSite

func (a *SitesApiService) ReplaceSite(ctx _context.Context, name string, site Site, localVarOptionals *ReplaceSiteOpts) (Site, *_nethttp.Response, error)

ReplaceSite Replace a site Replaces a site configuration by it's name.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param name Site frontend name
  • @param site
  • @param optional nil or *ReplaceSiteOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return Site

type SpecificationApiService

type SpecificationApiService service

SpecificationApiService SpecificationApi service

func (*SpecificationApiService) GetSpecification

func (a *SpecificationApiService) GetSpecification(ctx _context.Context) (map[string]interface{}, *_nethttp.Response, error)

GetSpecification Data Plane API Specification Return Data Plane API OpenAPI specification

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().

@return map[string]interface{}

type StatsApiService

type StatsApiService service

StatsApiService StatsApi service

func (*StatsApiService) GetStats

func (a *StatsApiService) GetStats(ctx _context.Context, localVarOptionals *GetStatsOpts) ([]map[string]interface{}, *_nethttp.Response, error)

GetStats Gets stats Getting stats from the HAProxy.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param optional nil or *GetStatsOpts - Optional Parameters:
  • @param "Type_" (optional.String) - Object type to get stats for (one of frontend, backend, server)
  • @param "Name" (optional.String) - Object name to get stats for
  • @param "Parent" (optional.String) - Object parent name to get stats for, in case the object is a server

@return []map[string]interface{}

type StickRule

type StickRule struct {
	Cond     string `json:"cond,omitempty"`
	CondTest string `json:"cond_test,omitempty"`
	Id       *int32 `json:"id"`
	Pattern  string `json:"pattern"`
	Table    string `json:"table,omitempty"`
	Type     string `json:"type"`
}

StickRule Define a pattern used to create an entry in a stickiness table or matching condition or associate a user to a server.

type StickRuleApiService

type StickRuleApiService service

StickRuleApiService StickRuleApi service

func (*StickRuleApiService) CreateStickRule

func (a *StickRuleApiService) CreateStickRule(ctx _context.Context, backend string, stickRule StickRule, localVarOptionals *CreateStickRuleOpts) (StickRule, *_nethttp.Response, error)

CreateStickRule Add a new Stick Rule Adds a new Stick Rule of the specified type in the specified backend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param backend Backend name
  • @param stickRule
  • @param optional nil or *CreateStickRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return StickRule

func (*StickRuleApiService) DeleteStickRule

func (a *StickRuleApiService) DeleteStickRule(ctx _context.Context, id int32, backend string, localVarOptionals *DeleteStickRuleOpts) (*_nethttp.Response, error)

DeleteStickRule Delete a Stick Rule Deletes a Stick Rule configuration by it's ID from the specified backend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id Stick Rule ID
  • @param backend Backend name
  • @param optional nil or *DeleteStickRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

func (*StickRuleApiService) GetStickRule

func (a *StickRuleApiService) GetStickRule(ctx _context.Context, id int32, backend string, localVarOptionals *GetStickRuleOpts) (InlineResponse20027, *_nethttp.Response, error)

GetStickRule Return one Stick Rule Returns one Stick Rule configuration by it's ID in the specified backend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id Stick Rule ID
  • @param backend Backend name
  • @param optional nil or *GetStickRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20027

func (*StickRuleApiService) GetStickRules

func (a *StickRuleApiService) GetStickRules(ctx _context.Context, backend string, localVarOptionals *GetStickRulesOpts) (InlineResponse20026, *_nethttp.Response, error)

GetStickRules Return an array of all Stick Rules Returns all Stick Rules that are configured in specified backend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param backend Backend name
  • @param optional nil or *GetStickRulesOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20026

func (*StickRuleApiService) ReplaceStickRule

func (a *StickRuleApiService) ReplaceStickRule(ctx _context.Context, id int32, backend string, stickRule StickRule, localVarOptionals *ReplaceStickRuleOpts) (StickRule, *_nethttp.Response, error)

ReplaceStickRule Replace a Stick Rule Replaces a Stick Rule configuration by it's ID in the specified backend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id Stick Rule ID
  • @param backend Backend name
  • @param stickRule
  • @param optional nil or *ReplaceStickRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return StickRule

type TCPRequestRuleApiService

type TCPRequestRuleApiService service

TCPRequestRuleApiService TCPRequestRuleApi service

func (*TCPRequestRuleApiService) CreateTCPRequestRule

func (a *TCPRequestRuleApiService) CreateTCPRequestRule(ctx _context.Context, parentName string, parentType string, tcpRequestRule TcpRequestRule, localVarOptionals *CreateTCPRequestRuleOpts) (TcpRequestRule, *_nethttp.Response, error)

CreateTCPRequestRule Add a new TCP Request Rule Adds a new TCP Request Rule of the specified type in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param parentName Parent name
  • @param parentType Parent type
  • @param tcpRequestRule
  • @param optional nil or *CreateTCPRequestRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return TcpRequestRule

func (*TCPRequestRuleApiService) DeleteTCPRequestRule

func (a *TCPRequestRuleApiService) DeleteTCPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *DeleteTCPRequestRuleOpts) (*_nethttp.Response, error)

DeleteTCPRequestRule Delete a TCP Request Rule Deletes a TCP Request Rule configuration by it's ID from the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id TCP Request Rule ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *DeleteTCPRequestRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

func (*TCPRequestRuleApiService) GetTCPRequestRule

func (a *TCPRequestRuleApiService) GetTCPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *GetTCPRequestRuleOpts) (InlineResponse20017, *_nethttp.Response, error)

GetTCPRequestRule Return one TCP Request Rule Returns one TCP Request Rule configuration by it's ID in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id TCP Request Rule ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *GetTCPRequestRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20017

func (*TCPRequestRuleApiService) GetTCPRequestRules

func (a *TCPRequestRuleApiService) GetTCPRequestRules(ctx _context.Context, parentName string, parentType string, localVarOptionals *GetTCPRequestRulesOpts) (InlineResponse20016, *_nethttp.Response, error)

GetTCPRequestRules Return an array of all TCP Request Rules Returns all TCP Request Rules that are configured in specified parent and parent type.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param parentName Parent name
  • @param parentType Parent type
  • @param optional nil or *GetTCPRequestRulesOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20016

func (*TCPRequestRuleApiService) ReplaceTCPRequestRule

func (a *TCPRequestRuleApiService) ReplaceTCPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, tcpRequestRule TcpRequestRule, localVarOptionals *ReplaceTCPRequestRuleOpts) (TcpRequestRule, *_nethttp.Response, error)

ReplaceTCPRequestRule Replace a TCP Request Rule Replaces a TCP Request Rule configuration by it's ID in the specified parent.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id TCP Request Rule ID
  • @param parentName Parent name
  • @param parentType Parent type
  • @param tcpRequestRule
  • @param optional nil or *ReplaceTCPRequestRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return TcpRequestRule

type TCPResponseRuleApiService

type TCPResponseRuleApiService service

TCPResponseRuleApiService TCPResponseRuleApi service

func (*TCPResponseRuleApiService) CreateTCPResponseRule

func (a *TCPResponseRuleApiService) CreateTCPResponseRule(ctx _context.Context, backend string, tcpResponseRule TcpResponseRule, localVarOptionals *CreateTCPResponseRuleOpts) (TcpResponseRule, *_nethttp.Response, error)

CreateTCPResponseRule Add a new TCP Response Rule Adds a new TCP Response Rule of the specified type in the specified backend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param backend Parent backend name
  • @param tcpResponseRule
  • @param optional nil or *CreateTCPResponseRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return TcpResponseRule

func (*TCPResponseRuleApiService) DeleteTCPResponseRule

func (a *TCPResponseRuleApiService) DeleteTCPResponseRule(ctx _context.Context, id int32, backend string, localVarOptionals *DeleteTCPResponseRuleOpts) (*_nethttp.Response, error)

DeleteTCPResponseRule Delete a TCP Response Rule Deletes a TCP Response Rule configuration by it's ID from the specified backend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id TCP Response Rule ID
  • @param backend Parent backend name
  • @param optional nil or *DeleteTCPResponseRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

func (*TCPResponseRuleApiService) GetTCPResponseRule

func (a *TCPResponseRuleApiService) GetTCPResponseRule(ctx _context.Context, id int32, backend string, localVarOptionals *GetTCPResponseRuleOpts) (InlineResponse20019, *_nethttp.Response, error)

GetTCPResponseRule Return one TCP Response Rule Returns one TCP Response Rule configuration by it's ID in the specified backend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id TCP Response Rule ID
  • @param backend Parent backend name
  • @param optional nil or *GetTCPResponseRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20019

func (*TCPResponseRuleApiService) GetTCPResponseRules

func (a *TCPResponseRuleApiService) GetTCPResponseRules(ctx _context.Context, backend string, localVarOptionals *GetTCPResponseRulesOpts) (InlineResponse20018, *_nethttp.Response, error)

GetTCPResponseRules Return an array of all TCP Response Rules Returns all TCP Response Rules that are configured in specified backend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param backend Parent backend name
  • @param optional nil or *GetTCPResponseRulesOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.

@return InlineResponse20018

func (*TCPResponseRuleApiService) ReplaceTCPResponseRule

func (a *TCPResponseRuleApiService) ReplaceTCPResponseRule(ctx _context.Context, id int32, backend string, tcpResponseRule TcpResponseRule, localVarOptionals *ReplaceTCPResponseRuleOpts) (TcpResponseRule, *_nethttp.Response, error)

ReplaceTCPResponseRule Replace a TCP Response Rule Replaces a TCP Response Rule configuration by it's ID in the specified backend.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id TCP Response Rule ID
  • @param backend Parent backend name
  • @param tcpResponseRule
  • @param optional nil or *ReplaceTCPResponseRuleOpts - Optional Parameters:
  • @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
  • @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
  • @param "ForceReload" (optional.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.

@return TcpResponseRule

type TcpRequestRule

type TcpRequestRule struct {
	Action   string `json:"action,omitempty"`
	Cond     string `json:"cond,omitempty"`
	CondTest string `json:"cond_test,omitempty"`
	Id       *int32 `json:"id"`
	Timeout  *int32 `json:"timeout,omitempty"`
	Type     string `json:"type"`
}

TcpRequestRule HAProxy TCP Request Rule configuration (corresponds to tcp-request)

type TcpResponseRule

type TcpResponseRule struct {
	Action   string `json:"action,omitempty"`
	Cond     string `json:"cond,omitempty"`
	CondTest string `json:"cond_test,omitempty"`
	Id       *int32 `json:"id"`
	Timeout  *int32 `json:"timeout,omitempty"`
	Type     string `json:"type"`
}

TcpResponseRule HAProxy TCP Response Rule configuration (corresponds to tcp-response)

type Transaction

type Transaction struct {
	Version int32  `json:"_version,omitempty"`
	Id      string `json:"id,omitempty"`
	Status  string `json:"status,omitempty"`
}

Transaction HAProxy configuration transaction

type TransactionsApiService

type TransactionsApiService service

TransactionsApiService TransactionsApi service

func (*TransactionsApiService) CommitTransaction

func (a *TransactionsApiService) CommitTransaction(ctx _context.Context, id string, localVarOptionals *CommitTransactionOpts) (Transaction, *_nethttp.Response, error)

CommitTransaction Commit transaction Commit transaction, execute all operations in transaction and return msg

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id Transaction id
  • @param optional nil or *CommitTransactionOpts - Optional Parameters:
  • @param "ForceReload" (optional.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.

@return Transaction

func (*TransactionsApiService) DeleteTransaction

func (a *TransactionsApiService) DeleteTransaction(ctx _context.Context, id string) (*_nethttp.Response, error)

DeleteTransaction Delete a transaction Deletes a transaction.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id Transaction id

func (*TransactionsApiService) GetTransaction

GetTransaction Return one HAProxy configuration transactions Returns one HAProxy configuration transactions.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id Transaction id

@return Transaction

func (*TransactionsApiService) GetTransactions

func (a *TransactionsApiService) GetTransactions(ctx _context.Context, localVarOptionals *GetTransactionsOpts) ([]Transaction, *_nethttp.Response, error)

GetTransactions Return list of HAProxy configuration transactions. Returns a list of HAProxy configuration transactions. Transactions can be filtered by their status.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param optional nil or *GetTransactionsOpts - Optional Parameters:
  • @param "Status" (optional.String) - Filter by transaction status

@return []Transaction

func (*TransactionsApiService) StartTransaction

func (a *TransactionsApiService) StartTransaction(ctx _context.Context, version int32) (Transaction, *_nethttp.Response, error)

StartTransaction Start a new transaction Starts a new transaction and returns it's id

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param version Configuration version on which to work on

@return Transaction

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL