I am getting a "not authorized" when running commands and the connect-rsc does not return any output.
PS C:> connect-rsc
PS C:> import-module RubrikSecurityCloud
PS C:> disconnect-Rsc
Disconnect-Rsc: One or more errors occurred. (Call DELETE to "api/session" failed with : Unauthorized)
PS C:> connect-rsc
PS C:> disconnect-Rsc
Disconnect-Rsc: One or more errors occurred. (Call DELETE to "api/session" failed with : Unauthorized)
PS C:> connect-rsc
PS C:> get-rsccluster
ERROR: API Server responded: "The HTTP request failed with status code Unauthorized"
Query: query QueryClusterConnection($first: Int,$after: String,$last: Int,$before: String,$filter: ClusterFilterInput,$sortOrder: SortOrder,$sortBy: ClusterSortByEnum){ clusterConnection ( first: $first after: $after last: $last before: $before filter: $filter sortOrder: $sortOrder sortBy: $sortBy ) { count nodes { pauseStatus status subStatus systemStatus type id isHealthy name systemStatusMessage version typename } pageInfo { endCursor hasNextPage
hasPreviousPage startCursor typename } typename } typename }
Variables: {"first":1000}
Operation Name: QueryClusterConnection
JWT validation failed: TIME_CONSTRAINT_FAILURE
Invoke-RscQueryCluster: Exception has been thrown by the target of an invocation. Inner exception: One or more errors occurred. (The HTTP request failed with status code Unauthorized)
The HTTP request failed with status code Unauthorized
PS C:> get-module
ModuleType Version PreRelease Name ExportedCommands
PS C:> disconnect-Rsc
Disconnect-Rsc: One or more errors occurred. (Call DELETE to "api/session" failed with : Unauthorized)
PS C:> connect-rsc
PS C:> get-rsccluster
ERROR: API Server responded: "The HTTP request failed with status code Unauthorized"
Query: query QueryClusterConnection($first: Int,$after: String,$last: Int,$before: String,$filter: ClusterFilterInput,$sortOrder: SortOrder,$sortBy: ClusterSortByEnum){ clusterConnection ( first: $first after: $after last: $last before: $before filter: $filter sortOrder: $sortOrder sortBy: $sortBy ) { count nodes { pauseStatus status subStatus systemStatus type id isHealthy name systemStatusMessage version typename } pageInfo { endCursor hasNextPage
hasPreviousPage startCursor typename } typename } typename }
Variables: {"first":1000}
Operation Name: QueryClusterConnection
JWT validation failed: TIME_CONSTRAINT_FAILURE
Invoke-RscQueryCluster: Exception has been thrown by the target of an invocation. Inner exception: One or more errors occurred. (The HTTP request failed with status code Unauthorized)
The HTTP request failed with status code Unauthorized
I am getting a "not authorized" when running commands and the connect-rsc does not return any output.
PS C:> connect-rsc
PS C:> import-module RubrikSecurityCloud PS C:> disconnect-Rsc Disconnect-Rsc: One or more errors occurred. (Call DELETE to "api/session" failed with : Unauthorized) PS C:> connect-rsc PS C:> disconnect-Rsc Disconnect-Rsc: One or more errors occurred. (Call DELETE to "api/session" failed with : Unauthorized) PS C:> connect-rsc
PS C:> get-rsccluster ERROR: API Server responded: "The HTTP request failed with status code Unauthorized" Query: query QueryClusterConnection($first: Int,$after: String,$last: Int,$before: String,$filter: ClusterFilterInput,$sortOrder: SortOrder,$sortBy: ClusterSortByEnum){ clusterConnection ( first: $first after: $after last: $last before: $before filter: $filter sortOrder: $sortOrder sortBy: $sortBy ) { count nodes { pauseStatus status subStatus systemStatus type id isHealthy name systemStatusMessage version typename } pageInfo { endCursor hasNextPage
hasPreviousPage startCursor typename } typename } typename } Variables: {"first":1000} Operation Name: QueryClusterConnection
JWT validation failed: TIME_CONSTRAINT_FAILURE Invoke-RscQueryCluster: Exception has been thrown by the target of an invocation. Inner exception: One or more errors occurred. (The HTTP request failed with status code Unauthorized) The HTTP request failed with status code Unauthorized
PS C:> get-module
ModuleType Version PreRelease Name ExportedCommands
Manifest 1.0.0.0 DnsClient {Resolve-DnsName, Add-DnsClientNrptRule, Clear-DnsClientCache, Get-DnsClient…} Manifest 7.0.0.0 Microsoft.PowerShell.Management {Add-Content, Clear-Content, Clear-Item, Clear-ItemProperty…} Manifest 7.0.0.0 Microsoft.PowerShell.Security {ConvertFrom-SecureString, ConvertTo-SecureString, Get-Acl, Get-AuthenticodeSignature…}
Manifest 7.0.0.0 Microsoft.PowerShell.Utility {Add-Member, Add-Type, Clear-Variable, Compare-Object…} Manifest 7.0.0.0 Microsoft.WSMan.Management {Connect-WSMan, Disable-WSManCredSSP, Disconnect-WSMan, Enable-WSManCredSSP…} Script 1.4.7 PackageManagement {Find-Package, Find-PackageProvider, Get-Package, Get-PackageProvider…} Script 0.2.0 PowerShellEditorServices.Commands {Clear-Host, ConvertFrom-ScriptExtent, ConvertTo-ScriptExtent, Find-Ast…} Binary 0.2.0 PowerShellEditorServices.VSCode {Close-VSCodeHtmlContentView, New-VSCodeHtmlContentView, Set-VSCodeHtmlContentView, Show-VSC… Script 2.2.5 PowerShellGet {Find-Command, Find-DscResource, Find-Module, Find-RoleCapability…} Script 2.2.6 PSReadLine {Get-PSReadLineKeyHandler, Get-PSReadLineOption, Remove-PSReadLineKeyHandler, Set-PSReadLine… Binary 0.12.0 Beta RubrikSecurityCloud {Connect-Rsc, Disconnect-Rsc, Get-RscCmdlet, Get-RscFileset…}
PS C:> disconnect-Rsc Disconnect-Rsc: One or more errors occurred. (Call DELETE to "api/session" failed with : Unauthorized) PS C:> connect-rsc
PS C:> get-rsccluster ERROR: API Server responded: "The HTTP request failed with status code Unauthorized" Query: query QueryClusterConnection($first: Int,$after: String,$last: Int,$before: String,$filter: ClusterFilterInput,$sortOrder: SortOrder,$sortBy: ClusterSortByEnum){ clusterConnection ( first: $first after: $after last: $last before: $before filter: $filter sortOrder: $sortOrder sortBy: $sortBy ) { count nodes { pauseStatus status subStatus systemStatus type id isHealthy name systemStatusMessage version typename } pageInfo { endCursor hasNextPage
hasPreviousPage startCursor typename } typename } typename } Variables: {"first":1000} Operation Name: QueryClusterConnection
JWT validation failed: TIME_CONSTRAINT_FAILURE Invoke-RscQueryCluster: Exception has been thrown by the target of an invocation. Inner exception: One or more errors occurred. (The HTTP request failed with status code Unauthorized) The HTTP request failed with status code Unauthorized
PS C:>