Experimental GraphQL support - Platform - BlueCat Gateway - 22.4.1

Gateway Administration Guide

Locale
English
Product name
BlueCat Gateway
Version
22.4.1

This release of Gateway includes a new experimental GraphQL API Client. Harness the power and flexibility of GraphQL to fetch BlueCat Address Manager data simply and efficiently.

Gateway GraphQL functionality is not intended or planned for large data set retrieval. It is meant to improve efficiency in the retrieval of small but relevant data when needed.

Documentation for supported GraphQL interfaces can be found in BlueCat Address Manager on the Administration tab, in GraphQL API Lab section.

To access Gateway's GraphQL, use the following call:

import json
from bluecat_libraries.address_manager._graphql import Client

with Client("<bam_url>/graphql") as client:
    client.authenticate(<username>, <password>)
    data = client.execute("query { configurations { name } }")
          
print(json.dumps(data, sort_keys=True, indent=4))

Here, query { configurations { name } } is an example of a GraphQL query. You can replace it with any GraphQL query that you want to experiment with.

Access to GraphQL is also available from the external Python library.

Warning: The GraphQL client is in an internal python module. As such, there might be changes to the python module name in future updates and releases. This feature is experimental, in incubation, and may change or disappear in the future without further notice.
Tip: We encourage you to submit feedback about the current implementation, and suggestions about the future of this project. Please use the Send feedback button for this topic (quote button next to topic heading) to submit feedback about GraphQL.