List active whitelistings
Return MACs that currently have an active session in the Context.
GET /v1/org/{organizationId}/contexts/sign-in/{contextId}/modules/whitelistings/active
Returns the set of whitelisted MACs that are currently online — useful for reconciling an asset-management system against who’s actually connected.
Request
Section titled “Request”| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organizationId | Path | string | Yes | Organization ID. |
contextId | Path | string | Yes | Sign-In Context ID. |
x-auth-token | Header | string | Yes | Context API key. |
Request example
curl "$API_BASE_URL/v1/org/$ORG_ID/contexts/sign-in/$CTX_ID/modules/whitelistings/active" \ -H "x-auth-token: $NETGRAPH_API_TOKEN"Response
Section titled “Response”A JSON array of MAC addresses currently online in the Context.
Response example
[ "AA:BB:CC:00:00:01", "AA:BB:CC:00:00:07"]