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

前端 未结 1 1879
轮回少年
轮回少年 2021-01-28 04:48

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 us

1条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-28 05:06

    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.

    0 讨论(0)
提交回复
热议问题