如何使用CLI为IBM Cloud Object Storage创建HMAC凭证? [英] How do I create HMAC credentials for IBM Cloud Object Storage using the CLI?

查看:103
本文介绍了如何使用CLI为IBM Cloud Object Storage创建HMAC凭证?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用IBM Cloud CLI,并尝试为我的云对象存储服务生成凭证.但是,以下命令不会创建使用某些S3工具和API所需的HMAC凭据:

I am using the IBM Cloud CLI and tried to generate credentials for my cloud object storage service. However, the following command does not create HMAC credentials needed for using some S3 tools and APIs:

ibmcloud resource service-key-create cos-hmac-cli Writer --instance-name myobjectstorage 

如何使用命令行界面创建HMAC凭证?

How can I create HMAC credentials using the command line interface?

推荐答案

技巧是提供一个额外的参数来告诉服务也生成HMAC部分:

The trick is to provide an additional parameter that tells the service to generate the HMAC part, too:

ibmcloud resource service-key-create cos-hmac-cli Writer \
--instance-name myobjectstorage --parameters '{"HMAC":true}'

--parameters '{"HMAC":true}'以JSON格式添加功能请求.

The --parameters '{"HMAC":true}' adds the feature request in JSON format.

这篇关于如何使用CLI为IBM Cloud Object Storage创建HMAC凭证?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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