---
title: "Get a container"
method: GET
path: "/container/{ocid}"
tags: ["Container"]
---

# Get a container

`GET /container/{ocid}`

## Request

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

Get a container's configuration and live Podman state

## Path parameters

- `ocid` integer, required

## Response `200`

Success

- GithubComAlchemillahqSylveInternalAPIResponseGithubComAlchemillahqSylveInternalInterfacesServicesContainerDetail
  - `data` GithubComAlchemillahqSylveInternalInterfacesServicesContainerDetail
    - `annotations` object
    - `catalogApp` string
    - `command` string[]
    - `cores` integer
    - `cpuUsage` number
    - `createdAt` string
    - `creationPending` boolean
    - `description` string
    - `entrypoint` string[]
    - `env` GithubComAlchemillahqSylveInternalDbModelsContainerEnvVar[]
      - `name` string
      - `value` string
    - `extraHosts` string[]
    - `hostname` string
    - `id` integer
    - `image` string
    - `ip` string
    - `memory` integer
    - `memoryUsage` number
    - `mounts` GithubComAlchemillahqSylveInternalDbModelsContainerMount[]
      - `guid` string
      - `mode` string
      - `owner` string
      - `readOnly` boolean
      - `source` string
      - `target` string
      - `type` 'volume' | 'dataset' | 'path'
    - `name` string
    - `network` GithubComAlchemillahqSylveInternalDbModelsContainerNetwork
      - `bridge` string
      - `createdAt` string
      - `gateway` string
      - `id` integer
      - `name` string
      - `rangeEnd` string
      - `rangeStart` string
      - `subnet` string
      - `switchId` integer
      - `switchType` string
      - `updatedAt` string
    - `networkId` integer
    - `ocId` integer
    - `os` string
    - `pool` string
    - `ports` GithubComAlchemillahqSylveInternalDbModelsContainerPort[]
      - `containerPort` integer
      - `hostIp` string
      - `hostPort` integer
      - `protocol` string
    - `restart` string
    - `restartRetries` integer
    - `runtime` GithubComAlchemillahqSylveInternalInterfacesServicesContainerState
      - `exitCode` integer
      - `finishedAt` string
      - `ips` string[]
      - `macs` string[]
      - `startedAt` string
      - `state` string
    - `runtimeId` string
    - `shmSize` string
    - `stack` string
    - `startAtBoot` boolean
    - `startOrder` integer
    - `stopTimeout` integer
    - `updatedAt` string
    - `user` string
    - `webHttps` boolean
    - `webPort` integer
    - `workDir` 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/:ocid/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)
