MachineAuthApi
Method | HTTP request | Description |
---|---|---|
CreateMachineAuthenticatorUsingPOST | POST /api/web/v1/users/{userid}/machines | Create a Machine Authenticator |
DeleteMachineAuthenticatorUsingDELETE | DELETE /api/web/v1/users/{userid}/machines/{id} | Delete a Machine Authenticator |
ListMachineAuthenticatorsUsingGET | GET /api/web/v1/users/{userid}/machines | List machine authenticators for a user |
CreateMachineAuthenticatorUsingPOST
MachineAuthenticatorRegistrationResult CreateMachineAuthenticatorUsingPOST (string userid, MachineAuthenticatorRegistration machineAuthenticatorRegistration)
Create a Machine Authenticator
Create a Machine Authenticator for a user. Caller requires the USERMACHINES:ADD permission.
Using the CreateMachineAuthenticatorUsingPOSTWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
Parameters
Name | Type | Description | Notes |
---|---|---|---|
userid | string | The UUID of the user for which the machine authenticator is to be added. | |
machineAuthenticatorRegistration | MachineAuthenticatorRegistration |
Return type
MachineAuthenticatorRegistrationResult
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: application/json
HTTP response details
Status code | Description | Response headers |
---|---|---|
200 | Successful | - |
400 | Bad Request | - |
401 | Access denied | - |
403 | Forbidden | - |
404 | Not Found | - |
409 | Conflict | - |
DeleteMachineAuthenticatorUsingDELETE
void DeleteMachineAuthenticatorUsingDELETE (string userid, string id)
Delete a Machine Authenticator
Deletes a Machine Authenticator from a user. Caller requires the USERMACHINES:REMOVE permission.
Example
Using the DeleteMachineAuthenticatorUsingDELETEWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
Parameters
Name | Type | Description | Notes |
---|---|---|---|
userid | string | The UUID of the user from which the machine authenticator is to be deleted. | |
id | string | The UUID of the machine authenticator which is to be deleted. |
Return type
void (empty response body)
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
Status code | Description | Response headers |
---|---|---|
200 | Successful | - |
400 | Bad Request | - |
401 | Access denied | - |
403 | Forbidden | - |
404 | Not Found | - |
409 | Conflict | - |
ListMachineAuthenticatorsUsingGET
List<UserMachineAuthenticator> ListMachineAuthenticatorsUsingGET (string userid)
List machine authenticators for a user
List all machine authenticators for the specified user. Caller requires the USERMACHINES:VIEW permission.
Example
Using the ListMachineAuthenticatorsUsingGETWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
Parameters
Name | Type | Description | Notes |
---|---|---|---|
userid | string | The UUID of the user for which machine authenticators are to be fetched. |
Return type
List<UserMachineAuthenticator>
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
Status code | Description | Response headers |
---|---|---|
200 | Successful | - |
400 | Bad Request | - |
401 | Access denied | - |
403 | Forbidden | - |
404 | Not Found | - |
409 | Conflict | - |