Assets¶
Methods described in this section relate to the the assets API.
These methods can be accessed at TenableOT.assets.
-
class
AssetsAPI(api: restfly.session.APISession)[source]¶ -
connections(id)[source]¶ Retrieve the connections of a given asset
Parameters: id (str) – The unique identifier for the asset. Returns: The list of connections present on the given asset. Return type: listExample
>>> connections = ot.assets.connections(id)
-
details(id)[source]¶ Retrieve the details of a given asset
Parameters: id (str) – The unique identifier for the asset. Returns: The resource record for the asset Return type: dictExample
>>> asset = ot.assets.details(id)
-