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

The following fields are returned by SELECT queries:

NameDatatypeDescription
propertiesobjectResource properties.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, networkDeviceName, networkInterfaceNameGet the Network Interface resource details.
list_by_network_deviceselectsubscriptionId, resourceGroupName, networkDeviceNameList all the Network Interface resources in a given resource group.
createinsertsubscriptionId, resourceGroupName, networkDeviceName, networkInterfaceName, data__propertiesCreate a Network Interface resource.
updateupdatesubscriptionId, resourceGroupName, networkDeviceName, networkInterfaceNameUpdate certain properties of the Network Interface resource.
deletedeletesubscriptionId, resourceGroupName, networkDeviceName, networkInterfaceNameDelete the Network Interface resource.

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
networkDeviceNamestringName of the Network Device.
networkInterfaceNamestringName of the Network Interface.
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

Get the Network Interface resource details.

SELECT
properties
FROM azure.managed_network_fabric.network_interfaces
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND networkDeviceName = '{{ networkDeviceName }}' -- required
AND networkInterfaceName = '{{ networkInterfaceName }}' -- required
;

INSERT examples

Create a Network Interface resource.

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

UPDATE examples

Update certain properties of the Network Interface resource.

UPDATE azure.managed_network_fabric.network_interfaces
SET
data__properties = '{{ properties }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND networkDeviceName = '{{ networkDeviceName }}' --required
AND networkInterfaceName = '{{ networkInterfaceName }}' --required
RETURNING
properties;

DELETE examples

Delete the Network Interface resource.

DELETE FROM azure.managed_network_fabric.network_interfaces
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND networkDeviceName = '{{ networkDeviceName }}' --required
AND networkInterfaceName = '{{ networkInterfaceName }}' --required
;