Login | Join Now
  • CUBiT API: UserCanLogin

    Product:
    CUBiT

    Component:
    CUBiT Web Services

    Summary:

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



     

    1.1. Description

    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:

    • 0 no access
    • 1 user level access
    • 2 root level access
    • 3 host owner access
    • 4 project admin access

    1.2. URL

    /cubit_api/1/can_login

    1.3. Authentication

    This method does not require authentication.

    1.4. Parameters

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

    1.5. Example Response

    3

    1.6. Response Codes

    • 200 - ok