cf-java-client icon indicating copy to clipboard operation
cf-java-client copied to clipboard

API for adding ports to PCF app

Open AnuradhaBose opened this issue 3 years ago • 1 comments

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.

AnuradhaBose avatar Aug 17 '22 09:08 AnuradhaBose

That is just a request to update your application. You would create an UpdateApplicationRequest and set the ports list. Then send your request.

dmikusa avatar Aug 19 '22 01:08 dmikusa