All URIs are relative to https://localhost/api/v30
Method | HTTP request | Description |
---|---|---|
createExternalUserMappings | POST /externalUserMappings | Creates a list of external user mappings. |
deleteExternalUserMapping | DELETE /externalUserMappings/{uuid} | Deletes an external user mapping from the system. |
readExternalUserMapping | GET /externalUserMappings/{uuid} | Returns detailed information about an external user mapping. |
readExternalUserMappings | GET /externalUserMappings | Returns a list of the external user mappings configured in the system. |
updateExternalUserMapping | PUT /externalUserMappings/{uuid} | Updates the given external user mapping's information. |
ApiExternalUserMappingList createExternalUserMappings(body)
Creates a list of external user mappings.
Creates a list of external user mappings
// 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.ExternalUserMappingsResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
ExternalUserMappingsResourceApi apiInstance = new ExternalUserMappingsResourceApi();
ApiExternalUserMappingList body = new ApiExternalUserMappingList(); // ApiExternalUserMappingList |
try {
ApiExternalUserMappingList result = apiInstance.createExternalUserMappings(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ExternalUserMappingsResourceApi#createExternalUserMappings");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | ApiExternalUserMappingList | [optional] |
ApiExternalUserMapping deleteExternalUserMapping(uuid)
Deletes an external user mapping from the system.
Deletes an external user mapping from the system.
// 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.ExternalUserMappingsResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
ExternalUserMappingsResourceApi apiInstance = new ExternalUserMappingsResourceApi();
String uuid = "uuid_example"; // String | The uuid of the external user mapping to delete.
try {
ApiExternalUserMapping result = apiInstance.deleteExternalUserMapping(uuid);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ExternalUserMappingsResourceApi#deleteExternalUserMapping");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
uuid | String | The uuid of the external user mapping to delete. |
ApiExternalUserMapping readExternalUserMapping(uuid)
Returns detailed information about an external user mapping.
Returns detailed information about an external user mapping.
// 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.ExternalUserMappingsResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
ExternalUserMappingsResourceApi apiInstance = new ExternalUserMappingsResourceApi();
String uuid = "uuid_example"; // String | The external user mapping to read.
try {
ApiExternalUserMapping result = apiInstance.readExternalUserMapping(uuid);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ExternalUserMappingsResourceApi#readExternalUserMapping");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
uuid | String | The external user mapping to read. |
ApiExternalUserMappingList readExternalUserMappings(view)
Returns a list of the external user mappings configured in the system.
Returns a list of the external user mappings configured in the system.
// 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.ExternalUserMappingsResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
ExternalUserMappingsResourceApi apiInstance = new ExternalUserMappingsResourceApi();
String view = "summary"; // String |
try {
ApiExternalUserMappingList result = apiInstance.readExternalUserMappings(view);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ExternalUserMappingsResourceApi#readExternalUserMappings");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
view | String | [optional] [default to summary] [enum: EXPORT, EXPORT_REDACTED, FULL, FULL_WITH_HEALTH_CHECK_EXPLANATION, SUMMARY] |
ApiExternalUserMapping updateExternalUserMapping(uuid, body)
Updates the given external user mapping's information.
Updates the given external user mapping's information.
// 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.ExternalUserMappingsResourceApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
ExternalUserMappingsResourceApi apiInstance = new ExternalUserMappingsResourceApi();
String uuid = "uuid_example"; // String | Uuid of the external user mapping being updated.
ApiExternalUserMapping body = new ApiExternalUserMapping(); // ApiExternalUserMapping |
try {
ApiExternalUserMapping result = apiInstance.updateExternalUserMapping(uuid, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ExternalUserMappingsResourceApi#updateExternalUserMapping");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
uuid | String | Uuid of the external user mapping being updated. | |
body | ApiExternalUserMapping | [optional] |