Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Go to General Configuration → Configure Amazon S3 Buckets.

...

Note:

  • Access Secret Keys are not required If you are Confluence is hosted on AWS EC2.

    • You can attach S3 role to EC2 with read and write access

    • If you are bucket is on different account then use Bucket policy to grant permission to Confluence Hosted account.

  • For Access Secret Keys two ways to get i.e.

...

Attach / Link existing Amazon S3 File to Space via REST API.

Code Block
coming soon.% curl -u admin -XPOST "http://localhost:8090/rest/spaces3documents/1.0/utility/attach/document" \
   -H "Content-Type: application/json" --data '{"bucketConfigId": 4, "spaceKey": "DT", \
   "pageId": 4816905, "documentKey": "s3://ilaesolution/documents/DT/pom.xml"}'
{"status":19,"message":"Amazon S3 File has been attached to Space. File ID #19"}
%

Upload new Amazon S3 File via REST API.

Code Block
% curl -u admin -XPOST "http://localhost:8090/rest/spaces3documents/1.0/utility/upload/document" \
  -H "X-Atlassian-Token: no-check" -F bucketId=4 -F pageId=4816905 -F file=@/tmp/pom.xml
{"status":0,"message":"Space S3 File Upload Successful. (documents/DT/pom.xml)"}
%

To overwrite: -F updateDocument=true

Status
colourBlue
titleStep-3

...