Skip to main content

JITTicketConnectionTestResponse

Properties​

NameTypeDescriptionNotes
SuccessBooleanTrue when the connection to the configured ServiceNow instance succeeded.[required]
StatusCodeInt32HTTP status returned by ServiceNow or by the OAuth token endpoint. Null when no HTTP response was received, such as a timeout or a missing credential reference.[optional]
ErrorMessageStringFailure detail. Null when success is true.[optional]

Examples​

  • Prepare the resource
$JITTicketConnectionTestResponse = Initialize-JITTicketConnectionTestResponse -Success true `
-StatusCode 200 `
-ErrorMessage User Not Authenticated
  • Convert the resource to JSON
$JITTicketConnectionTestResponse | ConvertTo-JSON

[Back to top]