Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

type:Resource can have "accessPolicy" property #126

Open
upperwal opened this issue Dec 25, 2021 · 3 comments
Open

type:Resource can have "accessPolicy" property #126

upperwal opened this issue Dec 25, 2021 · 3 comments
Labels
question Further information is requested

Comments

@upperwal
Copy link

For now type:ResourceGroup has accessPolicy property but not type:Resource which makes it difficult to directly query open or private resources. If accessPolicy property is added to type:Resource, below query can directly fetch these resources.

query = cat_query.property_search("accessPolicy", ["OPEN"]) 
query = cat_query.property_search("type", ["iudx:Resource"]) 
@m-arun
Copy link

m-arun commented Dec 28, 2021

For now, since the policies are set at only a group level we have the accessPolicy at the type:ResourceGroup. In future when we have policies enabled at Resource level, the accessPolicy will be updated at the type:Resource too.

@upperwal
Copy link
Author

upperwal commented Dec 28, 2021 via email

@m-arun
Copy link

m-arun commented Dec 28, 2021

All the Resources of a type:ResourceGroup which has accessPolicy "OPEN" are open resources. They can retrieved by using the iudx/cat/v1/search API.

@rraks rraks added the question Further information is requested label Jan 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants