On this Page
Table of Contents | ||||
---|---|---|---|---|
|
SnapLogic APIs
The following SnapLogic APIs enable you to manage Snaplex versions programmatically.
GET /api/1/rest/public/snaplex/version/
Requests all current package versions.
Example:
https://elastic.snaplogic.com/api/1/rest/public/snaplex/version
The response contains all versions of Snaplex packages.
Code Block | ||||
---|---|---|---|---|
| ||||
{ "response map":{ "entries" [ { "comment":"xxx", "status":"active", "version":"mastermain-xxx" }, ...] "http_status_code": 200} } |
GET /api/1/rest/public/snaplex/version/latest
Requests the latest active Snaplex package version.
Example:
https://elastic.snaplogic.com/api/1/rest/public/snaplex/version/latest
The response contains the latest available version.
Code Block | ||||
---|---|---|---|---|
| ||||
{ "response map":{ "entries" [ { "version":"mastermain-xxx", "comment":"xxx", "status":"active" }, ...] "http_status_code": 200} } |
POST /api/1/rest/public/snaplex/version/<snaplex_path>
Updates the target Snaplex to the target version.
You must be an Org admin to use this API.
Example:
https://elastic.snaplogic.com/api/1/rest/public/snaplex/version/<snaplex_path>
Parameters:
url: asset path to the Snaplex <snaplex_path>
Code Block | ||||
---|---|---|---|---|
| ||||
{ "version": "mastermain-4403" } |
Code Block | ||||
---|---|---|---|---|
| ||||
{ "response map":{ "entries" [ { "label":"xxx", "org":"xxx", "environment":"xxx", "snode_id":"xxx", "version":"xxx" }, ...] "http_status_code": 200} } |
POST /api/1/rest/public/snaplex/version/latest/<snaplex_path>
Updates the target Snaplex to the latest version available.
You must be an Org admin to use this API.
Example:
https://elastic.snaplogic.com/api/1/rest/public/snaplex/version/latest/<s
naplex_path>
Parameters:
- url: <snaplex_path>
See the previous Sample Response for an example.