【问题标题】:GCP Deployment Manager third party resourcesGCP 部署管理器第三方资源
【发布时间】:2021-08-04 14:02:12
【问题描述】:

只是想确保我的理解是正确的。根据我的研究,Deployment Manager 可以与第三方 API 集成,尽管目前是 BETA 功能。

所以我的问题是,部署管理器能否自动化 Google 资源和外部资源(例如使用第三方 API 的本地资源)?

https://cloud.google.com/deployment-manager/docs/configuration/type-providers/creating-type-provider

https://cloud.google.com/deployment-manager/docs/configuration/type-providers/process-adding-api

【问题讨论】:

    标签: google-cloud-platform google-deployment-manager


    【解决方案1】:

    当然,但在您成功将第三方 API 注册为类型提供者(不由 Google 管理)之后。

    考虑:

    1. 您的 API 映射到 http 方法
    get htttp://onpremises.com/api/yourresource
    delete htttp://onpremises.com/api/yourresource
    put htttp://onpremises.com/api/yourresource
    post htttp://onpremises.com/api/yourresource
    
    1. API 的描述文件,类似this

    2. 你的 config.yaml

    resources:
    - name: my-api
      type: project/your-api:yourresource
      properties:
      - name: Jane
        website: onpremises.com/api
    

    这将导致部署管理器向您的 API 发出 http post 请求。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-01-29
      • 2015-11-20
      • 1970-01-01
      • 1970-01-01
      • 2017-05-31
      • 2020-06-25
      • 1970-01-01
      相关资源
      最近更新 更多