-
Notifications
You must be signed in to change notification settings - Fork 87
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
Get-RubrikSnapshot by snapshot id #743
Comments
Hi Sam, thanks for reporting this, I've given it some thought and this is what I came up with. I would be looking at implementing it like this, specifying the snapshot type and the snapshot id, similar to how Get-RubrikSnapshot -SnapshotId 1234 -SnapshotType vmware/vm & Get-RubrikSnapshot -SnapshotId 1234 Would that be a workable solution, it will provide the option to either specify the endpoint manually, or by having the cmdlet determine the snapshot type by querying all the snapshot endpoints, which would mean the cmdlet will query all the snapshot endpoints in order to determine what type of object is protected by the cmdlet. What do you think? |
Hi Jaap, That solution sounds fine to me. Thanks! |
Hello @sam-bryant, I've taken a stab at the code, it's available in the jaap-snapshot branch and queued for review in PR #746. Let me know what you think! Regards, Jaap |
Summary
I'm trying to retrieve data on a specific snapshot. I already have the snapshot id, so I'd like to query on this directly rather than passing in the object the snapshot is associated with.
Desired solution
Get-RubrikSnapshot -SnapshotId 1234
Current workaround
Invoke-RubrikRESTCall -Endpoint "mssql/db/snapshot/1234" -Method GET
Let me know if I can provide any additional information.
Thanks,
Sam
The text was updated successfully, but these errors were encountered: