简体   繁体   English

Google 数据流 api 返回空结果

[英]Google dataflow api is returning empty result

The below api is returning an empty dictionary.下面的 api 返回一个空字典。

curl \
  'https://dataflow.googleapis.com/v1b3/projects/[PROJECT_ID]/jobs?key=[YOUR_API_KEY]' \
  --header 'Authorization: Bearer [YOUR_ACCESS_TOKEN]' \
  --header 'Accept: application/json' \
  --compressed

Please throw some light on this.请对此有所了解。

Using projects.jobs.list is not recommended, as you can only get the list of jobs that are running in us-central1.不建议使用 projects.jobs.list,因为您只能获取在 us-central1 中运行的作业列表。 Do you have running jobs in us-central1?你在 us-central1 有运行作业吗? See the projects.jobs.list method documentation请参阅projects.jobs.list 方法文档

You could try this instead:你可以试试这个:

curl \
  'https://dataflow.googleapis.com/v1b3/projects/[PROJECT_ID]/jobs?view=JOB_VIEW_ALL&key=[YOUR_API_KEY]' \
  --header 'Authorization: Bearer [YOUR_ACCESS_TOKEN]' \
  --header 'Accept: application/json' \
  --compressed

JobView Reference 作业视图参考

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM