我完全困惑于我使用ibmcloud CLI登录的问题。
因此,我使用account-01创建了一个IBM Cloud帐户。我创建了一个组织和一个空间,然后在其中创建了一个Cloud Foundry应用程序。使用account-01,我可以使用“ ibmcloud login”登录,也可以使用“ ibmcloud target --cf”设置目标。
现在,我邀请了另一个用户-account-01这个组织,我给了他们Manager对该组织的访问权限,而Developer对该空间的访问权限。他们可以使用网站登录,并在切换到我的帐户后可以查看Cloud Foundry应用程序。
使用ibmcloud CLI;他们可以登录;但他们无法设定目标。由于他们无法设定目标;然后他们将无法连接到应用程序以部署新版本,查看日志等。
错误消息对我来说根本没有任何意义。步骤如下:
C:\Users\admin>ibmcloud login
API endpoint: https://cloud.ibm.com
Region: au-syd
Email> [email protected]
Password>
Authenticating...
OK
Select an account:
1. Account-01's Account (yyyy) <-> 1234324
2. Account-03's Account (xxxxx) <-> 2234325
Enter a number> 1
Targeted account Account-01's Account (yyyy) <-> 1234324
API endpoint: https://cloud.ibm.com
Region: au-syd
User: [email protected]
Account: Account-01's Account (yyyy) <-> 1234324
Resource group: No resource group targeted, use 'ibmcloud target -g RESOURCE_GROUP'
CF API endpoint:
Org:
Space:
C:\Users\admin>ibmcloud target --cf
FAILED
Could not login to Cloud Foundry: Remote server error. Status code: 403, error code: forbidden, message: BMXLS0201E: No such account
为什么该用户无法登录?是否还有其他一些我尚未设置的权限丢失。
我通过访问左侧导航面板中的“管理->帐户->资源组”获得了组-。这是“默认”。所以我如图所示添加了它。
$ ibmcloud target -g Default
Targeted resource group Default
API endpoint: https://cloud.ibm.com
Region: us-south
User: [email protected]
Account: xyz (abcd)
Resource group: Default
CF API endpoint: https://api.us-south.cf.cloud.ibm.com (API version: 2.147.0)
Org:
Space:
Tip: If you are managing Cloud Foundry applications and services
- Use 'ibmcloud target --cf' to target Cloud Foundry org/space interactively, or use 'ibmcloud target --cf-api ENDPOINT -o ORG -s SPACE' to target the org/space.
- Use 'ibmcloud cf' if you want to run the Cloud Foundry CLI with current IBM Cloud CLI context
我通过访问左侧导航面板中的“管理->帐户->资源组”获得了组-。这是“默认”。所以我如图所示添加了它。
$ ibmcloud target -g Default
Targeted resource group Default
API endpoint: https://cloud.ibm.com
Region: us-south
User: [email protected]
Account: xyz (abcd)
Resource group: Default
CF API endpoint: https://api.us-south.cf.cloud.ibm.com (API version: 2.147.0)
Org:
Space:
Tip: If you are managing Cloud Foundry applications and services
- Use 'ibmcloud target --cf' to target Cloud Foundry org/space interactively, or use 'ibmcloud target --cf-api ENDPOINT -o ORG -s SPACE' to target the org/space.
- Use 'ibmcloud cf' if you want to run the Cloud Foundry CLI with current IBM Cloud CLI context