Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automate Confluence XML Export #30

Open
ldubost opened this issue Jul 14, 2021 · 0 comments
Open

Automate Confluence XML Export #30

ldubost opened this issue Jul 14, 2021 · 0 comments

Comments

@ldubost
Copy link
Contributor

ldubost commented Jul 14, 2021

It seems there is a deprecated API (but that seems still there) to run an export. It seems it's still there on Confluence Cloud but does not support tokens, so authentication could be an issue

https://jira.atlassian.com/browse/CONFSERVER-40457

USRNAME=admin
USRPWD=password
CONFBASEURL=http://127.0.0.1:8090/confluence
SPACE_KEY=SPACEKEY

curl -s
--user $USRNAME:$USRPWD
-H "Content-Type: application/json"
-H "Accept: application/json"
-X POST
-d '{ "jsonrpc" : "2.0", "method" : "exportSpace", "params" : ["'${SPACE_KEY}'", "TYPE_XML"], "id": 7 }'
${CONFBASEURL}'/rpc/json-rpc/confluenceservice-v2?os_authType=basic'

It's unclear what it returns in order to get the zip file..

@snazare snazare added this to the 1.1 milestone Oct 21, 2021
@ldubost ldubost modified the milestones: 1.1, Future Apr 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants