elasticsearch9 9.0.2__py3-none-any.whl → 9.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- elasticsearch9/__init__.py +3 -3
- elasticsearch9/_async/client/__init__.py +88 -244
- elasticsearch9/_async/client/async_search.py +4 -4
- elasticsearch9/_async/client/autoscaling.py +4 -4
- elasticsearch9/_async/client/cat.py +419 -51
- elasticsearch9/_async/client/ccr.py +13 -13
- elasticsearch9/_async/client/cluster.py +32 -22
- elasticsearch9/_async/client/connector.py +30 -30
- elasticsearch9/_async/client/dangling_indices.py +3 -3
- elasticsearch9/_async/client/enrich.py +5 -5
- elasticsearch9/_async/client/eql.py +14 -6
- elasticsearch9/_async/client/esql.py +125 -9
- elasticsearch9/_async/client/features.py +2 -2
- elasticsearch9/_async/client/fleet.py +3 -3
- elasticsearch9/_async/client/graph.py +1 -1
- elasticsearch9/_async/client/ilm.py +11 -11
- elasticsearch9/_async/client/indices.py +592 -113
- elasticsearch9/_async/client/inference.py +521 -44
- elasticsearch9/_async/client/ingest.py +9 -16
- elasticsearch9/_async/client/license.py +11 -11
- elasticsearch9/_async/client/logstash.py +3 -3
- elasticsearch9/_async/client/migration.py +3 -3
- elasticsearch9/_async/client/ml.py +75 -87
- elasticsearch9/_async/client/monitoring.py +1 -1
- elasticsearch9/_async/client/nodes.py +7 -7
- elasticsearch9/_async/client/query_rules.py +8 -8
- elasticsearch9/_async/client/rollup.py +9 -30
- elasticsearch9/_async/client/search_application.py +10 -10
- elasticsearch9/_async/client/searchable_snapshots.py +4 -4
- elasticsearch9/_async/client/security.py +79 -81
- elasticsearch9/_async/client/shutdown.py +3 -3
- elasticsearch9/_async/client/simulate.py +1 -1
- elasticsearch9/_async/client/slm.py +9 -9
- elasticsearch9/_async/client/snapshot.py +64 -21
- elasticsearch9/_async/client/sql.py +6 -6
- elasticsearch9/_async/client/ssl.py +1 -1
- elasticsearch9/_async/client/synonyms.py +26 -7
- elasticsearch9/_async/client/tasks.py +4 -4
- elasticsearch9/_async/client/text_structure.py +4 -4
- elasticsearch9/_async/client/transform.py +11 -11
- elasticsearch9/_async/client/watcher.py +17 -15
- elasticsearch9/_async/client/xpack.py +2 -2
- elasticsearch9/_otel.py +8 -8
- elasticsearch9/_sync/client/__init__.py +88 -244
- elasticsearch9/_sync/client/async_search.py +4 -4
- elasticsearch9/_sync/client/autoscaling.py +4 -4
- elasticsearch9/_sync/client/cat.py +419 -51
- elasticsearch9/_sync/client/ccr.py +13 -13
- elasticsearch9/_sync/client/cluster.py +32 -22
- elasticsearch9/_sync/client/connector.py +30 -30
- elasticsearch9/_sync/client/dangling_indices.py +3 -3
- elasticsearch9/_sync/client/enrich.py +5 -5
- elasticsearch9/_sync/client/eql.py +14 -6
- elasticsearch9/_sync/client/esql.py +125 -9
- elasticsearch9/_sync/client/features.py +2 -2
- elasticsearch9/_sync/client/fleet.py +3 -3
- elasticsearch9/_sync/client/graph.py +1 -1
- elasticsearch9/_sync/client/ilm.py +11 -11
- elasticsearch9/_sync/client/indices.py +592 -113
- elasticsearch9/_sync/client/inference.py +521 -44
- elasticsearch9/_sync/client/ingest.py +9 -16
- elasticsearch9/_sync/client/license.py +11 -11
- elasticsearch9/_sync/client/logstash.py +3 -3
- elasticsearch9/_sync/client/migration.py +3 -3
- elasticsearch9/_sync/client/ml.py +75 -87
- elasticsearch9/_sync/client/monitoring.py +1 -1
- elasticsearch9/_sync/client/nodes.py +7 -7
- elasticsearch9/_sync/client/query_rules.py +8 -8
- elasticsearch9/_sync/client/rollup.py +9 -30
- elasticsearch9/_sync/client/search_application.py +10 -10
- elasticsearch9/_sync/client/searchable_snapshots.py +4 -4
- elasticsearch9/_sync/client/security.py +79 -81
- elasticsearch9/_sync/client/shutdown.py +3 -3
- elasticsearch9/_sync/client/simulate.py +1 -1
- elasticsearch9/_sync/client/slm.py +9 -9
- elasticsearch9/_sync/client/snapshot.py +64 -21
- elasticsearch9/_sync/client/sql.py +6 -6
- elasticsearch9/_sync/client/ssl.py +1 -1
- elasticsearch9/_sync/client/synonyms.py +26 -7
- elasticsearch9/_sync/client/tasks.py +4 -4
- elasticsearch9/_sync/client/text_structure.py +4 -4
- elasticsearch9/_sync/client/transform.py +11 -11
- elasticsearch9/_sync/client/watcher.py +17 -15
- elasticsearch9/_sync/client/xpack.py +2 -2
- elasticsearch9/_version.py +1 -1
- elasticsearch9/compat.py +5 -0
- elasticsearch9/dsl/__init__.py +2 -1
- elasticsearch9/dsl/aggs.py +20 -0
- elasticsearch9/dsl/document_base.py +177 -17
- elasticsearch9/dsl/field.py +230 -37
- elasticsearch9/dsl/query.py +6 -3
- elasticsearch9/dsl/response/__init__.py +1 -1
- elasticsearch9/dsl/types.py +169 -11
- elasticsearch9/dsl/utils.py +1 -1
- elasticsearch9/{dsl/_sync/_sync_check → esql}/__init__.py +2 -0
- elasticsearch9/esql/esql.py +1105 -0
- elasticsearch9/esql/esql1.py1 +307 -0
- elasticsearch9/esql/functions.py +1738 -0
- {elasticsearch9-9.0.2.dist-info → elasticsearch9-9.1.0.dist-info}/METADATA +3 -4
- elasticsearch9-9.1.0.dist-info/RECORD +164 -0
- elasticsearch9/dsl/_sync/_sync_check/document.py +0 -514
- elasticsearch9/dsl/_sync/_sync_check/faceted_search.py +0 -50
- elasticsearch9/dsl/_sync/_sync_check/index.py +0 -597
- elasticsearch9/dsl/_sync/_sync_check/mapping.py +0 -49
- elasticsearch9/dsl/_sync/_sync_check/search.py +0 -230
- elasticsearch9/dsl/_sync/_sync_check/update_by_query.py +0 -45
- elasticsearch9-9.0.2.dist-info/RECORD +0 -167
- {elasticsearch9-9.0.2.dist-info → elasticsearch9-9.1.0.dist-info}/WHEEL +0 -0
- {elasticsearch9-9.0.2.dist-info → elasticsearch9-9.1.0.dist-info}/licenses/LICENSE +0 -0
- {elasticsearch9-9.0.2.dist-info → elasticsearch9-9.1.0.dist-info}/licenses/NOTICE +0 -0
|
@@ -58,7 +58,7 @@ class SecurityClient(NamespacedClient):
|
|
|
58
58
|
Any updates do not change existing content for either the <code>labels</code> or <code>data</code> fields.</p>
|
|
59
59
|
|
|
60
60
|
|
|
61
|
-
`<https://www.elastic.co/docs/api/doc/elasticsearch/
|
|
61
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-activate-user-profile>`_
|
|
62
62
|
|
|
63
63
|
:param grant_type: The type of grant.
|
|
64
64
|
:param access_token: The user's Elasticsearch access token or JWT. Both `access`
|
|
@@ -124,7 +124,7 @@ class SecurityClient(NamespacedClient):
|
|
|
124
124
|
If the user cannot be authenticated, this API returns a 401 status code.</p>
|
|
125
125
|
|
|
126
126
|
|
|
127
|
-
`<https://www.elastic.co/docs/api/doc/elasticsearch/
|
|
127
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-authenticate>`_
|
|
128
128
|
"""
|
|
129
129
|
__path_parts: t.Dict[str, str] = {}
|
|
130
130
|
__path = "/_security/_authenticate"
|
|
@@ -171,7 +171,7 @@ class SecurityClient(NamespacedClient):
|
|
|
171
171
|
The bulk delete roles API cannot delete roles that are defined in roles files.</p>
|
|
172
172
|
|
|
173
173
|
|
|
174
|
-
`<https://www.elastic.co/docs/api/doc/elasticsearch/
|
|
174
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-bulk-delete-role>`_
|
|
175
175
|
|
|
176
176
|
:param names: An array of role names to delete
|
|
177
177
|
:param refresh: If `true` (the default) then refresh the affected shards to make
|
|
@@ -232,7 +232,7 @@ class SecurityClient(NamespacedClient):
|
|
|
232
232
|
The bulk create or update roles API cannot update roles that are defined in roles files.</p>
|
|
233
233
|
|
|
234
234
|
|
|
235
|
-
`<https://www.elastic.co/docs/api/doc/elasticsearch/
|
|
235
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-bulk-put-role>`_
|
|
236
236
|
|
|
237
237
|
:param roles: A dictionary of role name to RoleDescriptor objects to add or update
|
|
238
238
|
:param refresh: If `true` (the default) then refresh the affected shards to make
|
|
@@ -300,7 +300,7 @@ class SecurityClient(NamespacedClient):
|
|
|
300
300
|
<p>A successful request returns a JSON structure that contains the IDs of all updated API keys, the IDs of API keys that already had the requested changes and did not require an update, and error details for any failed update.</p>
|
|
301
301
|
|
|
302
302
|
|
|
303
|
-
`<https://www.elastic.co/docs/api/doc/elasticsearch/
|
|
303
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-bulk-update-api-keys>`_
|
|
304
304
|
|
|
305
305
|
:param ids: The API key identifiers.
|
|
306
306
|
:param expiration: Expiration time for the API keys. By default, API keys never
|
|
@@ -378,7 +378,7 @@ class SecurityClient(NamespacedClient):
|
|
|
378
378
|
<p>Change the passwords of users in the native realm and built-in users.</p>
|
|
379
379
|
|
|
380
380
|
|
|
381
|
-
`<https://www.elastic.co/docs/api/doc/elasticsearch/
|
|
381
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-change-password>`_
|
|
382
382
|
|
|
383
383
|
:param username: The user whose password you want to change. If you do not specify
|
|
384
384
|
this parameter, the password is changed for the current user.
|
|
@@ -445,7 +445,7 @@ class SecurityClient(NamespacedClient):
|
|
|
445
445
|
The cache is also automatically cleared on state changes of the security index.</p>
|
|
446
446
|
|
|
447
447
|
|
|
448
|
-
`<https://www.elastic.co/docs/api/doc/elasticsearch/
|
|
448
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-clear-api-key-cache>`_
|
|
449
449
|
|
|
450
450
|
:param ids: Comma-separated list of API key IDs to evict from the API key cache.
|
|
451
451
|
To evict all API keys, use `*`. Does not support other wildcard patterns.
|
|
@@ -491,7 +491,7 @@ class SecurityClient(NamespacedClient):
|
|
|
491
491
|
The cache is also automatically cleared for applications that have their privileges updated.</p>
|
|
492
492
|
|
|
493
493
|
|
|
494
|
-
`<https://www.elastic.co/docs/api/doc/elasticsearch/
|
|
494
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-clear-cached-privileges>`_
|
|
495
495
|
|
|
496
496
|
:param application: A comma-separated list of applications. To clear all applications,
|
|
497
497
|
use an asterism (`*`). It does not support other wildcard patterns.
|
|
@@ -541,7 +541,7 @@ class SecurityClient(NamespacedClient):
|
|
|
541
541
|
For more information, refer to the documentation about controlling the user cache.</p>
|
|
542
542
|
|
|
543
543
|
|
|
544
|
-
`<https://www.elastic.co/docs/api/doc/elasticsearch/
|
|
544
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-clear-cached-realms>`_
|
|
545
545
|
|
|
546
546
|
:param realms: A comma-separated list of realms. To clear all realms, use an
|
|
547
547
|
asterisk (`*`). It does not support other wildcard patterns.
|
|
@@ -591,7 +591,7 @@ class SecurityClient(NamespacedClient):
|
|
|
591
591
|
<p>Evict roles from the native role cache.</p>
|
|
592
592
|
|
|
593
593
|
|
|
594
|
-
`<https://www.elastic.co/docs/api/doc/elasticsearch/
|
|
594
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-clear-cached-roles>`_
|
|
595
595
|
|
|
596
596
|
:param name: A comma-separated list of roles to evict from the role cache. To
|
|
597
597
|
evict all roles, use an asterisk (`*`). It does not support other wildcard
|
|
@@ -643,7 +643,7 @@ class SecurityClient(NamespacedClient):
|
|
|
643
643
|
The cache for tokens backed by the <code>service_tokens</code> file is cleared automatically on file changes.</p>
|
|
644
644
|
|
|
645
645
|
|
|
646
|
-
`<https://www.elastic.co/docs/api/doc/elasticsearch/
|
|
646
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-clear-cached-service-tokens>`_
|
|
647
647
|
|
|
648
648
|
:param namespace: The namespace, which is a top-level grouping of service accounts.
|
|
649
649
|
:param service: The name of the service, which must be unique within its namespace.
|
|
@@ -715,7 +715,7 @@ class SecurityClient(NamespacedClient):
|
|
|
715
715
|
To configure or turn off the API key service, refer to API key service setting documentation.</p>
|
|
716
716
|
|
|
717
717
|
|
|
718
|
-
`<https://www.elastic.co/docs/api/doc/elasticsearch/
|
|
718
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-create-api-key>`_
|
|
719
719
|
|
|
720
720
|
:param expiration: The expiration time for the API key. By default, API keys
|
|
721
721
|
never expire.
|
|
@@ -805,7 +805,7 @@ class SecurityClient(NamespacedClient):
|
|
|
805
805
|
Attempting to update them with the update REST API key API or the bulk update REST API keys API will result in an error.</p>
|
|
806
806
|
|
|
807
807
|
|
|
808
|
-
`<https://www.elastic.co/docs/api/doc/elasticsearch/
|
|
808
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-create-cross-cluster-api-key>`_
|
|
809
809
|
|
|
810
810
|
:param access: The access to be granted to this API key. The access is composed
|
|
811
811
|
of permissions for cross-cluster search and cross-cluster replication. At
|
|
@@ -880,7 +880,7 @@ class SecurityClient(NamespacedClient):
|
|
|
880
880
|
You must actively delete them if they are no longer needed.</p>
|
|
881
881
|
|
|
882
882
|
|
|
883
|
-
`<https://www.elastic.co/docs/api/doc/elasticsearch/
|
|
883
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-create-service-token>`_
|
|
884
884
|
|
|
885
885
|
:param namespace: The name of the namespace, which is a top-level grouping of
|
|
886
886
|
service accounts.
|
|
@@ -966,7 +966,7 @@ class SecurityClient(NamespacedClient):
|
|
|
966
966
|
The proxy is trusted to have performed the TLS authentication and this API translates that authentication into an Elasticsearch access token.</p>
|
|
967
967
|
|
|
968
968
|
|
|
969
|
-
`<https://www.elastic.co/docs/api/doc/elasticsearch/
|
|
969
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-delegate-pki>`_
|
|
970
970
|
|
|
971
971
|
:param x509_certificate_chain: The X509Certificate chain, which is represented
|
|
972
972
|
as an ordered string array. Each string in the array is a base64-encoded
|
|
@@ -1030,7 +1030,7 @@ class SecurityClient(NamespacedClient):
|
|
|
1030
1030
|
</ul>
|
|
1031
1031
|
|
|
1032
1032
|
|
|
1033
|
-
`<https://www.elastic.co/docs/api/doc/elasticsearch/
|
|
1033
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-delete-privileges>`_
|
|
1034
1034
|
|
|
1035
1035
|
:param application: The name of the application. Application privileges are always
|
|
1036
1036
|
associated with exactly one application.
|
|
@@ -1093,7 +1093,7 @@ class SecurityClient(NamespacedClient):
|
|
|
1093
1093
|
The delete roles API cannot remove roles that are defined in roles files.</p>
|
|
1094
1094
|
|
|
1095
1095
|
|
|
1096
|
-
`<https://www.elastic.co/docs/api/doc/elasticsearch/
|
|
1096
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-delete-role>`_
|
|
1097
1097
|
|
|
1098
1098
|
:param name: The name of the role.
|
|
1099
1099
|
:param refresh: If `true` (the default) then refresh the affected shards to make
|
|
@@ -1147,7 +1147,7 @@ class SecurityClient(NamespacedClient):
|
|
|
1147
1147
|
The delete role mappings API cannot remove role mappings that are defined in role mapping files.</p>
|
|
1148
1148
|
|
|
1149
1149
|
|
|
1150
|
-
`<https://www.elastic.co/docs/api/doc/elasticsearch/
|
|
1150
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-delete-role-mapping>`_
|
|
1151
1151
|
|
|
1152
1152
|
:param name: The distinct name that identifies the role mapping. The name is
|
|
1153
1153
|
used solely as an identifier to facilitate interaction via the API; it does
|
|
@@ -1203,7 +1203,7 @@ class SecurityClient(NamespacedClient):
|
|
|
1203
1203
|
<p>Delete service account tokens for a service in a specified namespace.</p>
|
|
1204
1204
|
|
|
1205
1205
|
|
|
1206
|
-
`<https://www.elastic.co/docs/api/doc/elasticsearch/
|
|
1206
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-delete-service-token>`_
|
|
1207
1207
|
|
|
1208
1208
|
:param namespace: The namespace, which is a top-level grouping of service accounts.
|
|
1209
1209
|
:param service: The service name.
|
|
@@ -1265,7 +1265,7 @@ class SecurityClient(NamespacedClient):
|
|
|
1265
1265
|
<p>Delete users from the native realm.</p>
|
|
1266
1266
|
|
|
1267
1267
|
|
|
1268
|
-
`<https://www.elastic.co/docs/api/doc/elasticsearch/
|
|
1268
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-delete-user>`_
|
|
1269
1269
|
|
|
1270
1270
|
:param username: An identifier for the user.
|
|
1271
1271
|
:param refresh: If `true` (the default) then refresh the affected shards to make
|
|
@@ -1319,7 +1319,7 @@ class SecurityClient(NamespacedClient):
|
|
|
1319
1319
|
You can use this API to revoke a user's access to Elasticsearch.</p>
|
|
1320
1320
|
|
|
1321
1321
|
|
|
1322
|
-
`<https://www.elastic.co/docs/api/doc/elasticsearch/
|
|
1322
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-disable-user>`_
|
|
1323
1323
|
|
|
1324
1324
|
:param username: An identifier for the user.
|
|
1325
1325
|
:param refresh: If `true` (the default) then refresh the affected shards to make
|
|
@@ -1376,7 +1376,7 @@ class SecurityClient(NamespacedClient):
|
|
|
1376
1376
|
To re-enable a disabled user profile, use the enable user profile API .</p>
|
|
1377
1377
|
|
|
1378
1378
|
|
|
1379
|
-
`<https://www.elastic.co/docs/api/doc/elasticsearch/
|
|
1379
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-disable-user-profile>`_
|
|
1380
1380
|
|
|
1381
1381
|
:param uid: Unique identifier for the user profile.
|
|
1382
1382
|
:param refresh: If 'true', Elasticsearch refreshes the affected shards to make
|
|
@@ -1429,7 +1429,7 @@ class SecurityClient(NamespacedClient):
|
|
|
1429
1429
|
By default, when you create users, they are enabled.</p>
|
|
1430
1430
|
|
|
1431
1431
|
|
|
1432
|
-
`<https://www.elastic.co/docs/api/doc/elasticsearch/
|
|
1432
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-enable-user>`_
|
|
1433
1433
|
|
|
1434
1434
|
:param username: An identifier for the user.
|
|
1435
1435
|
:param refresh: If `true` (the default) then refresh the affected shards to make
|
|
@@ -1486,7 +1486,7 @@ class SecurityClient(NamespacedClient):
|
|
|
1486
1486
|
If you later disable the user profile, you can use the enable user profile API to make the profile visible in these searches again.</p>
|
|
1487
1487
|
|
|
1488
1488
|
|
|
1489
|
-
`<https://www.elastic.co/docs/api/doc/elasticsearch/
|
|
1489
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-enable-user-profile>`_
|
|
1490
1490
|
|
|
1491
1491
|
:param uid: A unique identifier for the user profile.
|
|
1492
1492
|
:param refresh: If 'true', Elasticsearch refreshes the affected shards to make
|
|
@@ -1536,7 +1536,7 @@ class SecurityClient(NamespacedClient):
|
|
|
1536
1536
|
Kibana uses this API internally to configure itself for communications with an Elasticsearch cluster that already has security features enabled.</p>
|
|
1537
1537
|
|
|
1538
1538
|
|
|
1539
|
-
`<https://www.elastic.co/docs/api/doc/elasticsearch/
|
|
1539
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-enroll-kibana>`_
|
|
1540
1540
|
"""
|
|
1541
1541
|
__path_parts: t.Dict[str, str] = {}
|
|
1542
1542
|
__path = "/_security/enroll/kibana"
|
|
@@ -1577,7 +1577,7 @@ class SecurityClient(NamespacedClient):
|
|
|
1577
1577
|
The response contains key and certificate material that allows the caller to generate valid signed certificates for the HTTP layer of all nodes in the cluster.</p>
|
|
1578
1578
|
|
|
1579
1579
|
|
|
1580
|
-
`<https://www.elastic.co/docs/api/doc/elasticsearch/
|
|
1580
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-enroll-node>`_
|
|
1581
1581
|
"""
|
|
1582
1582
|
__path_parts: t.Dict[str, str] = {}
|
|
1583
1583
|
__path = "/_security/enroll/node"
|
|
@@ -1626,7 +1626,7 @@ class SecurityClient(NamespacedClient):
|
|
|
1626
1626
|
If you have <code>read_security</code>, <code>manage_api_key</code> or greater privileges (including <code>manage_security</code>), this API returns all API keys regardless of ownership.</p>
|
|
1627
1627
|
|
|
1628
1628
|
|
|
1629
|
-
`<https://www.elastic.co/docs/api/doc/elasticsearch/
|
|
1629
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-get-api-key>`_
|
|
1630
1630
|
|
|
1631
1631
|
:param active_only: A boolean flag that can be used to query API keys that are
|
|
1632
1632
|
currently active. An API key is considered active if it is neither invalidated,
|
|
@@ -1704,7 +1704,7 @@ class SecurityClient(NamespacedClient):
|
|
|
1704
1704
|
<p>Get the list of cluster privileges and index privileges that are available in this version of Elasticsearch.</p>
|
|
1705
1705
|
|
|
1706
1706
|
|
|
1707
|
-
`<https://www.elastic.co/docs/api/doc/elasticsearch/
|
|
1707
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-get-builtin-privileges>`_
|
|
1708
1708
|
"""
|
|
1709
1709
|
__path_parts: t.Dict[str, str] = {}
|
|
1710
1710
|
__path = "/_security/privilege/_builtin"
|
|
@@ -1749,7 +1749,7 @@ class SecurityClient(NamespacedClient):
|
|
|
1749
1749
|
</ul>
|
|
1750
1750
|
|
|
1751
1751
|
|
|
1752
|
-
`<https://www.elastic.co/docs/api/doc/elasticsearch/
|
|
1752
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-get-privileges>`_
|
|
1753
1753
|
|
|
1754
1754
|
:param application: The name of the application. Application privileges are always
|
|
1755
1755
|
associated with exactly one application. If you do not specify this parameter,
|
|
@@ -1805,7 +1805,7 @@ class SecurityClient(NamespacedClient):
|
|
|
1805
1805
|
The get roles API cannot retrieve roles that are defined in roles files.</p>
|
|
1806
1806
|
|
|
1807
1807
|
|
|
1808
|
-
`<https://www.elastic.co/docs/api/doc/elasticsearch/
|
|
1808
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-get-role>`_
|
|
1809
1809
|
|
|
1810
1810
|
:param name: The name of the role. You can specify multiple roles as a comma-separated
|
|
1811
1811
|
list. If you do not specify this parameter, the API returns information about
|
|
@@ -1856,7 +1856,7 @@ class SecurityClient(NamespacedClient):
|
|
|
1856
1856
|
The get role mappings API cannot retrieve role mappings that are defined in role mapping files.</p>
|
|
1857
1857
|
|
|
1858
1858
|
|
|
1859
|
-
`<https://www.elastic.co/docs/api/doc/elasticsearch/
|
|
1859
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-get-role-mapping>`_
|
|
1860
1860
|
|
|
1861
1861
|
:param name: The distinct name that identifies the role mapping. The name is
|
|
1862
1862
|
used solely as an identifier to facilitate interaction via the API; it does
|
|
@@ -1909,7 +1909,7 @@ class SecurityClient(NamespacedClient):
|
|
|
1909
1909
|
<p>NOTE: Currently, only the <code>elastic/fleet-server</code> service account is available.</p>
|
|
1910
1910
|
|
|
1911
1911
|
|
|
1912
|
-
`<https://www.elastic.co/docs/api/doc/elasticsearch/
|
|
1912
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-get-service-accounts>`_
|
|
1913
1913
|
|
|
1914
1914
|
:param namespace: The name of the namespace. Omit this parameter to retrieve
|
|
1915
1915
|
information about all service accounts. If you omit this parameter, you must
|
|
@@ -1967,7 +1967,7 @@ class SecurityClient(NamespacedClient):
|
|
|
1967
1967
|
Tokens with the same name from different nodes are assumed to be the same token and are only counted once towards the total number of service tokens.</p>
|
|
1968
1968
|
|
|
1969
1969
|
|
|
1970
|
-
`<https://www.elastic.co/docs/api/doc/elasticsearch/
|
|
1970
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-get-service-credentials>`_
|
|
1971
1971
|
|
|
1972
1972
|
:param namespace: The name of the namespace.
|
|
1973
1973
|
:param service: The service name.
|
|
@@ -2023,7 +2023,7 @@ class SecurityClient(NamespacedClient):
|
|
|
2023
2023
|
</ul>
|
|
2024
2024
|
|
|
2025
2025
|
|
|
2026
|
-
`<https://www.elastic.co/docs/api/doc/elasticsearch/
|
|
2026
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-get-settings>`_
|
|
2027
2027
|
|
|
2028
2028
|
:param master_timeout: Period to wait for a connection to the master node. If
|
|
2029
2029
|
no response is received before the timeout expires, the request fails and
|
|
@@ -2099,7 +2099,7 @@ class SecurityClient(NamespacedClient):
|
|
|
2099
2099
|
If you want to invalidate a token immediately, you can do so by using the invalidate token API.</p>
|
|
2100
2100
|
|
|
2101
2101
|
|
|
2102
|
-
`<https://www.elastic.co/docs/api/doc/elasticsearch/
|
|
2102
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-get-token>`_
|
|
2103
2103
|
|
|
2104
2104
|
:param grant_type: The type of grant. Supported grant types are: `password`,
|
|
2105
2105
|
`_kerberos`, `client_credentials`, and `refresh_token`.
|
|
@@ -2173,7 +2173,7 @@ class SecurityClient(NamespacedClient):
|
|
|
2173
2173
|
<p>Get information about users in the native realm and built-in users.</p>
|
|
2174
2174
|
|
|
2175
2175
|
|
|
2176
|
-
`<https://www.elastic.co/docs/api/doc/elasticsearch/
|
|
2176
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-get-user>`_
|
|
2177
2177
|
|
|
2178
2178
|
:param username: An identifier for the user. You can specify multiple usernames
|
|
2179
2179
|
as a comma-separated list. If you omit this parameter, the API retrieves
|
|
@@ -2213,13 +2213,10 @@ class SecurityClient(NamespacedClient):
|
|
|
2213
2213
|
async def get_user_privileges(
|
|
2214
2214
|
self,
|
|
2215
2215
|
*,
|
|
2216
|
-
application: t.Optional[str] = None,
|
|
2217
2216
|
error_trace: t.Optional[bool] = None,
|
|
2218
2217
|
filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
|
|
2219
2218
|
human: t.Optional[bool] = None,
|
|
2220
2219
|
pretty: t.Optional[bool] = None,
|
|
2221
|
-
priviledge: t.Optional[str] = None,
|
|
2222
|
-
username: t.Optional[t.Union[None, str]] = None,
|
|
2223
2220
|
) -> ObjectApiResponse[t.Any]:
|
|
2224
2221
|
"""
|
|
2225
2222
|
.. raw:: html
|
|
@@ -2231,20 +2228,11 @@ class SecurityClient(NamespacedClient):
|
|
|
2231
2228
|
To check whether a user has a specific list of privileges, use the has privileges API.</p>
|
|
2232
2229
|
|
|
2233
2230
|
|
|
2234
|
-
`<https://www.elastic.co/docs/api/doc/elasticsearch/
|
|
2235
|
-
|
|
2236
|
-
:param application: The name of the application. Application privileges are always
|
|
2237
|
-
associated with exactly one application. If you do not specify this parameter,
|
|
2238
|
-
the API returns information about all privileges for all applications.
|
|
2239
|
-
:param priviledge: The name of the privilege. If you do not specify this parameter,
|
|
2240
|
-
the API returns information about all privileges for the requested application.
|
|
2241
|
-
:param username:
|
|
2231
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-get-user-privileges>`_
|
|
2242
2232
|
"""
|
|
2243
2233
|
__path_parts: t.Dict[str, str] = {}
|
|
2244
2234
|
__path = "/_security/user/_privileges"
|
|
2245
2235
|
__query: t.Dict[str, t.Any] = {}
|
|
2246
|
-
if application is not None:
|
|
2247
|
-
__query["application"] = application
|
|
2248
2236
|
if error_trace is not None:
|
|
2249
2237
|
__query["error_trace"] = error_trace
|
|
2250
2238
|
if filter_path is not None:
|
|
@@ -2253,10 +2241,6 @@ class SecurityClient(NamespacedClient):
|
|
|
2253
2241
|
__query["human"] = human
|
|
2254
2242
|
if pretty is not None:
|
|
2255
2243
|
__query["pretty"] = pretty
|
|
2256
|
-
if priviledge is not None:
|
|
2257
|
-
__query["priviledge"] = priviledge
|
|
2258
|
-
if username is not None:
|
|
2259
|
-
__query["username"] = username
|
|
2260
2244
|
__headers = {"accept": "application/json"}
|
|
2261
2245
|
return await self.perform_request( # type: ignore[return-value]
|
|
2262
2246
|
"GET",
|
|
@@ -2288,7 +2272,7 @@ class SecurityClient(NamespacedClient):
|
|
|
2288
2272
|
Elastic reserves the right to change or remove this feature in future releases without prior notice.</p>
|
|
2289
2273
|
|
|
2290
2274
|
|
|
2291
|
-
`<https://www.elastic.co/docs/api/doc/elasticsearch/
|
|
2275
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-get-user-profile>`_
|
|
2292
2276
|
|
|
2293
2277
|
:param uid: A unique identifier for the user profile.
|
|
2294
2278
|
:param data: A comma-separated list of filters for the `data` field of the profile
|
|
@@ -2345,6 +2329,9 @@ class SecurityClient(NamespacedClient):
|
|
|
2345
2329
|
human: t.Optional[bool] = None,
|
|
2346
2330
|
password: t.Optional[str] = None,
|
|
2347
2331
|
pretty: t.Optional[bool] = None,
|
|
2332
|
+
refresh: t.Optional[
|
|
2333
|
+
t.Union[bool, str, t.Literal["false", "true", "wait_for"]]
|
|
2334
|
+
] = None,
|
|
2348
2335
|
run_as: t.Optional[str] = None,
|
|
2349
2336
|
username: t.Optional[str] = None,
|
|
2350
2337
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
@@ -2372,7 +2359,7 @@ class SecurityClient(NamespacedClient):
|
|
|
2372
2359
|
<p>By default, API keys never expire. You can specify expiration information when you create the API keys.</p>
|
|
2373
2360
|
|
|
2374
2361
|
|
|
2375
|
-
`<https://www.elastic.co/docs/api/doc/elasticsearch/
|
|
2362
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-grant-api-key>`_
|
|
2376
2363
|
|
|
2377
2364
|
:param api_key: The API key.
|
|
2378
2365
|
:param grant_type: The type of grant. Supported grant types are: `access_token`,
|
|
@@ -2382,6 +2369,9 @@ class SecurityClient(NamespacedClient):
|
|
|
2382
2369
|
types.
|
|
2383
2370
|
:param password: The user's password. If you specify the `password` grant type,
|
|
2384
2371
|
this parameter is required. It is not valid with other grant types.
|
|
2372
|
+
:param refresh: If 'true', Elasticsearch refreshes the affected shards to make
|
|
2373
|
+
this operation visible to search. If 'wait_for', it waits for a refresh to
|
|
2374
|
+
make this operation visible to search. If 'false', nothing is done with refreshes.
|
|
2385
2375
|
:param run_as: The name of the user to be impersonated.
|
|
2386
2376
|
:param username: The user name that identifies the user. If you specify the `password`
|
|
2387
2377
|
grant type, this parameter is required. It is not valid with other grant
|
|
@@ -2403,6 +2393,8 @@ class SecurityClient(NamespacedClient):
|
|
|
2403
2393
|
__query["human"] = human
|
|
2404
2394
|
if pretty is not None:
|
|
2405
2395
|
__query["pretty"] = pretty
|
|
2396
|
+
if refresh is not None:
|
|
2397
|
+
__query["refresh"] = refresh
|
|
2406
2398
|
if not __body:
|
|
2407
2399
|
if api_key is not None:
|
|
2408
2400
|
__body["api_key"] = api_key
|
|
@@ -2455,6 +2447,7 @@ class SecurityClient(NamespacedClient):
|
|
|
2455
2447
|
"manage_data_frame_transforms",
|
|
2456
2448
|
"manage_data_stream_global_retention",
|
|
2457
2449
|
"manage_enrich",
|
|
2450
|
+
"manage_esql",
|
|
2458
2451
|
"manage_ilm",
|
|
2459
2452
|
"manage_index_templates",
|
|
2460
2453
|
"manage_inference",
|
|
@@ -2480,6 +2473,7 @@ class SecurityClient(NamespacedClient):
|
|
|
2480
2473
|
"monitor_data_frame_transforms",
|
|
2481
2474
|
"monitor_data_stream_global_retention",
|
|
2482
2475
|
"monitor_enrich",
|
|
2476
|
+
"monitor_esql",
|
|
2483
2477
|
"monitor_inference",
|
|
2484
2478
|
"monitor_ml",
|
|
2485
2479
|
"monitor_rollup",
|
|
@@ -2519,7 +2513,7 @@ class SecurityClient(NamespacedClient):
|
|
|
2519
2513
|
To check the privileges of other users, you must use the run as feature.</p>
|
|
2520
2514
|
|
|
2521
2515
|
|
|
2522
|
-
`<https://www.elastic.co/docs/api/doc/elasticsearch/
|
|
2516
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-has-privileges>`_
|
|
2523
2517
|
|
|
2524
2518
|
:param user: Username
|
|
2525
2519
|
:param application:
|
|
@@ -2584,7 +2578,7 @@ class SecurityClient(NamespacedClient):
|
|
|
2584
2578
|
Elastic reserves the right to change or remove this feature in future releases without prior notice.</p>
|
|
2585
2579
|
|
|
2586
2580
|
|
|
2587
|
-
`<https://www.elastic.co/docs/api/doc/elasticsearch/
|
|
2581
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-has-privileges-user-profile>`_
|
|
2588
2582
|
|
|
2589
2583
|
:param privileges: An object containing all the privileges to be checked.
|
|
2590
2584
|
:param uids: A list of profile IDs. The privileges are checked for associated
|
|
@@ -2658,7 +2652,7 @@ class SecurityClient(NamespacedClient):
|
|
|
2658
2652
|
</ul>
|
|
2659
2653
|
|
|
2660
2654
|
|
|
2661
|
-
`<https://www.elastic.co/docs/api/doc/elasticsearch/
|
|
2655
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-invalidate-api-key>`_
|
|
2662
2656
|
|
|
2663
2657
|
:param id:
|
|
2664
2658
|
:param ids: A list of API key ids. This parameter cannot be used with any of
|
|
@@ -2742,7 +2736,7 @@ class SecurityClient(NamespacedClient):
|
|
|
2742
2736
|
If none of these two are specified, then <code>realm_name</code> and/or <code>username</code> need to be specified.</p>
|
|
2743
2737
|
|
|
2744
2738
|
|
|
2745
|
-
`<https://www.elastic.co/docs/api/doc/elasticsearch/
|
|
2739
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-invalidate-token>`_
|
|
2746
2740
|
|
|
2747
2741
|
:param realm_name: The name of an authentication realm. This parameter cannot
|
|
2748
2742
|
be used with either `refresh_token` or `token`.
|
|
@@ -2810,7 +2804,7 @@ class SecurityClient(NamespacedClient):
|
|
|
2810
2804
|
These APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients.</p>
|
|
2811
2805
|
|
|
2812
2806
|
|
|
2813
|
-
`<https://www.elastic.co/docs/api/doc/elasticsearch/
|
|
2807
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-oidc-authenticate>`_
|
|
2814
2808
|
|
|
2815
2809
|
:param nonce: Associate a client session with an ID token and mitigate replay
|
|
2816
2810
|
attacks. This value needs to be the same as the one that was provided to
|
|
@@ -2890,7 +2884,7 @@ class SecurityClient(NamespacedClient):
|
|
|
2890
2884
|
These APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients.</p>
|
|
2891
2885
|
|
|
2892
2886
|
|
|
2893
|
-
`<https://www.elastic.co/docs/api/doc/elasticsearch/
|
|
2887
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-oidc-logout>`_
|
|
2894
2888
|
|
|
2895
2889
|
:param token: The access token to be invalidated.
|
|
2896
2890
|
:param refresh_token: The refresh token to be invalidated.
|
|
@@ -2952,7 +2946,7 @@ class SecurityClient(NamespacedClient):
|
|
|
2952
2946
|
These APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients.</p>
|
|
2953
2947
|
|
|
2954
2948
|
|
|
2955
|
-
`<https://www.elastic.co/docs/api/doc/elasticsearch/
|
|
2949
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-oidc-prepare-authentication>`_
|
|
2956
2950
|
|
|
2957
2951
|
:param iss: In the case of a third party initiated single sign on, this is the
|
|
2958
2952
|
issuer identifier for the OP that the RP is to send the authentication request
|
|
@@ -3048,7 +3042,7 @@ class SecurityClient(NamespacedClient):
|
|
|
3048
3042
|
<p>Action names can contain any number of printable ASCII characters and must contain at least one of the following characters: <code>/</code>, <code>*</code>, <code>:</code>.</p>
|
|
3049
3043
|
|
|
3050
3044
|
|
|
3051
|
-
`<https://www.elastic.co/docs/api/doc/elasticsearch/
|
|
3045
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-put-privileges>`_
|
|
3052
3046
|
|
|
3053
3047
|
:param privileges:
|
|
3054
3048
|
:param refresh: If `true` (the default) then refresh the affected shards to make
|
|
@@ -3126,6 +3120,7 @@ class SecurityClient(NamespacedClient):
|
|
|
3126
3120
|
"manage_data_frame_transforms",
|
|
3127
3121
|
"manage_data_stream_global_retention",
|
|
3128
3122
|
"manage_enrich",
|
|
3123
|
+
"manage_esql",
|
|
3129
3124
|
"manage_ilm",
|
|
3130
3125
|
"manage_index_templates",
|
|
3131
3126
|
"manage_inference",
|
|
@@ -3151,6 +3146,7 @@ class SecurityClient(NamespacedClient):
|
|
|
3151
3146
|
"monitor_data_frame_transforms",
|
|
3152
3147
|
"monitor_data_stream_global_retention",
|
|
3153
3148
|
"monitor_enrich",
|
|
3149
|
+
"monitor_esql",
|
|
3154
3150
|
"monitor_inference",
|
|
3155
3151
|
"monitor_ml",
|
|
3156
3152
|
"monitor_rollup",
|
|
@@ -3200,7 +3196,7 @@ class SecurityClient(NamespacedClient):
|
|
|
3200
3196
|
File-based role management is not available in Elastic Serverless.</p>
|
|
3201
3197
|
|
|
3202
3198
|
|
|
3203
|
-
`<https://www.elastic.co/docs/api/doc/elasticsearch/
|
|
3199
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-put-role>`_
|
|
3204
3200
|
|
|
3205
3201
|
:param name: The name of the role that is being created or updated. On Elasticsearch
|
|
3206
3202
|
Serverless, the role name must begin with a letter or digit and can only
|
|
@@ -3335,7 +3331,7 @@ class SecurityClient(NamespacedClient):
|
|
|
3335
3331
|
If the format of the template is set to "json" then the template is expected to produce a JSON string or an array of JSON strings for the role names.</p>
|
|
3336
3332
|
|
|
3337
3333
|
|
|
3338
|
-
`<https://www.elastic.co/docs/api/doc/elasticsearch/
|
|
3334
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-put-role-mapping>`_
|
|
3339
3335
|
|
|
3340
3336
|
:param name: The distinct name that identifies the role mapping. The name is
|
|
3341
3337
|
used solely as an identifier to facilitate interaction via the API; it does
|
|
@@ -3437,7 +3433,7 @@ class SecurityClient(NamespacedClient):
|
|
|
3437
3433
|
To change a user's password without updating any other fields, use the change password API.</p>
|
|
3438
3434
|
|
|
3439
3435
|
|
|
3440
|
-
`<https://www.elastic.co/docs/api/doc/elasticsearch/
|
|
3436
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-put-user>`_
|
|
3441
3437
|
|
|
3442
3438
|
:param username: An identifier for the user. NOTE: Usernames must be at least
|
|
3443
3439
|
1 and no more than 507 characters. They can contain alphanumeric characters
|
|
@@ -3553,10 +3549,11 @@ class SecurityClient(NamespacedClient):
|
|
|
3553
3549
|
You can optionally filter the results with a query.</p>
|
|
3554
3550
|
<p>To use this API, you must have at least the <code>manage_own_api_key</code> or the <code>read_security</code> cluster privileges.
|
|
3555
3551
|
If you have only the <code>manage_own_api_key</code> privilege, this API returns only the API keys that you own.
|
|
3556
|
-
If you have the <code>read_security</code>, <code>manage_api_key</code>, or greater privileges (including <code>manage_security</code>), this API returns all API keys regardless of ownership
|
|
3552
|
+
If you have the <code>read_security</code>, <code>manage_api_key</code>, or greater privileges (including <code>manage_security</code>), this API returns all API keys regardless of ownership.
|
|
3553
|
+
Refer to the linked documentation for examples of how to find API keys:</p>
|
|
3557
3554
|
|
|
3558
3555
|
|
|
3559
|
-
`<https://www.elastic.co/docs/api/doc/elasticsearch/
|
|
3556
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-query-api-keys>`_
|
|
3560
3557
|
|
|
3561
3558
|
:param aggregations: Any aggregations to run over the corpus of returned API
|
|
3562
3559
|
keys. Aggregations and queries work together. Aggregations are computed only
|
|
@@ -3699,7 +3696,7 @@ class SecurityClient(NamespacedClient):
|
|
|
3699
3696
|
Also, the results can be paginated and sorted.</p>
|
|
3700
3697
|
|
|
3701
3698
|
|
|
3702
|
-
`<https://www.elastic.co/docs/api/doc/elasticsearch/
|
|
3699
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-query-role>`_
|
|
3703
3700
|
|
|
3704
3701
|
:param from_: The starting document offset. It must not be negative. By default,
|
|
3705
3702
|
you cannot page through more than 10,000 hits using the `from` and `size`
|
|
@@ -3792,7 +3789,7 @@ class SecurityClient(NamespacedClient):
|
|
|
3792
3789
|
This API is only for native users.</p>
|
|
3793
3790
|
|
|
3794
3791
|
|
|
3795
|
-
`<https://www.elastic.co/docs/api/doc/elasticsearch/
|
|
3792
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-query-user>`_
|
|
3796
3793
|
|
|
3797
3794
|
:param from_: The starting document offset. It must not be negative. By default,
|
|
3798
3795
|
you cannot page through more than 10,000 hits using the `from` and `size`
|
|
@@ -3885,7 +3882,7 @@ class SecurityClient(NamespacedClient):
|
|
|
3885
3882
|
This API endpoint essentially exchanges SAML responses that indicate successful authentication in the IdP for Elasticsearch access and refresh tokens, which can be used for authentication against Elasticsearch.</p>
|
|
3886
3883
|
|
|
3887
3884
|
|
|
3888
|
-
`<https://www.elastic.co/docs/api/doc/elasticsearch/
|
|
3885
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-saml-authenticate>`_
|
|
3889
3886
|
|
|
3890
3887
|
:param content: The SAML response as it was sent by the user's browser, usually
|
|
3891
3888
|
a Base64 encoded XML document.
|
|
@@ -3958,7 +3955,7 @@ class SecurityClient(NamespacedClient):
|
|
|
3958
3955
|
The caller of this API must prepare the request accordingly so that this API can handle either of them.</p>
|
|
3959
3956
|
|
|
3960
3957
|
|
|
3961
|
-
`<https://www.elastic.co/docs/api/doc/elasticsearch/
|
|
3958
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-saml-complete-logout>`_
|
|
3962
3959
|
|
|
3963
3960
|
:param ids: A JSON array with all the valid SAML Request Ids that the caller
|
|
3964
3961
|
of the API has for the current user.
|
|
@@ -4034,7 +4031,7 @@ class SecurityClient(NamespacedClient):
|
|
|
4034
4031
|
Thus the user can be redirected back to their IdP.</p>
|
|
4035
4032
|
|
|
4036
4033
|
|
|
4037
|
-
`<https://www.elastic.co/docs/api/doc/elasticsearch/
|
|
4034
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-saml-invalidate>`_
|
|
4038
4035
|
|
|
4039
4036
|
:param query_string: The query part of the URL that the user was redirected to
|
|
4040
4037
|
by the SAML IdP to initiate the Single Logout. This query should include
|
|
@@ -4109,7 +4106,7 @@ class SecurityClient(NamespacedClient):
|
|
|
4109
4106
|
If the SAML realm in Elasticsearch is configured accordingly and the SAML IdP supports this, the Elasticsearch response contains a URL to redirect the user to the IdP that contains a SAML logout request (starting an SP-initiated SAML Single Logout).</p>
|
|
4110
4107
|
|
|
4111
4108
|
|
|
4112
|
-
`<https://www.elastic.co/docs/api/doc/elasticsearch/
|
|
4109
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-saml-logout>`_
|
|
4113
4110
|
|
|
4114
4111
|
:param token: The access token that was returned as a response to calling the
|
|
4115
4112
|
SAML authenticate API. Alternatively, the most recent token that was received
|
|
@@ -4179,7 +4176,7 @@ class SecurityClient(NamespacedClient):
|
|
|
4179
4176
|
The caller of this API needs to store this identifier as it needs to be used in a following step of the authentication process.</p>
|
|
4180
4177
|
|
|
4181
4178
|
|
|
4182
|
-
`<https://www.elastic.co/docs/api/doc/elasticsearch/
|
|
4179
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-saml-prepare-authentication>`_
|
|
4183
4180
|
|
|
4184
4181
|
:param acs: The Assertion Consumer Service URL that matches the one of the SAML
|
|
4185
4182
|
realms in Elasticsearch. The realm is used to generate the authentication
|
|
@@ -4240,7 +4237,7 @@ class SecurityClient(NamespacedClient):
|
|
|
4240
4237
|
This API generates Service Provider metadata based on the configuration of a SAML realm in Elasticsearch.</p>
|
|
4241
4238
|
|
|
4242
4239
|
|
|
4243
|
-
`<https://www.elastic.co/docs/api/doc/elasticsearch/
|
|
4240
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-saml-service-provider-metadata>`_
|
|
4244
4241
|
|
|
4245
4242
|
:param realm_name: The name of the SAML realm in Elasticsearch.
|
|
4246
4243
|
"""
|
|
@@ -4293,7 +4290,7 @@ class SecurityClient(NamespacedClient):
|
|
|
4293
4290
|
Elastic reserves the right to change or remove this feature in future releases without prior notice.</p>
|
|
4294
4291
|
|
|
4295
4292
|
|
|
4296
|
-
`<https://www.elastic.co/docs/api/doc/elasticsearch/
|
|
4293
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-suggest-user-profiles>`_
|
|
4297
4294
|
|
|
4298
4295
|
:param data: A comma-separated list of filters for the `data` field of the profile
|
|
4299
4296
|
document. To return all content use `data=*`. To return a subset of content,
|
|
@@ -4380,7 +4377,7 @@ class SecurityClient(NamespacedClient):
|
|
|
4380
4377
|
This change can occur if the owner user's permissions have changed since the API key was created or last modified.</p>
|
|
4381
4378
|
|
|
4382
4379
|
|
|
4383
|
-
`<https://www.elastic.co/docs/api/doc/elasticsearch/
|
|
4380
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-update-api-key>`_
|
|
4384
4381
|
|
|
4385
4382
|
:param id: The ID of the API key to update.
|
|
4386
4383
|
:param expiration: The expiration time for the API key. By default, API keys
|
|
@@ -4466,9 +4463,10 @@ class SecurityClient(NamespacedClient):
|
|
|
4466
4463
|
<p>This API supports updates to an API key's access scope, metadata, and expiration.
|
|
4467
4464
|
The owner user's information, such as the <code>username</code> and <code>realm</code>, is also updated automatically on every call.</p>
|
|
4468
4465
|
<p>NOTE: This API cannot update REST API keys, which should be updated by either the update API key or bulk update API keys API.</p>
|
|
4466
|
+
<p>To learn more about how to use this API, refer to the <a href="https://www.elastic.co/docs/reference/elasticsearch/rest-apis/update-cc-api-key-examples">Update cross cluter API key API examples page</a>.</p>
|
|
4469
4467
|
|
|
4470
4468
|
|
|
4471
|
-
`<https://www.elastic.co/docs/api/doc/elasticsearch/
|
|
4469
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-update-cross-cluster-api-key>`_
|
|
4472
4470
|
|
|
4473
4471
|
:param id: The ID of the cross-cluster API key to update.
|
|
4474
4472
|
:param access: The access to be granted to this API key. The access is composed
|
|
@@ -4547,7 +4545,7 @@ class SecurityClient(NamespacedClient):
|
|
|
4547
4545
|
This API does not yet support configuring the settings for indices before they are in use.</p>
|
|
4548
4546
|
|
|
4549
4547
|
|
|
4550
|
-
`<https://www.elastic.co/docs/api/doc/elasticsearch/
|
|
4548
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-update-settings>`_
|
|
4551
4549
|
|
|
4552
4550
|
:param master_timeout: The period to wait for a connection to the master node.
|
|
4553
4551
|
If no response is received before the timeout expires, the request fails
|
|
@@ -4632,7 +4630,7 @@ class SecurityClient(NamespacedClient):
|
|
|
4632
4630
|
The <code>update_profile_data</code> global privilege grants privileges for updating only the allowed namespaces.</p>
|
|
4633
4631
|
|
|
4634
4632
|
|
|
4635
|
-
`<https://www.elastic.co/docs/api/doc/elasticsearch/
|
|
4633
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-update-user-profile-data>`_
|
|
4636
4634
|
|
|
4637
4635
|
:param uid: A unique identifier for the user profile.
|
|
4638
4636
|
:param data: Non-searchable data that you want to associate with the user profile.
|