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 |
User login(login)
Log in to the API
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)
Name | Type | Description | Notes |
---|---|---|---|
login | Login |
No authorization required
[Back to top] [Back to API list] [Back to Model list] [Back to README]
bool logout()
Log out from the API
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)
This endpoint does not need any parameter.
bool
No authorization required
[Back to top] [Back to API list] [Back to Model list] [Back to README]