묻고답하기

API를 사용하려면 토큰을 발급받아야 된다는데 뭐가 토큰인지 모르겠습니다.

API토큰발급 페이지: https://translate.google.com/translate?sl=auto&tl=ko&js=y&prev=_t&hl=ko&ie=UTF-8&u=https%3A%2F%2Fwww.conoha.jp%2Fdocs%2Fidentity-post_tokens.html&edit-text=&act=url

 

예제가 있는데 이중 뭐가 토큰인가요?

HTTP / 1.1 200 OK
 Date : Mon, 08 Dec 2014 02:40:56 GMT
 Server : Apache
 Content-Length : 4572
 Content-Type : application / json

 {
   "access": {
     "token": {
       "issued_at": "2015-05-19T07 : 08 : 21.927295"
       "expires": "2015-05-20T07 : 08 : 21Z"
       "id": "sample00d88246078f2bexample788f7"
       "tenant": {
         "name": "gnct00000000"
         "enabled": true,
         "tyo1_image_size": "550GB"
           }
         ,
         "endpoints_links": [],
         "type": "mailhosting"
         "name": "Mail Hosting Service"
       },
       {
         "endpoints":
           {
             "region": "tyo1"
             "publicURL": "https://dns-service.tyo1.conoha.io"
           }
         ,
         "endpoints_links": [],
         "type": "dns"
         "name": "DNS Service"
       },
       {
         "endpoints":
           {
             "region": "tyo1"
             "publicURL": "https://object-storage.tyo1.conoha.io/v1/nc_a4392c0ccba74485abd58ec123eca824"
           }
         ,
         "endpoints_links": [],
         "type": "object-store"
         "name": "Object Storage Service"
       },
       {
         "endpoints":
           {
             "region": "sjc1"
             "publicURL": "https://identity.sjc1.conoha.io/v2.0"
           },
           {
             "region": "tyo1"
             "publicURL": "https://identity.tyo1.conoha.io/v2.0"
           },
           {
             "region": "sin1"
             "publicURL": "https://identity.sin1.conoha.io/v2.0"
           }
         ,
         "endpoints_links": [],
         "type": "identity"
         "name": "Identity Service"
       }
     ,
     "user": {
       "username": "gncu00000000"
       "roles_links": [],
       "id": "examplea6963c074d7csample12a886ee"
       "roles":
         {
           "name": "SwiftOperator"
         },
         {
           "name": "_member_"
         }
       ,
       "name": "gncu00000000"
     },
     "metadata": {
       "is_admin": 0,
       "roles":
         "0000000000000000000000000000000e"
         "11111111111111111111111111111113"
       ]
     }
   }
 }

 

 

아래 토큰번호에 위 예제중 뭐가 들어가야 되나요?

curl -i -X​​ POST \
 -H "Accept : application / json"\
 -H "X-Auth-Token : 토큰번호"\
 -d '{ "os-stop": { "force_shutdown": true}}'\
 https://compute.tyo1.conoha.io/v2/1864e71d2deb46f6b47526b69c65a45d/servers/997d6052-4b17-4500-8d41-c08fb9667aae/action 
글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
jjjnnn 포인트 노출 등 질문3가지인데요..  
DavidBeckham 페이지 수정 질문드립니다.. [1] 2011.05.13 by 송동우
kinneret 회원가입이 되었다 안되었다 합니다.  
jjjnnn 질문들입니다 도와주세요 ㅠㅠ  
cosmo 게시판에 스팸글 어떻게해야할까요.ㅠㅠ [1] 2011.05.13 by 송동우
블루77 로그인시에 포인트를 줄 경우 [1] 2011.05.13 by 공듀
이광호281 트래킹 코드 어디다가 넣어야 하는지좀 알려주세요~! [1] 2011.05.13 by fsfsdas
하늘(skycheer) 치명적 오류 [1] file 2011.05.13 by fsfsdas
여유1004 어느날 갑자기 창이 하얏게 보이네요. 고수님들 도와 주세요 [1] 2011.05.13 by fsfsdas
임양수 ㅜㅜ 갑자기 사이트 접속이 안되는군요... [1] 2011.05.13 by fsfsdas
Cloverworld PHP에서 str_replace 는 문자열 내의 모든 문자를 치환하잖아요? 이걸 최초 1회만 치환하고싶습니다. [1] 2011.05.13 by 송동우
백야★ 모듈 선택기가 절.대. 안되는군요.. ㅠㅠ [1] 2011.05.13 by 송동우
Xiso 모듈 레이아웃없애기 [1] 2011.05.13 by 앙까?
장서가 게시판 글을 작성자 별로 목록을 만들어 띄우려면? [1] 2011.05.13 by 앙까?
새소식닷컴 도와주십시요 ㅠㅠ 게시판 첨부업로드에러!!  
석이- 홈페이지에서 특정페이지 바로가기아이콘을 다운받도록 방법??  
ㅣ구공ㅣ 아직도?????? [1] 2011.05.13 by 제이엔지
무돌이 영화정보 게시판에 대해서(본문의 서브메뉴 삽입)  
포토올/wow 팝업 창 뜨기가 안됍니다.ㅠㅠ. 고수님들~도와주세요~ㅠㅠ. [2] 2011.05.14 by 낭만사객
알고싶어용 최근게시물 링크 변경 질문