// This file is autogenerated, DO NOT EDIT
// query-rules/apis/get-query-rule.asciidoc:111

[source, python]
----
resp = client.query_rules.get_rule(
    ruleset_id="my-ruleset",
    rule_id="my-rule1",
)
print(resp)
----
