This PR enables support for the CDM SDK to transparently consume GraphQL APIs from the RSC SDK
Added Test-ManagedByRSC,Get-RubrikRSCVM,Get-RubrikRSCDatabase,Get-RubrikRSCFileset,Get-RubrikRSCFilesetTemplate,Get-RubrikRSCHost,Get-RubrikNutanixVM,Get-RubrikHyperVVM, Get-RubrikRSCSla, Get-RubrikRSCSqlInstance, New-RubrikRSCSla, Set-RubrikRSCSla, Set-RubrikRSCSqlInstance, Set-RubrikRSCDatabase,Protect-RubrikRSCVM,Protect-RubrikRSCHyperVVM,Protect-RubrikRSCDatabase, and Protect-RubrikRSCNutanixVM to support integration into the RSC PowerShell SDK
Modified Connect-Rubrik to detect if cluster is managed by RSC - if it is, redirect certain cmdlets to GQL Endpoints
Added a new -RedirectToRSC parameter to Connect-Rubrik to turn redirection to GQL endpoints on or off
Added new global variables RSCInstance,clusterId, and RSCHeaders to rubrikConnection
Modified Get-RubrikSla,Get-RubrikVM,Get-RubrikHyperVVM, Get-RubrikNutanixVM,Get-RubrikFileset,Get-RubrikFilesetTemplate,Get-RubrikHost,Get-RubrikDatabase, Get-RubrikSqlInstance, New-RubrikSla, Set-RubrikSqlInstance, Set-RubrikSla, Set-RubrikDatabase,Protect-RubrikDatabase,Protect-RubrikVM,Protect-RubrikNutanixVM, and Protect-RubrikHyperVVM to redirect to newly added (above) cmdlets that call GQL endpoints
Motivation and Context
Allows end users to continue to use the CDM SDK with their scripts, but redirection will happen in the code behind
How Has This Been Tested?
Tested within the TM lab
Screenshots (if appropriate):
Types of changes
What types of changes does your code introduce? Put an x in all the boxes that apply:
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist:
Go over all the following points, and put an x in all the boxes that apply. If you're unsure about any of these, don't hesitate to ask. We're here to help!
[x] My code follows the code style of this project.
[x] My change requires a change to the documentation.
Description
This PR enables support for the CDM SDK to transparently consume GraphQL APIs from the RSC SDK
Test-ManagedByRSC
,Get-RubrikRSCVM
,Get-RubrikRSCDatabase
,Get-RubrikRSCFileset
,Get-RubrikRSCFilesetTemplate
,Get-RubrikRSCHost
,Get-RubrikNutanixVM
,Get-RubrikHyperVVM
,Get-RubrikRSCSla
,Get-RubrikRSCSqlInstance
,New-RubrikRSCSla
,Set-RubrikRSCSla
,Set-RubrikRSCSqlInstance
,Set-RubrikRSCDatabase
,Protect-RubrikRSCVM
,Protect-RubrikRSCHyperVVM
,Protect-RubrikRSCDatabase
, andProtect-RubrikRSCNutanixVM
to support integration into the RSC PowerShell SDKConnect-Rubrik
to detect if cluster is managed by RSC - if it is, redirect certain cmdlets to GQL Endpoints-RedirectToRSC
parameter toConnect-Rubrik
to turn redirection to GQL endpoints on or offRSCInstance
,clusterId
, andRSCHeaders
to rubrikConnectionGet-RubrikSla
,Get-RubrikVM
,Get-RubrikHyperVVM
,Get-RubrikNutanixVM
,Get-RubrikFileset
,Get-RubrikFilesetTemplate
,Get-RubrikHost
,Get-RubrikDatabase
,Get-RubrikSqlInstance
,New-RubrikSla
,Set-RubrikSqlInstance
,Set-RubrikSla
,Set-RubrikDatabase
,Protect-RubrikDatabase
,Protect-RubrikVM
,Protect-RubrikNutanixVM
, andProtect-RubrikHyperVVM
to redirect to newly added (above) cmdlets that call GQL endpointsMotivation and Context
Allows end users to continue to use the CDM SDK with their scripts, but redirection will happen in the code behind
How Has This Been Tested?
Tested within the TM lab
Screenshots (if appropriate):
Types of changes
What types of changes does your code introduce? Put an
x
in all the boxes that apply:Checklist:
Go over all the following points, and put an
x
in all the boxes that apply. If you're unsure about any of these, don't hesitate to ask. We're here to help!