create-unique-cf-home
Inputs
- c api endpoint, cf user
arg name JSON type example description CF_TARGET string "https://api.system.asv-pr.ice.predix.io" cf api endpoint CF_USER string "service.hubsservice@ge.com" cf username - password options
CF_PASSWORD string "REMOVED" cf password CF_SSO_PASSCODE string "REMOVED" non-interactive one-time sso passcode - if nothing provided, interactively prompt for sso passcode
- org/space options
arg name JSON type example description CF_ORG string "HUBS" cf org CF_SPACE string "dev" cf space - OR
arg name JSON type example description CF_ORG_SPACE string "HUBS/dev" slash-delimited combination of CF_ORG/CF_SPACE
Examples:
{ "CF_TARGET": "https://api.system.asv-pr.ice.predix.io", "CF_PASSWORD": "***REMOVED***", "CF_USER": "service.hubsservice@ge.com", "CF_ORG_SPACE": "HUBS/dev" }
Output
output name | JSON type | example | description |
CF_HOME | string | "/tmp/cf-home-913530" | path to login-issued CF_HOME |
Example:
{"CF_HOME": "/tmp/cf-home-913530"}
Idempotence
The script may be called any number of times. It will create a new unique throwaway directory under /tmp and issue a cf login