[英]IBM Cloud API: How can I get the IAM-id of an IBM ID/user?
I am trying to create a new account in my IBM Cloud Enterprise hierarchy by using the IBM Cloud API: https://cloud.ibm.com/apidocs/enterprise-apis/enterprise#create-a-new-account-in-an-enterprise .我正在尝试使用 IBM Cloud API 在我的 IBM Cloud Enterprise 层次结构中创建一个新帐户: https://cloud.ibm.com/apidocs/enterprise-apis/enterprise#create-a-new-account-in-an -企业。
It requests to provide the account owner: owner_iam_id (The IAM ID of the account owner, such as IBMid-0123AB).它要求提供账户所有者:owner_iam_id(账户所有者的IAM ID,例如IBMid-0123AB)。 I used an email to create the IBM id, how can I get the IAM ID associated to that user?
我使用 email 创建 IBM id,如何获取与该用户关联的 IAM ID?
You can get the IAM id via the IBM Cloud UI or the ibmcloud CLI:您可以通过 IBM Cloud UI 或 ibmcloud CLI 获取 IAM id:
jwt-cli
to decode contents of token.jwt-cli
以解码令牌的内容。$ npm install -g jwt-cli
$ ibmcloud login --sso
$ ibmcloud iam oauth-tokens
$ jwt <TOKEN_FROM_STEP_3
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.