Skip to main content

connection_rai_policies

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

Overview

Nameconnection_rai_policies
TypeResource
Idazure.ml_services.connection_rai_policies

Fields

NameDatatypeDescription
idtextFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
nametextThe name of the resource
base_policy_nametextfield from the properties object
completion_blockliststextfield from the properties object
connectionNametextfield from the properties object
content_filterstextfield from the properties object
modetextfield from the properties object
prompt_blockliststextfield from the properties object
raiPolicyNametextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
typetextThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
workspaceNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTconnectionName, raiPolicyName, resourceGroupName, subscriptionId, workspaceName
listSELECTconnectionName, resourceGroupName, subscriptionId, workspaceName
createINSERTconnectionName, raiPolicyName, resourceGroupName, subscriptionId, workspaceName, data__properties
deleteDELETEconnectionName, raiPolicyName, resourceGroupName, subscriptionId, workspaceName

SELECT examples

SELECT
id,
name,
base_policy_name,
completion_blocklists,
connectionName,
content_filters,
mode,
prompt_blocklists,
raiPolicyName,
resourceGroupName,
subscriptionId,
system_data,
type,
workspaceName
FROM azure.ml_services.vw_connection_rai_policies
WHERE connectionName = '{{ connectionName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';

INSERT example

Use the following StackQL query and manifest file to create a new connection_rai_policies resource.

/*+ create */
INSERT INTO azure.ml_services.connection_rai_policies (
connectionName,
raiPolicyName,
resourceGroupName,
subscriptionId,
workspaceName,
data__properties,
properties
)
SELECT
'{{ connectionName }}',
'{{ raiPolicyName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ workspaceName }}',
'{{ data__properties }}',
'{{ properties }}'
;

DELETE example

Deletes the specified connection_rai_policies resource.

/*+ delete */
DELETE FROM azure.ml_services.connection_rai_policies
WHERE connectionName = '{{ connectionName }}'
AND raiPolicyName = '{{ raiPolicyName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';