qbit/consul-client/src/main/java/io/advantageous/consul/endpoints/AgentEndpoint.java
public AgentInfo getAgentInfo() {

        final URI uri = createURI("/self");

        HTTP.Response response = HTTP.getResponse(uri.toString());

        if (response.status() != 200) {
            die("Error getting info about this agent",
                    uri, response.status(), response.statusMessageAsString(),
                    response.payloadAsString());
        }

        return fromJson(response.payloadAsString(), AgentInfo.class);

    }
public AgentInfo getAgentInfo() {

        final URI uri = createURI("/self");

        HTTP.Response response = HTTP.getResponse(uri.toString());

        if (response.status() != 200) {
            die("Error getting info about this agent",
                    uri, response.status(), response.statusMessageAsString(),
                    response.payloadAsString());
        }

        return fromJson(response.payloadAsString(), AgentInfo.class);

    }
public AgentInfo getAgentInfo ( ) { final URI uri = createURI ( "/self" ) ; HTTP . Response response = HTTP . getResponse ( uri . toString ( ) ) ; if ( response . status ( ) != 200 ) { die ( "Error getting info about this agent" , uri , response . status ( ) , response . statusMessageAsString ( ) , response . payloadAsString ( ) ) ; } return fromJson ( response . payloadAsString ( ) , AgentInfo . class ) ; }
<p>
Retrieves the Agent's configuration and member information.
</p>
GET /v1/agent/self

@return The Agent information.
<p > Retrieves the Agent s configuration and member information . < / p > GET / v1 / agent / self