---
title: "Assign IB devices to a pod"
method: POST
path: "/ibdevices"
---

# Assign IB devices to a pod

`POST /ibdevices`

Assigns one or more Infiniband devices by MAC address to a given pod.

## Request body

- AssignIBDevicesToPodRequest
  - `ibmacaddresses` string[], required — List of IB device MAC addresses to assign such as "60:45:bd:a4:b5:7a"
  - `podNamespace` string, required — Namespace of the target pod
  - `podName` string, required — Name of the target pod

## Response `200`

The request passed initial validation and CNS was able to propagate its state.

- AssignIBDevicesToPodResponse
  - `Message` string, required — Human-readable message or error description

## Other responses

- `400` — One of the IB devices specified is not available.
- `404` — The pod specified by PodID was not found.

## Changes

- **2026-07-17** `b4493fe6b8c8` — 1 info
  - endpoint added
- **2023-09-28** `c28c6f1051b0` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/azure/apis/container-networking-service-cns/changes/ibdevices/post.md)

---

[API](https://skmtc.dev/azure/apis/container-networking-service-cns.md) · [All operations](https://skmtc.dev/azure/apis/container-networking-service-cns/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/container-networking-service-cns/revisions/b4493fe6b8c8/schema)
