This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

Configure IPSLA thresholds via API

Hi,

I have several hundred IPSLA tests with incorrect thresholds and they all need to be changed.

I thought is would be easier to do it via a Powershell script than many hours on the web interface.

A Get, such as:

Get-SwisObject $swis -Uri 'swis://localhost/Orion/Orion.Ipsla.OperationThresholds/OperationThresholdID=8039'

Returns the correct info about the threshold, e.g.

Key Value

--- -----

OperationThresholdID 8039

OperationInstanceID 2126

ThresholdTypeID 5

WarningLevel 500

ErrorLevel 1000

DateChangedUtc 26/06/2018 11:25:55

Deleted False

DisplayName

Description

InstanceType Orion.IpSla.OperationThresholds

Uri .............../Orion/Orion.IpSla.OperationThresholds/OperationThresholdID=8039

However, if I then try a Set operation:

Set-SwisObject $swis -Uri 'swis://localhost/Orion/Orion.Ipsla.OperationThresholds/OperationThresholdID=8039' -Properties @{ErrorLevel=600}

I get the error:

Set-SwisObject : Operation not supported on Orion.IpSla.OperationThresholds

Is it really the case that I'm going to have to set several hundred thresholds manually, or am I missing something?