fbpx
GEThttps://api.spotinst.io/functions/function?environmentId={ENV_ID}&accountId={ACCOUNT_ID}

Describe all the user functions and their full JSONs.

Parameter Type Description
ENV_ID * String

The function environment

Example: env-123456
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": [{
    "Id": "fx-12345",
    "name": "my_first_function",
    "environmentId": "env-123456",
    "code": {
      "handler": "hello.HelloJava",
      "source": "INLINE"
    },
    "runtime": "java8",
    "limits": {
        "timeout": 60,
        "memory": 128
    },
    "environmentVariables": {
        "envTest":"abcdefg"
    },
    "url": "http://app-8f9x02-testing.execute-function.multai.io/fx-12345"
  },
  {
    "Id": "fx-98765",
    "name": "my_second_function",
    "environmentId": "env-123456",
    "code": {
      "handler": "main",
      "source": "INLINE"
    },
    "runtime": "nodejs48",
    "limits": {
       "timeout": 60,
       "memory": 128
     },
    "environmentVariables": null,
    "url": "http://app-8f9x02-testing.execute-function.multai.io/fx-98765"
  }]
}