body get_body#
Description#
ページの内容を取得します。
Examples#
以下のコマンドは、 ${CONTENT_ID}
のページのstorageフォーマットを出力します。
$ confluence body get_body --content_id ${CONTENT_ID} > output.xml
<p>test</p>
<p><ac:image ac:thumbnail="true" ac:height="62"><ri:attachment ri:filename="A.png" /></ac:image></p>
Usage Details#
ページの中身を取得します。
usage: confluence page get_body [-h] [--debug]
[--confluence_base_url CONFLUENCE_BASE_URL]
[--confluence_user_name CONFLUENCE_USER_NAME]
[--confluence_user_password CONFLUENCE_USER_PASSWORD]
-c CONTENT_ID
[--representation {storage,view,editor,export_view,styled_view,anonymous_export_view}]
[-o OUTPUT]
Named Arguments#
- -c, --content_id
取得対象のコンテンツのID
- --representation
Possible choices: storage, view, editor, export_view, styled_view, anonymous_export_view
ページの中身の表現方法
Default: "storage"
- -o, --output
出力先
global optional arguments#
- --debug
指定するとデバッグ用のログが出力されます。
- --confluence_base_url
アクセスするConfluenceのURL(たとえば`https://kurusugawa.jp/confluence`)です。アクセスするAPIのURLは'{confluence_base_url}'/rest/api/...'です。未指定の場合は環境変数`CONFLUENCE_BASE_URL`の値を参照します。
- --confluence_user_name
Confluenceにログインする際のユーザー名。未指定の場合は環境変数`CONFLUENCE_USER_NAME`の値を参照します。
- --confluence_user_password
Confluenceにログインする際のパスワード。未指定の場合は環境変数`CONFLUENCE_USER_PASSWORD`の値を参照します。