<div dir="ltr">Thanks Eric<div><br></div><div>This is perfect. I followed your instructions and all is good!</div><div><br></div><div>Thanks again</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Feb 14, 2015 at 4:22 PM, Eric Wittmann <span dir="ltr">&lt;<a href="mailto:eric.wittmann@redhat.com" target="_blank">eric.wittmann@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">We really should have the data available in a DML of some kind, perhaps.  However, that&#39;s not available currently, so your best bet is to configure everything manually via the UI.<br>
<br>
That sounds hard but it really isn&#39;t!<br>
<br>
1. Roles - create whatever roles you think you&#39;ll need.  We recommend *at least* a role equivalent to Organization Owner which grants all permissions and is set to auto-grant:true.<br>
<br>
2. Gateway - create a gateway with the following settings:<br>
<br>
Name: Gateway<br>
Description: Something sensible. :)<br>
Configuration Endpoint:  <a href="http://localhost:8080/apiman-gateway-api/" target="_blank">http://localhost:8080/apiman-<u></u>gateway-api/</a><br>
Username:  apimanager<br>
Password:  apiman123!<br>
<br>
(Use the Test Gateway button to make sure the settings work!)<br>
<br>
Note: better to set the configuration endpoint to the hostname of the server, rather than localhost, if possible.<br>
<br>
3. Policy Definitions - these can all be imported in a single shot. Simply click import policy and then copy/paste the contents of &quot;all-policyDefs.json&quot; into the big text area.  That file can be found in the distro, or you can use what&#39;s here: <a href="https://raw.githubusercontent.com/apiman/apiman/master/distro/data/src/main/resources/data/all-policyDefs.json" target="_blank">https://raw.githubusercontent.<u></u>com/apiman/apiman/master/<u></u>distro/data/src/main/<u></u>resources/data/all-policyDefs.<u></u>json</a><br>
<br>
4. Profit!<br>
<br>
-Eric<br>
<br>
PS: we have a little java unit test that does all this, but it&#39;s honestly easier to just use the UI to configure everything than tweak the unit test settings to do it automatically.<br>
<br>
PPS: once you have everything configured manually, maybe do a dump of the postgresql db to make it easier to do again if necessary...<span class=""><br>
<br>
On 2/13/2015 8:51 PM, Anton Hughes wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
Hi all<br>
<br>
This is following on from a previous thread related to migrating from h2<br>
to postgres.<br>
<br>
Thanks to Ruben who answered my previous question, related to roles.<br>
<br>
I now see that there is a lot of setup to do, such as setting up:<br>
<br></span>
  * gateway<br>
  * plugins<br>
  * policy definitions.<span class=""><br>
<br>
Does anyone know of a simply way to migrate data from h2 to postgres?<br>
Or is there away to populate postgres with the above, default,<br>
values/settings?<br>
<br>
Thanks and regards<br>
Anton<br></span>
*<br>
<br>
        <br>
<br>
*<br>
<br>
<br>
*<br>
<br>
**<br>
<br>
*<br>
<br>
<br>
______________________________<u></u>_________________<br>
Apiman-user mailing list<br>
<a href="mailto:Apiman-user@lists.jboss.org" target="_blank">Apiman-user@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/apiman-user" target="_blank">https://lists.jboss.org/<u></u>mailman/listinfo/apiman-user</a><br>
<br>
</blockquote>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><b><p dir="ltr" style="font-weight:normal;line-height:1.15;margin-top:0pt;margin-bottom:0pt"><b style="font-family:arial;font-size:small;line-height:normal;font-weight:normal"></b></p><p dir="ltr" style="font-weight:normal;line-height:1.15;margin-top:0pt;margin-bottom:0pt"><b style="font-weight:normal"><br><span style="font-size:11px;font-family:Arial;color:rgb(0,102,153);vertical-align:baseline;white-space:pre-wrap"></span></b></p><div dir="ltr"><table style="border:none;border-collapse:collapse"><colgroup><col width="210"><col width="303"></colgroup><tbody><tr style="height:0px"><td style="border:0px solid #000000;vertical-align:top;padding:7px 7px 7px 7px"><span style="font-weight:normal"><font>Anton Hughes<br><br>Co-founder</font></span><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="text-decoration:underline;font-size:15px;font-family:Arial;color:rgb(17,85,204);background-color:transparent;vertical-align:baseline;white-space:pre-wrap;font-weight:normal"><a href="mailto:ah@magick.nu" style="text-decoration:none" target="_blank">ah@magick.nu</a></span></p><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><a href="http://www.magick.nu" target="_blank"><font size="4">www.magick.nu</font></a></p><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11px;font-family:Arial;color:rgb(0,102,153);vertical-align:baseline;white-space:pre-wrap"></span><img src="https://lh5.googleusercontent.com/iK9bHpfIKHFoE-lzBKNtIfBkrOoQ2VGnQ-4RKLCF3509OgW-oyPd-nvgjieCxwik_IXDw6z8ADuNPJQ4S8AwU2T2aGh-ioaKvPYt_0fyGJqLqhgzeyZJS0uInQ" width="27px;" height="20px;"><span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:bold;vertical-align:baseline;white-space:pre-wrap"></span></p></td><td style="border:0px solid #000000;vertical-align:top;padding:7px 7px 7px 7px"><span style="font-size:11px;font-family:Arial;color:rgb(0,102,153);vertical-align:baseline;white-space:pre-wrap"></span></td></tr><tr style="height:0px"><td style="border:0px solid #000000;vertical-align:top;padding:7px 7px 7px 7px"><br><span style="font-size:11px;font-family:Arial;color:rgb(0,102,153);vertical-align:baseline;white-space:pre-wrap"></span></td><td style="border:0px solid #000000;vertical-align:top;padding:7px 7px 7px 7px"></td></tr></tbody></table></div><b style="font-weight:normal"><br><span style="font-size:11px;font-family:Arial;color:rgb(0,102,153);vertical-align:baseline;white-space:pre-wrap"></span><br><span style="font-size:11px;font-family:Arial;color:rgb(0,102,153);vertical-align:baseline;white-space:pre-wrap"></span><br><span style="font-size:11px;font-family:Arial;color:rgb(0,102,153);vertical-align:baseline;white-space:pre-wrap"></span></b><p></p><b style="font-weight:normal"><span style="font-size:11px;font-family:Arial;color:rgb(0,102,153);vertical-align:baseline;white-space:pre-wrap"></span></b><p></p></b></div></div></div></div>
</div>