Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Need to fix] REST API result format is different from the JSON Standard & CB-Tumblebug. #136

Closed
powerkimhub opened this issue Mar 10, 2020 · 3 comments
Assignees

Comments

@powerkimhub
Copy link
Member

@seokho-son @jihoon-seo @zephy-mzc
This change affects CB-Tumblebug and CB-WebTool.

  • example of correction
<AS-IS> 
    null 

<TO-BE> 
  {  "driver": [] }

<AS-IS> 
[
        {
            "DriverLibFileName": "aws-driver-v1.0.so",
            "DriverName": "aws-driver01",
            "ProviderName": "AWS"
        }
]

<TO-BE>
{
  "driver": [
        {
            "DriverLibFileName": "aws-driver-v1.0.so",
            "DriverName": "aws-driver01",
            "ProviderName": "AWS"
        }
  ]
}
@powerkimhub powerkimhub self-assigned this Mar 10, 2020
@jihoon-seo jihoon-seo assigned jihoon-seo and unassigned jihoon-seo Mar 11, 2020
@jihoon-seo
Copy link
Member

관련 함수

@powerkimhub
Copy link
Member Author

@powerkimhub
Copy link
Member Author

completed.

  • Now you can get list like this.
$ curl -sX GET http://localhost:1024/spider/vmstatus?connection_name=aws-ohio-config |json_pp
{
   "vmstatus" : [
      {
         "VmStatus" : "Suspended",
         "VmId" : "i-0bdc15983e803e7a8",
         "VmName" : "backup"
      },
      {
         "VmId" : "i-03488fbc4001f7476",
         "VmStatus" : "Suspended",
         "VmName" : "spider1"
      },
      {
         "VmName" : "Park_node1",
         "VmStatus" : "Suspended",
         "VmId" : "i-0d582231c5d2d4642"
      },
      {
         "VmName" : "Park_node2",
         "VmId" : "i-0db92d5774cac2547",
         "VmStatus" : "Suspended"
      },
      {
         "VmName" : "Park_master",
         "VmStatus" : "Suspended",
         "VmId" : "i-089c919eb7bc35eea"
      }
   ]
}

ref) 3d09601

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants