Skip to main content

packet_captures

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

Overview

Namepacket_captures
TypeResource
Idazure.mobile_network.packet_captures

Fields

NameDatatypeDescription
bytes_to_capture_per_packettextfield from the properties object
capture_start_timetextfield from the properties object
network_interfacestextfield from the properties object
output_filestextfield from the properties object
packetCaptureNametextfield from the properties object
packetCoreControlPlaneNametextfield from the properties object
provisioning_statetextfield from the properties object
reasontextfield from the properties object
resourceGroupNametextfield from the properties object
statustextfield from the properties object
subscriptionIdtextfield from the properties object
time_limit_in_secondstextfield from the properties object
total_bytes_per_sessiontextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTpacketCaptureName, packetCoreControlPlaneName, resourceGroupName, subscriptionIdGets information about the specified packet capture session.
list_by_packet_core_control_planeSELECTpacketCoreControlPlaneName, resourceGroupName, subscriptionIdLists all the packet capture sessions under a packet core control plane.
create_or_updateINSERTpacketCaptureName, packetCoreControlPlaneName, resourceGroupName, subscriptionId, data__propertiesCreates or updates a packet capture.
deleteDELETEpacketCaptureName, packetCoreControlPlaneName, resourceGroupName, subscriptionIdDeletes the specified packet capture.
stopEXECpacketCaptureName, packetCoreControlPlaneName, resourceGroupName, subscriptionIdStop a packet capture session.

SELECT examples

Lists all the packet capture sessions under a packet core control plane.

SELECT
bytes_to_capture_per_packet,
capture_start_time,
network_interfaces,
output_files,
packetCaptureName,
packetCoreControlPlaneName,
provisioning_state,
reason,
resourceGroupName,
status,
subscriptionId,
time_limit_in_seconds,
total_bytes_per_session
FROM azure.mobile_network.vw_packet_captures
WHERE packetCoreControlPlaneName = '{{ packetCoreControlPlaneName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.mobile_network.packet_captures (
packetCaptureName,
packetCoreControlPlaneName,
resourceGroupName,
subscriptionId,
data__properties,
properties
)
SELECT
'{{ packetCaptureName }}',
'{{ packetCoreControlPlaneName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}'
;

DELETE example

Deletes the specified packet_captures resource.

/*+ delete */
DELETE FROM azure.mobile_network.packet_captures
WHERE packetCaptureName = '{{ packetCaptureName }}'
AND packetCoreControlPlaneName = '{{ packetCoreControlPlaneName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';