Edit this page on GitHub
»Network Segments - Operator HTTP API
This feature requires Consul Enterprise.
/operator/segment endpoint provides tools to manage network segments via
Consul's HTTP API.
The network area functionality described here is available only in Consul Enterprise version 0.9.3 and later. Network segments are operator-defined sections of agents on the LAN, typically isolated from other segments by network configuration.
Please check the Network Segments tutorial for more details.
This endpoint lists all network areas.
|Blocking Queries||Consistency Modes||Agent Caching||ACL Required|
(string: "")- Specifies the datacenter to query. This will default to the datacenter of the agent being queried.
$ curl \ http://127.0.0.1:8500/v1/operator/segment
["", "alpha", "beta"]