How do I create HMAC credentials for IBM Cloud Object Storage using the CLI?

吃可爱长大的小学妹 提交于 2019-12-11 17:36:47

问题


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 

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


回答1:


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}'

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



来源:https://stackoverflow.com/questions/51632767/how-do-i-create-hmac-credentials-for-ibm-cloud-object-storage-using-the-cli

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!