NAME

Consul::API::Catalog - Catalog (nodes and services) API

SYNOPSIS

use Consul;
my $catalog = Consul->catalog;
say for map { $_->name} @{$catalog->nodes};

DESCRIPTION

The catalog API is used to register and deregister nodes, services and checks. It also provides query endpoints.

This API is fully documented at https://www.consul.io/docs/agent/http/catalog.html.

METHODS

datacenters

nodes

services

service

register

deregister

node

SEE ALSO

L<Consul>