Ibm cloud 创建Bluemix CLI群集时发生E0126错误

Ibm cloud 创建Bluemix CLI群集时发生E0126错误,ibm-cloud,Ibm Cloud,我的目标是使用Bluemix CLI编写容器集群的创建脚本。我正在运行的命令是: $ bx cs cluster-create --name mycluster --workers 1 我收到的信息是: Creating cluster... The machine-type flag was not specified. So free cluster will be created FAILED Your Bluemix space must be specified. If you a

我的目标是使用Bluemix CLI编写容器集群的创建脚本。我正在运行的命令是:

$ bx cs cluster-create --name mycluster --workers 1
我收到的信息是:

Creating cluster...
The machine-type flag was not specified. So free cluster will be created
FAILED

Your Bluemix space must be specified. If you are using the API, include the headers
X-Auth-Resource-Space header. To get the list of orgs run 'bx iam orgs'.  To get the
list of spaces run 'bx iam spaces'. (E0126)
Incident ID: 421d4577-4873-433d-adff-a870fe0983a3

我感到困惑的是,消息似乎说我指定了我的Bluemix空间,但该命令上没有指定空间的选项。

答案是必须使用单独的命令指定自己的组织和环境空间。具体而言:

$ bx target -o <yourOrganization> -s <yourSpace>

运行
bx target
命令后,可以重新运行
bx cs create cluster
命令

$ bx iam orgs
$ bx iam spaces