Author: more Date: Thu Jan 3 20:19:28 2019 New Revision: 1850265 URL: http://svn.apache.org/viewvc?rev=1850265&view=rev Log: KNOX-1726 - Document admin alias apis Modified: knox/site/books/knox-1-3-0/user-guide.html knox/site/index.html knox/site/issue-management.html knox/site/licenses.html knox/site/mailing-lists.html knox/site/project-info.html knox/site/team.html knox/trunk/books/1.3.0/admin_api.md Modified: knox/site/books/knox-1-3-0/user-guide.html URL: http://svn.apache.org/viewvc/knox/site/books/knox-1-3-0/user-guide.html?rev=1850265&r1=1850264&r2=1850265&view=diff ============================================================================== --- knox/site/books/knox-1-3-0/user-guide.html (original) +++ knox/site/books/knox-1-3-0/user-guide.html Thu Jan 3 20:19:28 2019 @@ -2461,6 +2461,77 @@ keytool -keystore gateway.jks -storepass + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Resource Operation Description
aliases/{topology}/{alias} PUT Add alias for a given topology
Example Request curl -ik -u admin:admin-password -H “Content-Type: application/json”
-d “value=mysecret” -X PUT ‘{GatewayAPI}/sandbox/myalias’
Example Response { "created" : { "topology": "sandbox", "alias": "putalias" } }
aliases/{topology}/{alias} POST Add alias for a given topology
Example Request curl -ik -u admin:admin-password -d "value=mysecret" -X POST '{GatewayAPI}/sandbox/myalias'
Example Response { "created" : { "topology": "sandbox", "alias": "putalias" } }
aliases/{topology} GET Get all aliases for a given topology
Example Request curl -ik -u admin:admin-password -X GET '{GatewayAPI}/aliases/sandbox'
Example Response {"topology":"sandbox","aliases":["myalias","encryptquerystring"]}
aliases/{topology}/{alias} DELETE Delete alias for a given topology
Example Request curl -ik -u admin:admin-password -X DELETE '{GatewayAPI}/aliases/sandbox/myalias'
Example Response { "deleted" : { "topology": "sandbox", "alias": "myalias" } }

X-Forwarded-* Headers Support

Out-of-the-box Knox provides support for some X-Forwarded-* headers through the use of a Servlet Filter. Specifically the headers handled/populated by Knox are: