Skip to main content

enrollment_group

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

Overview

Nameenrollment_group
TypeResource
Idazure.iot_device_provisioning.enrollment_group

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 group. Create or update a device enrollment group.
create_or_updatereplaceid, endpointIf-MatchCreate or update a device enrollment group. Create or update a device enrollment group.
deletedeleteid, endpointIf-MatchDelete a device enrollment group. Delete a device enrollment group.
get_rawexecid, endpointGet a device enrollment group. Get a device enrollment group.
get_attestation_mechanismexecid, endpointGet the attestation mechanism in the device enrollment group record. Get the attestation mechanism in the device enrollment group record.
run_bulk_operationexecendpointBulk device enrollment group operation with maximum of 10 groups. Bulk device enrollment group operation with maximum of 10 groups.

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: )
idstringEnrollment group ID. Required.
If-MatchstringThe ETag of the enrollment group record. Default value is None.

INSERT examples

Create or update a device enrollment group. Create or update a device enrollment group.

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

REPLACE examples

Create or update a device enrollment group. Create or update a device enrollment group.

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

DELETE examples

Delete a device enrollment group. Delete a device enrollment group.

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

Lifecycle Methods

Get a device enrollment group. Get a device enrollment group.

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