Zudoku
Unikraft Cloud Network Shield Plugin API

Limits

Server

Get Limits

GET
http://localhost:8080
/limits

Get the limits in force, read back from the kernel.

Get Limits › Responses

The limits in force.

The response carrying the limits, read back from the kernel.
status
​string · enum · required

The status of the response.

Enum values:
success
error
partial_success
​object · required

The response data for this request.

op_time_us
​integer · uint64 · required

The operation time in microseconds.

message
​string

An optional message providing additional information about the status.

A list of errors which may have occurred during the request.


Set Limits

PUT
http://localhost:8080
/limits

Set the limits. 422 is returned for a rate that is not a multiple of 8, or out of range, and 500 when the host could not apply it, in which case the cap before stays in force.

Set Limits › Request Body

The limits on the shield as a whole, rather than on a policy.
bandwidth_limit
​object | null

(OPTIONAL) The bandwidth cap; absent or null for none.

Set Limits › Responses

The limits as they now stand.

The response carrying the limits, read back from the kernel.
status
​string · enum · required

The status of the response.

Enum values:
success
error
partial_success
​object · required

The response data for this request.

op_time_us
​integer · uint64 · required

The operation time in microseconds.

message
​string

An optional message providing additional information about the status.

A list of errors which may have occurred during the request.