Help us understand the problem. What is going on with this article?

Cloudstack APIのSignature生成方法

More than 1 year has passed since last update.

IDCFクラウドとCloudnがCloudstackベースのサービスであり、それらのサービスをREST APIで操作する際にCloudstack APIのSignatureが必要となるため、その生成方法のメモです。

  • apikey=<API Key>&command=listVirtualMachines の箇所へ、Signatureを除いたクエリ文字列を定義する
  • クエリ文字列は、予めKeyの順序をアルファベット昇順にソートしておく
echo -n \
`echo "apikey=<API Key>&command=listVirtualMachines" | tr A-Z a-z` \
| openssl sha1 -binary -hmac '<Secret Key>' \
| openssl base64 \
| nkf -WwMQ \
| tr = %
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away