Skip to main content

MachineAuthApi

MethodHTTP requestDescription
create_machine_authenticator_using_postPOST /api/web/v1/users/{userid}/machinesCreate a Machine Authenticator
delete_machine_authenticator_using_deleteDELETE /api/web/v1/users/{userid}/machines/{id}Delete a Machine Authenticator
list_machine_authenticators_using_getGET /api/web/v1/users/{userid}/machinesList machine authenticators for a user

create_machine_authenticator_using_post

MachineAuthenticatorRegistrationResult create_machine_authenticator_using_post(userid, machine_authenticator_registration)

Create a Machine Authenticator

Create a Machine Authenticator for a user. Caller requires the USERMACHINES:ADD permission.

  • Api Key Authentication (AdminAPIAuthentication):

Parameters

NameTypeDescriptionNotes
useridstrThe UUID of the user for which the machine authenticator is to be added.
machine_authenticator_registrationMachineAuthenticatorRegistration

Return type

MachineAuthenticatorRegistrationResult

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-

delete_machine_authenticator_using_delete

delete_machine_authenticator_using_delete(userid, id)

Delete a Machine Authenticator

Deletes a Machine Authenticator from a user. Caller requires the USERMACHINES:REMOVE permission.

Example

  • Api Key Authentication (AdminAPIAuthentication):

Parameters

NameTypeDescriptionNotes
useridstrThe UUID of the user from which the machine authenticator is to be deleted.
idstrThe UUID of the machine authenticator which is to be deleted.

Return type

void (empty response body)

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-

list_machine_authenticators_using_get

List[UserMachineAuthenticator] list_machine_authenticators_using_get(userid)

List machine authenticators for a user

List all machine authenticators for the specified user. Caller requires the USERMACHINES:VIEW permission.

Example

  • Api Key Authentication (AdminAPIAuthentication):

Parameters

NameTypeDescriptionNotes
useridstrThe UUID of the user for which machine authenticators are to be fetched.

Return type

List[UserMachineAuthenticator]

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-