thycotic-ps / thycotic.secretserver

PowerShell module for automating with Thycotic Secret Server REST API
https://thycotic-ps.github.io/thycotic.secretserver
MIT License
68 stars 22 forks source link

Update-TssServerNode: The requested resource does not support http method 'PUT'." #262

Closed vlariono closed 1 year ago

vlariono commented 2 years ago

Verified issue does not already exist?

Yes

What error did you receive

C:\Program Files\WindowsPowerShell\Modules\Thycotic.SecretServer\0.60.5\functions\server-nodes\Update-TssServerNode.ps1:95
Line |
  95 |  …                       $restResponse = . $ProcessResponse $apiResponse
     |                                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | {   "message": "The requested resource does not support http method 'PUT'." }

Please run the command using -Verbose

No response

Provide a test case or steps to reproduce

Try to put a node into ReadOnly mode

Update-TssServerNode -TssSession $tss -NodeId <Id> -EnableReadonly -Verbose

Expected behavior

HTTP POST method should be used instead of PUT

What Edition of Secret Server?

Platinum

What version of Secret Server

11.0

What PowerShell host was used when producing this error

PowerShell Core (pwsh)

PowerShell Host Version

PSVersion 7.2.1

tylerezimmerman commented 1 year ago

@vlariono we just released a new version of the plug-in, can you confirm if this issue still exists?

vlariono commented 1 year ago

Hi @tylerezimmerman,

This is a rather old issue. I've completed the project and won't be able to check :-)