edge_devices
Creates, updates, deletes, gets or lists a edge_devices
resource.
Overview
Name | edge_devices |
Type | Resource |
Id | azure_stack.azure_stack_hci.edge_devices |
Fields
- vw_edge_devices
- edge_devices
Name | Datatype | Description |
---|---|---|
device_configuration | text | field from the properties object |
edgeDeviceName | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceUri | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | Edge Device properties |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | edgeDeviceName, resourceUri | Get a EdgeDevice |
list | SELECT | resourceUri | List EdgeDevice resources by parent |
create_or_update | INSERT | edgeDeviceName, resourceUri | Create a EdgeDevice |
delete | DELETE | edgeDeviceName, resourceUri | Delete a EdgeDevice |
validate | EXEC | edgeDeviceName, resourceUri, data__edgeDeviceIds | A long-running resource action. |
SELECT
examples
List EdgeDevice resources by parent
- vw_edge_devices
- edge_devices
SELECT
device_configuration,
edgeDeviceName,
provisioning_state,
resourceUri
FROM azure_stack.azure_stack_hci.vw_edge_devices
WHERE resourceUri = '{{ resourceUri }}';
SELECT
properties
FROM azure_stack.azure_stack_hci.edge_devices
WHERE resourceUri = '{{ resourceUri }}';
INSERT
example
Use the following StackQL query and manifest file to create a new edge_devices
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure_stack.azure_stack_hci.edge_devices (
edgeDeviceName,
resourceUri,
properties
)
SELECT
'{{ edgeDeviceName }}',
'{{ resourceUri }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: deviceConfiguration
value:
- name: nicDetails
value:
- - name: adapterName
value: string
- name: interfaceDescription
value: string
- name: componentId
value: string
- name: driverVersion
value: string
- name: ip4Address
value: string
- name: subnetMask
value: string
- name: defaultGateway
value: string
- name: dnsServers
value:
- string
- name: defaultIsolationId
value: string
- name: deviceMetadata
value: string
- name: provisioningState
value: []
DELETE
example
Deletes the specified edge_devices
resource.
/*+ delete */
DELETE FROM azure_stack.azure_stack_hci.edge_devices
WHERE edgeDeviceName = '{{ edgeDeviceName }}'
AND resourceUri = '{{ resourceUri }}';