I realize this is an old thread, but I was looking the same thing and came across this post. As of 2024, the Splunk Python SDK doesn't support an "embed()" method on the saved search object, but you can call the post() method with the "embed" or "unembed" parameter. For example, s = service.saved_searches[ "my_report", splunklib.client.namespace(app="my_app", owner="me", sharing="app") ] s.post("embed") s.refresh() is_embedded = bool(int(s.content.embed.enabled)) report_token = s.content.embed.token s.post("unembed") s.refresh() is_embedded = bool(int(s.content.embed.enabled))
... View more