create-user-provided-service - Cloud Foundry CLI Reference Guide


NAME

create-user-provided-service - Make a user-provided service instance available to CF apps

USAGE

cf create-user-provided-service SERVICE_INSTANCE [-p CREDENTIALS] [-l SYSLOG_DRAIN_URL] [-r ROUTE_SERVICE_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 '{"key1":"value1","key2":"value2"}' Specify a path to a file containing JSON: cf create-user-provided-service SERVICE_INSTANCE -p PATH_TO_FILE

EXAMPLES

cf create-user-provided-service my-db-mine -p "username, password" cf create-user-provided-service my-db-mine -p /path/to/credentials.json cf create-user-provided-service my-drain-service -l syslog://example.com cf create-user-provided-service my-route-service -r https://example.com Linux/Mac: cf create-user-provided-service my-db-mine -p '{"username":"admin","password":"pa55woRD"}' Windows Command Line: cf create-user-provided-service my-db-mine -p "{\"username\":\"admin\",\"password\":\"pa55woRD\"}" Windows PowerShell: cf create-user-provided-service my-db-mine -p '{\"username\":\"admin\",\"password\":\"pa55woRD\"}'

ALIAS

cups

OPTIONS

-l

URL to which logs for bound applications will be streamed

-p

Credentials, provided inline or in a file, to be exposed in the VCAP_SERVICES environment variable for bound applications

-r

URL to which requests for bound routes will be forwarded. Scheme for this URL must be https

SEE ALSO

bind-service, services