はじめに

Confluence provides remote APIs as both XML-RPC and SOAP. This document refers to the XML-RPC specification, see SOAP details below. XML-RPC and SOAP are both remote choices, as they have bindings for almost every language making them very portable.

Which should I use?

XML-RPC Information

Some borrowed from the (VPWik specification):

SOAP Information

The SOAP API follows the same methods as below, except with typed objects (as SOAP allows for).

To find out more about the SOAP API, simply point your SOAP 'stub generator' at the WSDL file, located at http://<confluence-install>/rpc/soap-axis/confluenceservice-v1?wsdl .

For reference, the confluence.atlassian.com WSDL file is here.

Remote Methods

Authentication Methods

Administration

一般

スペース

Retrieval

管理

ページ

Retrieval

依存関係

管理

Attachments - new in version 2.0

Retrieval

管理

Blog Entries

検索

Parameters for Limiting Search Results

鍵 (キー)

description

values

default

spaceKey

search a single space

(any valid space key)

Search all spaces

type

Limit types of search results to return

all
page
blogpost
mail
comment
attachment
spacedescription
personalinformation

All except mail

lastModified

Search recently modified content

today
yesterday
lastweek
lastmonth

No limit

セキュリティ

ユーザー管理

ラベル

Data Objects

Most returned structs have a summary and a detailed form:

Unless otherwise specified, all returned structs are in detailed form.

ServerInfo

キー

タイプ

majorVersion

int

the major version number of the Confluence instance

minorVersion

int

the minor version number of the Confluence instance

patchLevel

int

the patch-level of the Confluence instance

buildId

文字列

the build ID of the Confluence instance (usually a number)

developmentBuild

ブーリアン

Whether the build is a developer-only release or not

ベース URL

文字列

The base URL for the confluence instance

Note: Version 1.0.3 of Confluence would be major-version: 1, minor-version: 0, patch-level: 3. Version 2.0 would have a patch-level of 0, even if it's not visible in the version number.

SpaceSummary

キー

タイプ

鍵 (キー)

文字列

the space key

name

文字列

the name of the space

type

文字列

type of the space

URL

文字列

the url to view this space online

スペース

キー

タイプ

鍵 (キー)

文字列

the space key

name

文字列

the name of the space

URL

文字列

the url to view this space online

homepage

文字列

the id of the space homepage

description

文字列

the HTML rendered space description

PageSummary

キー

タイプ

ID

文字列

the id of the page

スペース

文字列

the key of the space that this page belongs to

parentId

文字列

the id of the parent page

title

文字列

the title of the page

URL

文字列

the url to view this page online

locks

int

the number of locks current on this page

ページ

キー

タイプ

ID

文字列

the id of the page

スペース

文字列

the key of the space that this page belongs to

parentId

文字列

the id of the parent page

title

文字列

the title of the page

URL

文字列

the url to view this page online

VERSION (バージョン)

int

the version number of this page

content

文字列

the page content

created

日付

timestamp page was created

creator

文字列

username of the creator

modified

日付

timestamp page was modified

modifier

文字列

username of the page's last modifier

homePage

ブーリアン

whether or not this page is the space's homepage

locks

int

the number of locks current on this page

contentStatus

文字列

status of the page (eg. current or deleted)

current

ブーリアン

whether the page is current and not deleted

PageHistorySummary

キー

タイプ

ID

文字列

the id of the historical page

VERSION (バージョン)

int

the version of this historical page

modifier

文字列

the user who made this change

modified

日付

timestamp change was made

BlogEntrySummary

キー

タイプ

ID

文字列

the id of the blog entry

スペース

文字列

the key of the space that this blog entry belongs to

title

文字列

the title of the blog entry

URL

文字列

the url to view this blog entry online

locks

int

the number of locks current on this page

publishDate

日付

the date the blog post was published

BlogEntry

キー

タイプ

ID

文字列

the id of the blog entry

スペース

文字列

the key of the space that this blog entry belongs to

title

文字列

the title of the page

URL

文字列

the url to view this blog entry online

VERSION (バージョン)

int

the version number of this blog entry

content

文字列

the blog entry content

locks

int

the number of locks current on this page

RSS フィード

キー

タイプ

URL

文字列

the URL of the RSS feed

title

文字列

the feed's title

Search Result

キー

タイプ

title

文字列

the feed's title

URL

文字列

the remote URL needed to view this search result online

excerpt

文字列

a short excerpt of this result if it makes sense

type

文字列

the type of this result - page, comment, spacedesc, attachment, userinfo, blogpost

ID

文字列

the long ID of this result (if the type has one)

添付ファイル

キー

タイプ

ID

文字列

numeric id of the attachment

pageId

文字列

page ID of the attachment

title

文字列

title of the attachment

fileName

文字列

file name of the attachment (Required)

fileSize

文字列

numeric file size of the attachment in bytes

contentType

文字列

mime content type of the attachment (Required)

created

日付

creation date of the attachment

creator

文字列

creator of the attachment

URL

文字列

url to download the attachment online

comment

文字列 

comment for the attachment (Required) 

コメント

キー

タイプ

ID

文字列

numeric id of the comment

pageId

文字列

page ID of the comment

title

文字列

title of the comment

content

文字列

notated content of the comment (use renderContent to render)

URL

文字列

url to view the comment online

created

日付

creation date of the attachment

creator

文字列

creator of the attachment

ユーザー

キー

タイプ

name

文字列

the username of this user

氏名

文字列

the full name of this user

email

文字列

the email address of this user

URL

文字列

the url to view this user online

権限

キー

タイプ

lockType

文字列

The type of permission. One of 'View' or 'Edit'

lockedBy

文字列

The user or group name of the permission's owner

ラベル

キー

タイプ

name

文字列

the nameof the label

owner

文字列

the username of the owner

namespace

文字列

the namespace of the label

ID

文字列

the ID of the label

UserInformation

キー

タイプ

username

文字列

the username of this user

content

文字列

the user description

creatorName

文字列

the creator of the user

lastModifierName

文字列

the url to view this user online

VERSION (バージョン)

int 

the version

ID

文字列 

the ID of the user

creationDate

日付 

the date the user was created 

lastModificationDate

日付

the date the user was last modified 

ClusterInformation

キー

タイプ


isRunning

ブーリアン

true if this node is part of a cluster.

name

文字列

the name of the cluster.

memberCount

int

the number of nodes in the cluster, including this node (this will be zero if this node is not clustered.)

description

文字列

a description of the cluster.

multicastAddress

文字列

the address that this cluster uses for multicasr communication.

multicastPort

文字列

the port that this cluster uses for multicast communication.

NodeStatus

キー

タイプ


nodeId

int

an integer uniquely identifying the node within the cluster.

jvmStats

Map

a Map containing attributes about the JVM memory usage of node.  Keys are "total.memory", "free.memory", "used.memory".

props

Map

a Map containing attributes of the node. Keys are "system.date", "system.time", "system.favourite.colour", "java.version", "java.vendor",
"jvm.version", "jvm.vendor", "jvm.implemtation.version", "java.runtime", "java.vm", "user.name.word", "user.timezone",
"operating.system", "os.architecture",  "fs.encoding".

buildStats

Map

a Map containing attributes of the build of Confluence running on the node. Keys are "confluence.home", "system.uptime", "system.version",
"build.number".

Script Examples

The Confluence Extension space contains various examples of scripts

Changelog

2.3

2.2

2.1.4

2.0

1.4

1.3

1.2

1.1

1.0.3