Skip to main content

device_local_credentials

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

Overview

Namedevice_local_credentials
TypeResource
Identra_id.directory.device_local_credentials

Fields

The following fields are returned by SELECT queries:

Retrieved navigation property

NameDatatypeDescription
idstringThe unique identifier for an entity. Read-only.
credentialsarrayThe credentials of the device's local administrator account backed up to Azure Active Directory.
deviceNamestringDisplay name of the device that the local credentials are associated with.
lastBackupDateTimestring (date-time)When the local administrator account credential was backed up to Azure Active Directory. (pattern: ^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$)
refreshDateTimestring (date-time)When the local administrator account credential will be refreshed and backed up to Azure Active Directory. (pattern: ^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectdevice_local_credential_info_idRetrieve the properties of a deviceLocalCredentialInfo for a specified device object.
listselectGet a list of the deviceLocalCredentialInfo objects and their properties, excluding the credentials property.
insertinsert
updateupdatedevice_local_credential_info_id
deletedeletedevice_local_credential_info_idIf-Match

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
device_local_credential_info_idstringThe unique identifier of deviceLocalCredentialInfo
If-MatchstringETag

SELECT examples

Retrieve the properties of a deviceLocalCredentialInfo for a specified device object.

SELECT
id,
credentials,
deviceName,
lastBackupDateTime,
refreshDateTime
FROM entra_id.directory.device_local_credentials
WHERE device_local_credential_info_id = '{{ device_local_credential_info_id }}' -- required
;

INSERT examples

No description available.

INSERT INTO entra_id.directory.device_local_credentials (
id,
credentials,
deviceName,
lastBackupDateTime,
refreshDateTime
)
SELECT
'{{ id }}',
'{{ credentials }}',
'{{ deviceName }}',
'{{ lastBackupDateTime }}',
'{{ refreshDateTime }}'
RETURNING
id,
credentials,
deviceName,
lastBackupDateTime,
refreshDateTime
;

UPDATE examples

No description available.

UPDATE entra_id.directory.device_local_credentials
SET
id = '{{ id }}',
credentials = '{{ credentials }}',
deviceName = '{{ deviceName }}',
lastBackupDateTime = '{{ lastBackupDateTime }}',
refreshDateTime = '{{ refreshDateTime }}'
WHERE
device_local_credential_info_id = '{{ device_local_credential_info_id }}' --required
RETURNING
id,
credentials,
deviceName,
lastBackupDateTime,
refreshDateTime;

DELETE examples

No description available.

DELETE FROM entra_id.directory.device_local_credentials
WHERE device_local_credential_info_id = '{{ device_local_credential_info_id }}' --required
AND If-Match = '{{ If-Match }}'
;