network_interfaces
Creates, updates, deletes, gets or lists a network_interfaces
resource.
Overview
Name | network_interfaces |
Type | Resource |
Id | azure.managed_network_fabric.network_interfaces |
Fields
- vw_network_interfaces
- network_interfaces
Name | Datatype | Description |
---|---|---|
administrative_state | text | field from the properties object |
annotation | text | field from the properties object |
connected_to | text | field from the properties object |
interface_type | text | field from the properties object |
ipv4_address | text | field from the properties object |
ipv6_address | text | field from the properties object |
networkDeviceName | text | field from the properties object |
networkInterfaceName | text | field from the properties object |
physical_identifier | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
subscriptionId | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | Network Interface Properties defines the properties of the resource. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | networkDeviceName, networkInterfaceName, resourceGroupName, subscriptionId | Get the Network Interface resource details. |
list_by_network_device | SELECT | networkDeviceName, resourceGroupName, subscriptionId | List all the Network Interface resources in a given resource group. |
create | INSERT | networkDeviceName, networkInterfaceName, resourceGroupName, subscriptionId, data__properties | Create a Network Interface resource. |
delete | DELETE | networkDeviceName, networkInterfaceName, resourceGroupName, subscriptionId | Delete the Network Interface resource. |
update | UPDATE | networkDeviceName, networkInterfaceName, resourceGroupName, subscriptionId | Update certain properties of the Network Interface resource. |
SELECT
examples
List all the Network Interface resources in a given resource group.
- vw_network_interfaces
- network_interfaces
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 }}';
SELECT
properties
FROM azure.managed_network_fabric.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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.managed_network_fabric.network_interfaces (
networkDeviceName,
networkInterfaceName,
resourceGroupName,
subscriptionId,
data__properties,
properties
)
SELECT
'{{ networkDeviceName }}',
'{{ networkInterfaceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: annotation
value: string
- name: physicalIdentifier
value: string
- name: connectedTo
value: string
- name: interfaceType
value: string
- name: ipv4Address
value: string
- name: ipv6Address
value: string
- name: provisioningState
value: []
- name: administrativeState
value: []
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 }}';