简体   繁体   English

IBM Cloud API:如何获取 IBM ID/用户的 IAM-id?

[英]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:

  • UI用户界面
  1. Sign into https://cloud.ibm.com/ and click on Manage drop down menu登录https://cloud.ibm.com/并单击管理下拉菜单
  2. Click on Access (IAM)点击访问 (IAM)
  3. Click on Users on left list单击左侧列表中的用户
  4. Click on the user you want to get the IAM id单击您要获取 IAM id 的用户
  5. Click on Details on top left corner and the IAM id should appear单击左上角的详细信息,应显示 IAM id

用户详情

  • ibmcloud CLI ibmcloud 命令行界面
  1. Install jwt-cli to decode contents of token.安装jwt-cli以解码令牌的内容。
    $ npm install -g jwt-cli
  2. Use your favorite way to log into ibmcloud CLI, here is one way.使用您最喜欢的方式登录 ibmcloud CLI,这是一种方式。
    $ ibmcloud login --sso
  3. Get the token for your active session.获取活动 session 的令牌。
    $ ibmcloud iam oauth-tokens
  4. Decode contents of your token (Omit the string Bearer).解码令牌的内容(省略字符串 Bearer)。
    $ jwt <TOKEN_FROM_STEP_3

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用软层REST API在IBM Cloud中放置新的VLAN订单时如何获取Vlan ID详细信息 - How to get Vlan ID details when a new VLAN order is placed in IBM Cloud using softlayer REST API 如何在 IBM Power Systems Virtual Servers 中获取云实例 ID - How to get a Cloud Instance ID in IBM Power Systems Virtual Servers 在哪里可以找到IBM Cloud IAM Identity Services API的Swagger文档(JSON doc) - Where can I find the Swagger documentation (JSON doc) for the IBM Cloud IAM Identity Services API 一旦softlayer id切换到IBM id,我可以使用Softlayer API吗? - Once softlayer id switchs to IBM id, can i use Softlayer API? 如何在具有服务ID的IBM Cloud上创建Kubernetes集群? - How to create Kubernetes cluster on IBM Cloud with service ID? 如何将 URL 直接获取到 IBM Cloud Object 存储上具有访问密钥 ID 和秘密访问密钥的文件 - How to get a direct URL to a file on IBM Cloud Object Storage that has access key id and secret access key 如何通过Softlayer Rest API在IBM云中获取VM Flavors - How to get a VM Flavours in IBM cloud through Softlayer Rest API 如何通过soundcloud api调用获取用户ID? - How can I get a user id via soundcloud api call? 使用 IBM hpc-cluster api 时,如何使用 IAM 令牌进行身份验证? - When utilizing IBM hpc-cluster api, how do I authenticate with IAM Token? IBM IAM API密钥认证错误 - IBM IAM API KEY AUTHENTICATION ERROR
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM