简体   繁体   中英

How can I use IBM IAM to access my Cloudant instance?

是否可以使用 IBM IAM 控制台创建带有 api 密钥的新 ServiceID,以便访问 IBM Cloudant 实例?

Yes you can! The IBM IAM service allows you to create a ServiceID, which is a machine-usable 'persona'. Then you can create an API key for it and give it permissions to access one or more IBM services, like Cloudant.

Start at https://cloud.ibm.com/iam and then:

  • Create a new ServiceID
  • Under Access Policies, click Assign Access. Here you can choose the service that you want to access and what roles you want to authorise (eg Reader, Writer, etc). Here you can assign more than one service to the same ServiceID.

在此处输入图片说明

  • Under API Keys, choose Create. This will create an API key which you can download.

Now you can use the API key in your application and you should be able to access your service.

Individual IBM services normally offer their own access mechanisms. But the advantage of this method is that you can use the same API key to access multiple services (eg Cloudant, Cloud Object Storage) from your application.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM