# glanceclient.v1.apiclient.utils module

glanceclient.v1.apiclient.utils.find_resource(manager, name_or_id, **find_args)

  Look for resource in a given manager.

  Used as a helper for the _find_* methods. Example:

      def _find_hypervisor(cs, hypervisor):
          #Get a hypervisor by name or ID.
          return cliutils.find_resource(cs.hypervisors, hypervisor)

this page last updated: 2026-02-27 17:10:21

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.

found an error? report a bug