Start a Conversation

Unsolved

This post is more than 5 years old

1032

July 26th, 2016 19:00

ECS Billiing API not working?

こちらのAPIを検証

https://www.emc.com/techpubs/api/ecs/v2-2-1-0/BillingService_getBucketBillingInfo_3c3f544bfab1c67133eddd7688625146_7192a…

実行したCurlコマンド

curl -X POST -k -H "X-SDS-AUTH-TOKEN: '"$ECS_AUTH_TOKEN"'" -H "Content-Type : application/json" https://ipaddress:4443/object/billing/buckets/dev-ns01/info.json?sizeunit=KB -d '{"id": ["dev-bucket01", "dev-bucket02"]}'

結果

{"code":1003,"retryable":false,"description":"Unsupported or missing media type"}

仕様通りパラメータをしていると思いますが、エラーが返ってきて、何かの間違いがあるのでしょうか

110 Posts

July 27th, 2016 09:00

Remove the space after Content-Type.  I.e. -H "Content-Type: application/json"

1 Rookie

 • 

14 Posts

December 3rd, 2020 22:00

I am also try to do same it was not working Anyone share the working API command to get metering capacity details using power BI API Get Request. For that I need to pull the data 

How to pull report for below end point using curl 

/object/billing
/object/bucket
/object/capacity
/object/namespaces

No Events found!

Top