Skip to main content

azure_traffic_collectors

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

Overview

Nameazure_traffic_collectors
TypeResource
Idazure.network_function.azure_traffic_collectors

Fields

NameDatatypeDescription
idtextResource ID.
nametextResource name.
azureTrafficCollectorNametextfield from the properties object
collector_policiestextfield from the properties object
etagtextA unique read-only string that changes whenever the resource is updated.
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.
virtual_hubtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTazureTrafficCollectorName, resourceGroupName, subscriptionIdGets the specified Azure Traffic Collector in a specified resource group
create_or_updateINSERTazureTrafficCollectorName, resourceGroupName, subscriptionIdCreates or updates a Azure Traffic Collector resource
deleteDELETEazureTrafficCollectorName, resourceGroupName, subscriptionIdDeletes a specified Azure Traffic Collector resource.
update_tagsEXECazureTrafficCollectorName, resourceGroupName, subscriptionIdUpdates the specified Azure Traffic Collector tags.

SELECT examples

Gets the specified Azure Traffic Collector in a specified resource group

SELECT
id,
name,
azureTrafficCollectorName,
collector_policies,
etag,
location,
provisioning_state,
resourceGroupName,
subscriptionId,
system_data,
tags,
type,
virtual_hub
FROM azure.network_function.vw_azure_traffic_collectors
WHERE azureTrafficCollectorName = '{{ azureTrafficCollectorName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

DELETE example

Deletes the specified azure_traffic_collectors resource.

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