Reputation: 509
I would like to be able to query this value for my artifactory to be able to test, in an automated way, whether anonymous access is enabled or not. Is there an endpoint that will provide this?
Upvotes: 0
Views: 675
Reputation: 866
An easy way can be using the Get General Configuration API:
curl -uUSER:PASS $ARTIFACTORY-URL/artifactory/api/system/configuration -s | grep anonAccessEnabled
Upvotes: 2