获取服务名称和配置 ID
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
本页面介绍如何获取服务的名称及其配置 ID。
Google Cloud 控制台
- 在 Google Cloud 控制台中,转到项目的 Endpoint > 服务页面。
转到“Endpoints 服务”页面
- 如果您有多个 API,请从列表中选择一个 API。
- 点击部署历史记录标签。
服务名称显示在 API 名称和标签之间,靠近页面的左上角。服务配置部署列表中会显示配置 ID、日期以及部署该配置的主账号的电子邮件地址。服务配置部署列表显示最新的 100 个配置部署。最新配置显示在列表顶部。
gcloud
- 输入以下命令,以显示 Google Cloud 项目的 ID:
gcloud projects list
- 使用上一步中相应的项目 ID,将默认项目设置为您的 API 所属的项目:
gcloud config set project YOUR_PROJECT_ID
- 获取项目中的服务列表:
gcloud endpoints services list
- 使用上一步中相应的服务名称,获取服务的配置 ID 列表:
gcloud endpoints configs list --service=YOUR_SERVICE_NAME
如需详细了解上述命令,请参阅 gcloud
参考。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2022-02-17。
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]