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

RFE : Request for Remove-RubrikSnapshot #148

Closed
dewbrik opened this issue Dec 5, 2017 · 2 comments
Closed

RFE : Request for Remove-RubrikSnapshot #148

dewbrik opened this issue Dec 5, 2017 · 2 comments

Comments

@dewbrik
Copy link

dewbrik commented Dec 5, 2017

Expected Behavior

Currently there is no dedicated cmdlet to remove a Rubrik backup. Invoke-RubrikRESTCall can support this task, but having a cmdlet that can take a pipeline input from cmdlets such as Get-RubrikVM or Get-RubrikFileset and remove a backup(s) would simplify a workflow.

For example, if I want to be able to remove backup of relics that are 30 days or older, I want to be able to do something like this:

Get-RubrikVM TestVM1 | ?{$_.isRelic -eq $true} | Get-RubrikSnapshot | {$_.date -lt (Get-date).adddays(-30).tostring("yyyy-MM-ddTHH:mm:ssZ")} | Remove-RubrikSnapshot

Current Behavior

Currently, we have to produce a snapshot ID and then feed it into Invoke-RubrikRESTCall. It's not impossible, but it's not as intuitive as it would be if a cmdlet to remove a backup that can take a pipeline input were available. For example, my line to invoke the forementioned REST call looked like this:

Invoke-RubrikRESTCall -Endpoint 'vmware/vm/snapshot/d7d8dd59-3e5c-4f23-88aa-b6b5cadb0f4d' -Method DELETE -Query (new-object -typename psobject -property @{'location'='all'})

This is specific to VM backups. I suspect the endpoint path would look different for databases and filesets.


@chriswahl chriswahl added this to the Refactor milestone Mar 7, 2018
@clumnah clumnah assigned clumnah and unassigned jaapbrasser Feb 19, 2019
@chriswahl chriswahl removed this from the Refactor milestone Mar 14, 2019
@chriswahl chriswahl assigned jaapbrasser and unassigned clumnah Mar 28, 2019
@jaapbrasser
Copy link
Contributor

Hello @dewbrik,

We have started developing the requested feature, our apologies for the delay in picking this up. This functionality will be available within a couple of days.

@shamsway
Copy link
Contributor

Resolved by PR #308

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

5 participants