You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@trafficserver.apache.org by GitBox <gi...@apache.org> on 2022/03/01 11:42:07 UTC

[GitHub] [trafficserver] brbzull0 commented on pull request #8695: traffic_ctl - Add rpc invoke option.

brbzull0 commented on pull request #8695:
URL: https://github.com/apache/trafficserver/pull/8695#issuecomment-1055340036


   > Seems it would be nice to have a `--json` option where I can pass in the JSON literally.
   
   @SolidWallOfCode You can, the `--params` will handle that, internally it will use the YAML parser, so you can pass `json` or `yaml`:
   ```
   traffic_ctl rpc invoke read_files_method --params '{ "filenames": [  "file1", "file2" ] }'
   ```
   or
   ```
   traffic_ctl rpc invoke read_files_method --params 'filenames: ["file1", "file2"]'
   ```
   thanks for the review


-- 
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: github-unsubscribe@trafficserver.apache.org

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