You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "pvillard31 (via GitHub)" <gi...@apache.org> on 2023/07/24 15:37:40 UTC

[GitHub] [nifi] pvillard31 commented on pull request #7520: NIFI-11850 - CLI - add keep existing parameter context flag

pvillard31 commented on PR #7520:
URL: https://github.com/apache/nifi/pull/7520#issuecomment-1648154971

   ````
   % ./cli.sh nifi pg-import -u http://127.0.0.1:8080/nifi-api --bucketIdentifier 74696945-f9c5-459e-8876-b5f6e5558ddd --flowIdentifier a3490366-66bd-4906-8245-4b040ce30e2d --flowVersion 1 -kepc 
   
   ERROR: Missing argument for option: kepc
   ````
   
   ````
    % ./cli.sh nifi pg-import -u http://127.0.0.1:8080/nifi-api --bucketIdentifier 74696945-f9c5-459e-8876-b5f6e5558ddd --flowIdentifier a3490366-66bd-4906-8245-4b040ce30e2d --flowVersion 1 -kepc e
   
   ERROR: Error executing command 'pg-import' : Keep Existing Parameter Context must be either true or false
   
   % ./cli.sh nifi pg-import -u http://127.0.0.1:8080/nifi-api --bucketIdentifier 74696945-f9c5-459e-8876-b5f6e5558ddd --flowIdentifier a3490366-66bd-4906-8245-4b040ce30e2d --flowVersion 1 -kepc TRUE
   
   ERROR: Error executing command 'pg-import' : Keep Existing Parameter Context must be either true or false
   ````
   
   ````
   % ./cli.sh nifi pg-import -u http://127.0.0.1:8080/nifi-api --bucketIdentifier 74696945-f9c5-459e-8876-b5f6e5558ddd --flowIdentifier a3490366-66bd-4906-8245-4b040ce30e2d --flowVersion 2 -kepc true
   887ad5c5-0189-1000-eb76-078a25eaa01d
   
   % ./cli.sh nifi pg-import -u http://127.0.0.1:8080/nifi-api --bucketIdentifier 74696945-f9c5-459e-8876-b5f6e5558ddd --flowIdentifier a3490366-66bd-4906-8245-4b040ce30e2d --flowVersion 2 -kepc false
   887c0514-0189-1000-cb82-5c702e5e94df
   
   % ./cli.sh nifi pg-get-param-context -u http://127.0.0.1:8080/nifi-api --processGroupId 887c0514-0189-1000-cb82-5c702e5e94df
   69496227-d744-3dfd-50c8-2dcd5d05c53c
   
   % ./cli.sh nifi list-param-contexts -u http://127.0.0.1:8080/nifi-api                                            
   
   #    Id                                     Name                                Inherited Param Contexts   Parameter Provider                     Description   
   --   ------------------------------------   ---------------------------------   ------------------------   ------------------------------------   -----------   
   ...
   9    8879dfc8-0189-1000-5c5e-9d94b6a3f2c1   Test CLI                                                                                                            
   10   da7a012e-8239-3cdc-af4d-a35df7a482ea   Test CLI (1)                                                                                          (empty)       
   11   69496227-d744-3dfd-50c8-2dcd5d05c53c   Test CLI (2)                                                                                          (empty)       
   ````


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@nifi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org