93
93
PATH_INDEXES = "data/indexes/"
94
94
PATH_INPUTS = "data/inputs/"
95
95
PATH_JOBS = "search/jobs/"
96
- PATH_LOGGER = "server/logger/"
96
+ PATH_LOGGER = "/services/ server/logger/"
97
97
PATH_MESSAGES = "messages/"
98
98
PATH_MODULAR_INPUTS = "data/modular-inputs"
99
99
PATH_ROLES = "authorization/roles/"
@@ -434,7 +434,7 @@ def info(self):
434
434
:return: The system information, as key-value pairs.
435
435
:rtype: ``dict``
436
436
"""
437
- response = self .get ("server/info" )
437
+ response = self .get ("/services/ server/info" )
438
438
return _filter_content (_load_atom (response , MATCH_ENTRY_CONTENT ))
439
439
440
440
@property
@@ -529,7 +529,7 @@ def restart(self, timeout=None):
529
529
msg = { "value" : "Restart requested by " + self .username + "via the Splunk SDK for Python" }
530
530
# This message will be deleted once the server actually restarts.
531
531
self .messages .create (name = "restart_required" , ** msg )
532
- result = self .post ("server/control/restart" )
532
+ result = self .post ("/services/ server/control/restart" )
533
533
if timeout is None :
534
534
return result
535
535
start = datetime .now ()
@@ -3256,7 +3256,7 @@ class Settings(Entity):
3256
3256
"""This class represents configuration settings for a Splunk service.
3257
3257
Retrieve this collection using :meth:`Service.settings`."""
3258
3258
def __init__ (self , service , ** kwargs ):
3259
- Entity .__init__ (self , service , "server/settings" , ** kwargs )
3259
+ Entity .__init__ (self , service , "/services/ server/settings" , ** kwargs )
3260
3260
3261
3261
# Updates on the settings endpoint are POSTed to server/settings/settings.
3262
3262
def update (self , ** kwargs ):
@@ -3269,7 +3269,7 @@ def update(self, **kwargs):
3269
3269
:type kwargs: ``dict``
3270
3270
:return: The :class:`Settings` collection.
3271
3271
"""
3272
- self .service .post ("server/settings/settings" , ** kwargs )
3272
+ self .service .post ("/services/ server/settings/settings" , ** kwargs )
3273
3273
return self
3274
3274
3275
3275
0 commit comments