@@ -105,7 +105,9 @@ They have no effect for remote clusters configured with the <<remote-clusters-ce
105105`clusters` (required)::: (list) A list of cluster aliases to which the permissions
106106in this entry apply.
107107`privileges`(required)::: (list) The cluster level privileges that the owners of the role
108- have in the specified clusters.
108+ have in the specified clusters. Note - only a subset of the cluster privileges are supported for remote clusters.
109+ The <<security-api-get-builtin-privileges-request, builtin privileges API>> can be used to determine
110+ which privileges are allowed per version.
109111
110112For more information, see <<defining-roles>>.
111113
@@ -176,21 +178,29 @@ POST /_security/role/cli_or_drivers_minimal
176178--------------------------------------------------
177179// end::sql-queries-permission[]
178180
179- The following example configures a role with remote indices privileges on a remote cluster:
181+ The following example configures a role with remote indices and remote cluster privileges for a remote cluster:
180182[source,console]
181183--------------------------------------------------
182- POST /_security/role/role_with_remote_indices
184+ POST /_security/role/only_remote_access_role
183185{
184186 "remote_indices": [
185187 {
186- "clusters": [ "my_remote" ], <1>
188+ "clusters": ["my_remote"], <1>
187189 "names": ["logs*"], <2>
188190 "privileges": ["read", "read_cross_cluster", "view_index_metadata"] <3>
189191 }
192+ ],
193+ "remote_cluster": [
194+ {
195+ "clusters": ["my_remote"], <1>
196+ "privileges": ["monitor_stats"] <4>
197+ }
190198 ]
191199}
192200--------------------------------------------------
193201
194- <1> The remote indices privileges apply to remote cluster with the alias `my_remote`.
195- <2> Privileges are granted for indices matching pattern `logs*` on the remote cluster ( `my_remote`).
202+ <1> The remote indices and remote cluster privileges apply to remote cluster with the alias `my_remote`.
203+ <2> Privileges are granted for indices matching pattern `logs*` on the remote cluster (`my_remote`).
196204<3> The actual <<privileges-list-indices,index privileges>> granted for `logs*` on `my_remote`.
205+ <4> The actual <<privileges-list-cluster,cluster privileges>> granted for `my_remote`.
206+ Note - only a subset of the cluster privileges are supported for remote clusters.
0 commit comments