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

Describe a specific function.

Parameter Type Description
FUNCTION_ID * String

The function ID you want to view

ACCOUNT_ID String

The account ID.

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