4
4

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.

GMO ConoHa 登録手順とログイン、APIトークンの取得まで

4
Last updated at Posted at 2015-06-18

会員登録

https://www.conoha.jp/en/login
を開いてしまった場合、日本語か、このはを選べば表示が日本語になります。

Selection_016.png

手順

  • メールアドレス、パスワードで登録。
    • パスワードは9桁以上。多くのwebサービスは8桁あればOKとみなすが、9桁。これはパスワードの使い回しの防止として良いと思った。
  • 4桁のワンタイムパスワードを電話かSMSで取得し入力。
  • 住所など入力
  • 支払い方法はクレジットカードか、このはチャージ。
    • このはチャージは500円以上が必要。

Selection_015.png

ここまできて、そういえば昔会員登録したような・・・と思って日本語ページを見たら
「2015年5月17日以前にアカウント登録されたお客様はこちら」リンクがあった!!

Selection_017.png

Google+ のアカウントでログインができた。

ログイン後のページ

Selection_018.png

このはモードに切り替えとく

Selection_020.png

API

  • アカウント -> API
  • 使い方はガイドを参照。

トークンの取得

get_token.sh
$ curl \
 -i 'https://********.jp/v2.0/tokens' \
 -X POST \
 -H "Content-Type: application/json" \
 -H "Accept: application/json"  \
 -d '{"auth": {"tenantName": "1234567", "passwordCredentials": {"username": "1234567", "password": "************"}}}'
jqをインストールしておいたほうが良い。
apt-get install -y jq
get_token.sh | tail -n 1 | jq '.'
  • access > token > id の値を用いる。

ConoHaオブジェクトストレージを使ってみる(REST API編)

4
4
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
4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?