Skip to main content

operators

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

Overview

Nameoperators
TypeResource
Idazure.security.operators

Fields

NameDatatypeDescription
idstringResource Id
namestringResource name
identityobjectIdentity for the resource.
typestringResource type

Methods

NameAccessible byRequired ParamsDescription
getSELECTpricingName, securityOperatorName, subscriptionIdGet a specific security operator for the requested scope.
listSELECTpricingName, subscriptionIdLists Microsoft Defender for Cloud securityOperators in the subscription.
create_or_updateINSERTpricingName, securityOperatorName, subscriptionIdCreates Microsoft Defender for Cloud security operator on the given scope.
deleteDELETEpricingName, securityOperatorName, subscriptionIdDelete 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.

/*+ create */
INSERT INTO azure.security.operators (
pricingName,
securityOperatorName,
subscriptionId
)
SELECT
'{{ pricingName }}',
'{{ securityOperatorName }}',
'{{ subscriptionId }}'
;

DELETE example

Deletes the specified operators resource.

/*+ delete */
DELETE FROM azure.security.operators
WHERE pricingName = '{{ pricingName }}'
AND securityOperatorName = '{{ securityOperatorName }}'
AND subscriptionId = '{{ subscriptionId }}';