network_taps
Creates, updates, deletes, gets or lists a network_taps
resource.
Overview
Name | network_taps |
Type | Resource |
Id | azure.managed_network_fabric.network_taps |
Fields
- vw_network_taps
- network_taps
Name | Datatype | Description |
---|---|---|
administrative_state | text | field from the properties object |
annotation | text | field from the properties object |
configuration_state | text | field from the properties object |
destinations | text | field from the properties object |
location | text | The geo-location where the resource lives |
networkTapName | text | field from the properties object |
network_packet_broker_id | text | field from the properties object |
polling_type | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
source_tap_rule_id | 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 Tap Properties defines the properties of the resource. |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | networkTapName, resourceGroupName, subscriptionId | Retrieves details of this Network Tap. |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | Displays Network Taps list by resource group GET method. |
list_by_subscription | SELECT | subscriptionId | Displays Network Taps list by subscription GET method. |
create | INSERT | networkTapName, resourceGroupName, subscriptionId, data__properties | Creates a Network Tap. |
delete | DELETE | networkTapName, resourceGroupName, subscriptionId | Deletes Network Tap. |
update | UPDATE | networkTapName, resourceGroupName, subscriptionId | API to update certain properties of the Network Tap resource. |
resync | EXEC | networkTapName, resourceGroupName, subscriptionId | Implements the operation to the underlying resources. |
SELECT
examples
Displays Network Taps list by subscription GET method.
- vw_network_taps
- network_taps
SELECT
administrative_state,
annotation,
configuration_state,
destinations,
location,
networkTapName,
network_packet_broker_id,
polling_type,
provisioning_state,
resourceGroupName,
source_tap_rule_id,
subscriptionId,
tags
FROM azure.managed_network_fabric.vw_network_taps
WHERE subscriptionId = '{{ subscriptionId }}';
SELECT
location,
properties,
tags
FROM azure.managed_network_fabric.network_taps
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new network_taps
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.managed_network_fabric.network_taps (
networkTapName,
resourceGroupName,
subscriptionId,
data__properties,
properties,
tags,
location
)
SELECT
'{{ networkTapName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: annotation
value: string
- name: networkPacketBrokerId
value: []
- name: sourceTapRuleId
value: string
- name: destinations
value:
- object
- name: pollingType
value: string
- name: configurationState
value: []
- name: provisioningState
value: []
- name: administrativeState
value: []
- name: tags
value: object
- name: location
value: string
UPDATE
example
Updates a network_taps
resource.
/*+ update */
UPDATE azure.managed_network_fabric.network_taps
SET
properties = '{{ properties }}',
tags = '{{ tags }}'
WHERE
networkTapName = '{{ networkTapName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified network_taps
resource.
/*+ delete */
DELETE FROM azure.managed_network_fabric.network_taps
WHERE networkTapName = '{{ networkTapName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';