Infrastructure¶
Methods described in this section relate to the infrastructure API.
These methods can be accessed at TenableIE.infrastructure
.
- class InfrastructureAPI(api: APISession)[source]¶
- create(name: str, login: str, password: str) → List[Dict][source]¶
Creates a new infrastructure instance with inputs of name, username and password.
- Parameters:
- Returns:
Newly created infrastructure instance.
- Return type:
Examples
>>> tie.infrastructure.create( ... name='test_user', ... login='test_user@gmail.com', ... password='tenable.ad'))
- delete(infrastructure_id: str)[source]¶
Deletes the particular infrastructure instance.
- Parameters:
infrastructure_id (str) – The infrastructure instance identifier.
- Return type:
None
Examples
>>> tie.infrastructure.delete(infrastructure_id='1')
- details(infrastructure_id: str) → Dict[source]¶
Gets the details of particular infrastructure instance.
- Parameters:
infrastructure_id (str) – The infrastructure instance identifier.
- Returns:
Details of particular
infrastructure_id
.- Return type:
Examples
>>> tie.infrastructure.details(infrastructure_id='1')
- list() → List[Dict][source]¶
Retrieves the list of infrastructures.
- Returns:
List of infrastructure instances.
- Return type:
Examples
>>> tie.infrastructure.list()
- update(infrastructure_id: str, **kwargs) → Dict[source]¶
Updates the infrastructure of the specific infrastructure instance.
- Parameters:
- Returns:
Updated infrastructure instance.
- Return type:
Examples
>>> tie.infrastructure.update( ... infrastructure_id='1', ... login='updated_login@tenable.com', ... name='updated_user')