Interface IDeviceCredentialsClient
- Namespace
- Auth0.Management
Api .Clients
- Assembly
- Auth0.ManagementApi.dll
Methods
CreateAsync(DeviceCredentialCreateRequest, CancellationToken)
Creates a new device credential.
Task<DeviceCredential> CreateAsync(DeviceCredentialCreateRequest request, CancellationToken cancellationToken = default)
Parameters
request
DeviceCredential Create Request The request containing the details of the device credential to create.
cancellationToken
CancellationToken The cancellation token to cancel operation.
Returns
- Task<Device
Credential > The newly created Device
Credential .
DeleteAsync(string, CancellationToken)
Deletes a device credential.
Parameters
id
stringThe id of the device credential to delete.
cancellationToken
CancellationToken The 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
request
GetDevice Credentials Request Specifies criteria to use when querying device credentials.
pagination
PaginationInfo Specifies Pagination
Info to use in requesting paged results.cancellationToken
CancellationToken The cancellation token to cancel operation.
Returns
- Task<IPaged
List <DeviceCredential >> A list of Device
Credential 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
fields
stringA comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields.
includeFields
boolTrue if the fields specified are to be excluded from the result, false otherwise (defaults to true).
userId
stringThe user id of the devices to retrieve.
clientId
stringThe client id of the devices to retrieve.
type
stringThe type of credentials.
cancellationToken
CancellationToken The cancellation token to cancel operation.
Returns
- Task<IList<Device
Credential >> A list of Device
Credential which conforms to the criteria specified.