---
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.

---

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