Skip to main content

network_packet_brokers

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

Overview

Namenetwork_packet_brokers
TypeResource
Idazure.managed_network_fabric.network_packet_brokers

Fields

NameDatatypeDescription
locationtextThe geo-location where the resource lives
neighbor_group_idstextfield from the properties object
networkPacketBrokerNametextfield from the properties object
network_device_idstextfield from the properties object
network_fabric_idtextfield from the properties object
network_tap_idstextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
source_interface_idstextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTnetworkPacketBrokerName, resourceGroupName, subscriptionIdRetrieves details of this Network Packet Broker.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdDisplays NetworkPacketBrokers list by resource group GET method.
list_by_subscriptionSELECTsubscriptionIdDisplays Network Packet Brokers list by subscription GET method.
createINSERTnetworkPacketBrokerName, resourceGroupName, subscriptionId, data__propertiesCreates a Network Packet Broker.
deleteDELETEnetworkPacketBrokerName, resourceGroupName, subscriptionIdDeletes Network Packet Broker.
updateUPDATEnetworkPacketBrokerName, resourceGroupName, subscriptionIdAPI to update certain properties of the Network Packet Broker resource.

SELECT examples

Displays Network Packet Brokers list by subscription GET method.

SELECT
location,
neighbor_group_ids,
networkPacketBrokerName,
network_device_ids,
network_fabric_id,
network_tap_ids,
provisioning_state,
resourceGroupName,
source_interface_ids,
subscriptionId,
tags
FROM azure.managed_network_fabric.vw_network_packet_brokers
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.managed_network_fabric.network_packet_brokers (
networkPacketBrokerName,
resourceGroupName,
subscriptionId,
data__properties,
properties,
tags,
location
)
SELECT
'{{ networkPacketBrokerName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;

UPDATE example

Updates a network_packet_brokers resource.

/*+ update */
UPDATE azure.managed_network_fabric.network_packet_brokers
SET
tags = '{{ tags }}'
WHERE
networkPacketBrokerName = '{{ networkPacketBrokerName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified network_packet_brokers resource.

/*+ delete */
DELETE FROM azure.managed_network_fabric.network_packet_brokers
WHERE networkPacketBrokerName = '{{ networkPacketBrokerName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';