묻고답하기

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 남기남
다미아빠 XE를 위한 서버 대해서 질문합니다. [36] file 2015.07.30 by 다미아빠
boorigong 토글레이어 쿠키 적용법 문의드립니다. file  
KOTRA1 랜덤 익명을 md5로 처리하면 작성자가 누구인지 알 수 있나요? [3] 2015.08.11 by KOTRA1
내별명4d4d4 html이 먹히지 않습니다 [1] 2015.08.20 by 닉이
PeuG 익명 게시판 익명 방식 관련 질문 [1] 2015.08.26 by 기진곰
이주연743 갑자기 워닝 이게 왜그럴까요? [2] 2015.08.26 by 퍼니엑스이
김깔끔 홈페이지 접속하면 수시로 http 500 내부서버오류 가 뜹니다. [2] 2015.09.02 by 김깔끔
천화케빈 HTTP 500 내부 오류 ㅠㅠ [3] 2015.09.03 by 꾸링
꼬무다라이 xe 코어 업데이트 쉬운설치 클릭 후 홈피 다운~ [3] 2015.09.11 by treasurej
sundriespds 업데이트 오류 [1] 2015.09.11 by treasurej
용가리13호 로그인 스킨 변경 후 로그인 문제 [2] file 2015.09.15 by 용가리13호
과니 관리자 페이지 접속시 500 에러 디버깅 방법 문의 [3] file 2015.09.16 by 배워서남준다
voszmffjq 마퀴태그 질문좀요 [3] 2015.09.17 by voszmffjq
가르송 확실히 알려주시는분께 만원쏩니당 [3] 2015.09.18 by DoorWeb
가르송 mysql 전문가님들 안계신가요?ㅠㅠ [1] file 2015.09.18 by 기진곰
GodBlessYou 업데이트후 http 500 내부서버오류.. [1] 2015.09.19 by 기진곰
장기기억 xe에 webengine 레이아웃 수정법 [1] 2015.09.22 by 로이조52
갤럭시탭 추천/비추천 후 팝업창 노출 문의 [1] 2015.09.22 by EISOFT
first 중대형 커뮤니티 운영 관련해 서버 선택 질문 드립니다 [9] 2015.09.25 by first
김유석 API에 관해 질문좀..ㅠㅠ 제발..