I am working to get the AWS instances resources details and copy&paste to a confluence page.
Are there any easy way to auto-generate the Wiki documentation from the AWS API?
Hi Bill,
You can create pages with REST API:
You can create a bash(in linux) to auto generate:
for ((i=1;i<=19000;i++)) ; do curl -v -u admin:admin -X POST -H 'Content-Type: application/json' -H 'Accept: application/json' -d'{"type":"page","ancestors":[{"type":"page","id":<pageId>}],"title":'$i',"space":{"key":"<space_key>"},"body":{"storage":{"value":"<p>This is a new page</p>","representation":"storage"}}}' "<confluence-url>/confluence/rest/api/content/?os_authType=basic"; done
The above script will create 19.000 pages(child pages).
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.