Skip to main content

tag_rules

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

Overview

Nametag_rules
TypeResource
Idazure_isv.elastic.tag_rules

Fields

NameDatatypeDescription
idtextThe id of the rule set.
nametextName of the rule set.
log_rulestextfield from the properties object
monitorNametextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
ruleSetNametextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
typetextThe type of the rule set.

Methods

NameAccessible byRequired ParamsDescription
getSELECTmonitorName, resourceGroupName, ruleSetName, subscriptionId
listSELECTmonitorName, resourceGroupName, subscriptionId
create_or_updateINSERTmonitorName, resourceGroupName, ruleSetName, subscriptionId
deleteDELETEmonitorName, resourceGroupName, ruleSetName, subscriptionId

SELECT examples

SELECT
id,
name,
log_rules,
monitorName,
provisioning_state,
resourceGroupName,
ruleSetName,
subscriptionId,
system_data,
type
FROM azure_isv.elastic.vw_tag_rules
WHERE monitorName = '{{ monitorName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure_isv.elastic.tag_rules (
monitorName,
resourceGroupName,
ruleSetName,
subscriptionId,
properties
)
SELECT
'{{ monitorName }}',
'{{ resourceGroupName }}',
'{{ ruleSetName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

DELETE example

Deletes the specified tag_rules resource.

/*+ delete */
DELETE FROM azure_isv.elastic.tag_rules
WHERE monitorName = '{{ monitorName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND ruleSetName = '{{ ruleSetName }}'
AND subscriptionId = '{{ subscriptionId }}';