cf-java-client
cf-java-client copied to clipboard
API for adding ports to PCF app
Hi,
I would like to know if there is any API for adding new ports to an app. The curl command for this is as below- cf8 curl /v2/apps/01fd1030-e03a-469c-b4ef-5f8e25cb8e6c -X PUT -d "{"ports": [8080,8082,8083,8084]}"
Is there an API available to perform the same operation? If yes, could you please share the details.
That is just a request to update your application. You would create an UpdateApplicationRequest and set the ports list. Then send your request.