I am trying to move the computers through Rest API by following this link https://docs.cyberark.com/Product-Doc/OnlineHelp/EPM/Latest/en/Content/WebServices/MoveComputers.htm . I have developed a powershell script inside which i am calling the APIs. Now,

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

I am trying to move the computers through Rest API by following this link https://docs.cyberark.com/Product-Doc/OnlineHelp/EPM/Latest/en/Content/WebServices/MoveComputers.htm . I have developed a powershell script inside which i am calling the APIs. Now,

L1 Bithead

​I am trying to move the computers through Rest API by following this link https://docs.cyberark.com/Product-Doc/OnlineHelp/EPM/Latest/en/Content/WebServices/MoveComputers.htm . I have developed a powershell script inside which i am calling the APIs. Now, though i am passing the ​ComputerIds in the body parameter correctly, it still returns an error saying "Missing mandatory parameter - computerids. " . Anyone who has faced similar issue?

6 REPLIES 6

L2 Linker

Hi @Rohit Sethi​ 

 

Can you please send me the API request to validate it.

 

Thanks,

Nir

L0 Member

Hello @Rohit Sethi​ ,

 

Did you get any updates about this issue ?

 

Thank you,

Yahya

L1 Bithead

I figured out that it was a problem with the way I was using JSON.

Alright, thank you!

L3 Networker

Good afternoon,

 

From where can we retrieve the value computerIds?

I don't find that parameter on the Get computers | CyberArk Docs.

 

If someone could help me please.

 

Thank you!

 

Best regards,

Pais

 

I found the answer to my question:

computerIds = AgentID

 

The AgentID can be rerieved from Get computers API:

https://docs.cyberark.com/epm/latest/en/content/webservices/getcomputers.htm?Highlight=AgentId#Computers

 

 

  • 331 Views
  • 6 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!