---
title: "Get workspace pod template resources"
method: GET
path: "/workspaces/{namespace}/{name}/podtemplate/resources"
tags: ["workspaces"]
---

# Get workspace pod template resources

`GET /workspaces/{namespace}/{name}/podtemplate/resources`

## Request

- Base URL: `http://localhost:4000/api/v1`
- URL: `http://localhost:4000/api/v1/workspaces/{namespace}/{name}/podtemplate/resources`
- Auth: none declared

Returns point-in-time CPU and memory usage for each container of the workspace pod when available, alongside the requests and limits configured in the pod spec.

## Path parameters

- `namespace` string, required
- `name` string, required

## Response `200`

Successful operation. Returns per-container configured resources and live usage metrics when available.

- ApiWorkspaceResourceUsageEnvelope
  - `data` ResourcesWorkspaceResourceUsage, required
    - `containers` object, required: Containers holds the per-container resource data, keyed by container name.

## Other responses

- `400`: Bad Request. Workspace pod is not running.
- `401`: Unauthorized.
- `403`: Forbidden.
- `404`: Workspace not found.
- `422`: Unprocessable Entity. Validation error.
- `500`: Internal server error.

## Changes

- **2026-10-14** `f336b3b779f0`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/opendatahub-io/apis/kubeflow-notebooks-api/changes/workspaces/:namespace/:name/podtemplate/resources/get.md)

---

[API](https://skmtc.dev/opendatahub-io/apis/kubeflow-notebooks-api.md) - [All operations](https://skmtc.dev/opendatahub-io/apis/kubeflow-notebooks-api/llms.txt) - [OpenAPI document](https://skmtc.dev/opendatahub-io/apis/kubeflow-notebooks-api/revisions/f336b3b779f0?raw)
