code: def get_resource(self, device_id, resource_path):
          
          resources = self.list_resources(device_id)
          for r in resources:
              if r.path == resource_path:
                  return r
          raise CloudApiException("Resource not found")
docs: Get a resource.
  
          :param str device_id: ID of the device (Required)
          :param str path: Path of the resource to get (Required)
          :returns: Device resource
  
          :rtype Resource