中文讨论区

Reply
Occasional Contributor I

CPPM的REST API问题

cppm版本是6.6.8,根据文档在cppm guest中进行配置,可以获取bearer code。然后测试:

curl -X GET "https://172.16.6.137/api/oauth/privileges" \

-H "Accept: application/json" \

-H "Authorization: Bearer 99be2c41d05f6bda5b6011d7d23baa83d5fa1bc6" \

-m 30 \

-v \

-k

返回:status:200,内容正常。

{"privileges":["#support_contact",…,"xmlrpc"]}

 

然后测试指定某个MAC地址到endpoint:

curl -X GET "https://172.16.6.137:443/api/endpoint/mac-address/005056a24df1" \

就提示:

{
  "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html",
  "title": "Forbidden",
  "status": 403,
  "detail": "Access denied"
}

在guest中的clientID改用IT admin权限也一样,请问,这是什么原因?

 

Search Airheads
cancel
Showing results for 
Search instead for 
Did you mean: