묻고답하기

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] 2016.07.13 by 마야
후밍 기존사이트에 XE 게시판을 적용시키고 싶습니다 [4] 2016.07.13 by 후밍
파털 게시판 '첨부' 안보이게 [2] 2016.07.13 by 파털
왕킥굳킥 sms관련 질문입니다. [1] file 2016.07.13 by mAKEkr
와우 contact us 게시판 필수기재항목 변경 file  
fkjsdklls 스마트폰에서 pc화면 보기를 하면 [4] file 2016.07.13 by fkjsdklls
미연조 위젯코드를 layout.html에 붙이면 백지가 되네요.ㅠ(혹시sftp 문제인가요?) [2] file 2016.07.13 by 미연조
아기만세 글쓰기, 게시판 정보 변경도 mysql 에러가 발생하네요. [4] 2016.07.13 by 아기만세
단기종합 게시판상 정렬 질문 [1] 2016.07.13 by sejin7940
레몬사탕 코어버전 1.8.22 사용중 입니다  
AvAtAr board.view.php 파일에서 nick_name값을 가져오려면 어찌해야 하나요... [2] 2016.07.13 by AvAtAr
starship v1.8.22를 사용중입니다 [1] 2016.07.13 by 디자인클립
미소천사그대 모바일 로그인 빈페이지 나오는현상 질문입니다 [5] 2016.07.13 by 닥터맨
별님왕자 #2038 , #500에러가 계속 발생해요. [5] 2016.07.13 by mAKEkr
starship 회원 가입 메뉴 밖으로 끄집어내기 [5] 2016.07.13 by mAKEkr
starship 회원가입폼 수정 [1] file 2016.07.12 by sejin7940
살수천사 관리자 페이지 로그인이 안되는 현상에 대해 질문드립니다. [2] file 2016.07.12 by 살수천사
박라비 Jquery 에디터 충돌 문제... [2] 2016.07.12 by 박라비
starship 회원가입메뉴를 왜 숨겨놓으셨을까요.. [2] 2016.07.12 by starship
벼뤼총총 글보기화면처럼 메인에 뿌려주는 방법 [2] 2016.07.12 by 벼뤼총총