外部应用程序如何访问ibm云对象存储 [英] how external app can access ibm cloud object storage

查看:193
本文介绍了外部应用程序如何访问ibm云对象存储的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有IBM COS服务,并且能够通过cli使用Curl命令来检索对象.我使用IAM令牌进行检索.但是,如何让外部Web应用程序(例如)节点访问此服务?

I have IBM COS service and able to use Curl command via cli to retrieve objects. I used IAM tokens to retrieve. But how do I let an external web app ex., node access this service?

外部应用访问权限中应该有什么值?

what value should be there in authorization for external app access?

推荐答案

外部应用程序的形式类似于 Java Node.Js

External apps will come in the form of something like the AWS CLI or any other app that uses either an HTTP library coupled with IBM Cloud Object Storage API or even an SDK for languages like Python, Java or Node.Js

以上所有内容都将要求您提供访问密钥秘密密钥.

All of the above will ask you for access key and secret key.

您可以通过生成新的HMAC凭证[1]从IBM Cloud控制台中同时获取它们:

You can get both of them from the IBM Cloud console by generating new HMAC Credentials [1]:

  1. 导航到您的Cloud Object存储帐户
  2. 单击服务凭据"下的右键
  3. 单击右侧的新凭据"按钮
  4. 对于添加内联配置参数(可选)"文本框,输入以下JSON: {"HMAC":true}
  1. Navigate to your Cloud Object storage account
  2. Click on right under Service credentials
  3. Click New credentials button on right
  4. For the "Add Inline Configuration Parameters (Optional)" text box enter the following JSON: {"HMAC":true}

[1] https://console.bluemix.net/docs/services/cloud-object-storage/iam/service-credentials.html#service-credentials

这篇关于外部应用程序如何访问ibm云对象存储的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆