`cf cups -p` vs `cf uups -p`

554 views
Skip to first unread message

Patrick Mueller

unread,
Sep 9, 2014, 4:21:59 PM9/9/14
to vcap-dev
`cf cups` == `cf create-user-provided-service`
`cf uups` == `cf update-user-provided-service`

First off - thanks for the new `cf uups` command.  It may be potentially nicer than deleting/re-creating user-provided services when the property needs to change - I've not used it in anger yet, so ... who can say. :-)

One thing that's different between cups and uups is that with cups I can pass a list of property names in with the `-p` option, but with uups I can ONLY pass a string of JSON.   I find the "pass a property list" style option is super easy - and so I think it probably makes sense for uups as well.  Presumably you could pass new properties, or replace the value of existing properties.

Then we need one more thing -  `cf ups` == `cf user-provided-service` - to get the property values of existing user-provided services printed to stdout.  The "command naming standard" seems to be that "view"-ish functions have no verb prepended, otherwise I would have suggested "vups - view-user-provided-service".

Today I find myself binding a ups to a kinda dummy app I have lying around, then doing a `cf env` on it - but is obviously more work than I'd like to do.

--
Patrick Mueller
http://muellerware.org

Greg Oehmen

unread,
Sep 17, 2014, 6:59:21 PM9/17/14
to vcap-dev
Hi Patrick:

1.  `cf uups` w/non-json list = good point = https://www.pivotaltracker.com/story/show/79049274
2.  `cf ups` can be accomplished via `cf services`

○ → cf services

...

name                              service         plan   bound apps
broken-service                    user-provided
broken-service2                   user-provided
broken-service3                   user-provided
some-fake-user-service-instance   user-provided
working-service                   user-provided

Hope this helps
Greg

--
You received this message because you are subscribed to the Google Groups "Cloud Foundry Developers" group.
To view this discussion on the web visit https://groups.google.com/a/cloudfoundry.org/d/msgid/vcap-dev/CACAoQH2ORDvE25fgMh%3DFNHdCtJrQfw54rA_-jocMSTaBsMu3GQ%40mail.gmail.com.

To unsubscribe from this group and stop receiving emails from it, send an email to vcap-dev+u...@cloudfoundry.org.

Patrick Mueller

unread,
Sep 18, 2014, 8:13:37 PM9/18/14
to vcap-dev
My thought on `cf ups` was to print the credentials object of the specified service.  If I had done a

    cf cups my-service -p url

then when I did 

    cf ups my-service

I'd see something like:

    url: <whatever I entered in the `cf cups` command>



To unsubscribe from this group and stop receiving emails from it, send an email to vcap-dev+u...@cloudfoundry.org.

Greg Oehmen

unread,
Sep 19, 2014, 11:29:44 AM9/19/14
to vcap-dev
Reply all
Reply to author
Forward
0 new messages