List all automation code packages

This call lists all automation code packages for a specified automation.

Request

https://api.sbgenomics.com/v2/automation/automations/{automation-id}/packages
https://eu-api.sbgenomics.com/v2/automation/automations/{automation-id}/packages

Example request

GET v2/automation/automations/40a284d9-c0da-441c-8799-3de8d85bbd8d/packages
Host: api.sbgenomics.com
X-SBG-Auth-Token: 3259c50e1ac5426ea8f1273259740f75
curl -X POST \
  https://api.sbgenomics.com/v2/automation/automations/40a284d9-c0da-441c-8799-3de8d85bbd8d/packages \
  -H 'Cache-Control: no-cache' \
  -H 'Content-Type: application/json' \
  -H 'X-SBG-Auth-Token: 3259c50e1ac5426ea8f1273259740f75' \"
    ]
}
'
from sevenbridges import Api

api = Api(url='https://api.sbgenomics.com/v2',
          token='3259c50e1ac5426ea8f1273259740f74',
          advance_access=True)

automation = api.automations.get(id='40a284d9-c0da-441c-8799-3de8d85bbd8d')

# send GET request to SB API
packages = automation.get_packages()

for package in packages:
    print(package.id, package.location, package.version)

Header Fields

Name

Description

X-SBG-Auth-Token
required

Your Seven Bridges Platform authentication token.

Content-Type
required

application/json

X-SBG-Advance-Access
required

advance

Path parameters

Name

Description

automation_id
required

The ID of the automation the code packages belong to.

Response

See a list of Seven Bridges Platform-specific response codes that may be contained in the body of the response.

Example response body

{
    "href": "https://api.sbgenomics.com/v2/automation/automations/40a284d9-c0da-441c-8799-3de8d85bbd8d/packages/",
    "items": [
        {
            "id": "c291f294-f46b-4a9e-a702-e9fb2fbf751f",
            "automation": "40a284d9-c0da-441c-8799-3de8d85bbd8d",
            "version": "1.0.0",
            "location": "5b84276ee4b0e7481db7d94d",
            "created_by": "rfranklin",
            "created_on": "2018-08-27T16:32:23.072Z"
        }
    ],
    "links": []
}