Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nkavadias/f1b7757dc8ee9c1dcf6b4e50d59ac492 to your computer and use it in GitHub Desktop.
Save nkavadias/f1b7757dc8ee9c1dcf6b4e50d59ac492 to your computer and use it in GitHub Desktop.
verbose rubrik error
VERBOSE: Validate the Rubrik token exists
VERBOSE: Found a Rubrik token for authentication
VERBOSE: Gather API Data for Export-RubrikDatabase
VERBOSE: Selected 1.0 API Data for Export-RubrikDatabase
VERBOSE: Load API data for Export-RubrikDatabase
VERBOSE: Description: Export MSSQL Database from Rubrik to Destination Instance.
VERBOSE: Build the URI
VERBOSE: URI = https://sxxxxbrik1xxx.xxx.xxx/api/v1/mssql/db/MssqlDatabase:::e3145ed3-0fe2-40d7-9cea-??????/export
VERBOSE: Build the query parameters for <null>
VERBOSE: URI = https://sxxxxbrik1xxx.xxx.xxx/api/v1/mssql/db/MssqlDatabase:::e3145ed3-0fe2-40d7-9cea-?????/export
VERBOSE: Build the body
VERBOSE: Adding Advanced Mode File Paths
VERBOSE: Body = {
"targetFilePaths": [
{
"logicalName": "database_xxxxx",
"exportPath": "D:\\MSSQL\\MSSQL15.INSTANCENAME\\MSSQL\\DATA\\"
},
{
"logicalName": "database_xxxxx_log",
"exportPath": "L:\\MSSQL\\MSSQL15.INSTANCENAME\\MSSQL\\Log\\"
}
],
"recoveryPoint": [
{
"timestampMs": 1623211488000
}
],
"finishRecovery": true,
"targetDatabaseName": "database_xxxxx",
"targetInstanceId": "MssqlInstance:::9a4868a6-e44f-48e9-9b7c-????????????",
"allowOverwrite": true
}
VERBOSE: Submitting the request
VERBOSE: POST https://sxxxxbrik1xxx.xxx.xxx/api/v1/mssql/db/MssqlDatabase:::e3145ed3-0fe2-40d7-9cea-?????/export with -1-byte payload
Invoke-WebRequest : Request malformed
At C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\Rubrik\5.0.1\Private\Invoke-RubrikWebRequest.ps1:20 char:19
+ ... $result = Invoke-WebRequest -UseBasicParsing @PSBoundParameters
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebException
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
PS C:\>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment