network_packet_brokers
Creates, updates, deletes, gets or lists a network_packet_brokers
resource.
Overview
Name | network_packet_brokers |
Type | Resource |
Id | azure.managed_network_fabric.network_packet_brokers |
Fields
- vw_network_packet_brokers
- network_packet_brokers
Name | Datatype | Description |
---|---|---|
location | text | The geo-location where the resource lives |
neighbor_group_ids | text | field from the properties object |
networkPacketBrokerName | text | field from the properties object |
network_device_ids | text | field from the properties object |
network_fabric_id | text | field from the properties object |
network_tap_ids | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
source_interface_ids | text | field from the properties object |
subscriptionId | text | field from the properties object |
tags | text | Resource tags. |
Name | Datatype | Description |
---|---|---|
location | string | The geo-location where the resource lives |
properties | object | Network Packet Broker Properties defines the properties of the resource. |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | networkPacketBrokerName, resourceGroupName, subscriptionId | Retrieves details of this Network Packet Broker. |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | Displays NetworkPacketBrokers list by resource group GET method. |
list_by_subscription | SELECT | subscriptionId | Displays Network Packet Brokers list by subscription GET method. |
create | INSERT | networkPacketBrokerName, resourceGroupName, subscriptionId, data__properties | Creates a Network Packet Broker. |
delete | DELETE | networkPacketBrokerName, resourceGroupName, subscriptionId | Deletes Network Packet Broker. |
update | UPDATE | networkPacketBrokerName, resourceGroupName, subscriptionId | API to update certain properties of the Network Packet Broker resource. |
SELECT
examples
Displays Network Packet Brokers list by subscription GET method.
- vw_network_packet_brokers
- network_packet_brokers
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 }}';
SELECT
location,
properties,
tags
FROM azure.managed_network_fabric.network_packet_brokers
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new network_packet_brokers
resource.
- All Properties
- Manifest
/*+ 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 }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: networkFabricId
value: []
- name: networkDeviceIds
value:
- []
- name: sourceInterfaceIds
value:
- []
- name: networkTapIds
value:
- []
- name: neighborGroupIds
value:
- []
- name: provisioningState
value: []
- name: tags
value: object
- name: location
value: string
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 }}';