Skip to content

Private Images Not Included in List Command #297

Open
@utkonos

Description

@utkonos

The vagrant digitalocean-list images does not include private images that are available on the account belonging to the token provided. I looked at the client:

https://github.com/devopsgroup-io/vagrant-digitalocean/blob/master/lib/vagrant-digitalocean/helpers/client.rb

It looks like this handles pagination, so that I don't think is the issue (private images are always at the end of the list of images. This can be page 2 and on. So, if pagination is not implemented properly, they will never be in the list.

In the API documentation there is a query parameter that can be used to filter for only private images. /v2/images?private=true

https://docs.digitalocean.com/reference/api/api-reference/#operation/images_list:~:text=type%3Dapplication.-,User%20Images,-To%20retrieve%20only

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions