Jump to content

GET/PUT methods for Hosts

Recommended Posts



Based on the documentation is ts not possible to make GET/PUT requests to Hosts.

Preferably the hostname would be the input parameter for these requests:

    # PowerShell Request
    $PasswordstateURL = 'https://passwordstate/api/hosts/<HostName>'
    Invoke-Restmethod -Method Put -Uri $PasswordstateURL -Header @{ "APIKey" = "<apikey>" }
Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...