cppm version is 6.6.8. I test the REST API step by step from the document "ClearPass REST APIs.pdf". In the lab, I can get the bearer code, and test the privileges API success.
curl -X GET "https://172.16.6.137/api/oauth/privileges" \
-H "Accept: application/json" \
-H "Authorization: Bearer 99be2c41d05f6bda5b6011d7d23baa83d5fa1bc6" \
-m 30 \
-v \
-k
return:status:200.
But I try to test API for query some MAC in endpoint, it's wrong.
curl -X GET "https://172.16.6.137:443/api/endpoint/mac-address/005056a24df1" \
-H "Authorization: Bearer 99be2c41d05f6bda5b6011d7d23baa83d5fa1bc6" \
-m 30 \
-v \
-k
return:
{
"type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html",
"title": "Forbidden",
"status": 403,
"detail": "Access denied"
}
What's the problem? Somebody can help me?