defender_for_ai_settings
Creates, updates, deletes, gets or lists a defender_for_ai_settings
resource.
Overview
Name | defender_for_ai_settings |
Type | Resource |
Id | azure.cognitive_services.defender_for_ai_settings |
Fields
- vw_defender_for_ai_settings
- defender_for_ai_settings
Name | Datatype | Description |
---|---|---|
accountName | text | field from the properties object |
defenderForAISettingName | text | field from the properties object |
etag | text | Resource Etag. |
resourceGroupName | text | field from the properties object |
state | text | field from the properties object |
subscriptionId | text | field from the properties object |
system_data | text | field from the properties object |
tags | text | Resource tags. |
Name | Datatype | Description |
---|---|---|
etag | string | Resource Etag. |
properties | object | The Defender for AI resource properties. |
systemData | object | Metadata pertaining to creation and last modification of the resource. |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | accountName, defenderForAISettingName, resourceGroupName, subscriptionId | Gets the specified Defender for AI setting by name. |
list | SELECT | accountName, resourceGroupName, subscriptionId | Lists the Defender for AI settings. |
create_or_update | INSERT | accountName, defenderForAISettingName, resourceGroupName, subscriptionId | Creates or Updates the specified Defender for AI setting. |
update | UPDATE | accountName, defenderForAISettingName, resourceGroupName, subscriptionId | Updates the specified Defender for AI setting. |
SELECT
examples
Lists the Defender for AI settings.
- vw_defender_for_ai_settings
- 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 }}';
SELECT
etag,
properties,
systemData,
tags
FROM azure.cognitive_services.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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.cognitive_services.defender_for_ai_settings (
accountName,
defenderForAISettingName,
resourceGroupName,
subscriptionId,
tags,
properties
)
SELECT
'{{ accountName }}',
'{{ defenderForAISettingName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ tags }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: systemData
value:
- name: createdBy
value: string
- name: createdByType
value: string
- name: createdAt
value: string
- name: lastModifiedBy
value: string
- name: lastModifiedByType
value: string
- name: lastModifiedAt
value: string
- name: etag
value: string
- name: tags
value: object
- name: properties
value:
- name: state
value: string
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 }}';