---
updatedAt: 2025-06-11T23:46:48.000Z
agentTools:
  projectIndex: https://netfire.readme.io/llms.txt
---

# List Hosts

List all currently defined hosts for a tenant.
Requires "List" AND "Read" permission.

> ❗️ This call is resource-intensive
>
> Please limit use of this call, as it is more resource-intensive. If you only need to get details for a single Host, please use the "Get Host" call. You can also use "List HostIDs" to obtain a list of Hosts you can iterate over whenever you may not need the details of every Host.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "waf-api-v1",
    "version": "2"
  },
  "servers": [
    {
      "url": "https://api.netfire.com/waf/v1"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "http",
        "scheme": "basic"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/{tenant}/": {
      "get": {
        "summary": "List Hosts",
        "description": "List all currently defined hosts for a tenant.\nRequires \"List\" AND \"Read\" permission.",
        "operationId": "waf-v1-list-hosts",
        "parameters": [
          {
            "name": "tenant",
            "in": "path",
            "description": "Tenant ID to operate on",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "[  \n  {  \n    \"name\": \"foo\",  \n    \"target\": \"http://198.51.100.5/\"  \n  },  \n  {  \n    \"name\": \"bar\",  \n    \"target\": \"http://198.51.100.6/\"  \n  },  \n  {  \n    \"name\": \"site1\",  \n    \"target\": \"http://server1.sub.domain.tld\"  \n  },  \n  {  \n    \"name\": \"site2\",  \n    \"target\": \"https://server2.sub.domain.tld/app/\"  \n  }  \n]"
                  }
                },
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "example": "foo"
                      },
                      "target": {
                        "type": "string",
                        "example": "http://198.51.100.5/"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": false,
    "proxy-enabled": false
  },
  "x-readme-fauxas": true
}
```