api.authentication.v1.user package

Submodules

api.authentication.v1.user.user_apikey module

Autogenerated API

api.authentication.v1.user.user_apikey.disable_method_for_user(userID: int, method: str, json: bool = True, verify: bool = True, apiKey: str = '', authentication: dict = {}) → dict[source]

Disable an authentication method for a user (PUBLIC)

Return type:

dict

Parameters:
  • userID (int) – ID of user to modify
  • method (str) – Authentication method to enable
Raises:
Returns:

{“offset”: 426, “limit”: 139, “responseCode”: 200, “count”: 15, “metaData”: {“additionalProperties”: {}}, “messages”: [{“message”: “Reason their kid model board new explain project.”, “messageTemplate”: “Back field left raise feel red together.”, “field”: “End ok few believe federal might.”, “parameter”: {}, “timestamp”: 1434458661}], “currentPage”: 42, “size”: 637}

api.authentication.v1.user.user_apikey.enable_method_for_user(userID: int, method: str, json: bool = True, verify: bool = True, apiKey: str = '', authentication: dict = {}) → dict[source]

Enable an authentication method for a user (PUBLIC)

Return type:

dict

Parameters:
  • userID (int) – ID of user to modify
  • method (str) – Authentication method to enable
Raises:
Returns:

{“offset”: 390, “limit”: 388, “responseCode”: 200, “count”: 658, “metaData”: {“additionalProperties”: {}}, “messages”: [{“message”: “Senior large stage consumer role.”, “messageTemplate”: “Woman military mission pass employee.”, “field”: “Either present military house property though.”, “parameter”: {}, “timestamp”: 178346936}], “currentPage”: 678, “size”: 947}

api.authentication.v1.user.user_apikey.get_user_methods(userId: int, json: bool = True, verify: bool = True, apiKey: str = '', authentication: dict = {}) → dict[source]

List authentication methods enabled for a specified user (PUBLIC)

Return type:

dict

Parameters:

userId (int) – User to fetch methods for

Raises:
Returns:

{“offset”: 26, “limit”: 505, “responseCode”: 200, “count”: 639, “data”: [{“method”: “RADIUS”, “lastLoginTimestamp”: 848655222, “lastLoginIP”: “Prepare attack spend else ready.”, “initialized”: true, “settings”: {“additionalProperties”: {}}}], “metaData”: {“additionalProperties”: {}}, “messages”: [{“message”: “Main seek stand college city.”, “messageTemplate”: “Sound I his defense.”, “field”: “Big until nothing officer.”, “parameter”: {}, “timestamp”: 9290182}], “currentPage”: 629, “size”: 616}

api.authentication.v1.user.user_apikey.initiate(userID: int, description: str = None, validSources: <function list at 0x10677cd08> = None, expirationDays: int = None, json: bool = True, verify: bool = True, apiKey: str = '', authentication: dict = {}) → dict[source]

Initiate a new user APIkey (PUBLIC) API keys are bound to a limited IP range. The API key initialization request must specify an IP address or subnet which the API key can be used from.Attempts to use an api key from an IP outside this IP, will result in authentication error.

To allow authentication from different IPs, issue multiple API keys.

The initiation request returns the API key, in the format it can be used both in the Argus-API-Key header, or when initiating a durable session (/apikey/authenticate).

The API key cannot be retrieved at a later stage. If the key is lost, it should be deletedand a new key should be issued.

Return type:dict
api.authentication.v1.user.user_apikey.list(userID: int, json: bool = True, verify: bool = True, apiKey: str = '', authentication: dict = {}) → dict[source]

List user API keys (PUBLIC)

Return type:

dict

Parameters:

userID (int) – ID of user

Raises:
Returns:

{“offset”: 193, “limit”: 955, “responseCode”: 200, “count”: 31, “metaData”: {“additionalProperties”: {}}, “messages”: [{“message”: “Trade blood available expect stand.”, “messageTemplate”: “Direction figure floor local government toward other thing.”, “field”: “Investment receive few change work.”, “parameter”: {}, “timestamp”: 1119492054}], “currentPage”: 658, “size”: 896}

api.authentication.v1.user.user_apikey.renew(userID: int, keyID: int, expirationDays: int = None, json: bool = True, verify: bool = True, apiKey: str = '', authentication: dict = {}) → dict[source]

Renew existing user APIkey (PUBLIC) API keys have limited validity. This operationallows the administrator to renew a users API-key, to allow it to remain functional for a new validity period.

Return type:dict
api.authentication.v1.user.user_apikey.retrieve_s_m_s_token(userID: int, tokenSuffix: str, json: bool = True, verify: bool = True, apiKey: str = '', authentication: dict = {}) → dict[source]

Retrieve the SMS code sent to user (PUBLIC) SMS authentication depends on the verification code sent to the user by SMS reachingthe user. When this does not happen, this method allows an administrator to retrieve the SMS code to provide the user by phone.

To retrieve the token, the user must provide the administrator with thesession token printed in the browser in the SMS code input screen.

Return type:dict
api.authentication.v1.user.user_apikey.revoke(userID: int, keyID: int, json: bool = True, verify: bool = True, apiKey: str = '', authentication: dict = {}) → dict[source]

Delete existing user APIkey (PUBLIC)

Return type:

dict

Parameters:
  • userID (int) – ID of user
  • keyID (int) – Key ID
Raises:
Returns:

{“offset”: 814, “limit”: 485, “responseCode”: 200, “count”: 984, “metaData”: {“additionalProperties”: {}}, “messages”: [{“message”: “Fight science expert management another he.”, “messageTemplate”: “Write move usually where.”, “field”: “Question nation truth gun meeting medical their can.”, “parameter”: {}, “timestamp”: 722646660}], “currentPage”: 560, “size”: 844}

Module contents