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


名称

update-user-provided-service - 更新用户提供的服务实例

用法

cf update-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 update-user-provided-service SERVICE_INSTANCE -p "comma, separated, parameter, names" Pass credential parameters as JSON to create a service non-interactively: cf update-user-provided-service SERVICE_INSTANCE -p '{"key1":"value1","key2":"value2"}' Specify a path to a file containing JSON: cf update-user-provided-service SERVICE_INSTANCE -p PATH_TO_FILE

EXAMPLES

cf update-user-provided-service my-db-mine -p '{"username":"admin", "password":"pa55woRD"}' cf update-user-provided-service my-db-mine -p /path/to/credentials.json cf update-user-provided-service my-drain-service -l syslog://example.com cf update-user-provided-service my-route-service -r https://example.com

别名

uups

选项

-l

绑定应用程序的日志汇集到的目标 URL

-p

Credentials, provided inline or in a file, to be exposed in the VCAP_SERVICES environment variable for bound applications. Provided credentials will override existing credentials.

-r

将绑定路径的请求转发到的目标 URL。此 URL 的方案必须是 https

SEE ALSO

rename-service, services, update-service