Share via


Rai Content Filters - List

List Content Filters types.

GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/locations/{location}/raiContentFilters?api-version=2024-10-01

URI Parameters

Name In Required Type Description
location
path True

string

Resource location.

subscriptionId
path True

string

minLength: 1

The ID of the target subscription.

api-version
query True

string

minLength: 1

The API version to use for this operation.

Responses

Name Type Description
200 OK

RaiContentFilterListResult

OK.

Other Status Codes

ErrorResponse

Error response describing why the operation failed.

Examples

ListRaiContentFilters

Sample request

GET https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CognitiveServices/locations/WestUS/raiContentFilters?api-version=2024-10-01

Sample response

{
  "value": [
    {
      "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CognitiveServices/locations/WestUS/raiContentFilters/Hate",
      "type": "Microsoft.CognitiveServices/locations/raiContentFilters",
      "name": "Hate",
      "properties": {
        "name": "Hate",
        "isMultiLevelFilter": true
      }
    },
    {
      "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CognitiveServices/locations/WestUS/raiContentFilters/Sexual",
      "type": "Microsoft.CognitiveServices/locations/raiContentFilters",
      "name": "Sexual",
      "properties": {
        "name": "Sexual",
        "isMultiLevelFilter": true
      }
    },
    {
      "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CognitiveServices/locations/WestUS/raiContentFilters/Violence",
      "type": "Microsoft.CognitiveServices/locations/raiContentFilters",
      "name": "Violence",
      "properties": {
        "name": "Violence",
        "isMultiLevelFilter": true
      }
    },
    {
      "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CognitiveServices/locations/WestUS/raiContentFilters/Selfharm",
      "type": "Microsoft.CognitiveServices/locations/raiContentFilters",
      "name": "Selfharm",
      "properties": {
        "name": "Selfharm",
        "isMultiLevelFilter": true
      }
    },
    {
      "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CognitiveServices/locations/WestUS/raiContentFilters/Jailbreak",
      "type": "Microsoft.CognitiveServices/locations/raiContentFilters",
      "name": "Jailbreak",
      "properties": {
        "name": "Jailbreak",
        "isMultiLevelFilter": false,
        "source": "Prompt"
      }
    },
    {
      "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CognitiveServices/locations/WestUS/raiContentFilters/ProtectedMaterialText",
      "type": "Microsoft.CognitiveServices/locations/raiContentFilters",
      "name": "ProtectedMaterialText",
      "properties": {
        "name": "Protected Material Text",
        "isMultiLevelFilter": false,
        "source": "Completion"
      }
    },
    {
      "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CognitiveServices/locations/WestUS/raiContentFilters/ProtectedMaterialCode",
      "type": "Microsoft.CognitiveServices/locations/raiContentFilters",
      "name": "ProtectedMaterialCode",
      "properties": {
        "name": "Protected Material Code",
        "isMultiLevelFilter": false,
        "source": "Completion"
      }
    },
    {
      "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CognitiveServices/locations/WestUS/raiContentFilters/Profanity",
      "type": "Microsoft.CognitiveServices/locations/raiContentFilters",
      "name": "Profanity",
      "properties": {
        "name": "Profanity",
        "isMultiLevelFilter": false
      }
    },
    {
      "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CognitiveServices/locations/WestUS/raiContentFilters/IndirectAttack",
      "type": "Microsoft.CognitiveServices/locations/raiContentFilters",
      "name": "IndirectAttack",
      "properties": {
        "name": "Indirect Attack",
        "isMultiLevelFilter": false,
        "source": "Prompt"
      }
    }
  ]
}

Definitions

Name Description
ErrorAdditionalInfo

The resource management error additional info.

ErrorDetail

The error detail.

ErrorResponse

Error response

Properties

Azure OpenAI Content Filter Properties.

RaiContentFilter

Azure OpenAI Content Filter.

RaiContentFilterListResult

The list of Content Filters.

RaiPolicyContentSource

Content source to apply the Content Filters.

ErrorAdditionalInfo

The resource management error additional info.

Name Type Description
info

object

The additional info.

type

string

The additional info type.

ErrorDetail

The error detail.

Name Type Description
additionalInfo

ErrorAdditionalInfo[]

The error additional info.

code

string

The error code.

details

ErrorDetail[]

The error details.

message

string

The error message.

target

string

The error target.

ErrorResponse

Error response

Name Type Description
error

ErrorDetail

The error object.

Properties

Azure OpenAI Content Filter Properties.

Name Type Description
isMultiLevelFilter

boolean

If the Content Filter has multi severity levels(Low, Medium, or High).

name

string

Name of Content Filter.

source

RaiPolicyContentSource

Content source to apply the Content Filters.

RaiContentFilter

Azure OpenAI Content Filter.

Name Type Description
id

string

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

name

string

The name of the resource

properties

Properties

Azure OpenAI Content Filter Properties.

type

string

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

RaiContentFilterListResult

The list of Content Filters.

Name Type Description
nextLink

string

The link used to get the next page of Content Filters.

value

RaiContentFilter[]

The list of RaiContentFilter.

RaiPolicyContentSource

Content source to apply the Content Filters.

Value Description
Prompt
Completion