确定 API 符合上述要求后,请将 API 添加为类型提供程序资源。您必须提供 API 描述符文档,还可以选择性地通过高级选项提供任何其他 API 选项。添加 API 作为类型提供程序会将该 API 的所有资源公开给 Deployment Manager,并允许用户使用 Deployment Manager 创建、更新或删除这些资源。
如果您的 API 具有不易识别的细微 API 模式,您还需要向 Deployment Manager 提供输入映射,以便它正确处理 API 请求。如需了解相关信息,请阅读高级 API 选项。
在配置文件中调用类型提供程序
将 API 注册到 Deployment Manager 后,您可以将该 API 资源作为配置中的类型进行调用,以便创建 API 资源。
例如,如果您将类型提供程序命名为 example-directory-api 并且要创建名为 person 的 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-03-24。"],[[["This guide provides an overview of integrating third-party APIs with Deployment Manager, enabling users to deploy resources from those APIs as types in their configurations."],["Deployment Manager requires that integrated APIs be RESTful, have resolvable parameters, and provide an accessible descriptor document, among other requirements."],["To integrate an API, users must add it as a Type Provider, supplying a descriptor document and any necessary advanced options to handle complex API behaviors."],["Once registered as a Type Provider, an API's resources can be called as types within Deployment Manager configuration files, similar to calling Google API resources."],["This feature is currently in Beta, meaning it is subject to the Pre-GA Offerings Terms and has the possibility of having limited support."]]],[]]