Closed sraghuramanit closed 3 years ago
Hi,
I got the solution,
get_DistributedMapCacheClientService = canvas.get_controller("give controller service name", identifier_type='name') .component.id
get_DistributedMapCacheClientServicerevision = canvas.get_controller("give controller service name", identifier_type='name') .revision
canvas.update_controller(controller=nifi.ControllerServiceEntity(revision=get_DistributedMapCacheClientServicerevision, id=get_DistributedMapCacheClientService), update=nifi.ControllerServiceDTO(properties={"Server Hostname":"localhost"}))
Thanks, Raghuraman S
Description
Unable to update the controller service property...
What I Did
canvas.update_controller(controller=nifi.ControllerServiceEntity(id=get_DistributedMapCacheClientService), update=nifi.ControllerServiceDTO(properties={"Server Hostname": "localhost"}))
Getting the below error
File "C:\ProgramData\Anaconda3\lib\site-packages\nipyapi\nifi\rest.py", line 224, in request raise ApiException(http_resp=r)
ApiException: (400) Reason: Bad Request HTTP response headers: HTTPHeaderDict({'Date': 'Mon, 07 Dec 2020 06:29:37 GMT', 'X-Frame-Options': 'SAMEORIGIN', 'Content-Security-Policy': "frame-ancestors 'self'", 'X-XSS-Protection': '1; mode=block', 'Content-Type': 'text/plain', 'Vary': 'Accept-Encoding', 'Content-Length': '27', 'Server': 'Jetty(9.4.19.v20190610)'}) HTTP response body: Revision must be specified.