Skip to main content

edge_devices

Creates, updates, deletes, gets or lists an edge_devices resource.

Overview

Nameedge_devices
TypeResource
Idazure_stack.azure_stack_hci.edge_devices

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.
kindstringMetadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value. Required. "HCI"
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_uri, edge_device_nameGet a EdgeDevice.
listselectresource_uriList EdgeDevice resources by parent.
create_or_updateinsertresource_uri, edge_device_name, kindCreate a EdgeDevice.
create_or_updatereplaceresource_uri, edge_device_name, kindCreate a EdgeDevice.
deletedeleteresource_uri, edge_device_nameDelete a EdgeDevice.
validateexecresource_uri, edge_device_name, edgeDeviceIdsA long-running resource action.

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
edge_device_namestringName of Device. Default value is "default".
resource_uristringThe fully qualified Azure Resource manager identifier of the resource. Required.

SELECT examples

Get a EdgeDevice.

SELECT
id,
name,
kind,
systemData,
type
FROM azure_stack.azure_stack_hci.edge_devices
WHERE resource_uri = '{{ resource_uri }}' -- required
AND edge_device_name = '{{ edge_device_name }}' -- required
;

INSERT examples

Create a EdgeDevice.

INSERT INTO azure_stack.azure_stack_hci.edge_devices (
kind,
resource_uri,
edge_device_name
)
SELECT
'{{ kind }}' /* required */,
'{{ resource_uri }}',
'{{ edge_device_name }}'
RETURNING
id,
name,
kind,
systemData,
type
;

REPLACE examples

Create a EdgeDevice.

REPLACE azure_stack.azure_stack_hci.edge_devices
SET
kind = '{{ kind }}'
WHERE
resource_uri = '{{ resource_uri }}' --required
AND edge_device_name = '{{ edge_device_name }}' --required
AND kind = '{{ kind }}' --required
RETURNING
id,
name,
kind,
systemData,
type;

DELETE examples

Delete a EdgeDevice.

DELETE FROM azure_stack.azure_stack_hci.edge_devices
WHERE resource_uri = '{{ resource_uri }}' --required
AND edge_device_name = '{{ edge_device_name }}' --required
;

Lifecycle Methods

A long-running resource action.

EXEC azure_stack.azure_stack_hci.edge_devices.validate 
@resource_uri='{{ resource_uri }}' --required,
@edge_device_name='{{ edge_device_name }}' --required
@@json=
'{
"edgeDeviceIds": "{{ edgeDeviceIds }}",
"additionalInfo": "{{ additionalInfo }}"
}'
;