go-unifi

Get Switch Stack

Retrieve Switch Stack details.

GET
/v1/sites/{siteId}/switching/switch-stacks/{switchStackId}

Retrieve Switch Stack details.

X-Api-Key<token>

UniFi API key. Create one under Control Plane → Admins & Users → your admin → Create API Key (requires controller 9.0.114+).

In: header

Path Parameters

switchStackId*string
siteId*string

Response Body

application/json

curl -X GET "https://example.com/v1/sites/497f6eca-6276-4993-bfeb-53cbbbba6f08/switching/switch-stacks/497f6eca-6276-4993-bfeb-53cbbbba6f08"
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "name": "string",  "members": [    {      "deviceId": "4de4adb9-21ee-47e3-aeb4-8cf8ed6c109a"    },    {      "deviceId": "4de4adb9-21ee-47e3-aeb4-8cf8ed6c109a"    }  ],  "lags": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "members": [        {          "deviceId": "4de4adb9-21ee-47e3-aeb4-8cf8ed6c109a",          "portIdxs": [            0          ]        }      ],      "metadata": null    }  ],  "metadata": null}