cyberark / conjur-api-python

Python client for the CyberArk Conjur API
Apache License 2.0
8 stars 3 forks source link

Create separate Role Exists function #35

Closed szh closed 2 years ago

szh commented 2 years ago

Implemented Changes

Added a separate method, role_exists, which calls the API using a HEAD request and returns a boolean which allows for a smaller network footprint than requiring the full GET request and also doesn't force the client to have knowledge of the status codes to understand whether the role exists.

This is the method we used in the Ruby API and in the Resource methods in the Python API (#32).

Connected Issue/Story

N/A

Changelog

Test coverage

Documentation

Behavior

Security