Security

 View Only

Clearpass API Unprocessable Entity status 422 detail null std::string

This thread has been viewed 9 times
  • 1.  Clearpass API Unprocessable Entity status 422 detail null std::string

    Posted Sep 21, 2018 05:31 AM

    Hello,

    I try to add a device into my clearpass from another program.

    And I was able to get a token, but when I try to add a device I always get this error:

    Unprocessable Entity status 422 detail null std::string

     

    here is my request:

    curl -X POST -k -H 'Content-Type: application/json' -H 'Authorization: Bearer 51704eb89954557d37bdda89d54518a92b3743a9' -i 'https://aruba_ip/api/network-device' --data '{
      "NetworkDevice": {
      "name": "test",
      "description": "test",
      "ip_address" : "111.111.11.111",
      "radius_secret": "ClearPath1",
      "tacacs_secret": "ClearPath1",
      "vendor_name": "Cisco",
      "coa_capable": true,
      "coa_port": 3799,
      "snmp_read": {
      "force_read": true,
      "read_arp_info": true,
      "zone_name":"default",
      "snmp_version" :"V2C",
      "community_string": "telvlsn"
      }
      }
      }'

     

    Any clue whta's wrong ?