// This file is autogenerated, DO NOT EDIT
// rest-api/security/query-role.asciidoc:247

[source, python]
----
resp = client.security.query_role(
    query={
        "match": {
            "description": {
                "query": "user access"
            }
        }
    },
    size=1,
)
print(resp)
----
