Hi,
With CPPM 6.11, there is a lot of new API call, there is an API for list RADIUS Dictionary, but if you try on the swagger or with uri : api/radius-dictionnary, you get the following error :
Invoke-ArubaCPRestMethod api/radius-dictionary
WARNING: The ClearPass API sends an error message:
WARNING: Error description (code): Internal Server Error (500)
WARNING: Error details: Internal server error
or with swagger
{
"validation_errors": {
"sort": "Cannot sort by field: id"
},
"type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html",
"title": "Unprocessable Entity",
"status": 422,
"detail": "Parameter validation failed"
}
it is because there is no id field with radius-dictionary but vendor_id...
you need to use
sort=%2Bvendor_id on uri
Invoke-ArubaCPRestMethod api/radius-dictionary?sort=%2Bvendor_id -Verbose
VERBOSE: https://10.200.4.161:443/api/radius-dictionary?sort=%2Bvendor_id&calculate_count=true
VERBOSE: GET with 0-byte payload
VERBOSE: received -byte response of content type application/hal+json
VERBOSE: Content encoding: iso-8859-1
WARNING: There is extra items use -limit parameter to display
count _links _embedded
----- ------ ---------
122 @{self=; first=; next=; last=} @{items=System.Object[]}
already ask the TAC... it is a feature not a bug...
------------------------------
PowerArubaSW : Powershell Module to use Aruba Switch API for Vlan, VlanPorts, LACP, LLDP...
PowerArubaCP: Powershell Module to use ClearPass API (create NAD, Guest...)
PowerArubaCL: Powershell Module to use Aruba Central
PowerArubaCX: Powershell Module to use ArubaCX API (get interface/vlan/ports info)..
ACEP / ACMX #107 / ACDX #1281
------------------------------