Interface IDeviceCredentialsClient
- Namespace
- Auth0.ManagementApi.Clients
- Assembly
- Auth0.ManagementApi.dll
public interface IDeviceCredentialsClient
Methods
CreateAsync(DeviceCredentialCreateRequest, CancellationToken)
Creates a new device credential.
Task<DeviceCredential> CreateAsync(DeviceCredentialCreateRequest request, CancellationToken cancellationToken = default)
Parameters
requestDeviceCredentialCreateRequestThe request containing the details of the device credential to create.
cancellationTokenCancellationTokenThe cancellation token to cancel operation.
Returns
- Task<DeviceCredential>
The newly created DeviceCredential.
DeleteAsync(string, CancellationToken)
Deletes a device credential.
Task DeleteAsync(string id, CancellationToken cancellationToken = default)
Parameters
idstringThe id of the device credential to delete.
cancellationTokenCancellationTokenThe cancellation token to cancel operation.
Returns
GetAllAsync(GetDeviceCredentialsRequest, PaginationInfo, CancellationToken)
Gets a list of all the device credentials.
Task<IPagedList<DeviceCredential>> GetAllAsync(GetDeviceCredentialsRequest request, PaginationInfo pagination = null, CancellationToken cancellationToken = default)
Parameters
requestGetDeviceCredentialsRequestSpecifies criteria to use when querying device credentials.
paginationPaginationInfoSpecifies PaginationInfo to use in requesting paged results.
cancellationTokenCancellationTokenThe cancellation token to cancel operation.
Returns
- Task<IPagedList<DeviceCredential>>
A list of DeviceCredential which conforms to the criteria specified.
GetAllAsync(string, bool, string, string, string, CancellationToken)
Gets a list of all the device credentials.
Task<IList<DeviceCredential>> GetAllAsync(string fields = null, bool includeFields = true, string userId = null, string clientId = null, string type = null, CancellationToken cancellationToken = default)
Parameters
fieldsstringA comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields.
includeFieldsboolTrue if the fields specified are to be excluded from the result, false otherwise (defaults to true).
userIdstringThe user id of the devices to retrieve.
clientIdstringThe client id of the devices to retrieve.
typestringThe type of credentials.
cancellationTokenCancellationTokenThe cancellation token to cancel operation.
Returns
- Task<IList<DeviceCredential>>
A list of DeviceCredential which conforms to the criteria specified.