UtilitiesLAN

clearSiteDeviceDot1xSession

POST
/api/v1/sites/{site_id}/devices/{device_id}/clear_dot1x

Clear Dot1x Session. The output will be available through websocket.

Authorization

Authorization<token>

Preferred authentication method for automation and integrations. Send the API token in the HTTP Authorization header.

Format: Authorization: Token {apitoken}

Notes:

  • An API token generated for a specific admin has the same privileges as that admin
  • An API token is automatically removed if it is not used for more than 90 days
  • SSO admins cannot generate admin API tokens. Use organization API tokens when scoped Org/Site privileges are needed.

In: header

Path Parameters

site_id*string
Formatuuid
device_id*string
Formatuuid

Request Body

application/json

Request Body

Request body for clearing dot1x sessions on switch ports

ports?array<string>

Port IDs whose dot1x sessions should be cleared

Response Body

curl -X POST "https://example.com/api/v1/sites/000000ab-00ab-00ab-00ab-0000000000ab/devices/000000ab-00ab-00ab-00ab-0000000000ab/clear_dot1x" \  -H "Content-Type: application/json" \  -d '{    "ports": [      "ge-0/0/0"    ]  }'
{  "session": "19e73828-937f-05e6-f709-e29efdb0a82b"}