ibm-cloud - 无法使用 ibmcloud CLI 登录

标签 ibm-cloud cloud-foundry

我在使用 ibmcloud CLI 登录时完全被这个问题难住了。

因此,我使用 account-01 创建了一个 IBM Cloud 帐户。我创建了一个组织和一个空间,然后在其中创建了一个 Cloud Foundry 应用程序。使用 account-01,我可以使用“ibmcloud login”登录,并可以使用“ibmcloud target --cf”设置目标。

现在,我邀请了另一个用户 - account-01 组织,并授予他们对组织的经理访问权限和对空间的开发人员访问权限。他们可以使用该网站登录,并且在切换到我的帐户时可以看到 Cloud Foundry 应用程序。

使用 ibmcloud CLI;他们可以登录;但他们无法设定目标。因为他们无法设定目标;然后他们无法连接到应用程序来部署新版本、查看日志等。

该错误消息对我来说根本没有多大意义。步骤如下:

C:\Users\admin>ibmcloud login
API endpoint: https://cloud.ibm.com
Region: au-syd

Email> <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="caaba9a9a5bfa4bee7faf88aada7aba3a6e4a9a5a7" rel="noreferrer noopener nofollow">[email protected]</a>

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:              <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="214042424e544f550c111361464c40484d0f424e4c" rel="noreferrer noopener nofollow">[email protected]</a>
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:              <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="cfbfaabdbca0a1aea38fa8a2aea6a3e1aca0a2" rel="noreferrer noopener nofollow">[email protected]</a>   
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

关于ibm-cloud - 无法使用 ibmcloud CLI 登录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61434100/

相关文章:

javascript - Cloud Foundry 不兼容 IE?

cloud-foundry - NAT 错误 : 'Unresponsive client detected, connection dropped'

cassandra - 在开源 Cloud Foundry 中实现 Cassandra 和 Aerospike 的 Service Broker API

cloud-foundry - 如何使用 cf 程序查看我的 VCAP_SERVICES 环境变量?

cloud-foundry - 无法登录CF

containers - 我可以更 retrofit 载在 IBM 容器中的卷上的目录的所有者吗?

websphere-liberty - 我可以扩展 WebSphere Liberty buildpack 吗?

javascript - 带有 sqldb 服务的 Bluemix : Node. js 示例(VCAP_SERVICES 凭证)

translation - 全局化管道中的韩语翻译

ios - Bluemix Cloudant - 内部服务器错误