impersonate#
Autogenerated API
- argus_api.lib.authentication.v1.impersonate.constrain_1(userName: str = None, domain: str = None, customer: str = None, function: str = None, json: bool = True, verify: Optional[bool] = None, proxies: Optional[dict] = None, apiKey: Optional[str] = None, authentication: Optional[dict] = None, server_url: Optional[str] = None, body: Optional[dict] = None, api_session: Optional[ArgusAPISession] = None) dict #
DEPRECATED :
constrain_1
is an alias forimpersonate
. Exists only for backward compatibility - do not use - useimpersonate
instead.
- argus_api.lib.authentication.v1.impersonate.impersonate(userName: str = None, domain: str = None, customer: str = None, function: str = None, json: bool = True, verify: Optional[bool] = None, proxies: Optional[dict] = None, apiKey: Optional[str] = None, authentication: Optional[dict] = None, server_url: Optional[str] = None, body: Optional[dict] = None, api_session: Optional[ArgusAPISession] = None) dict #
Request an impersonated session (INTERNAL)
- Parameters
userName (str) – Username of user to impersonate.
domain (str) – Domain of user to impersonate (id or name)
customer (list) – Set of customers the session should be valid for. If not specified, customers will be inherited from active permissions.
function (list) – Set of functions/roles (by name) the session should be granted (default is all current functions). Cannot extend the current set of functions.
json – return the response’s body as a
dict
parsed from json.True
by default. If set to false, the rawrequests.Response
object will be returned.verify – path to a certificate bundle or boolean indicating whether SSL verification should be performed.
apiKey – Argus API key.
authentication – authentication override
server_url – API base URL override
body – body of the request. other parameters will override keys defined in the body.
api_session – session to use for this request. If not set, the global session will be used.
- Returns
dictionary translated from JSON