director-sdk

cloudera.director.AuthenticationApi

All URIs are relative to https://localhost

Method HTTP request Description
login POST /api/d6.2/login Log in to the API
logout POST /api/d6.2/logout Log out from the API

login

User login(login)

Log in to the API

Example

from __future__ import print_function
import time
import cloudera.director
from cloudera.director.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = cloudera.director.AuthenticationApi()
login = cloudera.director.Login() # Login | 

try:
    # Log in to the API
    api_response = api_instance.login(login)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AuthenticationApi->login: %s\n" % e)

Parameters

Name Type Description Notes
login Login    

Return type

User

Authorization

No authorization required

HTTP request headers

[Back to top] [Back to API list] [Back to Model list] [Back to README]

logout

bool logout()

Log out from the API

Example

from __future__ import print_function
import time
import cloudera.director
from cloudera.director.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = cloudera.director.AuthenticationApi()

try:
    # Log out from the API
    api_response = api_instance.logout()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AuthenticationApi->logout: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

bool

Authorization

No authorization required

HTTP request headers

[Back to top] [Back to API list] [Back to Model list] [Back to README]