Example of usage
from pbuster import PhantomBuster
pb = PhantomBuster()
pb.agent.list()
pbuster.agent.Agent(req)
list()
Fetch all agents (Phantoms)
| Returns: |
|
|---|
get(agent_id)
Fetch a specific agent by ID
| Parameters: |
|
|---|
| Returns: |
|
|---|
status(agent_id)
Fetch the status of the last execution of a specific agent by ID
| Parameters: |
|
|---|
| Returns: |
|
|---|
output(agent_id)
Fetch the output of a specific agent by ID
| Parameters: |
|
|---|
| Returns: |
|
|---|
launch(agent_id, arguments=None)
Run a specific agent.
| Parameters: |
|
|---|
| Returns: |
|
|---|
launch_and_wait(agent_id, arguments=None)
Run a specific agent and wait for it to finish and get results
| Parameters: |
|
|---|
| Returns: |
|
|---|
wait(agent_id)
Wait for a specific agent to finish execution
| Parameters: |
|
|---|
| Returns: |
|
|---|
create(script_name, agent_name=None, org_name='phantombuster', arguments={})
Create a new agent
| Parameters: |
|
|---|
| Returns: |
|
|---|
stop(agent_id)
Stop a specific agent by ID
| Parameters: |
|
|---|
| Returns: |
|
|---|
delete(agent_id)
Delete a specific agent by ID
| Parameters: |
|
|---|
| Returns: |
|
|---|