create-user-provided-service -p PARAMETERS implies more than the credentials
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.
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.
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 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.
Ok, we can update the text accordingly.
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