Skip to main content

defender_for_ai_settings

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

Overview

Namedefender_for_ai_settings
TypeResource
Idazure.cognitive_services.defender_for_ai_settings

Fields

NameDatatypeDescription
accountNametextfield from the properties object
defenderForAISettingNametextfield from the properties object
etagtextResource Etag.
resourceGroupNametextfield from the properties object
statetextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTaccountName, defenderForAISettingName, resourceGroupName, subscriptionIdGets the specified Defender for AI setting by name.
listSELECTaccountName, resourceGroupName, subscriptionIdLists the Defender for AI settings.
create_or_updateINSERTaccountName, defenderForAISettingName, resourceGroupName, subscriptionIdCreates or Updates the specified Defender for AI setting.
updateUPDATEaccountName, defenderForAISettingName, resourceGroupName, subscriptionIdUpdates the specified Defender for AI setting.

SELECT examples

Lists the Defender for AI settings.

SELECT
accountName,
defenderForAISettingName,
etag,
resourceGroupName,
state,
subscriptionId,
system_data,
tags
FROM azure.cognitive_services.vw_defender_for_ai_settings
WHERE accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.cognitive_services.defender_for_ai_settings (
accountName,
defenderForAISettingName,
resourceGroupName,
subscriptionId,
tags,
properties
)
SELECT
'{{ accountName }}',
'{{ defenderForAISettingName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ tags }}',
'{{ properties }}'
;

UPDATE example

Updates a defender_for_ai_settings resource.

/*+ update */
UPDATE azure.cognitive_services.defender_for_ai_settings
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
accountName = '{{ accountName }}'
AND defenderForAISettingName = '{{ defenderForAISettingName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';