@@ -43,6 +43,29 @@ def __init__(self, api_client=None):
43
43
api_client = api_client ,
44
44
)
45
45
46
+ self ._delete_logs_index_endpoint = _Endpoint (
47
+ settings = {
48
+ "response_type" : (LogsIndex ,),
49
+ "auth" : ["apiKeyAuth" , "appKeyAuth" ],
50
+ "endpoint_path" : "/api/v1/logs/config/indexes/{name}" ,
51
+ "operation_id" : "delete_logs_index" ,
52
+ "http_method" : "DELETE" ,
53
+ "version" : "v1" ,
54
+ },
55
+ params_map = {
56
+ "name" : {
57
+ "required" : True ,
58
+ "openapi_types" : (str ,),
59
+ "attribute" : "name" ,
60
+ "location" : "path" ,
61
+ },
62
+ },
63
+ headers_map = {
64
+ "accept" : ["application/json" ],
65
+ },
66
+ api_client = api_client ,
67
+ )
68
+
46
69
self ._get_logs_index_endpoint = _Endpoint (
47
70
settings = {
48
71
"response_type" : (LogsIndex ,),
@@ -161,6 +184,24 @@ def create_logs_index(
161
184
162
185
return self ._create_logs_index_endpoint .call_with_http_info (** kwargs )
163
186
187
+ def delete_logs_index (
188
+ self ,
189
+ name : str ,
190
+ ) -> LogsIndex :
191
+ """Delete an index.
192
+
193
+ Delete an existing index from your organization. Index deletions are permanent and cannot be reverted.
194
+ You cannot recreate an index with the same name as deleted ones.
195
+
196
+ :param name: Name of the log index.
197
+ :type name: str
198
+ :rtype: LogsIndex
199
+ """
200
+ kwargs : Dict [str , Any ] = {}
201
+ kwargs ["name" ] = name
202
+
203
+ return self ._delete_logs_index_endpoint .call_with_http_info (** kwargs )
204
+
164
205
def get_logs_index (
165
206
self ,
166
207
name : str ,
0 commit comments