Skip to main content

text_blocklist_items

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

Overview

Nametext_blocklist_items
TypeResource
Idazure.ai_content_safety.text_blocklist_items

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
blocklistItemIdstringThe service will generate a BlocklistItemId, which will be a UUID. Required.
descriptionstringBlocklistItem description.
textstringBlocklistItem content. Required.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_text_blocklist_itemselectblocklist_name, blocklist_item_id, endpointGet BlocklistItem By blocklistName And blocklistItemId. Get blocklistItem by blocklistName and blocklistItemId from a text blocklist.
list_text_blocklist_itemsselectblocklist_name, endpointtop, skip, maxpagesizeGet All BlocklistItems By blocklistName. Get all blocklistItems in a text blocklist.

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
blocklist_item_idstringThe service will generate a BlocklistItemId, which will be a UUID. Required.
blocklist_namestringText blocklist name. Required.
endpointstringThe service endpoint host (no scheme), e.g. myaccount.table.cosmos.azure.com:443 - value of the client endpoint parameter. (default: )
maxpagesizeinteger
skipintegerThe number of result items to skip. Default value is None.
topintegerThe number of result items to return. Default value is None.

SELECT examples

Get BlocklistItem By blocklistName And blocklistItemId. Get blocklistItem by blocklistName and blocklistItemId from a text blocklist.

SELECT
blocklistItemId,
description,
text
FROM azure.ai_content_safety.text_blocklist_items
WHERE blocklist_name = '{{ blocklist_name }}' -- required
AND blocklist_item_id = '{{ blocklist_item_id }}' -- required
AND endpoint = '{{ endpoint }}' -- required
;