Export all Application Policies / Groups from API

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

Export all Application Policies / Groups from API

L3 Networker

Greetings EPM Community,

 

I would like to know if there is a way to export the all policies and application groups from the EPM API, the same way we can do it from the GUI, that give us an file like:

 

Export All Application Policies -> Policies.epmp

Export All Application Groups -> APP_Groups.epmp

 

Because on the documentation:

https://docs.cyberark.com/epm/latest/en/content/webservices/getpolicies.htm

https://docs.cyberark.com/epm/latest/en/content/webservices/getappgroups.htm

 

I don't see a request (If I am understanding correctly) that can return a single .epmp with all policies like we do on the GUI.

 

If someone could give a hint would be great.

 

Thank you!

 

Best regards,

Pais

1 accepted solution

Accepted Solutions

L2 Linker

Hi @Marcos Pais​,

 

Currently, there are no APIs available for exporting or importing policies into EPMB files, as we have in the UI.

 

As @Malhar Vora​ mentioned, you can use the following APIs to retrieve all relevant information for policies:

 

Additionally, for application groups, you can use:

 

If you require APIs for policy import and export, please submit an ER (Enhancement Request).

 

Thanks,

Nir

View solution in original post

4 REPLIES 4

L7 Applicator

Hi @Marcos Pais​ 

 

As I understand, EPM REST API does not currently provide a direct method to export all application policies into .epmp files as the GUI does.

 

The API ‘Get Policy Details’’ fetches the details of policies but the response is in JSON format and not .epmp.

 

You can confirm above with the CyberArk and see if there is an existing ER or you might want to raise one for this feature.

 

Hope it helps !

L2 Linker

Hi @Marcos Pais​,

 

Currently, there are no APIs available for exporting or importing policies into EPMB files, as we have in the UI.

 

As @Malhar Vora​ mentioned, you can use the following APIs to retrieve all relevant information for policies:

 

Additionally, for application groups, you can use:

 

If you require APIs for policy import and export, please submit an ER (Enhancement Request).

 

Thanks,

Nir

Good afternoon,

 

Ok understood.

I can get the information from the api, but I cannot import a policy with the information retrieved from an API.

 

I will open a ER, because would be very helpful to have a routine making a backup of the polices periodically, that we could import (either by API or GUI), in case id needed to rollback a bad configuration.

 

Thanks!

Pais

 

L3 Networker

In case someone is also interested in this feature, please vote: ER - Export and Import Polices has .epmp file trought API

  • 1 accepted solution
  • 12 Views
  • 4 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!