POST realm/zones
The web method
POST realm/zones defines a new persistence zone, and adds it to the existing zone definitions.
Input Data
Supply a JSON representation of a zone definition in the message body.
Example Requests
curl -X POST http://<host>:<port>/api/v1/realm/zones -d <json_defn>
Example JSON Representation
Form the <json_defn> argument like this example.{
"name": "Zone-A",
"description": "",
"active": true,
"clusters": ["c1", "c2", "c3"],
"type": "hub_spoke",
"settings":
{
"hub": "c3",
"hub-settings":
{
"prefetch": 10,
"message_ttl": "10",
"batch_count": 10
},
"spoke-settings":
{
"prefetch": 5,
"message_ttl": "5",
"batch_count": 5,
"max_delivery":"5"
}
}
}