Skip to main content

sub_account_tag_rules

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

Overview

Namesub_account_tag_rules
TypeResource
Idazure_isv.logz.sub_account_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
subAccountNametextfield 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, subAccountName, subscriptionId
listSELECTmonitorName, resourceGroupName, subAccountName, subscriptionId
create_or_updateINSERTmonitorName, resourceGroupName, ruleSetName, subAccountName, subscriptionId
deleteDELETEmonitorName, resourceGroupName, ruleSetName, subAccountName, subscriptionId

SELECT examples

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

INSERT example

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

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

DELETE example

Deletes the specified sub_account_tag_rules resource.

/*+ delete */
DELETE FROM azure_isv.logz.sub_account_tag_rules
WHERE monitorName = '{{ monitorName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND ruleSetName = '{{ ruleSetName }}'
AND subAccountName = '{{ subAccountName }}'
AND subscriptionId = '{{ subscriptionId }}';