Forum Discussion

Flipcode's avatar
Flipcode
Icon for Nimbostratus rankNimbostratus
Nov 26, 2024

REST API to download License JSON report?

Hi, 

I'm completely new to F5 Big-IQ, but have plenty of experience writing API integrations.

I've been asked to pull data from an F5 Big IQ instance, specifically the data held in the License Reports section (License Management->Reports).

 

I can manually perform this by selecting the report and clicking download... 

 

...the browser then downloads a lump of JSON that I can view. 

Is this possible to perform via a REST API (so I can consume the JSON into a database)?

 

Thanks

  • Hello  Flipcode   

    Have you  seen this article yet? 
    API request to retrieve the license details

    this is the summary generated by AI on MyF5com  site 

    Yes, you can use a REST API to download the License JSON report from an F5 Big IQ instance.

     To achieve this, you can interact with the F5OS API by sending a GET request with the appropriate headers to retrieve the license details in JSON format.

    The API request should include the Accept header set to 'application/yang-data+json' and the necessary authentication credentials.

    By using a command similar to the following example:

    curl -X GET -H 'Accept: application/yang-data+json' -sku admin:admin https://localhost:8888/restconf/data/openconfig-system:system/f5-system-licensing:licensing ```

    This command will fetch the License JSON report data that you can then consume into a database or any other system for further analysis or processing.