You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "Ramachandran (Jira)" <ji...@apache.org> on 2023/02/28 10:27:00 UTC

[jira] [Commented] (RANGER-4111) /service/public/v2/api/policy API should return all policies (including policies in security zones)

    [ https://issues.apache.org/jira/browse/RANGER-4111?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17694479#comment-17694479 ] 

Ramachandran commented on RANGER-4111:
--------------------------------------

[~abhishek.patil]  I guess we can pass the below query parameter as part of the URI to get 
{color:#172b4d}all the policies in Ranger Admin{color}

{color:#172b4d}{BASE_URL}/service/public/v2/api/policy?fetchZoneAndUnzonePolicies=true{color}

{color:#172b4d}cc >> [~madhan@apache.org] {color}

> /service/public/v2/api/policy API should return all policies (including policies in security zones)
> ---------------------------------------------------------------------------------------------------
>
>                 Key: RANGER-4111
>                 URL: https://issues.apache.org/jira/browse/RANGER-4111
>             Project: Ranger
>          Issue Type: Bug
>          Components: Ranger
>            Reporter: Abhishek
>            Priority: Major
>
> {color:#172b4d}When a request is made to the API endpoint base_url/service/public/v2/api/policy,{color}
> {color:#172b4d}only policies which are not present in security zones are returned.{color}
> {color:#172b4d}If a request is made to the API endpoint \{BASE_URL}/service/public/v2/api/policy?zoneName=\{ZONE_NAME}, the policies in a specific zone are returned (which is the expected behaviour).{color}
> {color:#172b4d}Ideally, query params should be used to filter the search results, and if no query params are used (for example, if zoneName query param is not used), the API should return all the policies in Ranger Admin{color}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)