From c9427c7482a7733cef76d3e4ccd17736f7e4642f Mon Sep 17 00:00:00 2001 From: Kevin Holditch Date: Mon, 27 Nov 2017 19:28:50 +0000 Subject: [PATCH] updated readme --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c1d0e885..8eb5bc90 100644 --- a/README.md +++ b/README.md @@ -49,4 +49,14 @@ resource "kong_api" "api" { http_if_terminated = false } ``` -The api resource maps directly onto the json for creating an API in Kong. For more information on the parameters [see the Kong Api create documentation](https://getkong.org/docs/0.11.x/admin-api/#add-api). \ No newline at end of file +The api resource maps directly onto the json for creating an API in Kong. For more information on the parameters [see the Kong Api create documentation](https://getkong.org/docs/0.11.x/admin-api/#add-api). + +To create a consuemr: +```hcl +resource "kong_consumer" "consumer" { + username = "User1" + custom_id = "123" +} +``` + +The consumer resource maps directly onto the json for creating an Consumer in Kong. For more information on the parameters [see the Kong Consumer create documentation](https://getkong.org/docs/0.11.x/admin-api/#create-consumer). \ No newline at end of file