Skip to main content

sub_accounts

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

Overview

Namesub_accounts
TypeResource
Idazure_isv.logz.sub_accounts

Fields

NameDatatypeDescription
idtextARM id of the monitor resource.
nametextName of the monitor resource.
identitytextfield from the properties object
liftr_resource_categorytextfield from the properties object
liftr_resource_preferencetextfield from the properties object
locationtextfield from the properties object
logz_organization_propertiestextfield from the properties object
marketplace_subscription_statustextfield from the properties object
monitorNametextfield from the properties object
monitoring_statustextfield from the properties object
plan_datatextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subAccountNametextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
tagstextfield from the properties object
typetextThe type of the monitor resource.
user_infotextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTmonitorName, resourceGroupName, subAccountName, subscriptionId
listSELECTmonitorName, resourceGroupName, subscriptionId
createINSERTmonitorName, resourceGroupName, subAccountName, subscriptionId, data__location
deleteDELETEmonitorName, resourceGroupName, subAccountName, subscriptionId
updateUPDATEmonitorName, resourceGroupName, subAccountName, subscriptionId
vm_host_payloadEXECmonitorName, resourceGroupName, subAccountName, subscriptionId

SELECT examples

SELECT
id,
name,
identity,
liftr_resource_category,
liftr_resource_preference,
location,
logz_organization_properties,
marketplace_subscription_status,
monitorName,
monitoring_status,
plan_data,
provisioning_state,
resourceGroupName,
subAccountName,
subscriptionId,
system_data,
tags,
type,
user_info
FROM azure_isv.logz.vw_sub_accounts
WHERE monitorName = '{{ monitorName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure_isv.logz.sub_accounts (
monitorName,
resourceGroupName,
subAccountName,
subscriptionId,
data__location,
properties,
identity,
tags,
location
)
SELECT
'{{ monitorName }}',
'{{ resourceGroupName }}',
'{{ subAccountName }}',
'{{ subscriptionId }}',
'{{ data__location }}',
'{{ properties }}',
'{{ identity }}',
'{{ tags }}',
'{{ location }}'
;

UPDATE example

Updates a sub_accounts resource.

/*+ update */
UPDATE azure_isv.logz.sub_accounts
SET
properties = '{{ properties }}',
tags = '{{ tags }}'
WHERE
monitorName = '{{ monitorName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subAccountName = '{{ subAccountName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified sub_accounts resource.

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