Skip to main content

beta_red_teams

Creates, updates, deletes, gets or lists a beta_red_teams resource.

Overview

Namebeta_red_teams
TypeResource
Idazure.ai_projects.beta_red_teams

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringIdentifier of the red team run. Required.
applicationScenariostringApplication scenario for the red team operation, to generate scenario specific attacks.
attackStrategiesarrayList of attack strategies or nested lists of attack strategies.
displayNamestringName of the red-team run.
numTurnsintegerNumber of simulation rounds.
propertiesobjectRed team's properties. Unlike tags, properties are add-only. Once added, a property cannot be removed.
riskCategoriesarrayList of risk categories to generate attack objectives for.
simulationOnlybooleanSimulation-only or Simulation + Evaluation. If true the scan outputs conversation not evaluation result. The service defaults to false if a value is not specified by the caller.
statusstringStatus of the red-team. It is set by service and is read-only.
tagsobjectRed team's tags. Unlike properties, tags are fully mutable.
targetobjectTarget configuration for the red-team run. Required.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectname, endpointGet a redteam. Retrieves the specified redteam and its configuration.
listselectendpointList redteams. Returns the redteams available in the current project.
createinsertendpoint, targetCreate a redteam run. Submits a new redteam run for execution with the provided configuration.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
endpointstringThe service endpoint host (no scheme), e.g. myaccount.table.cosmos.azure.com:443 - value of the client endpoint parameter. (default: )
namestringIdentifier of the red team run. Required.

SELECT examples

Get a redteam. Retrieves the specified redteam and its configuration.

SELECT
id,
applicationScenario,
attackStrategies,
displayName,
numTurns,
properties,
riskCategories,
simulationOnly,
status,
tags,
target
FROM azure.ai_projects.beta_red_teams
WHERE name = '{{ name }}' -- required
AND endpoint = '{{ endpoint }}' -- required
;

INSERT examples

Create a redteam run. Submits a new redteam run for execution with the provided configuration.

INSERT INTO azure.ai_projects.beta_red_teams (
displayName,
numTurns,
attackStrategies,
simulationOnly,
riskCategories,
applicationScenario,
tags,
properties,
target,
endpoint
)
SELECT
'{{ displayName }}',
{{ numTurns }},
'{{ attackStrategies }}',
{{ simulationOnly }},
'{{ riskCategories }}',
'{{ applicationScenario }}',
'{{ tags }}',
'{{ properties }}',
'{{ target }}' /* required */,
'{{ endpoint }}'
RETURNING
id,
applicationScenario,
attackStrategies,
displayName,
numTurns,
properties,
riskCategories,
simulationOnly,
status,
tags,
target
;