github.com/kardianos/nomad@v0.1.3-0.20151022182107-b13df73ee850/website/source/docs/http/agent-self.html.md (about)

     1  ---
     2  layout: "http"
     3  page_title: "HTTP API: /v1/agent/self"
     4  sidebar_current: "docs-http-agent-self"
     5  description: |-
     6    The '/1/agent/self' endpoint is used to query the state of the agent.
     7  ---
     8  
     9  # /v1/agent/self
    10  
    11  The `self` endpoint is used to query the state of the target agent.
    12  
    13  ## GET
    14  
    15  <dl>
    16    <dt>Description</dt>
    17    <dd>
    18      Query the state of the target agent.
    19    </dd>
    20  
    21    <dt>Method</dt>
    22    <dd>GET</dd>
    23  
    24    <dt>URL</dt>
    25    <dd>`/v1/agent/self`</dd>
    26  
    27    <dt>Parameters</dt>
    28    <dd>
    29      None
    30    </dd>
    31  
    32    <dt>Returns</dt>
    33    <dd>
    34  
    35      ```javascript
    36      {
    37      "config": {
    38          "Region": "global",
    39          "Datacenter": "dc1",
    40          "NodeName": "",
    41          "DataDir": "",
    42          "LogLevel": "DEBUG",
    43          "BindAddr": "127.0.0.1",
    44          "EnableDebug": true,
    45          "Ports": {
    46              "HTTP": 4646,
    47              "RPC": 4647,
    48              "Serf": 4648
    49          },
    50          "Addresses": {
    51              "HTTP": "",
    52              "RPC": "",
    53              "Serf": ""
    54          },
    55          "AdvertiseAddrs": {
    56              "RPC": "",
    57              "Serf": ""
    58          },
    59          "Client": {
    60              "Enabled": true,
    61              "StateDir": "",
    62              "AllocDir": "",
    63              "Servers": null,
    64              "NodeID": "",
    65              "NodeClass": "",
    66              "Meta": null
    67          },
    68          "Server": {
    69              "Enabled": true,
    70              "Bootstrap": false,
    71              "BootstrapExpect": 0,
    72              "DataDir": "",
    73              "ProtocolVersion": 0,
    74              "NumSchedulers": 0,
    75              "EnabledSchedulers": null
    76          },
    77          "Telemetry": null,
    78          "LeaveOnInt": false,
    79          "LeaveOnTerm": false,
    80          "EnableSyslog": false,
    81          "SyslogFacility": "",
    82          "DisableUpdateCheck": false,
    83          "DisableAnonymousSignature": true,
    84          "Revision": "",
    85          "Version": "0.1.0",
    86          "VersionPrerelease": "dev",
    87          "DevMode": true,
    88          "Atlas": null
    89      },
    90      "member": {
    91          "Name": "Armons-MacBook-Air.local.global",
    92          "Addr": "127.0.0.1",
    93          "Port": 4648,
    94          "Tags": {
    95              "bootstrap": "1",
    96              "build": "0.1.0dev",
    97              "dc": "dc1",
    98              "port": "4647",
    99              "region": "global",
   100              "role": "nomad",
   101              "vsn": "1",
   102              "vsn_max": "1",
   103              "vsn_min": "1"
   104          },
   105          "Status": "alive",
   106          "ProtocolMin": 1,
   107          "ProtocolMax": 3,
   108          "ProtocolCur": 2,
   109          "DelegateMin": 2,
   110          "DelegateMax": 4,
   111          "DelegateCur": 4
   112      },
   113      "stats": {
   114          "client": {
   115              "heartbeat_ttl": "19116443712",
   116              "known_servers": "0",
   117              "last_heartbeat": "8222075779",
   118              "num_allocations": "0"
   119          },
   120          "nomad": {
   121              "bootstrap": "false",
   122              "known_regions": "1",
   123              "leader": "true",
   124              "server": "true"
   125          },
   126          "raft": {
   127              "applied_index": "91",
   128              "commit_index": "91",
   129              "fsm_pending": "0",
   130              "last_contact": "never",
   131              "last_log_index": "91",
   132              "last_log_term": "1",
   133              "last_snapshot_index": "0",
   134              "last_snapshot_term": "0",
   135              "num_peers": "0",
   136              "state": "Leader",
   137              "term": "1"
   138          },
   139          "runtime": {
   140              "arch": "amd64",
   141              "cpu_count": "4",
   142              "goroutines": "58",
   143              "kernel.name": "darwin",
   144              "max_procs": "1",
   145              "version": "go1.4.2"
   146          },
   147          "serf": {
   148              "encrypted": "false",
   149              "event_queue": "0",
   150              "event_time": "1",
   151              "failed": "0",
   152              "intent_queue": "0",
   153              "left": "0",
   154              "member_time": "1",
   155              "members": "1",
   156              "query_queue": "0",
   157              "query_time": "1"
   158          }
   159      }
   160      }
   161      ```
   162  
   163    </dd>
   164  </dl>
   165