Skip to main content

addons

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

Overview

Nameaddons
TypeResource
Idazure.data_box_edge.addons

Fields

NameDatatypeDescription
idstringThe path ID that uniquely identifies the object.
namestringThe object name.
kindstringAddon type.
systemDataobjectMetadata pertaining to creation and last modification of the resource.
typestringThe hierarchical type of the object.

Methods

NameAccessible byRequired ParamsDescription
getSELECTaddonName, deviceName, resourceGroupName, roleName, subscriptionIdGets a specific addon by name.
list_by_roleSELECTdeviceName, resourceGroupName, roleName, subscriptionIdLists all the addons configured in the role.
create_or_updateINSERTaddonName, deviceName, resourceGroupName, roleName, subscriptionId, data__kindCreate or update a addon.
deleteDELETEaddonName, deviceName, resourceGroupName, roleName, subscriptionIdDeletes the addon on the device.

SELECT examples

Lists all the addons configured in the role.

SELECT
id,
name,
kind,
systemData,
type
FROM azure.data_box_edge.addons
WHERE deviceName = '{{ deviceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND roleName = '{{ roleName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new addons resource.

/*+ create */
INSERT INTO azure.data_box_edge.addons (
addonName,
deviceName,
resourceGroupName,
roleName,
subscriptionId,
data__kind,
kind
)
SELECT
'{{ addonName }}',
'{{ deviceName }}',
'{{ resourceGroupName }}',
'{{ roleName }}',
'{{ subscriptionId }}',
'{{ data__kind }}',
'{{ kind }}'
;

DELETE example

Deletes the specified addons resource.

/*+ delete */
DELETE FROM azure.data_box_edge.addons
WHERE addonName = '{{ addonName }}'
AND deviceName = '{{ deviceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND roleName = '{{ roleName }}'
AND subscriptionId = '{{ subscriptionId }}';