create-service
Input
| arg name | JSON type | example | description | *required? |
| instance_name | string | "my-user-provided-service" | name of the instance | y |
| credentials | arbitrary | {"key1":"value1","key2":"value2"} | credentials JSON | y |
| cf_home | string | "/tmp/cf-home-240964" | CF_HOME where login has been issued, defaults to $HOME | |
| route_service_url | string | "https://example.com" | route service url |
Example:
- create a user provided service instance
{
"instance_name": "my-db-mine",
"credentials": {"username":"admin","password":"***REMOVED***"},
"cf_home": "/home/user"
}
Output
| output name | JSON type | example | description |
| "SERVICE_GUID" | string | "c41f5741-97f6-43a9-82dc-b32f00588819" | guid of the instance |
Example:
{"SERVICE_GUID": "c41f5741-97f6-43a9-82dc-b32f00588819"}
Idempotence
The script may be called any number of times. The instance is deleted and recreated every time.