Get content of the automation state file

This call returns the contents of the automation state file.

Request

https://api.sbgenomics.com/v2/automation/runs/{run-id}/state
https://eu-api.sbgenomics.com/v2/automation/runs/{run-id}/state

Example request

GET v2/automation/runs/e5ed2ee7-8f3c-44e9-bc78-4cabd2ee441f/state HTTP/1.1
Host: api.sbgenomics.com
X-SBG-Auth-Token: 3259c50e1ac5426ea8f1273259740f74
curl -s -H "X-SBG-Auth-Token: 3259c50e1ac5426ea8f1273259740f74" -H "content-type: application/json" -X GET "https://api.sbgenomics.com/v2/automation/runs/e5ed2ee7-8f3c-44e9-bc78-4cabd2ee441f/state"
from sevenbridges import Api

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

run = api.automation_runs.get(id='e5ed2ee7-8f3c-44e9-bc78-4cabd2ee441f')

# send GET request to SB API
state = run.get_state()

print(state)

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

run_id
required

The ID of the automation run you are querying.

Response

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

Example response body

{
    "main": {
        "inputs": {
            "x": {
                "type": "gANjZnJleWphLnR5cGVzCkZsb2F0CnEALg==\n",
                "value": 1
            },
            "y": {
                "type": "gANjZnJleWphLnR5cGVzCkZsb2F0CnEALg==\n",
                "value": 2
            },
            "z": {
                "type": "gANjZnJleWphLnR5cGVzCkZsb2F0CnEALg==\n",
                "value": 3
            }
        },
        "outputs": {
            "div": {
                "type": "gANjZnJleWphLnR5cGVzCkZsb2F0CnEALg==\n",
                "value": 1
            }
        },
        "substeps": {
            "add": {
                "inputs": {
                    "x": {
                        "type": "gANjZnJleWphLnR5cGVzCkZsb2F0CnEALg==\n",
                        "value": 1
                    },
                    "y": {
                        "type": "gANjZnJleWphLnR5cGVzCkZsb2F0CnEALg==\n",
                        "value": 2
                    }
                },
                "outputs": {
                    "sum": {
                        "type": "gANjZnJleWphLnR5cGVzCkZsb2F0CnEALg==\n",
                        "value": 3
                    }
                },
                "substeps": {},
                "started_at": 1537887701,
                "finished_at": 1537887701
            },
            "div": {
                "inputs": {
                    "x": {
                        "type": "gANjZnJleWphLnR5cGVzCkZsb2F0CnEALg==\n",
                        "value": 3
                    },
                    "y": {
                        "type": "gANjZnJleWphLnR5cGVzCkZsb2F0CnEALg==\n",
                        "value": 3
                    }
                },
                "outputs": {
                    "div": {
                        "type": "gANjZnJleWphLnR5cGVzCkZsb2F0CnEALg==\n",
                        "value": 1
                    }
                },
                "substeps": {},
                "started_at": 1537887701,
                "finished_at": 1537887701
            }
        },
        "started_at": 1537887701,
        "finished_at": 1537887701
    }
}