8585a90b96
* fix network segments broken urls * fix iptables broken link * fix acl broken link * fix acl-rules broken link * fix acl migrate broken link * fix clone token link
1.9 KiB
1.9 KiB
layout | page_title | sidebar_current | description |
---|---|---|---|
api | Network Segments - Operator - HTTP API | api-operator-segment | The /operator/segment endpoint exposes the network segment information via Consul's HTTP API. |
Network Areas - Operator HTTP API
The /operator/segment
endpoint provides tools to manage network segments via
Consul's HTTP API.
~> Enterprise-only! This API endpoint and functionality only exists in Consul Enterprise. This is not present in the open source version of Consul.
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 see the Network Segments Guide for more details.
List Network Segments
This endpoint lists all network areas.
Method | Path | Produces |
---|---|---|
GET |
/operator/segment |
application/json |
The table below shows this endpoint's support for blocking queries, consistency modes, agent caching, and required ACLs.
Blocking Queries | Consistency Modes | Agent Caching | ACL Required |
---|---|---|---|
NO |
none |
none |
operator:read |
Parameters
dc
(string: "")
- Specifies the datacenter to query. This will default to the datacenter of the agent being queried. This is specified as a URL query parameter.
Sample Request
$ curl \
http://127.0.0.1:8500/v1/operator/segment
Sample Response
["","alpha","beta"]