Admin

Initiate an Admin object for the instance of Discovery you intend to query.

Syntax:

tideway.admin(__target__, __token__ [, _api_version_ ] [, _ssl_verify_ ])

Initiation:

>>> import tideway
>>> tw = tideway.admin('hostname','auth-token')

get_admin_baseline

Get a summary of the appliance status, and details of which baseline checks have passed or failed.

Syntax:

.get_admin_baseline

Example:

>>> tw.get_admin_baseline.json()['results']['FAILED'][0]
{'enabled': True, 'message': 'MAJOR: This appliance has insufficent resources', 'name': 'Appliance Specification', 'severity': 'MAJOR'}

get_admin_about

Get the versions of the API supported by a BMC Discovery version.

Syntax:

.get_admin_about

Example:

>>> tw.get_admin_about.json()
{'api_versions': ['1.0', '1.1', '1.2'], 'component': 'REST API', 'product': 'BMC Discovery', 'version': '12.2'}

baseline()

[Deprecated] See get_admin_baseline for usage.

Syntax: .baseline()

about()

[Deprecated] See get_admin_about for usage.

Syntax: .about()

licensing()

Get the latest signed licensing report.

  • CSV option returns raw license data in CSV format as a zip file for offline analysis.
  • RAW option return an encrypted raw license object for import to another appliance.

Syntax:

.licensing([ _content_type_ ])
Parameters Type Required Default Value Options
content_type String No "text/plain" <ul><li>"text/plain"</li><li>"csv"</li><li>"raw"</li></ul>

Example:

>>> tw.licensing()
-----BEGIN LICENSE REPORT-----
License report
==============

Report start time: 2021-01-18 23:00:00.409987+00:00
Report end time  : 2021-01-21 23:00:00.410085+00:00
...