Skip to content

V2 to V3 migration: Application custom startup command #1598

Open
@KhasDenis

Description

@KhasDenis

Issue

V2 to V3 migration: Application custom startup command

Context

In our client application we need to know whether cf application has been started with custom command or not. V2 API provided this information through different ways. One of them is curl -ik "https://[api.url]/v2/apps/[guid]" -X GET -H "Authorization: ..". Application Entity command field contains either custom command or null. This field does not exist in V3 and there is no other way to get this information.

Steps to Reproduce

cf push any-app -c "./custom-start.sh" -f manifest.yml

curl -ik "https://[api.url]/v2/apps/[guid]" -X GET -H "Authorization: .."
curl -ik "https://[api.url]/v3/apps/[guid]" -X GET -H "Authorization: .."

Expected result

Way to get custom command using purely V3 API.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions