Created 09-15-2017 10:17 AM
I am using NiFi REST API in Python to create and update the controller service in NiFi. Is there a way to get the list of all controller services available in NiFi using REST API? like in JSON response message?
Created 09-19-2017 12:08 PM
You can use a GET for this. Example:
Response:
{"currentTime":"14:06:21 CEST","controllerServices":[{"revision":{"version":0},"id":"fbec5165-015a-1000-ef40-26bc04ec2b63","uri":"http://localhost:8080/nifi-api/controller-services/fbec5165-015a-1000-ef40-26bc04ec2b63","permissions":{"canRead":true,"canWrite":true},"bulletins":[],"component":{"id":"fbec5165-015a-1000-ef40-26bc04ec2b63","parentGroupId":"aa246331-015a-1000-fac3-b72f7046408b","name":"StandardHttpContextMap","type":"org.apache.nifi.http.StandardHttpContextMap","bundle":{"group":"org.apache.nifi","artifact":"nifi-http-context-map-nar","version":"1.4.0-SNAPSHOT"},"controllerServiceApis":[{"type":"org.apache.nifi.http.HttpContextMap","bundle":{"group":"org.apache.nifi","artifact":"nifi-standard-services-api-nar","version":"1.4.0-SNAPSHOT"}}],"comments":"","state":"DISABLED","persistsState":false,"restricted":false,"deprecated":false,"multipleVersionsAvailable":false,"properties":{"Maximum Outstanding Requests":"10000","Request Expiration":"1 min"},"descriptors":{"Maximum Outstanding Requests":{"name":"Maximum Outstanding Requests","displayName":"Maximum Outstanding Requests","description":"The maximum number of HTTP requests that can be outstanding at any one time. Any attempt to register an additional HTTP Request will cause an error","defaultValue":"5000","required":true,"sensitive":false,"dynamic":false,"supportsEl":false},"Request Expiration":{"name":"Request Expiration","displayName":"Request Expiration","description":"Specifies how long an HTTP Request should be left unanswered before being evicted from the cache and being responded to with a Service Unavailable status code","defaultValue":"1 min","required":true,"sensitive":false,"dynamic":false,"supportsEl":false}},"referencingComponents":[{"revision":{"version":0,"lastModifier":"anonymous"},"id":"fbec5167-015a-1000-998a-858ea9611244","permissions":{"canRead":true,"canWrite":true},"component":{"groupId":"fc7d4a17-015a-1000-7731-9659aaa9b098","id":"fbec5167-015a-1000-998a-858ea9611244","name":"HandleHttpRequest","type":"HandleHttpRequest","state":"STOPPED","properties":{"Listening Port":"9999","Hostname":"localhost","SSL Context Service":null,"HTTP Context Map":"fbec5165-015a-1000-ef40-26bc04ec2b63","Allowed Paths":null,"Default URL Character Set":"UTF-8","Allow GET":"true","Allow POST":"true","Allow PUT":"true","Allow DELETE":"true","Allow HEAD":"false","Allow OPTIONS":"false","Additional HTTP Methods":null,"Client Authentication":"No Authentication","container-queue-size":"50"},"descriptors":{"Listening Port":{"name":"Listening Port","displayName":"Listening Port","description":"The Port to listen on for incoming HTTP requests","defaultValue":"80","required":true,"sensitive":false,"dynamic":false,"supportsEl":false},"Hostname":{"name":"Hostname","displayName":"Hostname","description":"The Hostname to bind to. If not specified, will bind to all hosts","required":false,"sensitive":false,"dynamic":false,"supportsEl":false},"SSL Context Service":{"name":"SSL Context Service","displayName":"SSL Context Service","description":"The SSL Context Service to use in order to secure the server. If specified, the server will accept only HTTPS requests; otherwise, the server will accept only HTTP requests","allowableValues":[],"required":false,"sensitive":false,"dynamic":false,"supportsEl":false,"identifiesControllerService":"org.apache.nifi.ssl.RestrictedSSLContextService","identifiesControllerServiceBundle":{"group":"org.apache.nifi","artifact":"nifi-standard-services-api-nar","version":"1.4.0-SNAPSHOT"}},"HTTP Context Map":{"name":"HTTP Context Map","displayName":"HTTP Context Map","description":"The HTTP Context Map Controller Service to use for caching the HTTP Request Information","allowableValues":[{"allowableValue":{"displayName":"StandardHttpContextMap","value":"f6aa99d0-0159-1000-d428-5edef0de643e"},"canRead":true},{"allowableValue":{"displayName":"StandardHttpContextMap","value":"fbec5165-015a-1000-ef40-26bc04ec2b63"},"canRead":true},{"allowableValue":{"displayName":"StandardHttpContextMap","value":"fc7d8d0b-015a-1000-e0f4-d79e69229742"},"canRead":true}],"required":true,"sensitive":false,"dynamic":false,"supportsEl":false,"identifiesControllerService":"org.apache.nifi.http.HttpContextMap","identifiesControllerServiceBundle":{"group":"org.apache.nifi","artifact":"nifi-standard-services-api-nar","version":"1.4.0-SNAPSHOT"}},"Allowed Paths":{"name":"Allowed Paths","displayName":"Allowed Paths","description":"A Regular Expression that specifies the valid HTTP Paths that are allowed in the incoming URL Requests. If this value is specified and the path of the HTTP Requests does not match this Regular Expression, the Processor will respond with a 404: NotFound","required":false,"sensitive":false,"dynamic":false,"supportsEl":false},"Default URL Character Set":{"name":"Default URL Character Set","displayName":"Default URL Character Set","description":"The character set to use for decoding URL parameters if the HTTP Request does not supply one","defaultValue":"UTF-8","required":true,"sensitive":false,"dynamic":false,"supportsEl":false},"Allow GET":{"name":"Allow GET","displayName":"Allow GET","description":"Allow HTTP GET Method","defaultValue":"true","allowableValues":[{"allowableValue":{"displayName":"true","value":"true"},"canRead":true},{"allowableValue":{"displayName":"false","value":"false"},"canRead":true}],"required":true,"sensitive":false,"dynamic":false,"supportsEl":false},"Allow POST":{"name":"Allow POST","displayName":"Allow POST","description":"Allow HTTP POST Method","defaultValue":"true","allowableValues":[{"allowableValue":{"displayName":"true","value":"true"},"canRead":true},{"allowableValue":{"displayName":"false","value":"false"},"canRead":true}],"required":true,"sensitive":false,"dynamic":false,"supportsEl":false},"Allow PUT":{"name":"Allow PUT","displayName":"Allow PUT","description":"Allow HTTP PUT Method","defaultValue":"true","allowableValues":[{"allowableValue":{"displayName":"true","value":"true"},"canRead":true},{"allowableValue":{"displayName":"false","value":"false"},"canRead":true}],"required":true,"sensitive":false,"dynamic":false,"supportsEl":false},"Allow DELETE":{"name":"Allow DELETE","displayName":"Allow DELETE","description":"Allow HTTP DELETE Method","defaultValue":"true","allowableValues":[{"allowableValue":{"displayName":"true","value":"true"},"canRead":true},{"allowableValue":{"displayName":"false","value":"false"},"canRead":true}],"required":true,"sensitive":false,"dynamic":false,"supportsEl":false},"Allow HEAD":{"name":"Allow HEAD","displayName":"Allow HEAD","description":"Allow HTTP HEAD Method","defaultValue":"false","allowableValues":[{"allowableValue":{"displayName":"true","value":"true"},"canRead":true},{"allowableValue":{"displayName":"false","value":"false"},"canRead":true}],"required":true,"sensitive":false,"dynamic":false,"supportsEl":false},"Allow OPTIONS":{"name":"Allow OPTIONS","displayName":"Allow OPTIONS","description":"Allow HTTP OPTIONS Method","defaultValue":"false","allowableValues":[{"allowableValue":{"displayName":"true","value":"true"},"canRead":true},{"allowableValue":{"displayName":"false","value":"false"},"canRead":true}],"required":true,"sensitive":false,"dynamic":false,"supportsEl":false},"Additional HTTP Methods":{"name":"Additional HTTP Methods","displayName":"Additional HTTP Methods","description":"A comma-separated list of non-standard HTTP Methods that should be allowed","required":false,"sensitive":false,"dynamic":false,"supportsEl":false},"Client Authentication":{"name":"Client Authentication","displayName":"Client Authentication","description":"Specifies whether or not the Processor should authenticate clients. This value is ignored if the <SSL Context Service> Property is not specified or the SSL Context provided uses only a KeyStore and not a TrustStore.","defaultValue":"No Authentication","allowableValues":[{"allowableValue":{"displayName":"No Authentication","value":"No Authentication","description":"Processor will not authenticate clients. Anyone can communicate with this Processor anonymously"},"canRead":true},{"allowableValue":{"displayName":"Want Authentication","value":"Want Authentication","description":"Processor will try to verify the client but if unable to verify will allow the client to communicate anonymously"},"canRead":true},{"allowableValue":{"displayName":"Need Authentication","value":"Need Authentication","description":"Processor will reject communications from any client unless the client provides a certificate that is trusted by the TrustStorespecified in the SSL Context Service"},"canRead":true}],"required":true,"sensitive":false,"dynamic":false,"supportsEl":false},"container-queue-size":{"name":"container-queue-size","displayName":"Container Queue Size","description":"The size of the queue for Http Request Containers","defaultValue":"50","required":true,"sensitive":false,"dynamic":false,"supportsEl":false}},"validationErrors":["'HTTP Context Map' validated against 'StandardHttpContextMap' is invalid because Controller Service StandardHttpContextMap[id=fbec5165-015a-1000-ef40-26bc04ec2b63] is disabled"],"referenceType":"Processor","activeThreadCount":0}},{"revision":{"version":0,"lastModifier":"anonymous"},"id":"fbec516d-015a-1000-3273-3d36a22c0501","permissions":{"canRead":true,"canWrite":true},"component":{"groupId":"fc7d4a17-015a-1000-7731-9659aaa9b098","id":"fbec516d-015a-1000-3273-3d36a22c0501","name":"HandleHttpResponse","type":"HandleHttpResponse","state":"STOPPED","properties":{"HTTP Status Code":"${invokehttp.status.code:replaceNull('200')}","HTTP Context Map":"fbec5165-015a-1000-ef40-26bc04ec2b63"},"descriptors":{"HTTP Status Code":{"name":"HTTP Status Code","displayName":"HTTP Status Code","description":"The HTTP Status Code to use when responding to the HTTP Request. See Section 10 of RFC 2616 for more information.","required":true,"sensitive":false,"dynamic":false,"supportsEl":true},"HTTP Context Map":{"name":"HTTP Context Map","displayName":"HTTP Context Map","description":"The HTTP Context Map Controller Service to use for caching the HTTP Request Information","allowableValues":[{"allowableValue":{"displayName":"StandardHttpContextMap","value":"f6aa99d0-0159-1000-d428-5edef0de643e"},"canRead":true},{"allowableValue":{"displayName":"StandardHttpContextMap","value":"fbec5165-015a-1000-ef40-26bc04ec2b63"},"canRead":true},{"allowableValue":{"displayName":"StandardHttpContextMap","value":"fc7d8d0b-015a-1000-e0f4-d79e69229742"},"canRead":true}],"required":true,"sensitive":false,"dynamic":false,"supportsEl":false,"identifiesControllerService":"org.apache.nifi.http.HttpContextMap","identifiesControllerServiceBundle":{"group":"org.apache.nifi","artifact":"nifi-standard-services-api-nar","version":"1.4.0-SNAPSHOT"}}},"validationErrors":["'HTTP Context Map' validated against 'StandardHttpContextMap' is invalid because Controller Service StandardHttpContextMap[id=fbec5165-015a-1000-ef40-26bc04ec2b63] is disabled"],"referenceType":"Processor","activeThreadCount":0}},{"revision":{"version":0,"lastModifier":"anonymous"},"id":"fc7c07df-015a-1000-31cb-383c9f986aa6","permissions":{"canRead":true,"canWrite":true},"component":{"groupId":"fc7d4a17-015a-1000-7731-9659aaa9b098","id":"fc7c07df-015a-1000-31cb-383c9f986aa6","name":"HandleHttpResponse","type":"HandleHttpResponse","state":"STOPPED","properties":{"HTTP Status Code":"200","HTTP Context Map":"fbec5165-015a-1000-ef40-26bc04ec2b63"},"descriptors":{"HTTP Status Code":{"name":"HTTP Status Code","displayName":"HTTP Status Code","description":"The HTTP Status Code to use when responding to the HTTP Request. See Section 10 of RFC 2616 for more information.","required":true,"sensitive":false,"dynamic":false,"supportsEl":true},"HTTP Context Map":{"name":"HTTP Context Map","displayName":"HTTP Context Map","description":"The HTTP Context Map Controller Service to use for caching the HTTP Request Information","allowableValues":[{"allowableValue":{"displayName":"StandardHttpContextMap","value":"f6aa99d0-0159-1000-d428-5edef0de643e"},"canRead":true},{"allowableValue":{"displayName":"StandardHttpContextMap","value":"fbec5165-015a-1000-ef40-26bc04ec2b63"},"canRead":true},{"allowableValue":{"displayName":"StandardHttpContextMap","value":"fc7d8d0b-015a-1000-e0f4-d79e69229742"},"canRead":true}],"required":true,"sensitive":false,"dynamic":false,"supportsEl":false,"identifiesControllerService":"org.apache.nifi.http.HttpContextMap","identifiesControllerServiceBundle":{"group":"org.apache.nifi","artifact":"nifi-standard-services-api-nar","version":"1.4.0-SNAPSHOT"}}},"validationErrors":["'HTTP Context Map' validated against 'StandardHttpContextMap' is invalid because Controller Service StandardHttpContextMap[id=fbec5165-015a-1000-ef40-26bc04ec2b63] is disabled"],"referenceType":"Processor","activeThreadCount":0}}],"extensionMissing":false}},{"revision":{"version":0},"id":"f6aa99d0-0159-1000-d428-5edef0de643e","uri":"http://localhost:8080/nifi-api/controller-services/f6aa99d0-0159-1000-d428-5edef0de643e","permissions":{"canRead":true,"canWrite":true},"bulletins":[],"component":{"id":"f6aa99d0-0159-1000-d428-5edef0de643e","parentGroupId":"aa246331-015a-1000-fac3-b72f7046408b","name":"StandardHttpContextMap","type":"org.apache.nifi.http.StandardHttpContextMap","bundle":{"group":"org.apache.nifi","artifact":"nifi-http-context-map-nar","version":"1.4.0-SNAPSHOT"},"controllerServiceApis":[{"type":"org.apache.nifi.http.HttpContextMap","bundle":{"group":"org.apache.nifi","artifact":"nifi-standard-services-api-nar","version":"1.4.0-SNAPSHOT"}}],"comments":"","state":"DISABLED","persistsState":false,"restricted":false,"deprecated":false,"multipleVersionsAvailable":false,"properties":{"Maximum Outstanding Requests":"5000","Request Expiration":"1 min"},"descriptors":{"Maximum Outstanding Requests":{"name":"Maximum Outstanding Requests","displayName":"Maximum Outstanding Requests","description":"The maximum number of HTTP requests that can be outstanding at any one time. Any attempt to register an additional HTTP Request will cause an error","defaultValue":"5000","required":true,"sensitive":false,"dynamic":false,"supportsEl":false},"Request Expiration":{"name":"Request Expiration","displayName":"Request Expiration","description":"Specifies how long an HTTP Request should be left unanswered before being evicted from the cache and being responded to with a Service Unavailable status code","defaultValue":"1 min","required":true,"sensitive":false,"dynamic":false,"supportsEl":false}},"referencingComponents":[{"revision":{"version":0,"lastModifier":"anonymous"},"id":"f6a768c2-0159-1000-99a8-009ed9ec4783","permissions":{"canRead":true,"canWrite":true},"component":{"groupId":"fbec3833-015a-1000-ae7f-9ff2391f7f7b","id":"f6a768c2-0159-1000-99a8-009ed9ec4783","name":"HandleHttpResponse","type":"HandleHttpResponse","state":"STOPPED","properties":{"HTTP Status Code":"${invokehttp.status.code}","HTTP Context Map":"f6aa99d0-0159-1000-d428-5edef0de643e"},"descriptors":{"HTTP Status Code":{"name":"HTTP Status Code","displayName":"HTTP Status Code","description":"The HTTP Status Code to use when responding to the HTTP Request. See Section 10 of RFC 2616 for more information.","required":true,"sensitive":false,"dynamic":false,"supportsEl":true},"HTTP Context Map":{"name":"HTTP Context Map","displayName":"HTTP Context Map","description":"The HTTP Context Map Controller Service to use for caching the HTTP Request Information","allowableValues":[{"allowableValue":{"displayName":"StandardHttpContextMap","value":"f6aa99d0-0159-1000-d428-5edef0de643e"},"canRead":true},{"allowableValue":{"displayName":"StandardHttpContextMap","value":"fbec5165-015a-1000-ef40-26bc04ec2b63"},"canRead":true}],"required":true,"sensitive":false,"dynamic":false,"supportsEl":false,"identifiesControllerService":"org.apache.nifi.http.HttpContextMap","identifiesControllerServiceBundle":{"group":"org.apache.nifi","artifact":"nifi-standard-services-api-nar","version":"1.4.0-SNAPSHOT"}}},"validationErrors":["'HTTP Context Map' validated against 'StandardHttpContextMap' is invalid because Controller Service StandardHttpContextMap[id=f6aa99d0-0159-1000-d428-5edef0de643e] is disabled"],"referenceType":"Processor","activeThreadCount":0}},{"revision":{"version":0,"lastModifier":"anonymous"},"id":"f6badf53-0159-1000-33cb-6ded4fad66f9","permissions":{"canRead":true,"canWrite":true},"component":{"groupId":"fbec3833-015a-1000-ae7f-9ff2391f7f7b","id":"f6badf53-0159-1000-33cb-6ded4fad66f9","name":"HandleHttpResponse","type":"HandleHttpResponse","state":"STOPPED","properties":{"HTTP Status Code":"200","HTTP Context Map":"f6aa99d0-0159-1000-d428-5edef0de643e"},"descriptors":{"HTTP Status Code":{"name":"HTTP Status Code","displayName":"HTTP Status Code","description":"The HTTP Status Code to use when responding to the HTTP Request. See Section 10 of RFC 2616 for more information.","required":true,"sensitive":false,"dynamic":false,"supportsEl":true},"HTTP Context Map":{"name":"HTTP Context Map","displayName":"HTTP Context Map","description":"The HTTP Context Map Controller Service to use for caching the HTTP Request Information","allowableValues":[{"allowableValue":{"displayName":"StandardHttpContextMap","value":"f6aa99d0-0159-1000-d428-5edef0de643e"},"canRead":true},{"allowableValue":{"displayName":"StandardHttpContextMap","value":"fbec5165-015a-1000-ef40-26bc04ec2b63"},"canRead":true}],"required":true,"sensitive":false,"dynamic":false,"supportsEl":false,"identifiesControllerService":"org.apache.nifi.http.HttpContextMap","identifiesControllerServiceBundle":{"group":"org.apache.nifi","artifact":"nifi-standard-services-api-nar","version":"1.4.0-SNAPSHOT"}}},"validationErrors":["'HTTP Context Map' validated against 'StandardHttpContextMap' is invalid because Controller Service StandardHttpContextMap[id=f6aa99d0-0159-1000-d428-5edef0de643e] is disabled"],"referenceType":"Processor","activeThreadCount":0}},{"revision":{"version":0,"lastModifier":"anonymous"},"id":"f6a4d400-0159-1000-b6cd-91781ea84d73","permissions":{"canRead":true,"canWrite":true},"component":{"groupId":"fbec3833-015a-1000-ae7f-9ff2391f7f7b","id":"f6a4d400-0159-1000-b6cd-91781ea84d73","name":"HandleHttpRequest","type":"HandleHttpRequest","state":"STOPPED","properties":{"Listening Port":"9999","Hostname":"localhost","SSL Context Service":null,"HTTP Context Map":"f6aa99d0-0159-1000-d428-5edef0de643e","Allowed Paths":null,"Default URL Character Set":"UTF-8","Allow GET":"true","Allow POST":"true","Allow PUT":"true","Allow DELETE":"true","Allow HEAD":"false","Allow OPTIONS":"false","Additional HTTP Methods":null,"Client Authentication":"No Authentication","container-queue-size":"50"},"descriptors":{"Listening Port":{"name":"Listening Port","displayName":"Listening Port","description":"The Port to listen on for incoming HTTP requests","defaultValue":"80","required":true,"sensitive":false,"dynamic":false,"supportsEl":false},"Hostname":{"name":"Hostname","displayName":"Hostname","description":"The Hostname to bind to. If not specified, will bind to all hosts","required":false,"sensitive":false,"dynamic":false,"supportsEl":false},"SSL Context Service":{"name":"SSL Context Service","displayName":"SSL Context Service","description":"The SSL Context Service to use in order to secure the server. If specified, the server will accept only HTTPS requests; otherwise, the server will accept only HTTP requests","allowableValues":[],"required":false,"sensitive":false,"dynamic":false,"supportsEl":false,"identifiesControllerService":"org.apache.nifi.ssl.RestrictedSSLContextService","identifiesControllerServiceBundle":{"group":"org.apache.nifi","artifact":"nifi-standard-services-api-nar","version":"1.4.0-SNAPSHOT"}},"HTTP Context Map":{"name":"HTTP Context Map","displayName":"HTTP Context Map","description":"The HTTP Context Map Controller Service to use for caching the HTTP Request Information","allowableValues":[{"allowableValue":{"displayName":"StandardHttpContextMap","value":"f6aa99d0-0159-1000-d428-5edef0de643e"},"canRead":true},{"allowableValue":{"displayName":"StandardHttpContextMap","value":"fbec5165-015a-1000-ef40-26bc04ec2b63"},"canRead":true}],"required":true,"sensitive":false,"dynamic":false,"supportsEl":false,"identifiesControllerService":"org.apache.nifi.http.HttpContextMap","identifiesControllerServiceBundle":{"group":"org.apache.nifi","artifact":"nifi-standard-services-api-nar","version":"1.4.0-SNAPSHOT"}},"Allowed Paths":{"name":"Allowed Paths","displayName":"Allowed Paths","description":"A Regular Expression that specifies the valid HTTP Paths that are allowed in the incoming URL Requests. If this value is specified and the path of the HTTP Requests does not match this Regular Expression, the Processor will respond with a 404: NotFound","required":false,"sensitive":false,"dynamic":false,"supportsEl":false},"Default URL Character Set":{"name":"Default URL Character Set","displayName":"Default URL Character Set","description":"The character set to use for decoding URL parameters if the HTTP Request does not supply one","defaultValue":"UTF-8","required":true,"sensitive":false,"dynamic":false,"supportsEl":false},"Allow GET":{"name":"Allow GET","displayName":"Allow GET","description":"Allow HTTP GET Method","defaultValue":"true","allowableValues":[{"allowableValue":{"displayName":"true","value":"true"},"canRead":true},{"allowableValue":{"displayName":"false","value":"false"},"canRead":true}],"required":true,"sensitive":false,"dynamic":false,"supportsEl":false},"Allow POST":{"name":"Allow POST","displayName":"Allow POST","description":"Allow HTTP POST Method","defaultValue":"true","allowableValues":[{"allowableValue":{"displayName":"true","value":"true"},"canRead":true},{"allowableValue":{"displayName":"false","value":"false"},"canRead":true}],"required":true,"sensitive":false,"dynamic":false,"supportsEl":false},"Allow PUT":{"name":"Allow PUT","displayName":"Allow PUT","description":"Allow HTTP PUT Method","defaultValue":"true","allowableValues":[{"allowableValue":{"displayName":"true","value":"true"},"canRead":true},{"allowableValue":{"displayName":"false","value":"false"},"canRead":true}],"required":true,"sensitive":false,"dynamic":false,"supportsEl":false},"Allow DELETE":{"name":"Allow DELETE","displayName":"Allow DELETE","description":"Allow HTTP DELETE Method","defaultValue":"true","allowableValues":[{"allowableValue":{"displayName":"true","value":"true"},"canRead":true},{"allowableValue":{"displayName":"false","value":"false"},"canRead":true}],"required":true,"sensitive":false,"dynamic":false,"supportsEl":false},"Allow HEAD":{"name":"Allow HEAD","displayName":"Allow HEAD","description":"Allow HTTP HEAD Method","defaultValue":"false","allowableValues":[{"allowableValue":{"displayName":"true","value":"true"},"canRead":true},{"allowableValue":{"displayName":"false","value":"false"},"canRead":true}],"required":true,"sensitive":false,"dynamic":false,"supportsEl":false},"Allow OPTIONS":{"name":"Allow OPTIONS","displayName":"Allow OPTIONS","description":"Allow HTTP OPTIONS Method","defaultValue":"false","allowableValues":[{"allowableValue":{"displayName":"true","value":"true"},"canRead":true},{"allowableValue":{"displayName":"false","value":"false"},"canRead":true}],"required":true,"sensitive":false,"dynamic":false,"supportsEl":false},"Additional HTTP Methods":{"name":"Additional HTTP Methods","displayName":"Additional HTTP Methods","description":"A comma-separated list of non-standard HTTP Methods that should be allowed","required":false,"sensitive":false,"dynamic":false,"supportsEl":false},"Client Authentication":{"name":"Client Authentication","displayName":"Client Authentication","description":"Specifies whether or not the Processor should authenticate clients. This value is ignored if the <SSL Context Service> Property is not specified or the SSL Context provided uses only a KeyStore and not a TrustStore.","defaultValue":"No Authentication","allowableValues":[{"allowableValue":{"displayName":"No Authentication","value":"No Authentication","description":"Processor will not authenticate clients. Anyone can communicate with this Processor anonymously"},"canRead":true},{"allowableValue":{"displayName":"Want Authentication","value":"Want Authentication","description":"Processor will try to verify the client but if unable to verify will allow the client to communicate anonymously"},"canRead":true},{"allowableValue":{"displayName":"Need Authentication","value":"Need Authentication","description":"Processor will reject communications from any client unless the client provides a certificate that is trusted by the TrustStorespecified in the SSL Context Service"},"canRead":true}],"required":true,"sensitive":false,"dynamic":false,"supportsEl":false},"container-queue-size":{"name":"container-queue-size","displayName":"Container Queue Size","description":"The size of the queue for Http Request Containers","defaultValue":"50","required":true,"sensitive":false,"dynamic":false,"supportsEl":false}},"validationErrors":["'HTTP Context Map' validated against 'StandardHttpContextMap' is invalid because Controller Service StandardHttpContextMap[id=f6aa99d0-0159-1000-d428-5edef0de643e] is disabled"],"referenceType":"Processor","activeThreadCount":0}}],"extensionMissing":false}}]}
Created 09-19-2017 09:49 AM
Hi @Onkar Pathak,
Controller services are defined at process group level (except controller services used for reporting tasks). To get the list of controller services, you'd have to define on which process group you ant to perform the listing, then you can use the following endpoint: POST /process-groups/{id}/controller-services
Created 06-18-2019 12:24 PM
Hi @Pierre Villard ,
The GET request for /nifi-api/flow/process-groups/{id}/controller-services is returning all Controller Services, not only the ones for the Process Group {id}.
Do you mean I need to parse the returned JSON and look only for the ones with parentGroupId = {id} ?
Thanks in advance.
Created 09-19-2017 11:08 AM
Hi @Pierre Villard,
Thanks a lot for your response. The API you suggested POST /process-groups/{id}/controller-services is for POST (to create a controller service at process group level.) I want to GET all controller services at process-group level or at global level. I dont see any such API available in NiFi rest-api doc. Can you please suggest an API or any other method that will fulfill my use case?
Thanks in advance!
Created 09-19-2017 12:08 PM
You can use a GET for this. Example:
Response:
{"currentTime":"14:06:21 CEST","controllerServices":[{"revision":{"version":0},"id":"fbec5165-015a-1000-ef40-26bc04ec2b63","uri":"http://localhost:8080/nifi-api/controller-services/fbec5165-015a-1000-ef40-26bc04ec2b63","permissions":{"canRead":true,"canWrite":true},"bulletins":[],"component":{"id":"fbec5165-015a-1000-ef40-26bc04ec2b63","parentGroupId":"aa246331-015a-1000-fac3-b72f7046408b","name":"StandardHttpContextMap","type":"org.apache.nifi.http.StandardHttpContextMap","bundle":{"group":"org.apache.nifi","artifact":"nifi-http-context-map-nar","version":"1.4.0-SNAPSHOT"},"controllerServiceApis":[{"type":"org.apache.nifi.http.HttpContextMap","bundle":{"group":"org.apache.nifi","artifact":"nifi-standard-services-api-nar","version":"1.4.0-SNAPSHOT"}}],"comments":"","state":"DISABLED","persistsState":false,"restricted":false,"deprecated":false,"multipleVersionsAvailable":false,"properties":{"Maximum Outstanding Requests":"10000","Request Expiration":"1 min"},"descriptors":{"Maximum Outstanding Requests":{"name":"Maximum Outstanding Requests","displayName":"Maximum Outstanding Requests","description":"The maximum number of HTTP requests that can be outstanding at any one time. Any attempt to register an additional HTTP Request will cause an error","defaultValue":"5000","required":true,"sensitive":false,"dynamic":false,"supportsEl":false},"Request Expiration":{"name":"Request Expiration","displayName":"Request Expiration","description":"Specifies how long an HTTP Request should be left unanswered before being evicted from the cache and being responded to with a Service Unavailable status code","defaultValue":"1 min","required":true,"sensitive":false,"dynamic":false,"supportsEl":false}},"referencingComponents":[{"revision":{"version":0,"lastModifier":"anonymous"},"id":"fbec5167-015a-1000-998a-858ea9611244","permissions":{"canRead":true,"canWrite":true},"component":{"groupId":"fc7d4a17-015a-1000-7731-9659aaa9b098","id":"fbec5167-015a-1000-998a-858ea9611244","name":"HandleHttpRequest","type":"HandleHttpRequest","state":"STOPPED","properties":{"Listening Port":"9999","Hostname":"localhost","SSL Context Service":null,"HTTP Context Map":"fbec5165-015a-1000-ef40-26bc04ec2b63","Allowed Paths":null,"Default URL Character Set":"UTF-8","Allow GET":"true","Allow POST":"true","Allow PUT":"true","Allow DELETE":"true","Allow HEAD":"false","Allow OPTIONS":"false","Additional HTTP Methods":null,"Client Authentication":"No Authentication","container-queue-size":"50"},"descriptors":{"Listening Port":{"name":"Listening Port","displayName":"Listening Port","description":"The Port to listen on for incoming HTTP requests","defaultValue":"80","required":true,"sensitive":false,"dynamic":false,"supportsEl":false},"Hostname":{"name":"Hostname","displayName":"Hostname","description":"The Hostname to bind to. If not specified, will bind to all hosts","required":false,"sensitive":false,"dynamic":false,"supportsEl":false},"SSL Context Service":{"name":"SSL Context Service","displayName":"SSL Context Service","description":"The SSL Context Service to use in order to secure the server. If specified, the server will accept only HTTPS requests; otherwise, the server will accept only HTTP requests","allowableValues":[],"required":false,"sensitive":false,"dynamic":false,"supportsEl":false,"identifiesControllerService":"org.apache.nifi.ssl.RestrictedSSLContextService","identifiesControllerServiceBundle":{"group":"org.apache.nifi","artifact":"nifi-standard-services-api-nar","version":"1.4.0-SNAPSHOT"}},"HTTP Context Map":{"name":"HTTP Context Map","displayName":"HTTP Context Map","description":"The HTTP Context Map Controller Service to use for caching the HTTP Request Information","allowableValues":[{"allowableValue":{"displayName":"StandardHttpContextMap","value":"f6aa99d0-0159-1000-d428-5edef0de643e"},"canRead":true},{"allowableValue":{"displayName":"StandardHttpContextMap","value":"fbec5165-015a-1000-ef40-26bc04ec2b63"},"canRead":true},{"allowableValue":{"displayName":"StandardHttpContextMap","value":"fc7d8d0b-015a-1000-e0f4-d79e69229742"},"canRead":true}],"required":true,"sensitive":false,"dynamic":false,"supportsEl":false,"identifiesControllerService":"org.apache.nifi.http.HttpContextMap","identifiesControllerServiceBundle":{"group":"org.apache.nifi","artifact":"nifi-standard-services-api-nar","version":"1.4.0-SNAPSHOT"}},"Allowed Paths":{"name":"Allowed Paths","displayName":"Allowed Paths","description":"A Regular Expression that specifies the valid HTTP Paths that are allowed in the incoming URL Requests. If this value is specified and the path of the HTTP Requests does not match this Regular Expression, the Processor will respond with a 404: NotFound","required":false,"sensitive":false,"dynamic":false,"supportsEl":false},"Default URL Character Set":{"name":"Default URL Character Set","displayName":"Default URL Character Set","description":"The character set to use for decoding URL parameters if the HTTP Request does not supply one","defaultValue":"UTF-8","required":true,"sensitive":false,"dynamic":false,"supportsEl":false},"Allow GET":{"name":"Allow GET","displayName":"Allow GET","description":"Allow HTTP GET Method","defaultValue":"true","allowableValues":[{"allowableValue":{"displayName":"true","value":"true"},"canRead":true},{"allowableValue":{"displayName":"false","value":"false"},"canRead":true}],"required":true,"sensitive":false,"dynamic":false,"supportsEl":false},"Allow POST":{"name":"Allow POST","displayName":"Allow POST","description":"Allow HTTP POST Method","defaultValue":"true","allowableValues":[{"allowableValue":{"displayName":"true","value":"true"},"canRead":true},{"allowableValue":{"displayName":"false","value":"false"},"canRead":true}],"required":true,"sensitive":false,"dynamic":false,"supportsEl":false},"Allow PUT":{"name":"Allow PUT","displayName":"Allow PUT","description":"Allow HTTP PUT Method","defaultValue":"true","allowableValues":[{"allowableValue":{"displayName":"true","value":"true"},"canRead":true},{"allowableValue":{"displayName":"false","value":"false"},"canRead":true}],"required":true,"sensitive":false,"dynamic":false,"supportsEl":false},"Allow DELETE":{"name":"Allow DELETE","displayName":"Allow DELETE","description":"Allow HTTP DELETE Method","defaultValue":"true","allowableValues":[{"allowableValue":{"displayName":"true","value":"true"},"canRead":true},{"allowableValue":{"displayName":"false","value":"false"},"canRead":true}],"required":true,"sensitive":false,"dynamic":false,"supportsEl":false},"Allow HEAD":{"name":"Allow HEAD","displayName":"Allow HEAD","description":"Allow HTTP HEAD Method","defaultValue":"false","allowableValues":[{"allowableValue":{"displayName":"true","value":"true"},"canRead":true},{"allowableValue":{"displayName":"false","value":"false"},"canRead":true}],"required":true,"sensitive":false,"dynamic":false,"supportsEl":false},"Allow OPTIONS":{"name":"Allow OPTIONS","displayName":"Allow OPTIONS","description":"Allow HTTP OPTIONS Method","defaultValue":"false","allowableValues":[{"allowableValue":{"displayName":"true","value":"true"},"canRead":true},{"allowableValue":{"displayName":"false","value":"false"},"canRead":true}],"required":true,"sensitive":false,"dynamic":false,"supportsEl":false},"Additional HTTP Methods":{"name":"Additional HTTP Methods","displayName":"Additional HTTP Methods","description":"A comma-separated list of non-standard HTTP Methods that should be allowed","required":false,"sensitive":false,"dynamic":false,"supportsEl":false},"Client Authentication":{"name":"Client Authentication","displayName":"Client Authentication","description":"Specifies whether or not the Processor should authenticate clients. This value is ignored if the <SSL Context Service> Property is not specified or the SSL Context provided uses only a KeyStore and not a TrustStore.","defaultValue":"No Authentication","allowableValues":[{"allowableValue":{"displayName":"No Authentication","value":"No Authentication","description":"Processor will not authenticate clients. Anyone can communicate with this Processor anonymously"},"canRead":true},{"allowableValue":{"displayName":"Want Authentication","value":"Want Authentication","description":"Processor will try to verify the client but if unable to verify will allow the client to communicate anonymously"},"canRead":true},{"allowableValue":{"displayName":"Need Authentication","value":"Need Authentication","description":"Processor will reject communications from any client unless the client provides a certificate that is trusted by the TrustStorespecified in the SSL Context Service"},"canRead":true}],"required":true,"sensitive":false,"dynamic":false,"supportsEl":false},"container-queue-size":{"name":"container-queue-size","displayName":"Container Queue Size","description":"The size of the queue for Http Request Containers","defaultValue":"50","required":true,"sensitive":false,"dynamic":false,"supportsEl":false}},"validationErrors":["'HTTP Context Map' validated against 'StandardHttpContextMap' is invalid because Controller Service StandardHttpContextMap[id=fbec5165-015a-1000-ef40-26bc04ec2b63] is disabled"],"referenceType":"Processor","activeThreadCount":0}},{"revision":{"version":0,"lastModifier":"anonymous"},"id":"fbec516d-015a-1000-3273-3d36a22c0501","permissions":{"canRead":true,"canWrite":true},"component":{"groupId":"fc7d4a17-015a-1000-7731-9659aaa9b098","id":"fbec516d-015a-1000-3273-3d36a22c0501","name":"HandleHttpResponse","type":"HandleHttpResponse","state":"STOPPED","properties":{"HTTP Status Code":"${invokehttp.status.code:replaceNull('200')}","HTTP Context Map":"fbec5165-015a-1000-ef40-26bc04ec2b63"},"descriptors":{"HTTP Status Code":{"name":"HTTP Status Code","displayName":"HTTP Status Code","description":"The HTTP Status Code to use when responding to the HTTP Request. See Section 10 of RFC 2616 for more information.","required":true,"sensitive":false,"dynamic":false,"supportsEl":true},"HTTP Context Map":{"name":"HTTP Context Map","displayName":"HTTP Context Map","description":"The HTTP Context Map Controller Service to use for caching the HTTP Request Information","allowableValues":[{"allowableValue":{"displayName":"StandardHttpContextMap","value":"f6aa99d0-0159-1000-d428-5edef0de643e"},"canRead":true},{"allowableValue":{"displayName":"StandardHttpContextMap","value":"fbec5165-015a-1000-ef40-26bc04ec2b63"},"canRead":true},{"allowableValue":{"displayName":"StandardHttpContextMap","value":"fc7d8d0b-015a-1000-e0f4-d79e69229742"},"canRead":true}],"required":true,"sensitive":false,"dynamic":false,"supportsEl":false,"identifiesControllerService":"org.apache.nifi.http.HttpContextMap","identifiesControllerServiceBundle":{"group":"org.apache.nifi","artifact":"nifi-standard-services-api-nar","version":"1.4.0-SNAPSHOT"}}},"validationErrors":["'HTTP Context Map' validated against 'StandardHttpContextMap' is invalid because Controller Service StandardHttpContextMap[id=fbec5165-015a-1000-ef40-26bc04ec2b63] is disabled"],"referenceType":"Processor","activeThreadCount":0}},{"revision":{"version":0,"lastModifier":"anonymous"},"id":"fc7c07df-015a-1000-31cb-383c9f986aa6","permissions":{"canRead":true,"canWrite":true},"component":{"groupId":"fc7d4a17-015a-1000-7731-9659aaa9b098","id":"fc7c07df-015a-1000-31cb-383c9f986aa6","name":"HandleHttpResponse","type":"HandleHttpResponse","state":"STOPPED","properties":{"HTTP Status Code":"200","HTTP Context Map":"fbec5165-015a-1000-ef40-26bc04ec2b63"},"descriptors":{"HTTP Status Code":{"name":"HTTP Status Code","displayName":"HTTP Status Code","description":"The HTTP Status Code to use when responding to the HTTP Request. See Section 10 of RFC 2616 for more information.","required":true,"sensitive":false,"dynamic":false,"supportsEl":true},"HTTP Context Map":{"name":"HTTP Context Map","displayName":"HTTP Context Map","description":"The HTTP Context Map Controller Service to use for caching the HTTP Request Information","allowableValues":[{"allowableValue":{"displayName":"StandardHttpContextMap","value":"f6aa99d0-0159-1000-d428-5edef0de643e"},"canRead":true},{"allowableValue":{"displayName":"StandardHttpContextMap","value":"fbec5165-015a-1000-ef40-26bc04ec2b63"},"canRead":true},{"allowableValue":{"displayName":"StandardHttpContextMap","value":"fc7d8d0b-015a-1000-e0f4-d79e69229742"},"canRead":true}],"required":true,"sensitive":false,"dynamic":false,"supportsEl":false,"identifiesControllerService":"org.apache.nifi.http.HttpContextMap","identifiesControllerServiceBundle":{"group":"org.apache.nifi","artifact":"nifi-standard-services-api-nar","version":"1.4.0-SNAPSHOT"}}},"validationErrors":["'HTTP Context Map' validated against 'StandardHttpContextMap' is invalid because Controller Service StandardHttpContextMap[id=fbec5165-015a-1000-ef40-26bc04ec2b63] is disabled"],"referenceType":"Processor","activeThreadCount":0}}],"extensionMissing":false}},{"revision":{"version":0},"id":"f6aa99d0-0159-1000-d428-5edef0de643e","uri":"http://localhost:8080/nifi-api/controller-services/f6aa99d0-0159-1000-d428-5edef0de643e","permissions":{"canRead":true,"canWrite":true},"bulletins":[],"component":{"id":"f6aa99d0-0159-1000-d428-5edef0de643e","parentGroupId":"aa246331-015a-1000-fac3-b72f7046408b","name":"StandardHttpContextMap","type":"org.apache.nifi.http.StandardHttpContextMap","bundle":{"group":"org.apache.nifi","artifact":"nifi-http-context-map-nar","version":"1.4.0-SNAPSHOT"},"controllerServiceApis":[{"type":"org.apache.nifi.http.HttpContextMap","bundle":{"group":"org.apache.nifi","artifact":"nifi-standard-services-api-nar","version":"1.4.0-SNAPSHOT"}}],"comments":"","state":"DISABLED","persistsState":false,"restricted":false,"deprecated":false,"multipleVersionsAvailable":false,"properties":{"Maximum Outstanding Requests":"5000","Request Expiration":"1 min"},"descriptors":{"Maximum Outstanding Requests":{"name":"Maximum Outstanding Requests","displayName":"Maximum Outstanding Requests","description":"The maximum number of HTTP requests that can be outstanding at any one time. Any attempt to register an additional HTTP Request will cause an error","defaultValue":"5000","required":true,"sensitive":false,"dynamic":false,"supportsEl":false},"Request Expiration":{"name":"Request Expiration","displayName":"Request Expiration","description":"Specifies how long an HTTP Request should be left unanswered before being evicted from the cache and being responded to with a Service Unavailable status code","defaultValue":"1 min","required":true,"sensitive":false,"dynamic":false,"supportsEl":false}},"referencingComponents":[{"revision":{"version":0,"lastModifier":"anonymous"},"id":"f6a768c2-0159-1000-99a8-009ed9ec4783","permissions":{"canRead":true,"canWrite":true},"component":{"groupId":"fbec3833-015a-1000-ae7f-9ff2391f7f7b","id":"f6a768c2-0159-1000-99a8-009ed9ec4783","name":"HandleHttpResponse","type":"HandleHttpResponse","state":"STOPPED","properties":{"HTTP Status Code":"${invokehttp.status.code}","HTTP Context Map":"f6aa99d0-0159-1000-d428-5edef0de643e"},"descriptors":{"HTTP Status Code":{"name":"HTTP Status Code","displayName":"HTTP Status Code","description":"The HTTP Status Code to use when responding to the HTTP Request. See Section 10 of RFC 2616 for more information.","required":true,"sensitive":false,"dynamic":false,"supportsEl":true},"HTTP Context Map":{"name":"HTTP Context Map","displayName":"HTTP Context Map","description":"The HTTP Context Map Controller Service to use for caching the HTTP Request Information","allowableValues":[{"allowableValue":{"displayName":"StandardHttpContextMap","value":"f6aa99d0-0159-1000-d428-5edef0de643e"},"canRead":true},{"allowableValue":{"displayName":"StandardHttpContextMap","value":"fbec5165-015a-1000-ef40-26bc04ec2b63"},"canRead":true}],"required":true,"sensitive":false,"dynamic":false,"supportsEl":false,"identifiesControllerService":"org.apache.nifi.http.HttpContextMap","identifiesControllerServiceBundle":{"group":"org.apache.nifi","artifact":"nifi-standard-services-api-nar","version":"1.4.0-SNAPSHOT"}}},"validationErrors":["'HTTP Context Map' validated against 'StandardHttpContextMap' is invalid because Controller Service StandardHttpContextMap[id=f6aa99d0-0159-1000-d428-5edef0de643e] is disabled"],"referenceType":"Processor","activeThreadCount":0}},{"revision":{"version":0,"lastModifier":"anonymous"},"id":"f6badf53-0159-1000-33cb-6ded4fad66f9","permissions":{"canRead":true,"canWrite":true},"component":{"groupId":"fbec3833-015a-1000-ae7f-9ff2391f7f7b","id":"f6badf53-0159-1000-33cb-6ded4fad66f9","name":"HandleHttpResponse","type":"HandleHttpResponse","state":"STOPPED","properties":{"HTTP Status Code":"200","HTTP Context Map":"f6aa99d0-0159-1000-d428-5edef0de643e"},"descriptors":{"HTTP Status Code":{"name":"HTTP Status Code","displayName":"HTTP Status Code","description":"The HTTP Status Code to use when responding to the HTTP Request. See Section 10 of RFC 2616 for more information.","required":true,"sensitive":false,"dynamic":false,"supportsEl":true},"HTTP Context Map":{"name":"HTTP Context Map","displayName":"HTTP Context Map","description":"The HTTP Context Map Controller Service to use for caching the HTTP Request Information","allowableValues":[{"allowableValue":{"displayName":"StandardHttpContextMap","value":"f6aa99d0-0159-1000-d428-5edef0de643e"},"canRead":true},{"allowableValue":{"displayName":"StandardHttpContextMap","value":"fbec5165-015a-1000-ef40-26bc04ec2b63"},"canRead":true}],"required":true,"sensitive":false,"dynamic":false,"supportsEl":false,"identifiesControllerService":"org.apache.nifi.http.HttpContextMap","identifiesControllerServiceBundle":{"group":"org.apache.nifi","artifact":"nifi-standard-services-api-nar","version":"1.4.0-SNAPSHOT"}}},"validationErrors":["'HTTP Context Map' validated against 'StandardHttpContextMap' is invalid because Controller Service StandardHttpContextMap[id=f6aa99d0-0159-1000-d428-5edef0de643e] is disabled"],"referenceType":"Processor","activeThreadCount":0}},{"revision":{"version":0,"lastModifier":"anonymous"},"id":"f6a4d400-0159-1000-b6cd-91781ea84d73","permissions":{"canRead":true,"canWrite":true},"component":{"groupId":"fbec3833-015a-1000-ae7f-9ff2391f7f7b","id":"f6a4d400-0159-1000-b6cd-91781ea84d73","name":"HandleHttpRequest","type":"HandleHttpRequest","state":"STOPPED","properties":{"Listening Port":"9999","Hostname":"localhost","SSL Context Service":null,"HTTP Context Map":"f6aa99d0-0159-1000-d428-5edef0de643e","Allowed Paths":null,"Default URL Character Set":"UTF-8","Allow GET":"true","Allow POST":"true","Allow PUT":"true","Allow DELETE":"true","Allow HEAD":"false","Allow OPTIONS":"false","Additional HTTP Methods":null,"Client Authentication":"No Authentication","container-queue-size":"50"},"descriptors":{"Listening Port":{"name":"Listening Port","displayName":"Listening Port","description":"The Port to listen on for incoming HTTP requests","defaultValue":"80","required":true,"sensitive":false,"dynamic":false,"supportsEl":false},"Hostname":{"name":"Hostname","displayName":"Hostname","description":"The Hostname to bind to. If not specified, will bind to all hosts","required":false,"sensitive":false,"dynamic":false,"supportsEl":false},"SSL Context Service":{"name":"SSL Context Service","displayName":"SSL Context Service","description":"The SSL Context Service to use in order to secure the server. If specified, the server will accept only HTTPS requests; otherwise, the server will accept only HTTP requests","allowableValues":[],"required":false,"sensitive":false,"dynamic":false,"supportsEl":false,"identifiesControllerService":"org.apache.nifi.ssl.RestrictedSSLContextService","identifiesControllerServiceBundle":{"group":"org.apache.nifi","artifact":"nifi-standard-services-api-nar","version":"1.4.0-SNAPSHOT"}},"HTTP Context Map":{"name":"HTTP Context Map","displayName":"HTTP Context Map","description":"The HTTP Context Map Controller Service to use for caching the HTTP Request Information","allowableValues":[{"allowableValue":{"displayName":"StandardHttpContextMap","value":"f6aa99d0-0159-1000-d428-5edef0de643e"},"canRead":true},{"allowableValue":{"displayName":"StandardHttpContextMap","value":"fbec5165-015a-1000-ef40-26bc04ec2b63"},"canRead":true}],"required":true,"sensitive":false,"dynamic":false,"supportsEl":false,"identifiesControllerService":"org.apache.nifi.http.HttpContextMap","identifiesControllerServiceBundle":{"group":"org.apache.nifi","artifact":"nifi-standard-services-api-nar","version":"1.4.0-SNAPSHOT"}},"Allowed Paths":{"name":"Allowed Paths","displayName":"Allowed Paths","description":"A Regular Expression that specifies the valid HTTP Paths that are allowed in the incoming URL Requests. If this value is specified and the path of the HTTP Requests does not match this Regular Expression, the Processor will respond with a 404: NotFound","required":false,"sensitive":false,"dynamic":false,"supportsEl":false},"Default URL Character Set":{"name":"Default URL Character Set","displayName":"Default URL Character Set","description":"The character set to use for decoding URL parameters if the HTTP Request does not supply one","defaultValue":"UTF-8","required":true,"sensitive":false,"dynamic":false,"supportsEl":false},"Allow GET":{"name":"Allow GET","displayName":"Allow GET","description":"Allow HTTP GET Method","defaultValue":"true","allowableValues":[{"allowableValue":{"displayName":"true","value":"true"},"canRead":true},{"allowableValue":{"displayName":"false","value":"false"},"canRead":true}],"required":true,"sensitive":false,"dynamic":false,"supportsEl":false},"Allow POST":{"name":"Allow POST","displayName":"Allow POST","description":"Allow HTTP POST Method","defaultValue":"true","allowableValues":[{"allowableValue":{"displayName":"true","value":"true"},"canRead":true},{"allowableValue":{"displayName":"false","value":"false"},"canRead":true}],"required":true,"sensitive":false,"dynamic":false,"supportsEl":false},"Allow PUT":{"name":"Allow PUT","displayName":"Allow PUT","description":"Allow HTTP PUT Method","defaultValue":"true","allowableValues":[{"allowableValue":{"displayName":"true","value":"true"},"canRead":true},{"allowableValue":{"displayName":"false","value":"false"},"canRead":true}],"required":true,"sensitive":false,"dynamic":false,"supportsEl":false},"Allow DELETE":{"name":"Allow DELETE","displayName":"Allow DELETE","description":"Allow HTTP DELETE Method","defaultValue":"true","allowableValues":[{"allowableValue":{"displayName":"true","value":"true"},"canRead":true},{"allowableValue":{"displayName":"false","value":"false"},"canRead":true}],"required":true,"sensitive":false,"dynamic":false,"supportsEl":false},"Allow HEAD":{"name":"Allow HEAD","displayName":"Allow HEAD","description":"Allow HTTP HEAD Method","defaultValue":"false","allowableValues":[{"allowableValue":{"displayName":"true","value":"true"},"canRead":true},{"allowableValue":{"displayName":"false","value":"false"},"canRead":true}],"required":true,"sensitive":false,"dynamic":false,"supportsEl":false},"Allow OPTIONS":{"name":"Allow OPTIONS","displayName":"Allow OPTIONS","description":"Allow HTTP OPTIONS Method","defaultValue":"false","allowableValues":[{"allowableValue":{"displayName":"true","value":"true"},"canRead":true},{"allowableValue":{"displayName":"false","value":"false"},"canRead":true}],"required":true,"sensitive":false,"dynamic":false,"supportsEl":false},"Additional HTTP Methods":{"name":"Additional HTTP Methods","displayName":"Additional HTTP Methods","description":"A comma-separated list of non-standard HTTP Methods that should be allowed","required":false,"sensitive":false,"dynamic":false,"supportsEl":false},"Client Authentication":{"name":"Client Authentication","displayName":"Client Authentication","description":"Specifies whether or not the Processor should authenticate clients. This value is ignored if the <SSL Context Service> Property is not specified or the SSL Context provided uses only a KeyStore and not a TrustStore.","defaultValue":"No Authentication","allowableValues":[{"allowableValue":{"displayName":"No Authentication","value":"No Authentication","description":"Processor will not authenticate clients. Anyone can communicate with this Processor anonymously"},"canRead":true},{"allowableValue":{"displayName":"Want Authentication","value":"Want Authentication","description":"Processor will try to verify the client but if unable to verify will allow the client to communicate anonymously"},"canRead":true},{"allowableValue":{"displayName":"Need Authentication","value":"Need Authentication","description":"Processor will reject communications from any client unless the client provides a certificate that is trusted by the TrustStorespecified in the SSL Context Service"},"canRead":true}],"required":true,"sensitive":false,"dynamic":false,"supportsEl":false},"container-queue-size":{"name":"container-queue-size","displayName":"Container Queue Size","description":"The size of the queue for Http Request Containers","defaultValue":"50","required":true,"sensitive":false,"dynamic":false,"supportsEl":false}},"validationErrors":["'HTTP Context Map' validated against 'StandardHttpContextMap' is invalid because Controller Service StandardHttpContextMap[id=f6aa99d0-0159-1000-d428-5edef0de643e] is disabled"],"referenceType":"Processor","activeThreadCount":0}}],"extensionMissing":false}}]}
Created 09-21-2017 03:05 PM
Hi @Pierre Villard,
Thanks a lot for your response. The API you suggested is working as expected.
Thanks for your help.
Created 12-21-2017 05:57 AM
@Onkar Pathak Hey Onkar, if you are still looking for API to get controller services for given process group then its,
GET /flow/process-groups/{id}/controller-services