// This file is autogenerated, DO NOT EDIT
// security/authorization/field-level-security.asciidoc:43

[source, python]
----
resp = client.security.put_role(
    name="test_role2",
    indices=[
        {
            "names": [
                "*"
            ],
            "privileges": [
                "read"
            ],
            "field_security": {
                "grant": [
                    "event_*"
                ]
            }
        }
    ],
)
print(resp)
----
