1 Reply Latest reply on Jul 22, 2014 5:35 AM by madhavan

    How can i change this Powershell verb to VC..??

    leinhard

      Dear, Team

      it worked well in powershell, but this time i need to change it to the VC Version.

      so is anybody have idea for me?

       

       

      Invoke-SwisVerb $swis Cirrus.ConfigArchive Execute @($nodeIdList, $script, $username) | Out-Null

      $transferID = "{$node}:${username}:ExecuteScript"

       

      --> how to change it to VC...?

       

      Invoke Request POST https://localhost:17778/SolarWinds/InformationService/v3/Json/Invoke/Metadata.Entity/GetAliases

      HTTP/1.1

      Authorization: Basic YWRtaW46 User-Agent: curl/7.20.0 (i386-pc-win32) libcurl/7.20.0 OpenSSL/0.9.8l zlib/1.2.3

      Host: localhost:17778 Accept: */*

      Content-Type: application/json

      Content-Length: 39 ["SELECT B.Caption FROM Orion.Nodes B"]

       

      i don't know the invoke Request URI for Cirrus.ConfigArchive....

        • Re: How can i change this Powershell verb to VC..??
          madhavan

          Hi,

           

          I understand that your request is to use c# for invoking a verb instead of powershell. Correct me if I'm wrong.

           

          If that is what you want, you can find the sample for the same in @"C:\Program Files (x86)\SolarWinds\Orion SDK\Samples\CSClient". You can find how to invoke a verb and how to provide the parameters for the same.

           

          I'm not sure what do you mean by "i don't know the invoke Request URI for Cirrus.ConfigArchive". Please provide more information if my answer is not what you are looking for.