sub_account_tag_rules
Creates, updates, deletes, gets or lists a sub_account_tag_rules
resource.
Overview
Name | sub_account_tag_rules |
Type | Resource |
Id | azure_isv.logz.sub_account_tag_rules |
Fields
- vw_sub_account_tag_rules
- sub_account_tag_rules
Name | Datatype | Description |
---|---|---|
id | text | The id of the rule set. |
name | text | Name of the rule set. |
log_rules | text | field from the properties object |
monitorName | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
ruleSetName | text | field from the properties object |
subAccountName | text | field from the properties object |
subscriptionId | text | field from the properties object |
system_data | text | field from the properties object |
type | text | The type of the rule set. |
Name | Datatype | Description |
---|---|---|
id | string | The id of the rule set. |
name | string | Name of the rule set. |
properties | object | Definition of the properties for a TagRules resource. |
systemData | object | Metadata pertaining to creation and last modification of the resource. |
type | string | The type of the rule set. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | monitorName, resourceGroupName, ruleSetName, subAccountName, subscriptionId | |
list | SELECT | monitorName, resourceGroupName, subAccountName, subscriptionId | |
create_or_update | INSERT | monitorName, resourceGroupName, ruleSetName, subAccountName, subscriptionId | |
delete | DELETE | monitorName, resourceGroupName, ruleSetName, subAccountName, subscriptionId |
SELECT
examples
- vw_sub_account_tag_rules
- sub_account_tag_rules
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 }}';
SELECT
id,
name,
properties,
systemData,
type
FROM azure_isv.logz.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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure_isv.logz.sub_account_tag_rules (
monitorName,
resourceGroupName,
ruleSetName,
subAccountName,
subscriptionId,
properties
)
SELECT
'{{ monitorName }}',
'{{ resourceGroupName }}',
'{{ ruleSetName }}',
'{{ subAccountName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: name
value: string
- name: id
value: string
- name: type
value: string
- 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: properties
value:
- name: provisioningState
value: []
- name: logRules
value:
- name: sendAadLogs
value: boolean
- name: sendSubscriptionLogs
value: boolean
- name: sendActivityLogs
value: boolean
- name: filteringTags
value:
- - name: name
value: string
- name: value
value: string
- name: action
value: []
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 }}';