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

please create a get_snapshot() function #245

Open
JanosPesti opened this issue Jul 23, 2020 · 0 comments
Open

please create a get_snapshot() function #245

JanosPesti opened this issue Jul 23, 2020 · 0 comments

Comments

@JanosPesti
Copy link

Is your feature request related to a problem? Please describe.
I was trying to get all my unmanaged objects snapshots, that have no assigned retention SLA and assign an SLA to them.
But I need the list of snap ids for the /unmanaged_object/snapshot/assign_sla enpoint. As I have different object types, with Python it is difficult to get the list of snapshots for each object as for mssql DBs, I have to go to GET /mssql/db/{id}/snapshot endpoint, for different objects to different endpoints.

Describe the solution you'd like
I would like to see a similar function as the Get-RubrikSnapshot powershell cmdlet.
The function should get an objectId as input, check it's type and go to the respective endpoint and get the snapshot details for that object.

thanks

Describe alternatives you've considered
I see no alternatives at the moment

Additional context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant