You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PS C:\Users\mrtim>$all_filesets=Get-RubrikFileset-SLA $sla_data.name-PrimaryClusterId $sla_data.primaryclusterid-Verbose
VERBOSE: Validate the Rubrik token exists
VERBOSE: Found a Rubrik token for authentication
VERBOSE: Gather API DataforGet-RubrikFileset
VERBOSE: Selected 1.0 API DataforGet-RubrikFileset
VERBOSE: Load API datafor/api/v1/fileset
VERBOSE: Description: Retrieve summary information for each fileset. Optionally, filter the retrieved information.
VERBOSE: Primary cluster ID currently set to:
VERBOSE: Null value found. Setting primary cluster ID to local
VERBOSE: Determining the SLA Domain id
VERBOSE: Validate the Rubrik token exists
VERBOSE: Found a Rubrik token for authentication
VERBOSE: Gather API DataforGet-RubrikSLA
VERBOSE: Selected 5.0 API DataforGet-RubrikSLA
VERBOSE: Load API dataforGet-RubrikSLA
VERBOSE: Description: Retrieve summary information for all SLA Domains
VERBOSE: Build the URI
VERBOSE: URI = https://172.200.300.400/api/v2/sla_domain
VERBOSE: Build the query parameters for primary_cluster_id
VERBOSE: URI = https://172.200.300.400/api/v2/sla_domain?primary_cluster_id=local
VERBOSE: Submitting the request
VERBOSE: GET https://172.200.300.400/api/v2/sla_domain?primary_cluster_id=local with 0-byte payload
VERBOSE: received 22835-byte response of content type application/json; charset=UTF-8
VERBOSE: Received HTTP Status 200
VERBOSE: Formatting return value
VERBOSE: Filter the results
VERBOSE: Filter match = Name
No SLA Domains were found that match TH-CascadingArchiveTest for local
At C:\Users\mrtim\Documents\WindowsPowerShell\Modules\Rubrik\5.0.1\Private\Test-RubrikSLA.ps1:36 char:7+throw"No SLA Domains were found that match $SLA for $PrimaryCl ...+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : OperationStopped: (No SLA Domains ...eTest for local:String) [], RuntimeException + FullyQualifiedErrorId : No SLA Domains were found that match TH-CascadingArchiveTest for localPS C:\Users\mrtim>
Context:
Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.
Rubrik PowerShell Module Version: 5.0.1
PowerShell Version: 5.1
Operating System: Microsoft Windows 10
Failure Logs
Please include any relevant log snippets or files here, IMPORTANT all information will be visible publicly on GitHub. Do not include computer or user names, passwords, API tokens or any identifiable information when submitting failure logs.
The text was updated successfully, but these errors were encountered:
I have updated the cmdlet and also implemented overrides that might cause additional bugs through the use of $PSDefaultParameterValues. The changes will be merged into the next release of the module!
Current Behavior:
Get-RubrikVM
uses the following code to test the SLA before firing the request:$SLAID = Test-RubrikSLA -SLA $SLA -Inherit $Inherit -DoNotProtect $DoNotProtect -PrimaryClusterID $PrimaryClusterID
The following cmdlets use different code:
Get-RubrikFileset
Get-RubrikNutanixVM
Get-RubrikHyperVVM
Get-RubrikDatabase
Get-RubrikManagedVolume
Get-RubrikVolumeGroup
These use:
$SLAID = Test-RubrikSLA -SLA $SLA -Inherit $Inherit -DoNotProtect $DoNotProtect
And because
Test-RubrikSLA
defaults toPrimaryClusterID="local"
, we cannot search for these objects when passing a remote SLA.Expected Behavior:
If we pass
primaryclusterid
to these cmdlets they should honour it, and work for remote SLAs.Steps to Reproduce:
Store a remote SLA domain as
$sla_data
, run following:$all_mvs = Get-RubrikManagedVolume -SLA $sla_data.name -PrimaryClusterId $sla_data.primaryclusterid
You will see something like this:
Context:
Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.
Failure Logs
Please include any relevant log snippets or files here, IMPORTANT all information will be visible publicly on GitHub. Do not include computer or user names, passwords, API tokens or any identifiable information when submitting failure logs.
The text was updated successfully, but these errors were encountered: