cm_client.AuthServiceRoleCommandsResourceApi

All URIs are relative to https://localhost/api/v33

Method HTTP request Description
restart_command POST /cm/authService/roleCommands/restart Restart a set of Authentication Service roles.
start_command POST /cm/authService/roleCommands/start Start a set of Authentication Service roles.
stop_command POST /cm/authService/roleCommands/stop Stop a set of Authentication Service roles.

restart_command

ApiBulkCommandList restart_command(body=body)

Restart a set of Authentication Service roles.

Restart a set of Authentication Service roles.

Example

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.AuthServiceRoleCommandsResourceApi(cm_client.ApiClient(configuration))
body = cm_client.ApiRoleNameList() # ApiRoleNameList | The roles to restart. (optional)

try:
    # Restart a set of Authentication Service roles.
    api_response = api_instance.restart_command(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AuthServiceRoleCommandsResourceApi->restart_command: %s\n" % e)

Parameters

Name Type Description Notes
body ApiRoleNameList The roles to restart. [optional]

Return type

ApiBulkCommandList

Authorization

basic

HTTP request headers

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

start_command

ApiBulkCommandList start_command(body=body)

Start a set of Authentication Service roles.

Start a set of Authentication Service roles.

Example

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.AuthServiceRoleCommandsResourceApi(cm_client.ApiClient(configuration))
body = cm_client.ApiRoleNameList() # ApiRoleNameList | The roles to start. (optional)

try:
    # Start a set of Authentication Service roles.
    api_response = api_instance.start_command(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AuthServiceRoleCommandsResourceApi->start_command: %s\n" % e)

Parameters

Name Type Description Notes
body ApiRoleNameList The roles to start. [optional]

Return type

ApiBulkCommandList

Authorization

basic

HTTP request headers

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

stop_command

ApiBulkCommandList stop_command(body=body)

Stop a set of Authentication Service roles.

Stop a set of Authentication Service roles.

Example

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.AuthServiceRoleCommandsResourceApi(cm_client.ApiClient(configuration))
body = cm_client.ApiRoleNameList() # ApiRoleNameList | The roles to stop. (optional)

try:
    # Stop a set of Authentication Service roles.
    api_response = api_instance.stop_command(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AuthServiceRoleCommandsResourceApi->stop_command: %s\n" % e)

Parameters

Name Type Description Notes
body ApiRoleNameList The roles to stop. [optional]

Return type

ApiBulkCommandList

Authorization

basic

HTTP request headers

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