묻고답하기

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 남기남
부루팡 기관 홈페이지가 이상합니다...도와주세요 고수님들.. [1] file 2016.07.12 by mAKEkr
승주짱 겔러리 위젯 폰트/사이즈 수정 [1] 2016.07.12 by mAKEkr
강남지식산업센터 드림위버로 작업했는데 [3] 2016.07.12 by mAKEkr
강밍키 패리밀 사이트 적용시 슬라이드 오류 file  
YT애피 XE에서 로그인이 안됩니다. [1] 2016.07.12 by gg****
sky 좀 도와 주세요 구글에서 검색 [1] 2016.07.12 by gg****
starship 문서, 모듈 생성하는 방법 [2] 2016.07.12 by starship
승주짱 게시판에 이미지추가 [2] 2016.07.12 by 승주짱
호놀룰루 문의 [1] 2016.07.12 by YJSoft
앙기모찌 호스팅이전후 DB접속오류 [1] 2016.07.12 by 앙기모찌
레토나 xe 롤오버 큰문제 있는것같습니다. [2] 2016.07.12 by 레토나
왕킥굳킥 m.도메일.co.kr로 바꾸고싶은데 도와주세요 ㅠ [4] 2016.07.12 by 비누남어
승주짱 월간일정 [2] file 2016.07.12 by 승주짱
포그미 홈페이지를 비공개로 하려면? [1] 2016.07.12 by sejin7940
PodongS2 게시판 NEW 노출시간 설정 궁금합니다!! [5] 2016.07.12 by Xe재미나게
uppylook 1일 1회 추천할수 있는 방법을 알려주세요...  
마이미2 카테고리 번호 구하기 [2] 2016.07.11 by 마이미2
썬5644 게시판을 레이아웃의 중앙에 배치하는법... [2] file 2016.07.11 by 썬5644
그대만 누리고 결제모듈 [1] 2016.07.11 by sejin7940
fkjsdklls 급피곤하네요,,메인페이지에 배너 넣으려는 데 .. [3] file 2016.07.11 by fkjsdklls