BIG-IQ REST API Assign RegKey to Unmanaged BIG-IP Device

Hi all,

I’m trying to find the REST API command/syntax to assign a RegKey to an unmanaged BIG-IP device.

I’m able to do it from the GUI, but I need to be able to do it through REST API calls as I want to automate the licensing/re-licensing of multiple BIG-IP devices which won’t be managed by BIG-IQ itself, hence the “Unmanaged” option.

Already tried to find the syntax on the REST API Reference Guide, with no luck - DevCentral - An F5 Technical Community - which by the way is for v4.5.0, couldn’t find it for v5.2.0

On the GUI it looks like this:

Thanks!

Sorry that you couldn’t find the REST API reference for BIG-IQ v5.2. Here is the link to that: DevCentral

Please note: “THE BIG-IQ APIs ARE DESIGNED AND TESTED FOR VERSION 5.2. ANY USAGE ON PREVIOUS VERSIONS IS NOT SUPPORTED”

Regarding licensing/re-licensing BIG-IPs (managed and unmanaged) from regkey pools via the BIQ-IQ, please refer to this sub-reference from the above link (BIG-IQ licensing - Registration Key Pools): DevCentral

The relevant section is titled “Add, or license, a device as a member of a BIGIQ license registration key pool.” The relavant JSON object is “post_regkey_members_body”.

Example below: please note that I have enabled basic-auth (disabled by default from BIG-IQ v5.1 - https://support.f5.com/csp/article/K43725273)

curl -sku admin:secret \
https://BIG-IQ-managment-IP/mgmt/cm/device/licensing/pool/regkey/licenses//offerings//members \
-X POST -d '{deviceAddress:BIG-IP-IPaddr, username: "admin", password:"secret"}'

Hope this helps.

Let me know of any questions in this regard.