Swisscom连接器的设置

时间:2015-10-14 20:50:45

标签: swisscomdev

根据https://docs.developer.swisscom.com/services/services/managing-services.html#service-connector,我应该可以运行

cf service-connector 13000 XXXXSHOST.service.consul:XXXXSPORT

但是,这就是:

PS C:\Users\XXXX> cf install-plugin .\Downloads\swisscom-plugin.exe    
Installing plugin .\Downloads\swisscom-plugin.exe... 
OK 

Plugin SwisscomPlugin successfully installed. 
PS C:\Users\XXXX> cf plugins 
Listing Installed Plugins... 
OK

Plugin name Version Command name Command Help 
SwisscomPlugin 1.0.2 service-connector, sc Create a local listener for a service instance 
PS C:\Users\XXXX> cf service-connector help

FAILED 
Incorrect usage.

NAME: 
service-connector - Create a local listener for a service instance

ALIAS: 
sc

USAGE: 
cf service-connector LOCAL_PORT SERVICE_HOST:SERVICE_PORT [--skip-ssl-validation]

OPTIONS: 
-skip-ssl-validation Please don't

PS C:\Users\XXXX> cf service-connector 13000 XXXXSHOST.service.consul:XXXXSPORT

FAILED 
No org or space targeted, use 'cf target -o ORG -s SPACE' 
PS C:\Users\XXXX>

(XXXXSHOST and XXXXSPORT are the actual values from VCAP_SERVICES.)

1 个答案:

答案 0 :(得分:1)

检查是否允许您提前访问该服务,因此您需要登录并预先选择您的组织/空间;

即。您是否已预先登录并选择了您的组织空间?

#cf login

#cf target –o <YourOrg> –s <YourSpace> 
(with cf orgs and cf spaces you can see your available/created orgs)

# cf service-connector 13000 XXXXSHOST.service.consul:XXXXSPORT
最佳

马可