Skip to content

Adjusted Blockstorage V3 Snapshot List Endpoint - #2404

Closed
TaminoWalter wants to merge 2 commits into
gophercloud:mainfrom
TaminoWalter:blockstorage-v3-snapshot-list-detail
Closed

TaminoWalter wants to merge 2 commits into
gophercloud:mainfrom
TaminoWalter:blockstorage-v3-snapshot-list-detail

Conversation

@TaminoWalter

@TaminoWalter TaminoWalter commented May 19, 2022 •

Copy link
Copy Markdown

Replaced the normal list snapshots with the detailed list endpoint url.

Fixes #2403

Links to the line numbers/files in the OpenStack source code that support the
code in this PR:

https://docs.openstack.org/api-ref/block-storage/v3/index.html?expanded=list-accessible-snapshots-detail,list-snapshots-and-details-detail#list-snapshots-and-details

Replaced the normal list snapshots with the detailed list endpoint url.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for submitting your first PR! Be sure that we will be looking at it but keep in mind
this sometimes takes a while.
Please let the maintainers know if your PR has not got enough attention after a few days.
If any doubt, please consult our PR tutorial.

Adjusted the unit tests to provide the /snapshots/detail endpoint for listing snapshots
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 79.992% when pulling fdf0c22 on TaminoWalter:blockstorage-v3-snapshot-list-detail into 0ffab06 on gophercloud:master.

@mandre mandre left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are two different API calls, both valid:

In consequence, we should create a new function (ListDetail()?) in /v3/snapshots/requests.go for the new /v3/{project_id}/snapshots/detail endpoint, rather than updating the List() function to return the detailed list of snapshots.

@mandre

mandre commented Mar 6, 2025

Copy link
Copy Markdown
Contributor

Superseded by #3305

@mandre mandre closed this Mar 6, 2025
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

Successfully merging this pull request may close these issues.

V3 blockstorage snapshot list is using the wrong endpoint

3 participants