Module org.elasticsearch.server
Package org.elasticsearch.action
Interface IndicesRequest.SingleIndexNoWildcards
- All Superinterfaces:
IndicesRequest,IndicesRequest.CrossProjectCandidate
- Enclosing interface:
IndicesRequest
public static interface IndicesRequest.SingleIndexNoWildcards
extends IndicesRequest, IndicesRequest.CrossProjectCandidate
For use cases where a Request instance cannot implement Replaceable due to not supporting wildcards
and only supporting a single index at a time, this is an alternative interface that the
security layer checks against to determine if remote indices are allowed for that Request type.
This may change with https://github.com/elastic/elasticsearch/issues/105598
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.action.IndicesRequest
IndicesRequest.CrossProjectCandidate, IndicesRequest.RemoteClusterShardRequest, IndicesRequest.Replaceable, IndicesRequest.SingleIndexNoWildcards -
Method Summary
Modifier and TypeMethodDescriptiondefault booleanDetermines whether the request type can support cross-project processing.default booleanvoidMarks request local.Methods inherited from interface org.elasticsearch.action.IndicesRequest
includeDataStreams, indices, indicesOptions
-
Method Details
-
allowsRemoteIndices
default boolean allowsRemoteIndices() -
allowsCrossProject
default boolean allowsCrossProject()Description copied from interface:IndicesRequest.CrossProjectCandidateDetermines whether the request type can support cross-project processing. Cross-project processing entails 1. UIAM authentication and authorization projects resolution. 2. If applicable, cross-project flat-world index resolution and error handling Note: this method only determines if the request supports cross-project. Whether cross-project processing is actually performed depends on other factors such as:- Whether CPS is enabled which impacts both 1 and 2.
- Whether
IndicesOptionssupports it when the request is anIndicesRequest. This only impacts 2.
CrossProjectModeDecider.- Specified by:
allowsCrossProjectin interfaceIndicesRequest.CrossProjectCandidate
-
markOriginOnly
void markOriginOnly()Marks request local. Local requests should be processed on the same cluster, even if they have cluster-alias prefix.
-