Skip to main content

collector_policies

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

Overview

Namecollector_policies
TypeResource
Idazure.network_function.collector_policies

Fields

NameDatatypeDescription
idtextResource ID.
nametextResource name.
azureTrafficCollectorNametextfield from the properties object
collectorPolicyNametextfield from the properties object
emission_policiestextfield from the properties object
etagtextA unique read-only string that changes whenever the resource is updated.
ingestion_policytextfield from the properties object
locationtextResource location.
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
tagstextResource tags.
typetextResource type.

Methods

NameAccessible byRequired ParamsDescription
getSELECTazureTrafficCollectorName, collectorPolicyName, resourceGroupName, subscriptionIdGets the collector policy in a specified Traffic Collector
listSELECTazureTrafficCollectorName, resourceGroupName, subscriptionIdReturn list of Collector policies in a Azure Traffic Collector
create_or_updateINSERTazureTrafficCollectorName, collectorPolicyName, resourceGroupName, subscriptionIdCreates or updates a Collector Policy resource
deleteDELETEazureTrafficCollectorName, collectorPolicyName, resourceGroupName, subscriptionIdDeletes a specified Collector Policy resource.
update_tagsEXECazureTrafficCollectorName, collectorPolicyName, resourceGroupName, subscriptionIdUpdates the specified Collector Policy tags.

SELECT examples

Return list of Collector policies in a Azure Traffic Collector

SELECT
id,
name,
azureTrafficCollectorName,
collectorPolicyName,
emission_policies,
etag,
ingestion_policy,
location,
provisioning_state,
resourceGroupName,
subscriptionId,
system_data,
tags,
type
FROM azure.network_function.vw_collector_policies
WHERE azureTrafficCollectorName = '{{ azureTrafficCollectorName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.network_function.collector_policies (
azureTrafficCollectorName,
collectorPolicyName,
resourceGroupName,
subscriptionId,
properties,
location,
tags
)
SELECT
'{{ azureTrafficCollectorName }}',
'{{ collectorPolicyName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ location }}',
'{{ tags }}'
;

DELETE example

Deletes the specified collector_policies resource.

/*+ delete */
DELETE FROM azure.network_function.collector_policies
WHERE azureTrafficCollectorName = '{{ azureTrafficCollectorName }}'
AND collectorPolicyName = '{{ collectorPolicyName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';