fbpx
GEThttps://api.spotinst.io/functions/pattern/{patternId}?accountId={spotinst-account-id}

Get a pattern

Parameter Type Description
patternId * String

The pattern ID

accountId 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!
{
	"id": "fnap-123",
	"environmentId": "env-123",
	"method": "GET",
	"pattern": "/foo/bar/{}/baz/*",
	"functionId": "fx-123",
	"functionVersion": 2
}