rubrik-sdk-for-powershell icon indicating copy to clipboard operation
rubrik-sdk-for-powershell copied to clipboard

Snapshots size

Open amolsp777 opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe.

Get-RubrikSnapshot should give snapshot size

Describe the solution you'd like

I want to fetch each snapshot size to calculate the differential backup size. Get-RubrikVM -Name "vmname" | Get-RubrikSnapshot

I tried all the possible syntaxes and functions but could not get the Snapshot size or consumption of that VM.

Describe alternatives you've considered

No response

Additional context

No response

amolsp777 avatar Jan 08 '24 17:01 amolsp777

Any update on this ?

amolsp777 avatar Jan 31 '24 23:01 amolsp777

Hi @amolsp777 - We don't have a cmdlet to get snapshot sizes, and the snapshots returned within Get-RubrikVM do not return any storage stats. You can however do the following to get the information you are looking for...

$snapshotid = (Get-RubrikVM VMName | Get-RubrikSnapshot -Latest).id $snapshotinfo = (Invoke-RubrikRestCall -uri "https://cmd_ip/api/v1/snapshot/$snapshotid/storage/stats" -Method GET

$snapshotinfo

That should return some storage stats for you..

mwpreston avatar Jun 13 '24 15:06 mwpreston