Client Group
Note
Refer to Authentication for ways to authenticate to the TPP WebSDK.
Note
The feature for client groups is implemented by making use of the WebSDK Config API. It is a wrapper around that API to make interacting with client groups easier.
Client Group Types
Refer to Client Groups for the available client group feature types.
Creating & Deleting A Client Group
from pytpp import Authenticate, Features
api = Authenticate(...)
features = Features(api)
#### CREATE ####
client_group = features.client_groups.agentless.create(name='Awesome Client Group')
#### DELETE ####
features.client_groups.delete(group=client_group)
Assigning & Removing Client Work
from pytpp import Authenticate, Features
api = Authenticate(...)
features = Features(api)
#### ASSIGN CLIENT WORK ####
features.client_groups.agentless.assign_work(group='Awesome Client Group', work='Awesome Client Work')
#### REMOVE CLIENT WORK ####
features.client_groups.remove_work(group='Awesome Client Group', work='Awesome Client Work')
Listing All Client Groups
from pytpp import Authenticate, Features
api = Authenticate(...)
features = Features(api)
all_client_groups = features.client_groups.list()
for client_group in all_client_groups:
print(client_group.name)