koalalorenzo / python-digitalocean

🐍🐳 Python module to manage Digital Ocean droplets
GNU Lesser General Public License v3.0
1.26k stars 301 forks source link

Volume: permit tags #279

Closed rienafairefr closed 5 years ago

rienafairefr commented 5 years ago

Not sure when the DO API started to permit it, but POST on /volumes can specify a tags attribute, which is not possible through python-digitalocean as-is, so I've added the possibility. I tested it on the live API, managed to create a tagged volume. The tags are not visible on the Volumes dashboard, but are GET-able through the API. I've added a unit test for it, I think :-)

koalalorenzo commented 5 years ago

Do you have the link in the DO API docs that shows this? I can merge it if it is there

rienafairefr commented 5 years ago

For sure, https://developers.digitalocean.com/documentation/v2/#block-storage at the bottom of the table, and in other tables in the block storage section In the examples on the right there is sometimes a tag "aninterestingtag" attached to the created/returned volumes