---
title: "List used host ports"
method: GET
path: "/container/ports"
tags: ["Container"]
---

# List used host ports

`GET /container/ports`

## Request

- Base URL: `https://sylve.lan:8181/api`
- URL: `https://sylve.lan:8181/api/container/ports`
- Auth: API key in header `Authorization`

List the host ports something listens on or another container publishes

## Query parameters

- `ocid` integer

## Response `200`

Success

- GithubComAlchemillahqSylveInternalAPIResponseArrayGithubComAlchemillahqSylveInternalInterfacesServicesContainerUsedPort
  - `data` GithubComAlchemillahqSylveInternalInterfacesServicesContainerUsedPort[]
    - `address` string
    - `by` string
    - `port` integer
    - `protocol` string
  - `error` string
  - `message` string
  - `status` string

## Changes

- **2026-11-03** `9565cdd0abf5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/alchemillahq/apis/sylve-api/changes/container/ports/get.md)

---

[API](https://skmtc.dev/alchemillahq/apis/sylve-api.md) - [All operations](https://skmtc.dev/alchemillahq/apis/sylve-api/llms.txt) - [OpenAPI document](https://skmtc.dev/alchemillahq/apis/sylve-api/revisions/9565cdd0abf5?raw)
