def init_direct_session(host, port, protocol, auth): return certSession( endpoint="{protocol}://{hostname}:{port}/wsman".format( protocol=protocol, hostname=host, port=port), auth=auth)
def init_jump_session(jump_host, jump_port, jump_protocol, jump_auth, target_host, target_auth): return certSession( endpoint="{protocol}://{hostname}:{port}/wsman".format( protocol=jump_protocol, hostname=jump_host, port=jump_port ), certificate=jump_auth, target=target_host, target_auth=target_auth, )
def init_jump_session(jump_host, jump_port, jump_protocol, jump_auth, target_host, target_auth): return certSession( endpoint="{protocol}://{hostname}:{port}/wsman".format( protocol = jump_protocol, hostname = jump_host, port=jump_port), certificate=jump_auth, target=target_host, target_auth=target_auth)
def init_direct_session(host, port, protocol, auth): return certSession( endpoint="{protocol}://{hostname}:{port}/wsman".format(protocol=protocol, hostname=host, port=port), auth=auth, )