Skip to main content

network_interfaces

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

Overview

Namenetwork_interfaces
TypeResource
Idazure_extras.managed_network_fabric.network_interfaces

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
additionalDescriptionstringAdditional description of the interface.
administrativeStatestringAdministrative state of the resource. Known values are: "Enabled", "Disabled", "MAT", "RMA", "UnderMaintenance", and "EnabledDegraded". (Enabled, Disabled, MAT, RMA, UnderMaintenance, EnabledDegraded)
annotationstringSwitch configuration description.
configurationStatestringConfiguration state of the resource. Known values are: "Succeeded", "Failed", "Rejected", "Accepted", "Provisioned", "ErrorProvisioning", "Deprovisioning", "Deprovisioned", "ErrorDeprovisioning", "DeferredControl", "Provisioning", "PendingCommit", and "PendingAdministrativeUpdate". (Succeeded, Failed, Rejected, Accepted, Provisioned, ErrorProvisioning, Deprovisioning, Deprovisioned, ErrorDeprovisioning, DeferredControl, Provisioning, PendingCommit, PendingAdministrativeUpdate)
connectedTostringThe ARM resource id of the interface or compute server its connected to.
descriptionstringDescription of the interface.
identityobjectThe managed service identities assigned to this resource.
interfaceTypestringThe Interface Type. Example: Management/Data. Known values are: "Management" and "Data". (Management, Data)
ipv4AddressstringIPv4Address of the interface.
ipv6AddressstringIPv6Address of the interface.
lastOperationobjectDetails of the last operation performed on the resource.
networkFabricIdstringAssociated Network Fabric Resource ID.
physicalIdentifierstringPhysical Identifier of the network interface.
provisioningStatestringProvisioning state of the resource. Known values are: "Accepted", "Succeeded", "Updating", "Deleting", "Failed", and "Canceled". (Accepted, Succeeded, Updating, Deleting, Failed, Canceled)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, network_device_name, network_interface_name, subscription_idGet the Network Interface resource details.
list_by_network_deviceselectresource_group_name, network_device_name, subscription_idList all the Network Interface resources in a given resource group.
createinsertresource_group_name, network_device_name, network_interface_name, subscription_id, propertiesCreate a Network Interface resource.
updateupdateresource_group_name, network_device_name, network_interface_name, subscription_idUpdate certain properties of the Network Interface resource.
deletedeleteresource_group_name, network_device_name, network_interface_name, subscription_idDelete the Network Interface resource.
update_administrative_stateexecresource_group_name, network_device_name, network_interface_name, subscription_idUpdate the admin state of the 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
network_device_namestringName of the Network Device. Required.
network_interface_namestringName of the Network Interface. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Get the Network Interface resource details.

SELECT
id,
name,
additionalDescription,
administrativeState,
annotation,
configurationState,
connectedTo,
description,
identity,
interfaceType,
ipv4Address,
ipv6Address,
lastOperation,
networkFabricId,
physicalIdentifier,
provisioningState,
systemData,
type
FROM azure_extras.managed_network_fabric.network_interfaces
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND network_device_name = '{{ network_device_name }}' -- required
AND network_interface_name = '{{ network_interface_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create a Network Interface resource.

INSERT INTO azure_extras.managed_network_fabric.network_interfaces (
properties,
identity,
resource_group_name,
network_device_name,
network_interface_name,
subscription_id
)
SELECT
'{{ properties }}' /* required */,
'{{ identity }}',
'{{ resource_group_name }}',
'{{ network_device_name }}',
'{{ network_interface_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
identity,
properties,
systemData,
type
;

UPDATE examples

Update certain properties of the Network Interface resource.

UPDATE azure_extras.managed_network_fabric.network_interfaces
SET
properties = '{{ properties }}',
identity = '{{ identity }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND network_device_name = '{{ network_device_name }}' --required
AND network_interface_name = '{{ network_interface_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
identity,
properties,
systemData,
type;

DELETE examples

Delete the Network Interface resource.

DELETE FROM azure_extras.managed_network_fabric.network_interfaces
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND network_device_name = '{{ network_device_name }}' --required
AND network_interface_name = '{{ network_interface_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Update the admin state of the Network Interface.

EXEC azure_extras.managed_network_fabric.network_interfaces.update_administrative_state 
@resource_group_name='{{ resource_group_name }}' --required,
@network_device_name='{{ network_device_name }}' --required,
@network_interface_name='{{ network_interface_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"resourceIds": "{{ resourceIds }}",
"state": "{{ state }}"
}'
;