fbpx
GEThttps://api.spotinst.io/functions/function/log?functionId={FUNC_ID}&from={FROM_TIME}&to={TO_TIME}&accountId={ACCOUNT_ID}

Describe all the user functions and their full JSONs

Parameter Type Description
FUNC_ID String

The function ID.

Example: fx-12345
FROM_TIME * Integer

Timestamp in milliseconds for the start time.

Example: 1511370488000
TO_TIME * Integer

Timestamp in milliseconds for the END time.

Example: 1511370488000
ACCOUNT_ID String

The account ID.

Example: act-12345
Request

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

Headers
{
  "Content-Type": "application/json"
}
Body
Copied!
Downloaded!
{
  "status": {
    "code": 200,
    "message": "OK"
  },
  "count": "2",
  "items": [
    {
      "createdAt": "2017-11-19 15:51",
      "updatedAt": "2017-11-19 15:51",
      "type": "functionlog",
      "functionId": "fx-123456",
      "invocationId": "invoc-987654",
      "content": [
        {
          "time": "2017-11-19T15:51:04.923+0000",
          "log": "SPOTINST_FUNCTION__START_OF_USER_FUNCTION",
          "stream": "stdout"
        },
        {
          "time": "2017-11-19T15:51:04.923+0000",
          "log": "SPOTINST_FUNCTION__END_OF_USER_FUNCTION",
          "stream": "stdout"
        }
      ]
    },
    {
      "createdAt": "2017-11-19 15:51",
      "updatedAt": "2017-11-19 15:51",
      "type": "functionlog",
      "functionId": "fx-123456",
      "invocationId": "invoc-45676543",
      "content": [
        {
          "time": "2017-11-19T15:51:08.192+0000",
          "log": "SPOTINST_FUNCTION__START_OF_USER_FUNCTION",
          "stream": "stdout"
        },
        {
          "time": "2017-11-19T15:51:08.192+0000",
          "log": "SPOTINST_FUNCTION__END_OF_USER_FUNCTION",
          "stream": "stdout"
        }
      ]
    }
  ]
}