@Beta
@Path(value="/fw")
@Consumes(value="application/json")
public interface FWaaSApi
@Named(value="fw:list") @GET @Path(value="/firewalls") PagedIterable<Firewall> list()
@Named(value="firewall:list") @GET @Path(value="/firewalls") PaginatedCollection<Firewall> list(PaginationOptions options)
@Named(value="firewall:get")
@GET
@Path(value="/firewalls/{id}")
@Nullable
Firewall get(@PathParam(value="id")
String id)
id - the id of the firewall to return@Named(value="firewall:create") @POST @Path(value="/firewalls") Firewall create(CreateFirewall firewall)
firewall - Options for creating a firewall@Named(value="firewall:update")
@PUT
@Path(value="/firewalls/{id}")
Firewall update(@PathParam(value="id")
String id,
UpdateFirewall updateFirewall)
id - the id of the firewall to updateupdateFirewall - Contains only the attributes to update@Named(value="firewall:delete")
@DELETE
@Path(value="/firewalls/{id}")
boolean delete(@PathParam(value="id")
String id)
id - the id of the firewall to delete@Named(value="firewall:createPolicy") @POST @Path(value="/firewall_policies") FirewallPolicy createFirewallPolicy(CreateFirewallPolicy firewallPolicy)
@Named(value="firewall:listPolicies") @GET @Path(value="/firewall_policies") PagedIterable<FirewallPolicy> listFirewallPolicies()
@Named(value="firewall:listPolicies") @GET @Path(value="/firewall_policies") PaginatedCollection<FirewallPolicy> listFirewallPolicies(PaginationOptions options)
@Named(value="firewall:getPolicy")
@GET
@Path(value="/firewall_policies/{id}")
FirewallPolicy getFirewallPolicy(@PathParam(value="id")
String id)
@Named(value="firewall:updatePolicy")
@PUT
@Path(value="/firewall_policies/{id}")
FirewallPolicy updateFirewallPolicy(@PathParam(value="id")
String id,
UpdateFirewallPolicy updateFirewallPolicy)
@Named(value="firewall:deletePolicy")
@DELETE
@Path(value="/firewall_policies/{id}")
boolean deleteFirewallPolicy(@PathParam(value="id")
String id)
@Named(value="firewall:createFirewallRule") @POST @Path(value="/firewall_rules") FirewallRule createFirewallRule(CreateFirewallRule firewallRule)
@Named(value="firewall:listFirewallRules") @GET @Path(value="/firewall_rules") PagedIterable<FirewallRule> listFirewallRules()
@Named(value="firewall:listFirewallRules") @GET @Path(value="/firewall_rules") PaginatedCollection<FirewallRule> listFirewallRules(PaginationOptions options)
@Named(value="firewall:getFirewallRule")
@GET
@Path(value="/firewall_rules/{id}")
@Nullable
FirewallRule getFirewallRule(@PathParam(value="id")
String firewallRuleId)
@Named(value="firewall:updateFirewallRule")
@PUT
@Path(value="/firewall_rules/{id}")
FirewallRule updateFirewallRule(@PathParam(value="id")
String id,
UpdateFirewallRule updateFirewallRule)
@Named(value="firewall:deleteFirewallRule")
@DELETE
@Path(value="/firewall_rules/{id}")
boolean deleteFirewallRule(@PathParam(value="id")
String id)
@Named(value="firewall:insertFirewallRuleToPolicy")
@PUT
@Path(value="/firewall_policies/{id}/insert_rule")
FirewallPolicy insertFirewallRuleToPolicy(@PathParam(value="id")
String policyId,
String firewallRuleId)
@Named(value="firewall:removeFirewallRuleFromPolicy")
@DELETE
@Path(value="/firewall_policies/{id}/remove_rule")
@Nullable
FirewallPolicy removeFirewallRuleFromPolicy(@PathParam(value="id")
String policyId,
String firewallRuleId)
Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.