All URIs are relative to https://localhost/api/v33
Method | HTTP request | Description |
---|---|---|
autoAssignRoles | PUT /cm/authService/autoAssignRoles | Automatically assign roles to hosts and create the roles for the Authentication Service. |
autoConfigure | PUT /cm/authService/autoConfigure | Automatically configures roles of the Authentication Service. |
delete | DELETE /cm/authService | Delete the Authentication Service. |
enterMaintenanceMode | POST /cm/authService/commands/enterMaintenanceMode | Put the Authentication Service into maintenance mode. |
exitMaintenanceMode | POST /cm/authService/commands/exitMaintenanceMode | Take the Authentication Service out of maintenance mode. |
listActiveCommands | GET /cm/authService/commands | List active Authentication Service commands. |
listRoleTypes | GET /cm/authService/roleTypes | List the supported role types for the Authentication Service. |
readService | GET /cm/authService | Retrieve information about the Authentication Services. |
readServiceConfig | GET /cm/authService/config | |
restartCommand | POST /cm/authService/commands/restart | Restart the Authentication Service. |
setup | PUT /cm/authService | Setup the Authentication Service. |
startCommand | POST /cm/authService/commands/start | Start the Authentication Service. |
stopCommand | POST /cm/authService/commands/stop | Stop the Authentication Service. |
updateServiceConfig | PUT /cm/authService/config |
autoAssignRoles()
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.
// Import classes:
//import com.cloudera.api.swagger.client.ApiClient;
//import com.cloudera.api.swagger.client.ApiException;
//import com.cloudera.api.swagger.client.Configuration;
//import com.cloudera.api.swagger.client.auth.*;
//import com.cloudera.api.swagger.AuthServiceResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
AuthServiceResourceApi apiInstance = new AuthServiceResourceApi();
try {
apiInstance.autoAssignRoles();
} catch (ApiException e) {
System.err.println("Exception when calling AuthServiceResourceApi#autoAssignRoles");
e.printStackTrace();
}
This endpoint does not need any parameter.
null (empty response body)
autoConfigure()
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.
// Import classes:
//import com.cloudera.api.swagger.client.ApiClient;
//import com.cloudera.api.swagger.client.ApiException;
//import com.cloudera.api.swagger.client.Configuration;
//import com.cloudera.api.swagger.client.auth.*;
//import com.cloudera.api.swagger.AuthServiceResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
AuthServiceResourceApi apiInstance = new AuthServiceResourceApi();
try {
apiInstance.autoConfigure();
} catch (ApiException e) {
System.err.println("Exception when calling AuthServiceResourceApi#autoConfigure");
e.printStackTrace();
}
This endpoint does not need any parameter.
null (empty response body)
ApiService delete()
Delete the Authentication Service.
Delete the Authentication Service.
This method will fail if a CMS instance doesn't already exist.
// Import classes:
//import com.cloudera.api.swagger.client.ApiClient;
//import com.cloudera.api.swagger.client.ApiException;
//import com.cloudera.api.swagger.client.Configuration;
//import com.cloudera.api.swagger.client.auth.*;
//import com.cloudera.api.swagger.AuthServiceResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
AuthServiceResourceApi apiInstance = new AuthServiceResourceApi();
try {
ApiService result = apiInstance.delete();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AuthServiceResourceApi#delete");
e.printStackTrace();
}
This endpoint does not need any parameter.
ApiCommand enterMaintenanceMode()
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.
// Import classes:
//import com.cloudera.api.swagger.client.ApiClient;
//import com.cloudera.api.swagger.client.ApiException;
//import com.cloudera.api.swagger.client.Configuration;
//import com.cloudera.api.swagger.client.auth.*;
//import com.cloudera.api.swagger.AuthServiceResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
AuthServiceResourceApi apiInstance = new AuthServiceResourceApi();
try {
ApiCommand result = apiInstance.enterMaintenanceMode();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AuthServiceResourceApi#enterMaintenanceMode");
e.printStackTrace();
}
This endpoint does not need any parameter.
ApiCommand exitMaintenanceMode()
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.
// Import classes:
//import com.cloudera.api.swagger.client.ApiClient;
//import com.cloudera.api.swagger.client.ApiException;
//import com.cloudera.api.swagger.client.Configuration;
//import com.cloudera.api.swagger.client.auth.*;
//import com.cloudera.api.swagger.AuthServiceResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
AuthServiceResourceApi apiInstance = new AuthServiceResourceApi();
try {
ApiCommand result = apiInstance.exitMaintenanceMode();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AuthServiceResourceApi#exitMaintenanceMode");
e.printStackTrace();
}
This endpoint does not need any parameter.
ApiCommandList listActiveCommands(view)
List active Authentication Service commands.
List active Authentication Service commands.
// Import classes:
//import com.cloudera.api.swagger.client.ApiClient;
//import com.cloudera.api.swagger.client.ApiException;
//import com.cloudera.api.swagger.client.Configuration;
//import com.cloudera.api.swagger.client.auth.*;
//import com.cloudera.api.swagger.AuthServiceResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
AuthServiceResourceApi apiInstance = new AuthServiceResourceApi();
String view = "summary"; // String | The view of the data to materialize, either \"summary\" or \"full\".
try {
ApiCommandList result = apiInstance.listActiveCommands(view);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AuthServiceResourceApi#listActiveCommands");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
view | String | The view of the data to materialize, either "summary" or "full". | [optional] [default to summary] [enum: EXPORT, EXPORT_REDACTED, FULL, FULL_WITH_HEALTH_CHECK_EXPLANATION, SUMMARY] |
ApiRoleTypeList listRoleTypes()
List the supported role types for the Authentication Service.
List the supported role types for the Authentication Service.
// Import classes:
//import com.cloudera.api.swagger.client.ApiClient;
//import com.cloudera.api.swagger.client.ApiException;
//import com.cloudera.api.swagger.client.Configuration;
//import com.cloudera.api.swagger.client.auth.*;
//import com.cloudera.api.swagger.AuthServiceResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
AuthServiceResourceApi apiInstance = new AuthServiceResourceApi();
try {
ApiRoleTypeList result = apiInstance.listRoleTypes();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AuthServiceResourceApi#listRoleTypes");
e.printStackTrace();
}
This endpoint does not need any parameter.
ApiService readService()
Retrieve information about the Authentication Services.
Retrieve information about the Authentication Services.
// Import classes:
//import com.cloudera.api.swagger.client.ApiClient;
//import com.cloudera.api.swagger.client.ApiException;
//import com.cloudera.api.swagger.client.Configuration;
//import com.cloudera.api.swagger.client.auth.*;
//import com.cloudera.api.swagger.AuthServiceResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
AuthServiceResourceApi apiInstance = new AuthServiceResourceApi();
try {
ApiService result = apiInstance.readService();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AuthServiceResourceApi#readService");
e.printStackTrace();
}
This endpoint does not need any parameter.
ApiServiceConfig readServiceConfig(view)
// Import classes:
//import com.cloudera.api.swagger.client.ApiClient;
//import com.cloudera.api.swagger.client.ApiException;
//import com.cloudera.api.swagger.client.Configuration;
//import com.cloudera.api.swagger.client.auth.*;
//import com.cloudera.api.swagger.AuthServiceResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
AuthServiceResourceApi apiInstance = new AuthServiceResourceApi();
String view = "summary"; // String |
try {
ApiServiceConfig result = apiInstance.readServiceConfig(view);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AuthServiceResourceApi#readServiceConfig");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
view | String | [optional] [default to summary] [enum: EXPORT, EXPORT_REDACTED, FULL, FULL_WITH_HEALTH_CHECK_EXPLANATION, SUMMARY] |
ApiCommand restartCommand()
Restart the Authentication Service.
Restart the Authentication Service.
// Import classes:
//import com.cloudera.api.swagger.client.ApiClient;
//import com.cloudera.api.swagger.client.ApiException;
//import com.cloudera.api.swagger.client.Configuration;
//import com.cloudera.api.swagger.client.auth.*;
//import com.cloudera.api.swagger.AuthServiceResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
AuthServiceResourceApi apiInstance = new AuthServiceResourceApi();
try {
ApiCommand result = apiInstance.restartCommand();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AuthServiceResourceApi#restartCommand");
e.printStackTrace();
}
This endpoint does not need any parameter.
ApiService setup(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:
// Import classes:
//import com.cloudera.api.swagger.client.ApiClient;
//import com.cloudera.api.swagger.client.ApiException;
//import com.cloudera.api.swagger.client.Configuration;
//import com.cloudera.api.swagger.client.auth.*;
//import com.cloudera.api.swagger.AuthServiceResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
AuthServiceResourceApi apiInstance = new AuthServiceResourceApi();
ApiService body = new ApiService(); // ApiService | Role configuration overrides.
try {
ApiService result = apiInstance.setup(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AuthServiceResourceApi#setup");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | ApiService | Role configuration overrides. | [optional] |
ApiCommand startCommand()
Start the Authentication Service.
Start the Authentication Service.
// Import classes:
//import com.cloudera.api.swagger.client.ApiClient;
//import com.cloudera.api.swagger.client.ApiException;
//import com.cloudera.api.swagger.client.Configuration;
//import com.cloudera.api.swagger.client.auth.*;
//import com.cloudera.api.swagger.AuthServiceResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
AuthServiceResourceApi apiInstance = new AuthServiceResourceApi();
try {
ApiCommand result = apiInstance.startCommand();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AuthServiceResourceApi#startCommand");
e.printStackTrace();
}
This endpoint does not need any parameter.
ApiCommand stopCommand()
Stop the Authentication Service.
Stop the Authentication Service.
// Import classes:
//import com.cloudera.api.swagger.client.ApiClient;
//import com.cloudera.api.swagger.client.ApiException;
//import com.cloudera.api.swagger.client.Configuration;
//import com.cloudera.api.swagger.client.auth.*;
//import com.cloudera.api.swagger.AuthServiceResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
AuthServiceResourceApi apiInstance = new AuthServiceResourceApi();
try {
ApiCommand result = apiInstance.stopCommand();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AuthServiceResourceApi#stopCommand");
e.printStackTrace();
}
This endpoint does not need any parameter.
ApiServiceConfig updateServiceConfig(message, body)
// Import classes:
//import com.cloudera.api.swagger.client.ApiClient;
//import com.cloudera.api.swagger.client.ApiException;
//import com.cloudera.api.swagger.client.Configuration;
//import com.cloudera.api.swagger.client.auth.*;
//import com.cloudera.api.swagger.AuthServiceResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
AuthServiceResourceApi apiInstance = new AuthServiceResourceApi();
String message = "message_example"; // String |
ApiServiceConfig body = new ApiServiceConfig(); // ApiServiceConfig |
try {
ApiServiceConfig result = apiInstance.updateServiceConfig(message, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AuthServiceResourceApi#updateServiceConfig");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
message | String | [optional] | |
body | ApiServiceConfig | [optional] |