Skip to main content

rai_external_safety_provider

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

Overview

Namerai_external_safety_provider
TypeResource
Idazure.cognitive_services.rai_external_safety_provider

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.
createdAtstring (date-time)Creation time of the safety provider.
etagstringResource Etag.
keyVaultUristringThe Key Vault URI that contains the api key for safety provider urls.
lastModifiedAtstring (date-time)Last modified time of the safety provider.
managedIdentitystringThe managed identity to access the Key Vault.
modestringSafety provider mode sync/async.
providerIdstringThe unique identifier of the safety provider.
providerNamestringName of the safety provider.
secretNamestringThe name of the secret in Key Vault that contains the api key to access the webhook.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
urlstringWebhook URL for the safety provider.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsafety_provider_name, subscription_idGets the specified external safety provider associated with the Subscription.
create_or_updateinsertsafety_provider_name, subscription_idCreate the rai safety provider associated with the subscription.
create_or_updatereplacesafety_provider_name, subscription_idCreate the rai safety provider associated with the subscription.
deletedeletesafety_provider_name, subscription_idDeletes the specified custom topic associated with the subscription.

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
safety_provider_namestringThe name of the Rai External Safety Provider associated with the Cognitive Services Account. Required.
subscription_idstring

SELECT examples

Gets the specified external safety provider associated with the Subscription.

SELECT
id,
name,
createdAt,
etag,
keyVaultUri,
lastModifiedAt,
managedIdentity,
mode,
providerId,
providerName,
secretName,
systemData,
tags,
type,
url
FROM azure.cognitive_services.rai_external_safety_provider
WHERE safety_provider_name = '{{ safety_provider_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create the rai safety provider associated with the subscription.

INSERT INTO azure.cognitive_services.rai_external_safety_provider (
properties,
safety_provider_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ safety_provider_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
etag,
properties,
systemData,
tags,
type
;

REPLACE examples

Create the rai safety provider associated with the subscription.

REPLACE azure.cognitive_services.rai_external_safety_provider
SET
properties = '{{ properties }}'
WHERE
safety_provider_name = '{{ safety_provider_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
etag,
properties,
systemData,
tags,
type;

DELETE examples

Deletes the specified custom topic associated with the subscription.

DELETE FROM azure.cognitive_services.rai_external_safety_provider
WHERE safety_provider_name = '{{ safety_provider_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;