Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

cf target https://api.cloudfoundry.com error #1

Closed
wangzifeng opened this issue Mar 30, 2013 · 11 comments
Closed

cf target https://api.cloudfoundry.com error #1

wangzifeng opened this issue Mar 30, 2013 · 11 comments

Comments

@wangzifeng
Copy link

when run:

cf target https://api.cloudfoundry.com

returns:

V1 targets are no longer supported.

Not able to use login feature of CF

@tlang
Copy link
Contributor

tlang commented Mar 30, 2013

Hi. The "cf" client is only for V2 targets. You should use the "vmc" client
for V1 targets such as api.cloudfoundry.com

  • Tim Lang

On Saturday, March 30, 2013, wangzifeng wrote:

when run:

cf target https://api.cloudfoundry.com

returns:

V1 targets are no longer supported.

Not able to use login feature of CF


Reply to this email directly or view it on GitHubhttps://github.com//issues/1
.

Tim Lang
Product Manager, Cloud Foundry

@eliellis
Copy link

eliellis commented Apr 4, 2013

If vmc is deprecated shouldn't api.cloudfoundry.com be updated to work with cf instead? Especially since all the new documentation is referencing the use of cf target api.cloudfoundary.com as good-and-proper, it's pretty confusing to be following documentation that isn't representative of what's actually supposed to happen.

@tlang
Copy link
Contributor

tlang commented Apr 4, 2013

Vmc is still the correct client to use with the v1 Cloud Foundry server
components on api.cloudfoundry.com. Eventually yes api.cloudfoundry.com may
be updated to v2, at which point the correct client will be cf.

On Wednesday, April 3, 2013, Eli wrote:

If vmc is deprecated shouldn't api.cloudfoundry.com be updated to work
with cf instead?


Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-15879753
.

Tim Lang
Product Manager, Cloud Foundry

@skopp
Copy link

skopp commented Apr 9, 2013

I was instructed as well, via a core partner's docs to use cf. Searching online brought me here.

@dmrschmidt
Copy link
Contributor

Agreed, the documentation is confusing and will be updated to correctly refer to vmc / cf.

@wendelicious
Copy link

How do I create a v2 DNS target?

@dmrschmidt
Copy link
Contributor

@Swps can you give a little more explanation on what you're trying to achieve? I don't think I understand what exactly you want to know. Thanks

@eliellis
Copy link

@dmrschmidt he's asking how to create a target compatible with cf rather than vmc

@howardwchen
Copy link

But the document of cloudfoundry show me 'cf target https://api.cloudfoundry.com', it's worry?

@tlang
Copy link
Contributor

tlang commented May 3, 2013

Hi. Not sure I understand the question but a few points of clarification:

  • vmc is the client for talking to v1 CF targets
  • cf is the client for talking to v2 CF targets
  • "target" means the entire CF instance, not just a single machine. So "cf
    target https://api.cloudfoundry.com" means you're targeting a CF instance
    made up entirely of v2 components, and for which the API endpoint is
    api.cloudfoundry.com
  • you "create a target compatible with cf" by installing a CF v2 instance
    (via BOSH) on your infrastructure

Not sure if that helps?

  • Tim

On Fri, May 3, 2013 at 12:06 AM, shffdc notifications@github.com wrote:

But the document of cloudfoundry show me 'cf target
https://api.cloudfoundry.com', it's worry?


Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-17381120
.

@andypiper
Copy link

To add to @tlang's answer, the docs.cloudfoundry.com site clearly states that at the moment we are in a period of transition between v1 and v2. The docs are written for version 2, but there's a link to the older docs. As of today (May 3) our public api.cloudfoundry.com endpoint is at v1, so you should use the vmc tool to target it. If you download the Open Source components and deploy your own Cloud Foundry instance to your choice of infrastructure you can get a v2 version and use the cf tool.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants