All URIs are relative to https://localhost/api/v52
Method | HTTP request | Description |
---|---|---|
auto_assign_roles | PUT /cm/authService/autoAssignRoles | Automatically assign roles to hosts and create the roles for the Authentication Service. |
auto_configure | PUT /cm/authService/autoConfigure | Automatically configures roles of the Authentication Service. |
delete | DELETE /cm/authService | Delete the Authentication Service. |
enter_maintenance_mode | POST /cm/authService/commands/enterMaintenanceMode | Put the Authentication Service into maintenance mode. |
exit_maintenance_mode | POST /cm/authService/commands/exitMaintenanceMode | Take the Authentication Service out of maintenance mode. |
list_active_commands | GET /cm/authService/commands | List active Authentication Service commands. |
list_role_types | GET /cm/authService/roleTypes | List the supported role types for the Authentication Service. |
read_service | GET /cm/authService | Retrieve information about the Authentication Services. |
read_service_config | GET /cm/authService/config | |
restart_command | POST /cm/authService/commands/restart | Restart the Authentication Service. |
setup | PUT /cm/authService | Setup the Authentication Service. |
start_command | POST /cm/authService/commands/start | Start the Authentication Service. |
stop_command | POST /cm/authService/commands/stop | Stop the Authentication Service. |
update_service_config | PUT /cm/authService/config |
auto_assign_roles()
Automatically assign roles to hosts and create the roles for the Authentication Service.
Automatically assign roles to hosts and create the roles for the Authentication Service.
Assignments are done based on number of hosts in the deployment and hardware specifications. If no hosts are part of the deployment, an exception will be thrown preventing any role assignments. Existing roles will be taken into account and their assignments will be not be modified. The deployment should not have any clusters when calling this endpoint. If it does, an exception will be thrown preventing any role assignments.
from __future__ import print_function
import time
import cm_client
from cm_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basic
configuration = cm_client.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = cm_client.AuthServiceResourceApi(cm_client.ApiClient(configuration))
try:
# Automatically assign roles to hosts and create the roles for the Authentication Service.
api_instance.auto_assign_roles()
except ApiException as e:
print("Exception when calling AuthServiceResourceApi->auto_assign_roles: %s\n" % e)
This endpoint does not need any parameter.
void (empty response body)
[Back to top] [Back to API list] [Back to Model list] [Back to README]
auto_configure()
Automatically configures roles of the Authentication Service.
Automatically configures roles of the Authentication Service.
Overwrites some existing configurations. Only default role config groups must exist before calling this endpoint. Other role config groups must not exist. If they do, an exception will be thrown preventing any configuration. Ignores any clusters (and their services and roles) colocated with the Authentication Service.
from __future__ import print_function
import time
import cm_client
from cm_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basic
configuration = cm_client.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = cm_client.AuthServiceResourceApi(cm_client.ApiClient(configuration))
try:
# Automatically configures roles of the Authentication Service.
api_instance.auto_configure()
except ApiException as e:
print("Exception when calling AuthServiceResourceApi->auto_configure: %s\n" % e)
This endpoint does not need any parameter.
void (empty response body)
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApiService delete()
Delete the Authentication Service.
Delete the Authentication Service.
This method will fail if a CMS instance doesn't already exist.
from __future__ import print_function
import time
import cm_client
from cm_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basic
configuration = cm_client.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = cm_client.AuthServiceResourceApi(cm_client.ApiClient(configuration))
try:
# Delete the Authentication Service.
api_response = api_instance.delete()
pprint(api_response)
except ApiException as e:
print("Exception when calling AuthServiceResourceApi->delete: %s\n" % e)
This endpoint does not need any parameter.
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApiCommand enter_maintenance_mode()
Put the Authentication Service into maintenance mode.
Put the Authentication Service into maintenance mode. This is a synchronous command. The result is known immediately upon return.
from __future__ import print_function
import time
import cm_client
from cm_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basic
configuration = cm_client.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = cm_client.AuthServiceResourceApi(cm_client.ApiClient(configuration))
try:
# Put the Authentication Service into maintenance mode.
api_response = api_instance.enter_maintenance_mode()
pprint(api_response)
except ApiException as e:
print("Exception when calling AuthServiceResourceApi->enter_maintenance_mode: %s\n" % e)
This endpoint does not need any parameter.
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApiCommand exit_maintenance_mode()
Take the Authentication Service out of maintenance mode.
Take the Authentication Service out of maintenance mode. This is a synchronous command. The result is known immediately upon return.
from __future__ import print_function
import time
import cm_client
from cm_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basic
configuration = cm_client.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = cm_client.AuthServiceResourceApi(cm_client.ApiClient(configuration))
try:
# Take the Authentication Service out of maintenance mode.
api_response = api_instance.exit_maintenance_mode()
pprint(api_response)
except ApiException as e:
print("Exception when calling AuthServiceResourceApi->exit_maintenance_mode: %s\n" % e)
This endpoint does not need any parameter.
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApiCommandList list_active_commands(view=view)
List active Authentication Service commands.
List active Authentication Service commands.
from __future__ import print_function
import time
import cm_client
from cm_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basic
configuration = cm_client.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = cm_client.AuthServiceResourceApi(cm_client.ApiClient(configuration))
view = 'summary' # str | The view of the data to materialize, either \"summary\" or \"full\". (optional) (default to summary)
try:
# List active Authentication Service commands.
api_response = api_instance.list_active_commands(view=view)
pprint(api_response)
except ApiException as e:
print("Exception when calling AuthServiceResourceApi->list_active_commands: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
view | str | The view of the data to materialize, either "summary" or "full". | [optional] [default to summary] |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApiRoleTypeList list_role_types()
List the supported role types for the Authentication Service.
List the supported role types for the Authentication Service.
from __future__ import print_function
import time
import cm_client
from cm_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basic
configuration = cm_client.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = cm_client.AuthServiceResourceApi(cm_client.ApiClient(configuration))
try:
# List the supported role types for the Authentication Service.
api_response = api_instance.list_role_types()
pprint(api_response)
except ApiException as e:
print("Exception when calling AuthServiceResourceApi->list_role_types: %s\n" % e)
This endpoint does not need any parameter.
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApiService read_service()
Retrieve information about the Authentication Services.
Retrieve information about the Authentication Services.
from __future__ import print_function
import time
import cm_client
from cm_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basic
configuration = cm_client.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = cm_client.AuthServiceResourceApi(cm_client.ApiClient(configuration))
try:
# Retrieve information about the Authentication Services.
api_response = api_instance.read_service()
pprint(api_response)
except ApiException as e:
print("Exception when calling AuthServiceResourceApi->read_service: %s\n" % e)
This endpoint does not need any parameter.
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApiServiceConfig read_service_config(view=view)
from __future__ import print_function
import time
import cm_client
from cm_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basic
configuration = cm_client.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = cm_client.AuthServiceResourceApi(cm_client.ApiClient(configuration))
view = 'summary' # str | (optional) (default to summary)
try:
api_response = api_instance.read_service_config(view=view)
pprint(api_response)
except ApiException as e:
print("Exception when calling AuthServiceResourceApi->read_service_config: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
view | str | [optional] [default to summary] |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApiCommand restart_command()
Restart the Authentication Service.
Restart the Authentication Service.
from __future__ import print_function
import time
import cm_client
from cm_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basic
configuration = cm_client.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = cm_client.AuthServiceResourceApi(cm_client.ApiClient(configuration))
try:
# Restart the Authentication Service.
api_response = api_instance.restart_command()
pprint(api_response)
except ApiException as e:
print("Exception when calling AuthServiceResourceApi->restart_command: %s\n" % e)
This endpoint does not need any parameter.
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApiService setup(body=body)
Setup the Authentication Service.
Setup the Authentication Service.
Configure the Auth Service instance with the information given in the ApiService. The provided configuration data can be used to set up host mappings for each role, and required configuration such as database connection information for specific roles.
This method needs a valid CM license to be installed beforehand.
This method does not start any services or roles.
This method will fail if a Auth Service instance already exists.
Available role types:
from __future__ import print_function
import time
import cm_client
from cm_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basic
configuration = cm_client.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = cm_client.AuthServiceResourceApi(cm_client.ApiClient(configuration))
body = cm_client.ApiService() # ApiService | Role configuration overrides. (optional)
try:
# Setup the Authentication Service.
api_response = api_instance.setup(body=body)
pprint(api_response)
except ApiException as e:
print("Exception when calling AuthServiceResourceApi->setup: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | ApiService | Role configuration overrides. | [optional] |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApiCommand start_command()
Start the Authentication Service.
Start the Authentication Service.
from __future__ import print_function
import time
import cm_client
from cm_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basic
configuration = cm_client.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = cm_client.AuthServiceResourceApi(cm_client.ApiClient(configuration))
try:
# Start the Authentication Service.
api_response = api_instance.start_command()
pprint(api_response)
except ApiException as e:
print("Exception when calling AuthServiceResourceApi->start_command: %s\n" % e)
This endpoint does not need any parameter.
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApiCommand stop_command()
Stop the Authentication Service.
Stop the Authentication Service.
from __future__ import print_function
import time
import cm_client
from cm_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basic
configuration = cm_client.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = cm_client.AuthServiceResourceApi(cm_client.ApiClient(configuration))
try:
# Stop the Authentication Service.
api_response = api_instance.stop_command()
pprint(api_response)
except ApiException as e:
print("Exception when calling AuthServiceResourceApi->stop_command: %s\n" % e)
This endpoint does not need any parameter.
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApiServiceConfig update_service_config(message=message, body=body)
from __future__ import print_function
import time
import cm_client
from cm_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basic
configuration = cm_client.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = cm_client.AuthServiceResourceApi(cm_client.ApiClient(configuration))
message = 'message_example' # str | (optional)
body = cm_client.ApiServiceConfig() # ApiServiceConfig | (optional)
try:
api_response = api_instance.update_service_config(message=message, body=body)
pprint(api_response)
except ApiException as e:
print("Exception when calling AuthServiceResourceApi->update_service_config: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
message | str | [optional] | |
body | ApiServiceConfig | [optional] |
[Back to top] [Back to API list] [Back to Model list] [Back to README]