api-v2 icon indicating copy to clipboard operation
api-v2 copied to clipboard

Droplet list endpoint not directly list droplet that just been created from successful create droplet endpoint.

Open fikrapdso opened this issue 7 months ago • 0 comments

The droplet not listed in the droplets list response even after successful request to create droplet endpoint. Request using pydo

droplets = client.droplets.create({
            "name": "xxx",
            "region": "nyc1",
            "size": "xxx",
            "image": "xxx",
...

Response

{"droplet": {"id": 1234567,
  "name": "xxxxxx",
  "memory": 245760,
  "vcpus": 20,
  "disk": 720,
  ...
  "status": "new",
  ...
}}

But in the list it show 0 containers with the name

{"droplets": [], "links": {}, "meta": {"total": 0}}

After couple of seconds then it actually listed

{"droplets": [{"id": 123456789,
   "name": "xxxxxx",
   "memory": 245760,
   "vcpus": 20,
   "disk": 720,
   ...
   "status": "new",
   ...
}]}

fikrapdso avatar May 19 '25 05:05 fikrapdso