create_session#
- ansys.hps.client.connection.create_session(access_token=None, verify=True, disable_security_warnings=False)#
Get the
requests.Sessionobject configured for HPS with a given access token.- Return type:
Session- Parameters:
- access_token
str Access token provided by the
ansys.hps.client.auth.authenticate()method.- verify: Union[bool, str], optional
If a Boolean, whether to verify the server’s TLS certificate. The default is
True. If a string, the path to the CA bundle to use. For more information, see therequests.Sessiondocumentation.- disable_security_warnings: bool, optional
Whether to disable warnings about insecure HTTPS requests. The default is
False.
- access_token
- Returns:
requests.SessionSession object.