Marketplace API 使用 Kubernetes 自定义资源,并依赖于 Kubernetes 资源模型。这些 API 用于通过安装、升级和卸载等操作在给定项目中配置和管理 Marketplace 服务。GDC Marketplace API 还用于查看可用版本、在项目中创建、修改或删除对象,以安装、升级或卸载服务实例。
服务端点和发现文档
以下网址是 Marketplace API 的 API 端点:
https://MANAGEMENT_API_SERVER_ENDPOINT/apis/marketplace.gdc.goog/v1
其中 MANAGEMENT_API_SERVER_ENDPOINT 是 Management API 服务器的端点。
使用 kubectl proxy 命令,您可以在浏览器中或使用 curl 等工具访问该网址,以获取 Marketplace API 的发现文档。
kubectl proxy 命令会在本地机器上打开一个指向 Kubernetes API 服务器的代理。命令运行期间,请访问以下网址中的文档:
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-07-16。"],[[["The Marketplace API utilizes Kubernetes custom resources and the Kubernetes Resource Model for managing Marketplace services."],["Actions like installing, upgrading, and uninstalling services within a project are facilitated through the Marketplace APIs."],["The API endpoint for the Marketplace APIs is located at `https://`\u003cvar translate=\"no\"\u003eMANAGEMENT_API_SERVER_ENDPOINT\u003c/var\u003e`/apis/marketplace.gdc.goog/v1`."],["The discovery document for the Marketplace API can be accessed via the `kubectl proxy` command."],["`kubectl create`, `kubectl apply`, `kubectl patch`, `kubectl edit`, and `kubectl delete` commands are used to manage service instances."]]],[]]