List Policies
List every policy in force, in the order they were written.
List Policies › Responses
Every policy in force.
statusThe status of the response.
The response data for this request.
op_time_usThe operation time in microseconds.
messageAn optional message providing additional information about the status.
A list of errors which may have occurred during the request.
Replace All Policies
Replace the whole policy set. A policy whose id is in both keeps its
counters, address sets and listener where the change leaves them meaning
the same thing. 409 is returned when an id appears twice, and 422 when
the set is refused: a policy fails validation, two policies collide, the
set needs more address sets or listeners than the shield has, or it would
leave a secret bound to a policy that is gone, or substituting into none.
Replace All Policies › Request Body
idThe policy's id: 1 to 64 ASCII letters, digits, ., _ and -, but not
. or .., unique among the policies.
directionWhich way the connections go.
handlerHow matched connections are carried; inbound, http or passthrough.
What the policy applies to.
priority(OPTIONAL) Evaluation priority, highest first.
request_limit(OPTIONAL) A cap on requests. Not on passthrough, nor inbound.
connection_limit(OPTIONAL) A cap on new connections. Not inbound.
Replace All Policies › Responses
The policy set as it now stands.
statusThe status of the response.
The response data for this request.
op_time_usThe operation time in microseconds.
messageAn optional message providing additional information about the status.
A list of errors which may have occurred during the request.
Add Policies
Add policies, as an array even of one, which is added whole or not at all.
201 is returned with the policies added. 409 is returned when an id is
taken or appears twice, and 422 when the addition is refused.
Add Policies › Request Body
idThe policy's id: 1 to 64 ASCII letters, digits, ., _ and -, but not
. or .., unique among the policies.
directionWhich way the connections go.
handlerHow matched connections are carried; inbound, http or passthrough.
What the policy applies to.
priority(OPTIONAL) Evaluation priority, highest first.
request_limit(OPTIONAL) A cap on requests. Not on passthrough, nor inbound.
connection_limit(OPTIONAL) A cap on new connections. Not inbound.
Add Policies › Responses
The policies added.
statusThe status of the response.
The response data for this request.
op_time_usThe operation time in microseconds.
messageAn optional message providing additional information about the status.
A list of errors which may have occurred during the request.
Get Policy
Get one policy by id. 404 is returned when no such policy exists.
path Parameters
policy_idGet Policy › Responses
The policy.
statusThe status of the response.
The response data for this request.
op_time_usThe operation time in microseconds.
messageAn optional message providing additional information about the status.
A list of errors which may have occurred during the request.
Replace Policy
Replace one policy, in place, leaving the others as they are. The policy
and the set it leaves are checked as a whole-set replace checks them, and
a refused replace changes nothing. A request counter is kept while the
port keeps a request limit; a connection allowance is kept while the
port's rule is unchanged, and starts full when the limit's numbers change.
404 is returned when no such policy exists, and 422 when the body
names another id or the change is refused.
path Parameters
policy_idReplace Policy › Request Body
directionWhich way the connections go.
handlerHow matched connections are carried; inbound, http or passthrough.
What the policy applies to.
id(OPTIONAL) The policy's id. Given, it has to be the path's.
priority(OPTIONAL) Evaluation priority, highest first.
request_limit(OPTIONAL) A cap on requests. Not on passthrough, nor inbound.
connection_limit(OPTIONAL) A cap on new connections. Not inbound.
Replace Policy › Responses
The policy as it now stands.
statusThe status of the response.
The response data for this request.
op_time_usThe operation time in microseconds.
messageAn optional message providing additional information about the status.
A list of errors which may have occurred during the request.
Delete Policy
Delete one policy. 404 is returned when no such policy exists, and 409
when a secret is bound to it, or substitutes into nothing else.
path Parameters
policy_idDelete Policy › Responses
The outcome of deleting the policy.
statusThe status of the response.
dataThe response data for this request.
op_time_usThe operation time in microseconds.
messageAn optional message providing additional information about the status.
A list of errors which may have occurred during the request.