confluence-rest-api

How to download a Confluence page attachment with Python?

十年热恋 提交于 2021-01-29 11:51:01
问题 With the atlassian-python-api 1.15.1 module and python 3.6 how can I to download a file attached to a Confluence page ? The page actions section of the API documentation mentions an API get_attachments_from_content , with which I can successfully obtain a list of all page attachments, with their metadata. There's an example at the end of this question of what I can obtain by printing one of the items in the results key. What I already tried is to use the wget module to downloaad the

Start Confluent Schema Registry in windows

让人想犯罪 __ 提交于 2020-01-01 02:44:18
问题 I have windows environment and my own set of kafka and zookeeper running. To use custom objects, I started to use Avro. But I needed to get the registry started. Downloaded Confluent platform and ran this: $ ./bin/schema-registry-start ./etc/schema-registry/schema-registry.properties /c/Confluent/confluent-3.0.0-2.11/confluent-3.0.0/bin/schema-registry-run-class: line 103: C:\Program: No such file or directory Then I see this on the installation page: "Confluent does not currently support

How to check if Remote API is enabled in your Confluence installation without admin rights

对着背影说爱祢 提交于 2019-12-25 01:38:29
问题 Is there a way to find out if the Remote API is enabled on our Confluence installation if I do not have admin rights to our confluence I can see the WSDSL, but while testing with this downloaded client I keep timing out on login. I can not contact my administrators without going through god knows how many channels so I'm hoping there's another way to know if the Remote API is enabled. 回答1: To check if the confluence API is enabled without admin access: Try accessing http://<your-confluence

Get a list of users from Atlassian's Cloud / On-Demand Service

旧街凉风 提交于 2019-12-24 00:45:37
问题 I'm trying to pull a list of users from our Atlassian Confluence/Jira instance. However I'm struggling to find good documentation on what REST services are available, and it seems the SOAP services are deprecated. The following code does get results, but we have over 100 users, and this returns 0. if(-not ($credentials)) { #put this here so I can rerun the same script in the same IDE session without having to reinput credentials each time $credentials = get-credential 'myAtlassianUsername' }

confluence REST API request while not being admin ends in 401 error

可紊 提交于 2019-12-22 01:16:49
问题 i am developing confluence blueprint where a user can choose between jira projects and use them for specific jira issues report. both instances are connected correctly with each other and i get results but only if i am logged as an admin. with normal user i am getting this: <status> <status-code>401</status-code> <message>This resource requires WebSudo.</message> </status> unfortunately i have to get the information from the jira server as ajax post request with javascript and here is my code

Confluence REST API - expanding page body when retrieving page by title

一个人想着一个人 提交于 2019-12-13 15:59:57
问题 I'm accessing a Confluence page by its title using the latest REST API. To retrieve more details on certain fields, I'm passing the expand parameter (see Confluence Docs): https://xyz.atlassian.net/wiki/rest/api/content/?title=Architecture&spaceKey=XX&expand=body or https://xyz.atlassian.net/wiki/rest/api/content/?title=Architecture&spaceKey=XX&expand=body.view But the results don't hold any information on the found page body. Note, this is working fine with requests using a page id only.

CURL | Upload multiple html files to confluence

半城伤御伤魂 提交于 2019-12-13 04:05:28
问题 I need to upload html files from Jenkins workspace to confluence via CURL command. Script used:- stage('Publish to Confluence') { steps { withCredentials([usernamePassword(credentialsId: 'confluence', usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD')]) { sh ''' curl -v -S -u $USERNAME:$PASSWORD -X POST -H "X-Atlassian-Token: no-check" -F "file_0=@code/pydoc/manage_connections.html" "https://alm-group.atlassian.net/wiki/spaces/PROJECT/pages/830833705/PyDoc" ''' }}} Issue is- It is

How to get Atlassian Confluence Space permissions by REST API?

牧云@^-^@ 提交于 2019-12-12 14:03:10
问题 I'm using Atlassian Confluence REST API. I need to get Space permissions. I couldn't find any info on it in the documentation. Does anyone know how to get these permissions? 回答1: I can see virtually no documentation about this, however having looked at the Confluence REST API Browser, I've got a working example below. You have to be a Confluence admin, or space admin for the space... POST: http://localhost:1990/confluence/rpc/json-rpc/confluenceservice-v2/getSpacePermissionSets BODY: [ "ds" ]

Unexpected grunt-http error when posting to Atlassian Confluence api

筅森魡賤 提交于 2019-12-12 04:53:17
问题 Attempting to create a wiki page on an Atlassian wiki. I previously was using a python script and this code worked no problem: data = json.dumps({"type":"page", "data":"testData", "title":postTitle,"space":{"key":"EB"}, "body":{"storage":{"value": content,"representation":"storage"}}}) r = requests.post("https://estech.atlassian.net/wiki/rest/api/content/", data=data, headers=headers, auth=(confluenceLogin['username'], confluenceLogin['password'])) Now I'm trying to use the following grunt

How to post Swagger API documentation to Atlassian Confluence programmatically? (Usage of Swagger Confluence tool and Confluence REST API)

为君一笑 提交于 2019-12-10 04:33:34
问题 I'm trying to upload my Swagger JSON schema (myapi.json) into Atlassian Confluence using the swagger-confluence standalone tool. The standalone CLI .jar should (according to my understanding) operate like this (used this page for credentials Base64 encoding): java -jar <system path root>/swagger-confluence-cli-all-2.2-RELEASE.jar -u "http(s)://<server>:<port>/confluence/rest/api/" -b "<base64 encoded userid:password string" -a "<parent page id>" -k "<space key>" -g "true" -i "true" -s "