openapi: 3.2.0 info: version: '9.0' title: NGINX Plus REST HTTP Limit Conns API description: NGINX Plus REST API provides access to NGINX Plus status information, on-the-fly configuration of upstream servers and key-value pairs management for http and stream. servers: - url: /api/9 tags: - name: HTTP Limit Conns paths: /http/limit_conns/: get: tags: - HTTP Limit Conns summary: Return status of all HTTP limit_conn zones description: Returns status information for each HTTP limit_conn zone. operationId: getHttpLimitConnZones parameters: - in: query name: fields description: Limits which fields of limit_conn zones will be output. If the “fields” value is empty, then only zone names will be output. schema: type: string responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/NginxHTTPLimitConnZonesMap' '404': description: Unknown version (*UnknownVersion*) content: application/json: schema: $ref: '#/components/schemas/NginxError' /http/limit_conns/{httpLimitConnZoneName}: parameters: - name: httpLimitConnZoneName in: path description: The name of a [limit_conn zone](https://nginx.org/en/docs/http/ngx_http_limit_conn_module.html#limit_conn_zone). required: true schema: type: string get: tags: - HTTP Limit Conns summary: Return status of an HTTP limit_conn zone description: Returns status of a particular HTTP limit_conn zone. operationId: getHttpLimitConnZone parameters: - name: fields in: query description: Limits which fields of the [limit_conn zone](https://nginx.org/en/docs/http/ngx_http_limit_conn_module.html#limit_conn_zone) will be output. schema: type: string responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/NginxHTTPLimitConnZone' '404': description: 'limit_conn not found (*LimitConnNotFound*), unknown version (*UnknownVersion*) ' content: application/json: schema: $ref: '#/components/schemas/NginxError' delete: tags: - HTTP Limit Conns summary: Reset statistics for an HTTP limit_conn zone description: Resets the connection limiting statistics. operationId: deleteHttpLimitConnZoneStat responses: '204': description: Success '404': description: 'limit_conn not found (*LimitConnNotFound*), unknown version (*UnknownVersion*) ' content: application/json: schema: $ref: '#/components/schemas/NginxError' '405': description: Method disabled (*MethodDisabled*) content: application/json: schema: $ref: '#/components/schemas/NginxError' components: schemas: NginxHTTPLimitConnZonesMap: title: HTTP limit_conns description: 'Status data for all HTTP limit_conn zones. ' type: object additionalProperties: $ref: '#/components/schemas/NginxHTTPLimitConnZone' NginxHTTPLimitConnZone: title: HTTP Connections Limiting type: object properties: passed: type: integer description: The total number of connections that were neither limited nor accounted as limited. rejected: type: integer description: The total number of connections that were rejected. rejected_dry_run: type: integer description: The total number of connections accounted as rejected in the dry run mode. example: passed: 15 rejected: 0 rejected_dry_run: 2 NginxError: title: Error description: 'nginx error object. ' type: object properties: error: type: object properties: status: type: integer description: HTTP error code. text: type: string description: Error description. code: type: string description: Internal nginx error code. request_id: type: string description: The ID of the request, equals the value of the $request_id variable. href: type: string description: Link to reference documentation.