API Utils
Bunch of api utilities for finding records by their names.
Katello API uses integer ids for record identification in most
cases. These util functions help with translating names to ids.
All of them throw ApiDataError if any of the records is not found.
-
exception katello.client.api.utils.ApiDataError
Exception to indicate an error in search for data via api.
The only argument is the error message.
Argument : | localized error message |
-
katello.client.api.utils.get_changeset(orgName, envName, csName)
-
katello.client.api.utils.get_environment(orgName, envName=None)
-
katello.client.api.utils.get_filter(org_name, name)
-
katello.client.api.utils.get_library(orgName)
-
katello.client.api.utils.get_organization(orgName)
-
katello.client.api.utils.get_permission(role_name, permission_name)
-
katello.client.api.utils.get_product(orgName, prodName)
-
katello.client.api.utils.get_provider(orgName, provName)
-
katello.client.api.utils.get_repo(orgName, prodName, repoName, envName=None, includeDisabled=False)
-
katello.client.api.utils.get_role(name)
-
katello.client.api.utils.get_sync_plan(org_name, name)
-
katello.client.api.utils.get_system(org_name, sys_name, env_name=None)
-
katello.client.api.utils.get_system_group(org_name, system_group_name)
-
katello.client.api.utils.get_template(orgName, envName, tplName)
-
katello.client.api.utils.get_user(userName)