network_interfaces
Creates, updates, deletes, gets or lists a network_interfaces
resource.
Overview
Name | network_interfaces |
Type | Resource |
Id | azure_stack.azure_stack_hci.network_interfaces |
Fields
- vw_network_interfaces
- network_interfaces
Name | Datatype | Description |
---|---|---|
dns_settings | text | field from the properties object |
extended_location | text | field from the properties object |
ip_configurations | text | field from the properties object |
location | text | The geo-location where the resource lives |
mac_address | text | field from the properties object |
networkInterfaceName | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
status | text | field from the properties object |
subscriptionId | text | field from the properties object |
tags | text | Resource tags. |
Name | Datatype | Description |
---|---|---|
extendedLocation | object | The complex type of the extended location. |
location | string | The geo-location where the resource lives |
properties | object | Properties under the network interface resource |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | networkInterfaceName, resourceGroupName, subscriptionId | Gets a network interface |
list | SELECT | resourceGroupName, subscriptionId | Lists 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_all | SELECT | subscriptionId | 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. |
create_or_update | INSERT | networkInterfaceName, resourceGroupName, subscriptionId | The operation to create or update a network interface. Please note some properties can be set only during network interface creation. |
delete | DELETE | networkInterfaceName, resourceGroupName, subscriptionId | The operation to delete a network interface. |
update | UPDATE | networkInterfaceName, resourceGroupName, subscriptionId | The 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.
- vw_network_interfaces
- 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 }}';
SELECT
extendedLocation,
location,
properties,
tags
FROM azure_stack.azure_stack_hci.network_interfaces
WHERE 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_stack.azure_stack_hci.network_interfaces (
networkInterfaceName,
resourceGroupName,
subscriptionId,
properties,
extendedLocation,
tags,
location
)
SELECT
'{{ networkInterfaceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ extendedLocation }}',
'{{ tags }}',
'{{ location }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: ipConfigurations
value:
- - name: name
value: string
- name: properties
value:
- name: gateway
value: string
- name: prefixLength
value: string
- name: privateIPAddress
value: string
- name: subnet
value:
- name: id
value: string
- name: macAddress
value: string
- name: dnsSettings
value:
- name: dnsServers
value:
- string
- name: provisioningState
value: string
- name: status
value:
- name: errorCode
value: string
- name: errorMessage
value: string
- name: provisioningStatus
value:
- name: operationId
value: string
- name: status
value: string
- name: extendedLocation
value:
- name: name
value: string
- name: type
value: []
- name: tags
value: object
- name: location
value: string
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 }}';