/api/v1/ip4logs/search:
  description: pf::UnifiedApi::Controller::Ip4logs
  post:
    description: Search all items.
    operationId: api.v1.Ip4logs.search
    parameters: []
    requestBody:
      content:
        application/json:
          example:
            cursor: 0
            fields:
            - end_time
            - ip
            - mac
            - start_time
            limit: 25
            query:
              op: and
              values:
              - op: or
                values:
                - field: end_time
                  op: contains
                  value: foo
                - field: ip
                  op: contains
                  value: foo
                - field: mac
                  op: contains
                  value: foo
                - field: start_time
                  op: contains
                  value: foo
            sort:
            - ip ASC
          schema:
            allOf:
            - $ref: '#/components/schemas/Search'
            - properties:
                cursor:
                  required: false
                  type: string
                fields:
                  items:
                    enum:
                    - end_time
                    - ip
                    - mac
                    - start_time
                    type: string
                  required: true
                  type: array
                limit:
                  maximum: 1000
                  minimum: 1
                  required: false
                  type: integer
                sort:
                  items:
                    enum:
                    - end_time ASC
                    - end_time DESC
                    - ip ASC
                    - ip DESC
                    - mac ASC
                    - mac DESC
                    - start_time ASC
                    - start_time DESC
                    type: string
                  required: true
                  type: array
              required:
              - fields
      required: true
    responses:
      '200':
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Ip4logsList'
      '401':
        $ref: '#/components/responses/Forbidden'
      '404':
        $ref: '#/components/responses/BadRequest'
      '409':
        $ref: '#/components/responses/Duplicate'
      '422':
        $ref: '#/components/responses/UnprocessableEntity'
    tags:
    - Ip4logs
