Upload/Update XSP 通过 Cloud Foundry 应用到 Bluemix API
Upload/Update XSP application to Bluemix through Cloud Foundry API
我正在使用 Cloud Foundry API 修改 IBM Bluemix 上的应用程序。
我获得了 oauth 密钥并成功调用了简单的 REST 请求,例如 v2/apps。
但是,因为我想更新 XSP 应用程序,所以我需要将 nsf 文件发送到 bluemix。
我尝试使用 /v2/apps/:guid 请求,但根据文档我只能发送应用程序参数,但我不能发送整个应用程序文件。
有端点吗?
还有一个 API 到 Upload the bits for an App, but if my understanding is correct what you are asking is basically to emulate a cf push via REST API. Please note that cf push is complex and is not something that is recommended recreating via API on Cloud Foundry. I don't know what your requirements are, but I'd suggest you to use cf push to do that. Anyway if you want more information on what are the steps it performs (from an high level perspective) you can take a look here. I suggest you also to see this Github Cloud Foundry 问题,用户试图以编程方式重新创建 cf push。
我正在使用 Cloud Foundry API 修改 IBM Bluemix 上的应用程序。 我获得了 oauth 密钥并成功调用了简单的 REST 请求,例如 v2/apps。 但是,因为我想更新 XSP 应用程序,所以我需要将 nsf 文件发送到 bluemix。
我尝试使用 /v2/apps/:guid 请求,但根据文档我只能发送应用程序参数,但我不能发送整个应用程序文件。
有端点吗?
还有一个 API 到 Upload the bits for an App, but if my understanding is correct what you are asking is basically to emulate a cf push via REST API. Please note that cf push is complex and is not something that is recommended recreating via API on Cloud Foundry. I don't know what your requirements are, but I'd suggest you to use cf push to do that. Anyway if you want more information on what are the steps it performs (from an high level perspective) you can take a look here. I suggest you also to see this Github Cloud Foundry 问题,用户试图以编程方式重新创建 cf push。