你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

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

RedTeam(TargetConfig)

Initializes a new instance of RedTeam.

Properties

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

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

Operators

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

Explicit Interface Implementations

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