All URIs are relative to http://localhost/nifi-api
Method | HTTP request | Description |
---|---|---|
createParameterContext | POST /parameter-contexts | Create a Parameter Context |
deleteParameterContext | DELETE /parameter-contexts/{id} | Deletes the Parameter Context with the given ID |
deleteUpdateRequest | DELETE /parameter-contexts/{contextId}/update-requests/{requestId} | Deletes the Update Request with the given ID |
deleteValidationRequest | DELETE /parameter-contexts/{contextId}/validation-requests/{id} | Deletes the Validation Request with the given ID |
getParameterContext | GET /parameter-contexts/{id} | Returns the Parameter Context with the given ID |
getParameterContextUpdate | GET /parameter-contexts/{contextId}/update-requests/{requestId} | Returns the Update Request with the given ID |
getValidationRequest | GET /parameter-contexts/{contextId}/validation-requests/{id} | Returns the Validation Request with the given ID |
submitParameterContextUpdate | POST /parameter-contexts/{contextId}/update-requests | Initiate the Update Request of a Parameter Context |
submitValidationRequest | POST /parameter-contexts/{contextId}/validation-requests | Initiate a Validation Request to determine how the validity of components will change if a Parameter Context were to be updated |
updateParameterContext | PUT /parameter-contexts/{id} | Modifies a Parameter Context |
ParameterContextEntity createParameterContext(body)
Create a Parameter Context
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ParametercontextsApi;
ParametercontextsApi apiInstance = new ParametercontextsApi();
ParameterContextEntity body = new ParameterContextEntity(); // ParameterContextEntity | The Parameter Context.
try {
ParameterContextEntity result = apiInstance.createParameterContext(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ParametercontextsApi#createParameterContext");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | ParameterContextEntity | The Parameter Context. |
No authorization required
- Content-Type: application/json
- Accept: application/json
ParameterContextEntity deleteParameterContext(id, version, clientId, disconnectedNodeAcknowledged)
Deletes the Parameter Context with the given ID
Deletes the Parameter Context with the given ID.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ParametercontextsApi;
ParametercontextsApi apiInstance = new ParametercontextsApi();
String id = "id_example"; // String | The Parameter Context ID.
String version = "version_example"; // String | The version 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, a 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 {
ParameterContextEntity result = apiInstance.deleteParameterContext(id, version, clientId, disconnectedNodeAcknowledged);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ParametercontextsApi#deleteParameterContext");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | The Parameter Context ID. | |
version | String | The version 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, a 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
ParameterContextUpdateRequestEntity deleteUpdateRequest(contextId, requestId, disconnectedNodeAcknowledged)
Deletes the Update Request with the given ID
Deletes the Update Request with the given ID. After a request is created via a POST to /nifi-api/parameter-contexts/update-requests, it is expected that the client will properly clean up the request by DELETE'ing it, once the Update process has completed. If the request is deleted before the request completes, then the Update request will finish the step that it is currently performing and then will cancel any subsequent steps.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ParametercontextsApi;
ParametercontextsApi apiInstance = new ParametercontextsApi();
String contextId = "contextId_example"; // String | The ID of the ParameterContext
String requestId = "requestId_example"; // String | The ID of the Update Request
Boolean disconnectedNodeAcknowledged = false; // Boolean | Acknowledges that this node is disconnected to allow for mutable requests to proceed.
try {
ParameterContextUpdateRequestEntity result = apiInstance.deleteUpdateRequest(contextId, requestId, disconnectedNodeAcknowledged);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ParametercontextsApi#deleteUpdateRequest");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
contextId | String | The ID of the ParameterContext | |
requestId | String | The ID of the Update Request | |
disconnectedNodeAcknowledged | Boolean | Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] [default to false] |
ParameterContextUpdateRequestEntity
No authorization required
- Content-Type: /
- Accept: application/json
ParameterContextValidationRequestEntity deleteValidationRequest(contextId, id, disconnectedNodeAcknowledged)
Deletes the Validation Request with the given ID
Deletes the Validation Request with the given ID. After a request is created via a POST to /nifi-api/validation-contexts, it is expected that the client will properly clean up the request by DELETE'ing it, once the validation process has completed. If the request is deleted before the request completes, then the Validation request will finish the step that it is currently performing and then will cancel any subsequent steps.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ParametercontextsApi;
ParametercontextsApi apiInstance = new ParametercontextsApi();
String contextId = "contextId_example"; // String | The ID of the Parameter Context
String id = "id_example"; // String | The ID of the Update Request
Boolean disconnectedNodeAcknowledged = false; // Boolean | Acknowledges that this node is disconnected to allow for mutable requests to proceed.
try {
ParameterContextValidationRequestEntity result = apiInstance.deleteValidationRequest(contextId, id, disconnectedNodeAcknowledged);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ParametercontextsApi#deleteValidationRequest");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
contextId | String | The ID of the Parameter Context | |
id | String | The ID of the Update Request | |
disconnectedNodeAcknowledged | Boolean | Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] [default to false] |
ParameterContextValidationRequestEntity
No authorization required
- Content-Type: /
- Accept: application/json
ParameterContextEntity getParameterContext(id, includeInheritedParameters)
Returns the Parameter Context with the given ID
Returns the Parameter Context with the given ID.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ParametercontextsApi;
ParametercontextsApi apiInstance = new ParametercontextsApi();
String id = "id_example"; // String | The ID of the Parameter Context
Boolean includeInheritedParameters = false; // Boolean | Whether or not to include inherited parameters from other parameter contexts, and therefore also overridden values. If true, the result will be the 'effective' parameter context.
try {
ParameterContextEntity result = apiInstance.getParameterContext(id, includeInheritedParameters);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ParametercontextsApi#getParameterContext");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | The ID of the Parameter Context | |
includeInheritedParameters | Boolean | Whether or not to include inherited parameters from other parameter contexts, and therefore also overridden values. If true, the result will be the 'effective' parameter context. | [optional] [default to false] |
No authorization required
- Content-Type: /
- Accept: application/json
ParameterContextUpdateRequestEntity getParameterContextUpdate(contextId, requestId)
Returns the Update Request with the given ID
Returns the Update Request with the given ID. Once an Update Request has been created by performing a POST to /nifi-api/parameter-contexts, that request can subsequently be retrieved via this endpoint, and the request that is fetched will contain the updated state, such as percent complete, the current state of the request, and any failures.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ParametercontextsApi;
ParametercontextsApi apiInstance = new ParametercontextsApi();
String contextId = "contextId_example"; // String | The ID of the Parameter Context
String requestId = "requestId_example"; // String | The ID of the Update Request
try {
ParameterContextUpdateRequestEntity result = apiInstance.getParameterContextUpdate(contextId, requestId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ParametercontextsApi#getParameterContextUpdate");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
contextId | String | The ID of the Parameter Context | |
requestId | String | The ID of the Update Request |
ParameterContextUpdateRequestEntity
No authorization required
- Content-Type: /
- Accept: application/json
ParameterContextValidationRequestEntity getValidationRequest(contextId, id)
Returns the Validation Request with the given ID
Returns the Validation Request with the given ID. Once a Validation Request has been created by performing a POST to /nifi-api/validation-contexts, that request can subsequently be retrieved via this endpoint, and the request that is fetched will contain the updated state, such as percent complete, the current state of the request, and any failures.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ParametercontextsApi;
ParametercontextsApi apiInstance = new ParametercontextsApi();
String contextId = "contextId_example"; // String | The ID of the Parameter Context
String id = "id_example"; // String | The ID of the Validation Request
try {
ParameterContextValidationRequestEntity result = apiInstance.getValidationRequest(contextId, id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ParametercontextsApi#getValidationRequest");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
contextId | String | The ID of the Parameter Context | |
id | String | The ID of the Validation Request |
ParameterContextValidationRequestEntity
No authorization required
- Content-Type: /
- Accept: application/json
ParameterContextUpdateRequestEntity submitParameterContextUpdate(contextId, body)
Initiate the Update Request of a Parameter Context
This will initiate the process of updating a Parameter Context. Changing the value of a Parameter may require that one or more components be stopped and restarted, so this action may take significantly more time than many other REST API actions. As a result, this endpoint will immediately return a ParameterContextUpdateRequestEntity, and the process of updating the necessary components will occur asynchronously in the background. The client may then periodically poll the status of the request by issuing a GET request to /parameter-contexts/update-requests/{requestId}. Once the request is completed, the client is expected to issue a DELETE request to /parameter-contexts/update-requests/{requestId}.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ParametercontextsApi;
ParametercontextsApi apiInstance = new ParametercontextsApi();
String contextId = "contextId_example"; // String |
ParameterContextEntity body = new ParameterContextEntity(); // ParameterContextEntity | The updated version of the parameter context.
try {
ParameterContextUpdateRequestEntity result = apiInstance.submitParameterContextUpdate(contextId, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ParametercontextsApi#submitParameterContextUpdate");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
contextId | String | ||
body | ParameterContextEntity | The updated version of the parameter context. |
ParameterContextUpdateRequestEntity
No authorization required
- Content-Type: application/json
- Accept: application/json
ParameterContextValidationRequestEntity submitValidationRequest(contextId, body)
Initiate a Validation Request to determine how the validity of components will change if a Parameter Context were to be updated
This will initiate the process of validating all components whose Process Group is bound to the specified Parameter Context. Performing validation against an arbitrary number of components may be expect and take significantly more time than many other REST API actions. As a result, this endpoint will immediately return a ParameterContextValidationRequestEntity, and the process of validating the necessary components will occur asynchronously in the background. The client may then periodically poll the status of the request by issuing a GET request to /parameter-contexts/validation-requests/{requestId}. Once the request is completed, the client is expected to issue a DELETE request to /parameter-contexts/validation-requests/{requestId}.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ParametercontextsApi;
ParametercontextsApi apiInstance = new ParametercontextsApi();
String contextId = "contextId_example"; // String |
ParameterContextValidationRequestEntity body = new ParameterContextValidationRequestEntity(); // ParameterContextValidationRequestEntity | The validation request
try {
ParameterContextValidationRequestEntity result = apiInstance.submitValidationRequest(contextId, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ParametercontextsApi#submitValidationRequest");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
contextId | String | ||
body | ParameterContextValidationRequestEntity | The validation request |
ParameterContextValidationRequestEntity
No authorization required
- Content-Type: application/json
- Accept: application/json
ParameterContextEntity updateParameterContext(id, body)
Modifies a Parameter Context
This endpoint will update a Parameter Context to match the provided entity. However, this request will fail if any component is running and is referencing a Parameter in the Parameter Context. Generally, this endpoint is not called directly. Instead, an update request should be submitted by making a POST to the /parameter-contexts/update-requests endpoint. That endpoint will, in turn, call this endpoint.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ParametercontextsApi;
ParametercontextsApi apiInstance = new ParametercontextsApi();
String id = "id_example"; // String |
ParameterContextEntity body = new ParameterContextEntity(); // ParameterContextEntity | The updated Parameter Context
try {
ParameterContextEntity result = apiInstance.updateParameterContext(id, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ParametercontextsApi#updateParameterContext");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | ||
body | ParameterContextEntity | The updated Parameter Context |
No authorization required
- Content-Type: application/json
- Accept: application/json