RedTeamsOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:red_teams> attribute.
Constructor
RedTeamsOperations(*args, **kwargs)
Methods
| create |
Creates a redteam run. |
| get |
Get a redteam by name. |
| list |
List a redteam by name. |
create
Creates a redteam run.
create(red_team: _models.RedTeam, *, content_type: str = 'application/json', **kwargs: Any) -> _models.RedTeam
Parameters
| Name | Description |
|---|---|
|
red_team
Required
|
Redteam to be run. Is one of the following types: RedTeam, JSON, IO[bytes] Required. |
Returns
| Type | Description |
|---|---|
|
RedTeam. The RedTeam is compatible with MutableMapping |
Exceptions
| Type | Description |
|---|---|
get
Get a redteam by name.
get(name: str, **kwargs: Any) -> RedTeam
Parameters
| Name | Description |
|---|---|
|
name
Required
|
Identifier of the red team run. Required. |
Returns
| Type | Description |
|---|---|
|
RedTeam. The RedTeam is compatible with MutableMapping |
Exceptions
| Type | Description |
|---|---|
list
List a redteam by name.
list(**kwargs: Any) -> ItemPaged[RedTeam]
Returns
| Type | Description |
|---|---|
|
An iterator like instance of RedTeam |
Exceptions
| Type | Description |
|---|---|