docs: def find_api_id(self):
          """Given API name, find API ID."""
          allapis = self.client.get_rest_apis()
          api_name = self.trigger_settings['api_name']
          api_id = None
          for api in allapis['items']:
              if api['name'] == api_name:
                  api_id = api['id']
                  self.log.info("Found API for: %s", api_name)
                  break
          else:
              api_id = self.create_api()
  
          return api_id