Profiles¶
Methods described in this section relate to the profiles API.
These methods can be accessed at TenableIE.profiles
.
- class ProfilesAPI(api: APISession)[source]¶
- commit(profile_id: str) → None[source]¶
Commits change of the related profile
- Parameters:
profile_id (str) – The profile instance identifier.
- Returns:
None
Example
>>> tie.profiles.commit('1')
- copy_profile(from_id: str, name: str, directories: List[int]) → Dict[source]¶
Creates a new profile from another profile
- Parameters:
- Returns:
The copied role object.
- Return type:
Examples
>>> tie.profiles.copy_profile( ... from_id='1', ... name='Copied name', ... directories=[1, 2] ... )
- create(name: str, directories: List[int]) → List[Dict][source]¶
Create a profile
- Parameters:
- Returns:
The created profile objects
- Return type:
Example
>>> tie.profiles.create( ... name='ExampleProfile', ... directories=[1, 2] ... )
- delete(profile_id: str) → None[source]¶
Delete an existing profile
- Parameters:
profile_id (str) – The profile instance identifier.
- Return type:
None
Examples
>>> tie.profiles.delete(profile_id='1')
- details(profile_id: str) → Dict[source]¶
Retrieves the details for a specific profile
- Parameters:
profile_id (str) – The profile instance identifier.
- Returns:
The profile object.
- Return type:
Examples
>>> tie.profiles.details('1')
- unstage(profile_id: str) → None[source]¶
Unstages changes of the related profile
- Parameters:
profile_id (str) – The profile instance identifier.
- Returns:
None
Example
>>> tie.profiles.unstage('1')