• SWIFT
  • help
  • press
    enter
    to extend search

create products

  1. create product
  2. open product and assign application(s)
  3. create instance
  4. in instance view, change template_of to created template
  5. in instance view, make a snapshot
  6. new instances from the product can now be made

only admins can make products public

json rest api

Create api keys and manage swift via http. All paths and actions accessible via html are also accessible via json.

  • per_page and page: Paginate index views.
  • associations: A list of associations to be included into the answer. Available options can be found under ['meta']['associations'].

list all ressources

create instance

If snapshot_name is missing, the most recent one will be chosen.

curl -X POST http://swift.seibert.group/instances \
  -H "X-Api-Key: WXY2b...VlQT0=" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
        "instance": { 
          "name": "test436346",
          "product_name": "Confluence",
          "snapshot_name": "6.15.7",
          "customer_email": "aasd@dfas.de",
          "trial_days": 14,
          "instance_credentials_attributes": [
            {
              "username": "admin",
              "password": "SUPERGEHEIM"
            }
          ]
        }
      }'

response

{
  "status": "success",
  "meta": {
    "status_code": 200,
    "status_name": "OK"
    "message": null
  },
  "data": {
    "id": 16,
    "external_id": "WVZUaUd5R0NBUkJoOHk5b...1kcW9IeU1uUk9FM1RuVT0=",
    "name": "daftew4wst436346",
    "domain": "daftew4wst436346.swift-wiki.net",
    "server_type_id": 2,
    "customer_email": "aasd@dfas.de",
    "expires_at": "2019-10-05T20:44:59.113Z",
    "disk_size": 40,
    "webfs_password": "SWlvTWpkMEV4UHd...hNQ1QvNXdFa2RIcDlLTT0=",
    ...
    "setup_task": {
      "progress_percent": 100,
    }
  }
}

get instance and include snapshots and health

curl -X GET http://swift.seibert.group/instances/16?associations[]=snapshots&methods[]=health \
  -H "X-Api-Key: WXY2b...VlQT0=" \
  -H "Accept: application/json"

response

{
  "data": {
    "id": 16,
    "snapshots": [
      ...
    ],
    "health": {
      "ram": "critical",
    },
    ...
  }
}

get instances with pagination

curl -X GET http://swift.seibert.group/instances?per_page=5&page=2 \
  -H "X-Api-Key: WXY2b...VlQT0=" \
  -H "Accept: application/json"

response

{
  "data": [
    {
      "id": 16,
      ...
    },
    ...
  ]
}

iframe

https://swift.seibert.group/iframe?product=Jira Core&locale=en

product options: Agile Hive 3, Autopage, Confluence, Jira Service Desk, Jira Software, Linchpin, n8n

locale options: de, en

  • frontend
  • light
  • log out