| 1 | [[PageOutline]] |
| 2 | = Enabling the API = |
| 3 | The Aggregate Manager API is an additional interface to a ProtoGENI site. It must be explicitly enabled after ProtoGENI is up and running. |
| 4 | |
| 5 | 1. The first step is to [http://www.protogeni.net/trac/protogeni/wiki/BecomingAProtoGENISite install ProtoGENI]. |
| 6 | 1. Next, edit {{{/etc/rc.conf}}} and add an additional flag to the {{{apache_flags}}}. Find the line that looks like this: |
| 7 | {{{ |
| 8 | apache_flags="-DSSL -DPGENI" |
| 9 | }}} |
| 10 | Add the {{{-DGENI_AM}}} flag so it looks like this: |
| 11 | {{{ |
| 12 | apache_flags="-DSSL -DPGENI -DGENI_AM" |
| 13 | }}} |
| 14 | 1. Restart apache: |
| 15 | {{{ |
| 16 | sudo /usr/local/etc/rc.d/apache.sh restart |
| 17 | }}} |
| 18 | 1. Test it by running one of the AM test scripts |
| 19 | {{{ |
| 20 | cd protogeni/test |
| 21 | am/getversion.py |
| 22 | }}} |
| 23 | You should see the following result (or similar): |
| 24 | {{{ |
| 25 | {'geni_api': 1} |
| 26 | }}} |