---
title: "Get open ports for a process"
method: GET
path: "/network/process/{pid}/ports"
tags: ["network"]
---

# Get open ports for a process

`GET /network/process/{pid}/ports`

Get a list of all open ports for a process

## Path parameters

- `pid` integer, required

## Response `200`

Object containing PID and array of network.PortInfo

- object

## Other responses

- `400` — Invalid process ID
- `422` — Unprocessable entity
- `500` — Internal server error

---

[API](https://skmtc.net/blaxel/apis/blaxel-control-plane.md) · [All operations](https://skmtc.net/blaxel/apis/blaxel-control-plane/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/blaxel/blaxel-control-plane/versions/dfa264bc72ee/schema)
