fbpx
GEThttps://api.spotinst.io/spectrum/events/job?resourceId={RESOURCE_ID}&action={ACTION}&isEnabled={ENABLED}&accountId={ACCOUNT_ID}

Describe all Jobs

URL Parameters

Parameter Type Description
RESOURCE_ID * String

The Spotinst Resource ID

Example: fx-12223456789
ACTION * String

The Action type you wish to get the list for

Example: INVOKE
ENABLED * Boolean

The state of the JOB

Example: true
ACCOUNT_ID String

The Spotinst Account ID - required if not the default account for the Organization.

Example: act-12223456789
Request

Headers
{
    "Content-Type": "application/json",
    "Authorization": "Bearer ${TOKEN}"
}
Response - 200

Headers
{
  "Content-Type": "application/json"
}
Body
Copied!
Downloaded!
[{
	"id": "sej-12345678",
	"resourceId": "fx-1234567",
	"action": "INVOKE_FUNCTION",
	"config": {
		"body": "foo",
		"queryParams": [{
			"key": "foo",
			"value": "bar"
		}]
	},
	"isEnabled": true,
	"cronExpression": "0 23 * * *",
	"createdAt": "2017-02-10T15:49:11.911Z"
}]