operators
Creates, updates, deletes, gets or lists a operators
resource.
Overview
Name | operators |
Type | Resource |
Id | azure.security.operators |
Fields
Name | Datatype | Description |
---|---|---|
id | string | Resource Id |
name | string | Resource name |
identity | object | Identity for the resource. |
type | string | Resource type |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | pricingName, securityOperatorName, subscriptionId | Get a specific security operator for the requested scope. |
list | SELECT | pricingName, subscriptionId | Lists Microsoft Defender for Cloud securityOperators in the subscription. |
create_or_update | INSERT | pricingName, securityOperatorName, subscriptionId | Creates Microsoft Defender for Cloud security operator on the given scope. |
delete | DELETE | pricingName, securityOperatorName, subscriptionId | Delete Microsoft Defender for Cloud securityOperator in the subscription. |
SELECT
examples
Lists Microsoft Defender for Cloud securityOperators in the subscription.
SELECT
id,
name,
identity,
type
FROM azure.security.operators
WHERE pricingName = '{{ pricingName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new operators
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.security.operators (
pricingName,
securityOperatorName,
subscriptionId
)
SELECT
'{{ pricingName }}',
'{{ securityOperatorName }}',
'{{ subscriptionId }}'
;
- name: your_resource_model_name
props: []
DELETE
example
Deletes the specified operators
resource.
/*+ delete */
DELETE FROM azure.security.operators
WHERE pricingName = '{{ pricingName }}'
AND securityOperatorName = '{{ securityOperatorName }}'
AND subscriptionId = '{{ subscriptionId }}';