CF client library


Noburou TANIGUCHI
 

Hi,

# I have posted this message once, but there does not appear the post, so I
repost this.
# If you find duplicated messages, please ignore the first one.

We're currently planning to write a Web dashboard for a Cloud Foundry
deployment.

Our old dashboard uses cfoundry
<https://github.com/cloudfoundry-attic/cfoundry> , but it is now outdated
and abandoned.

So I want to know how do other people create their Web dashboard for the
latest Cloud Foundry environment.

I think there are a few options right now:

(A) Use " cf <https://github.com/cloudfoundry/cli> curl" as an external
command
(B) Write a dashboard in Golang using cf cli
<https://github.com/cloudfoundry/cli> as a library
(C) Use cf cli <https://github.com/cloudfoundry/cli> RPC server like cli
plug-ins do
(D) Write a dashboard in Java on the top of cf-java-client
<https://github.com/cloudfoundry/cf-java-client> library

Please let me know which option you are using, or any other way to build a
dashboard, if you are able to disclose it.

Thanks in advance.




--
View this message in context: http://cf-dev.70369.x6.nabble.com/CF-client-library-tp712.html
Sent from the CF Dev mailing list archive at Nabble.com.


Gwenn Etourneau
 

humm,
Most simple is to call the Cloudcontroller API....
like we do here https://github.com/cloudfoundry-community/go-cfclient

On Tue, Jul 14, 2015 at 2:46 PM, nota-ja <dev(a)nota.m001.jp> wrote:

Hi,

# I have posted this message once, but there does not appear the post, so I
repost this.
# If you find duplicated messages, please ignore the first one.

We're currently planning to write a Web dashboard for a Cloud Foundry
deployment.

Our old dashboard uses cfoundry
<https://github.com/cloudfoundry-attic/cfoundry> , but it is now outdated
and abandoned.

So I want to know how do other people create their Web dashboard for the
latest Cloud Foundry environment.

I think there are a few options right now:

(A) Use " cf <https://github.com/cloudfoundry/cli> curl" as an external
command
(B) Write a dashboard in Golang using cf cli
<https://github.com/cloudfoundry/cli> as a library
(C) Use cf cli <https://github.com/cloudfoundry/cli> RPC server like
cli
plug-ins do
(D) Write a dashboard in Java on the top of cf-java-client
<https://github.com/cloudfoundry/cf-java-client> library

Please let me know which option you are using, or any other way to build a
dashboard, if you are able to disclose it.

Thanks in advance.




--
View this message in context:
http://cf-dev.70369.x6.nabble.com/CF-client-library-tp712.html
Sent from the CF Dev mailing list archive at Nabble.com.
_______________________________________________
cf-dev mailing list
cf-dev(a)lists.cloudfoundry.org
https://lists.cloudfoundry.org/mailman/listinfo/cf-dev


Noburou TANIGUCHI
 

Thanks for your quick reply, Gwenn.
I haven't known https://github.com/cloudfoundry-community/go-cfclient .
I'm glad to know a new CF client library. It seems very easy to use.

Besides studying it by myself, I want to ask some questions about it.

* What's the difference (pros / cons) between the official cli and
go-cfclient?
* How can I know how up-to-date it is with the latest Cloud Controller API?

(It might be better to ask these questions as the repo's issue...)



--
View this message in context: http://cf-dev.70369.x6.nabble.com/CF-client-library-tp712p714.html
Sent from the CF Dev mailing list archive at Nabble.com.


Gwenn Etourneau
 

Yes you can find the version based on the cf-release version here
http://apidocs.cloudfoundry.org/212/

For the pro/cons I don t really know, I just contributed to the go-cfclient
so I don't really know the "official" client.

Depends on your needs..

Btw are you based in Japan ?
I am in Japan :)

On Tue, Jul 14, 2015 at 4:56 PM, Noburou TANIGUCHI <dev(a)nota.m001.jp> wrote:

Thanks for your quick reply, Gwenn.
I haven't known https://github.com/cloudfoundry-community/go-cfclient .
I'm glad to know a new CF client library. It seems very easy to use.

Besides studying it by myself, I want to ask some questions about it.

* What's the difference (pros / cons) between the official cli and
go-cfclient?
* How can I know how up-to-date it is with the latest Cloud Controller API?

(It might be better to ask these questions as the repo's issue...)



--
View this message in context:
http://cf-dev.70369.x6.nabble.com/CF-client-library-tp712p714.html
Sent from the CF Dev mailing list archive at Nabble.com.
_______________________________________________
cf-dev mailing list
cf-dev(a)lists.cloudfoundry.org
https://lists.cloudfoundry.org/mailman/listinfo/cf-dev


Dieu Cao <dcao@...>
 

This repo is not officially maintained by the cloud foundry foundation.
Due to that, it is not as actively updated to stay in synch with the cloud
controller api as the cf cli.
We do want the api to be easily consumable by clients other than the cf cli.

-Dieu
CF CAPI PM

On Tue, Jul 14, 2015 at 1:10 AM, Gwenn Etourneau <getourneau(a)pivotal.io>
wrote:

Yes you can find the version based on the cf-release version here
http://apidocs.cloudfoundry.org/212/

For the pro/cons I don t really know, I just contributed to the
go-cfclient so I don't really know the "official" client.

Depends on your needs..

Btw are you based in Japan ?
I am in Japan :)

On Tue, Jul 14, 2015 at 4:56 PM, Noburou TANIGUCHI <dev(a)nota.m001.jp>
wrote:

Thanks for your quick reply, Gwenn.
I haven't known https://github.com/cloudfoundry-community/go-cfclient .
I'm glad to know a new CF client library. It seems very easy to use.

Besides studying it by myself, I want to ask some questions about it.

* What's the difference (pros / cons) between the official cli and
go-cfclient?
* How can I know how up-to-date it is with the latest Cloud Controller
API?

(It might be better to ask these questions as the repo's issue...)



--
View this message in context:
http://cf-dev.70369.x6.nabble.com/CF-client-library-tp712p714.html
Sent from the CF Dev mailing list archive at Nabble.com.
_______________________________________________
cf-dev mailing list
cf-dev(a)lists.cloudfoundry.org
https://lists.cloudfoundry.org/mailman/listinfo/cf-dev

_______________________________________________
cf-dev mailing list
cf-dev(a)lists.cloudfoundry.org
https://lists.cloudfoundry.org/mailman/listinfo/cf-dev


Noburou TANIGUCHI
 

Thank you again, Gwenn.

Btw are you based in Japan ?
Yes. I'm in Japan and I am Japanese. It is because my English is so awkward.

I am in Japan :)
Great.
If you have time, please come paas-jp <http://paas.connpass.com/> events
and see me.



--
View this message in context: http://cf-dev.70369.x6.nabble.com/CF-client-library-tp712p717.html
Sent from the CF Dev mailing list archive at Nabble.com.


Noburou TANIGUCHI
 

Thanks, Dieu.

This repo is not officially maintained by the cloud foundry foundation.
I see.

We do want the api to be easily consumable by clients other than the cf
cli.
Is there any plan to do that?




--
View this message in context: http://cf-dev.70369.x6.nabble.com/CF-client-library-tp712p718.html
Sent from the CF Dev mailing list archive at Nabble.com.


Gwenn Etourneau
 

I am going everytime mostly :) anyway next time will come to you.

On Tue, Jul 14, 2015 at 5:31 PM, Noburou TANIGUCHI <dev(a)nota.m001.jp> wrote:

Thanks, Dieu.

This repo is not officially maintained by the cloud foundry foundation.
I see.

We do want the api to be easily consumable by clients other than the cf
cli.
Is there any plan to do that?




--
View this message in context:
http://cf-dev.70369.x6.nabble.com/CF-client-library-tp712p718.html
Sent from the CF Dev mailing list archive at Nabble.com.
_______________________________________________
cf-dev mailing list
cf-dev(a)lists.cloudfoundry.org
https://lists.cloudfoundry.org/mailman/listinfo/cf-dev


Vlad Iovanov
 

There’s also a .NET SDK: https://github.com/cloudfoundry-incubator/cf-dotnet-sdk (available on nuget.org as well).

Cheers,
Vlad

From: <cf-dev-bounces(a)lists.cloudfoundry.org<mailto:cf-dev-bounces(a)lists.cloudfoundry.org>> on behalf of Gwenn Etourneau <getourneau(a)pivotal.io<mailto:getourneau(a)pivotal.io>>
Reply-To: "Discussions about Cloud Foundry projects and the system overall." <cf-dev(a)lists.cloudfoundry.org<mailto:cf-dev(a)lists.cloudfoundry.org>>
Date: Tuesday, July 14, 2015 at 9:09 AM
To: "Discussions about Cloud Foundry projects and the system overall." <cf-dev(a)lists.cloudfoundry.org<mailto:cf-dev(a)lists.cloudfoundry.org>>
Subject: Re: [cf-dev] CF client library

humm,
Most simple is to call the Cloudcontroller API....
like we do here https://github.com/cloudfoundry-community/go-cfclient

On Tue, Jul 14, 2015 at 2:46 PM, nota-ja <dev(a)nota.m001.jp<mailto:dev(a)nota.m001.jp>> wrote:
Hi,

# I have posted this message once, but there does not appear the post, so I
repost this.
# If you find duplicated messages, please ignore the first one.

We're currently planning to write a Web dashboard for a Cloud Foundry
deployment.

Our old dashboard uses cfoundry
<https://github.com/cloudfoundry-attic/cfoundry> , but it is now outdated
and abandoned.

So I want to know how do other people create their Web dashboard for the
latest Cloud Foundry environment.

I think there are a few options right now:

(A) Use " cf <https://github.com/cloudfoundry/cli> curl" as an external
command
(B) Write a dashboard in Golang using cf cli
<https://github.com/cloudfoundry/cli> as a library
(C) Use cf cli <https://github.com/cloudfoundry/cli> RPC server like cli
plug-ins do
(D) Write a dashboard in Java on the top of cf-java-client
<https://github.com/cloudfoundry/cf-java-client> library

Please let me know which option you are using, or any other way to build a
dashboard, if you are able to disclose it.

Thanks in advance.




--
View this message in context: http://cf-dev.70369.x6.nabble.com/CF-client-library-tp712.html
Sent from the CF Dev mailing list archive at Nabble.com.
_______________________________________________
cf-dev mailing list
cf-dev(a)lists.cloudfoundry.org<mailto:cf-dev(a)lists.cloudfoundry.org>
https://lists.cloudfoundry.org/mailman/listinfo/cf-dev


Noburou TANIGUCHI
 

Thank you, Vlad.

I don't have much experience with .Net, but I'm glad to know there is
another client library in another programming language.




--
View this message in context: http://cf-dev.70369.x6.nabble.com/CF-client-library-tp712p722.html
Sent from the CF Dev mailing list archive at Nabble.com.


Alexander Lomov <alexander.lomov@...>
 

Another option is cfoundry Ruby gem:

https://github.com/cloudfoundry-attic/cfoundry

But it is also not supported now. Still I used it in several projects not
long ago and it worked.

------------------------
Alex Lomov
*Altoros* — Cloud Foundry deployment, training and integration
*Twitter:* @code1n <https://twitter.com/code1n> *GitHub:* @allomov
<https://gist.github.com/allomov>

On Tue, Jul 14, 2015 at 3:16 PM, Noburou TANIGUCHI <dev(a)nota.m001.jp> wrote:

Thank you, Vlad.

I don't have much experience with .Net, but I'm glad to know there is
another client library in another programming language.




--
View this message in context:
http://cf-dev.70369.x6.nabble.com/CF-client-library-tp712p722.html
Sent from the CF Dev mailing list archive at Nabble.com.
_______________________________________________
cf-dev mailing list
cf-dev(a)lists.cloudfoundry.org
https://lists.cloudfoundry.org/mailman/listinfo/cf-dev


Noburou TANIGUCHI
 

Thank you Alex, and everyone.

I'd like to summarize the current status:

- 1) Language-independent
-- 1a) Use `cf curl` as external command (
https://github.com/cloudfoundry/cli )
-- 1b) Use CF cli RPC server like cli plugins do (
https://github.com/cloudfoundry/cli )

- 2) Language-dependent
-- 2a) Golang (official): cli: https://github.com/cloudfoundry/cli
-- 2b) Java (official): cf-java-client:
https://github.com/cloudfoundry/cf-java-client
-- 2c) .Net (incubator): cf-dotnet-sdk:
https://github.com/cloudfoundry-incubator/cf-dotnet-sdk
-- 2d) Golang (community): go-cfclient:
https://github.com/cloudfoundry-community/go-cfclient
-- 2e) Ruby (attic - outdated?): cfoundry:
https://github.com/cloudfoundry-attic/cfoundry (*1)
-- 2f) Node.js (attic -outdated?): vcap-node:
https://github.com/cloudfoundry-attic/vcap-node (*2)

(*1) There are some personal? forks such as
https://github.com/lukehwang/cfoundry
(*2) I've found recently

If there is another one, please let me know.



--
View this message in context: http://cf-dev.70369.x6.nabble.com/CF-client-library-tp712p732.html
Sent from the CF Dev mailing list archive at Nabble.com.


Gwenn Etourneau
 

Or just DIY... cloudcontroller are pretty well documented.

On Wed, Jul 15, 2015 at 4:01 PM, Noburou TANIGUCHI <dev(a)nota.m001.jp> wrote:

Thank you Alex, and everyone.

I'd like to summarize the current status:

- 1) Language-independent
-- 1a) Use `cf curl` as external command (
https://github.com/cloudfoundry/cli )
-- 1b) Use CF cli RPC server like cli plugins do (
https://github.com/cloudfoundry/cli )

- 2) Language-dependent
-- 2a) Golang (official): cli: https://github.com/cloudfoundry/cli
-- 2b) Java (official): cf-java-client:
https://github.com/cloudfoundry/cf-java-client
-- 2c) .Net (incubator): cf-dotnet-sdk:
https://github.com/cloudfoundry-incubator/cf-dotnet-sdk
-- 2d) Golang (community): go-cfclient:
https://github.com/cloudfoundry-community/go-cfclient
-- 2e) Ruby (attic - outdated?): cfoundry:
https://github.com/cloudfoundry-attic/cfoundry (*1)
-- 2f) Node.js (attic -outdated?): vcap-node:
https://github.com/cloudfoundry-attic/vcap-node (*2)

(*1) There are some personal? forks such as
https://github.com/lukehwang/cfoundry
(*2) I've found recently

If there is another one, please let me know.



--
View this message in context:
http://cf-dev.70369.x6.nabble.com/CF-client-library-tp712p732.html
Sent from the CF Dev mailing list archive at Nabble.com.
_______________________________________________
cf-dev mailing list
cf-dev(a)lists.cloudfoundry.org
https://lists.cloudfoundry.org/mailman/listinfo/cf-dev


Noburou TANIGUCHI
 

Or just DIY... cloudcontroller are pretty well documented.
Yes. I've just forgotten it. Thanks ;-).





--
View this message in context: http://cf-dev.70369.x6.nabble.com/CF-client-library-tp712p736.html
Sent from the CF Dev mailing list archive at Nabble.com.


James Bayer
 

i believe activestate also maintains a javascript client [1]. i'm not sure
how closely that tracks the cloud controller api and if it has other non-cf
foundation extensions that map only to activestate stackato functionality.
we can add this detail to a docs page on docs.cloudfoundry.org and note
which ones are in the cf foundation and which ones are public, but not
foundation projects.

[1] https://github.com/ActiveState/cloud-foundry-client-js

On Wed, Jul 15, 2015 at 4:29 AM, Noburou TANIGUCHI <dev(a)nota.m001.jp> wrote:

Or just DIY... cloudcontroller are pretty well documented.
Yes. I've just forgotten it. Thanks ;-).





--
View this message in context:
http://cf-dev.70369.x6.nabble.com/CF-client-library-tp712p736.html
Sent from the CF Dev mailing list archive at Nabble.com.
_______________________________________________
cf-dev mailing list
cf-dev(a)lists.cloudfoundry.org
https://lists.cloudfoundry.org/mailman/listinfo/cf-dev
--
Thank you,

James Bayer


Noburou TANIGUCHI
 

Thank you James, for telling about the ActiveStates' library and proposing to
publish the information about client libraries on docs.cloudfoundry.org.

I think the information on this thread is helpful not only for me but other
Cloud Foundry users / developers. So it seems very good idea to publish and
maintain it on the official site.





--
View this message in context: http://cf-dev.70369.x6.nabble.com/CF-client-library-tp712p750.html
Sent from the CF Dev mailing list archive at Nabble.com.


Noburou TANIGUCHI
 

One(?) thing I want to know about this issue is what (or which) way the major
public service providers (Pivotal, IBM, HP, Anynines, etc.) do.

If you can tell, please let me know.



--
View this message in context: http://cf-dev.70369.x6.nabble.com/CF-client-library-tp712p765.html
Sent from the CF Dev mailing list archive at Nabble.com.


Juan Antonio Breña Moral <bren at juanantonio.info...>
 

Hi,

I am developing a new client in Node.js in order to create a web application to deploy applications to CF.
https://github.com/jabrena/cf-nodejs-client

Currently, I have 2 doubts with the methods:

http://apidocs.cloudfoundry.org/214/resource_match/list_all_matching_resources.html
http://apidocs.cloudfoundry.org/214/apps/uploads_the_bits_for_an_app.html

Once, I have solved this issues, I will develop a mini express aplication to add a User interface.

What is your opinion?


James Bayer
 

inline

On Wed, Aug 5, 2015 at 6:14 AM, Juan Antonio Breña Moral <
bren(a)juanantonio.info> wrote:

Hi,

I am developing a new client in Node.js in order to create a web
application to deploy applications to CF.
https://github.com/jabrena/cf-nodejs-client

Currently, I have 2 doubts with the methods:


http://apidocs.cloudfoundry.org/214/resource_match/list_all_matching_resources.html

don't see anything matching that here:
https://github.com/ActiveState/cloud-foundry-client-js/tree/master/lib



http://apidocs.cloudfoundry.org/214/apps/uploads_the_bits_for_an_app.html

i don't see that implemented here:
https://github.com/ActiveState/cloud-foundry-client-js/blob/master/lib/apps.js

so it seems like those currently don't have a js implementation i'm aware
of.

java cf client may have some hints:
https://github.com/cloudfoundry/cf-java-client/blob/master/cloudfoundry-client-lib/src/main/java/org/cloudfoundry/client/lib/domain/CloudResources.java




Once, I have solved this issues, I will develop a mini express aplication
to add a User interface.

What is your opinion?


--
Thank you,

James Bayer


Juan Antonio Breña Moral <bren at juanantonio.info...>
 

Hi James,

the library has several examples to interact with CF REST API.

Example to upload an app.
https://github.com/jabrena/cf-nodejs-client/tree/master/examples

Take a look the examples.
Tell me if you have some doubt.

Juan Antonio