Skip to main content

device_registration_state

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

Overview​

Namedevice_registration_state
TypeResource
Idazure.iot_device_provisioning.device_registration_state

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
deletedeleteid, endpointIf-MatchDeletes the device registration. Deletes the device registration.
get_rawexecid, endpointGets the device registration state. Gets the device registration state.
queryexecid, endpointx-ms-max-item-count, x-ms-continuationGets the registration state of devices in this enrollmentGroup. Gets the registration state of devices in this enrollmentGroup.

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 registration status record. Default value is None.
x-ms-continuationstringcontinuation token. Default value is None.
x-ms-max-item-countintegerpageSize. Default value is None.

DELETE examples​

Deletes the device registration. Deletes the device registration.

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

Lifecycle Methods​

Gets the device registration state. Gets the device registration state.

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