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

NameDatatypeDescription
dns_settingstextfield from the properties object
extended_locationtextfield from the properties object
ip_configurationstextfield from the properties object
locationtextThe geo-location where the resource lives
mac_addresstextfield from the properties object
networkInterfaceNametextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
statustextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTnetworkInterfaceName, resourceGroupName, subscriptionIdGets a network interface
listSELECTresourceGroupName, subscriptionIdLists 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_updateINSERTnetworkInterfaceName, resourceGroupName, subscriptionIdThe operation to create or update a network interface. Please note some properties can be set only during network interface creation.
deleteDELETEnetworkInterfaceName, resourceGroupName, subscriptionIdThe operation to delete a network interface.
updateUPDATEnetworkInterfaceName, resourceGroupName, subscriptionIdThe operation to update a network interface.

SELECT examples

Lists all of the network interfaces in the specified subscription. Use the nextLink property in the response to get the next page of network interfaces.

SELECT
dns_settings,
extended_location,
ip_configurations,
location,
mac_address,
networkInterfaceName,
provisioning_state,
resourceGroupName,
status,
subscriptionId,
tags
FROM azure_stack.azure_stack_hci.vw_network_interfaces
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure_stack.azure_stack_hci.network_interfaces (
networkInterfaceName,
resourceGroupName,
subscriptionId,
properties,
extendedLocation,
tags,
location
)
SELECT
'{{ networkInterfaceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ extendedLocation }}',
'{{ tags }}',
'{{ location }}'
;

UPDATE example

Updates a network_interfaces resource.

/*+ update */
UPDATE azure_stack.azure_stack_hci.network_interfaces
SET
tags = '{{ tags }}'
WHERE
networkInterfaceName = '{{ networkInterfaceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified network_interfaces resource.

/*+ delete */
DELETE FROM azure_stack.azure_stack_hci.network_interfaces
WHERE networkInterfaceName = '{{ networkInterfaceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';