All URIs are relative to http://localhost/nifi-api
| Method | HTTP request | Description |
|---|---|---|
| createUser | POST /tenants/users | Creates a user |
| createUserGroup | POST /tenants/user-groups | Creates a user group |
| getUser | GET /tenants/users/{id} | Gets a user |
| getUserGroup | GET /tenants/user-groups/{id} | Gets a user group |
| getUserGroups | GET /tenants/user-groups | Gets all user groups |
| getUsers | GET /tenants/users | Gets all users |
| removeUser | DELETE /tenants/users/{id} | Deletes a user |
| removeUserGroup | DELETE /tenants/user-groups/{id} | Deletes a user group |
| searchTenants | GET /tenants/search-results | Searches for a tenant with the specified identity |
| updateUser | PUT /tenants/users/{id} | Updates a user |
| updateUserGroup | PUT /tenants/user-groups/{id} | Updates a user group |
UserEntity createUser(body)
Creates a user
Note: This endpoint is subject to change as NiFi and it's REST API evolve.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.TenantsApi;
TenantsApi apiInstance = new TenantsApi();
UserEntity body = new UserEntity(); // UserEntity | The user configuration details.
try {
UserEntity result = apiInstance.createUser(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TenantsApi#createUser");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| body | UserEntity | The user configuration details. |
No authorization required
- Content-Type: application/json
- Accept: application/json
UserGroupEntity createUserGroup(body)
Creates a user group
Note: This endpoint is subject to change as NiFi and it's REST API evolve.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.TenantsApi;
TenantsApi apiInstance = new TenantsApi();
UserGroupEntity body = new UserGroupEntity(); // UserGroupEntity | The user group configuration details.
try {
UserGroupEntity result = apiInstance.createUserGroup(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TenantsApi#createUserGroup");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| body | UserGroupEntity | The user group configuration details. |
No authorization required
- Content-Type: application/json
- Accept: application/json
UserEntity getUser(id)
Gets a user
Note: This endpoint is subject to change as NiFi and it's REST API evolve.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.TenantsApi;
TenantsApi apiInstance = new TenantsApi();
String id = "id_example"; // String | The user id.
try {
UserEntity result = apiInstance.getUser(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TenantsApi#getUser");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | The user id. |
No authorization required
- Content-Type: /
- Accept: application/json
UserGroupEntity getUserGroup(id)
Gets a user group
Note: This endpoint is subject to change as NiFi and it's REST API evolve.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.TenantsApi;
TenantsApi apiInstance = new TenantsApi();
String id = "id_example"; // String | The user group id.
try {
UserGroupEntity result = apiInstance.getUserGroup(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TenantsApi#getUserGroup");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | The user group id. |
No authorization required
- Content-Type: /
- Accept: application/json
UserGroupsEntity getUserGroups()
Gets all user groups
Note: This endpoint is subject to change as NiFi and it's REST API evolve.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.TenantsApi;
TenantsApi apiInstance = new TenantsApi();
try {
UserGroupsEntity result = apiInstance.getUserGroups();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TenantsApi#getUserGroups");
e.printStackTrace();
}This endpoint does not need any parameter.
No authorization required
- Content-Type: /
- Accept: application/json
UsersEntity getUsers()
Gets all users
Note: This endpoint is subject to change as NiFi and it's REST API evolve.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.TenantsApi;
TenantsApi apiInstance = new TenantsApi();
try {
UsersEntity result = apiInstance.getUsers();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TenantsApi#getUsers");
e.printStackTrace();
}This endpoint does not need any parameter.
No authorization required
- Content-Type: /
- Accept: application/json
UserEntity removeUser(id, version, clientId, disconnectedNodeAcknowledged)
Deletes a user
Note: This endpoint is subject to change as NiFi and it's REST API evolve.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.TenantsApi;
TenantsApi apiInstance = new TenantsApi();
String id = "id_example"; // String | The user id.
String version = "version_example"; // String | The revision is used to verify the client is working with the latest version of the flow.
String clientId = "clientId_example"; // String | If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response.
Boolean disconnectedNodeAcknowledged = false; // Boolean | Acknowledges that this node is disconnected to allow for mutable requests to proceed.
try {
UserEntity result = apiInstance.removeUser(id, version, clientId, disconnectedNodeAcknowledged);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TenantsApi#removeUser");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | The user id. | |
| version | String | The revision is used to verify the client is working with the latest version of the flow. | [optional] |
| clientId | String | If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. | [optional] |
| disconnectedNodeAcknowledged | Boolean | Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] [default to false] |
No authorization required
- Content-Type: /
- Accept: application/json
UserGroupEntity removeUserGroup(id, version, clientId, disconnectedNodeAcknowledged)
Deletes a user group
Note: This endpoint is subject to change as NiFi and it's REST API evolve.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.TenantsApi;
TenantsApi apiInstance = new TenantsApi();
String id = "id_example"; // String | The user group id.
String version = "version_example"; // String | The revision is used to verify the client is working with the latest version of the flow.
String clientId = "clientId_example"; // String | If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response.
Boolean disconnectedNodeAcknowledged = false; // Boolean | Acknowledges that this node is disconnected to allow for mutable requests to proceed.
try {
UserGroupEntity result = apiInstance.removeUserGroup(id, version, clientId, disconnectedNodeAcknowledged);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TenantsApi#removeUserGroup");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | The user group id. | |
| version | String | The revision is used to verify the client is working with the latest version of the flow. | [optional] |
| clientId | String | If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. | [optional] |
| disconnectedNodeAcknowledged | Boolean | Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] [default to false] |
No authorization required
- Content-Type: /
- Accept: application/json
TenantsEntity searchTenants(q)
Searches for a tenant with the specified identity
Note: This endpoint is subject to change as NiFi and it's REST API evolve.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.TenantsApi;
TenantsApi apiInstance = new TenantsApi();
String q = "q_example"; // String | Identity to search for.
try {
TenantsEntity result = apiInstance.searchTenants(q);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TenantsApi#searchTenants");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| q | String | Identity to search for. |
No authorization required
- Content-Type: /
- Accept: application/json
UserEntity updateUser(id, body)
Updates a user
Note: This endpoint is subject to change as NiFi and it's REST API evolve.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.TenantsApi;
TenantsApi apiInstance = new TenantsApi();
String id = "id_example"; // String | The user id.
UserEntity body = new UserEntity(); // UserEntity | The user configuration details.
try {
UserEntity result = apiInstance.updateUser(id, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TenantsApi#updateUser");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | The user id. | |
| body | UserEntity | The user configuration details. |
No authorization required
- Content-Type: application/json
- Accept: application/json
UserGroupEntity updateUserGroup(id, body)
Updates a user group
Note: This endpoint is subject to change as NiFi and it's REST API evolve.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.TenantsApi;
TenantsApi apiInstance = new TenantsApi();
String id = "id_example"; // String | The user group id.
UserGroupEntity body = new UserGroupEntity(); // UserGroupEntity | The user group configuration details.
try {
UserGroupEntity result = apiInstance.updateUserGroup(id, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TenantsApi#updateUserGroup");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | The user group id. | |
| body | UserGroupEntity | The user group configuration details. |
No authorization required
- Content-Type: application/json
- Accept: application/json