cli icon indicating copy to clipboard operation
cli copied to clipboard

create-user-provided-service -p PARAMETERS implies more than the credentials

Open chrylis opened this issue 12 years ago • 5 comments

The "parameters" supported by the cups command are all placed inside the credentials block of the created service. This limitation is not at all clear from the documentation for the command.

chrylis avatar Jul 17 '14 05:07 chrylis

We have created an issue in Pivotal Tracker to manage this. You can view the current status of your issue at: https://www.pivotaltracker.com/story/show/75171038.

cf-gitbot avatar Jul 17 '14 05:07 cf-gitbot

This is the API behavior specified in http://apidocs.cloudfoundry.org/. @shalako Any thoughts if we change this in the CLI? Or would this affect any future direction in services?

lcddave avatar Jul 17 '14 14:07 lcddave

@lcddave I would suggest improving documentation for cf upsi rather than changing the flag, for two reasons. I would like to deprecate cups in favor of cs user-provided -p and changing the flag would a breaking change for those who are scripting use of -p,

When we implement cs user-provided we could consider -c (credentials), but my proposed cs SERVICE -p is designed to support arbitrary parameters for all services, of which user-provided is just one.

shalako avatar Jul 17 '14 20:07 shalako

Ok, we can update the text accordingly.

lcddave avatar Jul 18 '14 00:07 lcddave

Done.

○ → cf cups -h
NAME:
   create-user-provided-service - Make a user-provided service instance available to cf apps

ALIAS:
   cups

USAGE:
   cf create-user-provided-service SERVICE_INSTANCE [-p CREDENTIALS] [-l SYSLOG-DRAIN-URL]

   Pass comma separated credential parameter names to enable interactive mode:
   cf create-user-provided-service SERVICE_INSTANCE -p "comma, separated, parameter, names"

   Pass credential parameters as JSON to create a service non-interactively:
   cf create-user-provided-service SERVICE_INSTANCE -p '{"name":"value","name":"value"}'

EXAMPLE:
   cf create-user-provided-service oracle-db-mine -p "username, password"
   cf create-user-provided-service oracle-db-mine -p '{"username":"admin","password":"pa55woRD"}'
   cf create-user-provided-service my-drain-service -l syslog://example.com


OPTIONS:
   -p   Credentials
   -l   Syslog Drain Url

goehmen avatar Nov 21 '14 20:11 goehmen