gabstopper / smc-python

Forcepoint Security Management Center python library:(Moved to official Forcepoint repo)
https://github.com/Forcepoint/fp-NGFW-SMC-python
Apache License 2.0
29 stars 13 forks source link

How to list all licence #61

Closed ad1rie1 closed 5 years ago

ad1rie1 commented 5 years ago

Hello,

i have see the class Licenses for get all licence of a management server but this class have an argument...

How i can use it ?

Dear

gabstopper commented 5 years ago

Hi, Here is an example of listing all licenses:

from smc.administration.system import System

system = System()
for license in system.licenses:
    print(license)
ad1rie1 commented 5 years ago

thanck you :)