json - 执行 cf events 时,每页结果不起作用

标签 json cloud-foundry

我想搜索cloud foundry cf事件并在每个页面中设置更多事件,例如:

cf curl /v2/events?order-direction=asc&page=2&q=type:audit.service_binding.create&results-per-page=**100**

但它也报告:

root@boshcli:~/bin# cf curl /v2/events?order-direction=asc&page=2&q=type:audit.service_binding.create&results-per-page=50
[1] 12215
[2] 12216
[3] 12217
**results-per-page=50: command not found**
[2]-  Done                    page=2
[3]+  Done                    q=type:audit.service_binding.create

所以我每页只能使用 50 个。

有谁知道为什么吗?

非常感谢! :)

最佳答案

由于您没有将 URL 包含在引号中或转义 & 符号,因此您的 shell 会解释这些符号并将查询参数作为单独的命令执行。
尝试: cf curl "/v2/events?order-direction=asc&page=2&q=type:audit.service_binding.create&results-per-page=50"

关于json - 执行 cf events 时,每页结果不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41254144/

相关文章:

javascript - 如何用javascript删除整个对象?

Go worker 应用程序未在 Cloud Foundry 中启动

mongodb - mongodb 备份是自动生成的吗?

json - jq:根据对象值条件递归删除对象的最简单方法

linux - 我们可以限制PCF上运行的容器的CPU资源吗?

node.js - 在 Bluemix 中构建 Node.js 应用程序时如何覆盖 node_modules 的默认缓存?

java - 微服务 - stub /模拟

c# - 如何让对象支持反序列化?

PHP mysql结果json_encode返回键和索引号

java - 为什么 break 不结束 while 循环?