Skip to content

Plugin uses deprecated v2 api #7

Description

@carlonnheim

Hi,

I am not able to get the plugin to use the v3 api. The v2 api is since a while back rate-limited on SAP BTP to move usage away from it. I have installed the most recent cf-cli and plugin.

cf de myapp -v | grep GET gives this output when it is not hitting the rate limit (so it seems to be the usage of the plugin framework itself that visits the v2 api, not the explicitly formed url to fetch the environment)

GET /v2/spaces/<space-guid>/apps?q=name%3A<myapp>&inline-relations-depth=1 HTTP/1.1
GET /v2/apps/<app-guid>/summary HTTP/1.1
GET /v2/apps/<app-guid>/instances HTTP/1.1
GET /v2/apps/<app-guid>/stats HTTP/1.1
GET /v2/stacks/<app-guid> HTTP/1.1
GET /v3/apps/<app-guid>/env HTTP/1.1

Can this be addressed (or if I am doing something wrong please clarify what I need to do to make it switch to v2)? The rate limit on SAP BTP is now down to 50, so it is barely possible to work with the v2 API anymore.

Thanks in advance!
//Carl

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions