Network Management

 View Only
last person joined: 2 days ago 

Keep an informative eye on your network with IMC and AirWave network management solutions.
Expand all | Collapse all

cppm python api add endpoint

Jump to Best Answer
This thread has been viewed 10 times
  • 1.  cppm python api add endpoint

    Posted Jan 18, 2022 10:13 AM
    hi dear
         
          I want to use python api to import multiple mac addresses to endpoint, but I don't know python api, can you help me?

    this is token api,but this  error
    import requests
    import json

    url = "https://172.16.0.100/api/oauth"

    payload = {
    "client_id": "client1",
    "username": "user1",
    "password": "aruba123"
    }
    headers = {
    "Accept": "application/json",
    "Authorization": "Bearer <TOKEN>",
    "Content-Type": "application/json"
    }

    response = requests.request("POST", url, json=payload, headers=headers)

    print(response.text)

















    ------------------------------
    leo ma
    ------------------------------


  • 2.  RE: cppm python api add endpoint
    Best Answer

    MVP GURU
    Posted Jan 18, 2022 11:32 AM
    Hi Leo,

    You need to disable SSL certificat check (i think you are using a self signed certificate)

    You can also use cpapi.py => https://github.com/aruba/clearpass-api-python

    Or PowerArubaCP (Powershell) with already cmdlet for Manage EndPoint => https://github.com/PowerAruba/PowerArubaCP#endpoint

    ------------------------------
    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
    ------------------------------



  • 3.  RE: cppm python api add endpoint

    Posted Jan 18, 2022 08:34 PM
    hi dear
      thank you

    ------------------------------
    leo ma
    ------------------------------