connector_licensing

Boomi AtomSphere API: Connector Licensing Object

boomi_cicd.util.connector_licensing.convert_csv_report_to_json(csv_data)[source]

Converts output of create_connector_licensing_report to a JSON-compatible list of dictionaries, where each row is represented as a dictionary with keys corresponding to the CSV headers.

The first line of the CSV data is assumed to be a title and is ignored.

Parameters:

csv_data (str) – The CSV data as a single string. The first line should be a title, and the subsequent lines should contain CSV-formatted data with headers.

Returns:

A list of dictionaries, where each dictionary represents a row from the CSV data, with keys corresponding to the headers.

Return type:

list of dict

# Example usage:
environment_id = boomi_cicd.query_environment("Test Environment")
csv_report = boomi_cicd.create_connector_licensing_report(environment_id)
json_report = convert_csv_report_to_json(csv_report)
boomi_cicd.util.connector_licensing.create_connector_licensing_report(environment_id, request_interval_sec=5, max_wait_sec=300)[source]

Get the licensing CSV Report for a specific Boomi Environment. Pass “*” to get a report for all environments. The report can contain duplicates because it lists each process the connector is within.

Parameters:
  • environment_id (str) – The ID of the environment. Pass “*” to get the report for all environments.

  • request_interval_sec (int, optional) – The time to wait between retries in seconds. Default is 5 seconds.

  • max_wait_sec (int, optional) – The maximum wait time in seconds. Default is 300 seconds (5 minutes).

Returns:

The response from the Atomsphere API ConnectionLicensing call. Data is returned in CSV format.

Return type:

Str