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

The following fields are returned by SELECT queries:

NameDatatypeDescription
locationstringThe geo-location where the resource lives
propertiesobjectResource properties.
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, networkPacketBrokerNameRetrieves details of this Network Packet Broker.
list_by_resource_groupselectsubscriptionId, resourceGroupNameDisplays NetworkPacketBrokers list by resource group GET method.
list_by_subscriptionselectsubscriptionIdDisplays Network Packet Brokers list by subscription GET method.
createinsertsubscriptionId, resourceGroupName, networkPacketBrokerName, data__propertiesCreates a Network Packet Broker.
updateupdatesubscriptionId, resourceGroupName, networkPacketBrokerNameAPI to update certain properties of the Network Packet Broker resource.
deletedeletesubscriptionId, resourceGroupName, networkPacketBrokerNameDeletes Network Packet Broker.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
networkPacketBrokerNamestringName of the Network Packet Broker.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.

SELECT examples

Retrieves details of this Network Packet Broker.

SELECT
location,
properties,
tags
FROM azure.managed_network_fabric.network_packet_brokers
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND networkPacketBrokerName = '{{ networkPacketBrokerName }}' -- required
;

INSERT examples

Creates a Network Packet Broker.

INSERT INTO azure.managed_network_fabric.network_packet_brokers (
data__properties,
data__tags,
data__location,
subscriptionId,
resourceGroupName,
networkPacketBrokerName
)
SELECT
'{{ properties }}' /* required */,
'{{ tags }}',
'{{ location }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ networkPacketBrokerName }}'
RETURNING
location,
properties,
tags
;

UPDATE examples

API to update certain properties of the Network Packet Broker resource.

UPDATE azure.managed_network_fabric.network_packet_brokers
SET
data__tags = '{{ tags }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND networkPacketBrokerName = '{{ networkPacketBrokerName }}' --required
RETURNING
location,
properties,
tags;

DELETE examples

Deletes Network Packet Broker.

DELETE FROM azure.managed_network_fabric.network_packet_brokers
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND networkPacketBrokerName = '{{ networkPacketBrokerName }}' --required
;