Skip to main content

network_interfaces

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

Overview

Namenetwork_interfaces
TypeResource
Idazure_stack.azure_stack_hci.network_interfaces

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
extendedLocationobjectThe extendedLocation of the resource.
locationstringThe geo-location where the resource lives
propertiesobjectProperties under the network interface resource
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, networkInterfaceNameGets a network interface
listselectsubscriptionId, resourceGroupNameLists all of the network interfaces in the specified resource group. Use the nextLink property in the response to get the next page of network interfaces.
list_allselectsubscriptionIdLists all of the network interfaces in the specified subscription. Use the nextLink property in the response to get the next page of network interfaces.
create_or_updateinsertsubscriptionId, resourceGroupName, networkInterfaceNameThe operation to create or update a network interface. Please note some properties can be set only during network interface creation.
updateupdatesubscriptionId, resourceGroupName, networkInterfaceNameThe operation to update a network interface.
deletedeletesubscriptionId, resourceGroupName, networkInterfaceNameThe operation to delete a network interface.

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
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

Gets a network interface

SELECT
extendedLocation,
location,
properties,
tags
FROM azure_stack.azure_stack_hci.network_interfaces
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND networkInterfaceName = '{{ networkInterfaceName }}' -- required
;

INSERT examples

The operation to create or update a network interface. Please note some properties can be set only during network interface creation.

INSERT INTO azure_stack.azure_stack_hci.network_interfaces (
data__properties,
data__extendedLocation,
data__tags,
data__location,
subscriptionId,
resourceGroupName,
networkInterfaceName
)
SELECT
'{{ properties }}',
'{{ extendedLocation }}',
'{{ tags }}',
'{{ location }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ networkInterfaceName }}'
RETURNING
extendedLocation,
location,
properties,
tags
;

UPDATE examples

The operation to update a network interface.

UPDATE azure_stack.azure_stack_hci.network_interfaces
SET
data__tags = '{{ tags }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND networkInterfaceName = '{{ networkInterfaceName }}' --required
RETURNING
extendedLocation,
location,
properties,
tags;

DELETE examples

The operation to delete a network interface.

DELETE FROM azure_stack.azure_stack_hci.network_interfaces
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND networkInterfaceName = '{{ networkInterfaceName }}' --required
;