how to get list of filters of a package through code? | Community
Skip to main content
krish747
Level 2
February 6, 2019
Question

how to get list of filters of a package through code?

  • February 6, 2019
  • 4 replies
  • 2479 views

Hi,

I am trying to find a particular package using its name and want to get the list of filters which the package is containing.

Could anyone please suggest me how to get the package using name/id and get its filter list using the api?

Thanks in Advance!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

4 replies

smacdonald2008
Level 10
February 6, 2019

Not sure the API supports this. The AEM API related to packages is package manager API.

antoniom5495929
Level 7
February 6, 2019

Hi krish747​,

do you need to use java api? Why do you need this info? If you need this in order to make export, you can also use cURL commands which contains method to retrive a package and its filters.

VitthalaShiva
Level 2
February 6, 2019
krish747
krish747Author
Level 2
February 6, 2019

Hi @@antoniom54959291,

Actually I need this info as I have to perform some actions using Servlet on the paths (pages) which are included in the filter for the given package name/id.

It will be helpful if you can post me the Curl command to get the list of filter values. If no options left on the API side, i will try to use Curl. The only thing bothers bothers in Curl is that we have to update the credentials and domains for URL for every environment.