Skip to main content

rai_content_filters

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

Overview

Namerai_content_filters
TypeResource
Idazure.cognitive_services.rai_content_filters

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
isMultiLevelFilterbooleanIf the Content Filter has multi severity levels(Low, Medium, or High).
sourcestringContent source to apply the Content Filters. Known values are: "Prompt", "Completion", "PreToolCall", "PostToolCall", "PreRun", and "PostRun". (Prompt, Completion, PreToolCall, PostToolCall, PreRun, PostRun)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectlocation, filter_name, subscription_idGet Content Filters by Name.
listselectlocation, subscription_idList Content Filters types.

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
filter_namestringThe name of the RAI Content Filter. Required.
locationstringThe name of the Azure region. Required.
subscription_idstring

SELECT examples

Get Content Filters by Name.

SELECT
id,
name,
isMultiLevelFilter,
source,
systemData,
type
FROM azure.cognitive_services.rai_content_filters
WHERE location = '{{ location }}' -- required
AND filter_name = '{{ filter_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;