Data - Retrieve PowerShell Output

Retrieves data after executing the specified PowerShell script.

POST http://<Servername>/OperationsManager/data/powershell

Request Body

Media Types: "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded"

Name Type Description
script
  • string

Provide the PowerShell script.

Responses

Name Type Description
200 OK

OK. Successfully retrieved data after executing the specified PowerShell script.

Media Types: "application/json", "text/json", "application/xml", "text/xml"

Definitions

TableColumn
TableDataResponse

TableColumn

Name Type Description
field
  • string

Name of the column.

header
  • string

Header of the column.

hidden
  • boolean

Is the column hidden.

type
  • string

Type of the column.

TableDataResponse

Name Type Description
rows
  • object[]
tableColumns