digitalocean / digitalocean/api-v2

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

Open
#202 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
138
Forks
16
PR merge metrics
No merged PRs in 30d

Description

The droplet not listed in the droplets list response even after successful request to create droplet endpoint.
Request using pydo
```python
droplets = client.droplets.create({
"name": "xxx",
"region": "nyc1",
"size": "xxx",
"image": "xxx",
...
```

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

But in the list it show 0 containers with the name
```json
{"droplets": [], "links": {}, "meta": {"total": 0}}
```
After couple of seconds then it actually listed

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.