openapi: 3.2.0 info: title: HAProxy Data Plane HTTP Check API description: 'API for editing and managing haproxy instances. Provides process information, configuration management, haproxy stats and logs.' version: '3.4' contact: name: HAProxy Support url: https://my.haproxy.com/portal/cust/login email: support@haproxy.com servers: - url: /v3 security: - basic_auth: [] tags: - name: HTTPCheck paths: /services/haproxy/configuration/backends/{parent_name}/http_checks: get: description: Returns all HTTP checks that are configured in specified parent. operationId: getAllHTTPCheckBackend parameters: - $ref: '#/components/parameters/parent_name' - $ref: '#/components/parameters/transaction_id' responses: '200': description: Successful operation headers: Configuration-Version: description: Configuration file version schema: type: string content: application/json: schema: $ref: '#/components/schemas/http_checks' default: $ref: '#/components/responses/DefaultError' summary: Return an array of HTTP checks tags: - HTTPCheck put: description: Replaces a whole list of HTTP checks with the list given in parameter operationId: replaceAllHTTPCheckBackend parameters: - $ref: '#/components/parameters/parent_name' - $ref: '#/components/parameters/transaction_id' - $ref: '#/components/parameters/version' - $ref: '#/components/parameters/force_reload' responses: '200': description: All HTTP checks lines replaced content: application/json: schema: $ref: '#/components/schemas/http_checks' '202': description: Configuration change accepted and reload requested headers: Reload-ID: description: ID of the requested reload schema: type: string content: application/json: schema: $ref: '#/components/schemas/http_checks' '400': $ref: '#/components/responses/BadRequest' default: $ref: '#/components/responses/DefaultError' summary: Replace an HTTP checks list tags: - HTTPCheck requestBody: content: application/json: schema: $ref: '#/components/schemas/http_checks' required: true /services/haproxy/configuration/defaults/{parent_name}/http_checks: get: description: Returns all HTTP checks that are configured in specified parent. operationId: getAllHTTPCheckDefaults parameters: - $ref: '#/components/parameters/parent_name' - $ref: '#/components/parameters/transaction_id' responses: '200': description: Successful operation headers: Configuration-Version: description: Configuration file version schema: type: string content: application/json: schema: $ref: '#/components/schemas/http_checks' default: $ref: '#/components/responses/DefaultError' summary: Return an array of HTTP checks tags: - HTTPCheck put: description: Replaces a whole list of HTTP checks with the list given in parameter operationId: replaceAllHTTPCheckDefaults parameters: - $ref: '#/components/parameters/parent_name' - $ref: '#/components/parameters/transaction_id' - $ref: '#/components/parameters/version' - $ref: '#/components/parameters/force_reload' responses: '200': description: All HTTP checks lines replaced content: application/json: schema: $ref: '#/components/schemas/http_checks' '202': description: Configuration change accepted and reload requested headers: Reload-ID: description: ID of the requested reload schema: type: string content: application/json: schema: $ref: '#/components/schemas/http_checks' '400': $ref: '#/components/responses/BadRequest' default: $ref: '#/components/responses/DefaultError' summary: Replace an HTTP checks list tags: - HTTPCheck requestBody: content: application/json: schema: $ref: '#/components/schemas/http_checks' required: true /services/haproxy/configuration/healthchecks/{parent_name}/http_checks: get: description: Returns all HTTP checks that are configured in specified parent. operationId: getAllHTTPCheckHealthcheck parameters: - $ref: '#/components/parameters/parent_name' - $ref: '#/components/parameters/transaction_id' responses: '200': description: Successful operation headers: Configuration-Version: description: Configuration file version schema: type: string content: application/json: schema: $ref: '#/components/schemas/http_checks' default: $ref: '#/components/responses/DefaultError' summary: Return an array of HTTP checks tags: - HTTPCheck put: description: Replaces a whole list of HTTP checks with the list given in parameter operationId: replaceAllHTTPCheckHealthcheck parameters: - $ref: '#/components/parameters/parent_name' - $ref: '#/components/parameters/transaction_id' - $ref: '#/components/parameters/version' - $ref: '#/components/parameters/force_reload' responses: '200': description: All HTTP checks lines replaced content: application/json: schema: $ref: '#/components/schemas/http_checks' '202': description: Configuration change accepted and reload requested headers: Reload-ID: description: ID of the requested reload schema: type: string content: application/json: schema: $ref: '#/components/schemas/http_checks' '400': $ref: '#/components/responses/BadRequest' default: $ref: '#/components/responses/DefaultError' summary: Replace an HTTP checks list tags: - HTTPCheck requestBody: content: application/json: schema: $ref: '#/components/schemas/http_checks' required: true /services/haproxy/configuration/backends/{parent_name}/http_checks/{index}: delete: description: Deletes a HTTP check configuration by it's index from the specified parent. operationId: deleteHTTPCheckBackend parameters: - description: HTTP check Index in: path name: index required: true schema: type: integer - $ref: '#/components/parameters/parent_name' - $ref: '#/components/parameters/transaction_id' - $ref: '#/components/parameters/version' - $ref: '#/components/parameters/force_reload' responses: '202': description: Configuration change accepted and reload requested headers: Reload-ID: description: ID of the requested reload schema: type: string '204': description: HTTP check deleted '404': $ref: '#/components/responses/NotFound' default: $ref: '#/components/responses/DefaultError' summary: Delete a HTTP check tags: - HTTPCheck get: description: Returns one HTTP check configuration by it's index in the specified parent. operationId: getHTTPCheckBackend parameters: - description: HTTP Check Index in: path name: index required: true schema: type: integer - $ref: '#/components/parameters/parent_name' - $ref: '#/components/parameters/transaction_id' responses: '200': description: Successful operation headers: Configuration-Version: description: Configuration file version schema: type: string content: application/json: schema: $ref: '#/components/schemas/http_check' '404': $ref: '#/components/responses/NotFound' default: $ref: '#/components/responses/DefaultError' summary: Return one HTTP check tags: - HTTPCheck post: description: Adds a new HTTP check of the specified type in the specified parent. operationId: createHTTPCheckBackend parameters: - description: HTTP check Index in: path name: index required: true schema: type: integer - $ref: '#/components/parameters/parent_name' - $ref: '#/components/parameters/transaction_id' - $ref: '#/components/parameters/version' - $ref: '#/components/parameters/force_reload' responses: '201': description: HTTP check created content: application/json: schema: $ref: '#/components/schemas/http_check' '202': description: Configuration change accepted and reload requested headers: Reload-ID: description: ID of the requested reload schema: type: string content: application/json: schema: $ref: '#/components/schemas/http_check' '400': $ref: '#/components/responses/BadRequest' '409': $ref: '#/components/responses/AlreadyExists' default: $ref: '#/components/responses/DefaultError' summary: Add a new HTTP check tags: - HTTPCheck requestBody: content: application/json: schema: $ref: '#/components/schemas/http_check' required: true put: description: Replaces a HTTP Check configuration by it's index in the specified parent. operationId: replaceHTTPCheckBackend parameters: - description: HTTP Check Index in: path name: index required: true schema: type: integer - $ref: '#/components/parameters/parent_name' - $ref: '#/components/parameters/transaction_id' - $ref: '#/components/parameters/version' - $ref: '#/components/parameters/force_reload' responses: '200': description: HTTP check replaced content: application/json: schema: $ref: '#/components/schemas/http_check' '202': description: Configuration change accepted and reload requested headers: Reload-ID: description: ID of the requested reload schema: type: string content: application/json: schema: $ref: '#/components/schemas/http_check' '400': $ref: '#/components/responses/BadRequest' '404': $ref: '#/components/responses/NotFound' default: $ref: '#/components/responses/DefaultError' summary: Replace a HTTP check tags: - HTTPCheck requestBody: content: application/json: schema: $ref: '#/components/schemas/http_check' required: true /services/haproxy/configuration/defaults/{parent_name}/http_checks/{index}: delete: description: Deletes a HTTP check configuration by it's index from the specified parent. operationId: deleteHTTPCheckDefaults parameters: - description: HTTP check Index in: path name: index required: true schema: type: integer - $ref: '#/components/parameters/parent_name' - $ref: '#/components/parameters/transaction_id' - $ref: '#/components/parameters/version' - $ref: '#/components/parameters/force_reload' responses: '202': description: Configuration change accepted and reload requested headers: Reload-ID: description: ID of the requested reload schema: type: string '204': description: HTTP check deleted '404': $ref: '#/components/responses/NotFound' default: $ref: '#/components/responses/DefaultError' summary: Delete a HTTP check tags: - HTTPCheck get: description: Returns one HTTP check configuration by it's index in the specified parent. operationId: getHTTPCheckDefaults parameters: - description: HTTP Check Index in: path name: index required: true schema: type: integer - $ref: '#/components/parameters/parent_name' - $ref: '#/components/parameters/transaction_id' responses: '200': description: Successful operation headers: Configuration-Version: description: Configuration file version schema: type: string content: application/json: schema: $ref: '#/components/schemas/http_check' '404': $ref: '#/components/responses/NotFound' default: $ref: '#/components/responses/DefaultError' summary: Return one HTTP check tags: - HTTPCheck post: description: Adds a new HTTP check of the specified type in the specified parent. operationId: createHTTPCheckDefaults parameters: - description: HTTP check Index in: path name: index required: true schema: type: integer - $ref: '#/components/parameters/parent_name' - $ref: '#/components/parameters/transaction_id' - $ref: '#/components/parameters/version' - $ref: '#/components/parameters/force_reload' responses: '201': description: HTTP check created content: application/json: schema: $ref: '#/components/schemas/http_check' '202': description: Configuration change accepted and reload requested headers: Reload-ID: description: ID of the requested reload schema: type: string content: application/json: schema: $ref: '#/components/schemas/http_check' '400': $ref: '#/components/responses/BadRequest' '409': $ref: '#/components/responses/AlreadyExists' default: $ref: '#/components/responses/DefaultError' summary: Add a new HTTP check tags: - HTTPCheck requestBody: content: application/json: schema: $ref: '#/components/schemas/http_check' required: true put: description: Replaces a HTTP Check configuration by it's index in the specified parent. operationId: replaceHTTPCheckDefaults parameters: - description: HTTP Check Index in: path name: index required: true schema: type: integer - $ref: '#/components/parameters/parent_name' - $ref: '#/components/parameters/transaction_id' - $ref: '#/components/parameters/version' - $ref: '#/components/parameters/force_reload' responses: '200': description: HTTP check replaced content: application/json: schema: $ref: '#/components/schemas/http_check' '202': description: Configuration change accepted and reload requested headers: Reload-ID: description: ID of the requested reload schema: type: string content: application/json: schema: $ref: '#/components/schemas/http_check' '400': $ref: '#/components/responses/BadRequest' '404': $ref: '#/components/responses/NotFound' default: $ref: '#/components/responses/DefaultError' summary: Replace a HTTP check tags: - HTTPCheck requestBody: content: application/json: schema: $ref: '#/components/schemas/http_check' required: true /services/haproxy/configuration/healthchecks/{parent_name}/http_checks/{index}: delete: description: Deletes a HTTP check configuration by it's index from the specified parent. operationId: deleteHTTPCheckHealthcheck parameters: - description: HTTP check Index in: path name: index required: true schema: type: integer - $ref: '#/components/parameters/parent_name' - $ref: '#/components/parameters/transaction_id' - $ref: '#/components/parameters/version' - $ref: '#/components/parameters/force_reload' responses: '202': description: Configuration change accepted and reload requested headers: Reload-ID: description: ID of the requested reload schema: type: string '204': description: HTTP check deleted '404': $ref: '#/components/responses/NotFound' default: $ref: '#/components/responses/DefaultError' summary: Delete a HTTP check tags: - HTTPCheck get: description: Returns one HTTP check configuration by it's index in the specified parent. operationId: getHTTPCheckHealthcheck parameters: - description: HTTP Check Index in: path name: index required: true schema: type: integer - $ref: '#/components/parameters/parent_name' - $ref: '#/components/parameters/transaction_id' responses: '200': description: Successful operation headers: Configuration-Version: description: Configuration file version schema: type: string content: application/json: schema: $ref: '#/components/schemas/http_check' '404': $ref: '#/components/responses/NotFound' default: $ref: '#/components/responses/DefaultError' summary: Return one HTTP check tags: - HTTPCheck post: description: Adds a new HTTP check of the specified type in the specified parent. operationId: createHTTPCheckHealthcheck parameters: - description: HTTP check Index in: path name: index required: true schema: type: integer - $ref: '#/components/parameters/parent_name' - $ref: '#/components/parameters/transaction_id' - $ref: '#/components/parameters/version' - $ref: '#/components/parameters/force_reload' responses: '201': description: HTTP check created content: application/json: schema: $ref: '#/components/schemas/http_check' '202': description: Configuration change accepted and reload requested headers: Reload-ID: description: ID of the requested reload schema: type: string content: application/json: schema: $ref: '#/components/schemas/http_check' '400': $ref: '#/components/responses/BadRequest' '409': $ref: '#/components/responses/AlreadyExists' default: $ref: '#/components/responses/DefaultError' summary: Add a new HTTP check tags: - HTTPCheck requestBody: content: application/json: schema: $ref: '#/components/schemas/http_check' required: true put: description: Replaces a HTTP Check configuration by it's index in the specified parent. operationId: replaceHTTPCheckHealthcheck parameters: - description: HTTP Check Index in: path name: index required: true schema: type: integer - $ref: '#/components/parameters/parent_name' - $ref: '#/components/parameters/transaction_id' - $ref: '#/components/parameters/version' - $ref: '#/components/parameters/force_reload' responses: '200': description: HTTP check replaced content: application/json: schema: $ref: '#/components/schemas/http_check' '202': description: Configuration change accepted and reload requested headers: Reload-ID: description: ID of the requested reload schema: type: string content: application/json: schema: $ref: '#/components/schemas/http_check' '400': $ref: '#/components/responses/BadRequest' '404': $ref: '#/components/responses/NotFound' default: $ref: '#/components/responses/DefaultError' summary: Replace a HTTP check tags: - HTTPCheck requestBody: content: application/json: schema: $ref: '#/components/schemas/http_check' required: true components: parameters: transaction_id: name: transaction_id in: query description: ID of the transaction where we want to add the operation. Cannot be used when version is specified. required: false schema: type: string version: name: version in: query description: Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version. required: false schema: type: integer parent_name: name: parent_name in: path description: Parent name required: true schema: type: string pattern: ^[^\r\n<>*;$#&{}"]+$ force_reload: name: force_reload in: query description: 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. required: false schema: type: boolean default: false schemas: error: additionalProperties: type: string description: API Error properties: code: type: - integer - 'null' message: type: - string - 'null' required: - code - message title: Error type: object http_check: properties: addr: pattern: ^[^\s]+$ type: string x-dependency: type: value: connect alpn: pattern: ^[^\s]+$ type: string x-dependency: type: value: connect x-display-name: ALPN Protocols body: type: string x-dependency: type: value: send body_log_format: type: string x-dependency: type: value: send check_comment: type: string x-dependency: type: value: - comment - connect - expect - send default: type: boolean x-dependency: type: value: connect error_status: enum: - L7OKC - L7RSP - L7STS - L6RSP - L4CON type: string x-dependency: type: value: expect exclamation_mark: type: boolean x-dependency: type: value: expect x-display-name: Expect Exclamation Mark headers: items: $ref: '#/components/schemas/return_header' type: array x-dependency: type: value: send x-go-name: CheckHeaders x-omitempty: true linger: type: boolean x-dependency: type: value: connect match: enum: - status - rstatus - hdr - fhdr - string - rstring pattern: ^[^\s]+$ type: string x-dependency: type: required: true value: expect x-display-name: Expect Match metadata: additionalProperties: type: object method: enum: - HEAD - PUT - POST - GET - TRACE - PATCH - DELETE - CONNECT - OPTIONS type: string x-dependency: type: value: send min_recv: type: - integer - 'null' x-dependency: type: value: expect ok_status: enum: - L7OK - L7OKC - L6OK - L4OK type: string x-dependency: type: value: expect on_error: type: string x-dependency: type: value: expect on_success: type: string x-dependency: type: value: expect pattern: type: string x-dependency: type: required: true value: expect port: maximum: 65535 minimum: 1 type: - integer - 'null' x-dependency: type: value: connect port_string: type: string x-dependency: type: value: connect proto: type: string x-dependency: type: value: connect send_proxy: type: boolean x-dependency: type: value: connect sni: type: string x-dependency: type: value: connect ssl: type: boolean x-dependency: type: value: connect status-code: type: string x-dependency: type: value: expect tout_status: enum: - L7TOUT - L6TOUT - L4TOUT type: string x-dependency: type: value: expect type: enum: - comment - connect - disable-on-404 - expect - send - send-state - set-var - set-var-fmt - unset-var type: string uri: type: string x-dependency: type: value: send uri_log_format: type: string x-dependency: type: value: send var_expr: type: string x-dependency: type: required: true value: - set-var x-display-name: Var Expression var_format: type: string x-dependency: type: required: true value: - set-var-fmt x-display-name: Var Format var_name: pattern: ^[^\s]+$ type: string x-dependency: type: required: true value: - set-var - set-var-fmt - unset-var var_scope: pattern: ^[^\s]+$ type: string x-dependency: type: required: true value: - set-var - set-var-fmt - unset-var version: type: string x-dependency: type: value: send via_socks4: type: boolean x-dependency: type: value: connect required: - type title: HTTP Check type: object http_checks: title: HTTP Checks Array type: array items: $ref: '#/components/schemas/http_check' return_header: properties: fmt: type: string name: type: string required: - name - fmt type: object x-go-name: ReturnHeader responses: DefaultError: description: General Error headers: Configuration-Version: description: Configuration file version schema: type: string content: application/json: schema: $ref: '#/components/schemas/error' NotFound: description: The specified resource was not found headers: Configuration-Version: description: Configuration file version schema: type: string content: application/json: schema: $ref: '#/components/schemas/error' BadRequest: description: Bad request headers: Configuration-Version: description: Configuration file version schema: type: string content: application/json: schema: $ref: '#/components/schemas/error' AlreadyExists: description: The specified resource already exists headers: Configuration-Version: description: Configuration file version schema: type: string content: application/json: schema: $ref: '#/components/schemas/error' securitySchemes: basic_auth: type: http scheme: basic externalDocs: url: https://docs.haproxy.org/ description: HAProxy Documentation