-
Notifications
You must be signed in to change notification settings - Fork 9
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
createOnDemandMssqlBackup Wait For Completion #61
Comments
Resolution here depends on first resolving #60 |
My work around:
|
Change the values for $ClusterName, $HostName, and $DatabaseName to values for your environment. Then in the code, change the line
|
Tnx Chris. |
@clumnah, I want to periodically check the status of a snapshot export. There is no "cluster" setup. I have the source AG/instance/host/db names. How do I query that? The above sample code doesn't work since I do not have a cluster (nor is it possible to set it up by me, we mainly use it take snapshots periodically). Also, the service account doesn't have admin rights for security reasons. After queuing up an export the response is something like this.. |
I do not follow your question. If you are using Rubrik to backup a MSSQL Database, then you have to have a cluster to write the backups to. Can you clarify what you mean? |
(from the above code sample)
On the Rubrik's website, under Inventory > SQL Server Databases, I see a list of hosts/instances. They all have a Cluster (as shown in one of the columns on that list). When I put in that name, the GET-RscCluster doesn't return anything. So I assumed it required some other "cluster" info (e.g. on the Rubrik's UI/dashboard > Clusters tab, this shows "0 total clusters"). How do I get the data in that case? Also, the following query seems to require admin rights for the SA (believe this is the query being called for
I'm trying to fetch status of an export I queued up at an interval. When I queue up an export, below is the response. How do I query the status for this id until it succeeds or fails? Your sample code seems to be the answer but I haven't had a success with it for aforementioned reasons.
|
I think this will be best served via a Support Ticket. This is is no longer about the SDK and about the RBAC permissions you need to get the cluster info and account name. You can shortcut the account name by looking at your RSC URL and take the part before the my.rubrik.com. However not having cluster info will be a bigger issue that you still need to solve. While you may not be using replication now, if you do, you wont be able to do actions without the cluster object. I can help the support tech once the ticket is in if they need it. |
@clumnah : There's is already an open support ticket. If you are ok, may I shoot you an email (at the email specified in your profile) with the ticket number (unsure if DM's work on github)? |
The graphql response to this says "only user with Admin or Owner role allowed to access the field". |
Yes, that is fine. |
-WaitForCompletion works after upgrade to Rubrik cmdlet (9.0.1) $Database_ids | ForEach-Object{ $backup_job = New-RubrikSnapshot -id $_ -SLA $Sla -Confirm:$false Get-RubrikRequest -id $backup_job.id -Type mssql -WaitForCompletion #-Verbose } |
Hello,
We have been using the older CDM Powershell module and are looking to move to this one. The equivalent to using the createOnDemandMssqlBackup mutation in the older CDM Powershell SDK allowed us to add a flag to wait for the job to complete. Can this flag be added to this mutation to bring its capabilities in line with the older SDK?
By not including that option it's now on the customer to write their own wait logic which we are struggling to find a cmdlet that will provide us the the status based on the job id let alone iterate on it until it finishes.
The text was updated successfully, but these errors were encountered: