> ## Documentation Index
> Fetch the complete documentation index at: https://help.onetsolutions.net/llms.txt
> Use this file to discover all available pages before exploring further.

# [IPv4 leases] List the addresses of a leased IPv4 block with their blocklist listings

> Every address of the block, in numeric order, paginated. Each row says whether the address is `listed` and carries its `listings` (categories `spam`, `malware`, `attack`: they make the address listed) and its `policy_listings` (informational, they never make it listed: Spamhaus PBL with category `policy`, AbuseIPDB reports below the listing score with category `reported`). The page also carries `checked_at` (the last daily check, `null` before the first one) and `lists`, the status of each source at that check: `ok`, `error` (the source did not answer: nothing it listed before is dropped, nothing is assumed clean) or `not_checked` (no key configured for it).



## OpenAPI

````yaml https://api.onetsolutions.net/schema get /v1/organizations/{organization_id}/network/ipv4-blocks/{block_id}/ips
openapi: 3.0.3
info:
  title: OnetSolutions API
  version: v1 (v1)
  description: >

    ## Overview


    The OnetSolutions API provides programmatic access to manage your cloud
    infrastructure, domains, and web hosting services.


    ## Authentication


    All API requests require authentication using one of the following methods:


    - **JWT Token**: Obtain a token via login endpoints and include it in the
    `Authorization: Bearer <token>` header

    - **API Key**: Generate an API key from your account settings and use it as
    `Authorization: Bearer sk-onetsolutions-...`


    ## Rate Limiting


    API requests are rate-limited to ensure fair usage:

    - **Standard**: 1000 requests per minute

    - **Burst**: 100 requests per second


    ## Pagination


    List endpoints return paginated results. Use `page` and `page_size` query
    parameters.


    ## Error Handling


    The API uses standard HTTP status codes:

    - `200` Success

    - `201` Created

    - `400` Bad Request

    - `401` Unauthorized

    - `403` Forbidden

    - `404` Not Found

    - `429` Too Many Requests
servers:
  - url: https://api.onetsolutions.net
    description: Production
security: []
tags:
  - name: Authentication
    description: >-
      Login, passwordless authentication, MFA, OAuth providers, and token
      management.
  - name: Organizations
    description: >-
      Organization management, members, roles, modules, audit logs, and
      notification settings.
  - name: Projects
    description: Project management, team members, and project-scoped resources.
  - name: Compute
    description: >-
      Cloud instances, volumes, snapshots, backups, VPCs, firewalls, SSH keys,
      uptime monitors, and instance tasks.
  - name: Billing
    description: >-
      Shopping cart, orders, invoices, payments, payment methods, gateways,
      promo codes, and balance management.
  - name: Domains
    description: >-
      Domain availability, registration, transfers, DNS zones, DNS records, and
      TLD information.
  - name: Web Hosting
    description: >-
      cPanel-based web hosting, emails, databases, subdomains, FTP accounts,
      addon domains, and SSL certificates.
paths:
  /v1/organizations/{organization_id}/network/ipv4-blocks/{block_id}/ips:
    get:
      tags:
        - Network
      summary: >-
        [IPv4 leases] List the addresses of a leased IPv4 block with their
        blocklist listings
      description: >-
        Every address of the block, in numeric order, paginated. Each row says
        whether the address is `listed` and carries its `listings` (categories
        `spam`, `malware`, `attack`: they make the address listed) and its
        `policy_listings` (informational, they never make it listed: Spamhaus
        PBL with category `policy`, AbuseIPDB reports below the listing score
        with category `reported`). The page also carries `checked_at` (the last
        daily check, `null` before the first one) and `lists`, the status of
        each source at that check: `ok`, `error` (the source did not answer:
        nothing it listed before is dropped, nothing is assumed clean) or
        `not_checked` (no key configured for it).
      operationId: list_ipv4_block_ips
      parameters:
        - in: path
          name: block_id
          schema:
            type: string
          description: The unique identifier (UUID) of the leased IPv4 block
          required: true
        - in: query
          name: listed
          schema:
            type: boolean
          description: >-
            `true` for the listed addresses only, `false` for the clean ones
            only
        - in: path
          name: organization_id
          schema:
            type: string
          description: The unique identifier (UUID) of the organization
          required: true
        - in: query
          name: page
          schema:
            type: integer
          description: Page number
        - in: query
          name: page_size
          schema:
            type: integer
          description: Addresses per page (default 20, at most 100)
        - in: query
          name: search
          schema:
            type: string
          description: >-
            Keep the addresses whose dotted form contains this text (digits and
            dots only)
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BlockIpPage'
          description: A page of the block's addresses
        '400':
          description: '`listed` is not a boolean or `search` is not made of digits and dots'
        '401':
          description: Authentication credentials were not provided or are invalid
        '403':
          description: Your role on this organization cannot read its network resources
        '404':
          description: No such block in this organization, or no such page
      security:
        - BearerAuth: []
components:
  schemas:
    BlockIpPage:
      type: object
      properties:
        count:
          type: integer
          readOnly: true
        next:
          type: string
          format: uri
          readOnly: true
          nullable: true
        previous:
          type: string
          format: uri
          readOnly: true
          nullable: true
        page:
          type: integer
          readOnly: true
        page_size:
          type: integer
          readOnly: true
        total_pages:
          type: integer
          readOnly: true
        results:
          type: array
          items:
            $ref: '#/components/schemas/BlockIp'
          readOnly: true
        checked_at:
          type: string
          format: date-time
          readOnly: true
          nullable: true
        lists:
          type: array
          items:
            $ref: '#/components/schemas/BlocklistState'
          readOnly: true
      required:
        - checked_at
        - count
        - lists
        - next
        - page
        - page_size
        - previous
        - results
        - total_pages
    BlockIp:
      type: object
      properties:
        ip:
          type: string
          format: ipv4
          readOnly: true
        listed:
          type: boolean
          readOnly: true
        listings:
          type: array
          items:
            $ref: '#/components/schemas/IpBlocklistListing'
          readOnly: true
        policy_listings:
          type: array
          items:
            $ref: '#/components/schemas/IpBlocklistListing'
          readOnly: true
      required:
        - ip
        - listed
        - listings
        - policy_listings
    BlocklistState:
      type: object
      properties:
        code:
          type: string
          readOnly: true
        name:
          type: string
          readOnly: true
        category:
          enum:
            - spam
            - malware
            - attack
            - policy
            - reported
          type: string
          description: |-
            * `spam` - Spam
            * `malware` - Malware or exploited host
            * `attack` - Attacks (brute force, scanning, abuse)
            * `policy` - Policy (informational)
            * `reported` - Reported below the listing threshold (informational)
          x-spec-enum-id: 830e5941023162b6
          readOnly: true
        status:
          enum:
            - ok
            - not_checked
            - error
          type: string
          description: |-
            * `ok` - Checked
            * `not_checked` - Not checked
            * `error` - Error
          x-spec-enum-id: cef67c26d551000e
          readOnly: true
        checked_at:
          type: string
          format: date-time
          readOnly: true
          nullable: true
      required:
        - category
        - checked_at
        - code
        - name
        - status
    IpBlocklistListing:
      type: object
      properties:
        list_code:
          type: string
          readOnly: true
        list_name:
          type: string
          readOnly: true
        category:
          enum:
            - spam
            - malware
            - attack
            - policy
            - reported
          type: string
          description: |-
            * `spam` - Spam
            * `malware` - Malware or exploited host
            * `attack` - Attacks (brute force, scanning, abuse)
            * `policy` - Policy (informational)
            * `reported` - Reported below the listing threshold (informational)
          x-spec-enum-id: 830e5941023162b6
          readOnly: true
        return_code:
          type: string
          readOnly: true
        meaning:
          type: string
          readOnly: true
        reason:
          type: string
          readOnly: true
        report_count:
          type: integer
          readOnly: true
          nullable: true
        last_reported_at:
          type: string
          format: date-time
          readOnly: true
          nullable: true
        first_seen_at:
          type: string
          format: date-time
          readOnly: true
        last_seen_at:
          type: string
          format: date-time
          readOnly: true
      required:
        - category
        - first_seen_at
        - last_reported_at
        - last_seen_at
        - list_code
        - list_name
        - meaning
        - reason
        - report_count
        - return_code
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT or API Key
      description: >-
        Use `Authorization: Bearer <token>` header. Token can be a JWT token or
        an API key (format: `sk-onetsolutions-...`).

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.