Skip to main content

network_packet_brokers

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

Overview

Namenetwork_packet_brokers
TypeResource
Idazure_extras.managed_network_fabric.network_packet_brokers

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
configurationStatestringConfiguration state of the resource. Known values are: "Succeeded", "Failed", "Rejected", "Accepted", "Provisioned", "ErrorProvisioning", "Deprovisioning", "Deprovisioned", "ErrorDeprovisioning", "DeferredControl", "Provisioning", "PendingCommit", and "PendingAdministrativeUpdate". (Succeeded, Failed, Rejected, Accepted, Provisioned, ErrorProvisioning, Deprovisioning, Deprovisioned, ErrorDeprovisioning, DeferredControl, Provisioning, PendingCommit, PendingAdministrativeUpdate)
identityobjectThe managed service identities assigned to this resource.
lastOperationobjectDetails of the last operation performed on the resource.
locationstringThe geo-location where the resource lives. Required.
neighborGroupIdsarrayList of neighbor group IDs configured on NPB.
networkDeviceIdsarrayList of ARM resource IDs of Network Devices [NPB].
networkFabricIdstringARM resource ID of the Network Fabric. Required.
networkTapIdsarrayList of network Tap IDs configured on NPB.
provisioningStatestringProvisioning state of the resource. Known values are: "Accepted", "Succeeded", "Updating", "Deleting", "Failed", and "Canceled". (Accepted, Succeeded, Updating, Deleting, Failed, Canceled)
sourceInterfaceIdsarrayList of network interfaces across NPB devices that are used to mirror source traffic.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, network_packet_broker_name, subscription_idRetrieves details of this Network Packet Broker.
list_by_resource_groupselectresource_group_name, subscription_idDisplays NetworkPacketBrokers list by resource group GET method.
list_by_subscriptionselectsubscription_idDisplays Network Packet Brokers list by subscription GET method.
createinsertresource_group_name, network_packet_broker_name, subscription_id, location, propertiesCreates a Network Packet Broker.
updateupdateresource_group_name, network_packet_broker_name, subscription_idAPI to update certain properties of the Network Packet Broker resource.
deletedeleteresource_group_name, network_packet_broker_name, subscription_idDeletes 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
network_packet_broker_namestringName of the Network Packet Broker. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Retrieves details of this Network Packet Broker.

SELECT
id,
name,
configurationState,
identity,
lastOperation,
location,
neighborGroupIds,
networkDeviceIds,
networkFabricId,
networkTapIds,
provisioningState,
sourceInterfaceIds,
systemData,
tags,
type
FROM azure_extras.managed_network_fabric.network_packet_brokers
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND network_packet_broker_name = '{{ network_packet_broker_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates a Network Packet Broker.

INSERT INTO azure_extras.managed_network_fabric.network_packet_brokers (
tags,
location,
properties,
identity,
resource_group_name,
network_packet_broker_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}' /* required */,
'{{ identity }}',
'{{ resource_group_name }}',
'{{ network_packet_broker_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
identity,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

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

UPDATE azure_extras.managed_network_fabric.network_packet_brokers
SET
tags = '{{ tags }}',
identity = '{{ identity }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND network_packet_broker_name = '{{ network_packet_broker_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
identity,
location,
properties,
systemData,
tags,
type;

DELETE examples

Deletes Network Packet Broker.

DELETE FROM azure_extras.managed_network_fabric.network_packet_brokers
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND network_packet_broker_name = '{{ network_packet_broker_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;