REST API: Configuration Manager
For details and examples, take a look at the REST API reference:
Documentation for REST API 1.6 - available with Configuration Manager 6.14.0 or later.
URI structure
Configuration Manager's REST API provides means to manage snapshots via URI paths. URIs for Configuration Manager's REST API resource have the following structure:
http://host:port/context/rest/configuration-manager/api/api-version/resource-name
The current API version is 1.6.
For example, you would use the following path to access the snapshots' API on a locally run instance of Jira with a context path of /jira:
http://localhost:2990/jira/rest/configuration-manager/api/1.6/snapshots
Context Path
The example above specifies a context path of “/jira”. Keep in mind that the context path may be different or not present for your installation of Jira.
Step-by-step guide for using the API
Create a new snapshot*
POST /snapshots
This snapshot endpoint creates a new snapshot.
Request
Unix/macOS request
Windows request
Responses
Get snapshot metadata
GET /snapshots
This snapshot endpoint returns all snapshots' metadata attributes (i.e., no actual snapshot files, just the snapshot metadata).
Request
Responses
Download a snapshot ZIP
GET /snapshots/{id}
This snapshot endpoint returns a specified snapshot as a ZIP containing a snapshot file in a binary format.
Request
Responses
Delete a snapshot
DELETE /snapshots/{id}
This snapshot endpoint deletes a specified snapshot.
Request
Responses
Start a deployment operation
POST /deployments
Deployment is a two-step process:
Meta information is provided.
A snapshot file is uploaded.
A separate REST endpoint is used for tracking deployment progress.
The “Start a deployment operation” is the first step of the deployment process. The request parameters provide the meta information required.
Request