SecuredAPIKeyRestrictions
SecuredAPIKeyRestrictions
Value parameters
- filters
-
Filters that apply to every search made with the secured API key. Extra filters added at search time will be combined with
AND
. For example, if you setgroup:admin
as fixed filter on your generated API key, and addgroups:visitors
to the search query, the complete set of filters will begroup:admin AND groups:visitors
. - restrictIndices
-
Index names or patterns that this API key can access. By default, an API key can access all indices in the same application. You can use leading and trailing wildcard characters (
*
): -dev_*
matches all indices starting with "dev_". -*_dev
matches all indices ending with "_dev". -*_products_*
matches all indices containing "products". - restrictSources
-
IP network that are allowed to use this key. You can only add a single source, but you can provide a range of IP addresses. Use this to protect against API key leaking and reuse.
- userToken
-
Pseudonymous user identifier to restrict usage of this API key to specific users. By default, rate limits are set based on IP addresses. This can be an issue if many users search from the same IP address. To avoid this, add a user token to each generated API key.
- validUntil
-
Timestamp when the secured API key expires, measured in seconds since the Unix epoch.
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any