class Artifactory::Resource::PermissionTarget
def find(name, options = {})
-
(Resource::PermissionTarget, nil)
-
Options Hash:
(**options)
-
:client
(Artifactory::Client
) --
Parameters:
-
options
(Hash
) -- -
name
(String
) --
Other tags:
- Example: Find a permission target by its name -
def find(name, options = {}) client = extract_client!(options) response = client.get("/api/security/permissions/#{url_safe(name)}") from_hash(response, client: client) rescue Error::HTTPError => e raise unless e.code == 404 nil end