RaiPolicyProperties interface

Azure OpenAI Content Filters properties.

Properties

acs

The ACS manifest. Required by service validation when format is ACS.

acsRegos

Reusable same-account Rego resources loaded with the ACS manifest.

basePolicyName

Name of Rai policy.

contentFilters

The list of Content Filters.

customBlocklists

The list of custom Blocklist.

customExternalSafetyProviders

Optional external safety-provider references used by this policy.

egressPolicy

Egress (outbound network) policy controlling which external endpoints sandboxed agents can reach. Includes rules with Allow/Deny/Transform/Rewrite actions.

format

The policy representation. Omission selects ContentFilters when creating a policy. ACS policy creation and replacement require ACS.

mode

Rai policy mode. The enum value mapping is as below: Default = 0, Deferred=1, Blocking=2, Asynchronous_filter =3. Please use 'Asynchronous_filter' after 2025-06-01. It is the same as 'Deferred' in previous version.

safetyProviders

The list of Safety Providers.

type

Content Filters policy type.

Property Details

acs

The ACS manifest. Required by service validation when format is ACS.

acs?: RaiAcsManifest

Property Value

acsRegos

Reusable same-account Rego resources loaded with the ACS manifest.

acsRegos?: RaiRegoReference[]

Property Value

basePolicyName

Name of Rai policy.

basePolicyName?: string

Property Value

string

contentFilters

The list of Content Filters.

contentFilters?: RaiPolicyContentFilter[]

Property Value

customBlocklists

The list of custom Blocklist.

customBlocklists?: CustomBlocklistConfig[]

Property Value

customExternalSafetyProviders

Optional external safety-provider references used by this policy.

customExternalSafetyProviders?: RaiPolicyCustomExternalSafetyProviderReference[]

Property Value

egressPolicy

Egress (outbound network) policy controlling which external endpoints sandboxed agents can reach. Includes rules with Allow/Deny/Transform/Rewrite actions.

egressPolicy?: RaiEgressPolicyConfig

Property Value

format

The policy representation. Omission selects ContentFilters when creating a policy. ACS policy creation and replacement require ACS.

format?: string

Property Value

string

mode

Rai policy mode. The enum value mapping is as below: Default = 0, Deferred=1, Blocking=2, Asynchronous_filter =3. Please use 'Asynchronous_filter' after 2025-06-01. It is the same as 'Deferred' in previous version.

mode?: string

Property Value

string

safetyProviders

The list of Safety Providers.

safetyProviders?: SafetyProviderConfig[]

Property Value

type

Content Filters policy type.

type?: string

Property Value

string