You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add v3 organization quotas and service keys APIs #1168
Hi guys,
I am upgrading java client API from v2 to v3. I am using cloudfoundry-client-5.9.0.RELEASE.jar lib. But I found some functions missing in V3 version, but available in V2. I am not sure if it's my mistake or v3 lib is not complete. Such as:
Get organization quotas.
I can't find an API to get organization quotas, such as memory and instance limit. But v2 API provide
organizationQuotaDefinitions interface.
Service Key operations.
How to create, delete or get a service key by V3 API?
If V3 is not providing the API, so we have to use V2 for them?
It's very appreciative if anyone could help answer the questions.
You are correct in that not all functionality is available in the cf-java-client v3 implementation. There are also changes in the v2 API to v3 API, so it's possible that how you access the information you want has also changed. If you tell me which API endpoint you're trying to access, I can tell you if we've implemented it or not.
If the API you require isn't implemented yet, there are two choices. 1.) Implement it and send a PR, we'll happily review & incorporate PRs. 2.) Drop back and use the v2 API. As a note, the v2 API is deprecated but no timeline has been set for it's removal which means it is still fairly safe to use.
You are correct in that not all functionality is available in the cf-java-client v3 implementation. There are also changes in the v2 API to v3 API, so it's possible that how you access the information you want has also changed. If you tell me which API endpoint you're trying to access, I can tell you if we've implemented it or not.
If the API you require isn't implemented yet, there are two choices. 1.) Implement it and send a PR, we'll happily review & incorporate PRs. 2.) Drop back and use the v2 API. As a note, the v2 API is deprecated but no timeline has been set for it's removal which means it is still fairly safe to use.
Hope that helps!
Hi,
much thanks for the reply. Just as I mentioned, org quota API is not found from cf-java-client v3 implementation. But from doc, it's available from here: https://v3-apidocs.cloudfoundry.org/version/3.126.0/index.html#organization-quotas.
serviceKeys related API seems only available in v2 like cloudFoundryClient.serviceKeys(). So Should we still use v2 version for this API? At the same time, we will use the new v3 API for some other API as follow:
cloudFoundryClient.applicationsV3()
cloudFoundryClient.serviceInstancesV3()
So v2 and v3 API can be used together?
Confirmed. Those are not in the client presently. We would welcome a contribution if you'd like to submit a PR. We can leave this issue open as a tracker for adding this functionality.
So v2 and v3 API can be used together?
Until they are added, yes. You just mix and match.
Activity
dmikusa commentedon Oct 19, 2022
You are correct in that not all functionality is available in the cf-java-client v3 implementation. There are also changes in the v2 API to v3 API, so it's possible that how you access the information you want has also changed. If you tell me which API endpoint you're trying to access, I can tell you if we've implemented it or not.
If the API you require isn't implemented yet, there are two choices. 1.) Implement it and send a PR, we'll happily review & incorporate PRs. 2.) Drop back and use the v2 API. As a note, the v2 API is deprecated but no timeline has been set for it's removal which means it is still fairly safe to use.
Hope that helps!
lxdv163 commentedon Oct 20, 2022
Hi,
much thanks for the reply. Just as I mentioned, org quota API is not found from cf-java-client v3 implementation. But from doc, it's available from here: https://v3-apidocs.cloudfoundry.org/version/3.126.0/index.html#organization-quotas.
serviceKeys related API seems only available in v2 like cloudFoundryClient.serviceKeys(). So Should we still use v2 version for this API? At the same time, we will use the new v3 API for some other API as follow:
cloudFoundryClient.applicationsV3()
cloudFoundryClient.serviceInstancesV3()
So v2 and v3 API can be used together?
dmikusa commentedon Oct 20, 2022
Confirmed. Those are not in the client presently. We would welcome a contribution if you'd like to submit a PR. We can leave this issue open as a tracker for adding this functionality.
Until they are added, yes. You just mix and match.
[-]cloudfoundry-client-5.9 V3 API issues[/-][+]Add v3 organization quotas and service keys APIs[/+]lxdv163 commentedon Nov 3, 2022
service key API is implemented by service binding, but service route binding API is missing in V3 version.
gberche-orange commentedon Nov 10, 2025
service route binding API is still missing in V3 version as of v5.14.0.RELEASE
cf-java-client/cloudfoundry-client/src/main/java/org/cloudfoundry/client/v3/servicebindings/ServiceBindingType.java
Lines 24 to 34 in eb80787