Geoserver REST API Service Manager
Object of R6Class with methods for managing GeoServer services
R6Class object.
new(url, user, pwd, logger)This method is used to instantiate a GSManager with the url of the
GeoServer and credentials to authenticate (user/pwd). By default,
the logger argument will be set to NULL (no logger). This argument
accepts two possible values: INFO: to print only geosapi logs,
DEBUG: to print geosapi and CURL logs
getServiceSettings(service, ws)Get the service settings. To get the service settings for a specific workspace,
specify the workspace name as ws parameter, otherwise global settings are
retrieved.
getWmsSettings(ws)Get WMS settings. To get the WMS settings for a specific workspace,
specify the workspace name as ws parameter, otherwise global settings are
retrieved.
getWfsSettings(ws)Get WFS settings. To get the WFS settings for a specific workspace,
specify the workspace name as ws parameter, otherwise global settings are
retrieved.
getWcsSettings(ws)Get WCS settings. To get the WCS settings for a specific workspace,
specify the workspace name as ws parameter, otherwise global settings are
retrieved.
updateServiceSettings(serviceSettings, service, ws)Updates the service settings with an object of class GSServiceSetting.
An optional workspace name ws can be specified to update service settings
applying to a workspace.
deleteServiceSettings(service, ws)Deletes the service settings. This method is used internally by geosapi for disabling a service setting at workspace level.
updateWmsSettings(serviceSettings, ws)Updates the WMS settings with an object of class GSServiceSetting.
An optional workspace name ws can be specified to update WMS settings
applying to a workspace.
updateWfsSettings(serviceSettings, ws)Updates the WFS settings with an object of class GSServiceSetting.
An optional workspace name ws can be specified to update WFS settings
applying to a workspace.
updateWcsSettings(serviceSettings, ws)Updates the WCS settings with an object of class GSServiceSettings.
An optional workspace name ws can be specified to update WCS settings
applying to a workspace.
enableWMS(ws)Enables the WMS, either globally, or for a given workspace (optional)
enableWFS(ws)Enables the WFS, either globally, or for a given workspace (optional)
enableWCS(ws)Enables the WCS, either globally, or for a given workspace (optional)
disableServiceSettings(service, ws)Disables a service, either globally, or for a given workspace (optional). For a global service setting, an UPDATE operation will be applied, while for a workspace service setting, a DELETE operation is applied.
disableWMS(ws)Disables the WMS, either globally, or for a given workspace (optional)
disableWFS(ws)Disables the WFS, either globally, or for a given workspace (optional)
disableWCS(ws)Disables the WCS, either globally, or for a given workspace (optional)
# NOT RUN {
GSServiceManager$new("http://localhost:8080/geoserver", "admin", "geoserver")
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab