Skip to main content

network_interfaces

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

Overview

Namenetwork_interfaces
TypeResource
Idazure.managed_network_fabric.network_interfaces

Fields

NameDatatypeDescription
administrative_statetextfield from the properties object
annotationtextfield from the properties object
connected_totextfield from the properties object
interface_typetextfield from the properties object
ipv4_addresstextfield from the properties object
ipv6_addresstextfield from the properties object
networkDeviceNametextfield from the properties object
networkInterfaceNametextfield from the properties object
physical_identifiertextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTnetworkDeviceName, networkInterfaceName, resourceGroupName, subscriptionIdGet the Network Interface resource details.
list_by_network_deviceSELECTnetworkDeviceName, resourceGroupName, subscriptionIdList all the Network Interface resources in a given resource group.
createINSERTnetworkDeviceName, networkInterfaceName, resourceGroupName, subscriptionId, data__propertiesCreate a Network Interface resource.
deleteDELETEnetworkDeviceName, networkInterfaceName, resourceGroupName, subscriptionIdDelete the Network Interface resource.
updateUPDATEnetworkDeviceName, networkInterfaceName, resourceGroupName, subscriptionIdUpdate certain properties of the Network Interface resource.

SELECT examples

List all the Network Interface resources in a given resource group.

SELECT
administrative_state,
annotation,
connected_to,
interface_type,
ipv4_address,
ipv6_address,
networkDeviceName,
networkInterfaceName,
physical_identifier,
provisioning_state,
resourceGroupName,
subscriptionId
FROM azure.managed_network_fabric.vw_network_interfaces
WHERE networkDeviceName = '{{ networkDeviceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.managed_network_fabric.network_interfaces (
networkDeviceName,
networkInterfaceName,
resourceGroupName,
subscriptionId,
data__properties,
properties
)
SELECT
'{{ networkDeviceName }}',
'{{ networkInterfaceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}'
;

UPDATE example

Updates a network_interfaces resource.

/*+ update */
UPDATE azure.managed_network_fabric.network_interfaces
SET
properties = '{{ properties }}'
WHERE
networkDeviceName = '{{ networkDeviceName }}'
AND networkInterfaceName = '{{ networkInterfaceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified network_interfaces resource.

/*+ delete */
DELETE FROM azure.managed_network_fabric.network_interfaces
WHERE networkDeviceName = '{{ networkDeviceName }}'
AND networkInterfaceName = '{{ networkInterfaceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';