// This file is autogenerated, DO NOT EDIT
// security/authentication/remote-clusters-privileges-cert.asciidoc:286

[source, python]
----
resp = client.security.put_role(
    name="logstash-reader",
    indices=[
        {
            "names": [
                "logstash-*"
            ],
            "privileges": [
                "read_cross_cluster",
                "read",
                "view_index_metadata"
            ]
        }
    ],
)
print(resp)
----
