Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with the list_snapshots_all() method #186

Closed
laleye opened this issue May 22, 2023 · 3 comments
Closed

Problem with the list_snapshots_all() method #186

laleye opened this issue May 22, 2023 · 3 comments

Comments

@laleye
Copy link

laleye commented May 22, 2023

Problem Description

When I use the list_snapshots_all() method without any parameters, it returns an empty list as result, whereas it's expected to return all the snapshots according to the method's description.

Steps to Reproduce

from scaleway.instance.v1 import InstanceV1API as api
snapshots = api.list_snapshots(zone=default_zone)

Expected Behavior

The list_snapshots_all() method should return all the snapshots with the default parameters.

@quantumsheep
Copy link
Member

Hey 👋 Try to set the organization parameter to your organization id findable here.

@laleye
Copy link
Author

laleye commented May 23, 2023

Thanks,
It works with organization argument.

@quantumsheep
Copy link
Member

Glad it worked :) It's optional because it can be retrieved from your default_organization_id, kind of confusing I agree

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

No branches or pull requests

2 participants