public RestSqlAction(Settings settings, RestController restController) { super(settings); restController.registerHandler(RestRequest.Method.POST, "/_sql/_explain", this); restController.registerHandler(RestRequest.Method.GET, "/_sql/_explain", this); restController.registerHandler(RestRequest.Method.POST, "/_sql", this); restController.registerHandler(RestRequest.Method.GET, "/_sql", this); }
public SearchGuardLicenseAction(final Settings settings, final RestController controller) { super(settings); controller.registerHandler(GET, "/_searchguard/license", this); controller.registerHandler(POST, "/_searchguard/license", this); }
public SearchGuardHealthAction(final Settings settings, final RestController controller, final BackendRegistry registry) { super(settings); this.registry = registry; controller.registerHandler(GET, "/_searchguard/health", this); controller.registerHandler(POST, "/_searchguard/health", this); }
public SearchGuardInfoAction(final Settings settings, final RestController controller, final PrivilegesEvaluator evaluator, final ThreadPool threadPool) { super(settings); this.threadContext = threadPool.getThreadContext(); this.evaluator = evaluator; controller.registerHandler(GET, "/_searchguard/authinfo", this); controller.registerHandler(POST, "/_searchguard/authinfo", this); }
public TenantInfoAction(final Settings settings, final RestController controller, final PrivilegesEvaluator evaluator, final ThreadPool threadPool, final ClusterService clusterService, final AdminDNs adminDns) { super(settings); this.threadContext = threadPool.getThreadContext(); this.evaluator = evaluator; this.clusterService = clusterService; this.adminDns = adminDns; controller.registerHandler(GET, "/_searchguard/tenantinfo", this); controller.registerHandler(POST, "/_searchguard/tenantinfo", this); }
public KibanaInfoAction(final Settings settings, final RestController controller, final PrivilegesEvaluator evaluator, final ThreadPool threadPool) { super(settings); this.threadContext = threadPool.getThreadContext(); this.evaluator = evaluator; controller.registerHandler(GET, "/_searchguard/kibanainfo", this); controller.registerHandler(POST, "/_searchguard/kibanainfo", this); }
@Inject public RestMongoDBRiverAction(Settings settings, Client esClient, RestController controller, @RiverIndexName String riverIndexName) { super(settings, controller, esClient); this.riverIndexName = riverIndexName; String baseUrl = "/" + riverIndexName + "/" + MongoDBRiver.TYPE; logger.trace("RestMongoDBRiverAction - baseUrl: {}", baseUrl); controller.registerHandler(RestRequest.Method.GET, baseUrl + "/{action}", this); controller.registerHandler(RestRequest.Method.POST, baseUrl + "/{river}/{action}", this); }
public RestGetFieldMappingAction(Settings settings, RestController controller) { super(settings); controller.registerHandler(GET, "/_mapping/field/{fields}", this); controller.registerHandler(GET, "/_mapping/{type}/field/{fields}", this); controller.registerHandler(GET, "/{index}/_mapping/field/{fields}", this); controller.registerHandler(GET, "/{index}/{type}/_mapping/field/{fields}", this); controller.registerHandler(GET, "/{index}/_mapping/{type}/field/{fields}", this); }
public RestAllocationAction(Settings settings, RestController controller) { super(settings); controller.registerHandler(GET, "/_cat/allocation", this); controller.registerHandler(GET, "/_cat/allocation/{nodes}", this); }
public RestClusterRerouteAction(Settings settings, RestController controller, SettingsFilter settingsFilter) { super(settings); this.settingsFilter = settingsFilter; controller.registerHandler(RestRequest.Method.POST, "/_cluster/reroute", this); }
public RestCountAction(Settings settings, RestController restController) { super(settings); restController.registerHandler(GET, "/_cat/count", this); restController.registerHandler(GET, "/_cat/count/{index}", this); }
public RestValidateQueryAction(Settings settings, RestController controller) { super(settings); controller.registerHandler(GET, "/_validate/query", this); controller.registerHandler(POST, "/_validate/query", this); controller.registerHandler(GET, "/{index}/_validate/query", this); controller.registerHandler(POST, "/{index}/_validate/query", this); controller.registerHandler(GET, "/{index}/{type}/_validate/query", this); controller.registerHandler(POST, "/{index}/{type}/_validate/query", this); }
public RestRolloverIndexAction(Settings settings, RestController controller) { super(settings); controller.registerHandler(RestRequest.Method.POST, "/{index}/_rollover", this); controller.registerHandler(RestRequest.Method.POST, "/{index}/_rollover/{new_index}", this); }
public RestGetAction(final Settings settings, final RestController controller) { super(settings); controller.registerHandler(GET, "/{index}/{type}/{id}", this); controller.registerHandler(HEAD, "/{index}/{type}/{id}", this); }
public RestIndicesStatsAction(Settings settings, RestController controller) { super(settings); controller.registerHandler(GET, "/_stats", this); controller.registerHandler(GET, "/_stats/{metric}", this); controller.registerHandler(GET, "/{index}/_stats", this); controller.registerHandler(GET, "/{index}/_stats/{metric}", this); }
public RestSimulatePipelineAction(Settings settings, RestController controller) { super(settings); controller.registerHandler(RestRequest.Method.POST, "/_ingest/pipeline/{id}/_simulate", this); controller.registerHandler(RestRequest.Method.GET, "/_ingest/pipeline/{id}/_simulate", this); controller.registerHandler(RestRequest.Method.POST, "/_ingest/pipeline/_simulate", this); controller.registerHandler(RestRequest.Method.GET, "/_ingest/pipeline/_simulate", this); }
public RestSnapshotsStatusAction(Settings settings, RestController controller) { super(settings); controller.registerHandler(GET, "/_snapshot/{repository}/{snapshot}/_status", this); controller.registerHandler(GET, "/_snapshot/{repository}/_status", this); controller.registerHandler(GET, "/_snapshot/_status", this); }
public RestCreateSnapshotAction(Settings settings, RestController controller) { super(settings); controller.registerHandler(PUT, "/_snapshot/{repository}/{snapshot}", this); controller.registerHandler(POST, "/_snapshot/{repository}/{snapshot}", this); }
public RestBulkAction(Settings settings, RestController controller) { super(settings); controller.registerHandler(POST, "/_bulk", this); controller.registerHandler(PUT, "/_bulk", this); controller.registerHandler(POST, "/{index}/_bulk", this); controller.registerHandler(PUT, "/{index}/_bulk", this); controller.registerHandler(POST, "/{index}/{type}/_bulk", this); controller.registerHandler(PUT, "/{index}/{type}/_bulk", this); this.allowExplicitIndex = MULTI_ALLOW_EXPLICIT_INDEX.get(settings); }
@Inject public RestNodesUsageAction(Settings settings, RestController controller) { super(settings); controller.registerHandler(GET, "/_nodes/usage", this); controller.registerHandler(GET, "/_nodes/{nodeId}/usage", this); controller.registerHandler(GET, "/_nodes/usage/{metric}", this); controller.registerHandler(GET, "/_nodes/{nodeId}/usage/{metric}", this); }