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

Get XMC licenses via script or Rest-API

Get XMC licenses via script or Rest-API

StephanH
Valued Contributor III
Hello,

is there a way to get the current licenses via script or REST-API?

I need the info how many End-Systems for NAC are licensed to proceed in another script.
If I can get the license string it's easy do find out that value.

Or is there another place where I can find the information how many end systems for NAC are licensed?

Best regards
Stephan

Regards Stephan
1 ACCEPTED SOLUTION

StephanH
Valued Contributor III

As I have now finally learned, there is unfortunately no way to query the licenses via the API.
 

Regards Stephan

View solution in original post

16 REPLIES 16

StephanH
Valued Contributor III

As I have now finally learned, there is unfortunately no way to query the licenses via the API.
 

Regards Stephan

Antonio_Opromol
Contributor II

Solved thanks!

Antonio_Opromol
Contributor II

HI, if I try a simple query from the NBI explorer of XMC it works:

query{
  network {
    devices {
      id
      chassisId
      deviceData {
        sysDescr
      }
    }
  }
}
 

But if I try from Postman the same query in the body of the request of type GraphQL with Basic authentication (I use my root account and password) and the url to XMC as follow https://192.168.30.34:8443/nbi/graphql 

I have a 400 bad request answer from XMC

How do I need to do the same query from Postman instead of NBI Explorer in manner it works?

Thanks

Alexander_Kurak
Extreme Employee
For the XMC version I use there are two links that gave me some intro into the GraphQL:

https://XMC:8443/nbi/graphql/schema.idl
https://XMC:8443/nbi/graphiql/index.html (make sure to open the panel on the right side):
https://i.snag.gy/l6txLk.jpg
GTM-P2G8KFN