Commit Graph

897 Commits

Author SHA1 Message Date
Thordur Bjornsson 5ef79e747e Revert "correct the doc for obtaining formatted json"
This reverts commit cf3b9ec4fe.
2015-01-02 08:00:09 +01:00
Emil Hessman cb764c35e5 add ability to specify response headers on the HTTP API
Add an config object that allows adding HTTP header response fields to every
HTTP API response.

Each specified header is added to every response from all HTTP API endpoints.
Each individual endpoint may overwrite the specified header, which makes sure
that Consul headers such as 'X-Consul-Index' is enforced by the API.
2014-12-28 19:17:08 +01:00
darron froese a5ba33ae06 It's not key - it's service.
It's right in the description, but the example seems to be wrong.
2014-12-26 21:51:48 -08:00
Michael H. Oshita a03436e4b2 minor grammer fix 2014-12-11 19:02:29 +09:00
Dan Frost 284814a515 docs: agent/watches: minor fixes 2014-11-26 13:48:33 +00:00
Dan Frost 1b94c804f3 docs: agent/checks: minor fixes 2014-11-26 13:42:53 +00:00
Dan Frost 65ffbed02e docs: agent/dns: minor fixes 2014-11-26 13:33:55 +00:00
Dan Frost 3bbb226e2b docs: agent/basics: minor fixes 2014-11-26 13:15:41 +00:00
Ryan Uber f126bb7381 website: Improve docs for reloading config. Fixes 2014-11-25 19:03:14 -08:00
Brandon Wilson cf3b9ec4fe correct the doc for obtaining formatted json
was "?pretty" should be "?pretty=1"
2014-11-21 12:27:48 -08:00
Ryan Uber ab5fbe4094 agent: ignore -encrypt if provided when keyring exists 2014-11-19 16:37:40 -08:00
Ryan Uber 80c25e3320 website: document new behavior of the -encrypt option 2014-11-19 16:36:01 -08:00
Ryan Uber 026ebcef58 website: remove keyring persistence options from agent page 2014-11-19 16:31:06 -08:00
Ryan Uber cea2b49c15 website: update consul keys documentation 2014-11-19 16:30:22 -08:00
Armon Dadgar 6be29e17c2 Merge pull request from amalaviy/https
Added HTTPS support via a new HTTPS Port configuration option
2014-11-19 11:17:10 -08:00
Atin Malaviya 0904c651a8 Change names to StartJoinWan, RetryJoinWan etc 2014-11-17 17:14:59 -05:00
Atin Malaviya f4fd8453ed Added HTTPS support via a new HTTPS Port configuration option similar to the HTTP Port. 2014-11-17 14:29:35 -05:00
Atin Malaviya 5b41170f47 Add start-wan-join, retry-wan-join and related configuration options and commandline options 2014-11-14 10:56:39 -05:00
Ryan Uber 3facf1bdf4 website: better description of config merging in agent options. Closes 2014-11-13 12:04:09 -08:00
Danny Berger 3da9291ae1 Fix some typos in website docs 2014-11-04 21:33:42 -07:00
Armon Dadgar cd936793ad Support old recursor config for backwards compatibility 2014-11-03 11:28:21 -08:00
Armon Dadgar 632bbcdd54 Merge pull request from foostan/multiple_recursor
Add multiple recursor definition support
2014-11-03 11:18:37 -08:00
foostan 35b006d884 Add multiple recursor definition support 2014-11-01 04:26:26 +09:00
Laurent Raufaste 26916b03e6 Rephrase 2014-10-30 21:46:19 -04:00
Laurent Raufaste 33c0de708d ACL doc clarification
Fixes 
2014-10-30 21:44:23 -04:00
Ryan Uber d472825181 website: fix JSON in multiple checks documentation 2014-10-27 11:58:01 -07:00
Ryan Uber f03bbb8daa website: update docs for multiple checks in config 2014-10-26 13:25:48 -07:00
Alexander Simmerl 461c1e18a5 Add multiple service definition support
This change-set adds another key to the configuration decoding called
`services`, which is expected to be a list of service definitions. It
follows the established convention of only allowing one of the keys:
`service`, `check`, `services`. For every entry in the list it calls
the corresponding decode method and appends it to the Servics of the
resulting Config.

While a similar result could be achieved with changing the Services
member of the Config struct to have named mapstruct tag it lacks the
proper time conversions provided by DecodeServiceDefinition.
2014-10-23 22:50:40 -04:00
Armon Dadgar 21c3e606a2 website: Fixing formatting 2014-10-23 17:14:40 -07:00
Armon Dadgar c7d5330471 Merge pull request from blalor/agent_http_links
website: Improve navigability of agent HTTP API categories
2014-10-23 16:46:58 -07:00
Ryan Uber 805a9f7ec2 website: document retry_join and retry_interval flags for config file 2014-10-23 16:40:49 -07:00
Brian Lalor 914db50a52 Add links for status endpoints 2014-10-23 07:59:58 -04:00
Brian Lalor dd251dd323 Add links for event endpoints 2014-10-23 07:59:05 -04:00
Brian Lalor f09d1b32c9 Add links for ACL endpoints 2014-10-23 07:57:55 -04:00
Brian Lalor 8d6b8f4309 Add links for session endpoints 2014-10-23 07:56:28 -04:00
Brian Lalor 03be420bce Add links for health endpoints 2014-10-23 07:54:46 -04:00
Brian Lalor c7125bad12 Add links for catalog endpoints 2014-10-23 07:53:11 -04:00
Brian Lalor 98ebb94afa Add links for agent endpoints 2014-10-23 07:50:54 -04:00
Brian Lalor 351d722a15 Improve navigability of agent HTTP API categories 2014-10-23 07:44:20 -04:00
Leo Cassarani 64f710518f Fix spelling of "separator" in the HTTP API docs 2014-10-23 12:31:41 +01:00
Seth Vargo 869b194127 Use new Markdown syntaxes and add SEO descriptions 2014-10-19 19:42:13 -04:00
Seth Vargo 302789bf76 Use codeblocks for code 2014-10-19 19:41:11 -04:00
Armon Dadgar bee5fe280c Merge pull request from ryanuber/f-retry-join
agent: Retry failed joins on agent start
2014-10-13 10:46:10 -07:00
Ryan Uber bec34b0c46 website: document retry join 2014-10-12 12:31:47 -07:00
Theo Hultberg 5560d2700b Fix mistake in the watches documentation 2014-10-11 17:04:52 +02:00
Alex Wheeler bb613cf467 Added the dns_config option enable_truncate to the docs. 2014-09-30 15:31:28 -04:00
Armon Dadgar 6d4b8bbd56 website: fixing formatting 2014-09-24 16:59:43 -07:00
Sneha More 5d6391904a removed repeated 'can' 2014-09-18 11:11:00 +05:30
lalyos 29f933c554 json sample fixed for PUT /v1/acl/create 2014-09-06 01:55:38 +02:00
Armon Dadgar feb3fa27fa website: Documenting new options 2014-09-02 14:36:25 -07:00
Armon Dadgar bb16e94b0c website: document addresses config 2014-09-02 12:49:52 -07:00
Armon Dadgar 98acc0a908 agent: statsd support. Fixes 2014-09-02 11:26:17 -07:00
Armon Dadgar 2d7be20431 website: Updating docs 2014-09-01 15:03:37 -07:00
Joseph Anthony Pasquale Holsten 52dafc8347 alphabetize config options in docs. Fixes 2014-08-31 02:03:01 +00:00
Joonas Bergius e90d67a4a7 Fixed a small typo 2014-08-28 22:23:01 -04:00
Armon Dadgar db99bc3a23 website: typo fixes 2014-08-28 17:54:58 -07:00
Armon Dadgar 088e024417 website: Adding docs 2014-08-28 17:22:56 -07:00
Armon Dadgar e08e66367c website: Document node lifecycle. Fixes . 2014-08-22 15:54:48 -07:00
Armon Dadgar e0a815772a agent: Support encrypt CLI flag. Fixes . 2014-08-22 15:08:15 -07:00
Armon Dadgar 7e6452387e website: Document client auth for TLS. Fixes . 2014-08-22 15:00:07 -07:00
Armon Dadgar 8bd92ff663 website: Document data dir requirements. Fixes . 2014-08-22 14:58:10 -07:00
Armon Dadgar 54316d2b30 website: Minor cleanups 2014-08-21 17:35:05 -07:00
Armon Dadgar dce716f4b2 website: Document watches 2014-08-21 17:25:42 -07:00
Armon Dadgar e2118d2a80 website: Fixing docs 2014-08-19 10:02:43 -07:00
Armon Dadgar ca1aeb8fa8 Merge pull request from gmr/rfc-2782-srv-lookups
Add RFC-2782 style SRV lookups
2014-08-18 16:01:18 -07:00
Armon Dadgar 781ff2048d website: ACL internals 2014-08-18 15:46:59 -07:00
Armon Dadgar b802dd16eb website: Documenting ACL endpoints 2014-08-18 15:46:59 -07:00
Armon Dadgar 8a0eeae269 website: document configuration 2014-08-18 15:46:58 -07:00
Gavin M. Roy 6000f6977d Add RFC-2782 style SRV lookups 2014-08-18 15:45:56 -04:00
Armon Dadgar 09a1c40444 website: More port use docs 2014-08-05 10:46:52 -07:00
Laurent Raufaste 2b6bb395ca Some breath 2014-08-03 20:52:36 -04:00
Laurent Raufaste c098720a41 Add a ports used section to the doc 2014-08-03 20:51:43 -04:00
Armon Dadgar d77a458bdc website: Clarify the ?pretty docs 2014-08-01 13:38:03 -07:00
Eric Connell ed6dd856dc updated website documentation with the "pretty" parameter 2014-08-01 14:16:21 -06:00
William Tisäter dd9c59b6c4 Short doc note about DNS case-insensitivity 2014-07-23 23:42:22 +02:00
Armon Dadgar 140a910fed website: remove old docs on the -encrypt flag 2014-07-15 09:50:49 -07:00
Nelson Elhage 825dcd04f4 There is no `-statsite` command-line flag. 2014-07-10 18:06:36 -07:00
Ben Scofield 3d1e09c263 Improve clarity around changing the `-client` param
This is a small change that (IMO) makes more explicit the effect
of changing `-client` -- namely, that you'll have to provide
`-rpc-addr` to every other consul command you run.
2014-07-02 21:21:37 +02:00
Armon Dadgar d313349807 Updating documentation for new bootstrap method 2014-07-01 15:02:26 -07:00
Philip K. Warren f3ac3ce6fc Fix a small typo in RPC docs. 2014-06-19 13:53:43 -05:00
Armon Dadgar 961a00c496 Adding server_name configuration for TLS 2014-06-13 11:10:27 -07:00
Rob Holland cca6f83b3a Improve clarity of ?keys behaviour.
I read the previous version initially as meaning that it would return a list of keys which have no value set, which I couldn't understand. I think this removes some ambiguity.
2014-06-13 12:20:24 +01:00
Armon Dadgar 4542933139 website: Mention reload command in addition to SIGHUP 2014-06-11 11:03:59 -07:00
Armon Dadgar 8331367707 website: Document reload RPC command 2014-06-11 10:54:36 -07:00
Armon Dadgar 82c27cb902 agent: Adding SyslogFacility configuration 2014-06-11 10:18:19 -07:00
Armon Dadgar 33a8beae1e website: Document the check_update_interval config 2014-06-09 12:51:12 -07:00
Armon Dadgar 10f3007aa2 consul: Adding support for optional session name 2014-06-09 11:42:28 -07:00
Armon Dadgar 93fb12ecdf Merge pull request from hashicorp/f-dns
Adding support for DNS TTLs and stale reads
2014-06-09 11:13:47 -07:00
Armon Dadgar fed38165fe website: clarify unique per-ndoe 2014-06-08 17:31:44 -07:00
Armon Dadgar bd4610bcd1 website: Documenting DNS settings 2014-06-08 17:26:41 -07:00
David Pelaez e7b5f29191 Fix typo in check update endpoints
The current website says that you can send output with the update of a check using the `?node` parameter. It wasn't working and I check [the source](3874498374/command/agent/agent_endpoint.go (L110)) to find that it was (the more logical noun of) note! I changed the indication to replace `?node` for `?note`
2014-06-04 22:55:17 -05:00
Armon Dadgar 753cec4cfa agent: Omit certains keys from the /self endpoint 2014-05-29 11:24:37 -07:00
William Tisäter d794a18761 Return both member and config in `/v1/agent/self` 2014-05-28 00:09:28 +02:00
William Tisäter d0e447d29b Add `/v1/agent/self` and return local agent config 2014-05-27 01:15:33 +02:00
Armon Dadgar e55a6fb6d6 Support wildcard for check lookup. Fixes 2014-05-21 12:45:12 -07:00
Armon Dadgar de309057ff Support rejoin after leave. Fixes . 2014-05-21 12:32:24 -07:00
Armon Dadgar 0836a222bf agent: syslog support. Fixes . 2014-05-21 12:06:03 -07:00
Armon Dadgar 88d91c6ee0 agent: Support for raw key lookup. Fixes . 2014-05-20 16:53:43 -07:00
Armon Dadgar fa4cb49feb website: Document DNS truncation. Fixes . 2014-05-20 16:43:44 -07:00
Armon Dadgar 55951c9f87 website: Document KV changes 2014-05-20 16:25:30 -07:00
Armon Dadgar a12c52ca2d website: Documenting the session endpoints 2014-05-20 16:25:30 -07:00
Armon Dadgar 246ad6c681 agent: Support -advertise cli flag. Fixes . 2014-05-16 10:49:55 -07:00
Carl Jackson 5295d8c9fd s/direclty/directly/ 2014-05-08 17:48:29 -07:00
Armon Dadgar 359807375e website: mention client_addr 2014-05-08 13:44:59 -07:00
Armon Dadgar d5a8e79b65 agent: Correct spelling of separator. Fixes . 2014-05-07 15:25:17 -07:00
Armon Dadgar 3d527e174a website: update docs, CLI flag no longer available 2014-05-07 15:11:56 -07:00
Nelson Elhage 0b9ad9e882 docs: The config key is "encrypt", not "encrypt_key" 2014-05-07 15:04:50 -07:00
William Tisäter 963f1e2ff6 Merge pull request from carlosdp/pid-file
Add pid-file flag to agent
2014-05-06 19:57:12 +02:00
Armon Dadgar 58a896ad28 website: improve the docs for the agent TTL endpoints 2014-05-06 10:44:42 -07:00
Carlos Diaz-Padron dd1ce61fb1 Add pid-file option to agent docs 2014-05-05 23:39:26 -04:00
Armon Dadgar 4c2b8562bf website: Fixing old reference to dns_addr 2014-05-04 13:26:21 -07:00
Shayan Pooya c3ac3f8434 website: fix a couple of typos. 2014-05-03 19:16:55 -04:00
Armon Dadgar 08235411c3 website: Document the KV API changes 2014-04-30 23:44:27 -04:00
Armon Dadgar f9ff14531f website: Document the ui-dir flags 2014-04-30 23:43:56 -04:00
Gavin M. Roy 2d62fb3207 Revert the interval and TTL values 2014-04-30 15:46:20 -04:00
Gavin M. Roy 11f0d0fe3f Minor documentation fixes
- Correct spotted typos
- Ran JSON snippets through jsonpp for consistent display of JSON results
- Unfortunately my editor stripped EOL whitespace so there's a bit of whitespace diff
2014-04-30 15:26:07 -04:00
Masahito Zembutsu b2ed730b41 fix typo 2014-04-25 23:09:17 +09:00
Armon Dadgar b8d185af40 website: Adding the output key to docs examples 2014-04-21 16:21:52 -07:00
Armon Dadgar 554a8478ac website: typo fix 2014-04-21 16:09:36 -07:00
Armon Dadgar 81a0a56fac agent: Support server-side filtering of passing checks. Fixes . 2014-04-21 16:08:26 -07:00
Armon Dadgar 03adb99a91 website: Document HTTP changes 2014-04-21 13:40:16 -07:00
Armon Dadgar 0d490096f9 website: Typo. Fixes . 2014-04-17 11:31:25 -07:00
Jacques Fuentes ccddd16821 Round 2: Fix typos, grammar errors, and misspellings 2014-04-16 00:01:12 -04:00
Armon Dadgar a8d9fefdfe agent: Adding support for -join flag. Fixes . 2014-04-11 16:59:16 -07:00
Armon Dadgar 657da8eaf6 website: Document the port configurations 2014-04-11 16:31:33 -07:00
Armon Dadgar 3758f235b2 website: Documentation cleanup 2014-04-11 16:23:16 -07:00
Armon Dadgar 304cb516e1 website: Documentation cleanup 2014-04-09 11:06:27 -07:00
Armon Dadgar 8c2e660244 website: Clarify the DNS documentation 2014-04-08 12:18:05 -07:00
Armon Dadgar f02ae31041 website: More info on TLS encryption 2014-04-07 15:07:21 -07:00
Armon Dadgar 5436d208b1 website: Document new TLS flags 2014-04-07 15:07:00 -07:00
Armon Dadgar 7905f1b6b3 website: Mention that telemetry can be streamed 2014-04-04 14:55:23 -07:00
Armon Dadgar 7c31a313db website: Correct some empty lists to null 2014-04-03 14:40:05 -07:00
Armon Dadgar 6e26f463a5 website: Updating the tags documentation 2014-04-03 14:18:57 -07:00
Armon Dadgar cfa4ba2d34 website: Document the Key/Value API 2014-03-31 21:15:46 -07:00
Armon Dadgar ffca4f5544 agent: Support protocol version setting 2014-03-09 15:57:03 -07:00
Armon Dadgar fad3e4d97c website: Documenting the info command 2014-02-23 17:09:59 -08:00
Armon Dadgar 0a19fdd10a website: document registering checks and services better. Fixes 2014-02-22 18:53:31 -08:00
Armon Dadgar 5726da7b59 website: Clarify the ?index parameter. Fixes 2014-02-22 18:47:09 -08:00
Armon Dadgar 13af774cb9 agent: Switch to -data-dir, better error if missing. Fixes . 2014-02-22 17:34:57 -08:00
Armon Dadgar dca8c79576 agent: Adding support for statsite telemetry 2014-02-20 14:59:54 -08:00
Armon Dadgar 779e6df7b8 website: finish the HTTP documentation 2014-02-19 14:27:01 -08:00
Armon Dadgar e116815e17 website: working on documenting http api 2014-02-19 12:05:18 -08:00
Armon Dadgar 5150b69344 website: document the DNS interface 2014-02-19 11:05:42 -08:00
Armon Dadgar 6e500ef54b website: document checks and services 2014-02-18 18:05:18 -08:00
Armon Dadgar 7b1883760d website: replacing serf references 2014-02-18 17:33:44 -08:00
Armon Dadgar 03e62172f1 website: working on docs 2014-02-18 15:30:07 -08:00
Armon Dadgar 1d10b9d6ba website: bulk copy from serf 2014-02-07 16:41:03 -08:00