UserCanLogin

Given a userid and a hostname, return whether or not the user is authorized to login provided that the appropriate credentials are presented.

The HTTP response code will always be 200 for a successful query whether or not access is permitted. The document body will be text only, and contain one of the following:

URL

/cubit_api/1/can_login

Authentication

This method does not require authentication.

Parameters

host ( Required, once )
The fully qualified hostname of the host to test for access.
Type: String
userid ( Required, once )
The Lab Management userid of the user to test for access.
Type: String

Example Response

    3
    

Response Codes