Skip to main content

enrollment

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

Overview

Nameenrollment
TypeResource
Idazure.iot_device_provisioning.enrollment

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
create_or_updateinsertid, endpointIf-MatchCreate or update a device enrollment record. Create or update a device enrollment record.
create_or_updatereplaceid, endpointIf-MatchCreate or update a device enrollment record. Create or update a device enrollment record.
deletedeleteid, endpointIf-MatchDelete a device enrollment record. Delete a device enrollment record.
get_rawexecid, endpointGet a device enrollment record. Get a device enrollment record.
get_attestation_mechanismexecid, endpointGet the attestation mechanism in the device enrollment record. Get the attestation mechanism in the device enrollment record.
run_bulk_operationexecendpointBulk device enrollment operation with maximum of 10 enrollments. Bulk device enrollment operation with maximum of 10 enrollments.

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
endpointstringThe service endpoint host (no scheme). (default: )
idstringThis id is used to uniquely identify a device registration of an enrollment. A case-insensitive string (up to 128 characters long) of alphanumeric characters plus certain special characters : . _ -. No special characters allowed at start or end. Required.
If-MatchstringThe ETag of the enrollment record. Default value is None.

INSERT examples

Create or update a device enrollment record. Create or update a device enrollment record.

INSERT INTO azure.iot_device_provisioning.enrollment (
id,
endpoint,
If-Match
)
SELECT
'{{ id }}',
'{{ endpoint }}',
'{{ If-Match }}'
;

REPLACE examples

Create or update a device enrollment record. Create or update a device enrollment record.

REPLACE azure.iot_device_provisioning.enrollment
SET
-- No updatable properties
WHERE
id = '{{ id }}' --required
AND endpoint = '{{ endpoint }}' --required
AND If-Match = '{{ If-Match}}';

DELETE examples

Delete a device enrollment record. Delete a device enrollment record.

DELETE FROM azure.iot_device_provisioning.enrollment
WHERE id = '{{ id }}' --required
AND endpoint = '{{ endpoint }}' --required
AND If-Match = '{{ If-Match }}'
;

Lifecycle Methods

Get a device enrollment record. Get a device enrollment record.

EXEC azure.iot_device_provisioning.enrollment.get_raw 
@id='{{ id }}' --required,
@endpoint='{{ endpoint }}' --required
;