如何找到用于制作Google数据存储区查询的我的'datasetID'? [英] How do I find my 'datasetID' for making google datastore queries?
问题描述
如何查找我的'datasetID'来进行Google数据存储查询?
这个网站应该告诉我如何查询我的Google数据存储: https://developers.google.com/datastore/docs/apis/v1beta2/
,它表示基本网址是: https: //www.googleapis.com/datastore/v1beta2/datasets
本教程指出要使用'datasetID',例如完整的网址可能是:
https:/ /www.googleapis.com/datastore/v1beta2/datasets/12345/lookup
但我不知道如何弄清楚我的'datasetID'
在google开发者控制台仪表板上,我看到:
-projectID
-projectName
和低于
的存储/云d ata store / Query /
我看到'实体''名称/ ID'
但它没有说'datasetID'
我尝试使用名称/ ID像:
然后我只是得到'未找到'的回应 数据集标识是您的Cloud项目的名称。有些难以找到,但从入门指南: 您有与Google Cloud Project ID相同的标识符。 my-test-app123 为了确保您不会遇到其他问题(如身份验证),我建议您测试这通过API资源管理器网站: How do I find my 'datasetID' for making google datastore queries? This site is supposed to tell me how to query my google datastore: https://developers.google.com/datastore/docs/apis/v1beta2/ and it says the base URL is: https://www.googleapis.com/datastore/v1beta2/datasets the tutorial says to use a 'datasetID', so for example a full URL could be: https://www.googleapis.com/datastore/v1beta2/datasets/12345/lookup But I don't know how to figure out what my 'datasetID' is. On the google developer console dashboard I see:
-projectID
-projectName and under
Storage/Cloud data store/Query/ I see 'Entities' 'Name/ID' but it doesn't say 'datasetID' I've tried using the Name/ID like: https://www.googleapis.com/datastore/v1beta2/datasets/5649323916754345244544/lookup Then I just get the response 'Not found' Your dataset id is the name of your Cloud project. Somewhat hard to find, but from the getting started guide: You have your (same identifier as your Google Cloud Project ID). So it will look something like: my-test-app123 In order to make sure you're not running into other problems (like authentication), I would recommend testing this through the API explorer site:
https://developers.google.com/apis-explorer/#p/datastore/v1beta2/datastore.datasets.lookup 这篇关于如何找到用于制作Google数据存储区查询的我的'datasetID'?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
https ://developers.google.com/apis-explorer/#p/datastore/v1beta2/datastore.datasets.lookup