Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API for adding ports to PCF app #1163

Open
AnuradhaBose opened this issue Aug 17, 2022 · 1 comment
Open

API for adding ports to PCF app #1163

AnuradhaBose opened this issue Aug 17, 2022 · 1 comment
Labels
question triaged Initial triage of issue has been performed

Comments

@AnuradhaBose
Copy link

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.

@dmikusa
Copy link
Contributor

dmikusa commented Aug 19, 2022

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

@dmikusa dmikusa added question triaged Initial triage of issue has been performed labels Aug 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question triaged Initial triage of issue has been performed
Projects
None yet
Development

No branches or pull requests

2 participants