Robots
get_robot(robot_id)
async
create_robot(robot, path=None, overwrite=False)
async
Create a new robot account.
Attention
This action requires a sysadmin account to perform.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
robot |
RobotCreate
|
The definition for the robot account to create. |
required |
path |
Optional[Union[str, Path]]
|
Optional path to save the robot credentials to. |
None
|
overwrite |
bool
|
If True, overwrite the existing credentials file.
Has no effect if |
False
|
Returns:
Type | Description |
---|---|
RobotCreated
|
Information about the created robot account. |
update_robot(robot_id, robot)
async
refresh_robot_secret(robot_id, secret)
async
delete_robot(robot_id, missing_ok=None)
async
get_robots(query=None, sort=None, page=1, page_size=10, limit=None)
async
Get all robot accounts, optionally filtered by query.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
query |
Optional[str]
|
A query string to filter the resources. Except the basic properties, the other supported queries includes:
The value of range and list can be:
All of these query patterns should be put in the query string
and separated by |
None
|
sort |
Optional[str]
|
The sort order of the artifacts. |
None
|
page |
int
|
The page of results to return |
1
|
page_size |
int
|
The number of results to return per page |
10
|
limit |
Optional[int]
|
The maximum number of results to return. |
None
|
Returns:
Type | Description |
---|---|
List[Robot]
|
A list of registered robot accounts matching the query. |