rubrikinc / rubrik-sdk-for-python

Rubrik SDK for Python
https://build.rubrik.com/sdks/python/
MIT License
29 stars 38 forks source link

please create a get_snapshot() function #245

Open JanosPesti opened 4 years ago

JanosPesti commented 4 years ago

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