Share via


RedTeam Class

Definition

Red team details.

public class RedTeam : System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.RedTeam>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.RedTeam>
type RedTeam = class
    interface IJsonModel<RedTeam>
    interface IPersistableModel<RedTeam>
Public Class RedTeam
Implements IJsonModel(Of RedTeam), IPersistableModel(Of RedTeam)
Inheritance
RedTeam
Implements

Constructors

Name Description
RedTeam(TargetConfig)

Initializes a new instance of RedTeam.

Properties

Name Description
ApplicationScenario

Application scenario for the red team operation, to generate scenario specific attacks.

AttackStrategies

List of attack strategies or nested lists of attack strategies.

DisplayName

Name of the red-team run.

Name

Identifier of the red team run.

NumTurns

Number of simulation rounds.

Properties

Red team's properties. Unlike tags, properties are add-only. Once added, a property cannot be removed.

RiskCategories

List of risk categories to generate attack objectives for.

SimulationOnly

Simulation-only or Simulation + Evaluation. Default false, if true the scan outputs conversation not evaluation result.

Status

Status of the red-team. It is set by service and is read-only.

Tags

Red team's tags. Unlike properties, tags are fully mutable.

Target

Target configuration for the red-team run.

Methods

Name Description
JsonModelCreateCore(Utf8JsonReader, ModelReaderWriterOptions)
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
PersistableModelCreateCore(BinaryData, ModelReaderWriterOptions)
PersistableModelWriteCore(ModelReaderWriterOptions)

Operators

Name Description
Explicit(ClientResult to RedTeam)
Implicit(RedTeam to BinaryContent)

Explicit Interface Implementations

Name Description
IJsonModel<RedTeam>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<RedTeam>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<RedTeam>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<RedTeam>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<RedTeam>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to