使用脚本预配 API Hub
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
本页面适用于 Apigee 和 Apigee Hybrid。
本文档介绍了如何使用脚本预配 API Hub。
步骤摘要
预配步骤如下:
- 验证您是否满足 API Hub 前提条件。
- 启用 API。
Apigee 要求您启用多个 Google Cloud API。
- 下载(或创建)脚本。
- 运行脚本。
- 等待 30 分钟完成预配。
预配步骤
如需使用脚本预配 API Hub,请执行以下操作:
- 下载脚本:
- 转到
provision-apihub.sh
。
- 右键点击原始,然后点击链接另存为。
- 点击保存。
运行脚本:
provision-apihub.sh -u USER_EMAIL -p PROJECT_ID -l RUNTIME_LOCATION -r KEY_RING_NAME -k KEY_NAME
其中:
- USER_EMAIL 是已启用结算功能的 Google Cloud 账号。
- PROJECT_ID 是 Google Cloud 项目。
- RUNTIME_LOCATION 是为实例选择的位置。
- KEY_RING_NAME 是 CMEK 密钥环名称。
- KEY_NAME 是 CMEK 密钥名称。
- 等待 30 分钟完成预配。
后续步骤
如需了解有关如何开始使用 API Hub 的一些提示,请参阅后续步骤。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-05-19。
[{
"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":"其他"
}]