0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Cloudstack APIのSignature生成方法

Last updated at Posted at 2018-09-11

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 = %
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?