Helix Core is now P4 and Helix Swarm is now P4 Code Review. Product user interfaces will be updated soon. Learn more >>

Documentation | 2025.5

# Servers : P4 Code Review Servers API

From P4 Code Review 2022.2, P4 Code Review no longer supports APIs older than v9.

## Get a list of servers

### Summary

Gets a list of servers

GET /api/v9/servers/

### Description

Gets a list of servers

### Example response

#### Successful Response:

    HTTP/1.1 200 OK

    {
      "servers": {
        "Main": {
         "port": "ssl:10.33.44.55:1666"
        },
        "Artifacts": {
         "port": "10.55.66.77:1666"
        }
      }
    }

### Example usage

#### Get a list of servers

Get a list of servers that P4 Code Review is aware of

    curl -u "username:password" "https://myswarm.url/api/v9/servers/"

If multiple p4d are configured it will give an output like

    HTTP/1.1 200 OK

    {
      "servers": {
        "Main": {
           "port": "ssl:10.33.44.55:1666"
        },
        "Artifacts": {
           "port": "10.55.66.77:1666"
        }
      }
    }

If a single p4d is configured it will give an output like

    HTTP/1.1 200 OK

    {
      "servers": {
        "p4": {
           "port": "ssl:10.33.44.55:1666"
        }
      }
    }

Your search for returned results