elasticsearch 8.13.1__py3-none-any.whl → 8.14.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.
- elasticsearch/_async/client/__init__.py +51 -44
- elasticsearch/_async/client/async_search.py +4 -4
- elasticsearch/_async/client/autoscaling.py +4 -4
- elasticsearch/_async/client/cat.py +26 -26
- elasticsearch/_async/client/ccr.py +13 -13
- elasticsearch/_async/client/cluster.py +23 -25
- elasticsearch/_async/client/dangling_indices.py +3 -3
- elasticsearch/_async/client/enrich.py +5 -5
- elasticsearch/_async/client/eql.py +4 -4
- elasticsearch/_async/client/esql.py +1 -1
- elasticsearch/_async/client/features.py +2 -2
- elasticsearch/_async/client/fleet.py +1 -1
- elasticsearch/_async/client/graph.py +1 -1
- elasticsearch/_async/client/ilm.py +11 -11
- elasticsearch/_async/client/indices.py +182 -157
- elasticsearch/_async/client/inference.py +34 -17
- elasticsearch/_async/client/ingest.py +6 -6
- elasticsearch/_async/client/license.py +7 -7
- elasticsearch/_async/client/logstash.py +3 -3
- elasticsearch/_async/client/migration.py +3 -3
- elasticsearch/_async/client/ml.py +128 -72
- elasticsearch/_async/client/monitoring.py +1 -1
- elasticsearch/_async/client/nodes.py +7 -7
- elasticsearch/_async/client/query_ruleset.py +4 -4
- elasticsearch/_async/client/rollup.py +8 -8
- elasticsearch/_async/client/search_application.py +13 -8
- elasticsearch/_async/client/searchable_snapshots.py +4 -4
- elasticsearch/_async/client/security.py +63 -53
- elasticsearch/_async/client/slm.py +9 -9
- elasticsearch/_async/client/snapshot.py +11 -11
- elasticsearch/_async/client/sql.py +6 -6
- elasticsearch/_async/client/ssl.py +1 -1
- elasticsearch/_async/client/synonyms.py +7 -7
- elasticsearch/_async/client/tasks.py +3 -3
- elasticsearch/_async/client/text_structure.py +2 -2
- elasticsearch/_async/client/transform.py +11 -11
- elasticsearch/_async/client/watcher.py +11 -11
- elasticsearch/_async/client/xpack.py +2 -2
- elasticsearch/_sync/client/__init__.py +51 -44
- elasticsearch/_sync/client/async_search.py +4 -4
- elasticsearch/_sync/client/autoscaling.py +4 -4
- elasticsearch/_sync/client/cat.py +26 -26
- elasticsearch/_sync/client/ccr.py +13 -13
- elasticsearch/_sync/client/cluster.py +23 -25
- elasticsearch/_sync/client/dangling_indices.py +3 -3
- elasticsearch/_sync/client/enrich.py +5 -5
- elasticsearch/_sync/client/eql.py +4 -4
- elasticsearch/_sync/client/esql.py +1 -1
- elasticsearch/_sync/client/features.py +2 -2
- elasticsearch/_sync/client/fleet.py +1 -1
- elasticsearch/_sync/client/graph.py +1 -1
- elasticsearch/_sync/client/ilm.py +11 -11
- elasticsearch/_sync/client/indices.py +182 -157
- elasticsearch/_sync/client/inference.py +34 -17
- elasticsearch/_sync/client/ingest.py +6 -6
- elasticsearch/_sync/client/license.py +7 -7
- elasticsearch/_sync/client/logstash.py +3 -3
- elasticsearch/_sync/client/migration.py +3 -3
- elasticsearch/_sync/client/ml.py +128 -72
- elasticsearch/_sync/client/monitoring.py +1 -1
- elasticsearch/_sync/client/nodes.py +7 -7
- elasticsearch/_sync/client/query_ruleset.py +4 -4
- elasticsearch/_sync/client/rollup.py +8 -8
- elasticsearch/_sync/client/search_application.py +13 -8
- elasticsearch/_sync/client/searchable_snapshots.py +4 -4
- elasticsearch/_sync/client/security.py +63 -53
- elasticsearch/_sync/client/slm.py +9 -9
- elasticsearch/_sync/client/snapshot.py +11 -11
- elasticsearch/_sync/client/sql.py +6 -6
- elasticsearch/_sync/client/ssl.py +1 -1
- elasticsearch/_sync/client/synonyms.py +7 -7
- elasticsearch/_sync/client/tasks.py +3 -3
- elasticsearch/_sync/client/text_structure.py +2 -2
- elasticsearch/_sync/client/transform.py +11 -11
- elasticsearch/_sync/client/watcher.py +11 -11
- elasticsearch/_sync/client/xpack.py +2 -2
- elasticsearch/_version.py +1 -1
- elasticsearch/serializer.py +0 -1
- {elasticsearch-8.13.1.dist-info → elasticsearch-8.14.0.dist-info}/METADATA +16 -2
- elasticsearch-8.14.0.dist-info/RECORD +116 -0
- elasticsearch-8.13.1.dist-info/RECORD +0 -116
- {elasticsearch-8.13.1.dist-info → elasticsearch-8.14.0.dist-info}/LICENSE +0 -0
- {elasticsearch-8.13.1.dist-info → elasticsearch-8.14.0.dist-info}/NOTICE +0 -0
- {elasticsearch-8.13.1.dist-info → elasticsearch-8.14.0.dist-info}/WHEEL +0 -0
- {elasticsearch-8.13.1.dist-info → elasticsearch-8.14.0.dist-info}/top_level.txt +0 -0
|
@@ -46,7 +46,7 @@ class SecurityClient(NamespacedClient):
|
|
|
46
46
|
"""
|
|
47
47
|
Creates or updates the user profile on behalf of another user.
|
|
48
48
|
|
|
49
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
49
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-activate-user-profile.html>`_
|
|
50
50
|
|
|
51
51
|
:param grant_type:
|
|
52
52
|
:param access_token:
|
|
@@ -100,7 +100,7 @@ class SecurityClient(NamespacedClient):
|
|
|
100
100
|
Enables authentication as a user and retrieve information about the authenticated
|
|
101
101
|
user.
|
|
102
102
|
|
|
103
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
103
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-authenticate.html>`_
|
|
104
104
|
"""
|
|
105
105
|
__path_parts: t.Dict[str, str] = {}
|
|
106
106
|
__path = "/_security/_authenticate"
|
|
@@ -144,7 +144,7 @@ class SecurityClient(NamespacedClient):
|
|
|
144
144
|
"""
|
|
145
145
|
Changes the passwords of users in the native realm and built-in users.
|
|
146
146
|
|
|
147
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
147
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-change-password.html>`_
|
|
148
148
|
|
|
149
149
|
:param username: The user whose password you want to change. If you do not specify
|
|
150
150
|
this parameter, the password is changed for the current user.
|
|
@@ -206,7 +206,7 @@ class SecurityClient(NamespacedClient):
|
|
|
206
206
|
"""
|
|
207
207
|
Clear a subset or all entries from the API key cache.
|
|
208
208
|
|
|
209
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
209
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-clear-api-key-cache.html>`_
|
|
210
210
|
|
|
211
211
|
:param ids: Comma-separated list of API key IDs to evict from the API key cache.
|
|
212
212
|
To evict all API keys, use `*`. Does not support other wildcard patterns.
|
|
@@ -247,7 +247,7 @@ class SecurityClient(NamespacedClient):
|
|
|
247
247
|
"""
|
|
248
248
|
Evicts application privileges from the native application privileges cache.
|
|
249
249
|
|
|
250
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
250
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-clear-privilege-cache.html>`_
|
|
251
251
|
|
|
252
252
|
:param application: A comma-separated list of application names
|
|
253
253
|
"""
|
|
@@ -289,7 +289,7 @@ class SecurityClient(NamespacedClient):
|
|
|
289
289
|
Evicts users from the user cache. Can completely clear the cache or evict specific
|
|
290
290
|
users.
|
|
291
291
|
|
|
292
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
292
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-clear-cache.html>`_
|
|
293
293
|
|
|
294
294
|
:param realms: Comma-separated list of realms to clear
|
|
295
295
|
:param usernames: Comma-separated list of usernames to clear from the cache
|
|
@@ -332,7 +332,7 @@ class SecurityClient(NamespacedClient):
|
|
|
332
332
|
"""
|
|
333
333
|
Evicts roles from the native role cache.
|
|
334
334
|
|
|
335
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
335
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-clear-role-cache.html>`_
|
|
336
336
|
|
|
337
337
|
:param name: Role name
|
|
338
338
|
"""
|
|
@@ -374,7 +374,7 @@ class SecurityClient(NamespacedClient):
|
|
|
374
374
|
"""
|
|
375
375
|
Evicts tokens from the service account token caches.
|
|
376
376
|
|
|
377
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
377
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-clear-service-token-caches.html>`_
|
|
378
378
|
|
|
379
379
|
:param namespace: An identifier for the namespace
|
|
380
380
|
:param service: An identifier for the service name
|
|
@@ -433,7 +433,7 @@ class SecurityClient(NamespacedClient):
|
|
|
433
433
|
"""
|
|
434
434
|
Creates an API key for access without requiring basic authentication.
|
|
435
435
|
|
|
436
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
436
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-create-api-key.html>`_
|
|
437
437
|
|
|
438
438
|
:param expiration: Expiration time for the API key. By default, API keys never
|
|
439
439
|
expire.
|
|
@@ -505,7 +505,7 @@ class SecurityClient(NamespacedClient):
|
|
|
505
505
|
"""
|
|
506
506
|
Creates a service account token for access without requiring basic authentication.
|
|
507
507
|
|
|
508
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
508
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-create-service-token.html>`_
|
|
509
509
|
|
|
510
510
|
:param namespace: An identifier for the namespace
|
|
511
511
|
:param service: An identifier for the service name
|
|
@@ -575,7 +575,7 @@ class SecurityClient(NamespacedClient):
|
|
|
575
575
|
"""
|
|
576
576
|
Removes application privileges.
|
|
577
577
|
|
|
578
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
578
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-delete-privilege.html>`_
|
|
579
579
|
|
|
580
580
|
:param application: Application name
|
|
581
581
|
:param name: Privilege name
|
|
@@ -631,7 +631,7 @@ class SecurityClient(NamespacedClient):
|
|
|
631
631
|
"""
|
|
632
632
|
Removes roles in the native realm.
|
|
633
633
|
|
|
634
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
634
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-delete-role.html>`_
|
|
635
635
|
|
|
636
636
|
:param name: Role name
|
|
637
637
|
:param refresh: If `true` (the default) then refresh the affected shards to make
|
|
@@ -679,7 +679,7 @@ class SecurityClient(NamespacedClient):
|
|
|
679
679
|
"""
|
|
680
680
|
Removes role mappings.
|
|
681
681
|
|
|
682
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
682
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-delete-role-mapping.html>`_
|
|
683
683
|
|
|
684
684
|
:param name: Role-mapping name
|
|
685
685
|
:param refresh: If `true` (the default) then refresh the affected shards to make
|
|
@@ -729,7 +729,7 @@ class SecurityClient(NamespacedClient):
|
|
|
729
729
|
"""
|
|
730
730
|
Deletes a service account token.
|
|
731
731
|
|
|
732
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
732
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-delete-service-token.html>`_
|
|
733
733
|
|
|
734
734
|
:param namespace: An identifier for the namespace
|
|
735
735
|
:param service: An identifier for the service name
|
|
@@ -787,7 +787,7 @@ class SecurityClient(NamespacedClient):
|
|
|
787
787
|
"""
|
|
788
788
|
Deletes users from the native realm.
|
|
789
789
|
|
|
790
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
790
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-delete-user.html>`_
|
|
791
791
|
|
|
792
792
|
:param username: username
|
|
793
793
|
:param refresh: If `true` (the default) then refresh the affected shards to make
|
|
@@ -835,7 +835,7 @@ class SecurityClient(NamespacedClient):
|
|
|
835
835
|
"""
|
|
836
836
|
Disables users in the native realm.
|
|
837
837
|
|
|
838
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
838
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-disable-user.html>`_
|
|
839
839
|
|
|
840
840
|
:param username: The username of the user to disable
|
|
841
841
|
:param refresh: If `true` (the default) then refresh the affected shards to make
|
|
@@ -883,7 +883,7 @@ class SecurityClient(NamespacedClient):
|
|
|
883
883
|
"""
|
|
884
884
|
Disables a user profile so it's not visible in user profile searches.
|
|
885
885
|
|
|
886
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
886
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-disable-user-profile.html>`_
|
|
887
887
|
|
|
888
888
|
:param uid: Unique identifier for the user profile.
|
|
889
889
|
:param refresh: If 'true', Elasticsearch refreshes the affected shards to make
|
|
@@ -931,7 +931,7 @@ class SecurityClient(NamespacedClient):
|
|
|
931
931
|
"""
|
|
932
932
|
Enables users in the native realm.
|
|
933
933
|
|
|
934
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
934
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-enable-user.html>`_
|
|
935
935
|
|
|
936
936
|
:param username: The username of the user to enable
|
|
937
937
|
:param refresh: If `true` (the default) then refresh the affected shards to make
|
|
@@ -979,7 +979,7 @@ class SecurityClient(NamespacedClient):
|
|
|
979
979
|
"""
|
|
980
980
|
Enables a user profile so it's visible in user profile searches.
|
|
981
981
|
|
|
982
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
982
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-enable-user-profile.html>`_
|
|
983
983
|
|
|
984
984
|
:param uid: Unique identifier for the user profile.
|
|
985
985
|
:param refresh: If 'true', Elasticsearch refreshes the affected shards to make
|
|
@@ -1024,7 +1024,7 @@ class SecurityClient(NamespacedClient):
|
|
|
1024
1024
|
Allows a kibana instance to configure itself to communicate with a secured elasticsearch
|
|
1025
1025
|
cluster.
|
|
1026
1026
|
|
|
1027
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
1027
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-kibana-enrollment.html>`_
|
|
1028
1028
|
"""
|
|
1029
1029
|
__path_parts: t.Dict[str, str] = {}
|
|
1030
1030
|
__path = "/_security/enroll/kibana"
|
|
@@ -1059,7 +1059,7 @@ class SecurityClient(NamespacedClient):
|
|
|
1059
1059
|
"""
|
|
1060
1060
|
Allows a new node to enroll to an existing cluster with security enabled.
|
|
1061
1061
|
|
|
1062
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
1062
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-node-enrollment.html>`_
|
|
1063
1063
|
"""
|
|
1064
1064
|
__path_parts: t.Dict[str, str] = {}
|
|
1065
1065
|
__path = "/_security/enroll/node"
|
|
@@ -1097,11 +1097,12 @@ class SecurityClient(NamespacedClient):
|
|
|
1097
1097
|
realm_name: t.Optional[str] = None,
|
|
1098
1098
|
username: t.Optional[str] = None,
|
|
1099
1099
|
with_limited_by: t.Optional[bool] = None,
|
|
1100
|
+
with_profile_uid: t.Optional[bool] = None,
|
|
1100
1101
|
) -> ObjectApiResponse[t.Any]:
|
|
1101
1102
|
"""
|
|
1102
1103
|
Retrieves information for one or more API keys.
|
|
1103
1104
|
|
|
1104
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
1105
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-get-api-key.html>`_
|
|
1105
1106
|
|
|
1106
1107
|
:param active_only: A boolean flag that can be used to query API keys that are
|
|
1107
1108
|
currently active. An API key is considered active if it is neither invalidated,
|
|
@@ -1123,6 +1124,8 @@ class SecurityClient(NamespacedClient):
|
|
|
1123
1124
|
:param with_limited_by: Return the snapshot of the owner user's role descriptors
|
|
1124
1125
|
associated with the API key. An API key's actual permission is the intersection
|
|
1125
1126
|
of its assigned role descriptors and the owner user's role descriptors.
|
|
1127
|
+
:param with_profile_uid: Determines whether to also retrieve the profile uid,
|
|
1128
|
+
for the API key owner principal, if it exists.
|
|
1126
1129
|
"""
|
|
1127
1130
|
__path_parts: t.Dict[str, str] = {}
|
|
1128
1131
|
__path = "/_security/api_key"
|
|
@@ -1149,6 +1152,8 @@ class SecurityClient(NamespacedClient):
|
|
|
1149
1152
|
__query["username"] = username
|
|
1150
1153
|
if with_limited_by is not None:
|
|
1151
1154
|
__query["with_limited_by"] = with_limited_by
|
|
1155
|
+
if with_profile_uid is not None:
|
|
1156
|
+
__query["with_profile_uid"] = with_profile_uid
|
|
1152
1157
|
__headers = {"accept": "application/json"}
|
|
1153
1158
|
return await self.perform_request( # type: ignore[return-value]
|
|
1154
1159
|
"GET",
|
|
@@ -1172,7 +1177,7 @@ class SecurityClient(NamespacedClient):
|
|
|
1172
1177
|
Retrieves the list of cluster privileges and index privileges that are available
|
|
1173
1178
|
in this version of Elasticsearch.
|
|
1174
1179
|
|
|
1175
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
1180
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-get-builtin-privileges.html>`_
|
|
1176
1181
|
"""
|
|
1177
1182
|
__path_parts: t.Dict[str, str] = {}
|
|
1178
1183
|
__path = "/_security/privilege/_builtin"
|
|
@@ -1209,7 +1214,7 @@ class SecurityClient(NamespacedClient):
|
|
|
1209
1214
|
"""
|
|
1210
1215
|
Retrieves application privileges.
|
|
1211
1216
|
|
|
1212
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
1217
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-get-privileges.html>`_
|
|
1213
1218
|
|
|
1214
1219
|
:param application: Application name
|
|
1215
1220
|
:param name: Privilege name
|
|
@@ -1256,7 +1261,7 @@ class SecurityClient(NamespacedClient):
|
|
|
1256
1261
|
"""
|
|
1257
1262
|
Retrieves roles in the native realm.
|
|
1258
1263
|
|
|
1259
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
1264
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-get-role.html>`_
|
|
1260
1265
|
|
|
1261
1266
|
:param name: The name of the role. You can specify multiple roles as a comma-separated
|
|
1262
1267
|
list. If you do not specify this parameter, the API returns information about
|
|
@@ -1301,7 +1306,7 @@ class SecurityClient(NamespacedClient):
|
|
|
1301
1306
|
"""
|
|
1302
1307
|
Retrieves role mappings.
|
|
1303
1308
|
|
|
1304
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
1309
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-get-role-mapping.html>`_
|
|
1305
1310
|
|
|
1306
1311
|
:param name: The distinct name that identifies the role mapping. The name is
|
|
1307
1312
|
used solely as an identifier to facilitate interaction via the API; it does
|
|
@@ -1349,7 +1354,7 @@ class SecurityClient(NamespacedClient):
|
|
|
1349
1354
|
"""
|
|
1350
1355
|
Retrieves information about service accounts.
|
|
1351
1356
|
|
|
1352
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
1357
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-get-service-accounts.html>`_
|
|
1353
1358
|
|
|
1354
1359
|
:param namespace: Name of the namespace. Omit this parameter to retrieve information
|
|
1355
1360
|
about all service accounts. If you omit this parameter, you must also omit
|
|
@@ -1400,7 +1405,7 @@ class SecurityClient(NamespacedClient):
|
|
|
1400
1405
|
"""
|
|
1401
1406
|
Retrieves information of all service credentials for a service account.
|
|
1402
1407
|
|
|
1403
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
1408
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-get-service-credentials.html>`_
|
|
1404
1409
|
|
|
1405
1410
|
:param namespace: Name of the namespace.
|
|
1406
1411
|
:param service: Name of the service name.
|
|
@@ -1466,7 +1471,7 @@ class SecurityClient(NamespacedClient):
|
|
|
1466
1471
|
"""
|
|
1467
1472
|
Creates a bearer token for access without requiring basic authentication.
|
|
1468
1473
|
|
|
1469
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
1474
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-get-token.html>`_
|
|
1470
1475
|
|
|
1471
1476
|
:param grant_type:
|
|
1472
1477
|
:param kerberos_ticket:
|
|
@@ -1525,7 +1530,7 @@ class SecurityClient(NamespacedClient):
|
|
|
1525
1530
|
"""
|
|
1526
1531
|
Retrieves information about users in the native realm and built-in users.
|
|
1527
1532
|
|
|
1528
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
1533
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-get-user.html>`_
|
|
1529
1534
|
|
|
1530
1535
|
:param username: An identifier for the user. You can specify multiple usernames
|
|
1531
1536
|
as a comma-separated list. If you omit this parameter, the API retrieves
|
|
@@ -1576,7 +1581,7 @@ class SecurityClient(NamespacedClient):
|
|
|
1576
1581
|
"""
|
|
1577
1582
|
Retrieves security privileges for the logged in user.
|
|
1578
1583
|
|
|
1579
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
1584
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-get-user-privileges.html>`_
|
|
1580
1585
|
|
|
1581
1586
|
:param application: The name of the application. Application privileges are always
|
|
1582
1587
|
associated with exactly one application. If you do not specify this parameter,
|
|
@@ -1626,7 +1631,7 @@ class SecurityClient(NamespacedClient):
|
|
|
1626
1631
|
"""
|
|
1627
1632
|
Retrieves user profiles for the given unique ID(s).
|
|
1628
1633
|
|
|
1629
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
1634
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-get-user-profile.html>`_
|
|
1630
1635
|
|
|
1631
1636
|
:param uid: A unique identifier for the user profile.
|
|
1632
1637
|
:param data: List of filters for the `data` field of the profile document. To
|
|
@@ -1690,7 +1695,7 @@ class SecurityClient(NamespacedClient):
|
|
|
1690
1695
|
"""
|
|
1691
1696
|
Creates an API key on behalf of another user.
|
|
1692
1697
|
|
|
1693
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
1698
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-grant-api-key.html>`_
|
|
1694
1699
|
|
|
1695
1700
|
:param api_key: Defines the API key.
|
|
1696
1701
|
:param grant_type: The type of grant. Supported grant types are: `access_token`,
|
|
@@ -1756,7 +1761,7 @@ class SecurityClient(NamespacedClient):
|
|
|
1756
1761
|
cluster: t.Optional[
|
|
1757
1762
|
t.Sequence[
|
|
1758
1763
|
t.Union[
|
|
1759
|
-
"t.Literal['all', 'cancel_task', 'create_snapshot', 'cross_cluster_replication', 'cross_cluster_search', 'delegate_pki', 'grant_api_key', 'manage', 'manage_api_key', 'manage_autoscaling', 'manage_behavioral_analytics', 'manage_ccr', 'manage_data_frame_transforms', 'manage_enrich', 'manage_ilm', 'manage_index_templates', 'manage_ingest_pipelines', 'manage_logstash_pipelines', 'manage_ml', 'manage_oidc', 'manage_own_api_key', 'manage_pipeline', 'manage_rollup', 'manage_saml', 'manage_search_application', 'manage_search_query_rules', 'manage_search_synonyms', 'manage_security', 'manage_service_account', 'manage_slm', 'manage_token', 'manage_transform', 'manage_user_profile', 'manage_watcher', 'monitor', 'monitor_data_frame_transforms', 'monitor_enrich', 'monitor_ml', 'monitor_rollup', 'monitor_snapshot', 'monitor_text_structure', 'monitor_transform', 'monitor_watcher', 'none', 'post_behavioral_analytics_event', 'read_ccr', 'read_connector_secrets', 'read_fleet_secrets', 'read_ilm', 'read_pipeline', 'read_security', 'read_slm', 'transport_client', 'write_connector_secrets', 'write_fleet_secrets']",
|
|
1764
|
+
"t.Literal['all', 'cancel_task', 'create_snapshot', 'cross_cluster_replication', 'cross_cluster_search', 'delegate_pki', 'grant_api_key', 'manage', 'manage_api_key', 'manage_autoscaling', 'manage_behavioral_analytics', 'manage_ccr', 'manage_data_frame_transforms', 'manage_data_stream_global_retention', 'manage_enrich', 'manage_ilm', 'manage_index_templates', 'manage_inference', 'manage_ingest_pipelines', 'manage_logstash_pipelines', 'manage_ml', 'manage_oidc', 'manage_own_api_key', 'manage_pipeline', 'manage_rollup', 'manage_saml', 'manage_search_application', 'manage_search_query_rules', 'manage_search_synonyms', 'manage_security', 'manage_service_account', 'manage_slm', 'manage_token', 'manage_transform', 'manage_user_profile', 'manage_watcher', 'monitor', 'monitor_data_frame_transforms', 'monitor_data_stream_global_retention', 'monitor_enrich', 'monitor_inference', 'monitor_ml', 'monitor_rollup', 'monitor_snapshot', 'monitor_text_structure', 'monitor_transform', 'monitor_watcher', 'none', 'post_behavioral_analytics_event', 'read_ccr', 'read_connector_secrets', 'read_fleet_secrets', 'read_ilm', 'read_pipeline', 'read_security', 'read_slm', 'transport_client', 'write_connector_secrets', 'write_fleet_secrets']",
|
|
1760
1765
|
str,
|
|
1761
1766
|
]
|
|
1762
1767
|
]
|
|
@@ -1771,7 +1776,7 @@ class SecurityClient(NamespacedClient):
|
|
|
1771
1776
|
"""
|
|
1772
1777
|
Determines whether the specified user has a specified list of privileges.
|
|
1773
1778
|
|
|
1774
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
1779
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-has-privileges.html>`_
|
|
1775
1780
|
|
|
1776
1781
|
:param user: Username
|
|
1777
1782
|
:param application:
|
|
@@ -1831,7 +1836,7 @@ class SecurityClient(NamespacedClient):
|
|
|
1831
1836
|
Determines whether the users associated with the specified profile IDs have all
|
|
1832
1837
|
the requested privileges.
|
|
1833
1838
|
|
|
1834
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
1839
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-has-privileges-user-profile.html>`_
|
|
1835
1840
|
|
|
1836
1841
|
:param privileges:
|
|
1837
1842
|
:param uids: A list of profile IDs. The privileges are checked for associated
|
|
@@ -1890,7 +1895,7 @@ class SecurityClient(NamespacedClient):
|
|
|
1890
1895
|
"""
|
|
1891
1896
|
Invalidates one or more API keys.
|
|
1892
1897
|
|
|
1893
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
1898
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-invalidate-api-key.html>`_
|
|
1894
1899
|
|
|
1895
1900
|
:param id:
|
|
1896
1901
|
:param ids: A list of API key ids. This parameter cannot be used with any of
|
|
@@ -1961,7 +1966,7 @@ class SecurityClient(NamespacedClient):
|
|
|
1961
1966
|
"""
|
|
1962
1967
|
Invalidates one or more access tokens or refresh tokens.
|
|
1963
1968
|
|
|
1964
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
1969
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-invalidate-token.html>`_
|
|
1965
1970
|
|
|
1966
1971
|
:param realm_name:
|
|
1967
1972
|
:param refresh_token:
|
|
@@ -2021,7 +2026,7 @@ class SecurityClient(NamespacedClient):
|
|
|
2021
2026
|
"""
|
|
2022
2027
|
Adds or updates application privileges.
|
|
2023
2028
|
|
|
2024
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
2029
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-put-privileges.html>`_
|
|
2025
2030
|
|
|
2026
2031
|
:param privileges:
|
|
2027
2032
|
:param refresh: If `true` (the default) then refresh the affected shards to make
|
|
@@ -2079,7 +2084,7 @@ class SecurityClient(NamespacedClient):
|
|
|
2079
2084
|
cluster: t.Optional[
|
|
2080
2085
|
t.Sequence[
|
|
2081
2086
|
t.Union[
|
|
2082
|
-
"t.Literal['all', 'cancel_task', 'create_snapshot', 'cross_cluster_replication', 'cross_cluster_search', 'delegate_pki', 'grant_api_key', 'manage', 'manage_api_key', 'manage_autoscaling', 'manage_behavioral_analytics', 'manage_ccr', 'manage_data_frame_transforms', 'manage_enrich', 'manage_ilm', 'manage_index_templates', 'manage_ingest_pipelines', 'manage_logstash_pipelines', 'manage_ml', 'manage_oidc', 'manage_own_api_key', 'manage_pipeline', 'manage_rollup', 'manage_saml', 'manage_search_application', 'manage_search_query_rules', 'manage_search_synonyms', 'manage_security', 'manage_service_account', 'manage_slm', 'manage_token', 'manage_transform', 'manage_user_profile', 'manage_watcher', 'monitor', 'monitor_data_frame_transforms', 'monitor_enrich', 'monitor_ml', 'monitor_rollup', 'monitor_snapshot', 'monitor_text_structure', 'monitor_transform', 'monitor_watcher', 'none', 'post_behavioral_analytics_event', 'read_ccr', 'read_connector_secrets', 'read_fleet_secrets', 'read_ilm', 'read_pipeline', 'read_security', 'read_slm', 'transport_client', 'write_connector_secrets', 'write_fleet_secrets']",
|
|
2087
|
+
"t.Literal['all', 'cancel_task', 'create_snapshot', 'cross_cluster_replication', 'cross_cluster_search', 'delegate_pki', 'grant_api_key', 'manage', 'manage_api_key', 'manage_autoscaling', 'manage_behavioral_analytics', 'manage_ccr', 'manage_data_frame_transforms', 'manage_data_stream_global_retention', 'manage_enrich', 'manage_ilm', 'manage_index_templates', 'manage_inference', 'manage_ingest_pipelines', 'manage_logstash_pipelines', 'manage_ml', 'manage_oidc', 'manage_own_api_key', 'manage_pipeline', 'manage_rollup', 'manage_saml', 'manage_search_application', 'manage_search_query_rules', 'manage_search_synonyms', 'manage_security', 'manage_service_account', 'manage_slm', 'manage_token', 'manage_transform', 'manage_user_profile', 'manage_watcher', 'monitor', 'monitor_data_frame_transforms', 'monitor_data_stream_global_retention', 'monitor_enrich', 'monitor_inference', 'monitor_ml', 'monitor_rollup', 'monitor_snapshot', 'monitor_text_structure', 'monitor_transform', 'monitor_watcher', 'none', 'post_behavioral_analytics_event', 'read_ccr', 'read_connector_secrets', 'read_fleet_secrets', 'read_ilm', 'read_pipeline', 'read_security', 'read_slm', 'transport_client', 'write_connector_secrets', 'write_fleet_secrets']",
|
|
2083
2088
|
str,
|
|
2084
2089
|
]
|
|
2085
2090
|
]
|
|
@@ -2101,7 +2106,7 @@ class SecurityClient(NamespacedClient):
|
|
|
2101
2106
|
"""
|
|
2102
2107
|
Adds and updates roles in the native realm.
|
|
2103
2108
|
|
|
2104
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
2109
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-put-role.html>`_
|
|
2105
2110
|
|
|
2106
2111
|
:param name: The name of the role.
|
|
2107
2112
|
:param applications: A list of application privilege entries.
|
|
@@ -2198,7 +2203,7 @@ class SecurityClient(NamespacedClient):
|
|
|
2198
2203
|
"""
|
|
2199
2204
|
Creates and updates role mappings.
|
|
2200
2205
|
|
|
2201
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
2206
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-put-role-mapping.html>`_
|
|
2202
2207
|
|
|
2203
2208
|
:param name: Role-mapping name
|
|
2204
2209
|
:param enabled:
|
|
@@ -2286,7 +2291,7 @@ class SecurityClient(NamespacedClient):
|
|
|
2286
2291
|
Adds and updates users in the native realm. These users are commonly referred
|
|
2287
2292
|
to as native users.
|
|
2288
2293
|
|
|
2289
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
2294
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-put-user.html>`_
|
|
2290
2295
|
|
|
2291
2296
|
:param username: The username of the User
|
|
2292
2297
|
:param email:
|
|
@@ -2377,12 +2382,13 @@ class SecurityClient(NamespacedClient):
|
|
|
2377
2382
|
] = None,
|
|
2378
2383
|
typed_keys: t.Optional[bool] = None,
|
|
2379
2384
|
with_limited_by: t.Optional[bool] = None,
|
|
2385
|
+
with_profile_uid: t.Optional[bool] = None,
|
|
2380
2386
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
2381
2387
|
) -> ObjectApiResponse[t.Any]:
|
|
2382
2388
|
"""
|
|
2383
2389
|
Retrieves information for API keys using a subset of query DSL
|
|
2384
2390
|
|
|
2385
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
2391
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-query-api-key.html>`_
|
|
2386
2392
|
|
|
2387
2393
|
:param aggregations: Any aggregations to run over the corpus of returned API
|
|
2388
2394
|
keys. Aggregations and queries work together. Aggregations are computed only
|
|
@@ -2418,6 +2424,8 @@ class SecurityClient(NamespacedClient):
|
|
|
2418
2424
|
:param with_limited_by: Return the snapshot of the owner user's role descriptors
|
|
2419
2425
|
associated with the API key. An API key's actual permission is the intersection
|
|
2420
2426
|
of its assigned role descriptors and the owner user's role descriptors.
|
|
2427
|
+
:param with_profile_uid: Determines whether to also retrieve the profile uid,
|
|
2428
|
+
for the API key owner principal, if it exists.
|
|
2421
2429
|
"""
|
|
2422
2430
|
__path_parts: t.Dict[str, str] = {}
|
|
2423
2431
|
__path = "/_security/_query/api_key"
|
|
@@ -2446,6 +2454,8 @@ class SecurityClient(NamespacedClient):
|
|
|
2446
2454
|
__query["typed_keys"] = typed_keys
|
|
2447
2455
|
if with_limited_by is not None:
|
|
2448
2456
|
__query["with_limited_by"] = with_limited_by
|
|
2457
|
+
if with_profile_uid is not None:
|
|
2458
|
+
__query["with_profile_uid"] = with_profile_uid
|
|
2449
2459
|
if not __body:
|
|
2450
2460
|
if aggregations is not None:
|
|
2451
2461
|
__body["aggregations"] = aggregations
|
|
@@ -2495,7 +2505,7 @@ class SecurityClient(NamespacedClient):
|
|
|
2495
2505
|
Exchanges a SAML Response message for an Elasticsearch access token and refresh
|
|
2496
2506
|
token pair
|
|
2497
2507
|
|
|
2498
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
2508
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-saml-authenticate.html>`_
|
|
2499
2509
|
|
|
2500
2510
|
:param content: The SAML response as it was sent by the user’s browser, usually
|
|
2501
2511
|
a Base64 encoded XML document.
|
|
@@ -2557,7 +2567,7 @@ class SecurityClient(NamespacedClient):
|
|
|
2557
2567
|
"""
|
|
2558
2568
|
Verifies the logout response sent from the SAML IdP
|
|
2559
2569
|
|
|
2560
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
2570
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-saml-complete-logout.html>`_
|
|
2561
2571
|
|
|
2562
2572
|
:param ids: A json array with all the valid SAML Request Ids that the caller
|
|
2563
2573
|
of the API has for the current user.
|
|
@@ -2623,7 +2633,7 @@ class SecurityClient(NamespacedClient):
|
|
|
2623
2633
|
"""
|
|
2624
2634
|
Consumes a SAML LogoutRequest
|
|
2625
2635
|
|
|
2626
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
2636
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-saml-invalidate.html>`_
|
|
2627
2637
|
|
|
2628
2638
|
:param query_string: The query part of the URL that the user was redirected to
|
|
2629
2639
|
by the SAML IdP to initiate the Single Logout. This query should include
|
|
@@ -2691,7 +2701,7 @@ class SecurityClient(NamespacedClient):
|
|
|
2691
2701
|
Invalidates an access token and a refresh token that were generated via the SAML
|
|
2692
2702
|
Authenticate API
|
|
2693
2703
|
|
|
2694
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
2704
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-saml-logout.html>`_
|
|
2695
2705
|
|
|
2696
2706
|
:param token: The access token that was returned as a response to calling the
|
|
2697
2707
|
SAML authenticate API. Alternatively, the most recent token that was received
|
|
@@ -2748,7 +2758,7 @@ class SecurityClient(NamespacedClient):
|
|
|
2748
2758
|
"""
|
|
2749
2759
|
Creates a SAML authentication request
|
|
2750
2760
|
|
|
2751
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
2761
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-saml-prepare-authentication.html>`_
|
|
2752
2762
|
|
|
2753
2763
|
:param acs: The Assertion Consumer Service URL that matches the one of the SAML
|
|
2754
2764
|
realms in Elasticsearch. The realm is used to generate the authentication
|
|
@@ -2803,7 +2813,7 @@ class SecurityClient(NamespacedClient):
|
|
|
2803
2813
|
"""
|
|
2804
2814
|
Generates SAML metadata for the Elastic stack SAML 2.0 Service Provider
|
|
2805
2815
|
|
|
2806
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
2816
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-saml-sp-metadata.html>`_
|
|
2807
2817
|
|
|
2808
2818
|
:param realm_name: The name of the SAML realm in Elasticsearch.
|
|
2809
2819
|
"""
|
|
@@ -2849,7 +2859,7 @@ class SecurityClient(NamespacedClient):
|
|
|
2849
2859
|
"""
|
|
2850
2860
|
Get suggestions for user profiles that match specified search criteria.
|
|
2851
2861
|
|
|
2852
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
2862
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-suggest-user-profile.html>`_
|
|
2853
2863
|
|
|
2854
2864
|
:param data: List of filters for the `data` field of the profile document. To
|
|
2855
2865
|
return all content use `data=*`. To return a subset of content use `data=<key>`
|
|
@@ -2918,7 +2928,7 @@ class SecurityClient(NamespacedClient):
|
|
|
2918
2928
|
"""
|
|
2919
2929
|
Updates attributes of an existing API key.
|
|
2920
2930
|
|
|
2921
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
2931
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-update-api-key.html>`_
|
|
2922
2932
|
|
|
2923
2933
|
:param id: The ID of the API key to update.
|
|
2924
2934
|
:param expiration: Expiration time for the API key.
|
|
@@ -2993,7 +3003,7 @@ class SecurityClient(NamespacedClient):
|
|
|
2993
3003
|
"""
|
|
2994
3004
|
Update application specific data for the user profile of the given unique ID.
|
|
2995
3005
|
|
|
2996
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
3006
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-update-user-profile-data.html>`_
|
|
2997
3007
|
|
|
2998
3008
|
:param uid: A unique identifier for the user profile.
|
|
2999
3009
|
:param data: Non-searchable data that you want to associate with the user profile.
|
|
@@ -38,7 +38,7 @@ class SlmClient(NamespacedClient):
|
|
|
38
38
|
"""
|
|
39
39
|
Deletes an existing snapshot lifecycle policy.
|
|
40
40
|
|
|
41
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
41
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.14/slm-api-delete-policy.html>`_
|
|
42
42
|
|
|
43
43
|
:param policy_id: The id of the snapshot lifecycle policy to remove
|
|
44
44
|
"""
|
|
@@ -79,7 +79,7 @@ class SlmClient(NamespacedClient):
|
|
|
79
79
|
Immediately creates a snapshot according to the lifecycle policy, without waiting
|
|
80
80
|
for the scheduled time.
|
|
81
81
|
|
|
82
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
82
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.14/slm-api-execute-lifecycle.html>`_
|
|
83
83
|
|
|
84
84
|
:param policy_id: The id of the snapshot lifecycle policy to be executed
|
|
85
85
|
"""
|
|
@@ -118,7 +118,7 @@ class SlmClient(NamespacedClient):
|
|
|
118
118
|
"""
|
|
119
119
|
Deletes any snapshots that are expired according to the policy's retention rules.
|
|
120
120
|
|
|
121
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
121
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.14/slm-api-execute-retention.html>`_
|
|
122
122
|
"""
|
|
123
123
|
__path_parts: t.Dict[str, str] = {}
|
|
124
124
|
__path = "/_slm/_execute_retention"
|
|
@@ -155,7 +155,7 @@ class SlmClient(NamespacedClient):
|
|
|
155
155
|
Retrieves one or more snapshot lifecycle policy definitions and information about
|
|
156
156
|
the latest snapshot attempts.
|
|
157
157
|
|
|
158
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
158
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.14/slm-api-get-policy.html>`_
|
|
159
159
|
|
|
160
160
|
:param policy_id: Comma-separated list of snapshot lifecycle policies to retrieve
|
|
161
161
|
"""
|
|
@@ -198,7 +198,7 @@ class SlmClient(NamespacedClient):
|
|
|
198
198
|
Returns global and policy-level statistics about actions taken by snapshot lifecycle
|
|
199
199
|
management.
|
|
200
200
|
|
|
201
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
201
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.14/slm-api-get-stats.html>`_
|
|
202
202
|
"""
|
|
203
203
|
__path_parts: t.Dict[str, str] = {}
|
|
204
204
|
__path = "/_slm/stats"
|
|
@@ -233,7 +233,7 @@ class SlmClient(NamespacedClient):
|
|
|
233
233
|
"""
|
|
234
234
|
Retrieves the status of snapshot lifecycle management (SLM).
|
|
235
235
|
|
|
236
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
236
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.14/slm-api-get-status.html>`_
|
|
237
237
|
"""
|
|
238
238
|
__path_parts: t.Dict[str, str] = {}
|
|
239
239
|
__path = "/_slm/status"
|
|
@@ -281,7 +281,7 @@ class SlmClient(NamespacedClient):
|
|
|
281
281
|
"""
|
|
282
282
|
Creates or updates a snapshot lifecycle policy.
|
|
283
283
|
|
|
284
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
284
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.14/slm-api-put-policy.html>`_
|
|
285
285
|
|
|
286
286
|
:param policy_id: ID for the snapshot lifecycle policy you want to create or
|
|
287
287
|
update.
|
|
@@ -358,7 +358,7 @@ class SlmClient(NamespacedClient):
|
|
|
358
358
|
"""
|
|
359
359
|
Turns on snapshot lifecycle management (SLM).
|
|
360
360
|
|
|
361
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
361
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.14/slm-api-start.html>`_
|
|
362
362
|
"""
|
|
363
363
|
__path_parts: t.Dict[str, str] = {}
|
|
364
364
|
__path = "/_slm/start"
|
|
@@ -393,7 +393,7 @@ class SlmClient(NamespacedClient):
|
|
|
393
393
|
"""
|
|
394
394
|
Turns off snapshot lifecycle management (SLM).
|
|
395
395
|
|
|
396
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
396
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.14/slm-api-stop.html>`_
|
|
397
397
|
"""
|
|
398
398
|
__path_parts: t.Dict[str, str] = {}
|
|
399
399
|
__path = "/_slm/stop"
|