@Path(value="/rules")
public interface RulesResource
| Modifier and Type | Method and Description |
|---|---|
void |
createGlobalRule(Rule data)
Adds a rule to the list of globally configured rules.
|
void |
deleteAllGlobalRules()
Deletes all globally configured rules.
|
void |
deleteGlobalRule(RuleType rule)
Deletes a single global rule.
|
Rule |
getGlobalRuleConfig(RuleType rule)
Returns information about the named globally configured rule.
|
List<RuleType> |
listGlobalRules()
Gets a list of all the currently configured global rules (if any).
|
Rule |
updateGlobalRuleConfig(RuleType rule,
Rule data)
Updates the configuration for a globally configured rule.
|
@Path(value="/{rule}")
@GET
@Produces(value="application/json")
Rule getGlobalRuleConfig(@PathParam(value="rule")
RuleType rule)
@Path(value="/{rule}")
@PUT
@Produces(value="application/json")
@Consumes(value="application/json")
Rule updateGlobalRuleConfig(@PathParam(value="rule")
RuleType rule,
Rule data)
@Path(value="/{rule}")
@DELETE
void deleteGlobalRule(@PathParam(value="rule")
RuleType rule)
@GET @Produces(value="application/json") List<RuleType> listGlobalRules()
@POST @Consumes(value="application/json") void createGlobalRule(Rule data)
@DELETE void deleteAllGlobalRules()
Copyright © 2020 Red Hat. All rights reserved.