packet_captures
Creates, updates, deletes, gets or lists a packet_captures
resource.
Overview
Name | packet_captures |
Type | Resource |
Id | azure.mobile_network.packet_captures |
Fields
- vw_packet_captures
- packet_captures
Name | Datatype | Description |
---|---|---|
bytes_to_capture_per_packet | text | field from the properties object |
capture_start_time | text | field from the properties object |
network_interfaces | text | field from the properties object |
output_files | text | field from the properties object |
packetCaptureName | text | field from the properties object |
packetCoreControlPlaneName | text | field from the properties object |
provisioning_state | text | field from the properties object |
reason | text | field from the properties object |
resourceGroupName | text | field from the properties object |
status | text | field from the properties object |
subscriptionId | text | field from the properties object |
time_limit_in_seconds | text | field from the properties object |
total_bytes_per_session | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | Packet capture session properties. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | packetCaptureName, packetCoreControlPlaneName, resourceGroupName, subscriptionId | Gets information about the specified packet capture session. |
list_by_packet_core_control_plane | SELECT | packetCoreControlPlaneName, resourceGroupName, subscriptionId | Lists all the packet capture sessions under a packet core control plane. |
create_or_update | INSERT | packetCaptureName, packetCoreControlPlaneName, resourceGroupName, subscriptionId, data__properties | Creates or updates a packet capture. |
delete | DELETE | packetCaptureName, packetCoreControlPlaneName, resourceGroupName, subscriptionId | Deletes the specified packet capture. |
stop | EXEC | packetCaptureName, packetCoreControlPlaneName, resourceGroupName, subscriptionId | Stop a packet capture session. |
SELECT
examples
Lists all the packet capture sessions under a packet core control plane.
- vw_packet_captures
- packet_captures
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 }}';
SELECT
properties
FROM azure.mobile_network.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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.mobile_network.packet_captures (
packetCaptureName,
packetCoreControlPlaneName,
resourceGroupName,
subscriptionId,
data__properties,
properties
)
SELECT
'{{ packetCaptureName }}',
'{{ packetCoreControlPlaneName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: provisioningState
value: []
- name: status
value: string
- name: reason
value: string
- name: captureStartTime
value: string
- name: networkInterfaces
value:
- string
- name: bytesToCapturePerPacket
value: integer
- name: totalBytesPerSession
value: integer
- name: timeLimitInSeconds
value: integer
- name: outputFiles
value:
- string
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 }}';