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 (UserEntity body)
Creates a user
Note: This endpoint is subject to change as NiFi and it's REST API evolve.
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class CreateUserExample
{
public void main()
{
var apiInstance = new TenantsApi();
var body = new UserEntity(); // UserEntity | The user configuration details.
try
{
// Creates a user
UserEntity result = apiInstance.CreateUser(body);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling TenantsApi.CreateUser: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
body | UserEntity | The user configuration details. |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserGroupEntity CreateUserGroup (UserGroupEntity body)
Creates a user group
Note: This endpoint is subject to change as NiFi and it's REST API evolve.
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class CreateUserGroupExample
{
public void main()
{
var apiInstance = new TenantsApi();
var body = new UserGroupEntity(); // UserGroupEntity | The user group configuration details.
try
{
// Creates a user group
UserGroupEntity result = apiInstance.CreateUserGroup(body);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling TenantsApi.CreateUserGroup: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
body | UserGroupEntity | The user group configuration details. |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserEntity GetUser (string id)
Gets a user
Note: This endpoint is subject to change as NiFi and it's REST API evolve.
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class GetUserExample
{
public void main()
{
var apiInstance = new TenantsApi();
var id = id_example; // string | The user id.
try
{
// Gets a user
UserEntity result = apiInstance.GetUser(id);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling TenantsApi.GetUser: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | string | The user id. |
No authorization required
- Content-Type: /
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserGroupEntity GetUserGroup (string id)
Gets a user group
Note: This endpoint is subject to change as NiFi and it's REST API evolve.
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class GetUserGroupExample
{
public void main()
{
var apiInstance = new TenantsApi();
var id = id_example; // string | The user group id.
try
{
// Gets a user group
UserGroupEntity result = apiInstance.GetUserGroup(id);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling TenantsApi.GetUserGroup: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | string | The user group id. |
No authorization required
- Content-Type: /
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserGroupsEntity GetUserGroups ()
Gets all user groups
Note: This endpoint is subject to change as NiFi and it's REST API evolve.
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class GetUserGroupsExample
{
public void main()
{
var apiInstance = new TenantsApi();
try
{
// Gets all user groups
UserGroupsEntity result = apiInstance.GetUserGroups();
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling TenantsApi.GetUserGroups: " + e.Message );
}
}
}
}
This endpoint does not need any parameter.
No authorization required
- Content-Type: /
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UsersEntity GetUsers ()
Gets all users
Note: This endpoint is subject to change as NiFi and it's REST API evolve.
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class GetUsersExample
{
public void main()
{
var apiInstance = new TenantsApi();
try
{
// Gets all users
UsersEntity result = apiInstance.GetUsers();
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling TenantsApi.GetUsers: " + e.Message );
}
}
}
}
This endpoint does not need any parameter.
No authorization required
- Content-Type: /
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserEntity RemoveUser (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null)
Deletes a user
Note: This endpoint is subject to change as NiFi and it's REST API evolve.
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class RemoveUserExample
{
public void main()
{
var apiInstance = new TenantsApi();
var id = id_example; // string | The user id.
var version = version_example; // string | The revision is used to verify the client is working with the latest version of the flow. (optional)
var 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. (optional)
var disconnectedNodeAcknowledged = true; // bool? | Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional) (default to false)
try
{
// Deletes a user
UserEntity result = apiInstance.RemoveUser(id, version, clientId, disconnectedNodeAcknowledged);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling TenantsApi.RemoveUser: " + e.Message );
}
}
}
}
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 | bool? | 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
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserGroupEntity RemoveUserGroup (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null)
Deletes a user group
Note: This endpoint is subject to change as NiFi and it's REST API evolve.
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class RemoveUserGroupExample
{
public void main()
{
var apiInstance = new TenantsApi();
var id = id_example; // string | The user group id.
var version = version_example; // string | The revision is used to verify the client is working with the latest version of the flow. (optional)
var 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. (optional)
var disconnectedNodeAcknowledged = true; // bool? | Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional) (default to false)
try
{
// Deletes a user group
UserGroupEntity result = apiInstance.RemoveUserGroup(id, version, clientId, disconnectedNodeAcknowledged);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling TenantsApi.RemoveUserGroup: " + e.Message );
}
}
}
}
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 | bool? | 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
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TenantsEntity SearchTenants (string q)
Searches for a tenant with the specified identity
Note: This endpoint is subject to change as NiFi and it's REST API evolve.
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class SearchTenantsExample
{
public void main()
{
var apiInstance = new TenantsApi();
var q = q_example; // string | Identity to search for.
try
{
// Searches for a tenant with the specified identity
TenantsEntity result = apiInstance.SearchTenants(q);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling TenantsApi.SearchTenants: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
q | string | Identity to search for. |
No authorization required
- Content-Type: /
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserEntity UpdateUser (string id, UserEntity body)
Updates a user
Note: This endpoint is subject to change as NiFi and it's REST API evolve.
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class UpdateUserExample
{
public void main()
{
var apiInstance = new TenantsApi();
var id = id_example; // string | The user id.
var body = new UserEntity(); // UserEntity | The user configuration details.
try
{
// Updates a user
UserEntity result = apiInstance.UpdateUser(id, body);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling TenantsApi.UpdateUser: " + e.Message );
}
}
}
}
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
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserGroupEntity UpdateUserGroup (string id, UserGroupEntity body)
Updates a user group
Note: This endpoint is subject to change as NiFi and it's REST API evolve.
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class UpdateUserGroupExample
{
public void main()
{
var apiInstance = new TenantsApi();
var id = id_example; // string | The user group id.
var body = new UserGroupEntity(); // UserGroupEntity | The user group configuration details.
try
{
// Updates a user group
UserGroupEntity result = apiInstance.UpdateUserGroup(id, body);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling TenantsApi.UpdateUserGroup: " + e.Message );
}
}
}
}
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
[Back to top] [Back to API list] [Back to Model list] [Back to README]