Giter Site home page Giter Site logo

Comments (4)

issue-label-bot avatar issue-label-bot commented on May 16, 2024

Issue Label Bot is not confident enough to auto-label this issue. See dashboard for more details.

from cb-tumblebug.

jihoon-seo avatar jihoon-seo commented on May 16, 2024
  1. UUID 삭제: UUID 를 생성하여 사용하지 않고, 사용자가 TB 객체 이름으로 사용하기 위해 제공한 string 을 TB 객체 ID 로 사용합니다. (id <= name)
  2. connectionName 남겨놓거나, 또는 region 필드 추가: connectionName 남겨놓았습니다.
  3. cspImageID / cspImageName 을 Identifier 로 사용: 위의 1번 내용과 같이 변경되었습니다.

  1. 현재 RegisterImageWithInfo API 제공: 아래 5번이 완료된 이후, 필요 시 deprecate 시킬 수 있습니다.
  2. RegisterImageWithID API 안정화: Spider 에서 spec 관련 기능을 제공해 주셨던 것처럼 image 관련 기능도 제공해 주실 예정입니다. => 이후 TB RegisterImageWithID API 안정화 진행
  3. GetImageInfo API 제공 (아니면, 이 기능을 Webtool 에서 제공하는 방안도 있음): 5번과 동일합니다.

from cb-tumblebug.

jihoon-seo avatar jihoon-seo commented on May 16, 2024

Ref: cloud-barista/cb-spider#239

from cb-tumblebug.

jihoon-seo avatar jihoon-seo commented on May 16, 2024

[Request to Spider] (in cb-tumblebug/test/official/6.image/spider-get-image.sh)

curl -H "${AUTH}" -sX GET http://$SpiderServer/spider/vmimage/${IMAGE_NAME[$INDEX,$REGION]} -H 'Content-Type: application/json' -d '{ "ConnectionName": "'${CONN_CONFIG[$INDEX,$REGION]}'" }' | json_pp

[Response from Spider]

{
   "IId" : {
      "SystemId" : "ami-085925f297f89fce1",
      "NameId" : "ami-085925f297f89fce1"
   },
   "KeyValueList" : [
      {
         "Key" : "CreationDate",
         "Value" : "2020-04-09T16:44:13.000Z"
      },
      {
         "Value" : "x86_64",
         "Key" : "Architecture"
      },
      {
         "Value" : "099720109477",
         "Key" : "OwnerId"
      },
      {
         "Key" : "ImageType",
         "Value" : "machine"
      },
      {
         "Key" : "ImageLocation",
         "Value" : "099720109477/ubuntu/images/hvm-ssd/ubuntu-bionic-18.04-amd64-server-20200408"
      },
      {
         "Key" : "VirtualizationType",
         "Value" : "hvm"
      },
      {
         "Value" : "true",
         "Key" : "Public"
      },
      {
         "Value" : "ubuntu/images/hvm-ssd/ubuntu-bionic-18.04-amd64-server-20200408",
         "Key" : "Name"
      },
      {
         "Key" : "Description",
         "Value" : "Canonical, Ubuntu, 18.04 LTS, amd64 bionic image build on 2020-04-08"
      },
      {
         "Value" : "/dev/sda1",
         "Key" : "RootDeviceName"
      },
      {
         "Value" : "ebs",
         "Key" : "RootDeviceType"
      },
      {
         "Key" : "EnaSupport",
         "Value" : "true"
      }
   ],
   "Status" : "available",
   "GuestOS" : ""
}

[Request to Spider] (in cb-tumblebug/test/official/6.image/spider-get-imagelist.sh)

curl -H "${AUTH}" -sX GET http://$SpiderServer/spider/vmimage -H 'Content-Type: application/json' -d '{ "ConnectionName": "'${CONN_CONFIG[$INDEX,$REGION]}'" }' | json_pp

[Response from Spider]

{
   "image" : [
      {
         "GuestOS" : "",
         "Status" : "available",
         "IId" : {
            "NameId" : "ami-0000025f7c02a13b2",
            "SystemId" : "ami-0000025f7c02a13b2"
         },
         "KeyValueList" : [
            {
               "Value" : "2020-07-21T18:19:08.000Z",
               "Key" : "CreationDate"
            },
            {
               "Value" : "x86_64",
               "Key" : "Architecture"
            },
            {
               "Value" : "137112412989",
               "Key" : "OwnerId"
            },
            {
               "Key" : "ImageType",
               "Value" : "machine"
            },
            {
               "Key" : "ImageLocation",
               "Value" : "amazon/amzn-ami-hvm-2018.03.0.20200716.0-x86_64-ebs"
            },
            {
               "Key" : "VirtualizationType",
               "Value" : "hvm"
            },
            {
               "Key" : "Public",
               "Value" : "true"
            },
            {
               "Value" : "amzn-ami-hvm-2018.03.0.20200716.0-x86_64-ebs",
               "Key" : "Name"
            },
            {
               "Key" : "Description",
               "Value" : "Amazon Linux AMI 2018.03.0.20200716.0 x86_64 HVM ebs"
            },
            {
               "Value" : "amazon",
               "Key" : "ImageOwnerAlias"
            },
            {
               "Key" : "RootDeviceName",
               "Value" : "/dev/xvda"
            },
            {
               "Value" : "ebs",
               "Key" : "RootDeviceType"
            },
            {
               "Key" : "EnaSupport",
               "Value" : "true"
            }
         ]
      },
...

from cb-tumblebug.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.